(function (_, $module$react, $module$react_router_h6p15h, com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk, $module$libphonenumber_js_s63wkw, $module$react_router_dom_s6xi74, $module$uuid, kotlin_kotlin, kotlin_dev_icerock_moko_resources, kotlin_com_ustadmobile_app_lib_database, kotlin_org_kodein_di_kodein_di, kotlin_org_kodein_type_kaverit, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_github_UstadMobile_door_door_runtime, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_github_aakira_napier, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_github_pdvrieze_xmlutil_serialization, kotlin_io_github_pdvrieze_xmlutil_core, kotlin_com_benasher44_uuid, kotlin_com_ustadmobile_app_lib_util, kotlin_org_jetbrains_kotlinx_kotlinx_datetime, kotlin_net_thauvin_erik_urlencoder_urlencoder_lib, kotlin_com_github_UstadMobile_xmlpullparserkmp, kotlin_io_ktor_ktor_utils, kotlin_UstadMobile_lib_xxhashkmp_core, kotlin_app_cash_paging_paging_common, kotlin_moe_tlaster_precompose_viewmodel, kotlin_UstadMobile_lib_centralappconfigdb_common, kotlin_com_russhwolf_multiplatform_settings, kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core, kotlin_org_jetbrains_kotlin_wrappers_kotlin_react, kotlin_org_jetbrains_kotlin_wrappers_kotlin_web, kotlin_org_jetbrains_kotlin_wrappers_kotlin_js) { 'use strict'; //region block: imports var imul = Math.imul; var createContext = $module$react.createContext; var useState = $module$react.useState; var useNavigate = $module$react_router_h6p15h.useNavigate; var useLocation = $module$react_router_h6p15h.useLocation; var useMemo = $module$react.useMemo; var useState_0 = $module$react.useState; var parsePhoneNumber = $module$libphonenumber_js_s63wkw.parsePhoneNumber; var useSearchParams = $module$react_router_dom_s6xi74.useSearchParams; var v4 = $module$uuid.v4; var THROW_CCE = kotlin_kotlin.$_$.hi; var SupportedLocale = kotlin_dev_icerock_moko_resources.$_$.b; var listOf = kotlin_kotlin.$_$.l8; var SupportedLocales = kotlin_dev_icerock_moko_resources.$_$.a; var Impl = kotlin_dev_icerock_moko_resources.$_$.d; var StringResource = kotlin_dev_icerock_moko_resources.$_$.f; var protoOf = kotlin_kotlin.$_$.wc; var objectMeta = kotlin_kotlin.$_$.vc; var setMetadataFor = kotlin_kotlin.$_$.xc; var PluralsResource = kotlin_dev_icerock_moko_resources.$_$.e; var VOID = kotlin_kotlin.$_$.f; var getBooleanHashCode = kotlin_kotlin.$_$.rb; var equals = kotlin_kotlin.$_$.ob; var classMeta = kotlin_kotlin.$_$.lb; var IllegalStateException = kotlin_kotlin.$_$.yh; var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2; var captureStack = kotlin_kotlin.$_$.fb; var CoroutineImpl = kotlin_kotlin.$_$.va; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha; var PersonAuth2 = kotlin_com_ustadmobile_app_lib_database.$_$.k4; var Companion_instance = kotlin_com_ustadmobile_app_lib_database.$_$.w7; var Unit_instance = kotlin_kotlin.$_$.m5; var Companion_instance_0 = kotlin_org_kodein_di_kodein_di.$_$.c; var getKClass = kotlin_kotlin.$_$.e; var arrayOf = kotlin_kotlin.$_$.wi; var createKType = kotlin_kotlin.$_$.b; var typeToken = kotlin_org_kodein_type_kaverit.$_$.d; var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b; var isInterface = kotlin_kotlin.$_$.gc; var On = kotlin_org_kodein_di_kodein_di.$_$.n; var UmAppDataLayer = kotlin_com_ustadmobile_app_lib_database.$_$.j; var Instance = kotlin_org_kodein_di_kodein_di.$_$.m; var get_diContext = kotlin_org_kodein_di_kodein_di.$_$.i; var get_diTrigger = kotlin_org_kodein_di_kodein_di.$_$.j; var DIAware = kotlin_org_kodein_di_kodein_di.$_$.k; var KProperty1 = kotlin_kotlin.$_$.vd; var getPropertyCallableRef = kotlin_kotlin.$_$.ub; var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u2; var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w; var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f; var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2; var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2; var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z2; var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.h; var lazy = kotlin_kotlin.$_$.ej; var objectCreate = kotlin_kotlin.$_$.uc; var Url = kotlin_io_ktor_ktor_http.$_$.v; var endsWith = kotlin_kotlin.$_$.xe; var getStringHashCode = kotlin_kotlin.$_$.vb; var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v; var StandardScopeRegistry = kotlin_org_kodein_di_kodein_di.$_$.g; var $serializer_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.u7; var $serializer_getInstance_0 = kotlin_com_ustadmobile_app_lib_database.$_$.y7; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1; var $serializer_getInstance_1 = kotlin_com_ustadmobile_app_lib_database.$_$.k8; var $serializer_getInstance_2 = kotlin_com_ustadmobile_app_lib_database.$_$.b8; var removePrefix = kotlin_kotlin.$_$.rf; var removeSuffix = kotlin_kotlin.$_$.sf; var hashCode = kotlin_kotlin.$_$.wb; var compareValues = kotlin_kotlin.$_$.fa; var List = kotlin_kotlin.$_$.w5; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m; var collectionSizeOrDefault = kotlin_kotlin.$_$.n6; var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l; var UserSession = kotlin_com_ustadmobile_app_lib_database.$_$.b5; var Person = kotlin_com_ustadmobile_app_lib_database.$_$.q4; var sortedWith = kotlin_kotlin.$_$.o9; var plus = kotlin_kotlin.$_$.z8; var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1; var get_direct = kotlin_org_kodein_di_kodein_di.$_$.o; var Companion_instance_1 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b3; var UmAppDatabase = kotlin_com_ustadmobile_app_lib_database.$_$.k; var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m2; var collectLatest = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c; var PersonAndPicture = kotlin_com_ustadmobile_app_lib_database.$_$.h1; var shallowCopy = kotlin_com_ustadmobile_app_lib_database.$_$.v1; var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.p; var Pair = kotlin_kotlin.$_$.ei; var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.a; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u3; var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3; var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k; var Companion_instance_2 = kotlin_com_ustadmobile_app_lib_database.$_$.l8; var get_doorWrapperNodeId = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l; var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d2; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2; var listOf_0 = kotlin_kotlin.$_$.k8; var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a; var StringCompanionObject_instance = kotlin_kotlin.$_$.a5; var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b1; var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x; var toSet = kotlin_kotlin.$_$.aa; var toList = kotlin_kotlin.$_$.t9; var Long = kotlin_kotlin.$_$.ai; var Comparator = kotlin_kotlin.$_$.rh; var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1; var withDoorTransactionAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w2; var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.j; var url = kotlin_io_ktor_ktor_client_core.$_$.n; var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b; var contentType = kotlin_io_ktor_ktor_http.$_$.c1; var setBodyJson = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q; var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.g; var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.q; var Exception_init_$Create$ = kotlin_kotlin.$_$.n1; var NodeIdAndAuth = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b; var toHexString = kotlin_kotlin.$_$.sg; var to = kotlin_kotlin.$_$.nj; var parameter = kotlin_io_ktor_ktor_client_core.$_$.m; var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g; var UmAccount = kotlin_com_ustadmobile_app_lib_database.$_$.a5; var ensureNotNull = kotlin_kotlin.$_$.zi; var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g2; var header = kotlin_io_ktor_ktor_client_core.$_$.l; var set_expectSuccess = kotlin_io_ktor_ktor_client_core.$_$.h; var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.i; var addAll = kotlin_kotlin.$_$.e6; var Companion_instance_3 = kotlin_com_ustadmobile_app_lib_database.$_$.v7; var Companion_instance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.x7; var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.t; var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.o; var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c; var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v; var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2; var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y1; var MutableStateFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1; var asStateFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h1; var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l; var isCharSequence = kotlin_kotlin.$_$.cc; var trim = kotlin_kotlin.$_$.jh; var toString = kotlin_kotlin.$_$.bd; var buildClassSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1; var XmlInput = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.c; var EventType_END_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d; var EventType_START_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.f; var XmlSerialName = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.e; var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2; var emptyList = kotlin_kotlin.$_$.i7; var XmlValue = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.f; var Regex_init_$Create$ = kotlin_kotlin.$_$.d1; var contains = kotlin_kotlin.$_$.qe; var firstOrNull = kotlin_kotlin.$_$.n7; var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2; var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u; var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v; var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r; var IllegalArgumentException = kotlin_kotlin.$_$.xh; var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.v1; var $serializer_getInstance_3 = kotlin_com_ustadmobile_app_lib_database.$_$.d7; var $serializer_getInstance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.a7; var mapOf = kotlin_kotlin.$_$.o8; var Companion_instance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.o6; var Companion_getInstance_1 = kotlin_com_ustadmobile_app_lib_database.$_$.e7; var Exception = kotlin_kotlin.$_$.wh; var interfaceMeta = kotlin_kotlin.$_$.xb; var Exception_init_$Init$ = kotlin_kotlin.$_$.m1; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1; var shallowCopy_0 = kotlin_com_ustadmobile_app_lib_database.$_$.s1; var uuid4 = kotlin_com_benasher44_uuid.$_$.a; var Companion_getInstance_2 = kotlin_kotlin.$_$.g5; var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1; var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y; var plus_0 = kotlin_kotlin.$_$.t8; var XapiSessionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.t2; var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.f2; var compareTo = kotlin_kotlin.$_$.mb; var mapOf_0 = kotlin_kotlin.$_$.n8; var shallowCopy_1 = kotlin_com_ustadmobile_app_lib_database.$_$.y1; var PersonNames = kotlin_com_ustadmobile_app_lib_database.$_$.i1; var first = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f; var toLong = kotlin_kotlin.$_$.zc; var toString_0 = kotlin_kotlin.$_$.mj; var CancellationException = kotlin_kotlin.$_$.ga; var Enum = kotlin_kotlin.$_$.uh; var Companion_instance_6 = kotlin_com_ustadmobile_app_lib_database.$_$.f7; var Companion_instance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.c8; var Companion_instance_8 = kotlin_com_ustadmobile_app_lib_database.$_$.m7; var Companion_instance_9 = kotlin_com_ustadmobile_app_lib_database.$_$.h7; var Companion_instance_10 = kotlin_com_ustadmobile_app_lib_database.$_$.b7; var charSequenceLength = kotlin_kotlin.$_$.jb; var Companion_getInstance_3 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e3; var get_isActive = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k2; var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k; var TransferJobItemStatus_COMPLETE_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.c5; var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e; var plus_1 = kotlin_kotlin.$_$.a9; var Companion_instance_11 = kotlin_com_ustadmobile_app_lib_database.$_$.c7; var Companion_getInstance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.n6; var randomString = kotlin_com_ustadmobile_app_lib_util.$_$.c; var Companion_instance_12 = kotlin_com_ustadmobile_app_lib_database.$_$.p6; var Companion_getInstance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.l7; var CoursePermission = kotlin_com_ustadmobile_app_lib_database.$_$.w3; var Exception_init_$Init$_0 = kotlin_kotlin.$_$.l1; var IllegalStateException_init_$Init$_0 = kotlin_kotlin.$_$.x1; var Companion_instance_13 = kotlin_com_ustadmobile_app_lib_database.$_$.r7; var ClazzEnrolment_init_$Create$ = kotlin_com_ustadmobile_app_lib_database.$_$.i5; var Companion_getInstance_6 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.e; var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.s1; var EnrolmentRequest = kotlin_com_ustadmobile_app_lib_database.$_$.a4; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i; var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.h2; var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v2; var enumEntries = kotlin_kotlin.$_$.za; var INT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i; var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1; var mapCapacity = kotlin_kotlin.$_$.m8; var coerceAtLeast = kotlin_kotlin.$_$.jd; var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u; var UrlEncoderUtil_getInstance = kotlin_net_thauvin_erik_urlencoder_urlencoder_lib.$_$.a; var doorNodeIdHeader = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j; var $serializer_getInstance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.x6; var setInputString = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.c; var substringBeforeLast = kotlin_kotlin.$_$.gg; var Collection = kotlin_kotlin.$_$.p5; var ContentEntryParentChildJoin = kotlin_com_ustadmobile_app_lib_database.$_$.i3; var toMutableList = kotlin_kotlin.$_$.x9; var checkIndexOverflow = kotlin_kotlin.$_$.l6; var Companion_instance_14 = kotlin_com_ustadmobile_app_lib_database.$_$.g7; var getOrNull = kotlin_kotlin.$_$.t7; var decodeBase64Bytes = kotlin_io_ktor_ktor_utils.$_$.u; var decodeToString = kotlin_kotlin.$_$.se; var PersonPasskey = kotlin_com_ustadmobile_app_lib_database.$_$.o4; var split = kotlin_kotlin.$_$.zf; var startsWith = kotlin_kotlin.$_$.ag; var Companion_instance_15 = kotlin_com_ustadmobile_app_lib_database.$_$.p7; var Companion_instance_16 = kotlin_com_ustadmobile_app_lib_database.$_$.z6; var plus_2 = kotlin_kotlin.$_$.x8; var emptySet = kotlin_kotlin.$_$.k7; var first_0 = kotlin_kotlin.$_$.p7; var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.f; var charSequenceGet = kotlin_kotlin.$_$.ib; var Char = kotlin_kotlin.$_$.ph; var isDigit = kotlin_kotlin.$_$.ff; var toString_1 = kotlin_kotlin.$_$.c3; var isLetter = kotlin_kotlin.$_$.hf; var joinToString = kotlin_kotlin.$_$.a8; var Companion_instance_17 = kotlin_com_ustadmobile_app_lib_database.$_$.r6; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2; var indexOf = kotlin_kotlin.$_$.df; var emptyMap = kotlin_kotlin.$_$.j7; var first_1 = kotlin_kotlin.$_$.q7; var distinct = kotlin_kotlin.$_$.f7; var Companion_getInstance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.g8; var until = kotlin_kotlin.$_$.rd; var PeerReviewerAllocation = kotlin_com_ustadmobile_app_lib_database.$_$.i4; var Companion_instance_18 = kotlin_com_ustadmobile_app_lib_database.$_$.t7; var toMap = kotlin_kotlin.$_$.w9; var checkCountOverflow = kotlin_kotlin.$_$.k6; var shuffled = kotlin_kotlin.$_$.l9; var shallowCopy_2 = kotlin_com_ustadmobile_app_lib_database.$_$.e2; var SystemPermission = kotlin_com_ustadmobile_app_lib_database.$_$.w4; var Companion_instance_19 = kotlin_com_ustadmobile_app_lib_database.$_$.z7; var PersonParentJoin = kotlin_com_ustadmobile_app_lib_database.$_$.n4; var Companion_getInstance_8 = kotlin_com_ustadmobile_app_lib_database.$_$.i8; var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.t1; var filterNotNull = kotlin_kotlin.$_$.m7; var Iterator = kotlin_kotlin.$_$.t5; var numberToLong = kotlin_kotlin.$_$.tc; var isWhitespace = kotlin_kotlin.$_$.lf; var setOf = kotlin_kotlin.$_$.k9; var firstOrNull_0 = kotlin_kotlin.$_$.ze; var Companion_instance_20 = kotlin_com_ustadmobile_app_lib_database.$_$.d6; var Exception_init_$Init$_1 = kotlin_kotlin.$_$.o1; var Json_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.n; var uuidFrom = kotlin_com_benasher44_uuid.$_$.b; var Companion_getInstance_9 = kotlin_kotlin.$_$.e5; var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.s2; var XapiEntityObjectTypeFlags_instance = kotlin_com_ustadmobile_app_lib_database.$_$.j6; var plus_3 = kotlin_kotlin.$_$.w8; var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.c; var Uuid_init_$Create$ = kotlin_com_benasher44_uuid.$_$.c; var encodeBase64 = kotlin_io_ktor_ktor_utils.$_$.v; var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.v; var get_intOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.t; var replace = kotlin_kotlin.$_$.uf; var toBooleanStrictOrNull = kotlin_kotlin.$_$.mg; var listOfNotNull = kotlin_kotlin.$_$.j8; var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1; var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c; var Companion_instance_21 = kotlin_com_ustadmobile_app_lib_database.$_$.e6; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.c5; var createInvariantKTypeProjection = kotlin_kotlin.$_$.a; var ActivityEntity = kotlin_com_ustadmobile_app_lib_database.$_$.i2; var Companion_instance_22 = kotlin_com_ustadmobile_app_lib_database.$_$.f6; var Companion_instance_23 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b; var ActivityExtensionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.j2; var ActivityLangMapEntry = kotlin_com_ustadmobile_app_lib_database.$_$.l2; var ActivityInteractionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.k2; var JsonContentPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g; var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.u; var noWhenBranchMatchedException = kotlin_kotlin.$_$.gj; var ActorEntity = kotlin_com_ustadmobile_app_lib_database.$_$.m2; var JsonDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h; var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.y1; var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j; var Companion_instance_24 = kotlin_com_ustadmobile_app_lib_database.$_$.h6; var StatementContextActivityJoin = kotlin_com_ustadmobile_app_lib_database.$_$.o2; var Companion_instance_25 = kotlin_com_ustadmobile_app_lib_database.$_$.g6; var GroupMemberActorJoin = kotlin_com_ustadmobile_app_lib_database.$_$.n2; var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s3; var THROW_IAE = kotlin_kotlin.$_$.ii; var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t; var getNumberHashCode = kotlin_kotlin.$_$.tb; var StatementEntity = kotlin_com_ustadmobile_app_lib_database.$_$.q2; var StatementEntityJson = kotlin_com_ustadmobile_app_lib_database.$_$.p2; var JsonNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i; var VerbEntity = kotlin_com_ustadmobile_app_lib_database.$_$.r2; var VerbLangMapEntry = kotlin_com_ustadmobile_app_lib_database.$_$.s2; var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g; var toDuration = kotlin_kotlin.$_$.mh; var Duration__toIsoString_impl_9h6wsm = kotlin_kotlin.$_$.t2; var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l; var atomic$long$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d; var $serializer_getInstance_6 = kotlin_com_ustadmobile_app_lib_database.$_$.k6; var values = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.j; var isBlank = kotlin_kotlin.$_$.ef; var toInt = kotlin_kotlin.$_$.ug; var sorted = kotlin_kotlin.$_$.p9; var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a; var ImplWithScope = kotlin_org_kodein_di_kodein_di.$_$.h; var Provider = kotlin_org_kodein_di_kodein_di.$_$.d; var Singleton = kotlin_org_kodein_di_kodein_di.$_$.f; var XXStringHasher = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.d; var Companion_instance_26 = kotlin_com_ustadmobile_app_lib_database.$_$.d8; var Companion_instance_27 = kotlin_com_ustadmobile_app_lib_database.$_$.i6; var Companion_instance_28 = kotlin_com_ustadmobile_app_lib_database.$_$.w6; var Companion_instance_29 = kotlin_com_ustadmobile_app_lib_database.$_$.f8; var BufferOverflow_DROP_OLDEST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a; var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1; var asSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1; var PagingSource = kotlin_app_cash_paging_paging_common.$_$.i; var Page_init_$Create$ = kotlin_app_cash_paging_paging_common.$_$.j; var LoadResult = kotlin_app_cash_paging_paging_common.$_$.h; var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k; var XmlPullParserConstants_instance = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.d; var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.b3; var mutableLinkedListOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m; var ChannelResult__getOrThrow_impl_od1axs = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p; var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q; var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z; var fillArrayVal = kotlin_kotlin.$_$.qb; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1; var indexOf_0 = kotlin_kotlin.$_$.cf; var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.w2; var lastIndexOf = kotlin_kotlin.$_$.nf; var HashMap_init_$Create$ = kotlin_kotlin.$_$.p; var round = kotlin_kotlin.$_$.fd; var lazy_0 = kotlin_kotlin.$_$.fj; var roundToInt = kotlin_kotlin.$_$.ed; var substringBefore = kotlin_kotlin.$_$.jg; var Companion_instance_30 = kotlin_com_ustadmobile_app_lib_database.$_$.y6; var timeout = kotlin_io_ktor_ktor_client_core.$_$.i; var Companion_getInstance_10 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.i; var toLocalDateTime = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.q; var toInstant = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.o; var periodUntil = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.n; var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f; var LocalTime_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b; var LocalDateTime_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a; var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1; var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w; var Companion_getInstance_11 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.d; var minus = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.l; var toMap_0 = kotlin_kotlin.$_$.v9; var substringBefore_0 = kotlin_kotlin.$_$.ig; var toMutableSet = kotlin_kotlin.$_$.z9; var titlecase = kotlin_kotlin.$_$.lg; var isLowerCase = kotlin_kotlin.$_$.jf; var offsetAt = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.m; var PersonGroup = kotlin_com_ustadmobile_app_lib_database.$_$.l4; var PersonGroupMember_init_$Create$ = kotlin_com_ustadmobile_app_lib_database.$_$.j5; var ScopedGrant = kotlin_com_ustadmobile_app_lib_database.$_$.s4; var abs = kotlin_kotlin.$_$.cd; var padStart = kotlin_kotlin.$_$.qf; var substringAfterLast = kotlin_kotlin.$_$.dg; var equals_0 = kotlin_kotlin.$_$.ye; var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1; var toLong_0 = kotlin_kotlin.$_$.xg; var LanguageDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.q5; var LeavingReason = kotlin_com_ustadmobile_app_lib_database.$_$.g4; var Companion_getInstance_12 = kotlin_com_ustadmobile_app_lib_database.$_$.s7; var lastOrNull = kotlin_kotlin.$_$.g8; var KProperty0 = kotlin_kotlin.$_$.ud; var THROW_ISE = kotlin_kotlin.$_$.ji; var getLocalDelegateReference = kotlin_kotlin.$_$.sb; var ViewModel = kotlin_moe_tlaster_precompose_viewmodel.$_$.b; var ViewModel_init_$Init$ = kotlin_moe_tlaster_precompose_viewmodel.$_$.a; var get_viewModelScope = kotlin_moe_tlaster_precompose_viewmodel.$_$.c; var toMutableMap = kotlin_kotlin.$_$.y9; var Companion_instance_31 = kotlin_com_ustadmobile_app_lib_database.$_$.l6; var toBoolean = kotlin_kotlin.$_$.ng; var InstanceOrNull = kotlin_org_kodein_di_kodein_di.$_$.l; var PermissionFlags_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.s5; var ClazzAndDetailPermissions = kotlin_com_ustadmobile_app_lib_database.$_$.n; var mutableListOf = kotlin_kotlin.$_$.q8; var PermissionTriple = kotlin_com_ustadmobile_app_lib_database.$_$.e1; var ClazzAndDisplayDetails = kotlin_com_ustadmobile_app_lib_database.$_$.o; var combine = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1; var ClazzWithHolidayCalendarAndAndTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.d3; var CourseBlockAndEditEntities = kotlin_com_ustadmobile_app_lib_database.$_$.x; var Schedule = kotlin_com_ustadmobile_app_lib_database.$_$.r4; var Companion_getInstance_13 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s; var shareIn = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1; var $serializer_getInstance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.z5; var $serializer_getInstance_8 = kotlin_com_ustadmobile_app_lib_database.$_$.e8; var $serializer_getInstance_9 = kotlin_com_ustadmobile_app_lib_database.$_$.u6; var CourseBlockPicture = kotlin_com_ustadmobile_app_lib_database.$_$.r3; var CoursePicture = kotlin_com_ustadmobile_app_lib_database.$_$.x3; var shallowCopy_3 = kotlin_com_ustadmobile_app_lib_database.$_$.b2; var shallowCopy_4 = kotlin_com_ustadmobile_app_lib_database.$_$.g2; var getDefaultTimeZoneId = kotlin_com_ustadmobile_app_lib_util.$_$.a; var CourseTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.y3; var Companion_instance_32 = kotlin_com_ustadmobile_app_lib_database.$_$.v6; var Companion_getInstance_14 = kotlin_com_ustadmobile_app_lib_database.$_$.a6; var deactivateByUids = kotlin_com_ustadmobile_app_lib_database.$_$.f5; var deactivateByUids_0 = kotlin_com_ustadmobile_app_lib_database.$_$.g5; var deactivateByUids_1 = kotlin_com_ustadmobile_app_lib_database.$_$.h5; var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f2; var awaitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g; var Companion_instance_33 = kotlin_com_ustadmobile_app_lib_database.$_$.o7; var BlockStatus = kotlin_com_ustadmobile_app_lib_database.$_$.m; var Page = kotlin_app_cash_paging_paging_common.$_$.g; var Invalid = kotlin_app_cash_paging_paging_common.$_$.f; var Error_0 = kotlin_app_cash_paging_paging_common.$_$.e; var StudentAndBlockStatuses = kotlin_com_ustadmobile_app_lib_database.$_$.k1; var PagingSourceWithHttpLoader = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s1; var DelegatedInvalidationPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m1; var ClazzEnrolmentDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.m5; var ClazzInviteAndClazz = kotlin_com_ustadmobile_app_lib_database.$_$.p; var last = kotlin_kotlin.$_$.h8; var ClazzDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.l5; var PermissionPair = kotlin_com_ustadmobile_app_lib_database.$_$.d1; var first_2 = kotlin_kotlin.$_$.r7; var eachCount = kotlin_kotlin.$_$.h7; var AverageCourseAssignmentMark = kotlin_com_ustadmobile_app_lib_database.$_$.x2; var CourseAssignmentMarkAndMarkerName = kotlin_com_ustadmobile_app_lib_database.$_$.v; var SubmissionAndFiles = kotlin_com_ustadmobile_app_lib_database.$_$.l1; var ClazzAssignment = kotlin_com_ustadmobile_app_lib_database.$_$.z2; var AssignmentProgressSummary = kotlin_com_ustadmobile_app_lib_database.$_$.u2; var ClazzAssignmentDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.k5; var ClazzAssignmentCourseBlockAndSubmitterUid = kotlin_com_ustadmobile_app_lib_database.$_$.y2; var throwKotlinNothingValueException = kotlin_kotlin.$_$.jj; var CourseAssignmentSubmission = kotlin_com_ustadmobile_app_lib_database.$_$.q3; var Comments = kotlin_com_ustadmobile_app_lib_database.$_$.f3; var CourseAssignmentSubmissionFile = kotlin_com_ustadmobile_app_lib_database.$_$.p3; var CourseAssignmentMarkDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.o5; var CourseGroupSet = kotlin_com_ustadmobile_app_lib_database.$_$.v3; var shallowCopy_5 = kotlin_com_ustadmobile_app_lib_database.$_$.c2; var CourseBlock = kotlin_com_ustadmobile_app_lib_database.$_$.s3; var $serializer_getInstance_10 = kotlin_com_ustadmobile_app_lib_database.$_$.n7; var AssignmentSubmitterSummary = kotlin_com_ustadmobile_app_lib_database.$_$.w2; var AssignmentSubmitterAndAllocations = kotlin_com_ustadmobile_app_lib_database.$_$.v2; var Companion_getInstance_15 = kotlin_com_ustadmobile_app_lib_database.$_$.m6; var CourseBlockAndAssignment = kotlin_com_ustadmobile_app_lib_database.$_$.w; var AssignmentPermissionAndActiveUserSubmitterUid = kotlin_com_ustadmobile_app_lib_database.$_$.l; var CourseAssignmentMark = kotlin_com_ustadmobile_app_lib_database.$_$.o3; var ClazzNameAndTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.q; var ClazzEnrolmentWithLeavingReason = kotlin_com_ustadmobile_app_lib_database.$_$.a3; var Companion_instance_34 = kotlin_com_ustadmobile_app_lib_database.$_$.q6; var flowOf = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m1; var Clazz = kotlin_com_ustadmobile_app_lib_database.$_$.e3; var Companion_instance_35 = kotlin_com_ustadmobile_app_lib_database.$_$.s6; var ClazzLog = kotlin_com_ustadmobile_app_lib_database.$_$.c3; var shallowCopy_6 = kotlin_com_ustadmobile_app_lib_database.$_$.a2; var Companion_instance_36 = kotlin_com_ustadmobile_app_lib_database.$_$.t6; var Companion_instance_37 = kotlin_com_ustadmobile_app_lib_database.$_$.b6; var ClazzLogAttendanceRecord = kotlin_com_ustadmobile_app_lib_database.$_$.b3; var PersonAndClazzLogAttendanceRecord = kotlin_com_ustadmobile_app_lib_database.$_$.f1; var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1; var shallowCopy_7 = kotlin_com_ustadmobile_app_lib_database.$_$.q1; var ContentEntry = kotlin_com_ustadmobile_app_lib_database.$_$.n3; var AttemptsPersonListConst_instance = kotlin_com_ustadmobile_app_lib_database.$_$.w5; var firstOrNull_1 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e; var SessionTimeAndProgressInfoConst_instance = kotlin_com_ustadmobile_app_lib_database.$_$.u5; var StatementConst_instance = kotlin_com_ustadmobile_app_lib_database.$_$.v5; var ContentEntryAndDetail = kotlin_com_ustadmobile_app_lib_database.$_$.t; var ContentEntryVersion = kotlin_com_ustadmobile_app_lib_database.$_$.m3; var OfflineItemAndState = kotlin_com_ustadmobile_app_lib_database.$_$.c1; var Companion_instance_38 = kotlin_com_ustadmobile_app_lib_database.$_$.j8; var Companion_instance_39 = kotlin_com_ustadmobile_app_lib_database.$_$.y5; var shallowCopy_8 = kotlin_com_ustadmobile_app_lib_database.$_$.z1; var ContentEntryPicture2 = kotlin_com_ustadmobile_app_lib_database.$_$.j3; var ContentEntryAndContentJob = kotlin_com_ustadmobile_app_lib_database.$_$.s; var ContentEntryImportJob = kotlin_com_ustadmobile_app_lib_database.$_$.h3; var Companion_instance_40 = kotlin_com_ustadmobile_app_lib_database.$_$.x5; var setOf_0 = kotlin_kotlin.$_$.j9; var ContentEntryDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.n5; var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2; var CourseBlockAndPicture = kotlin_com_ustadmobile_app_lib_database.$_$.y; var CourseGroupMemberAndName = kotlin_com_ustadmobile_app_lib_database.$_$.t3; var CourseGroupMember = kotlin_com_ustadmobile_app_lib_database.$_$.u3; var Companion_instance_41 = kotlin_com_ustadmobile_app_lib_database.$_$.i7; var Companion_instance_42 = kotlin_com_ustadmobile_app_lib_database.$_$.j7; var Companion_instance_43 = kotlin_com_ustadmobile_app_lib_database.$_$.k7; var shallowCopy_9 = kotlin_com_ustadmobile_app_lib_database.$_$.u1; var CourseGroupSetDaoConstants_instance = kotlin_com_ustadmobile_app_lib_database.$_$.p5; var shallowCopy_10 = kotlin_com_ustadmobile_app_lib_database.$_$.r1; var DiscussionPost = kotlin_com_ustadmobile_app_lib_database.$_$.z3; var Companion_instance_44 = kotlin_com_ustadmobile_app_lib_database.$_$.q7; var printStackTrace = kotlin_kotlin.$_$.ij; var XML = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.d; var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.lj; var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1; var Site = kotlin_com_ustadmobile_app_lib_database.$_$.v4; var daysUntil = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.k; var Message = kotlin_com_ustadmobile_app_lib_database.$_$.h4; var NotImplementedError = kotlin_kotlin.$_$.ci; var shallowCopy_11 = kotlin_com_ustadmobile_app_lib_database.$_$.x1; var Companion_instance_45 = kotlin_com_ustadmobile_app_lib_database.$_$.a8; var PersonAndDisplayDetail = kotlin_com_ustadmobile_app_lib_database.$_$.j4; var EditAndViewPermission = kotlin_com_ustadmobile_app_lib_database.$_$.a1; var PersonPicture = kotlin_com_ustadmobile_app_lib_database.$_$.p4; var CentralAppConfigDbDataSource = kotlin_UstadMobile_lib_centralappconfigdb_common.$_$.b; var getSystemTimeInMillis = kotlin_com_ustadmobile_app_lib_util.$_$.b; var PersonDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.r5; var println = kotlin_kotlin.$_$.bb; var Settings = kotlin_com_russhwolf_multiplatform_settings.$_$.a; var get_lastIndex = kotlin_kotlin.$_$.e8; var SiteTermsAndLangName = kotlin_com_ustadmobile_app_lib_database.$_$.j1; var contains_0 = kotlin_kotlin.$_$.o6; var SiteTerms = kotlin_com_ustadmobile_app_lib_database.$_$.u4; var Companion_instance_46 = kotlin_com_ustadmobile_app_lib_database.$_$.h8; var shallowCopy_12 = kotlin_com_ustadmobile_app_lib_database.$_$.d2; var shallowCopy_13 = kotlin_com_ustadmobile_app_lib_database.$_$.p1; var mutableMapOf = kotlin_kotlin.$_$.r8; var addChild = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.d; var addChildNode = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.a; var FC = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react.$_$.a; var toUrlQueryString = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s; var json = kotlin_kotlin.$_$.lc; var KMutableProperty0 = kotlin_kotlin.$_$.td; var useEffect = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.i; var isSuccess = kotlin_io_ktor_ktor_http.$_$.h1; var TransferJobItemStatus_FAILED_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.d5; var TransferJob = kotlin_com_ustadmobile_app_lib_database.$_$.y4; var await_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i; var TransferJobItem = kotlin_com_ustadmobile_app_lib_database.$_$.x4; var TransferJobItemStatus_IN_PROGRESS_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.e5; var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y; var coroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j; var randomUuid = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c2; var fetch_0 = kotlin_org_jetbrains_kotlin_wrappers_kotlin_web.$_$.a; var IllegalStateException_init_$Create$_1 = kotlin_kotlin.$_$.c2; var Companion_getInstance_16 = kotlin_io_ktor_ktor_http.$_$.c; var TextContent = kotlin_io_ktor_ktor_http.$_$.q; var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b; var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.k; var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p; var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a; var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.d; var doorNodeAndVersionHeaders = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i; var IntCompanionObject_instance = kotlin_kotlin.$_$.y4; var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g2; var useRequiredContext = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.j; var getKClassFromExpression = kotlin_kotlin.$_$.d; var format = kotlin_dev_icerock_moko_resources.$_$.g; var XmlPullParserFactory = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.a; var XXStringHasherJs = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.b; var XXHasher64FactoryJs = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.a; var XXHasher64Factory = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.c; var Default_getInstance_0 = kotlin_kotlin.$_$.b5; var Antilog = kotlin_io_github_aakira_napier.$_$.h; var LogLevel_VERBOSE_getInstance = kotlin_io_github_aakira_napier.$_$.e; var LogLevel_DEBUG_getInstance = kotlin_io_github_aakira_napier.$_$.b; var toSet_0 = kotlin_org_jetbrains_kotlin_wrappers_kotlin_js.$_$.b; //endregion //region block: pre-declaration setMetadataFor(strings, 'strings', objectMeta); setMetadataFor(plurals, 'plurals', objectMeta); setMetadataFor(MR, 'MR', objectMeta); setMetadataFor(AccountRegisterOptions, 'AccountRegisterOptions', classMeta, VOID, VOID, AccountRegisterOptions); setMetadataFor(AdultAccountRequiredException, 'AdultAccountRequiredException', classMeta, IllegalStateException, VOID, AdultAccountRequiredException); setMetadataFor($setAuthCOROUTINE$1, '$setAuthCOROUTINE$1', classMeta, CoroutineImpl); setMetadataFor(AuthManager, 'AuthManager', classMeta, VOID, [DIAware], VOID, VOID, VOID, [2]); setMetadataFor(ConsentNotGrantedException, 'ConsentNotGrantedException', classMeta, IllegalStateException, VOID, ConsentNotGrantedException); setMetadataFor(Companion, 'Companion', objectMeta); setMetadataFor($serializer, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(LearningSpace, 'LearningSpace', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_11}); setMetadataFor(Companion_0, 'Companion', objectMeta); setMetadataFor(LearningSpaceScope, 'LearningSpaceScope', classMeta, VOID, VOID, LearningSpaceScope); setMetadataFor(Pbkdf2Params, 'Pbkdf2Params', classMeta, VOID, VOID, Pbkdf2Params); setMetadataFor(Companion_1, 'Companion', objectMeta); setMetadataFor($serializer_0, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(RegisterRequest, 'RegisterRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_12}); setMetadataFor(UnauthorizedException, 'UnauthorizedException', classMeta, IllegalStateException, VOID, UnauthorizedException); setMetadataFor(Companion_2, 'Companion', objectMeta); setMetadataFor($serializer_1, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UserSessionWithPersonAndLearningSpace, 'UserSessionWithPersonAndLearningSpace', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_13}); setMetadataFor(UstadAccountManager$slambda$slambda$slambda$slambda$slambda, 'UstadAccountManager$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda$slambda, 'UstadAccountManager$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda, 'UstadAccountManager$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda, 'UstadAccountManager$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda$slambda_1, 'UstadAccountManager$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda$slambda_1, 'UstadAccountManager$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda$slambda_1, 'UstadAccountManager$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UstadAccountManager$registerWithPasskey$slambda$slambda, 'UstadAccountManager$registerWithPasskey$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$register$slambda$slambda, 'UstadAccountManager$register$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$register$slambda$slambda_1, 'UstadAccountManager$register$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_3, 'Companion', objectMeta); setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0, 'sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0', classMeta); setMetadataFor(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0, 'sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0', classMeta); setMetadataFor(UstadAccountManager$slambda, 'UstadAccountManager$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$slambda_1, 'UstadAccountManager$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$makeNewTempGuestSession$slambda, 'UstadAccountManager$makeNewTempGuestSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$registerWithPasskey$slambda, 'UstadAccountManager$registerWithPasskey$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$register$slambda, 'UstadAccountManager$register$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$addSession$slambda, 'UstadAccountManager$addSession$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$loginWithPasskey$slambda, 'UstadAccountManager$loginWithPasskey$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadAccountManager$login$slambda, 'UstadAccountManager$login$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($activeSessionsListCOROUTINE$2, '$activeSessionsListCOROUTINE$2', classMeta, CoroutineImpl); setMetadataFor($activeSessionCountCOROUTINE$3, '$activeSessionCountCOROUTINE$3', classMeta, CoroutineImpl); setMetadataFor($addSessionCOROUTINE$4, '$addSessionCOROUTINE$4', classMeta, CoroutineImpl); setMetadataFor($endSessionCOROUTINE$6, '$endSessionCOROUTINE$6', classMeta, CoroutineImpl); setMetadataFor($getSiteFromDbOrLoadFromHttpCOROUTINE$7, '$getSiteFromDbOrLoadFromHttpCOROUTINE$7', classMeta, CoroutineImpl); setMetadataFor($startGuestSessionCOROUTINE$9, '$startGuestSessionCOROUTINE$9', classMeta, CoroutineImpl); setMetadataFor(UstadAccountManager, 'UstadAccountManager', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 4, 3, 5, 0]); setMetadataFor(Companion_4, 'Companion', objectMeta); setMetadataFor(Companion_5, 'Companion', objectMeta); setMetadataFor(Anchor, 'Anchor', classMeta, VOID, VOID, Anchor, VOID, {0: AnchorSerializer_getInstance}); setMetadataFor(AnchorSerializer, 'AnchorSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_6, 'Companion', objectMeta); setMetadataFor(Body, 'Body', classMeta, VOID, VOID, VOID, VOID, {0: BodySerializer_getInstance}); setMetadataFor(BodySerializer, 'BodySerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_7, 'Companion', objectMeta); setMetadataFor($serializer_2, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ListItem, 'ListItem', classMeta, VOID, VOID, ListItem, VOID, {0: $serializer_getInstance_14}); setMetadataFor(Companion_8, 'Companion', objectMeta); setMetadataFor($serializer_3, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavElement, 'NavElement', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_15}); setMetadataFor(Companion_9, 'Companion', objectMeta); setMetadataFor($serializer_4, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavigationDocument, 'NavigationDocument', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_16}); setMetadataFor(Companion_10, 'Companion', objectMeta); setMetadataFor($serializer_5, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(OrderedList, 'OrderedList', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_17}); setMetadataFor(Companion_11, 'Companion', objectMeta); setMetadataFor(Span, 'Span', classMeta, VOID, VOID, Span, VOID, {0: SpanSerializer_getInstance}); setMetadataFor(SpanSerializer, 'SpanSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Content, 'Content', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_18}); setMetadataFor(Companion_12, 'Companion', objectMeta); setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DocTitle, 'DocTitle', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_19}); setMetadataFor(Companion_13, 'Companion', objectMeta); setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Head, 'Head', classMeta, VOID, VOID, Head, VOID, {0: $serializer_getInstance_20}); setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavLabel, 'NavLabel', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_21}); setMetadataFor(Companion_14, 'Companion', objectMeta); setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavMap, 'NavMap', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_22}); setMetadataFor(Companion_15, 'Companion', objectMeta); setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavPoint, 'NavPoint', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_23}); setMetadataFor(Companion_16, 'Companion', objectMeta); setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NcxDocument, 'NcxDocument', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_24}); setMetadataFor(Companion_17, 'Companion', objectMeta); setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Text, 'Text', classMeta, VOID, VOID, Text, VOID, {0: $serializer_getInstance_25}); setMetadataFor(Companion_18, 'Companion', objectMeta); setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcCreator, 'DcCreator', classMeta, VOID, VOID, DcCreator, VOID, {0: $serializer_getInstance_26}); setMetadataFor(Companion_19, 'Companion', objectMeta); setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcDescription, 'DcDescription', classMeta, VOID, VOID, DcDescription, VOID, {0: $serializer_getInstance_27}); setMetadataFor(Companion_20, 'Companion', objectMeta); setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcIdentifier, 'DcIdentifier', classMeta, VOID, VOID, DcIdentifier, VOID, {0: $serializer_getInstance_28}); setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcLanguage, 'DcLanguage', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_29}); setMetadataFor(Companion_21, 'Companion', objectMeta); setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcTitle, 'DcTitle', classMeta, VOID, VOID, DcTitle, VOID, {0: $serializer_getInstance_30}); setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Item, 'Item', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_31}); setMetadataFor(Companion_22, 'Companion', objectMeta); setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ItemRef, 'ItemRef', classMeta, VOID, VOID, ItemRef, VOID, {0: $serializer_getInstance_32}); setMetadataFor(Companion_23, 'Companion', objectMeta); setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Manifest, 'Manifest', classMeta, VOID, VOID, Manifest, VOID, {0: $serializer_getInstance_33}); setMetadataFor(Companion_24, 'Companion', objectMeta); setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Meta, 'Meta', classMeta, VOID, VOID, Meta, VOID, {0: $serializer_getInstance_34}); setMetadataFor(Companion_25, 'Companion', objectMeta); setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Metadata, 'Metadata', classMeta, VOID, VOID, Metadata, VOID, {0: $serializer_getInstance_35}); setMetadataFor(Companion_26, 'Companion', objectMeta); setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PackageDocument, 'PackageDocument', classMeta, VOID, VOID, PackageDocument, VOID, {0: $serializer_getInstance_36}); setMetadataFor(Companion_27, 'Companion', objectMeta); setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Spine, 'Spine', classMeta, VOID, VOID, Spine, VOID, {0: $serializer_getInstance_37}); setMetadataFor(Companion_28, 'Companion', objectMeta); setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentManifest, 'ContentManifest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_38}); setMetadataFor(Companion_29, 'Companion', objectMeta); setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentManifestEntry, 'ContentManifestEntry', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_39}); setMetadataFor(Companion_30, 'Companion', objectMeta); setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MediaContentInfo, 'MediaContentInfo', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_40}); setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MediaSource, 'MediaSource', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_41}); setMetadataFor(Companion_31, 'Companion', objectMeta); setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SubtitleTrack, 'SubtitleTrack', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_42}); setMetadataFor(InvalidContentException, 'InvalidContentException', classMeta, IllegalArgumentException); setMetadataFor(Companion_32, 'Companion', objectMeta); setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MetadataResult, 'MetadataResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_43}); setMetadataFor(PersonConstants, 'PersonConstants', objectMeta); setMetadataFor(SubmissionConstants, 'SubmissionConstants', objectMeta); setMetadataFor(TerminologyKeys, 'TerminologyKeys', objectMeta); setMetadataFor($invokeCOROUTINE$10, '$invokeCOROUTINE$10', classMeta, CoroutineImpl); setMetadataFor(CheckRegistrationAllowedUseCase, 'CheckRegistrationAllowedUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CreateNewLocalAccountUseCase, 'CreateNewLocalAccountUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SetPasswordUseCase, 'SetPasswordUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor(AssignmentSubmissionException, 'AssignmentSubmissionException', classMeta, Exception); setMetadataFor(AccountIsNotSubmitterException, 'AccountIsNotSubmitterException', classMeta, AssignmentSubmissionException); setMetadataFor(AssignmentAlreadySubmittedException, 'AssignmentAlreadySubmittedException', classMeta, AssignmentSubmissionException); setMetadataFor(AssignmentDeadlinePassedException, 'AssignmentDeadlinePassedException', classMeta, AssignmentSubmissionException); setMetadataFor(AssignmentTextTooLongException, 'AssignmentTextTooLongException', classMeta, AssignmentSubmissionException); setMetadataFor(SubmitAssignmentResult, 'SubmitAssignmentResult', classMeta); setMetadataFor($invokeCOROUTINE$11, '$invokeCOROUTINE$11', classMeta, CoroutineImpl); setMetadataFor(SubmitAssignmentUseCase, 'SubmitAssignmentUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor(SubmitMarkUseCase$invoke$slambda, 'SubmitMarkUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$12, '$invokeCOROUTINE$12', classMeta, CoroutineImpl); setMetadataFor(SubmitMarkUseCase, 'SubmitMarkUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [7]); setMetadataFor(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda, 'GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$14, '$collectCOROUTINE$14', classMeta, CoroutineImpl); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$13, '$invokeCOROUTINE$13', classMeta, CoroutineImpl); setMetadataFor(GetAssignmentSubmitterNameUseCase, 'GetAssignmentSubmitterNameUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ZipFileUseCase, 'ZipFileUseCase', interfaceMeta); setMetadataFor(BlobTransferJobItem, 'BlobTransferJobItem', classMeta); setMetadataFor(BlobTransferProgressUpdate, 'BlobTransferProgressUpdate', classMeta); setMetadataFor(BlobTransferStatusUpdate, 'BlobTransferStatusUpdate', classMeta); setMetadataFor(CancelDownloadUseCase, 'CancelDownloadUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(MakeContentEntryAvailableOfflineUseCase, 'MakeContentEntryAvailableOfflineUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OpenBlobItem, 'OpenBlobItem', classMeta); setMetadataFor($invokeCOROUTINE$16, '$invokeCOROUTINE$16', classMeta, CoroutineImpl); setMetadataFor(OpenBlobUiUseCase, 'OpenBlobUiUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(OpenBlobIntent, 'OpenBlobIntent', classMeta, Enum); setMetadataFor(OpenBlobUseCase, 'OpenBlobUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(OpeningBlobState, 'OpeningBlobState', classMeta); setMetadataFor(SaveAndUploadLocalUrisUseCase$updateUris$slambda, 'SaveAndUploadLocalUrisUseCase$updateUris$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$17, '$invokeCOROUTINE$17', classMeta, CoroutineImpl); setMetadataFor(SaveAndUploadLocalUrisUseCase, 'SaveAndUploadLocalUrisUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_33, 'Companion', objectMeta); setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SaveLocalUriAsBlobItem, 'SaveLocalUriAsBlobItem', classMeta); setMetadataFor(SavedBlob, 'SavedBlob', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_44}); function invoke$default(localUrisToSave, onTransferJobItemCreated, $completion, $super) { var tmp; if (onTransferJobItemCreated === VOID) { tmp = SaveLocalUrisAsBlobsUseCase$invoke$lambda; } else { tmp = onTransferJobItemCreated; } onTransferJobItemCreated = tmp; return $super === VOID ? this.cos(localUrisToSave, onTransferJobItemCreated, $completion) : $super.cos.call(this, localUrisToSave, onTransferJobItemCreated, $completion); } setMetadataFor(SaveLocalUrisAsBlobsUseCase, 'SaveLocalUrisAsBlobsUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(EnqueueSavePictureUseCase, 'EnqueueSavePictureUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(Companion_34, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$18, '$invokeCOROUTINE$18', classMeta, CoroutineImpl); setMetadataFor(SavePictureUseCase, 'SavePictureUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(TransferJobItemStatusUpdater$updateJob$slambda, 'TransferJobItemStatusUpdater$updateJob$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemStatusUpdater$commit$slambda, 'TransferJobItemStatusUpdater$commit$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($commitCOROUTINE$19, '$commitCOROUTINE$19', classMeta, CoroutineImpl); setMetadataFor($onFinishedCOROUTINE$20, '$onFinishedCOROUTINE$20', classMeta, CoroutineImpl); setMetadataFor(TransferJobItemStatusUpdater, 'TransferJobItemStatusUpdater', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$21, '$invokeCOROUTINE$21', classMeta, CoroutineImpl); setMetadataFor(UpdateTransferJobItemEtagUseCase, 'UpdateTransferJobItemEtagUseCase', classMeta, VOID, VOID, UpdateTransferJobItemEtagUseCase, VOID, VOID, [4]); setMetadataFor(Companion_35, 'Companion', objectMeta); setMetadataFor(CancelBlobUploadClientUseCase, 'CancelBlobUploadClientUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnqueueBlobUploadItem, 'EnqueueBlobUploadItem', classMeta); function invoke$default_0(items, batchUuid, chunkSize, tableId, entityUid, $completion, $super) { var tmp; if (chunkSize === VOID) { tmp = 524288; } else { tmp = chunkSize; } chunkSize = tmp; tableId = tableId === VOID ? 0 : tableId; entityUid = entityUid === VOID ? new Long(0, 0) : entityUid; return $super === VOID ? this.vox(items, batchUuid, chunkSize, tableId, entityUid, $completion) : $super.vox.call(this, items, batchUuid, chunkSize, tableId, entityUid, $completion); } setMetadataFor(EnqueueBlobUploadClientUseCase, 'EnqueueBlobUploadClientUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($getLocalUriIfRemoteCOROUTINE$22, '$getLocalUriIfRemoteCOROUTINE$22', classMeta, CoroutineImpl); function invoke$default_1(url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion, $super) { progressInterval = progressInterval === VOID ? 500 : progressInterval; var tmp; if (onStateChange === VOID) { tmp = GetStoragePathForUrlUseCase$invoke$lambda; } else { tmp = onStateChange; } onStateChange = tmp; inflateToTmpFileIfCompressed = inflateToTmpFileIfCompressed === VOID ? false : inflateToTmpFileIfCompressed; return $super === VOID ? this.loy(url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion) : $super.loy.call(this, url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion); } setMetadataFor(GetStoragePathForUrlUseCase, 'GetStoragePathForUrlUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(CreateNewClazzUseCase$invoke$slambda, 'CreateNewClazzUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CreateNewClazzUseCase, 'CreateNewClazzUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AlreadyEnroledInClassException, 'AlreadyEnroledInClassException', classMeta, Exception, VOID, AlreadyEnroledInClassException); setMetadataFor(AlreadyHasPendingRequestException, 'AlreadyHasPendingRequestException', classMeta, IllegalStateException, VOID, AlreadyHasPendingRequestException); setMetadataFor(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda, 'ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$23, '$invokeCOROUTINE$23', classMeta, CoroutineImpl); setMetadataFor(IApproveOrDeclinePendingEnrolmentRequestUseCase, 'IApproveOrDeclinePendingEnrolmentRequestUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ApproveOrDeclinePendingEnrolmentUseCase, 'ApproveOrDeclinePendingEnrolmentUseCase', classMeta, VOID, [IApproveOrDeclinePendingEnrolmentRequestUseCase], VOID, VOID, VOID, [2]); setMetadataFor(EnrolIntoCourseUseCase$invoke$slambda, 'EnrolIntoCourseUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$24, '$invokeCOROUTINE$24', classMeta, CoroutineImpl); setMetadataFor(EnrolIntoCourseUseCase, 'EnrolIntoCourseUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$25, '$invokeCOROUTINE$25', classMeta, CoroutineImpl); setMetadataFor(RequestEnrolmentUseCase, 'RequestEnrolmentUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(SetClipboardStringUseCase, 'SetClipboardStringUseCase', interfaceMeta); setMetadataFor(Companion_36, 'Companion', objectMeta); setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CompressParams, 'CompressParams', classMeta, VOID, VOID, CompressParams, VOID, {0: $serializer_getInstance_45}); setMetadataFor(CompressResult, 'CompressResult', classMeta); function invoke$default_2(fromUri, toUri, params, onProgress, $completion, $super) { toUri = toUri === VOID ? null : toUri; params = params === VOID ? new CompressParams() : params; onProgress = onProgress === VOID ? null : onProgress; return $super === VOID ? this.ep2(fromUri, toUri, params, onProgress, $completion) : $super.ep2.call(this, fromUri, toUri, params, onProgress, $completion); } setMetadataFor(CompressUseCase, 'CompressUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(Companion_37, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(CompressionLevel, 'CompressionLevel', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_55}); setMetadataFor(CompressionLevelSerializer, 'CompressionLevelSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(ContentManifestMap, 'ContentManifestMap', classMeta); setMetadataFor(DeleteContentEntryParentChildJoinUseCase$invoke$slambda, 'DeleteContentEntryParentChildJoinUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeleteContentEntryParentChildJoinUseCase, 'DeleteContentEntryParentChildJoinUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(Companion_38, 'Companion', objectMeta); setMetadataFor(ContentEntryGetMetaDataFromUriUseCase, 'ContentEntryGetMetaDataFromUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(ContentEntryGetMetadataStatus, 'ContentEntryGetMetadataStatus', classMeta, VOID, VOID, ContentEntryGetMetadataStatus); setMetadataFor(UnsupportedContentException, 'UnsupportedContentException', classMeta, Exception); setMetadataFor(Companion_39, 'Companion', objectMeta); function invoke$default_3(subtitleTrackUri, filename, locale, $completion, $super) { locale = locale === VOID ? null : locale; return $super === VOID ? this.zp3(subtitleTrackUri, filename, locale, $completion) : $super.zp3.call(this, subtitleTrackUri, filename, locale, $completion); } setMetadataFor(GetSubtitleTrackFromUriUseCase, 'GetSubtitleTrackFromUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(CancelImportContentEntryUseCase, 'CancelImportContentEntryUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$26, '$invokeCOROUTINE$26', classMeta, CoroutineImpl); setMetadataFor(CancelRemoteContentEntryImportUseCase, 'CancelRemoteContentEntryImportUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$27, '$invokeCOROUTINE$27', classMeta, CoroutineImpl); setMetadataFor(DismissRemoteContentEntryImportErrorUseCase, 'DismissRemoteContentEntryImportErrorUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(EnqueueContentEntryImportUseCase, 'EnqueueContentEntryImportUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$28, '$invokeCOROUTINE$28', classMeta, CoroutineImpl); setMetadataFor(EnqueueImportContentEntryUseCaseRemote, 'EnqueueImportContentEntryUseCaseRemote', classMeta, VOID, [EnqueueContentEntryImportUseCase], VOID, VOID, VOID, [1]); setMetadataFor(Companion_40, 'Companion', objectMeta); setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ImportRequest, 'ImportRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_46}); setMetadataFor(LaunchContentEntryVersionUseCase, 'LaunchContentEntryVersionUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor(DefaultLaunchContentEntryVersionUseCase, 'DefaultLaunchContentEntryVersionUseCase', classMeta, VOID, [LaunchContentEntryVersionUseCase], DefaultLaunchContentEntryVersionUseCase, VOID, VOID, [5]); setMetadataFor(LaunchResult, 'LaunchResult', classMeta, VOID, VOID, LaunchResult); setMetadataFor(LaunchEpubUseCase, 'LaunchEpubUseCase', interfaceMeta, VOID, [LaunchContentEntryVersionUseCase], VOID, VOID, VOID, [5]); setMetadataFor(LaunchXapiUseCase, 'LaunchXapiUseCase', interfaceMeta, VOID, [LaunchContentEntryVersionUseCase], VOID, VOID, VOID, [5]); setMetadataFor(XapiLaunchHrefResult, 'XapiLaunchHrefResult', classMeta); setMetadataFor(ResolveXapiLaunchHrefUseCase$invoke$slambda, 'ResolveXapiLaunchHrefUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$29, '$invokeCOROUTINE$29', classMeta, CoroutineImpl); setMetadataFor(ResolveXapiLaunchHrefUseCase, 'ResolveXapiLaunchHrefUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(MoveContentEntriesUseCase, 'MoveContentEntriesUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(SaveContentEntryUseCase$invoke$slambda, 'SaveContentEntryUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$30, '$invokeCOROUTINE$30', classMeta, CoroutineImpl); setMetadataFor(SaveContentEntryUseCase, 'SaveContentEntryUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(AddOrUpdateCourseBlockUseCase, 'AddOrUpdateCourseBlockUseCase', classMeta, VOID, VOID, AddOrUpdateCourseBlockUseCase); setMetadataFor(UpdateCourseBlocksOnReorderOrCommitUseCase, 'UpdateCourseBlocksOnReorderOrCommitUseCase', classMeta, VOID, VOID, UpdateCourseBlocksOnReorderOrCommitUseCase); setMetadataFor(CreatePasskeyResult, 'CreatePasskeyResult', classMeta); setMetadataFor(PasskeyCreatedResult, 'PasskeyCreatedResult', classMeta, CreatePasskeyResult); setMetadataFor(UserCanceledResult, 'UserCanceledResult', classMeta, CreatePasskeyResult); setMetadataFor(Error_1, 'Error', classMeta, CreatePasskeyResult); setMetadataFor(CreatePasskeyUseCase, 'CreatePasskeyUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CredentialResult, 'CredentialResult', classMeta); setMetadataFor(PasswordCredentialResult, 'PasswordCredentialResult', classMeta, CredentialResult); setMetadataFor(PasskeyCredentialResult, 'PasskeyCredentialResult', classMeta, CredentialResult); setMetadataFor(NoCredentialAvailableResult, 'NoCredentialAvailableResult', classMeta, CredentialResult); setMetadataFor(UserCanceledResult_0, 'UserCanceledResult', classMeta, CredentialResult); setMetadataFor(Error_2, 'Error', classMeta, CredentialResult); setMetadataFor(GetCredentialUseCase, 'GetCredentialUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_41, 'Companion', objectMeta); setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PasskeyVerifyResult, 'PasskeyVerifyResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_47}); setMetadataFor(SavePersonPasskeyUseCase, 'SavePersonPasskeyUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(DecodeUserHandleUseCase, 'DecodeUserHandleUseCase', interfaceMeta); setMetadataFor(Companion_42, 'Companion', objectMeta); setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AuthenticationExtensionsClientOutputsJSON, 'AuthenticationExtensionsClientOutputsJSON', classMeta, VOID, VOID, AuthenticationExtensionsClientOutputsJSON, VOID, {0: $serializer_getInstance_48}); setMetadataFor(Companion_43, 'Companion', objectMeta); setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AuthenticationExtensionsPRFOutputsJSON, 'AuthenticationExtensionsPRFOutputsJSON', classMeta, VOID, VOID, AuthenticationExtensionsPRFOutputsJSON, VOID, {0: $serializer_getInstance_49}); setMetadataFor(Companion_44, 'Companion', objectMeta); setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AuthenticationResponseJSON, 'AuthenticationResponseJSON', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_50}); setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AuthenticatorAssertionResponseJSON, 'AuthenticatorAssertionResponseJSON', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_51}); setMetadataFor(Companion_45, 'Companion', objectMeta); setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClientDataJSON, 'ClientDataJSON', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_52}); setMetadataFor(SavePasswordUseCase, 'SavePasswordUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(CreateCredentialUsernameUseCase, 'CreateCredentialUsernameUseCase', classMeta); setMetadataFor(ParseCredentialUsernameUseCase, 'ParseCredentialUsernameUseCase', classMeta, VOID, VOID, ParseCredentialUsernameUseCase); setMetadataFor(DeletePermanentlyUseCase, 'DeletePermanentlyUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(RestoreDeletedItemUseCase$invoke$slambda, 'RestoreDeletedItemUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(RestoreDeletedItemUseCase, 'RestoreDeletedItemUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$31, '$invokeCOROUTINE$31', classMeta, CoroutineImpl); setMetadataFor(GetEpubTableOfContentsUseCase, 'GetEpubTableOfContentsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(Companion_46, 'Companion', objectMeta); setMetadataFor(FilterUsernameUseCase, 'FilterUsernameUseCase', classMeta, VOID, VOID, FilterUsernameUseCase); setMetadataFor(GetApiUrlUseCase, 'GetApiUrlUseCase', interfaceMeta); setMetadataFor(GetApiUrlUseCaseDirect, 'GetApiUrlUseCaseDirect', classMeta, VOID, [GetApiUrlUseCase]); setMetadataFor(VersionInfo, 'VersionInfo', classMeta); setMetadataFor(GetVersionUseCase, 'GetVersionUseCase', interfaceMeta); setMetadataFor(HideKeyboardUseCase, 'HideKeyboardUseCase', interfaceMeta); setMetadataFor(GetHtmlContentDisplayEngineOptionsUseCase, 'GetHtmlContentDisplayEngineOptionsUseCase', classMeta); setMetadataFor(GetHtmlContentDisplayEngineUseCase, 'GetHtmlContentDisplayEngineUseCase', classMeta); setMetadataFor(Companion_47, 'Companion', objectMeta); setMetadataFor(SetHtmlContentDisplayEngineUseCase, 'SetHtmlContentDisplayEngineUseCase', classMeta); setMetadataFor(ExceptionWithStringResource, 'ExceptionWithStringResource', interfaceMeta); setMetadataFor(ClazzInviteRedeemException, 'ClazzInviteRedeemException', classMeta, Exception, [Exception, ExceptionWithStringResource]); setMetadataFor(ClazzInviteRedeemUseCase$invoke$slambda, 'ClazzInviteRedeemUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$32, '$invokeCOROUTINE$32', classMeta, CoroutineImpl); setMetadataFor(ClazzInviteRedeemUseCase, 'ClazzInviteRedeemUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(ClazzRedeemResult, 'ClazzRedeemResult', classMeta); setMetadataFor($invokeCOROUTINE$33, '$invokeCOROUTINE$33', classMeta, CoroutineImpl); setMetadataFor(EnrollToCourseFromInviteCodeUseCase, 'EnrollToCourseFromInviteCodeUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ParseInviteUseCase, 'ParseInviteUseCase', classMeta); setMetadataFor(Companion_48, 'Companion', objectMeta); setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SendClazzInvitesRequest, 'SendClazzInvitesRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_53}); setMetadataFor(SendClazzInvitesUseCase, 'SendClazzInvitesUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$34, '$invokeCOROUTINE$34', classMeta, CoroutineImpl); setMetadataFor(SendClazzInvitesUseCaseSendToServerImpl, 'SendClazzInvitesUseCaseSendToServerImpl', classMeta, VOID, [SendClazzInvitesUseCase], VOID, VOID, VOID, [1]); setMetadataFor(SetLangResult, 'SetLangResult', classMeta); function invoke$default_4(uiLang, currentDestination, navController, navArgs, $super) { navArgs = navArgs === VOID ? emptyMap() : navArgs; return $super === VOID ? this.opi(uiLang, currentDestination, navController, navArgs) : $super.opi.call(this, uiLang, currentDestination, navController, navArgs); } setMetadataFor(SetLanguageUseCase, 'SetLanguageUseCase', interfaceMeta); setMetadataFor(LaunchOpenLicensesUseCase, 'LaunchOpenLicensesUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(GoToLearningSpaceUseCase, 'GoToLearningSpaceUseCase', interfaceMeta); setMetadataFor(GetLocalAccountsSupportedUseCase, 'GetLocalAccountsSupportedUseCase', classMeta); setMetadataFor(MakeLinkUseCase, 'MakeLinkUseCase', classMeta); setMetadataFor($invokeCOROUTINE$35, '$invokeCOROUTINE$35', classMeta, CoroutineImpl); setMetadataFor(GetDefaultDestinationUseCase, 'GetDefaultDestinationUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(OnClickLinkUseCase, 'OnClickLinkUseCase', classMeta); setMetadataFor(Companion_49, 'Companion', objectMeta); setMetadataFor(LinkTarget, 'LinkTarget', classMeta, Enum); setMetadataFor(OpenExternalLinkUseCase, 'OpenExternalLinkUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$36, '$invokeCOROUTINE$36', classMeta, CoroutineImpl); setMetadataFor(UpdatePeerReviewAllocationUseCase, 'UpdatePeerReviewAllocationUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [7]); setMetadataFor(AddNewPersonUseCase$invoke$slambda, 'AddNewPersonUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddNewPersonUseCase, 'AddNewPersonUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor(BulkAddPersonException, 'BulkAddPersonException', classMeta, IllegalArgumentException); setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonsDataError, 'BulkAddPersonsDataError', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_54}); setMetadataFor(BulkAddPersonsFromLocalUriUseCase, 'BulkAddPersonsFromLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(Companion_50, 'Companion', objectMeta); setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddUsersResult, 'BulkAddUsersResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_55}); setMetadataFor(IPhoneNumberUtil, 'IPhoneNumberUtil', interfaceMeta); setMetadataFor(OnClickPhoneNumUseCase, 'OnClickPhoneNumUseCase', interfaceMeta); setMetadataFor(PhoneNumValidatorUseCase, 'PhoneNumValidatorUseCase', interfaceMeta); setMetadataFor(OnClickEmailUseCase, 'OnClickEmailUseCase', interfaceMeta); setMetadataFor(ShareAppUseCase, 'ShareAppUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ShareTextUseCase, 'ShareTextUseCase', interfaceMeta); setMetadataFor(GetShowPoweredByUseCase, 'GetShowPoweredByUseCase', classMeta); setMetadataFor(Companion_51, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$37, '$invokeCOROUTINE$37', classMeta, CoroutineImpl); setMetadataFor(GetLocaleForSiteTermsUseCase, 'GetLocaleForSiteTermsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(OnClickSendSmsUseCase, 'OnClickSendSmsUseCase', interfaceMeta); setMetadataFor(Companion_52, 'Companion', objectMeta); setMetadataFor(DismissSocialWarningUseCase, 'DismissSocialWarningUseCase', classMeta); setMetadataFor(Companion_53, 'Companion', objectMeta); setMetadataFor(ShowSocialWarningUseCase, 'ShowSocialWarningUseCase', classMeta); setMetadataFor(GetOfflineStorageAvailableSpace, 'GetOfflineStorageAvailableSpace', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_54, 'Companion', objectMeta); setMetadataFor(GetOfflineStorageOptionsUseCase, 'GetOfflineStorageOptionsUseCase', interfaceMeta); setMetadataFor(GetOfflineStorageSettingUseCase, 'GetOfflineStorageSettingUseCase', classMeta); setMetadataFor(OfflineStorageOption, 'OfflineStorageOption', classMeta); setMetadataFor(SetOfflineStorageSettingUseCase, 'SetOfflineStorageSettingUseCase', classMeta); setMetadataFor(DeleteUrisUseCase, 'DeleteUrisUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(IsTempFileCheckerUseCase, 'IsTempFileCheckerUseCase', interfaceMeta); setMetadataFor(ChunkIterator, 'ChunkIterator', classMeta, VOID, [Iterator]); setMetadataFor(Chunk, 'Chunk', classMeta); setMetadataFor(ChunkInfo, 'ChunkInfo', classMeta); setMetadataFor(UploadProgress, 'UploadProgress', classMeta); setMetadataFor(LastChunkResponse, 'LastChunkResponse', classMeta); function invoke$default_5(uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion, $super) { fromByte = fromByte === VOID ? new Long(0, 0) : fromByte; chunkSize = chunkSize === VOID ? get_DEFAULT_CHUNK_SIZE() : chunkSize; var tmp; if (onProgress === VOID) { tmp = ChunkedUploadClientLocalUriUseCase$invoke$lambda; } else { tmp = onProgress; } onProgress = tmp; var tmp_0; if (onStatusChange === VOID) { tmp_0 = ChunkedUploadClientLocalUriUseCase$invoke$lambda_0; } else { tmp_0 = onStatusChange; } onStatusChange = tmp_0; lastChunkHeaders = lastChunkHeaders === VOID ? null : lastChunkHeaders; return $super === VOID ? this.kpo(uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) : $super.kpo.call(this, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion); } setMetadataFor(ChunkedUploadClientLocalUriUseCase, 'ChunkedUploadClientLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [8]); setMetadataFor(Companion_55, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$41, '$invokeCOROUTINE$41', classMeta, CoroutineImpl); setMetadataFor(GetUsernameSuggestionUseCase, 'GetUsernameSuggestionUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StartUserSessionUseCase, 'StartUserSessionUseCase', classMeta); setMetadataFor(ValidateEmailUseCase, 'ValidateEmailUseCase', classMeta, VOID, VOID, ValidateEmailUseCase); setMetadataFor(Companion_56, 'Companion', objectMeta); setMetadataFor(ValidateUsernameUseCase, 'ValidateUsernameUseCase', classMeta, VOID, VOID, ValidateUsernameUseCase); setMetadataFor(Companion_57, 'Companion', objectMeta); setMetadataFor(ValidationResult, 'ValidationResult', classMeta, VOID, VOID, ValidationResult); setMetadataFor(StoreActivitiesUseCase$invoke$slambda, 'StoreActivitiesUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$42, '$invokeCOROUTINE$42', classMeta, CoroutineImpl); setMetadataFor(StoreActivitiesUseCase, 'StoreActivitiesUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(XapiException, 'XapiException', classMeta, Exception); setMetadataFor(XapiJson, 'XapiJson', classMeta, VOID, VOID, XapiJson); setMetadataFor(StatementStoreResult, 'StatementStoreResult', classMeta); setMetadataFor(XapiStatementResource$storeStatements$slambda, 'XapiStatementResource$storeStatements$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($storeStatementsCOROUTINE$43, '$storeStatementsCOROUTINE$43', classMeta, CoroutineImpl); setMetadataFor($postCOROUTINE$45, '$postCOROUTINE$45', classMeta, CoroutineImpl); setMetadataFor(XapiStatementResource, 'XapiStatementResource', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 3]); setMetadataFor(XapiGroupAndPersonUidMap, 'XapiGroupAndPersonUidMap', classMeta); setMetadataFor($invokeCOROUTINE$47, '$invokeCOROUTINE$47', classMeta, CoroutineImpl); setMetadataFor(CreateXapiGroupForCourseGroupUseCase, 'CreateXapiGroupForCourseGroupUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($insertOrUpdateActorsIfNameChangedCOROUTINE$48, '$insertOrUpdateActorsIfNameChangedCOROUTINE$48', classMeta, CoroutineImpl); setMetadataFor($insertOrUpdateIfLastModChangedCOROUTINE$49, '$insertOrUpdateIfLastModChangedCOROUTINE$49', classMeta, CoroutineImpl); setMetadataFor(FormattedStatementResponse, 'FormattedStatementResponse', classMeta); setMetadataFor(Companion_58, 'Companion', objectMeta); setMetadataFor(FormatStatementResponseUseCase$invoke$slambda, 'FormatStatementResponseUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(FormatStatementResponseUseCase, 'FormatStatementResponseUseCase', classMeta); setMetadataFor(Companion_59, 'Companion', objectMeta); setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Attachment, 'Attachment', classMeta, VOID, VOID, Attachment, VOID, {0: $serializer_getInstance_56}); setMetadataFor(Companion_60, 'Companion', objectMeta); setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiAccount, 'XapiAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_57}); setMetadataFor(Companion_61, 'Companion', objectMeta); setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Interaction, 'Interaction', classMeta, VOID, VOID, Interaction, VOID, {0: $serializer_getInstance_58}); setMetadataFor(Companion_62, 'Companion', objectMeta); setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivity, 'XapiActivity', classMeta, VOID, VOID, XapiActivity, VOID, {0: $serializer_getInstance_59}); setMetadataFor(ActivityEntities, 'ActivityEntities', classMeta); setMetadataFor(Companion_63, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiActor, 'XapiActor', interfaceMeta, VOID, VOID, VOID, VOID, {0: XapiActorSerializer_getInstance}); setMetadataFor(XapiActorSerializer, 'XapiActorSerializer', objectMeta, JsonContentPolymorphicSerializer); setMetadataFor(ActorEntities, 'ActorEntities', classMeta); setMetadataFor(Companion_64, 'Companion', objectMeta); setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementObject, 'XapiStatementObject', interfaceMeta, VOID, VOID, VOID, VOID, {0: XapiStatementObjectSerializer_getInstance}); setMetadataFor(XapiAgent, 'XapiAgent', classMeta, VOID, [XapiActor, XapiStatementObject], XapiAgent, VOID, {0: $serializer_getInstance_60}); setMetadataFor(Companion_65, 'Companion', objectMeta); setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContext, 'XapiContext', classMeta, VOID, VOID, XapiContext, VOID, {0: $serializer_getInstance_61}); setMetadataFor(Companion_66, 'Companion', objectMeta); setMetadataFor(XapiContextActivities, 'XapiContextActivities', classMeta, VOID, VOID, XapiContextActivities, VOID, {0: XapiContextActivitiesSerializer_getInstance}); setMetadataFor(XapiContextActivitiesSerializer, 'XapiContextActivitiesSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_67, 'Companion', objectMeta); setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContextActivitiesSurrogate, 'XapiContextActivitiesSurrogate', classMeta, VOID, VOID, XapiContextActivitiesSurrogate, VOID, {0: $serializer_getInstance_62}); setMetadataFor(Companion_68, 'Companion', objectMeta); setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiGroup, 'XapiGroup', classMeta, VOID, [XapiActor, XapiStatementObject], XapiGroup, VOID, {0: $serializer_getInstance_63}); setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(Companion_69, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiInteractionType, 'XapiInteractionType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_87}); setMetadataFor(XapiInteractionTypeSerializer, 'XapiInteractionTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_70, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiObjectType, 'XapiObjectType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_88}); setMetadataFor(XapiObjectTypeSerializer, 'XapiObjectTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_71, 'Companion', objectMeta); setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Score, 'Score', classMeta, VOID, VOID, Score, VOID, {0: $serializer_getInstance_64}); setMetadataFor(Companion_72, 'Companion', objectMeta); setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiResult, 'XapiResult', classMeta, VOID, VOID, XapiResult, VOID, {0: $serializer_getInstance_65}); setMetadataFor(Companion_73, 'Companion', objectMeta); setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatement, 'XapiStatement', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_66}); setMetadataFor(StatementEntities, 'StatementEntities', classMeta, VOID, VOID, StatementEntities); setMetadataFor(XapiStatementObjectSerializer, 'XapiStatementObjectSerializer', objectMeta, JsonContentPolymorphicSerializer); setMetadataFor(Companion_74, 'Companion', objectMeta); setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivityStatementObject, 'XapiActivityStatementObject', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_67}); setMetadataFor(Companion_75, 'Companion', objectMeta); setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementRef, 'XapiStatementRef', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_68}); setMetadataFor(Companion_76, 'Companion', objectMeta); setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiVerb, 'XapiVerb', classMeta, VOID, VOID, XapiVerb, VOID, {0: $serializer_getInstance_69}); setMetadataFor(VerbEntities, 'VerbEntities', classMeta); setMetadataFor(NonInteractiveContentXapiStatementRecorder$onComplete$slambda, 'NonInteractiveContentXapiStatementRecorder$onComplete$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(NonInteractiveContentXapiStatementRecorder, 'NonInteractiveContentXapiStatementRecorder', classMeta); setMetadataFor(NonInteractiveContentXapiStatementRecorderFactory, 'NonInteractiveContentXapiStatementRecorderFactory', classMeta); setMetadataFor(SaveStatementOnClearUseCase, 'SaveStatementOnClearUseCase', interfaceMeta); setMetadataFor(SaveStatementOnUnloadUseCase, 'SaveStatementOnUnloadUseCase', interfaceMeta, VOID, [SaveStatementOnClearUseCase]); setMetadataFor(Companion_77, 'Companion', objectMeta); setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementsAndSession, 'XapiStatementsAndSession', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_70}); setMetadataFor(ResumeOrStartXapiSessionUseCase, 'ResumeOrStartXapiSessionUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [7]); setMetadataFor(UstadMobileConstants, 'UstadMobileConstants', objectMeta); setMetadataFor(Companion_78, 'Companion', objectMeta); setMetadataFor(UstadGoOptions, 'UstadGoOptions', classMeta, VOID, VOID, UstadGoOptions); setMetadataFor(UiLanguage, 'UiLanguage', classMeta); setMetadataFor(Companion_79, 'Companion', objectMeta); setMetadataFor(UstadMobileSystemCommon, 'UstadMobileSystemCommon', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ActionBarButtonUiState, 'ActionBarButtonUiState', classMeta, VOID, VOID, ActionBarButtonUiState); setMetadataFor(AppActionButton, 'AppActionButton', classMeta); setMetadataFor(AppBarColors, 'AppBarColors', classMeta, Enum); setMetadataFor(AppBarSearchUiState, 'AppBarSearchUiState', classMeta, VOID, VOID, AppBarSearchUiState); setMetadataFor(AppStateIcon, 'AppStateIcon', classMeta, Enum); setMetadataFor(AppUiState, 'AppUiState', classMeta, VOID, VOID, AppUiState); setMetadataFor(FabIcon, 'FabIcon', classMeta, Enum); setMetadataFor(FabUiState, 'FabUiState', classMeta, VOID, VOID, FabUiState); setMetadataFor(State, 'State', classMeta, Enum); setMetadataFor(Companion_80, 'Companion', objectMeta); setMetadataFor(LoadingUiState, 'LoadingUiState', classMeta, VOID, VOID, LoadingUiState); setMetadataFor(OverflowItem, 'OverflowItem', classMeta); setMetadataFor(Snack, 'Snack', classMeta); setMetadataFor(SnackBarDispatcher, 'SnackBarDispatcher', interfaceMeta); setMetadataFor(TabItem, 'TabItem', classMeta); setMetadataFor(UstadContextMenuItem, 'UstadContextMenuItem', classMeta); setMetadataFor(UstadBuildConfig, 'UstadBuildConfig', interfaceMeta); setMetadataFor(BuildConfigMap, 'BuildConfigMap', classMeta, VOID, [UstadBuildConfig]); setMetadataFor(Companion_81, 'Companion', objectMeta); setMetadataFor(GenderConfig, 'GenderConfig', classMeta, VOID, VOID, GenderConfig); setMetadataFor(SettingsLocaleSettingDelegate, 'SettingsLocaleSettingDelegate', classMeta); setMetadataFor(Companion_82, 'Companion', objectMeta); setMetadataFor(SupportedLanguagesConfig, 'SupportedLanguagesConfig', classMeta); setMetadataFor(Companion_83, 'Companion', objectMeta); setMetadataFor(SystemUrlConfig, 'SystemUrlConfig', classMeta); setMetadataFor(Companion_84, 'Companion', objectMeta); setMetadataFor(Companion_85, 'Companion', objectMeta); setMetadataFor(CourseTerminologyStrings, 'CourseTerminologyStrings', classMeta); setMetadataFor(TerminologyEntry, 'TerminologyEntry', classMeta); setMetadataFor(ClazzEnrolmentListConstants, 'ClazzEnrolmentListConstants', objectMeta); setMetadataFor(ConditionConstants, 'ConditionConstants', objectMeta); setMetadataFor(ContentCompletionStatusConstants, 'ContentCompletionStatusConstants', objectMeta); setMetadataFor(EnrolmentPolicyConstants, 'EnrolmentPolicyConstants', objectMeta); setMetadataFor(FieldConstants, 'FieldConstants', objectMeta); setMetadataFor(LicenceConstants, 'LicenceConstants', objectMeta); setMetadataFor(OutcomeConstants, 'OutcomeConstants', objectMeta); setMetadataFor(PersonConstants_0, 'PersonConstants', objectMeta); setMetadataFor(PersonParentJoinConstants, 'PersonParentJoinConstants', objectMeta); setMetadataFor(RoleConstants, 'RoleConstants', objectMeta); setMetadataFor(ScheduleConstants, 'ScheduleConstants', objectMeta); setMetadataFor(SubmissionPolicyConstants, 'SubmissionPolicyConstants', objectMeta); function navigate$default(viewName, args, goOptions, $super) { goOptions = goOptions === VOID ? Companion_getInstance_96().xq4_1 : goOptions; var tmp; if ($super === VOID) { this.gqa(viewName, args, goOptions); tmp = Unit_instance; } else { tmp = $super.gqa.call(this, viewName, args, goOptions); } return tmp; } setMetadataFor(UstadNavController, 'UstadNavController', interfaceMeta); setMetadataFor(CommandFlowUstadNavController, 'CommandFlowUstadNavController', classMeta, VOID, [UstadNavController], CommandFlowUstadNavController); setMetadataFor(NavCommand, 'NavCommand', classMeta); setMetadataFor(NavigateNavCommand, 'NavigateNavCommand', classMeta, NavCommand); setMetadataFor(PopNavCommand, 'PopNavCommand', classMeta, NavCommand); setMetadataFor(NavResult, 'NavResult', classMeta); setMetadataFor(NavResultDest, 'NavResultDest', classMeta); setMetadataFor(NavResultReturner, 'NavResultReturner', interfaceMeta); setMetadataFor(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda, 'NavResultReturnerImpl$resultFlowForKey$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$50, '$collectCOROUTINE$50', classMeta, CoroutineImpl); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_1, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(NavResultReturnerImpl, 'NavResultReturnerImpl', classMeta, VOID, [NavResultReturner], NavResultReturnerImpl); setMetadataFor(BitmaskFlag, 'BitmaskFlag', classMeta); setMetadataFor(ListPagingSource, 'ListPagingSource', classMeta, PagingSource, VOID, VOID, VOID, VOID, [1]); setMetadataFor(RefreshCommand, 'RefreshCommand', classMeta, VOID, VOID, RefreshCommand); setMetadataFor(Activity, 'Activity', classMeta); setMetadataFor(Companion_86, 'Companion', objectMeta); setMetadataFor(TinCanXML, 'TinCanXML', classMeta, VOID, VOID, TinCanXML); setMetadataFor(Companion_87, 'Companion', objectMeta); setMetadataFor(UsernameSuggestionUseCase, 'UsernameSuggestionUseCase', classMeta); setMetadataFor(UsernameErrorException, 'UsernameErrorException', classMeta, Exception); setMetadataFor(DiTag, 'DiTag', objectMeta); setMetadataFor(EventCollator2$receiveEvent$slambda, 'EventCollator2$receiveEvent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EventCollator2, 'EventCollator2', classMeta); setMetadataFor(Companion_88, 'Companion', objectMeta); setMetadataFor(MessageIdOption2, 'MessageIdOption2', classMeta); setMetadataFor(SortOrderOption, 'SortOrderOption', classMeta); setMetadataFor(UMFileUtil, 'UMFileUtil', objectMeta); setMetadataFor(Companion_89, 'Companion', objectMeta); setMetadataFor(UstadUrlComponents, 'UstadUrlComponents', classMeta); setMetadataFor($verifySiteCOROUTINE$51, '$verifySiteCOROUTINE$51', classMeta, CoroutineImpl); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_2, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(whenSubscribed$o$collect$slambda, 'whenSubscribed$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$52, '$collectCOROUTINE$52', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_1, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(whenSubscribed$slambda, 'whenSubscribed$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1, 'sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0', classMeta); setMetadataFor(navigateToLink$slambda, 'navigateToLink$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScopedGrantResult, 'ScopedGrantResult', classMeta); setMetadataFor($insertPersonAndGroupCOROUTINE$53, '$insertPersonAndGroupCOROUTINE$53', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfFalseCOROUTINE$54, '$localFirstThenRepoIfFalseCOROUTINE$54', classMeta, CoroutineImpl); setMetadataFor($grantScopedPermissionCOROUTINE$55, '$grantScopedPermissionCOROUTINE$55', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfNullCOROUTINE$56, '$localFirstThenRepoIfNullCOROUTINE$56', classMeta, CoroutineImpl); setMetadataFor(Companion_90, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(IStringValues, 'IStringValues', interfaceMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_108}); setMetadataFor(MapStringValues, 'MapStringValues', classMeta, VOID, [IStringValues]); setMetadataFor(StringValuesSerializer, 'StringValuesSerializer', classMeta, VOID, [KSerializer], StringValuesSerializer); setMetadataFor(Companion_91, 'Companion', objectMeta); setMetadataFor(Companion_92, 'Companion', objectMeta); setMetadataFor(Companion_93, 'Companion', objectMeta); setMetadataFor(Companion_94, 'Companion', objectMeta); setMetadataFor(Companion_95, 'Companion', objectMeta); setMetadataFor(Companion_96, 'Companion', objectMeta); setMetadataFor(Companion_97, 'Companion', objectMeta); setMetadataFor(Companion_98, 'Companion', objectMeta); setMetadataFor(ListViewMode, 'ListViewMode', classMeta, Enum); setMetadataFor(Companion_99, 'Companion', objectMeta); setMetadataFor(UstadViewModel, 'UstadViewModel', classMeta, ViewModel, [ViewModel, DIAware], VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(DetailViewModel, 'DetailViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ErrorReportUiState, 'ErrorReportUiState', classMeta, VOID, VOID, ErrorReportUiState); setMetadataFor(HolidayCalendarDetailUIState, 'HolidayCalendarDetailUIState', classMeta, VOID, VOID, HolidayCalendarDetailUIState); setMetadataFor(Companion_100, 'Companion', objectMeta); setMetadataFor(HolidayCalendarEditUiState, 'HolidayCalendarEditUiState', classMeta, VOID, VOID, HolidayCalendarEditUiState); setMetadataFor(Companion_101, 'Companion', objectMeta); setMetadataFor(HolidayCalendarListUiState, 'HolidayCalendarListUiState', classMeta, VOID, VOID, HolidayCalendarListUiState); setMetadataFor(LanguageDetailUiState, 'LanguageDetailUiState', classMeta, VOID, VOID, LanguageDetailUiState); setMetadataFor(LanguageEditUiState, 'LanguageEditUiState', classMeta, VOID, VOID, LanguageEditUiState); setMetadataFor(Companion_102, 'Companion', objectMeta); setMetadataFor(LanguageListUiState, 'LanguageListUiState', classMeta, VOID, VOID, LanguageListUiState); setMetadataFor(LeavingReasonEditViewModel$slambda$slambda, 'LeavingReasonEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonEditViewModel$slambda$slambda_1, 'LeavingReasonEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_103, 'Companion', objectMeta); setMetadataFor(LeavingReasonEditViewModel$slambda, 'LeavingReasonEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonEditViewModel$onEntityChanged$slambda, 'LeavingReasonEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadEditViewModel, 'UstadEditViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(LeavingReasonEditViewModel, 'LeavingReasonEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(LeavingReasonEditUiState, 'LeavingReasonEditUiState', classMeta, VOID, VOID, LeavingReasonEditUiState); setMetadataFor(Companion_104, 'Companion', objectMeta); setMetadataFor(ReportFilterEditUiState, 'ReportFilterEditUiState', classMeta, VOID, VOID, ReportFilterEditUiState); setMetadataFor(ScopedGrantDetailUiState, 'ScopedGrantDetailUiState', classMeta, VOID, VOID, ScopedGrantDetailUiState); setMetadataFor(Companion_105, 'Companion', objectMeta); setMetadataFor(ScopedGrantEditUiState, 'ScopedGrantEditUiState', classMeta, VOID, VOID, ScopedGrantEditUiState); setMetadataFor(Companion_106, 'Companion', objectMeta); setMetadataFor(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda, 'UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_107, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_3, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(UstadListViewModel$searchEvtCollator$slambda, 'UstadListViewModel$searchEvtCollator$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda, 'UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UstadListViewModel, 'UstadListViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(UstadViewModel$filteredResultFlowForKey$o$collect$slambda, 'UstadViewModel$filteredResultFlowForKey$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$60, '$collectCOROUTINE$60', classMeta, CoroutineImpl); setMetadataFor(Companion_108, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_4, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0, 'sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0', classMeta, VOID, [OpenExternalLinkUseCase]); setMetadataFor(_no_name_provided__qut3iv_2, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$getJson$slambda, 'UstadViewModel$getJson$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$setJson$slambda, 'UstadViewModel$setJson$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$launchIfHasPermission$slambda, 'UstadViewModel$launchIfHasPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$launchWithLoadingIndicator$slambda, 'UstadViewModel$launchWithLoadingIndicator$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($getJsonCOROUTINE$57, '$getJsonCOROUTINE$57', classMeta, CoroutineImpl); setMetadataFor($setJsonCOROUTINE$58, '$setJsonCOROUTINE$58', classMeta, CoroutineImpl); setMetadataFor($loadEntityCOROUTINE$59, '$loadEntityCOROUTINE$59', classMeta, CoroutineImpl); setMetadataFor(Companion_109, 'Companion', objectMeta); setMetadataFor(OpenLicensesViewModel, 'OpenLicensesViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(Companion_110, 'Companion', objectMeta); setMetadataFor(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda, 'AddAccountSelectNewOrExistingViewModel$getCredentials$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda, 'AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($goToNextDestAfterSignInCOROUTINE$61, '$goToNextDestAfterSignInCOROUTINE$61', classMeta, CoroutineImpl); setMetadataFor(AddAccountSelectNewOrExistingViewModel, 'AddAccountSelectNewOrExistingViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(AddAccountSelectNewOrExistingUiState, 'AddAccountSelectNewOrExistingUiState', classMeta, VOID, VOID, AddAccountSelectNewOrExistingUiState); setMetadataFor(Companion_111, 'Companion', objectMeta); setMetadataFor(AddAccountSelectNewOrExistingUserTypeViewModel, 'AddAccountSelectNewOrExistingUserTypeViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(AddAccountSelectNewOrExistingUserTypeUiState, 'AddAccountSelectNewOrExistingUserTypeUiState', classMeta, VOID, VOID, AddAccountSelectNewOrExistingUserTypeUiState); setMetadataFor(AccountListViewModel$slambda$slambda, 'AccountListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$slambda$slambda$slambda, 'AccountListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$slambda$slambda_1, 'AccountListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_112, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_5, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0, 'sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0', classMeta, VOID, [OpenExternalLinkUseCase]); setMetadataFor(AccountListViewModel$slambda, 'AccountListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$slambda_1, 'AccountListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickLogout$slambda, 'AccountListViewModel$onClickLogout$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickAddAccount$slambda, 'AccountListViewModel$onClickAddAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickAccount$slambda, 'AccountListViewModel$onClickAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickDeleteAccount$slambda, 'AccountListViewModel$onClickDeleteAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickOpenLicenses$slambda, 'AccountListViewModel$onClickOpenLicenses$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel, 'AccountListViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(AccountListUiState, 'AccountListUiState', classMeta, VOID, VOID, AccountListUiState); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_6, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(launchSetTitleFromClazzUid$slambda$slambda, 'launchSetTitleFromClazzUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(launchSetTitleFromClazzUid$slambda, 'launchSetTitleFromClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_7, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(collectClazzNameAndUpdateTitle$slambda, 'collectClazzNameAndUpdateTitle$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionConstants, 'CoursePermissionConstants', objectMeta); setMetadataFor(getTitleForCoursePermission$slambda, 'getTitleForCoursePermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(getTitleForCoursePermission$slambda_1, 'getTitleForCoursePermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($getTitleForCoursePermissionCOROUTINE$62, '$getTitleForCoursePermissionCOROUTINE$62', classMeta, CoroutineImpl); setMetadataFor(ClazzDetailViewModel$slambda$slambda$slambda$slambda, 'ClazzDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel$slambda$slambda$slambda, 'ClazzDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel$slambda$slambda, 'ClazzDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_113, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_8, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel$slambda, 'ClazzDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel, 'ClazzDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzDetailUiState, 'ClazzDetailUiState', classMeta, VOID, VOID, ClazzDetailUiState); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$63, '$collectCOROUTINE$63', classMeta, CoroutineImpl); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(_no_name_provided__qut3iv_3, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$64, '$collectCOROUTINE$64', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_4, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$65, '$collectCOROUTINE$65', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_5, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_114, 'Companion', objectMeta); setMetadataFor(ClazzAction, 'ClazzAction', classMeta, Enum); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_9, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda, 'ClazzDetailOverviewViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda_1, 'ClazzDetailOverviewViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$onClickCopyCourse$slambda, 'ClazzDetailOverviewViewModel$onClickCopyCourse$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel, 'ClazzDetailOverviewViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzDetailOverviewUiState, 'ClazzDetailOverviewUiState', classMeta, VOID, VOID, ClazzDetailOverviewUiState); setMetadataFor(Companion_115, 'Companion', objectMeta); setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CopyCourseResult, 'CopyCourseResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_71}); setMetadataFor($invokeCOROUTINE$66, '$invokeCOROUTINE$66', classMeta, CoroutineImpl); setMetadataFor(CopyCourseUseCase, 'CopyCourseUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_1, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_3, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_5, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_7, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_9, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda$slambda, 'ClazzEditViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_11, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_13, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_15, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_17, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda$slambda_19, 'ClazzEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_1, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_3, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_5, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_7, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_9, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_11, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_13, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda$slambda_15, 'ClazzEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$onClickSave$slambda$slambda, 'ClazzEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_116, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_10, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda, 'ClazzEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$slambda_1, 'ClazzEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$updateCourseBlockList$slambda, 'ClazzEditViewModel$updateCourseBlockList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$onEntityChanged$slambda, 'ClazzEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$onClickSave$slambda, 'ClazzEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEditViewModel$onCourseBlockMoved$slambda, 'ClazzEditViewModel$onCourseBlockMoved$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$updateCourseBlock$slambda, 'ClazzEditViewModel$updateCourseBlock$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEditViewModel$onClickDeleteCourseBlock$slambda, 'ClazzEditViewModel$onClickDeleteCourseBlock$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateCourseBlockListCOROUTINE$67, '$updateCourseBlockListCOROUTINE$67', classMeta, CoroutineImpl); setMetadataFor(ClazzEditViewModel, 'ClazzEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(CourseBlockUiState, 'CourseBlockUiState', classMeta); setMetadataFor(Companion_117, 'Companion', objectMeta); setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEditUiState, 'ClazzEditUiState', classMeta, VOID, VOID, ClazzEditUiState, VOID, {0: $serializer_getInstance_72}); setMetadataFor($loadCOROUTINE$68, '$loadCOROUTINE$68', classMeta, CoroutineImpl); setMetadataFor($loadHttpCOROUTINE$69, '$loadHttpCOROUTINE$69', classMeta, CoroutineImpl); setMetadataFor(ClazzGradebookPagingSource, 'ClazzGradebookPagingSource', classMeta, DelegatedInvalidationPagingSource, [DelegatedInvalidationPagingSource, PagingSourceWithHttpLoader], VOID, VOID, VOID, [1]); setMetadataFor(ClazzGradebookViewModel$slambda$slambda$slambda$slambda, 'ClazzGradebookViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1, 'ClazzGradebookViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzGradebookViewModel$slambda$slambda$slambda, 'ClazzGradebookViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzGradebookViewModel$slambda$slambda$slambda_1, 'ClazzGradebookViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzGradebookViewModel$slambda$slambda, 'ClazzGradebookViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_118, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_11, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzGradebookViewModel$slambda, 'ClazzGradebookViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzGradebookViewModel, 'ClazzGradebookViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ClazzGradebookUiState, 'ClazzGradebookUiState', classMeta, VOID, VOID, ClazzGradebookUiState); setMetadataFor(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda, 'ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzInviteRedeemViewModel$lambda$slambda$slambda, 'ClazzInviteRedeemViewModel$lambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_119, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_12, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzInviteRedeemViewModel$lambda$slambda, 'ClazzInviteRedeemViewModel$lambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzInviteRedeemViewModel$processDecision$slambda, 'ClazzInviteRedeemViewModel$processDecision$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzInviteRedeemViewModel, 'ClazzInviteRedeemViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzInviteRedeemUiState, 'ClazzInviteRedeemUiState', classMeta, VOID, VOID, ClazzInviteRedeemUiState); setMetadataFor(Companion_120, 'Companion', objectMeta); setMetadataFor(ClazzInviteViaContactViewModel$onClickSend$slambda, 'ClazzInviteViaContactViewModel$onClickSend$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($sendContactsToServerCOROUTINE$70, '$sendContactsToServerCOROUTINE$70', classMeta, CoroutineImpl); setMetadataFor(ClazzInviteViaContactViewModel, 'ClazzInviteViaContactViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(ClazzInviteViaContactUiState, 'ClazzInviteViaContactUiState', classMeta, VOID, VOID, ClazzInviteViaContactUiState); setMetadataFor(InviteViaContactChip, 'InviteViaContactChip', classMeta); setMetadataFor(Companion_121, 'Companion', objectMeta); setMetadataFor(ClazzInviteViaLinkViewModel, 'ClazzInviteViaLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzInviteViaLinkUiState, 'ClazzInviteViaLinkUiState', classMeta, VOID, VOID, ClazzInviteViaLinkUiState); setMetadataFor(Companion_122, 'Companion', objectMeta); setMetadataFor(JoinWithCodeViewModel$onClickJoin$slambda, 'JoinWithCodeViewModel$onClickJoin$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(JoinWithCodeViewModel, 'JoinWithCodeViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(JoinWithCodeUiState, 'JoinWithCodeUiState', classMeta, VOID, VOID, JoinWithCodeUiState); setMetadataFor(ClazzListViewModel$slambda$slambda$slambda, 'ClazzListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzListViewModel$slambda$slambda, 'ClazzListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzListViewModel$slambda$slambda$slambda_1, 'ClazzListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzListViewModel$slambda$slambda_1, 'ClazzListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_123, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_13, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzListViewModel$slambda, 'ClazzListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzListViewModel$slambda_1, 'ClazzListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda, 'ClazzListViewModel$onClickCancelEnrolmentRequest$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzListViewModel, 'ClazzListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(Companion_124, 'Companion', objectMeta); setMetadataFor(ClazzListUiState, 'ClazzListUiState', classMeta, VOID, VOID, ClazzListUiState); setMetadataFor(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda, 'CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1, 'CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDetailViewModel$slambda$slambda$slambda, 'CoursePermissionDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDetailViewModel$slambda$slambda, 'CoursePermissionDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_125, 'Companion', objectMeta); setMetadataFor(CoursePermissionDetailViewModel$slambda, 'CoursePermissionDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDetailViewModel, 'CoursePermissionDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(CoursePermissionDetailUiState, 'CoursePermissionDetailUiState', classMeta, VOID, VOID, CoursePermissionDetailUiState); setMetadataFor(CoursePermissionEditViewModel$slambda$slambda, 'CoursePermissionEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionEditViewModel$slambda$slambda_1, 'CoursePermissionEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionEditViewModel$onClickSave$slambda$slambda, 'CoursePermissionEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_126, 'Companion', objectMeta); setMetadataFor(CoursePermissionEditViewModel$slambda, 'CoursePermissionEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionEditViewModel$slambda_1, 'CoursePermissionEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionEditViewModel$onClickSave$slambda, 'CoursePermissionEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionEditViewModel, 'CoursePermissionEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(CoursePermissionEditUiState, 'CoursePermissionEditUiState', classMeta, VOID, VOID, CoursePermissionEditUiState); setMetadataFor(CoursePermissionListViewModel$slambda$slambda$slambda, 'CoursePermissionListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionListViewModel$slambda$slambda, 'CoursePermissionListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_127, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_14, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionListViewModel$slambda, 'CoursePermissionListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionListViewModel$onClickDeleteEntry$slambda, 'CoursePermissionListViewModel$onClickDeleteEntry$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionListViewModel, 'CoursePermissionListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(CoursePermissionListUiState, 'CoursePermissionListUiState', classMeta, VOID, VOID, CoursePermissionListUiState); setMetadataFor(Companion_128, 'Companion', objectMeta); setMetadataFor(TextLimitType, 'TextLimitType', classMeta, Enum); setMetadataFor(MarkingType, 'MarkingType', classMeta, Enum); setMetadataFor(ClazzAssignmentViewModelConstants, 'ClazzAssignmentViewModelConstants', objectMeta); setMetadataFor(_no_name_provided__qut3iv_6, VOID, classMeta); setMetadataFor(UstadAssignmentSubmissionHeaderUiState, 'UstadAssignmentSubmissionHeaderUiState', classMeta, VOID, VOID, UstadAssignmentSubmissionHeaderUiState); setMetadataFor(UstadCourseAssignmentMarkListItemUiState, 'UstadCourseAssignmentMarkListItemUiState', classMeta); setMetadataFor(Companion_129, 'Companion', objectMeta); setMetadataFor(ClazzAssignmentDetailViewModel$slambda, 'ClazzAssignmentDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzAssignmentDetailViewModel, 'ClazzAssignmentDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzAssignmentDetailUiState, 'ClazzAssignmentDetailUiState', classMeta, VOID, VOID, ClazzAssignmentDetailUiState); setMetadataFor(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda, 'ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda, 'ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda, 'ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1, 'ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_130, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_15, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailSubmissionsTabViewModel$slambda, 'ClazzAssignmentDetailSubmissionsTabViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailSubmissionsTabViewModel, 'ClazzAssignmentDetailSubmissionsTabViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(Companion_131, 'Companion', objectMeta); setMetadataFor(ClazzAssignmentDetailSubmissionsTabUiState, 'ClazzAssignmentDetailSubmissionsTabUiState', classMeta, VOID, VOID, ClazzAssignmentDetailSubmissionsTabUiState); setMetadataFor(AssignmentSubmitterSummaryUiState, 'AssignmentSubmitterSummaryUiState', classMeta); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$71, '$collectCOROUTINE$71', classMeta, CoroutineImpl); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(_no_name_provided__qut3iv_7, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1, 'ClazzAssignmentDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda, 'ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_132, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_16, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$slambda, 'ClazzAssignmentDetailOverviewViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda, 'ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda, 'ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda, 'ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda, 'ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda, 'ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda, 'ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda, 'ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda, 'ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda, 'ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDetailOverviewViewModel, 'ClazzAssignmentDetailOverviewViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzAssignmentDetailOverviewUiState, 'ClazzAssignmentDetailOverviewUiState', classMeta, VOID, VOID, ClazzAssignmentDetailOverviewUiState); setMetadataFor(ClazzAssignmentDetailoverviewSubmissionUiState, 'ClazzAssignmentDetailoverviewSubmissionUiState', classMeta, VOID, VOID, ClazzAssignmentDetailoverviewSubmissionUiState); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda, 'ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda$slambda, 'ClazzAssignmentEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1, 'ClazzAssignmentEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1, 'ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3, 'ClazzAssignmentEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3, 'ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5, 'ClazzAssignmentEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda, 'ClazzAssignmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda_1, 'ClazzAssignmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda_3, 'ClazzAssignmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda_5, 'ClazzAssignmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda_7, 'ClazzAssignmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda_9, 'ClazzAssignmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda$slambda_11, 'ClazzAssignmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda, 'ClazzAssignmentEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_133, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_17, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$slambda, 'ClazzAssignmentEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda, 'ClazzAssignmentEditViewModel$onAssignmentChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda, 'ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$onPictureChanged$slambda, 'ClazzAssignmentEditViewModel$onPictureChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentEditViewModel$onClickSave$slambda, 'ClazzAssignmentEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentEditViewModel, 'ClazzAssignmentEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [0, 2, 3, 6]); setMetadataFor(Companion_134, 'Companion', objectMeta); setMetadataFor($serializer_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentEditUiState, 'ClazzAssignmentEditUiState', classMeta, VOID, VOID, ClazzAssignmentEditUiState, VOID, {0: $serializer_getInstance_73}); setMetadataFor(PeerReviewerAllocationEditViewModel$slambda$slambda, 'PeerReviewerAllocationEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationEditViewModel$slambda$slambda_1, 'PeerReviewerAllocationEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_135, 'Companion', objectMeta); setMetadataFor(PeerReviewerAllocationEditViewModel$slambda, 'PeerReviewerAllocationEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda, 'PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationEditViewModel, 'PeerReviewerAllocationEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(PeerReviewerAllocationEditUIState, 'PeerReviewerAllocationEditUIState', classMeta, VOID, VOID, PeerReviewerAllocationEditUIState); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda, 'ClazzAssignmentSubmitterDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_136, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_18, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$slambda, 'ClazzAssignmentSubmitterDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda, 'ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda, 'ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda, 'ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda, 'ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentSubmitterDetailViewModel, 'ClazzAssignmentSubmitterDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(sam$kotlin_Comparator$0_1, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(ClazzAssignmentSubmitterDetailUiState, 'ClazzAssignmentSubmitterDetailUiState', classMeta, VOID, VOID, ClazzAssignmentSubmitterDetailUiState); setMetadataFor(ClazzMemberListViewModel$slambda$slambda$slambda$slambda, 'ClazzMemberListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1, 'ClazzMemberListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$slambda$slambda$slambda, 'ClazzMemberListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$slambda$slambda$slambda_1, 'ClazzMemberListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$slambda$slambda, 'ClazzMemberListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda, 'ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_137, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_19, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$slambda, 'ClazzMemberListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda, 'ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$onClickAddNewMember$slambda, 'ClazzMemberListViewModel$onClickAddNewMember$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$onClickRevokeInvite$slambda, 'ClazzMemberListViewModel$onClickRevokeInvite$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel$onClickResendInvite$slambda, 'ClazzMemberListViewModel$onClickResendInvite$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzMemberListViewModel, 'ClazzMemberListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ClazzMemberListUiState, 'ClazzMemberListUiState', classMeta, VOID, VOID, ClazzMemberListUiState); setMetadataFor(ClazzEnrolmentEditViewModel$slambda$slambda, 'ClazzEnrolmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentEditViewModel$slambda$slambda_1, 'ClazzEnrolmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentEditViewModel$slambda$slambda_3, 'ClazzEnrolmentEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_138, 'Companion', objectMeta); setMetadataFor(ClazzEnrolmentEditViewModel$slambda, 'ClazzEnrolmentEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentEditViewModel$slambda_1, 'ClazzEnrolmentEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentEditViewModel$onEntityChanged$slambda, 'ClazzEnrolmentEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentEditViewModel$onClickSave$slambda, 'ClazzEnrolmentEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentEditViewModel, 'ClazzEnrolmentEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzEnrolmentEditUiState, 'ClazzEnrolmentEditUiState', classMeta, VOID, VOID, ClazzEnrolmentEditUiState); setMetadataFor(ClazzEnrolmentListViewModel$slambda$o$collect$slambda, 'ClazzEnrolmentListViewModel$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$72, '$collectCOROUTINE$72', classMeta, CoroutineImpl); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$73, '$collectCOROUTINE$73', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_8, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5, 'ClazzEnrolmentListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(_no_name_provided__qut3iv_9, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda$slambda, 'ClazzEnrolmentListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_139, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_20, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel$slambda, 'ClazzEnrolmentListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentListViewModel, 'ClazzEnrolmentListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ClazzEnrolmentListUiState, 'ClazzEnrolmentListUiState', classMeta, VOID, VOID, ClazzEnrolmentListUiState); setMetadataFor(ClazzEnrolmentListItemUiState, 'ClazzEnrolmentListItemUiState', classMeta); setMetadataFor(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda, 'ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1, 'ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3, 'ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogListAttendanceViewModel$slambda$slambda$slambda, 'ClazzLogListAttendanceViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1, 'ClazzLogListAttendanceViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogListAttendanceViewModel$slambda$slambda, 'ClazzLogListAttendanceViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(RecordAttendanceOption, 'RecordAttendanceOption', classMeta, Enum); setMetadataFor(PermissionAndExistingLogs, 'PermissionAndExistingLogs', classMeta); setMetadataFor(Companion_140, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_21, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogListAttendanceViewModel$slambda, 'ClazzLogListAttendanceViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda, 'ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogListAttendanceViewModel, 'ClazzLogListAttendanceViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ClazzLogListAttendanceUiState, 'ClazzLogListAttendanceUiState', classMeta, VOID, VOID, ClazzLogListAttendanceUiState); setMetadataFor(ClazzLogEditViewModel$slambda$slambda, 'ClazzLogEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditViewModel$slambda$slambda_1, 'ClazzLogEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_141, 'Companion', objectMeta); setMetadataFor(ClazzLogEditViewModel$slambda, 'ClazzLogEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditViewModel$onEntityChanged$slambda, 'ClazzLogEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditViewModel, 'ClazzLogEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzLogEditUiState, 'ClazzLogEditUiState', classMeta, VOID, VOID, ClazzLogEditUiState); setMetadataFor(ClazzLogEditAttendanceViewModel$slambda$slambda, 'ClazzLogEditAttendanceViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditAttendanceViewModel$slambda$slambda_1, 'ClazzLogEditAttendanceViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogEditAttendanceViewModel$slambda$slambda_3, 'ClazzLogEditAttendanceViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda, 'ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_142, 'Companion', objectMeta); setMetadataFor(sam$kotlin_Comparator$0_2, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(ClazzLogEditAttendanceViewModel$slambda, 'ClazzLogEditAttendanceViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditAttendanceViewModel$slambda_1, 'ClazzLogEditAttendanceViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda, 'ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda, 'ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda, 'ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogEditAttendanceViewModel$onClickSave$slambda, 'ClazzLogEditAttendanceViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($savePersonAndAttendanceRecordsCOROUTINE$74, '$savePersonAndAttendanceRecordsCOROUTINE$74', classMeta, CoroutineImpl); setMetadataFor($commitAttendanceRecordsToStateCOROUTINE$75, '$commitAttendanceRecordsToStateCOROUTINE$75', classMeta, CoroutineImpl); setMetadataFor(ClazzLogEditAttendanceViewModel, 'ClazzLogEditAttendanceViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 0, 3, 6]); setMetadataFor(ClazzLogEditAttendanceUiState, 'ClazzLogEditAttendanceUiState', classMeta, VOID, VOID, ClazzLogEditAttendanceUiState); setMetadataFor(Companion_143, 'Companion', objectMeta); setMetadataFor(ContentEntryDetailViewModel, 'ContentEntryDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ContentEntryDetailUiState, 'ContentEntryDetailUiState', classMeta, VOID, VOID, ContentEntryDetailUiState); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda, 'ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda, 'ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_144, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_22, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda, 'ContentEntryDetailAttemptsPersonListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel$slambda_1, 'ContentEntryDetailAttemptsPersonListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($buildSortOptionsCOROUTINE$76, '$buildSortOptionsCOROUTINE$76', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDetailAttemptsPersonListViewModel, 'ContentEntryDetailAttemptsPersonListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [1, 3, 2, 6]); setMetadataFor(ContentEntryDetailAttemptsPersonListUiState, 'ContentEntryDetailAttemptsPersonListUiState', classMeta, VOID, VOID, ContentEntryDetailAttemptsPersonListUiState); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda, 'ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1, 'ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_145, 'Companion', objectMeta); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel$slambda, 'ContentEntryDetailAttemptsSessionListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsSessionListViewModel, 'ContentEntryDetailAttemptsSessionListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ContentEntryDetailAttemptsSessionListUiState, 'ContentEntryDetailAttemptsSessionListUiState', classMeta, VOID, VOID, ContentEntryDetailAttemptsSessionListUiState); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_146, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_23, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel$slambda, 'ContentEntryDetailAttemptsStatementListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailAttemptsStatementListViewModel, 'ContentEntryDetailAttemptsStatementListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ContentEntryDetailAttemptsStatementListUiState, 'ContentEntryDetailAttemptsStatementListUiState', classMeta, VOID, VOID, ContentEntryDetailAttemptsStatementListUiState); setMetadataFor(StatementSummaryEntity, 'StatementSummaryEntity', classMeta); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11, 'ContentEntryDetailOverviewViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda$slambda, 'ContentEntryDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda, 'ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_147, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_24, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$slambda, 'ContentEntryDetailOverviewViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$onClickOpen$slambda, 'ContentEntryDetailOverviewViewModel$onClickOpen$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda, 'ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda, 'ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDetailOverviewViewModel, 'ContentEntryDetailOverviewViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ContentEntryDetailOverviewUiState, 'ContentEntryDetailOverviewUiState', classMeta, VOID, VOID, ContentEntryDetailOverviewUiState); setMetadataFor(ContentEntryEditViewModel$slambda$slambda$slambda, 'ContentEntryEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$slambda$slambda$slambda_1, 'ContentEntryEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$slambda$slambda, 'ContentEntryEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$slambda$slambda_1, 'ContentEntryEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryEditViewModel$slambda$slambda_3, 'ContentEntryEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$slambda$slambda_5, 'ContentEntryEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_148, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_25, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$slambda, 'ContentEntryEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$slambda_1, 'ContentEntryEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$scheduleEntityCommit$slambda, 'ContentEntryEditViewModel$scheduleEntityCommit$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel$onClickSave$slambda, 'ContentEntryEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryEditViewModel, 'ContentEntryEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ContentEntryEditUiState, 'ContentEntryEditUiState', classMeta, VOID, VOID, ContentEntryEditUiState); setMetadataFor(Companion_149, 'Companion', objectMeta); setMetadataFor(ContentEntryGetMetadataViewModel$slambda, 'ContentEntryGetMetadataViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryGetMetadataViewModel, 'ContentEntryGetMetadataViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ContentEntryGetMetadataUiState, 'ContentEntryGetMetadataUiState', classMeta, VOID, VOID, ContentEntryGetMetadataUiState); setMetadataFor(Companion_150, 'Companion', objectMeta); setMetadataFor(GetSubtitleViewModel$slambda, 'GetSubtitleViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(GetSubtitleViewModel, 'GetSubtitleViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(GetSubtitleUiState, 'GetSubtitleUiState', classMeta, VOID, VOID, GetSubtitleUiState); setMetadataFor(Companion_151, 'Companion', objectMeta); setMetadataFor(ContentEntryImportLinkViewModel$onChangeLink$slambda, 'ContentEntryImportLinkViewModel$onChangeLink$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportLinkViewModel$onClickNext$slambda, 'ContentEntryImportLinkViewModel$onClickNext$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportLinkViewModel, 'ContentEntryImportLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ContentEntryImportLinkUiState, 'ContentEntryImportLinkUiState', classMeta, VOID, VOID, ContentEntryImportLinkUiState); setMetadataFor(ContentEntryListItemUiState, 'ContentEntryListItemUiState', classMeta); setMetadataFor(ContentEntryListViewModel$slambda$slambda$slambda, 'ContentEntryListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel$slambda$slambda, 'ContentEntryListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryListViewModel$slambda$slambda_1, 'ContentEntryListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel$slambda$slambda_3, 'ContentEntryListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ContentEntryListViewModel$slambda$slambda_5, 'ContentEntryListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_152, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_26, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel$slambda, 'ContentEntryListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel$slambda_1, 'ContentEntryListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel$slambda_3, 'ContentEntryListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel$slambda_5, 'ContentEntryListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel$launchDeleteEntries$slambda, 'ContentEntryListViewModel$launchDeleteEntries$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryListViewModel, 'ContentEntryListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(Companion_153, 'Companion', objectMeta); setMetadataFor(ContentEntryListUiState, 'ContentEntryListUiState', classMeta, VOID, VOID, ContentEntryListUiState); setMetadataFor(Companion_154, 'Companion', objectMeta); setMetadataFor($serializer_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryListSelectedItem, 'ContentEntryListSelectedItem', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_74}); setMetadataFor(SubtitleEditViewModel$slambda$slambda, 'SubtitleEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SubtitleEditViewModel$slambda$slambda_1, 'SubtitleEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_155, 'Companion', objectMeta); setMetadataFor(SubtitleEditViewModel$slambda, 'SubtitleEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SubtitleEditViewModel$onEntityChanged$slambda, 'SubtitleEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SubtitleEditViewModel, 'SubtitleEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SubtitleEditUiState, 'SubtitleEditUiState', classMeta, VOID, VOID, SubtitleEditUiState); setMetadataFor(Companion_156, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(CompletionCriteria, 'CompletionCriteria', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_174}); setMetadataFor(CourseBlockEditViewModel$slambda$slambda$slambda, 'CourseBlockEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel$slambda$slambda$slambda_1, 'CourseBlockEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel$slambda$slambda, 'CourseBlockEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel$slambda$slambda_1, 'CourseBlockEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockEditViewModel$slambda$slambda_3, 'CourseBlockEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel$slambda$slambda_5, 'CourseBlockEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_157, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_27, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel$slambda, 'CourseBlockEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel$onEntityChanged$slambda, 'CourseBlockEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel$onPictureChanged$slambda, 'CourseBlockEditViewModel$onPictureChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockEditViewModel, 'CourseBlockEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(Companion_158, 'Companion', objectMeta); setMetadataFor($serializer_63, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockEditUiState, 'CourseBlockEditUiState', classMeta, VOID, VOID, CourseBlockEditUiState, VOID, {0: $serializer_getInstance_75}); setMetadataFor(TextBlockDetailViewModel$slambda$slambda$slambda$slambda, 'TextBlockDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TextBlockDetailViewModel$slambda$slambda$slambda, 'TextBlockDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TextBlockDetailViewModel$slambda$slambda, 'TextBlockDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_159, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_28, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(TextBlockDetailViewModel$slambda, 'TextBlockDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TextBlockDetailViewModel, 'TextBlockDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(TextBlockDetailUiState, 'TextBlockDetailUiState', classMeta, VOID, VOID, TextBlockDetailUiState); setMetadataFor(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda, 'CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1, 'CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3, 'CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5, 'CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDetailViewModel$slambda$slambda$slambda, 'CourseGroupSetDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1, 'CourseGroupSetDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDetailViewModel$slambda$slambda, 'CourseGroupSetDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_160, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_29, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDetailViewModel$slambda, 'CourseGroupSetDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDetailViewModel, 'CourseGroupSetDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(CourseGroupSetDetailUiState, 'CourseGroupSetDetailUiState', classMeta, VOID, VOID, CourseGroupSetDetailUiState); setMetadataFor(CourseGroupSetEditViewModel$slambda$slambda$slambda, 'CourseGroupSetEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$slambda$slambda$slambda_1, 'CourseGroupSetEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupSetEditViewModel$slambda$slambda$slambda_3, 'CourseGroupSetEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$slambda$slambda$slambda_5, 'CourseGroupSetEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupSetEditViewModel$slambda$slambda, 'CourseGroupSetEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$slambda$slambda_1, 'CourseGroupSetEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$onClickSave$slambda$slambda, 'CourseGroupSetEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_161, 'Companion', objectMeta); setMetadataFor(CourseGroupSetEditViewModel$slambda, 'CourseGroupSetEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$slambda_1, 'CourseGroupSetEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$onEntityChanged$slambda, 'CourseGroupSetEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda, 'CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda, 'CourseGroupSetEditViewModel$onClickAssignRandomly$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel$onClickSave$slambda, 'CourseGroupSetEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetEditViewModel, 'CourseGroupSetEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(CourseGroupSetEditUiState, 'CourseGroupSetEditUiState', classMeta, VOID, VOID, CourseGroupSetEditUiState); setMetadataFor(CourseGroupSetListViewModel$slambda$slambda$slambda, 'CourseGroupSetListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetListViewModel$slambda$slambda, 'CourseGroupSetListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_162, 'Companion', objectMeta); setMetadataFor(CourseGroupSetListViewModel$slambda, 'CourseGroupSetListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetListViewModel$slambda_1, 'CourseGroupSetListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetListViewModel, 'CourseGroupSetListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(Companion_163, 'Companion', objectMeta); setMetadataFor(CourseGroupSetListUiState, 'CourseGroupSetListUiState', classMeta, VOID, VOID, CourseGroupSetListUiState); setMetadataFor(CourseTerminologyEditViewModel$slambda$slambda, 'CourseTerminologyEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyEditViewModel$slambda$slambda_1, 'CourseTerminologyEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_164, 'Companion', objectMeta); setMetadataFor(CourseTerminologyEditViewModel$slambda, 'CourseTerminologyEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyEditViewModel$onEntityChanged$slambda, 'CourseTerminologyEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyEditViewModel$onClickSave$slambda, 'CourseTerminologyEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyEditViewModel, 'CourseTerminologyEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(CourseTerminologyEditUiState, 'CourseTerminologyEditUiState', classMeta, VOID, VOID, CourseTerminologyEditUiState); setMetadataFor(Companion_165, 'Companion', objectMeta); setMetadataFor(CourseTerminologyListViewModel$slambda, 'CourseTerminologyListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyListViewModel, 'CourseTerminologyListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(CourseTerminologyListUiState, 'CourseTerminologyListUiState', classMeta, VOID, VOID, CourseTerminologyListUiState); setMetadataFor(Companion_166, 'Companion', objectMeta); setMetadataFor(DeletedItemListViewModel$onConfirmDeletePermanently$slambda, 'DeletedItemListViewModel$onConfirmDeletePermanently$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemListViewModel$restoreItems$slambda, 'DeletedItemListViewModel$restoreItems$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemListViewModel, 'DeletedItemListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(DeletedItemListUiState, 'DeletedItemListUiState', classMeta, VOID, VOID, DeletedItemListUiState); setMetadataFor(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda, 'CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseDiscussionDetailViewModel$slambda$slambda$slambda, 'CourseDiscussionDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseDiscussionDetailViewModel$slambda$slambda, 'CourseDiscussionDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_167, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_30, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(CourseDiscussionDetailViewModel$slambda, 'CourseDiscussionDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseDiscussionDetailViewModel$onDeletePost$slambda, 'CourseDiscussionDetailViewModel$onDeletePost$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseDiscussionDetailViewModel, 'CourseDiscussionDetailViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(CourseDiscussionDetailUiState, 'CourseDiscussionDetailUiState', classMeta, VOID, VOID, CourseDiscussionDetailUiState); setMetadataFor(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda, 'DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1, 'DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda, 'DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1, 'DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$slambda$slambda$slambda, 'DiscussionPostDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$slambda$slambda, 'DiscussionPostDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_168, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_31, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$slambda, 'DiscussionPostDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$onChangeReplyText$slambda, 'DiscussionPostDetailViewModel$onChangeReplyText$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$onClickPostReply$slambda, 'DiscussionPostDetailViewModel$onClickPostReply$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$submitReply$slambda, 'DiscussionPostDetailViewModel$submitReply$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDetailViewModel$onDeletePost$slambda, 'DiscussionPostDetailViewModel$onDeletePost$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($submitReplyCOROUTINE$77, '$submitReplyCOROUTINE$77', classMeta, CoroutineImpl); setMetadataFor(DiscussionPostDetailViewModel, 'DiscussionPostDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(DiscussionPostDetailUiState2, 'DiscussionPostDetailUiState2', classMeta, VOID, VOID, DiscussionPostDetailUiState2); setMetadataFor(DiscussionPostEditViewModel$slambda$slambda$slambda, 'DiscussionPostEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostEditViewModel$slambda$slambda$slambda_1, 'DiscussionPostEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostEditViewModel$slambda$slambda, 'DiscussionPostEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostEditViewModel$onClickSave$slambda$slambda, 'DiscussionPostEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_169, 'Companion', objectMeta); setMetadataFor(DiscussionPostEditViewModel$slambda, 'DiscussionPostEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostEditViewModel$onEntityChanged$slambda, 'DiscussionPostEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostEditViewModel$onClickSave$slambda, 'DiscussionPostEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostEditViewModel, 'DiscussionPostEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(DiscussionPostEditUiState, 'DiscussionPostEditUiState', classMeta, VOID, VOID, DiscussionPostEditUiState); setMetadataFor(EpubContentViewModel$slambda$slambda$slambda, 'EpubContentViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EpubContentViewModel$slambda$slambda, 'EpubContentViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_170, 'Companion', objectMeta); setMetadataFor(EpubContentViewModel$slambda, 'EpubContentViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AbstractNonInteractiveContentViewModel, 'AbstractNonInteractiveContentViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(EpubContentViewModel, 'EpubContentViewModel', classMeta, AbstractNonInteractiveContentViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(EpubContentUiState, 'EpubContentUiState', classMeta, VOID, VOID, EpubContentUiState); setMetadataFor(EpubScrollCommand, 'EpubScrollCommand', classMeta); setMetadataFor(EpubTocItem, 'EpubTocItem', classMeta); setMetadataFor(Companion_171, 'Companion', objectMeta); setMetadataFor(Companion_172, 'Companion', objectMeta); setMetadataFor(LoginViewModel$slambda, 'LoginViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LoginViewModel$slambda_1, 'LoginViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LoginViewModel$onClickLogin$slambda, 'LoginViewModel$onClickLogin$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LoginViewModel$onClickConnectAsGuest$slambda, 'LoginViewModel$onClickConnectAsGuest$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LoginViewModel$getCredentials$slambda, 'LoginViewModel$getCredentials$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($goToNextDestAfterLoginOrGuestSelectedCOROUTINE$78, '$goToNextDestAfterLoginOrGuestSelectedCOROUTINE$78', classMeta, CoroutineImpl); setMetadataFor(LoginViewModel, 'LoginViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(LoginUiState, 'LoginUiState', classMeta, VOID, VOID, LoginUiState); setMetadataFor(Companion_173, 'Companion', objectMeta); setMetadataFor(ConversationListViewModel, 'ConversationListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(ConversationListUiState, 'ConversationListUiState', classMeta, VOID, VOID, ConversationListUiState); setMetadataFor(MessageListViewModel$slambda$slambda$slambda, 'MessageListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel$slambda$slambda, 'MessageListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_174, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_32, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel$slambda, 'MessageListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel$onWarningDismiss$slambda, 'MessageListViewModel$onWarningDismiss$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel$onClickSend$slambda, 'MessageListViewModel$onClickSend$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageListViewModel, 'MessageListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(MessageListUiState, 'MessageListUiState', classMeta, VOID, VOID, MessageListUiState); setMetadataFor(TitleAndLangCode, 'TitleAndLangCode', classMeta); setMetadataFor(ParentalConsentManagementViewModel$lambda$slambda$slambda, 'ParentalConsentManagementViewModel$lambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ParentalConsentManagementViewModel$lambda$slambda$slambda_1, 'ParentalConsentManagementViewModel$lambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_175, 'Companion', objectMeta); setMetadataFor(ParentalConsentManagementViewModel$lambda$slambda, 'ParentalConsentManagementViewModel$lambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ParentalConsentManagementViewModel$lambda$slambda_1, 'ParentalConsentManagementViewModel$lambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ParentalConsentManagementViewModel$updateStatus$slambda, 'ParentalConsentManagementViewModel$updateStatus$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ParentalConsentManagementViewModel, 'ParentalConsentManagementViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ParentalConsentManagementUiState, 'ParentalConsentManagementUiState', classMeta, VOID, VOID, ParentalConsentManagementUiState); setMetadataFor(Companion_176, 'Companion', objectMeta); setMetadataFor(PdfContentViewModel$slambda, 'PdfContentViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PdfContentViewModel, 'PdfContentViewModel', classMeta, AbstractNonInteractiveContentViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(PdfContentUiState, 'PdfContentUiState', classMeta, VOID, VOID, PdfContentUiState); setMetadataFor(PersonViewModelConstants, 'PersonViewModelConstants', objectMeta); setMetadataFor(PersonAccountEditViewModel$slambda$slambda, 'PersonAccountEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAccountEditViewModel$slambda$slambda_1, 'PersonAccountEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonAccountEditViewModel$onClickSave$slambda$slambda, 'PersonAccountEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_177, 'Companion', objectMeta); setMetadataFor(PersonAccountEditViewModel$slambda, 'PersonAccountEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAccountEditViewModel$slambda_1, 'PersonAccountEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAccountEditViewModel$onEntityChanged$slambda, 'PersonAccountEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAccountEditViewModel$onClickSave$slambda, 'PersonAccountEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAccountEditViewModel, 'PersonAccountEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(PersonAccountEditUiState, 'PersonAccountEditUiState', classMeta, VOID, VOID, PersonAccountEditUiState); setMetadataFor(Companion_178, 'Companion', objectMeta); setMetadataFor($serializer_64, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonUsernameAndPasswordModel, 'PersonUsernameAndPasswordModel', classMeta, VOID, VOID, PersonUsernameAndPasswordModel, VOID, {0: $serializer_getInstance_76}); setMetadataFor(Companion_179, 'Companion', objectMeta); setMetadataFor(sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0, 'sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0', classMeta); setMetadataFor(BulkAddPersonRunImportViewModel$slambda, 'BulkAddPersonRunImportViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BulkAddPersonRunImportViewModel, 'BulkAddPersonRunImportViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(Companion_180, 'Companion', objectMeta); setMetadataFor($serializer_65, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonRunImportUiState, 'BulkAddPersonRunImportUiState', classMeta, VOID, VOID, BulkAddPersonRunImportUiState, VOID, {0: $serializer_getInstance_77}); setMetadataFor(Companion_181, 'Companion', objectMeta); setMetadataFor(BulkAddPersonSelectFileViewModel$slambda, 'BulkAddPersonSelectFileViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BulkAddPersonSelectFileViewModel$slambda_1, 'BulkAddPersonSelectFileViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda, 'BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(BulkAddPersonSelectFileViewModel, 'BulkAddPersonSelectFileViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(BulkAddPersonSelectFileUiState, 'BulkAddPersonSelectFileUiState', classMeta, VOID, VOID, BulkAddPersonSelectFileUiState); setMetadataFor(AddChildProfilesViewModel$slambda$slambda$slambda, 'AddChildProfilesViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda$slambda$slambda_1, 'AddChildProfilesViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(AddChildProfilesViewModel$slambda$slambda$slambda_3, 'AddChildProfilesViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda$slambda, 'AddChildProfilesViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_182, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_33, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda, 'AddChildProfilesViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$slambda_1, 'AddChildProfilesViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$updateChildProfileList$slambda, 'AddChildProfilesViewModel$updateChildProfileList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda, 'AddChildProfilesViewModel$onClickDeleteChildProfile$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AddChildProfilesViewModel$onProfileSelected$slambda, 'AddChildProfilesViewModel$onProfileSelected$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateChildProfileListCOROUTINE$79, '$updateChildProfileListCOROUTINE$79', classMeta, CoroutineImpl); setMetadataFor(AddChildProfilesViewModel, 'AddChildProfilesViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(AddChildProfilesUiState, 'AddChildProfilesUiState', classMeta, VOID, VOID, AddChildProfilesUiState); setMetadataFor(EditChildProfileViewModel$slambda$slambda, 'EditChildProfileViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EditChildProfileViewModel$slambda$slambda_1, 'EditChildProfileViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_183, 'Companion', objectMeta); setMetadataFor(EditChildProfileViewModel$slambda, 'EditChildProfileViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EditChildProfileViewModel$onEntityChanged$slambda, 'EditChildProfileViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EditChildProfileViewModel, 'EditChildProfileViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(EditChildProfileUiState, 'EditChildProfileUiState', classMeta, VOID, VOID, EditChildProfileUiState); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda$slambda, 'PersonDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda$slambda_1, 'PersonDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda$slambda_3, 'PersonDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda$slambda_5, 'PersonDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda$slambda_7, 'PersonDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda, 'PersonDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda_1, 'PersonDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda_3, 'PersonDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda$slambda_5, 'PersonDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda$slambda, 'PersonDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_184, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_34, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel$slambda, 'PersonDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDetailViewModel, 'PersonDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(PersonDetailUiState, 'PersonDetailUiState', classMeta, VOID, VOID, PersonDetailUiState); setMetadataFor(PersonEditViewModel$slambda$slambda$slambda, 'PersonEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$slambda$slambda$slambda_1, 'PersonEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonEditViewModel$slambda$slambda$slambda_3, 'PersonEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$slambda$slambda$slambda_5, 'PersonEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonEditViewModel$slambda$slambda, 'PersonEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$slambda$slambda_1, 'PersonEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$onClickSave$slambda$slambda, 'PersonEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_185, 'Companion', objectMeta); setMetadataFor(PersonEditViewModel$slambda, 'PersonEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$slambda_1, 'PersonEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$onEntityChanged$slambda, 'PersonEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$onPersonPictureChanged$slambda, 'PersonEditViewModel$onPersonPictureChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel$onClickSave$slambda, 'PersonEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonEditViewModel, 'PersonEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(PersonEditUiState, 'PersonEditUiState', classMeta, VOID, VOID, PersonEditUiState); setMetadataFor(LearningSpaceListViewModel$slambda$slambda$slambda, 'LearningSpaceListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LearningSpaceListViewModel$slambda$slambda, 'LearningSpaceListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_186, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_35, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(LearningSpaceListViewModel$slambda, 'LearningSpaceListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LearningSpaceListViewModel, 'LearningSpaceListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(LearningSpaceListUiState, 'LearningSpaceListUiState', classMeta, VOID, VOID, LearningSpaceListUiState); setMetadataFor(PersonListViewModel$slambda$slambda$slambda, 'PersonListViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonListViewModel$slambda$slambda, 'PersonListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(PersonListViewModel$slambda$slambda_1, 'PersonListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_187, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_36, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(PersonListViewModel$slambda, 'PersonListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonListViewModel$slambda_1, 'PersonListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonListViewModel, 'PersonListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(EmptyPagingSource, 'EmptyPagingSource', classMeta, PagingSource, VOID, EmptyPagingSource, VOID, VOID, [1]); setMetadataFor(PersonListUiState, 'PersonListUiState', classMeta, VOID, VOID, PersonListUiState); setMetadataFor(ManageAccountViewModel$slambda$slambda, 'ManageAccountViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ManageAccountViewModel$slambda$slambda_1, 'ManageAccountViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_188, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_37, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(ManageAccountViewModel$slambda, 'ManageAccountViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ManageAccountViewModel$slambda_1, 'ManageAccountViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ManageAccountViewModel, 'ManageAccountViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ManageAccountUiState, 'ManageAccountUiState', classMeta, VOID, VOID, ManageAccountUiState); setMetadataFor(Companion_189, 'Companion', objectMeta); setMetadataFor(RegisterAgeRedirectViewModel, 'RegisterAgeRedirectViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterAgeRedirectUiState, 'RegisterAgeRedirectUiState', classMeta, VOID, VOID, RegisterAgeRedirectUiState); setMetadataFor(Companion_190, 'Companion', objectMeta); setMetadataFor(RegisterMinorWaitForParentViewModel, 'RegisterMinorWaitForParentViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterMinorWaitForParentUiState, 'RegisterMinorWaitForParentUiState', classMeta, VOID, VOID, RegisterMinorWaitForParentUiState); setMetadataFor(Companion_191, 'Companion', objectMeta); setMetadataFor(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1, 'sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0', classMeta, VOID, [OpenExternalLinkUseCase]); setMetadataFor(RedirectViewModel$slambda, 'RedirectViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(RedirectViewModel, 'RedirectViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ScheduleEditViewModel$slambda$slambda, 'ScheduleEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleEditViewModel$slambda$slambda_1, 'ScheduleEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_192, 'Companion', objectMeta); setMetadataFor(ScheduleEditViewModel$slambda, 'ScheduleEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleEditViewModel$onEntityChanged$slambda, 'ScheduleEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleEditViewModel, 'ScheduleEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ScheduleEditUiState, 'ScheduleEditUiState', classMeta, VOID, VOID, ScheduleEditUiState); setMetadataFor(Companion_193, 'Companion', objectMeta); setMetadataFor(SettingsViewModel$slambda$slambda, 'SettingsViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_194, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_38, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(SettingsViewModel$slambda, 'SettingsViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SettingsViewModel$slambda_1, 'SettingsViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SettingsViewModel, 'SettingsViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SettingsUiState, 'SettingsUiState', classMeta, VOID, VOID, SettingsUiState); setMetadataFor(SettingsOfflineStorageOption, 'SettingsOfflineStorageOption', classMeta); setMetadataFor(Companion_195, 'Companion', objectMeta); setMetadataFor(SignUpViewModel$slambda$slambda, 'SignUpViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$slambda$slambda_1, 'SignUpViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SignUpViewModel$slambda$slambda_3, 'SignUpViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$slambda$slambda_5, 'SignUpViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_196, 'Companion', objectMeta); setMetadataFor(SignUpViewModel$slambda, 'SignUpViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$slambda_1, 'SignUpViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onEntityChanged$slambda, 'SignUpViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onPersonPictureChanged$slambda, 'SignUpViewModel$onPersonPictureChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onFullNameFocusedChanged$slambda, 'SignUpViewModel$onFullNameFocusedChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onClickSignup$slambda, 'SignUpViewModel$onClickSignup$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($navigateToAppropriateScreenCOROUTINE$81, '$navigateToAppropriateScreenCOROUTINE$81', classMeta, CoroutineImpl); setMetadataFor($enrollToCourseFromInviteUidCOROUTINE$82, '$enrollToCourseFromInviteUidCOROUTINE$82', classMeta, CoroutineImpl); setMetadataFor(SignUpViewModel, 'SignUpViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(SignUpUiState, 'SignUpUiState', classMeta, VOID, VOID, SignUpUiState); setMetadataFor(Companion_197, 'Companion', objectMeta); setMetadataFor(SignupEnterUsernamePasswordViewModel$slambda, 'SignupEnterUsernamePasswordViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda, 'SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda, 'SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($navigateToAppropriateScreenCOROUTINE$83, '$navigateToAppropriateScreenCOROUTINE$83', classMeta, CoroutineImpl); setMetadataFor(SignupEnterUsernamePasswordViewModel, 'SignupEnterUsernamePasswordViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(SignupEnterUsernamePasswordUiState, 'SignupEnterUsernamePasswordUiState', classMeta, VOID, VOID, SignupEnterUsernamePasswordUiState); setMetadataFor(TopLevelNavInfo, 'TopLevelNavInfo', classMeta); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda$slambda, 'SiteDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda$slambda_1, 'SiteDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda$slambda_3, 'SiteDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda, 'SiteDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda$slambda_1, 'SiteDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda$slambda, 'SiteDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_198, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_39, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel$slambda, 'SiteDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDetailViewModel, 'SiteDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SiteDetailUiState, 'SiteDetailUiState', classMeta, VOID, VOID, SiteDetailUiState); setMetadataFor(SiteEditViewModel$slambda$slambda$slambda, 'SiteEditViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$slambda$slambda, 'SiteEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$slambda$slambda_1, 'SiteEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SiteEditViewModel$slambda$slambda_3, 'SiteEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$slambda$slambda_5, 'SiteEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SiteEditViewModel$slambda$slambda_7, 'SiteEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_199, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_40, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$slambda, 'SiteEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$slambda_1, 'SiteEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$onChangeTermsHtml$slambda, 'SiteEditViewModel$onChangeTermsHtml$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$onEntityChanged$slambda, 'SiteEditViewModel$onEntityChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel$onClickSave$slambda, 'SiteEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteEditViewModel, 'SiteEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SiteEditUiState, 'SiteEditUiState', classMeta, VOID, VOID, SiteEditUiState); setMetadataFor(Companion_200, 'Companion', objectMeta); setMetadataFor(SiteTermsDetailViewModel$slambda, 'SiteTermsDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDetailViewModel, 'SiteTermsDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SiteTermsDetailUiState, 'SiteTermsDetailUiState', classMeta, VOID, VOID, SiteTermsDetailUiState); setMetadataFor(Companion_201, 'Companion', objectMeta); setMetadataFor(LearningSpaceEnterLinkViewModel$onClickNext$slambda, 'LearningSpaceEnterLinkViewModel$onClickNext$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LearningSpaceEnterLinkViewModel, 'LearningSpaceEnterLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(LearningSpaceEnterLinkUiState, 'LearningSpaceEnterLinkUiState', classMeta, VOID, VOID, LearningSpaceEnterLinkUiState); setMetadataFor(SystemPermissionConstants, 'SystemPermissionConstants', objectMeta); setMetadataFor(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda, 'SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [2]); setMetadataFor(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1, 'SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3, 'SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDetailViewModel$slambda$slambda$slambda, 'SystemPermissionDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDetailViewModel$slambda$slambda$slambda_1, 'SystemPermissionDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDetailViewModel$slambda$slambda, 'SystemPermissionDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_202, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_41, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDetailViewModel$slambda, 'SystemPermissionDetailViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDetailViewModel, 'SystemPermissionDetailViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SystemPermissionDetailUiState, 'SystemPermissionDetailUiState', classMeta, VOID, VOID, SystemPermissionDetailUiState); setMetadataFor(SystemPermissionEditViewModel$slambda$slambda, 'SystemPermissionEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionEditViewModel$slambda$slambda_1, 'SystemPermissionEditViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionEditViewModel$onClickSave$slambda$slambda, 'SystemPermissionEditViewModel$onClickSave$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_203, 'Companion', objectMeta); setMetadataFor(SystemPermissionEditViewModel$slambda, 'SystemPermissionEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionEditViewModel$slambda_1, 'SystemPermissionEditViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionEditViewModel$onClickSave$slambda, 'SystemPermissionEditViewModel$onClickSave$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionEditViewModel, 'SystemPermissionEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SystemPermissionEditUiState, 'SystemPermissionEditUiState', classMeta, VOID, VOID, SystemPermissionEditUiState); setMetadataFor(TimeZoneListViewModel$slambda$slambda, 'TimeZoneListViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda, 'TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_204, 'Companion', objectMeta); setMetadataFor(sam$kotlin_Comparator$0_3, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(TimeZoneListViewModel$slambda, 'TimeZoneListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TimeZoneListViewModel$onUpdateSearchResult$slambda, 'TimeZoneListViewModel$onUpdateSearchResult$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TimeZoneListViewModel, 'TimeZoneListViewModel', classMeta, UstadListViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(TimezoneListUiState, 'TimezoneListUiState', classMeta, VOID, VOID, TimezoneListUiState); setMetadataFor(VideoContentViewModel$slambda$slambda, 'VideoContentViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VideoContentViewModel$slambda$slambda_1, 'VideoContentViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MediaPlayState, 'MediaPlayState', classMeta, VOID, VOID, MediaPlayState); setMetadataFor(Companion_205, 'Companion', objectMeta); setMetadataFor(VideoContentViewModel$slambda, 'VideoContentViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VideoContentViewModel, 'VideoContentViewModel', classMeta, AbstractNonInteractiveContentViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(VideoContentUiState, 'VideoContentUiState', classMeta, VOID, VOID, VideoContentUiState); setMetadataFor(Companion_206, 'Companion', objectMeta); setMetadataFor(XapiContentViewModel$slambda, 'XapiContentViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(XapiContentViewModel, 'XapiContentViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(XapiContentUiState, 'XapiContentUiState', classMeta, VOID, VOID, XapiContentUiState); setMetadataFor($encryptPbkdf2COROUTINE$84, '$encryptPbkdf2COROUTINE$84', classMeta, CoroutineImpl); setMetadataFor($doublePbkdf2HashAsBase64COROUTINE$86, '$doublePbkdf2HashAsBase64COROUTINE$86', classMeta, CoroutineImpl); setMetadataFor(NavHostFunction, 'NavHostFunction', classMeta); setMetadataFor(NavHost$lambda$lambda$launchClearStackTimeout$slambda, 'NavHost$lambda$lambda$launchClearStackTimeout$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$87, '$invokeCOROUTINE$87', classMeta, CoroutineImpl); setMetadataFor(SetPasswordUseCaseJs, 'SetPasswordUseCaseJs', classMeta, VOID, [SetPasswordUseCase], VOID, VOID, VOID, [5]); setMetadataFor(OpenBlobUseCaseJs, 'OpenBlobUseCaseJs', classMeta, VOID, [OpenBlobUseCase], OpenBlobUseCaseJs, VOID, VOID, [3]); setMetadataFor(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda, 'SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda, 'SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UriToSaveQueueItem, 'UriToSaveQueueItem', classMeta); setMetadataFor(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda, 'SaveLocalUrisAsBlobUseCaseJs$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1, 'SaveLocalUrisAsBlobUseCaseJs$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$88, '$invokeCOROUTINE$88', classMeta, CoroutineImpl); setMetadataFor(SaveLocalUrisAsBlobUseCaseJs, 'SaveLocalUrisAsBlobUseCaseJs', classMeta, VOID, [SaveLocalUrisAsBlobsUseCase], VOID, VOID, VOID, [2]); setMetadataFor(EnqueueSavePictureUseCaseJs$invoke$slambda, 'EnqueueSavePictureUseCaseJs$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnqueueSavePictureUseCaseJs, 'EnqueueSavePictureUseCaseJs', classMeta, VOID, [EnqueueSavePictureUseCase], VOID, VOID, VOID, [3]); setMetadataFor(SetClipboardStringUseCaseJs, 'SetClipboardStringUseCaseJs', classMeta, VOID, [SetClipboardStringUseCase], SetClipboardStringUseCaseJs); setMetadataFor($invokeCOROUTINE$89, '$invokeCOROUTINE$89', classMeta, CoroutineImpl); setMetadataFor(CompressImageUseCaseJs, 'CompressImageUseCaseJs', classMeta, VOID, [CompressUseCase], CompressImageUseCaseJs, VOID, VOID, [4]); setMetadataFor(Companion_207, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$90, '$invokeCOROUTINE$90', classMeta, CoroutineImpl); setMetadataFor(ContentEntryGetMetaDataFromUriUseCaseJs, 'ContentEntryGetMetaDataFromUriUseCaseJs', classMeta, VOID, [ContentEntryGetMetaDataFromUriUseCase], VOID, VOID, VOID, [4]); setMetadataFor($invokeCOROUTINE$91, '$invokeCOROUTINE$91', classMeta, CoroutineImpl); setMetadataFor(GetSubtitleTrackFromUriUseCaseJs, 'GetSubtitleTrackFromUriUseCaseJs', classMeta, VOID, [GetSubtitleTrackFromUriUseCase], VOID, VOID, VOID, [3]); setMetadataFor($invokeCOROUTINE$92, '$invokeCOROUTINE$92', classMeta, CoroutineImpl); setMetadataFor(LaunchXapiUseCaseJs, 'LaunchXapiUseCaseJs', classMeta, VOID, [LaunchXapiUseCase], VOID, VOID, VOID, [5]); setMetadataFor(SetLanguageUseCaseJs, 'SetLanguageUseCaseJs', classMeta, VOID, [SetLanguageUseCase]); setMetadataFor(GoToLearningSpaceUseCaseJs, 'GoToLearningSpaceUseCaseJs', classMeta, VOID, [GoToLearningSpaceUseCase]); setMetadataFor(OpenExternalLinkUseCaseJs, 'OpenExternalLinkUseCaseJs', classMeta, VOID, [OpenExternalLinkUseCase], OpenExternalLinkUseCaseJs); setMetadataFor(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda, 'BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$93, '$invokeCOROUTINE$93', classMeta, CoroutineImpl); setMetadataFor(BulkAddPersonsFromLocalUriUseCaseJs, 'BulkAddPersonsFromLocalUriUseCaseJs', classMeta, VOID, [BulkAddPersonsFromLocalUriUseCase], VOID, VOID, VOID, [3]); setMetadataFor(OnClickPhoneNumUseCaseJs, 'OnClickPhoneNumUseCaseJs', classMeta, VOID, [OnClickPhoneNumUseCase], OnClickPhoneNumUseCaseJs); setMetadataFor(PhoneNumValidatorUseCaseJs, 'PhoneNumValidatorUseCaseJs', classMeta, VOID, [PhoneNumValidatorUseCase], PhoneNumValidatorUseCaseJs); setMetadataFor(PhoneNumberJs, 'PhoneNumberJs', classMeta); setMetadataFor(PhoneNumberUtilJs, 'PhoneNumberUtilJs', classMeta, VOID, [IPhoneNumberUtil], PhoneNumberUtilJs); setMetadataFor(OnClickSendEmailUseCaseJs, 'OnClickSendEmailUseCaseJs', classMeta, VOID, [OnClickEmailUseCase], OnClickSendEmailUseCaseJs); setMetadataFor(DeleteUrisUseCaseJs, 'DeleteUrisUseCaseJs', classMeta, VOID, [DeleteUrisUseCase], VOID, VOID, VOID, [2]); setMetadataFor(IsTempFileCheckerUseCaseJs, 'IsTempFileCheckerUseCaseJs', classMeta, VOID, [IsTempFileCheckerUseCase], IsTempFileCheckerUseCaseJs); setMetadataFor($invokeCOROUTINE$94, '$invokeCOROUTINE$94', classMeta, CoroutineImpl); setMetadataFor(ChunkedUploadClientLocalUriUseCaseJs, 'ChunkedUploadClientLocalUriUseCaseJs', classMeta, VOID, [ChunkedUploadClientLocalUriUseCase], ChunkedUploadClientLocalUriUseCaseJs, VOID, VOID, [8]); setMetadataFor(SaveStatementOnClearUseCaseJs$invoke$slambda, 'SaveStatementOnClearUseCaseJs$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SaveStatementOnClearUseCaseJs, 'SaveStatementOnClearUseCaseJs', classMeta, VOID, [SaveStatementOnClearUseCase]); setMetadataFor(SaveStatementOnUnloadUseCaseJs, 'SaveStatementOnUnloadUseCaseJs', classMeta, VOID, [SaveStatementOnUnloadUseCase]); setMetadataFor($invokeCOROUTINE$95, '$invokeCOROUTINE$95', classMeta, CoroutineImpl); setMetadataFor(ResumeOrStartXapiSessionUseCaseJs, 'ResumeOrStartXapiSessionUseCaseJs', classMeta, VOID, [ResumeOrStartXapiSessionUseCase], VOID, VOID, VOID, [7]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_42, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(collectAsState$lambda$slambda$slambda, 'collectAsState$lambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(collectAsState$lambda$slambda, 'collectAsState$lambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(useLaunchedEffect$lambda$slambda, 'useLaunchedEffect$lambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_43, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(useNavControllerEffect$slambda$slambda, 'useNavControllerEffect$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(useNavControllerEffect$slambda, 'useNavControllerEffect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ViewModelAndKey, 'ViewModelAndKey', classMeta); setMetadataFor(Companion_208, 'Companion', objectMeta); setMetadataFor(UstadMobileSystemImpl, 'UstadMobileSystemImpl', classMeta, UstadMobileSystemCommon, VOID, VOID, VOID, VOID, [2]); setMetadataFor(StringProviderJs, 'StringProviderJs', classMeta); setMetadataFor(Companion_209, 'Companion', objectMeta); setMetadataFor(SavedStateHandle2, 'SavedStateHandle2', classMeta); setMetadataFor(UrlKmpJs, 'UrlKmpJs', classMeta); setMetadataFor(Companion_210, 'Companion', objectMeta); setMetadataFor(UstadAntilog, 'UstadAntilog', classMeta, Antilog, VOID, UstadAntilog); setMetadataFor(JsHeaderStringValuesAdapter, 'JsHeaderStringValuesAdapter', classMeta, VOID, [IStringValues]); //endregion function strings() { strings_instance = this; var tmp = this; var tmp_0 = require('localization/comustadmobilecore_stringsJson.json'); tmp.kmi_1 = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE(); var tmp_1 = this; var tmp_2 = require('localization/comustadmobilecore_stringsJson_rw.json'); var tmp_3 = new SupportedLocale('rw', (!(tmp_2 == null) ? typeof tmp_2 === 'string' : false) ? tmp_2 : THROW_CCE()); var tmp_4 = require('localization/comustadmobilecore_stringsJson_ne.json'); var tmp_5 = new SupportedLocale('ne', (!(tmp_4 == null) ? typeof tmp_4 === 'string' : false) ? tmp_4 : THROW_CCE()); var tmp_6 = require('localization/comustadmobilecore_stringsJson_ar.json'); var tmp_7 = new SupportedLocale('ar', (!(tmp_6 == null) ? typeof tmp_6 === 'string' : false) ? tmp_6 : THROW_CCE()); var tmp_8 = require('localization/comustadmobilecore_stringsJson_bn.json'); var tmp_9 = new SupportedLocale('bn', (!(tmp_8 == null) ? typeof tmp_8 === 'string' : false) ? tmp_8 : THROW_CCE()); var tmp_10 = require('localization/comustadmobilecore_stringsJson_fr.json'); var tmp_11 = new SupportedLocale('fr', (!(tmp_10 == null) ? typeof tmp_10 === 'string' : false) ? tmp_10 : THROW_CCE()); var tmp_12 = require('localization/comustadmobilecore_stringsJson_km.json'); var tmp_13 = new SupportedLocale('km', (!(tmp_12 == null) ? typeof tmp_12 === 'string' : false) ? tmp_12 : THROW_CCE()); var tmp_14 = require('localization/comustadmobilecore_stringsJson_fa.json'); var tmp_15 = new SupportedLocale('fa', (!(tmp_14 == null) ? typeof tmp_14 === 'string' : false) ? tmp_14 : THROW_CCE()); var tmp_16 = require('localization/comustadmobilecore_stringsJson_nb-NO.json'); var tmp_17 = new SupportedLocale('nb-NO', (!(tmp_16 == null) ? typeof tmp_16 === 'string' : false) ? tmp_16 : THROW_CCE()); var tmp_18 = require('localization/comustadmobilecore_stringsJson_it.json'); var tmp_19 = new SupportedLocale('it', (!(tmp_18 == null) ? typeof tmp_18 === 'string' : false) ? tmp_18 : THROW_CCE()); var tmp_20 = require('localization/comustadmobilecore_stringsJson_my.json'); var tmp_21 = new SupportedLocale('my', (!(tmp_20 == null) ? typeof tmp_20 === 'string' : false) ? tmp_20 : THROW_CCE()); var tmp_22 = require('localization/comustadmobilecore_stringsJson_ps.json'); var tmp_23 = new SupportedLocale('ps', (!(tmp_22 == null) ? typeof tmp_22 === 'string' : false) ? tmp_22 : THROW_CCE()); var tmp_24 = require('localization/comustadmobilecore_stringsJson_tg.json'); var tmp_25 = new SupportedLocale('tg', (!(tmp_24 == null) ? typeof tmp_24 === 'string' : false) ? tmp_24 : THROW_CCE()); var tmp_26 = require('localization/comustadmobilecore_stringsJson_ru.json'); tmp_1.lmi_1 = new SupportedLocales(listOf([tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, tmp_25, new SupportedLocale('ru', (!(tmp_26 == null) ? typeof tmp_26 === 'string' : false) ? tmp_26 : THROW_CCE())])); this.mmi_1 = new Impl(this.lmi_1, this.kmi_1); this.nmi_1 = new StringResource('app_name', this.mmi_1); this.omi_1 = new StringResource('blank', this.mmi_1); this.pmi_1 = new StringResource('login', this.mmi_1); this.qmi_1 = new StringResource('got_it', this.mmi_1); this.rmi_1 = new StringResource('learn_more', this.mmi_1); this.smi_1 = new StringResource('be_careful_interacting_online', this.mmi_1); this.tmi_1 = new StringResource('be_careful_not_to_share', this.mmi_1); this.umi_1 = new StringResource('share_app', this.mmi_1); this.vmi_1 = new StringResource('send_apk_file', this.mmi_1); this.wmi_1 = new StringResource('send_app_link', this.mmi_1); this.xmi_1 = new StringResource('error', this.mmi_1); this.ymi_1 = new StringResource('create_backup', this.mmi_1); this.zmi_1 = new StringResource('create_backup_description', this.mmi_1); this.amj_1 = new StringResource('err_registering_new_user', this.mmi_1); this.bmj_1 = new StringResource('register_empty_fields', this.mmi_1); this.cmj_1 = new StringResource('register_incorrect_email', this.mmi_1); this.dmj_1 = new StringResource('group_activity', this.mmi_1); this.emj_1 = new StringResource('select_group_members', this.mmi_1); this.fmj_1 = new StringResource('confirm_delete_message', this.mmi_1); this.gmj_1 = new StringResource('wrong_user_pass_combo', this.mmi_1); this.hmj_1 = new StringResource('login_network_error', this.mmi_1); this.imj_1 = new StringResource('download', this.mmi_1); this.jmj_1 = new StringResource('downloaded', this.mmi_1); this.kmj_1 = new StringResource('recycled', this.mmi_1); this.lmj_1 = new StringResource('libraries', this.mmi_1); this.mmj_1 = new StringResource('pause_download', this.mmi_1); this.nmj_1 = new StringResource('ok', this.mmi_1); this.omj_1 = new StringResource('confirm', this.mmi_1); this.pmj_1 = new StringResource('cancel', this.mmi_1); this.qmj_1 = new StringResource('canceled', this.mmi_1); this.rmj_1 = new StringResource('delete', this.mmi_1); this.smj_1 = new StringResource('deleted', this.mmi_1); this.tmj_1 = new StringResource('new_tab', this.mmi_1); this.umj_1 = new StringResource('loading', this.mmi_1); this.vmj_1 = new StringResource('deleting', this.mmi_1); this.wmj_1 = new StringResource('processing', this.mmi_1); this.xmj_1 = new StringResource('uploading', this.mmi_1); this.ymj_1 = new StringResource('error_opening_file', this.mmi_1); this.zmj_1 = new StringResource('logout', this.mmi_1); this.amk_1 = new StringResource('about', this.mmi_1); this.bmk_1 = new StringResource('download_all', this.mmi_1); this.cmk_1 = new StringResource('next', this.mmi_1); this.dmk_1 = new StringResource('previous', this.mmi_1); this.emk_1 = new StringResource('back', this.mmi_1); this.fmk_1 = new StringResource('username', this.mmi_1); this.gmk_1 = new StringResource('password', this.mmi_1); this.hmk_1 = new StringResource('confirm_password', this.mmi_1); this.imk_1 = new StringResource('last_name', this.mmi_1); this.jmk_1 = new StringResource('first_name', this.mmi_1); this.kmk_1 = new StringResource('least_recent', this.mmi_1); this.lmk_1 = new StringResource('by_score', this.mmi_1); this.mmk_1 = new StringResource('by_completion', this.mmi_1); this.nmk_1 = new StringResource('by_recent_attempt', this.mmi_1); this.omk_1 = new StringResource('by_timestamp', this.mmi_1); this.pmk_1 = new StringResource('register_now', this.mmi_1); this.qmk_1 = new StringResource('new_password', this.mmi_1); this.rmk_1 = new StringResource('phone_memory', this.mmi_1); this.smk_1 = new StringResource('memory_card', this.mmi_1); this.tmk_1 = new StringResource('device', this.mmi_1); this.umk_1 = new StringResource('register', this.mmi_1); this.vmk_1 = new StringResource('phone_number', this.mmi_1); this.wmk_1 = new StringResource('name_key', this.mmi_1); this.xmk_1 = new StringResource('description', this.mmi_1); this.ymk_1 = new StringResource('male', this.mmi_1); this.zmk_1 = new StringResource('female', this.mmi_1); this.aml_1 = new StringResource('other', this.mmi_1); this.bml_1 = new StringResource('unset', this.mmi_1); this.cml_1 = new StringResource('settings', this.mmi_1); this.dml_1 = new StringResource('language', this.mmi_1); this.eml_1 = new StringResource('add_a_new_language', this.mmi_1); this.fml_1 = new StringResource('add_new_language', this.mmi_1); this.gml_1 = new StringResource('select_language', this.mmi_1); this.hml_1 = new StringResource('languages', this.mmi_1); this.iml_1 = new StringResource('edit_language', this.mmi_1); this.jml_1 = new StringResource('two_letter_code', this.mmi_1); this.kml_1 = new StringResource('three_letter_code', this.mmi_1); this.lml_1 = new StringResource('languages_description', this.mmi_1); this.mml_1 = new StringResource('advanced', this.mmi_1); this.nml_1 = new StringResource('optional', this.mmi_1); this.oml_1 = new StringResource('email', this.mmi_1); this.pml_1 = new StringResource('regcode', this.mmi_1); this.qml_1 = new StringResource('home', this.mmi_1); this.rml_1 = new StringResource('phone', this.mmi_1); this.sml_1 = new StringResource('attendance', this.mmi_1); this.tml_1 = new StringResource('classes', this.mmi_1); this.uml_1 = new StringResource('exams', this.mmi_1); this.vml_1 = new StringResource('reports', this.mmi_1); this.wml_1 = new StringResource('choose_template', this.mmi_1); this.xml_1 = new StringResource('save_as_template', this.mmi_1); this.yml_1 = new StringResource('contents', this.mmi_1); this.zml_1 = new StringResource('students', this.mmi_1); this.amm_1 = new StringResource('add_a_student', this.mmi_1); this.bmm_1 = new StringResource('forgot_password', this.mmi_1); this.cmm_1 = new StringResource('notifications', this.mmi_1); this.dmm_1 = new StringResource('account', this.mmi_1); this.emm_1 = new StringResource('accounts', this.mmi_1); this.fmm_1 = new StringResource('share', this.mmi_1); this.gmm_1 = new StringResource('send', this.mmi_1); this.hmm_1 = new StringResource('open', this.mmi_1); this.imm_1 = new StringResource('downloading', this.mmi_1); this.jmm_1 = new StringResource('waiting', this.mmi_1); this.kmm_1 = new StringResource('waiting_for_connection', this.mmi_1); this.lmm_1 = new StringResource('queued', this.mmi_1); this.mmm_1 = new StringResource('failed', this.mmi_1); this.nmm_1 = new StringResource('passed', this.mmi_1); this.omm_1 = new StringResource('success', this.mmi_1); this.pmm_1 = new StringResource('failure', this.mmi_1); this.qmm_1 = new StringResource('incomplete', this.mmi_1); this.rmm_1 = new StringResource('completed', this.mmi_1); this.smm_1 = new StringResource('experience', this.mmi_1); this.tmm_1 = new StringResource('answered', this.mmi_1); this.umm_1 = new StringResource('select_subtitle_video', this.mmi_1); this.vmm_1 = new StringResource('no_subtitle', this.mmi_1); this.wmm_1 = new StringResource('no_video_file_found', this.mmi_1); this.xmm_1 = new StringResource('content_from_file', this.mmi_1); this.ymm_1 = new StringResource('content_from_link', this.mmi_1); this.zmm_1 = new StringResource('import_from_file', this.mmi_1); this.amn_1 = new StringResource('import_from_link', this.mmi_1); this.bmn_1 = new StringResource('import_content', this.mmi_1); this.cmn_1 = new StringResource('update_content', this.mmi_1); this.dmn_1 = new StringResource('publicly_accessible', this.mmi_1); this.emn_1 = new StringResource('title', this.mmi_1); this.fmn_1 = new StringResource('licence', this.mmi_1); this.gmn_1 = new StringResource('ebook', this.mmi_1); this.hmn_1 = new StringResource('interactive', this.mmi_1); this.imn_1 = new StringResource('collection', this.mmi_1); this.jmn_1 = new StringResource('document', this.mmi_1); this.kmn_1 = new StringResource('article', this.mmi_1); this.lmn_1 = new StringResource('audio', this.mmi_1); this.mmn_1 = new StringResource('move', this.mmi_1); this.nmn_1 = new StringResource('hide', this.mmi_1); this.omn_1 = new StringResource('unhide', this.mmi_1); this.pmn_1 = new StringResource('compress', this.mmi_1); this.qmn_1 = new StringResource('and_key', this.mmi_1); this.rmn_1 = new StringResource('added', this.mmi_1); this.smn_1 = new StringResource('attempts', this.mmi_1); this.tmn_1 = new StringResource('add_link_description', this.mmi_1); this.umn_1 = new StringResource('add_gallery_description', this.mmi_1); this.vmn_1 = new StringResource('add_file_description', this.mmi_1); this.wmn_1 = new StringResource('error_this_device_doesnt_support_bluetooth_sharing', this.mmi_1); this.xmn_1 = new StringResource('share_offline_zip_checkbox_label', this.mmi_1); this.ymn_1 = new StringResource('share_offline_dialog_message', this.mmi_1); this.zmn_1 = new StringResource('preparing', this.mmi_1); this.amo_1 = new StringResource('fixed_date', this.mmi_1); this.bmo_1 = new StringResource('relative_date', this.mmi_1); this.cmo_1 = new StringResource('field_required_prompt', this.mmi_1); this.dmo_1 = new StringResource('field_password_error_min', this.mmi_1); this.emo_1 = new StringResource('filed_password_no_match', this.mmi_1); this.fmo_1 = new StringResource('update', this.mmi_1); this.gmo_1 = new StringResource('profile', this.mmi_1); this.hmo_1 = new StringResource('dialog_download_from_playstore_message', this.mmi_1); this.imo_1 = new StringResource('dialog_download_from_playstore_ok', this.mmi_1); this.jmo_1 = new StringResource('dialog_download_from_playstore_cancel', this.mmi_1); this.kmo_1 = new StringResource('accept', this.mmi_1); this.lmo_1 = new StringResource('also_available_in', this.mmi_1); this.mmo_1 = new StringResource('created_partnership', this.mmi_1); this.nmo_1 = new StringResource('onboarding_get_started_label', this.mmi_1); this.omo_1 = new StringResource('lets_get_started_label', this.mmi_1); this.pmo_1 = new StringResource('onboarding_headline1', this.mmi_1); this.qmo_1 = new StringResource('onboarding_subheadline1', this.mmi_1); this.rmo_1 = new StringResource('onboarding_headline2', this.mmi_1); this.smo_1 = new StringResource('onboarding_subheadline2', this.mmi_1); this.tmo_1 = new StringResource('onboarding_headline3', this.mmi_1); this.umo_1 = new StringResource('onboarding_subheadline3', this.mmi_1); this.vmo_1 = new StringResource('download_continue_stacked_label', this.mmi_1); this.wmo_1 = new StringResource('im_an_individual_learner', this.mmi_1); this.xmo_1 = new StringResource('im_an_individual_learner_description', this.mmi_1); this.ymo_1 = new StringResource('i_want_to_join_my_organization_school', this.mmi_1); this.zmo_1 = new StringResource('i_want_to_join_my_organization_school_description', this.mmi_1); this.amp_1 = new StringResource('i_want_to_add_my_organization_school', this.mmi_1); this.bmp_1 = new StringResource('i_want_to_add_my_organization_school_description', this.mmi_1); this.cmp_1 = new StringResource('individual_action_title', this.mmi_1); this.dmp_1 = new StringResource('create_new_local_account_title', this.mmi_1); this.emp_1 = new StringResource('create_new_local_account_description', this.mmi_1); this.fmp_1 = new StringResource('restore_local_account_title', this.mmi_1); this.gmp_1 = new StringResource('restore_local_account_description', this.mmi_1); this.hmp_1 = new StringResource('download_continue_btn_label', this.mmi_1); this.imp_1 = new StringResource('download_wifi_only', this.mmi_1); this.jmp_1 = new StringResource('download_calculating', this.mmi_1); this.kmp_1 = new StringResource('download_state_download', this.mmi_1); this.lmp_1 = new StringResource('download_state_downloading', this.mmi_1); this.mmp_1 = new StringResource('download_state_downloaded', this.mmi_1); this.nmp_1 = new StringResource('download_downloading_placeholder', this.mmi_1); this.omp_1 = new StringResource('download_summary_title', this.mmi_1); this.pmp_1 = new StringResource('download_cancel_label', this.mmi_1); this.qmp_1 = new StringResource('download_pause_download', this.mmi_1); this.rmp_1 = new StringResource('download_storage_option_device', this.mmi_1); this.smp_1 = new StringResource('download_locally_availability', this.mmi_1); this.tmp_1 = new StringResource('download_cloud_availability', this.mmi_1); this.ump_1 = new StringResource('insufficient_space', this.mmi_1); this.vmp_1 = new StringResource('download_entry_state_paused', this.mmi_1); this.wmp_1 = new StringResource('get_app', this.mmi_1); this.xmp_1 = new StringResource('no_app_found', this.mmi_1); this.ymp_1 = new StringResource('entry_details_author', this.mmi_1); this.zmp_1 = new StringResource('entry_details_publisher', this.mmi_1); this.amq_1 = new StringResource('entry_details_license', this.mmi_1); this.bmq_1 = new StringResource('file_not_found', this.mmi_1); this.cmq_1 = new StringResource('multiple_choice', this.mmi_1); this.dmq_1 = new StringResource('preview', this.mmi_1); this.emq_1 = new StringResource('content_creation_storage_option_title', this.mmi_1); this.fmq_1 = new StringResource('file_required_prompt', this.mmi_1); this.gmq_1 = new StringResource('content_creation_folder_new_message', this.mmi_1); this.hmq_1 = new StringResource('content_creation_folder_update_message', this.mmi_1); this.imq_1 = new StringResource('error_message_load_page', this.mmi_1); this.jmq_1 = new StringResource('error_message_update_document', this.mmi_1); this.kmq_1 = new StringResource('supported_files', this.mmi_1); this.lmq_1 = new StringResource('content_editor_save_error', this.mmi_1); this.mmq_1 = new StringResource('content_entry_export_inprogress', this.mmi_1); this.nmq_1 = new StringResource('content_entry_export_message', this.mmi_1); this.omq_1 = new StringResource('show_hidden_items', this.mmi_1); this.pmq_1 = new StringResource('open_folder', this.mmi_1); this.qmq_1 = new StringResource('action_hidden', this.mmi_1); this.rmq_1 = new StringResource('invalid', this.mmi_1); this.smq_1 = new StringResource('enter_register_code', this.mmi_1); this.tmq_1 = new StringResource('bar_chart', this.mmi_1); this.umq_1 = new StringResource('line_chart', this.mmi_1); this.vmq_1 = new StringResource('score', this.mmi_1); this.wmq_1 = new StringResource('content_total_duration', this.mmi_1); this.xmq_1 = new StringResource('content_average_duration', this.mmi_1); this.ymq_1 = new StringResource('count_session', this.mmi_1); this.zmq_1 = new StringResource('interaction_recorded', this.mmi_1); this.amr_1 = new StringResource('number_active_users', this.mmi_1); this.bmr_1 = new StringResource('average_usage_time_per_user', this.mmi_1); this.cmr_1 = new StringResource('number_students_completed', this.mmi_1); this.dmr_1 = new StringResource('percent_students_completed', this.mmi_1); this.emr_1 = new StringResource('total_attendances', this.mmi_1); this.fmr_1 = new StringResource('total_absences', this.mmi_1); this.gmr_1 = new StringResource('total_lates', this.mmi_1); this.hmr_1 = new StringResource('percent_students_attended', this.mmi_1); this.imr_1 = new StringResource('percent_students_attended_or_late', this.mmi_1); this.jmr_1 = new StringResource('total_number_of_classes', this.mmi_1); this.kmr_1 = new StringResource('number_unique_students_attending', this.mmi_1); this.lmr_1 = new StringResource('xapi_day', this.mmi_1); this.mmr_1 = new StringResource('xapi_week', this.mmi_1); this.nmr_1 = new StringResource('xapi_month', this.mmi_1); this.omr_1 = new StringResource('xapi_custom_date', this.mmi_1); this.pmr_1 = new StringResource('xapi_content_entry', this.mmi_1); this.qmr_1 = new StringResource('xapi_clear', this.mmi_1); this.rmr_1 = new StringResource('last_week_date_range', this.mmi_1); this.smr_1 = new StringResource('last_two_week_date_range', this.mmi_1); this.tmr_1 = new StringResource('last_month_date_range', this.mmi_1); this.umr_1 = new StringResource('last_three_months_date_range', this.mmi_1); this.vmr_1 = new StringResource('new_custom_date_range', this.mmi_1); this.wmr_1 = new StringResource('selected_custom_range', this.mmi_1); this.xmr_1 = new StringResource('time_range', this.mmi_1); this.ymr_1 = new StringResource('year', this.mmi_1); this.zmr_1 = new StringResource('from', this.mmi_1); this.ams_1 = new StringResource('done', this.mmi_1); this.bms_1 = new StringResource('xapi_options_general', this.mmi_1); this.cms_1 = new StringResource('xapi_options_report_title', this.mmi_1); this.dms_1 = new StringResource('xapi_options_visual_type', this.mmi_1); this.ems_1 = new StringResource('xapi_options_data_set', this.mmi_1); this.fms_1 = new StringResource('xapi_options_series', this.mmi_1); this.gms_1 = new StringResource('xapi_options_axes', this.mmi_1); this.hms_1 = new StringResource('xapi_options_y_axes', this.mmi_1); this.ims_1 = new StringResource('xapi_options_x_axes', this.mmi_1); this.jms_1 = new StringResource('xapi_options_subgroup', this.mmi_1); this.kms_1 = new StringResource('xapi_options_filters', this.mmi_1); this.lms_1 = new StringResource('xapi_options_who', this.mmi_1); this.mms_1 = new StringResource('xapi_options_did', this.mmi_1); this.nms_1 = new StringResource('xapi_options_what', this.mmi_1); this.oms_1 = new StringResource('xapi_options_when', this.mmi_1); this.pms_1 = new StringResource('xapi_options_where', this.mmi_1); this.qms_1 = new StringResource('time_range_all', this.mmi_1); this.rms_1 = new StringResource('report_filter_edit_field', this.mmi_1); this.sms_1 = new StringResource('report_filter_edit_condition', this.mmi_1); this.tms_1 = new StringResource('report_filter_edit_values', this.mmi_1); this.ums_1 = new StringResource('report', this.mmi_1); this.vms_1 = new StringResource('create_a_new_report', this.mmi_1); this.wms_1 = new StringResource('edit_report', this.mmi_1); this.xms_1 = new StringResource('verb', this.mmi_1); this.yms_1 = new StringResource('add_a_new_verb', this.mmi_1); this.zms_1 = new StringResource('id_verbentity_urlid', this.mmi_1); this.amt_1 = new StringResource('edit_filters', this.mmi_1); this.bmt_1 = new StringResource('field_person_gender', this.mmi_1); this.cmt_1 = new StringResource('field_person_age', this.mmi_1); this.dmt_1 = new StringResource('field_content_completion', this.mmi_1); this.emt_1 = new StringResource('field_content_entry', this.mmi_1); this.fmt_1 = new StringResource('field_content_progress', this.mmi_1); this.gmt_1 = new StringResource('field_attendance_percentage', this.mmi_1); this.hmt_1 = new StringResource('condition_is', this.mmi_1); this.imt_1 = new StringResource('condition_is_not', this.mmi_1); this.jmt_1 = new StringResource('condition_greater_than', this.mmi_1); this.kmt_1 = new StringResource('condition_less_than', this.mmi_1); this.lmt_1 = new StringResource('condition_in_list', this.mmi_1); this.mmt_1 = new StringResource('condition_not_in_list', this.mmi_1); this.nmt_1 = new StringResource('condition_between', this.mmi_1); this.omt_1 = new StringResource('add_person_filter', this.mmi_1); this.pmt_1 = new StringResource('add_verb_filter', this.mmi_1); this.qmt_1 = new StringResource('add_content_filter', this.mmi_1); this.rmt_1 = new StringResource('dashboard', this.mmi_1); this.smt_1 = new StringResource('activity_import_link', this.mmi_1); this.tmt_1 = new StringResource('xapi_hours', this.mmi_1); this.umt_1 = new StringResource('xapi_minutes', this.mmi_1); this.vmt_1 = new StringResource('xapi_seconds', this.mmi_1); this.wmt_1 = new StringResource('xapi_verb_header', this.mmi_1); this.xmt_1 = new StringResource('xapi_result_header', this.mmi_1); this.ymt_1 = new StringResource('xapi_score', this.mmi_1); this.zmt_1 = new StringResource('content_score', this.mmi_1); this.amu_1 = new StringResource('completion_key', this.mmi_1); this.bmu_1 = new StringResource('import_title_not_entered', this.mmi_1); this.cmu_1 = new StringResource('no_account', this.mmi_1); this.dmu_1 = new StringResource('enter_url', this.mmi_1); this.emu_1 = new StringResource('invalid_link', this.mmi_1); this.fmu_1 = new StringResource('invalid_file', this.mmi_1); this.gmu_1 = new StringResource('import_link_content_not_supported', this.mmi_1); this.hmu_1 = new StringResource('unsupported_file_type', this.mmi_1); this.imu_1 = new StringResource('import_link_big_size', this.mmi_1); this.jmu_1 = new StringResource('import_link_error', this.mmi_1); this.kmu_1 = new StringResource('supported_link', this.mmi_1); this.lmu_1 = new StringResource('offline_sharing_enable_bluetooth_prompt', this.mmi_1); this.mmu_1 = new StringResource('offline_sharing_enable_wifi_promot', this.mmi_1); this.nmu_1 = new StringResource('enable', this.mmi_1); this.omu_1 = new StringResource('repo_loading_status_loading_cloud', this.mmi_1); this.pmu_1 = new StringResource('repo_loading_status_loading_mirror', this.mmi_1); this.qmu_1 = new StringResource('repo_loading_status_failed_noconnection', this.mmi_1); this.rmu_1 = new StringResource('repo_loading_status_failed_connection_error', this.mmi_1); this.smu_1 = new StringResource('licence_type_cc_by', this.mmi_1); this.tmu_1 = new StringResource('licence_type_cc_by_sa', this.mmi_1); this.umu_1 = new StringResource('licence_type_cc_by_sa_nc', this.mmi_1); this.vmu_1 = new StringResource('licence_type_cc_by_nc', this.mmi_1); this.wmu_1 = new StringResource('licence_type_cc_by_nc_sa', this.mmi_1); this.xmu_1 = new StringResource('licence_type_public_domain', this.mmi_1); this.ymu_1 = new StringResource('licence_type_all_rights', this.mmi_1); this.zmu_1 = new StringResource('license_type_cc_0', this.mmi_1); this.amv_1 = new StringResource('syncing', this.mmi_1); this.bmv_1 = new StringResource('feed', this.mmi_1); this.cmv_1 = new StringResource('people', this.mmi_1); this.dmv_1 = new StringResource('record_attendance', this.mmi_1); this.emv_1 = new StringResource('today', this.mmi_1); this.fmv_1 = new StringResource('sort_by', this.mmi_1); this.gmv_1 = new StringResource('log', this.mmi_1); this.hmv_1 = new StringResource('schedule', this.mmi_1); this.imv_1 = new StringResource('add_a_schedule', this.mmi_1); this.jmv_1 = new StringResource('edit_schedule', this.mmi_1); this.kmv_1 = new StringResource('first_key', this.mmi_1); this.lmv_1 = new StringResource('last_key', this.mmi_1); this.mmv_1 = new StringResource('last_week', this.mmi_1); this.nmv_1 = new StringResource('mark_all', this.mmi_1); this.omv_1 = new StringResource('mark_all_present', this.mmi_1); this.pmv_1 = new StringResource('mark_all_absent', this.mmi_1); this.qmv_1 = new StringResource('present', this.mmi_1); this.rmv_1 = new StringResource('absent', this.mmi_1); this.smv_1 = new StringResource('attendance_report', this.mmi_1); this.tmv_1 = new StringResource('father', this.mmi_1); this.umv_1 = new StringResource('mother', this.mmi_1); this.vmv_1 = new StringResource('birthday', this.mmi_1); this.wmv_1 = new StringResource('first_names', this.mmi_1); this.xmv_1 = new StringResource('basic_details', this.mmi_1); this.ymv_1 = new StringResource('address', this.mmi_1); this.zmv_1 = new StringResource('add_person_to_class', this.mmi_1); this.amw_1 = new StringResource('edit', this.mmi_1); this.bmw_1 = new StringResource('clazz', this.mmi_1); this.cmw_1 = new StringResource('add_a_new_class', this.mmi_1); this.dmw_1 = new StringResource('edit_clazz', this.mmi_1); this.emw_1 = new StringResource('add_a_class', this.mmi_1); this.fmw_1 = new StringResource('join_existing_class', this.mmi_1); this.gmw_1 = new StringResource('student_image', this.mmi_1); this.hmw_1 = new StringResource('question_key', this.mmi_1); this.imw_1 = new StringResource('add_question', this.mmi_1); this.jmw_1 = new StringResource('edit_question', this.mmi_1); this.kmw_1 = new StringResource('questions', this.mmi_1); this.lmw_1 = new StringResource('add_person', this.mmi_1); this.mmw_1 = new StringResource('add_class', this.mmi_1); this.nmw_1 = new StringResource('class_name', this.mmi_1); this.omw_1 = new StringResource('class_description', this.mmi_1); this.pmw_1 = new StringResource('to_key', this.mmi_1); this.qmw_1 = new StringResource('holiday', this.mmi_1); this.rmw_1 = new StringResource('add_a_holiday', this.mmi_1); this.smw_1 = new StringResource('edit_holiday', this.mmi_1); this.tmw_1 = new StringResource('holidays', this.mmi_1); this.umw_1 = new StringResource('holiday_calendar', this.mmi_1); this.vmw_1 = new StringResource('add_a_new_holiday_calendar', this.mmi_1); this.wmw_1 = new StringResource('edit_holiday_calendar', this.mmi_1); this.xmw_1 = new StringResource('features_enabled', this.mmi_1); this.ymw_1 = new StringResource('weekly', this.mmi_1); this.zmw_1 = new StringResource('once', this.mmi_1); this.amx_1 = new StringResource('daily', this.mmi_1); this.bmx_1 = new StringResource('monthly', this.mmi_1); this.cmx_1 = new StringResource('yearly', this.mmi_1); this.dmx_1 = new StringResource('sunday', this.mmi_1); this.emx_1 = new StringResource('monday', this.mmi_1); this.fmx_1 = new StringResource('tuesday', this.mmi_1); this.gmx_1 = new StringResource('wednesday', this.mmi_1); this.hmx_1 = new StringResource('thursday', this.mmi_1); this.imx_1 = new StringResource('friday', this.mmi_1); this.jmx_1 = new StringResource('saturday', this.mmi_1); this.kmx_1 = new StringResource('day', this.mmi_1); this.lmx_1 = new StringResource('toC', this.mmi_1); this.mmx_1 = new StringResource('last_month', this.mmi_1); this.nmx_1 = new StringResource('activity_change', this.mmi_1); this.omx_1 = new StringResource('change_implemented_if_any', this.mmi_1); this.pmx_1 = new StringResource('duration', this.mmi_1); this.qmx_1 = new StringResource('how_did_it_go', this.mmi_1); this.rmx_1 = new StringResource('notes', this.mmi_1); this.smx_1 = new StringResource('activity', this.mmi_1); this.tmx_1 = new StringResource('sort_by_name', this.mmi_1); this.umx_1 = new StringResource('sort_by_name_asc', this.mmi_1); this.vmx_1 = new StringResource('sort_by_name_desc', this.mmi_1); this.wmx_1 = new StringResource('date_enroll', this.mmi_1); this.xmx_1 = new StringResource('date_left', this.mmi_1); this.ymx_1 = new StringResource('enroled', this.mmi_1); this.zmx_1 = new StringResource('class_enrolment', this.mmi_1); this.amy_1 = new StringResource('graduated', this.mmi_1); this.bmy_1 = new StringResource('dropped_out', this.mmi_1); this.cmy_1 = new StringResource('moved', this.mmi_1); this.dmy_1 = new StringResource('new_leaving_reason', this.mmi_1); this.emy_1 = new StringResource('edit_leaving_reason', this.mmi_1); this.fmy_1 = new StringResource('edit_enrolment', this.mmi_1); this.gmy_1 = new StringResource('new_enrolment', this.mmi_1); this.hmy_1 = new StringResource('select_leaving_reason', this.mmi_1); this.imy_1 = new StringResource('add_leaving_reason', this.mmi_1); this.jmy_1 = new StringResource('leaving_reason', this.mmi_1); this.kmy_1 = new StringResource('leaving_reasons', this.mmi_1); this.lmy_1 = new StringResource('leaving_reason_manage', this.mmi_1); this.mmy_1 = new StringResource('view_profile', this.mmi_1); this.nmy_1 = new StringResource('class_enrolment_outcome', this.mmi_1); this.omy_1 = new StringResource('class_enrolment_leaving', this.mmi_1); this.pmy_1 = new StringResource('in_progress', this.mmi_1); this.qmy_1 = new StringResource('outcome', this.mmi_1); this.rmy_1 = new StringResource('person_enrolment_in_class', this.mmi_1); this.smy_1 = new StringResource('enrolment', this.mmi_1); this.tmy_1 = new StringResource('error_start_date_before_clazz_date', this.mmi_1); this.umy_1 = new StringResource('error_start_date_before_previous_enrolment_date', this.mmi_1); this.vmy_1 = new StringResource('time_present', this.mmi_1); this.wmy_1 = new StringResource('ascending', this.mmi_1); this.xmy_1 = new StringResource('descending', this.mmi_1); this.ymy_1 = new StringResource('sort_by_text', this.mmi_1); this.zmy_1 = new StringResource('attendance_high_to_low', this.mmi_1); this.amz_1 = new StringResource('attendance_low_to_high', this.mmi_1); this.bmz_1 = new StringResource('teacher', this.mmi_1); this.cmz_1 = new StringResource('add_a_teacher', this.mmi_1); this.dmz_1 = new StringResource('partial', this.mmi_1); this.emz_1 = new StringResource('teachers_literal', this.mmi_1); this.fmz_1 = new StringResource('participant', this.mmi_1); this.gmz_1 = new StringResource('primary_user', this.mmi_1); this.hmz_1 = new StringResource('up_key', this.mmi_1); this.imz_1 = new StringResource('down_key', this.mmi_1); this.jmz_1 = new StringResource('activity_went_good', this.mmi_1); this.kmz_1 = new StringResource('activity_went_bad', this.mmi_1); this.lmz_1 = new StringResource('activity_enter_any_notes', this.mmi_1); this.mmz_1 = new StringResource('uom_frequency_title', this.mmi_1); this.nmz_1 = new StringResource('uom_duration_title', this.mmi_1); this.omz_1 = new StringResource('uom_boolean_title', this.mmi_1); this.pmz_1 = new StringResource('uom_default_title', this.mmi_1); this.qmz_1 = new StringResource('add_activity', this.mmi_1); this.rmz_1 = new StringResource('add_activity_literal', this.mmi_1); this.smz_1 = new StringResource('select_one', this.mmi_1); this.tmz_1 = new StringResource('measurement_type', this.mmi_1); this.umz_1 = new StringResource('frequency', this.mmi_1); this.vmz_1 = new StringResource('yes_no', this.mmi_1); this.wmz_1 = new StringResource('time_period', this.mmi_1); this.xmz_1 = new StringResource('location', this.mmi_1); this.ymz_1 = new StringResource('last_three_months', this.mmi_1); this.zmz_1 = new StringResource('export', this.mmi_1); this.an0_1 = new StringResource('date', this.mmi_1); this.bn0_1 = new StringResource('average', this.mmi_1); this.cn0_1 = new StringResource('age', this.mmi_1); this.dn0_1 = new StringResource('days', this.mmi_1); this.en0_1 = new StringResource('apply', this.mmi_1); this.fn0_1 = new StringResource('file_selected', this.mmi_1); this.gn0_1 = new StringResource('all', this.mmi_1); this.hn0_1 = new StringResource('holiday_calendars', this.mmi_1); this.in0_1 = new StringResource('holiday_calendars_desc', this.mmi_1); this.jn0_1 = new StringResource('sel_question_set', this.mmi_1); this.kn0_1 = new StringResource('sel_question_set_desc', this.mmi_1); this.ln0_1 = new StringResource('users', this.mmi_1); this.mn0_1 = new StringResource('nomination', this.mmi_1); this.nn0_1 = new StringResource('active', this.mmi_1); this.on0_1 = new StringResource('class_id', this.mmi_1); this.pn0_1 = new StringResource('gender_literal', this.mmi_1); this.qn0_1 = new StringResource('country', this.mmi_1); this.rn0_1 = new StringResource('connectivity', this.mmi_1); this.sn0_1 = new StringResource('home_internet_access', this.mmi_1); this.tn0_1 = new StringResource('mobile_internet_access', this.mmi_1); this.un0_1 = new StringResource('connectivity_limited', this.mmi_1); this.vn0_1 = new StringResource('connectivity_full', this.mmi_1); this.wn0_1 = new StringResource('prefer_not_to_say', this.mmi_1); this.xn0_1 = new StringResource('sel_question_set_to_use', this.mmi_1); this.yn0_1 = new StringResource('search', this.mmi_1); this.zn0_1 = new StringResource('attendance_percentage', this.mmi_1); this.an1_1 = new StringResource('filter', this.mmi_1); this.bn1_1 = new StringResource('over_key', this.mmi_1); this.cn1_1 = new StringResource('sync', this.mmi_1); this.dn1_1 = new StringResource('not_recorded', this.mmi_1); this.en1_1 = new StringResource('groups', this.mmi_1); this.fn1_1 = new StringResource('group_setting_desc', this.mmi_1); this.gn1_1 = new StringResource('roles', this.mmi_1); this.hn1_1 = new StringResource('role', this.mmi_1); this.in1_1 = new StringResource('add_a_new_role', this.mmi_1); this.jn1_1 = new StringResource('edit_role', this.mmi_1); this.kn1_1 = new StringResource('rols_assignment', this.mmi_1); this.ln1_1 = new StringResource('role_assignment_setting_desc', this.mmi_1); this.mn1_1 = new StringResource('locations', this.mmi_1); this.nn1_1 = new StringResource('locations_setting_desc', this.mmi_1); this.on1_1 = new StringResource('audit_log', this.mmi_1); this.pn1_1 = new StringResource('audit_log_setting_desc', this.mmi_1); this.qn1_1 = new StringResource('entry_key', this.mmi_1); this.rn1_1 = new StringResource('permission_key', this.mmi_1); this.sn1_1 = new StringResource('permissions', this.mmi_1); this.tn1_1 = new StringResource('role_name', this.mmi_1); this.un1_1 = new StringResource('members_key', this.mmi_1); this.vn1_1 = new StringResource('member_key', this.mmi_1); this.wn1_1 = new StringResource('role_assignment', this.mmi_1); this.xn1_1 = new StringResource('scope_by', this.mmi_1); this.yn1_1 = new StringResource('assign_to', this.mmi_1); this.zn1_1 = new StringResource('person', this.mmi_1); this.an2_1 = new StringResource('add_a_new_person', this.mmi_1); this.bn2_1 = new StringResource('edit_person', this.mmi_1); this.cn2_1 = new StringResource('permission_person_select', this.mmi_1); this.dn2_1 = new StringResource('permission_person_insert', this.mmi_1); this.en2_1 = new StringResource('permission_person_update', this.mmi_1); this.fn2_1 = new StringResource('permission_person_picture_select', this.mmi_1); this.gn2_1 = new StringResource('permission_person_picture_insert', this.mmi_1); this.hn2_1 = new StringResource('permission_person_picture_update', this.mmi_1); this.in2_1 = new StringResource('permission_clazz_select', this.mmi_1); this.jn2_1 = new StringResource('permission_clazz_insert', this.mmi_1); this.kn2_1 = new StringResource('permission_clazz_update', this.mmi_1); this.ln2_1 = new StringResource('permission_clazz_add_teacher', this.mmi_1); this.mn2_1 = new StringResource('permission_clazz_add_student', this.mmi_1); this.nn2_1 = new StringResource('permission_attendance_select', this.mmi_1); this.on2_1 = new StringResource('permission_attendance_insert', this.mmi_1); this.pn2_1 = new StringResource('permission_attendance_update', this.mmi_1); this.qn2_1 = new StringResource('permission_activity_select', this.mmi_1); this.rn2_1 = new StringResource('permission_activity_insert', this.mmi_1); this.sn2_1 = new StringResource('permission_activity_update', this.mmi_1); this.tn2_1 = new StringResource('permission_sel_question_select', this.mmi_1); this.un2_1 = new StringResource('permission_sel_question_insert', this.mmi_1); this.vn2_1 = new StringResource('permission_sel_question_update', this.mmi_1); this.wn2_1 = new StringResource('permission_sel_select', this.mmi_1); this.xn2_1 = new StringResource('permission_sel_update', this.mmi_1); this.yn2_1 = new StringResource('custom_fields', this.mmi_1); this.zn2_1 = new StringResource('custom_field', this.mmi_1); this.an3_1 = new StringResource('custom_fields_desc', this.mmi_1); this.bn3_1 = new StringResource('field_type', this.mmi_1); this.cn3_1 = new StringResource('text', this.mmi_1); this.dn3_1 = new StringResource('dropdown', this.mmi_1); this.en3_1 = new StringResource('options', this.mmi_1); this.fn3_1 = new StringResource('option_value', this.mmi_1); this.gn3_1 = new StringResource('errors', this.mmi_1); this.hn3_1 = new StringResource('shake_feedback', this.mmi_1); this.in3_1 = new StringResource('feedback_hint', this.mmi_1); this.jn3_1 = new StringResource('send_feedback', this.mmi_1); this.kn3_1 = new StringResource('feedback_thanks', this.mmi_1); this.ln3_1 = new StringResource('start_date', this.mmi_1); this.mn3_1 = new StringResource('end_date', this.mmi_1); this.nn3_1 = new StringResource('last_active', this.mmi_1); this.on3_1 = new StringResource('save', this.mmi_1); this.pn3_1 = new StringResource('change_password', this.mmi_1); this.qn3_1 = new StringResource('current_password', this.mmi_1); this.rn3_1 = new StringResource('password_unchanged', this.mmi_1); this.sn3_1 = new StringResource('timezone', this.mmi_1); this.tn3_1 = new StringResource('users_settings_desc', this.mmi_1); this.un3_1 = new StringResource('add', this.mmi_1); this.vn3_1 = new StringResource('refresh', this.mmi_1); this.wn3_1 = new StringResource('school', this.mmi_1); this.xn3_1 = new StringResource('add_a_new_school', this.mmi_1); this.yn3_1 = new StringResource('edit_school', this.mmi_1); this.zn3_1 = new StringResource('join_existing_school', this.mmi_1); this.an4_1 = new StringResource('schools', this.mmi_1); this.bn4_1 = new StringResource('assignments', this.mmi_1); this.cn4_1 = new StringResource('assignment', this.mmi_1); this.dn4_1 = new StringResource('none_key', this.mmi_1); this.en4_1 = new StringResource('instructions_for_students', this.mmi_1); this.fn4_1 = new StringResource('not_started', this.mmi_1); this.gn4_1 = new StringResource('percentage_complete', this.mmi_1); this.hn4_1 = new StringResource('percentage_score', this.mmi_1); this.in4_1 = new StringResource('started_date', this.mmi_1); this.jn4_1 = new StringResource('started', this.mmi_1); this.kn4_1 = new StringResource('mixed', this.mmi_1); this.ln4_1 = new StringResource('store_title', this.mmi_1); this.mn4_1 = new StringResource('store_description_short', this.mmi_1); this.nn4_1 = new StringResource('store_description_full', this.mmi_1); this.on4_1 = new StringResource('due_date', this.mmi_1); this.pn4_1 = new StringResource('content', this.mmi_1); this.qn4_1 = new StringResource('add_new_content', this.mmi_1); this.rn4_1 = new StringResource('add_content', this.mmi_1); this.sn4_1 = new StringResource('student_progress', this.mmi_1); this.tn4_1 = new StringResource('status', this.mmi_1); this.un4_1 = new StringResource('use_device_language', this.mmi_1); this.vn4_1 = new StringResource('select_item', this.mmi_1); this.wn4_1 = new StringResource('from_to_date', this.mmi_1); this.xn4_1 = new StringResource('num_items_with_name', this.mmi_1); this.yn4_1 = new StringResource('num_items_with_name_with_comma', this.mmi_1); this.zn4_1 = new StringResource('add_to', this.mmi_1); this.an5_1 = new StringResource('remove_from', this.mmi_1); this.bn5_1 = new StringResource('change_photo', this.mmi_1); this.cn5_1 = new StringResource('remove_picture', this.mmi_1); this.dn5_1 = new StringResource('take_new_photo_from_camera', this.mmi_1); this.en5_1 = new StringResource('select_picture_from_gallery', this.mmi_1); this.fn5_1 = new StringResource('select_file', this.mmi_1); this.gn5_1 = new StringResource('permission_clazz_assignment_view', this.mmi_1); this.hn5_1 = new StringResource('permission_clazz_asignment_edit', this.mmi_1); this.in5_1 = new StringResource('overview', this.mmi_1); this.jn5_1 = new StringResource('add_new', this.mmi_1); this.kn5_1 = new StringResource('staff', this.mmi_1); this.ln5_1 = new StringResource('x_teachers_y_students', this.mmi_1); this.mn5_1 = new StringResource('call', this.mmi_1); this.nn5_1 = new StringResource('organization_id', this.mmi_1); this.on5_1 = new StringResource('student', this.mmi_1); this.pn5_1 = new StringResource('contact_details', this.mmi_1); this.qn5_1 = new StringResource('untitled', this.mmi_1); this.rn5_1 = new StringResource('present_late_absent', this.mmi_1); this.sn5_1 = new StringResource('marked_cap', this.mmi_1); this.tn5_1 = new StringResource('submitted_cap', this.mmi_1); this.un5_1 = new StringResource('not_submitted_cap', this.mmi_1); this.vn5_1 = new StringResource('submitliteral', this.mmi_1); this.wn5_1 = new StringResource('x_percent_attended', this.mmi_1); this.xn5_1 = new StringResource('answer', this.mmi_1); this.yn5_1 = new StringResource('of_content', this.mmi_1); this.zn5_1 = new StringResource('nothing_here', this.mmi_1); this.an6_1 = new StringResource('not_answered', this.mmi_1); this.bn6_1 = new StringResource('clazz_work', this.mmi_1); this.cn6_1 = new StringResource('add_a_new_clazzwork', this.mmi_1); this.dn6_1 = new StringResource('edit_clazzwork', this.mmi_1); this.en6_1 = new StringResource('clazz_assignment', this.mmi_1); this.fn6_1 = new StringResource('new_assignment', this.mmi_1); this.gn6_1 = new StringResource('edit_assignment', this.mmi_1); this.hn6_1 = new StringResource('total_score', this.mmi_1); this.in6_1 = new StringResource('late_submission', this.mmi_1); this.jn6_1 = new StringResource('mark_penalty', this.mmi_1); this.kn6_1 = new StringResource('late_submission_penalty', this.mmi_1); this.ln6_1 = new StringResource('end_of_grace_period', this.mmi_1); this.mn6_1 = new StringResource('allow_class_comments', this.mmi_1); this.nn6_1 = new StringResource('after_deadline_date_error', this.mmi_1); this.on6_1 = new StringResource('points', this.mmi_1); this.pn6_1 = new StringResource('minimum_score', this.mmi_1); this.qn6_1 = new StringResource('automatic', this.mmi_1); this.rn6_1 = new StringResource('student_marks_content', this.mmi_1); this.sn6_1 = new StringResource('completion_criteria', this.mmi_1); this.tn6_1 = new StringResource('mark_complete', this.mmi_1); this.un6_1 = new StringResource('late_penalty', this.mmi_1); this.vn6_1 = new StringResource('marked_key', this.mmi_1); this.wn6_1 = new StringResource('submitted_key', this.mmi_1); this.xn6_1 = new StringResource('not_submitted', this.mmi_1); this.yn6_1 = new StringResource('visible_from_date', this.mmi_1); this.zn6_1 = new StringResource('submission_type', this.mmi_1); this.an7_1 = new StringResource('no_submission_required', this.mmi_1); this.bn7_1 = new StringResource('short_text', this.mmi_1); this.cn7_1 = new StringResource('attachment', this.mmi_1); this.dn7_1 = new StringResource('quiz', this.mmi_1); this.en7_1 = new StringResource('allow_private_comments_from_students', this.mmi_1); this.fn7_1 = new StringResource('deadline', this.mmi_1); this.gn7_1 = new StringResource('class_timezone', this.mmi_1); this.hn7_1 = new StringResource('maximum_score', this.mmi_1); this.in7_1 = new StringResource('quiz_questions', this.mmi_1); this.jn7_1 = new StringResource('time', this.mmi_1); this.kn7_1 = new StringResource('submission', this.mmi_1); this.ln7_1 = new StringResource('public_comments', this.mmi_1); this.mn7_1 = new StringResource('private_comments', this.mmi_1); this.nn7_1 = new StringResource('submit_your_answer', this.mmi_1); this.on7_1 = new StringResource('add_class_comment', this.mmi_1); this.pn7_1 = new StringResource('add_private_comment', this.mmi_1); this.qn7_1 = new StringResource('class_comments', this.mmi_1); this.rn7_1 = new StringResource('submit', this.mmi_1); this.sn7_1 = new StringResource('three_num_items_with_name_with_comma', this.mmi_1); this.tn7_1 = new StringResource('marking', this.mmi_1); this.un7_1 = new StringResource('return_and_mark_next', this.mmi_1); this.vn7_1 = new StringResource('return_only', this.mmi_1); this.wn7_1 = new StringResource('workspace', this.mmi_1); this.xn7_1 = new StringResource('organisation', this.mmi_1); this.yn7_1 = new StringResource('use_public_library_site', this.mmi_1); this.zn7_1 = new StringResource('create_site', this.mmi_1); this.an8_1 = new StringResource('connect_as_guest', this.mmi_1); this.bn8_1 = new StringResource('create_account', this.mmi_1); this.cn8_1 = new StringResource('my', this.mmi_1); this.dn8_1 = new StringResource('add_another', this.mmi_1); this.en8_1 = new StringResource('logged_in_as', this.mmi_1); this.fn8_1 = new StringResource('person_exists', this.mmi_1); this.gn8_1 = new StringResource('username_too_short', this.mmi_1); this.hn8_1 = new StringResource('username_too_long', this.mmi_1); this.in8_1 = new StringResource('username_starts_with_number', this.mmi_1); this.jn8_1 = new StringResource('invalid_username', this.mmi_1); this.kn8_1 = new StringResource('incorrect_current_password', this.mmi_1); this.ln8_1 = new StringResource('sel_question_type_free_text', this.mmi_1); this.mn8_1 = new StringResource('sel_question_type_multiple_choice', this.mmi_1); this.nn8_1 = new StringResource('question_text', this.mmi_1); this.on8_1 = new StringResource('question_type', this.mmi_1); this.pn8_1 = new StringResource('add_option', this.mmi_1); this.qn8_1 = new StringResource('roles_and_permissions', this.mmi_1); this.rn8_1 = new StringResource('add_role_permission', this.mmi_1); this.sn8_1 = new StringResource('scope', this.mmi_1); this.tn8_1 = new StringResource('scope_description', this.mmi_1); this.un8_1 = new StringResource('role_description', this.mmi_1); this.vn8_1 = new StringResource('assign_role', this.mmi_1); this.wn8_1 = new StringResource('more_information', this.mmi_1); this.xn8_1 = new StringResource('pending_requests', this.mmi_1); this.yn8_1 = new StringResource('pending', this.mmi_1); this.zn8_1 = new StringResource('please_wait_for_approval', this.mmi_1); this.an9_1 = new StringResource('reject', this.mmi_1); this.bn9_1 = new StringResource('ask_your_teacher_for_code', this.mmi_1); this.cn9_1 = new StringResource('copied_to_clipboard', this.mmi_1); this.dn9_1 = new StringResource('invite_link_desc', this.mmi_1); this.en9_1 = new StringResource('copy_link', this.mmi_1); this.fn9_1 = new StringResource('copy_code', this.mmi_1); this.gn9_1 = new StringResource('share_link', this.mmi_1); this.hn9_1 = new StringResource('invite_with_link', this.mmi_1); this.in9_1 = new StringResource('role_not_selected_error', this.mmi_1); this.jn9_1 = new StringResource('permission_person_delegate', this.mmi_1); this.kn9_1 = new StringResource('this_field_is_mandatory', this.mmi_1); this.ln9_1 = new StringResource('permission_role_select', this.mmi_1); this.mn9_1 = new StringResource('permission_role_insert', this.mmi_1); this.nn9_1 = new StringResource('permission_school_select', this.mmi_1); this.on9_1 = new StringResource('permission_school_insert', this.mmi_1); this.pn9_1 = new StringResource('permission_school_update', this.mmi_1); this.qn9_1 = new StringResource('add_student_to_school', this.mmi_1); this.rn9_1 = new StringResource('add_staff_to_school', this.mmi_1); this.sn9_1 = new StringResource('permission_password_reset', this.mmi_1); this.tn9_1 = new StringResource('school_code', this.mmi_1); this.un9_1 = new StringResource('invite_code', this.mmi_1); this.vn9_1 = new StringResource('entity_code', this.mmi_1); this.wn9_1 = new StringResource('join_code_instructions', this.mmi_1); this.xn9_1 = new StringResource('record_for_student', this.mmi_1); this.yn9_1 = new StringResource('moved_x_entries', this.mmi_1); this.zn9_1 = new StringResource('end_is_before_start_error', this.mmi_1); this.ana_1 = new StringResource('record_attendance_for_most_recent_occurrence', this.mmi_1); this.bna_1 = new StringResource('add_a_new_occurrence', this.mmi_1); this.cna_1 = new StringResource('active_classes', this.mmi_1); this.dna_1 = new StringResource('terms_and_policies', this.mmi_1); this.ena_1 = new StringResource('manage_site_settings', this.mmi_1); this.fna_1 = new StringResource('guest_login_enabled', this.mmi_1); this.gna_1 = new StringResource('registration_allowed', this.mmi_1); this.hna_1 = new StringResource('yes', this.mmi_1); this.ina_1 = new StringResource('no', this.mmi_1); this.jna_1 = new StringResource('edit_site', this.mmi_1); this.kna_1 = new StringResource('site', this.mmi_1); this.lna_1 = new StringResource('site_link', this.mmi_1); this.mna_1 = new StringResource('please_enter_the_linK', this.mmi_1); this.nna_1 = new StringResource('or', this.mmi_1); this.ona_1 = new StringResource('connect', this.mmi_1); this.pna_1 = new StringResource('terms_and_policies_text', this.mmi_1); this.qna_1 = new StringResource('edit_terms_and_policies', this.mmi_1); this.rna_1 = new StringResource('strings_not_allowed', this.mmi_1); this.sna_1 = new StringResource('undo', this.mmi_1); this.tna_1 = new StringResource('video', this.mmi_1); this.una_1 = new StringResource('content_editor_create_new_category', this.mmi_1); this.vna_1 = new StringResource('content_pieces_completed', this.mmi_1); this.wna_1 = new StringResource('content_usage_duration', this.mmi_1); this.xna_1 = new StringResource('manage_download', this.mmi_1); this.yna_1 = new StringResource('powered_by', this.mmi_1); this.zna_1 = new StringResource('invalid_email', this.mmi_1); this.anb_1 = new StringResource('select_account', this.mmi_1); this.bnb_1 = new StringResource('opening_link', this.mmi_1); this.cnb_1 = new StringResource('select_account_to_continue', this.mmi_1); this.dnb_1 = new StringResource('you_are_already_in_class', this.mmi_1); this.enb_1 = new StringResource('you_are_already_in_school', this.mmi_1); this.fnb_1 = new StringResource('join_class', this.mmi_1); this.gnb_1 = new StringResource('join_school', this.mmi_1); this.hnb_1 = new StringResource('what_is_your_date_of_birth', this.mmi_1); this.inb_1 = new StringResource('parents_email_address', this.mmi_1); this.jnb_1 = new StringResource('we_sent_a_message_to_your_parent', this.mmi_1); this.knb_1 = new StringResource('toggle_visibility', this.mmi_1); this.lnb_1 = new StringResource('parental_consent', this.mmi_1); this.mnb_1 = new StringResource('parent_child_register_message_subject', this.mmi_1); this.nnb_1 = new StringResource('parent_child_register_message', this.mmi_1); this.onb_1 = new StringResource('parent_consent_explanation', this.mmi_1); this.pnb_1 = new StringResource('relationship', this.mmi_1); this.qnb_1 = new StringResource('i_consent', this.mmi_1); this.rnb_1 = new StringResource('i_do_not_consent', this.mmi_1); this.snb_1 = new StringResource('revoke_consent', this.mmi_1); this.tnb_1 = new StringResource('restore_consent', this.mmi_1); this.unb_1 = new StringResource('status_consent_granted', this.mmi_1); this.vnb_1 = new StringResource('status_consent_denied', this.mmi_1); this.wnb_1 = new StringResource('other_legal_guardian', this.mmi_1); this.xnb_1 = new StringResource('manage_parental_consent', this.mmi_1); this.ynb_1 = new StringResource('view_class_content', this.mmi_1); this.znb_1 = new StringResource('edit_class_content', this.mmi_1); this.anc_1 = new StringResource('view_class_learning_records', this.mmi_1); this.bnc_1 = new StringResource('view_contact_details_of_members', this.mmi_1); this.cnc_1 = new StringResource('edit_contact_details_of_members', this.mmi_1); this.dnc_1 = new StringResource('view_socioeconomic_details_of_members', this.mmi_1); this.enc_1 = new StringResource('edit_socioeconomic_details_of_members', this.mmi_1); this.fnc_1 = new StringResource('add_person_or_group', this.mmi_1); this.gnc_1 = new StringResource('lets_get_started', this.mmi_1); this.hnc_1 = new StringResource('looks_like_installed_app_from_link', this.mmi_1); this.inc_1 = new StringResource('continue_using_link_recommended', this.mmi_1); this.jnc_1 = new StringResource('continue_using_the_link', this.mmi_1); this.knc_1 = new StringResource('start_from_scratch', this.mmi_1); this.lnc_1 = new StringResource('ignore_the_link', this.mmi_1); this.mnc_1 = new StringResource('add_permission_for_a_person', this.mmi_1); this.nnc_1 = new StringResource('add_permission_for_a_group', this.mmi_1); this.onc_1 = new StringResource('add_using_link', this.mmi_1); this.pnc_1 = new StringResource('add_using_a_web_link_then', this.mmi_1); this.qnc_1 = new StringResource('add_from_gallery', this.mmi_1); this.rnc_1 = new StringResource('add_video_or_audio_from_the_device_gallery', this.mmi_1); this.snc_1 = new StringResource('add_file', this.mmi_1); this.tnc_1 = new StringResource('add_folder', this.mmi_1); this.unc_1 = new StringResource('importing', this.mmi_1); this.vnc_1 = new StringResource('downloading_content', this.mmi_1); this.wnc_1 = new StringResource('deleting_content', this.mmi_1); this.xnc_1 = new StringResource('add_folder_description', this.mmi_1); this.ync_1 = new StringResource('add_educational_content_using_supported_formats_eg_pdf_xapi_h5p', this.mmi_1); this.znc_1 = new StringResource('current_status_consent_granted', this.mmi_1); this.and_1 = new StringResource('select_country', this.mmi_1); this.bnd_1 = new StringResource('enter_link', this.mmi_1); this.cnd_1 = new StringResource('add_subject', this.mmi_1); this.dnd_1 = new StringResource('share_via', this.mmi_1); this.end_1 = new StringResource('share_apk_file', this.mmi_1); this.fnd_1 = new StringResource('recommended_for_advanced_users', this.mmi_1); this.gnd_1 = new StringResource('nearby_share', this.mmi_1); this.hnd_1 = new StringResource('recommended_for_offline_installation', this.mmi_1); this.ind_1 = new StringResource('app_store_link', this.mmi_1); this.jnd_1 = new StringResource('everything_works_offline', this.mmi_1); this.knd_1 = new StringResource('swipe_to_next', this.mmi_1); this.lnd_1 = new StringResource('content_entries_completed', this.mmi_1); this.mnd_1 = new StringResource('content_usage_time', this.mmi_1); this.nnd_1 = new StringResource('all_permissions', this.mmi_1); this.ond_1 = new StringResource('folder', this.mmi_1); this.pnd_1 = new StringResource('create_a_new_learning_env', this.mmi_1); this.qnd_1 = new StringResource('add_educational_content_to_new_learning_env', this.mmi_1); this.rnd_1 = new StringResource('connect_to_an_existing_learning_environment', this.mmi_1); this.snd_1 = new StringResource('does_your_class_already_have_learning_env', this.mmi_1); this.tnd_1 = new StringResource('use_the_public_lib_env', this.mmi_1); this.und_1 = new StringResource('just_want_to_browse', this.mmi_1); this.vnd_1 = new StringResource('revoking_consent_will', this.mmi_1); this.wnd_1 = new StringResource('you_must_comply_with_license', this.mmi_1); this.xnd_1 = new StringResource('you_can_copypaste_a_link', this.mmi_1); this.ynd_1 = new StringResource('see_supported_sites', this.mmi_1); this.znd_1 = new StringResource('class_setup', this.mmi_1); this.ane_1 = new StringResource('anyone_with_this_can_join_school', this.mmi_1); this.bne_1 = new StringResource('this_class', this.mmi_1); this.cne_1 = new StringResource('from_my_classes', this.mmi_1); this.dne_1 = new StringResource('my_content', this.mmi_1); this.ene_1 = new StringResource('learning_environment', this.mmi_1); this.fne_1 = new StringResource('grades_class_age', this.mmi_1); this.gne_1 = new StringResource('add_remove_and_modify_grades', this.mmi_1); this.hne_1 = new StringResource('subjects', this.mmi_1); this.ine_1 = new StringResource('add_remove_and_modify_subjects', this.mmi_1); this.jne_1 = new StringResource('create_my_account', this.mmi_1); this.kne_1 = new StringResource('recommend_it', this.mmi_1); this.lne_1 = new StringResource('edit_permissions', this.mmi_1); this.mne_1 = new StringResource('add_from_contacts', this.mmi_1); this.nne_1 = new StringResource('almost_done', this.mmi_1); this.one_1 = new StringResource('your_username', this.mmi_1); this.pne_1 = new StringResource('select_content', this.mmi_1); this.qne_1 = new StringResource('search_in', this.mmi_1); this.rne_1 = new StringResource('type', this.mmi_1); this.sne_1 = new StringResource('please_download_the_app', this.mmi_1); this.tne_1 = new StringResource('alternatively_you_can_download_the_apk', this.mmi_1); this.une_1 = new StringResource('full_i_can_download_as_much_as_i_like', this.mmi_1); this.vne_1 = new StringResource('limited_i_avoid_downloading_too_much', this.mmi_1); this.wne_1 = new StringResource('oops', this.mmi_1); this.xne_1 = new StringResource('sorry_something_went_wrong', this.mmi_1); this.yne_1 = new StringResource('incident_id', this.mmi_1); this.zne_1 = new StringResource('error_code', this.mmi_1); this.anf_1 = new StringResource('take_me_home', this.mmi_1); this.bnf_1 = new StringResource('view_clazz', this.mmi_1); this.cnf_1 = new StringResource('view_clazzes', this.mmi_1); this.dnf_1 = new StringResource('enrol_and_unenrol_students', this.mmi_1); this.enf_1 = new StringResource('enrol_and_unenrol_teachers', this.mmi_1); this.fnf_1 = new StringResource('view_assignments', this.mmi_1); this.gnf_1 = new StringResource('add_or_edit_assignment', this.mmi_1); this.hnf_1 = new StringResource('view_basic_profile_of_members', this.mmi_1); this.inf_1 = new StringResource('edit_basic_profile_of_members', this.mmi_1); this.jnf_1 = new StringResource('view_school', this.mmi_1); this.knf_1 = new StringResource('edit_clazzes', this.mmi_1); this.lnf_1 = new StringResource('add_new_clazz_to_school', this.mmi_1); this.mnf_1 = new StringResource('added_to_class_content', this.mmi_1); this.nnf_1 = new StringResource('content_already_added_to_class', this.mmi_1); this.onf_1 = new StringResource('your_account_needs_approved', this.mmi_1); this.pnf_1 = new StringResource('adult_account_required', this.mmi_1); this.qnf_1 = new StringResource('blank_report', this.mmi_1); this.rnf_1 = new StringResource('attendance_over_time_by_class', this.mmi_1); this.snf_1 = new StringResource('percentage_of_students_attending_over_time', this.mmi_1); this.tnf_1 = new StringResource('content_completion', this.mmi_1); this.unf_1 = new StringResource('number_of_students_completed_time', this.mmi_1); this.vnf_1 = new StringResource('content_usage_by_class', this.mmi_1); this.wnf_1 = new StringResource('total_content_usage_duration_class', this.mmi_1); this.xnf_1 = new StringResource('content_usage_over_time', this.mmi_1); this.ynf_1 = new StringResource('total_content_duration_gender', this.mmi_1); this.znf_1 = new StringResource('unique_content_users_over_time', this.mmi_1); this.ang_1 = new StringResource('number_of_active_users_over_time', this.mmi_1); this.bng_1 = new StringResource('parent', this.mmi_1); this.cng_1 = new StringResource('upload', this.mmi_1); this.dng_1 = new StringResource('selected_file_summary', this.mmi_1); this.eng_1 = new StringResource('drag_and_drop_or_click_to_add_file', this.mmi_1); this.fng_1 = new StringResource('extra_active_tab_warning', this.mmi_1); this.gng_1 = new StringResource('saved', this.mmi_1); this.hng_1 = new StringResource('individual', this.mmi_1); this.ing_1 = new StringResource('group', this.mmi_1); this.jng_1 = new StringResource('dont_show_before', this.mmi_1); this.kng_1 = new StringResource('group_submission', this.mmi_1); this.lng_1 = new StringResource('require_file_submission', this.mmi_1); this.mng_1 = new StringResource('require_text_submission', this.mmi_1); this.nng_1 = new StringResource('maximum', this.mmi_1); this.ong_1 = new StringResource('size_limit', this.mmi_1); this.png_1 = new StringResource('size_limit_error', this.mmi_1); this.qng_1 = new StringResource('limit', this.mmi_1); this.rng_1 = new StringResource('number_of_files', this.mmi_1); this.sng_1 = new StringResource('edit_after_submission', this.mmi_1); this.tng_1 = new StringResource('allowed_till_deadline', this.mmi_1); this.ung_1 = new StringResource('allowed_till_grace', this.mmi_1); this.vng_1 = new StringResource('not_allowed', this.mmi_1); this.wng_1 = new StringResource('marked_by', this.mmi_1); this.xng_1 = new StringResource('peers', this.mmi_1); this.yng_1 = new StringResource('peers_to_review', this.mmi_1); this.zng_1 = new StringResource('file_type', this.mmi_1); this.anh_1 = new StringResource('file_type_chosen', this.mmi_1); this.bnh_1 = new StringResource('file_type_any', this.mmi_1); this.cnh_1 = new StringResource('file_document', this.mmi_1); this.dnh_1 = new StringResource('file_image', this.mmi_1); this.enh_1 = new StringResource('submit_grade', this.mmi_1); this.fnh_1 = new StringResource('submit_grade_and_mark_next', this.mmi_1); this.gnh_1 = new StringResource('graded', this.mmi_1); this.hnh_1 = new StringResource('score_greater_than_zero', this.mmi_1); this.inh_1 = new StringResource('words', this.mmi_1); this.jnh_1 = new StringResource('characters', this.mmi_1); this.knh_1 = new StringResource('class_timezone_set', this.mmi_1); this.lnh_1 = new StringResource('maximum_points', this.mmi_1); this.mnh_1 = new StringResource('penalty_label', this.mmi_1); this.nnh_1 = new StringResource('submissions', this.mmi_1); this.onh_1 = new StringResource('add_text', this.mmi_1); this.pnh_1 = new StringResource('course_blocks', this.mmi_1); this.qnh_1 = new StringResource('add_block', this.mmi_1); this.rnh_1 = new StringResource('edit_block', this.mmi_1); this.snh_1 = new StringResource('module', this.mmi_1); this.tnh_1 = new StringResource('course_module', this.mmi_1); this.unh_1 = new StringResource('formatted_text_to_show_to_course_participants', this.mmi_1); this.vnh_1 = new StringResource('add_course_block_content_desc', this.mmi_1); this.wnh_1 = new StringResource('add_assignment_block_content_desc', this.mmi_1); this.xnh_1 = new StringResource('discussion_board', this.mmi_1); this.ynh_1 = new StringResource('add_discussion_board_desc', this.mmi_1); this.znh_1 = new StringResource('new_module', this.mmi_1); this.ani_1 = new StringResource('edit_module', this.mmi_1); this.bni_1 = new StringResource('indent', this.mmi_1); this.cni_1 = new StringResource('unindent', this.mmi_1); this.dni_1 = new StringResource('institution', this.mmi_1); this.eni_1 = new StringResource('student_enrolment_policy', this.mmi_1); this.fni_1 = new StringResource('teacher_enrolment_policy', this.mmi_1); this.gni_1 = new StringResource('open_enrolment', this.mmi_1); this.hni_1 = new StringResource('enrolment_requests_must_be_approved', this.mmi_1); this.ini_1 = new StringResource('accept_enrolment_requests_automatically', this.mmi_1); this.jni_1 = new StringResource('visibility', this.mmi_1); this.kni_1 = new StringResource('hidden_enrolment_via_links_code_or_invitation', this.mmi_1); this.lni_1 = new StringResource('visible_for_all', this.mmi_1); this.mni_1 = new StringResource('terminology', this.mmi_1); this.nni_1 = new StringResource('select_terminology', this.mmi_1); this.oni_1 = new StringResource('add_new_terminology', this.mmi_1); this.pni_1 = new StringResource('edit_terminology', this.mmi_1); this.qni_1 = new StringResource('your_words_for', this.mmi_1); this.rni_1 = new StringResource('course_setup', this.mmi_1); this.sni_1 = new StringResource('number_of_groups', this.mmi_1); this.tni_1 = new StringResource('assign_to_random_groups', this.mmi_1); this.uni_1 = new StringResource('add_new_groups', this.mmi_1); this.vni_1 = new StringResource('edit_groups', this.mmi_1); this.wni_1 = new StringResource('num_replies', this.mmi_1); this.xni_1 = new StringResource('topics', this.mmi_1); this.yni_1 = new StringResource('add_topic', this.mmi_1); this.zni_1 = new StringResource('add_a_reply', this.mmi_1); this.anj_1 = new StringResource('messages', this.mmi_1); this.bnj_1 = new StringResource('message', this.mmi_1); this.cnj_1 = new StringResource('library', this.mmi_1); this.dnj_1 = new StringResource('courses', this.mmi_1); this.enj_1 = new StringResource('course', this.mmi_1); this.fnj_1 = new StringResource('reports_and_analytics', this.mmi_1); this.gnj_1 = new StringResource('course_comments', this.mmi_1); this.hnj_1 = new StringResource('currently_enroled', this.mmi_1); this.inj_1 = new StringResource('past_enrolments', this.mmi_1); this.jnj_1 = new StringResource('standard', this.mmi_1); this.knj_1 = new StringResource('group_number', this.mmi_1); this.lnj_1 = new StringResource('add_group', this.mmi_1); this.mnj_1 = new StringResource('edit_group', this.mmi_1); this.nnj_1 = new StringResource('new_group_set', this.mmi_1); this.onj_1 = new StringResource('edit_text', this.mmi_1); this.pnj_1 = new StringResource('add_module', this.mmi_1); this.qnj_1 = new StringResource('add_a_new_course', this.mmi_1); this.rnj_1 = new StringResource('join_existing_course', this.mmi_1); this.snj_1 = new StringResource('edit_course', this.mmi_1); this.tnj_1 = new StringResource('currently_enrolled', this.mmi_1); this.unj_1 = new StringResource('past_enrollments', this.mmi_1); this.vnj_1 = new StringResource('unread', this.mmi_1); this.wnj_1 = new StringResource('new_chat', this.mmi_1); this.xnj_1 = new StringResource('new_group', this.mmi_1); this.ynj_1 = new StringResource('chat', this.mmi_1); this.znj_1 = new StringResource('you', this.mmi_1); this.ank_1 = new StringResource('edit_topic', this.mmi_1); this.bnk_1 = new StringResource('posts', this.mmi_1); this.cnk_1 = new StringResource('post', this.mmi_1); this.dnk_1 = new StringResource('individual_submission', this.mmi_1); this.enk_1 = new StringResource('unassigned', this.mmi_1); this.fnk_1 = new StringResource('error_too_long_text', this.mmi_1); this.gnk_1 = new StringResource('managed_enrolment', this.mmi_1); this.hnk_1 = new StringResource('text_file_submission_error', this.mmi_1); this.ink_1 = new StringResource('submit_all_at_once_submission_policy', this.mmi_1); this.jnk_1 = new StringResource('multiple_submission_allowed_submission_policy', this.mmi_1); this.knk_1 = new StringResource('enrolment_policy', this.mmi_1); this.lnk_1 = new StringResource('submission_policy', this.mmi_1); this.mnk_1 = new StringResource('submission_already_made', this.mmi_1); this.nnk_1 = new StringResource('grade_out_of_range', this.mmi_1); this.onk_1 = new StringResource('update_grade', this.mmi_1); this.pnk_1 = new StringResource('update_grade_and_mark_next', this.mmi_1); this.qnk_1 = new StringResource('add_discussion', this.mmi_1); this.rnk_1 = new StringResource('edit_discussion', this.mmi_1); this.snk_1 = new StringResource('type_here', this.mmi_1); this.tnk_1 = new StringResource('deadline_has_passed', this.mmi_1); this.unk_1 = new StringResource('already_submitted', this.mmi_1); this.vnk_1 = new StringResource('exceeds_word_limit', this.mmi_1); this.wnk_1 = new StringResource('exceeds_char_limit', this.mmi_1); this.xnk_1 = new StringResource('unassigned_error', this.mmi_1); this.ynk_1 = new StringResource('enabled', this.mmi_1); this.znk_1 = new StringResource('disabled', this.mmi_1); this.anl_1 = new StringResource('from_my_courses', this.mmi_1); this.bnl_1 = new StringResource('assign_reviewers', this.mmi_1); this.cnl_1 = new StringResource('reviews_per_user_group', this.mmi_1); this.dnl_1 = new StringResource('assign_random_reviewers', this.mmi_1); this.enl_1 = new StringResource('reviewer', this.mmi_1); this.fnl_1 = new StringResource('app_language', this.mmi_1); this.gnl_1 = new StringResource('pdf', this.mmi_1); this.hnl_1 = new StringResource('panic_button_app', this.mmi_1); this.inl_1 = new StringResource('actions_to_be_taken_in_case_of_emergency', this.mmi_1); this.jnl_1 = new StringResource('exit_app', this.mmi_1); this.knl_1 = new StringResource('delete_app_data_from_device', this.mmi_1); this.lnl_1 = new StringResource('more_options', this.mmi_1); this.mnl_1 = new StringResource('num_holidays', this.mmi_1); this.nnl_1 = new StringResource('hide_app', this.mmi_1); this.onl_1 = new StringResource('panic_button_explanation', this.mmi_1); this.pnl_1 = new StringResource('hide_app_explanation', this.mmi_1); this.qnl_1 = new StringResource('most_recent', this.mmi_1); this.rnl_1 = new StringResource('comment', this.mmi_1); this.snl_1 = new StringResource('grant_app_permission', this.mmi_1); this.tnl_1 = new StringResource('this_app_will_receive', this.mmi_1); this.unl_1 = new StringResource('my_profile', this.mmi_1); this.vnl_1 = new StringResource('add_another_account', this.mmi_1); this.wnl_1 = new StringResource('end_is_before_start', this.mmi_1); this.xnl_1 = new StringResource('select_person', this.mmi_1); this.ynl_1 = new StringResource('your_submission', this.mmi_1); this.znl_1 = new StringResource('edit_content', this.mmi_1); this.anm_1 = new StringResource('edit_folder', this.mmi_1); this.bnm_1 = new StringResource('add_new_post', this.mmi_1); this.cnm_1 = new StringResource('grades_scoring', this.mmi_1); this.dnm_1 = new StringResource('mark_comment', this.mmi_1); this.enm_1 = new StringResource('mark', this.mmi_1); this.fnm_1 = new StringResource('too_high', this.mmi_1); this.gnm_1 = new StringResource('required', this.mmi_1); this.hnm_1 = new StringResource('expand', this.mmi_1); this.inm_1 = new StringResource('collapse', this.mmi_1); this.jnm_1 = new StringResource('remove', this.mmi_1); this.knm_1 = new StringResource('table_of_contents', this.mmi_1); this.lnm_1 = new StringResource('select_date', this.mmi_1); this.mnm_1 = new StringResource('link', this.mmi_1); this.nnm_1 = new StringResource('time_submitted', this.mmi_1); this.onm_1 = new StringResource('group_assignment', this.mmi_1); this.pnm_1 = new StringResource('menu', this.mmi_1); this.qnm_1 = new StringResource('restarting', this.mmi_1); this.rnm_1 = new StringResource('terms_required_if_registration_enabled', this.mmi_1); this.snm_1 = new StringResource('drop_files_to_import', this.mmi_1); this.tnm_1 = new StringResource('compose_post', this.mmi_1); this.unm_1 = new StringResource('password_updated', this.mmi_1); this.vnm_1 = new StringResource('html5_content_display_engine', this.mmi_1); this.wnm_1 = new StringResource('chrome_recommended', this.mmi_1); this.xnm_1 = new StringResource('chrome_recommended_info', this.mmi_1); this.ynm_1 = new StringResource('internal_webview', this.mmi_1); this.znm_1 = new StringResource('internal_webview_info', this.mmi_1); this.ann_1 = new StringResource('content_not_ready_try_later', this.mmi_1); this.bnn_1 = new StringResource('version', this.mmi_1); this.cnn_1 = new StringResource('licenses', this.mmi_1); this.dnn_1 = new StringResource('cannot_record_attendance_for_future_date_time', this.mmi_1); this.enn_1 = new StringResource('could_not_load_vlc', this.mmi_1); this.fnn_1 = new StringResource('selected', this.mmi_1); this.gnn_1 = new StringResource('clear_selection', this.mmi_1); this.hnn_1 = new StringResource('move_entries_to_this_folder', this.mmi_1); this.inn_1 = new StringResource('cannot_move_to_subfolder_of_self', this.mmi_1); this.jnn_1 = new StringResource('cannot_move_already_in_same_folder', this.mmi_1); this.knn_1 = new StringResource('move_to', this.mmi_1); this.lnn_1 = new StringResource('restore', this.mmi_1); this.mnn_1 = new StringResource('delete_permanently', this.mmi_1); this.nnn_1 = new StringResource('deleted_items', this.mmi_1); this.onn_1 = new StringResource('delete_or_restore_items', this.mmi_1); this.pnn_1 = new StringResource('yesterday', this.mmi_1); this.qnn_1 = new StringResource('request_to_enrol_already_pending', this.mmi_1); this.rnn_1 = new StringResource('request_submitted', this.mmi_1); this.snn_1 = new StringResource('canceled_enrolment_request', this.mmi_1); this.tnn_1 = new StringResource('enroled_into_name', this.mmi_1); this.unn_1 = new StringResource('declined_request_from_name', this.mmi_1); this.vnn_1 = new StringResource('view_course', this.mmi_1); this.wnn_1 = new StringResource('moderate', this.mmi_1); this.xnn_1 = new StringResource('manage_student_enrolments', this.mmi_1); this.ynn_1 = new StringResource('manage_teacher_enrolments', this.mmi_1); this.znn_1 = new StringResource('view_learning_records', this.mmi_1); this.ano_1 = new StringResource('edit_learning_records', this.mmi_1); this.bno_1 = new StringResource('view_members', this.mmi_1); this.cno_1 = new StringResource('copy_invite_code', this.mmi_1); this.dno_1 = new StringResource('direct_enrol_users_onto_courses', this.mmi_1); this.eno_1 = new StringResource('could_not_restart', this.mmi_1); this.fno_1 = new StringResource('close_now', this.mmi_1); this.gno_1 = new StringResource('view_all_courses', this.mmi_1); this.hno_1 = new StringResource('edit_all_courses', this.mmi_1); this.ino_1 = new StringResource('moderate_all_courses', this.mmi_1); this.jno_1 = new StringResource('manage_student_enrolments_for_all_courses', this.mmi_1); this.kno_1 = new StringResource('manage_teacher_enrolments_for_all_courses', this.mmi_1); this.lno_1 = new StringResource('view_attendance_records_for_all_courses', this.mmi_1); this.mno_1 = new StringResource('edit_attendance_records_for_all_courses', this.mmi_1); this.nno_1 = new StringResource('add_new_users', this.mmi_1); this.ono_1 = new StringResource('view_all_users', this.mmi_1); this.pno_1 = new StringResource('edit_all_users', this.mmi_1); this.qno_1 = new StringResource('view_learning_records_for_all_courses', this.mmi_1); this.rno_1 = new StringResource('edit_learning_records_for_all_courses', this.mmi_1); this.sno_1 = new StringResource('add_new_courses', this.mmi_1); this.tno_1 = new StringResource('manage_user_permissions', this.mmi_1); this.uno_1 = new StringResource('reset_passwords', this.mmi_1); this.vno_1 = new StringResource('upload_failed', this.mmi_1); this.wno_1 = new StringResource('opening_name', this.mmi_1); this.xno_1 = new StringResource('invalid_invite_code', this.mmi_1); this.yno_1 = new StringResource('bulk_import', this.mmi_1); this.zno_1 = new StringResource('import_key', this.mmi_1); this.anp_1 = new StringResource('imported', this.mmi_1); this.bnp_1 = new StringResource('you_can_import_users_using_a_csv_file', this.mmi_1); this.cnp_1 = new StringResource('get_template', this.mmi_1); this.dnp_1 = new StringResource('line_number', this.mmi_1); this.enp_1 = new StringResource('selected_content', this.mmi_1); this.fnp_1 = new StringResource('edit_content_block', this.mmi_1); this.gnp_1 = new StringResource('compression', this.mmi_1); this.hnp_1 = new StringResource('compression_highest', this.mmi_1); this.inp_1 = new StringResource('compression_high', this.mmi_1); this.jnp_1 = new StringResource('compression_medium', this.mmi_1); this.knp_1 = new StringResource('compression_low', this.mmi_1); this.lnp_1 = new StringResource('compression_lowest', this.mmi_1); this.mnp_1 = new StringResource('compression_none', this.mmi_1); this.nnp_1 = new StringResource('size_compressed_was', this.mmi_1); this.onp_1 = new StringResource('size', this.mmi_1); this.pnp_1 = new StringResource('import_error', this.mmi_1); this.qnp_1 = new StringResource('upload_error', this.mmi_1); this.rnp_1 = new StringResource('offline_items_storage', this.mmi_1); this.snp_1 = new StringResource('space_available', this.mmi_1); this.tnp_1 = new StringResource('grant_permission', this.mmi_1); this.unp_1 = new StringResource('gradebook', this.mmi_1); this.vnp_1 = new StringResource('full_screen', this.mmi_1); this.wnp_1 = new StringResource('exit_full_screen', this.mmi_1); this.xnp_1 = new StringResource('increase_text_size', this.mmi_1); this.ynp_1 = new StringResource('decrease_text_size', this.mmi_1); this.znp_1 = new StringResource('nothing_here_yet', this.mmi_1); this.anq_1 = new StringResource('signup_with_passkey', this.mmi_1); this.bnq_1 = new StringResource('other_options', this.mmi_1); this.cnq_1 = new StringResource('i_am_teacher', this.mmi_1); this.dnq_1 = new StringResource('i_am_parent', this.mmi_1); this.enq_1 = new StringResource('select_picture_from_files', this.mmi_1); this.fnq_1 = new StringResource('your_date_of_birth', this.mmi_1); this.gnq_1 = new StringResource('add_child_profiles', this.mmi_1); this.hnq_1 = new StringResource('child_profile', this.mmi_1); this.inq_1 = new StringResource('finish', this.mmi_1); this.jnq_1 = new StringResource('scan_badge_qr_code', this.mmi_1); this.knq_1 = new StringResource('new_user', this.mmi_1); this.lnq_1 = new StringResource('existing_user', this.mmi_1); this.mnq_1 = new StringResource('personal_account', this.mmi_1); this.nnq_1 = new StringResource('signup', this.mmi_1); this.onq_1 = new StringResource('access_educational_content_download_offline', this.mmi_1); this.pnq_1 = new StringResource('join_learning_space', this.mmi_1); this.qnq_1 = new StringResource('learning_space', this.mmi_1); this.rnq_1 = new StringResource('eg_for_your_school_organization', this.mmi_1); this.snq_1 = new StringResource('new_learning_space', this.mmi_1); this.tnq_1 = new StringResource('full_name', this.mmi_1); this.unq_1 = new StringResource('which_profile_do_you_want_to_start', this.mmi_1); this.vnq_1 = new StringResource('create_passkey_for_faster_and_easier_signin', this.mmi_1); this.wnq_1 = new StringResource('create_username_and_password', this.mmi_1); this.xnq_1 = new StringResource('create_local_account', this.mmi_1); this.ynq_1 = new StringResource('with_passkeys_no_complex_passwords_needed', this.mmi_1); this.znq_1 = new StringResource('enter_link_manually', this.mmi_1); this.anr_1 = new StringResource('registration_not_allowed', this.mmi_1); this.bnr_1 = new StringResource('add_subtitles', this.mmi_1); this.cnr_1 = new StringResource('edit_subtitles', this.mmi_1); this.dnr_1 = new StringResource('subtitles', this.mmi_1); this.enr_1 = new StringResource('progress_key', this.mmi_1); this.fnr_1 = new StringResource('response', this.mmi_1); this.gnr_1 = new StringResource('true_key', this.mmi_1); this.hnr_1 = new StringResource('false_key', this.mmi_1); this.inr_1 = new StringResource('copy', this.mmi_1); this.jnr_1 = new StringResource('copy_course', this.mmi_1); this.knr_1 = new StringResource('copy_of', this.mmi_1); this.lnr_1 = new StringResource('invite_via_contact', this.mmi_1); this.mnr_1 = new StringResource('invite_to_course', this.mmi_1); this.nnr_1 = new StringResource('use_email', this.mmi_1); this.onr_1 = new StringResource('use_phone_number', this.mmi_1); this.pnr_1 = new StringResource('add_username_email_phone', this.mmi_1); this.qnr_1 = new StringResource('no_valid_contact_found', this.mmi_1); this.rnr_1 = new StringResource('no_contact_found', this.mmi_1); this.snr_1 = new StringResource('decline', this.mmi_1); this.tnr_1 = new StringResource('do_you_want_to_join_this_course', this.mmi_1); this.unr_1 = new StringResource('invite_has_been_used', this.mmi_1); this.vnr_1 = new StringResource('pending_invites', this.mmi_1); this.wnr_1 = new StringResource('expires', this.mmi_1); this.xnr_1 = new StringResource('reminder', this.mmi_1); this.ynr_1 = new StringResource('resend', this.mmi_1); this.znr_1 = new StringResource('revoke', this.mmi_1); this.ans_1 = new StringResource('invite_code_redeemed', this.mmi_1); this.bns_1 = new StringResource('invite_code_invalid', this.mmi_1); this.cns_1 = new StringResource('invite_declined', this.mmi_1); this.dns_1 = new StringResource('invite_code_already_redeemed', this.mmi_1); this.ens_1 = new StringResource('invite_code_expired', this.mmi_1); this.fns_1 = new StringResource('invitation_is_revoked', this.mmi_1); this.gns_1 = new StringResource('security', this.mmi_1); this.hns_1 = new StringResource('manage_account', this.mmi_1); this.ins_1 = new StringResource('passkeys', this.mmi_1); this.jns_1 = new StringResource('manage', this.mmi_1); this.kns_1 = new StringResource('created', this.mmi_1); this.lns_1 = new StringResource('create_passkey', this.mmi_1); this.mns_1 = new StringResource('last_updated', this.mmi_1); this.nns_1 = new StringResource('delete_this_passkey', this.mmi_1); this.ons_1 = new StringResource('loss_access_passkey_dialog', this.mmi_1); this.pns_1 = new StringResource('sign_in_faster_next_time', this.mmi_1); this.qns_1 = new StringResource('secure_passkey_detail_text', this.mmi_1); this.rns_1 = new StringResource('invitations_sent', this.mmi_1); this.sns_1 = new StringResource('invitation_sent', this.mmi_1); this.tns_1 = new StringResource('navigation_bar', this.mmi_1); this.uns_1 = new StringResource('bottom_nav_at_least_one_required', this.mmi_1); } var strings_instance; function strings_getInstance() { if (strings_instance == null) new strings(); return strings_instance; } function plurals() { plurals_instance = this; var tmp = this; var tmp_0 = require('localization/comustadmobilecore_pluralsJson.json'); tmp.vns_1 = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE(); var tmp_1 = this; var tmp_2 = require('localization/comustadmobilecore_pluralsJson_rw.json'); var tmp_3 = new SupportedLocale('rw', (!(tmp_2 == null) ? typeof tmp_2 === 'string' : false) ? tmp_2 : THROW_CCE()); var tmp_4 = require('localization/comustadmobilecore_pluralsJson_ne.json'); var tmp_5 = new SupportedLocale('ne', (!(tmp_4 == null) ? typeof tmp_4 === 'string' : false) ? tmp_4 : THROW_CCE()); var tmp_6 = require('localization/comustadmobilecore_pluralsJson_ar.json'); var tmp_7 = new SupportedLocale('ar', (!(tmp_6 == null) ? typeof tmp_6 === 'string' : false) ? tmp_6 : THROW_CCE()); var tmp_8 = require('localization/comustadmobilecore_pluralsJson_bn.json'); var tmp_9 = new SupportedLocale('bn', (!(tmp_8 == null) ? typeof tmp_8 === 'string' : false) ? tmp_8 : THROW_CCE()); var tmp_10 = require('localization/comustadmobilecore_pluralsJson_fr.json'); var tmp_11 = new SupportedLocale('fr', (!(tmp_10 == null) ? typeof tmp_10 === 'string' : false) ? tmp_10 : THROW_CCE()); var tmp_12 = require('localization/comustadmobilecore_pluralsJson_fa.json'); var tmp_13 = new SupportedLocale('fa', (!(tmp_12 == null) ? typeof tmp_12 === 'string' : false) ? tmp_12 : THROW_CCE()); var tmp_14 = require('localization/comustadmobilecore_pluralsJson_nb-NO.json'); var tmp_15 = new SupportedLocale('nb-NO', (!(tmp_14 == null) ? typeof tmp_14 === 'string' : false) ? tmp_14 : THROW_CCE()); var tmp_16 = require('localization/comustadmobilecore_pluralsJson_it.json'); var tmp_17 = new SupportedLocale('it', (!(tmp_16 == null) ? typeof tmp_16 === 'string' : false) ? tmp_16 : THROW_CCE()); var tmp_18 = require('localization/comustadmobilecore_pluralsJson_my.json'); var tmp_19 = new SupportedLocale('my', (!(tmp_18 == null) ? typeof tmp_18 === 'string' : false) ? tmp_18 : THROW_CCE()); var tmp_20 = require('localization/comustadmobilecore_pluralsJson_ps.json'); var tmp_21 = new SupportedLocale('ps', (!(tmp_20 == null) ? typeof tmp_20 === 'string' : false) ? tmp_20 : THROW_CCE()); var tmp_22 = require('localization/comustadmobilecore_pluralsJson_tg.json'); var tmp_23 = new SupportedLocale('tg', (!(tmp_22 == null) ? typeof tmp_22 === 'string' : false) ? tmp_22 : THROW_CCE()); var tmp_24 = require('localization/comustadmobilecore_pluralsJson_ru.json'); tmp_1.wns_1 = new SupportedLocales(listOf([tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, new SupportedLocale('ru', (!(tmp_24 == null) ? typeof tmp_24 === 'string' : false) ? tmp_24 : THROW_CCE())])); this.xns_1 = new Impl(this.wns_1, this.vns_1); this.yns_1 = new PluralsResource('number_of_attempts', this.xns_1); this.zns_1 = new PluralsResource('duration_hours', this.xns_1); this.ant_1 = new PluralsResource('duration_minutes', this.xns_1); this.bnt_1 = new PluralsResource('duration_seconds', this.xns_1); this.cnt_1 = new PluralsResource('items_selected', this.xns_1); this.dnt_1 = new PluralsResource('items_deleted', this.xns_1); this.ent_1 = new PluralsResource('items_restored', this.xns_1); this.fnt_1 = new PluralsResource('are_you_sure_you_want_to_permanently_delete', this.xns_1); } var plurals_instance; function plurals_getInstance() { if (plurals_instance == null) new plurals(); return plurals_instance; } function MR() { MR_instance = this; this.gnt_1 = 'e6b75cfc899cb8e1989699b0ae727e41'; this.hnt_1 = strings_getInstance().mmi_1.umd(plurals_getInstance().xns_1); } var MR_instance; function MR_getInstance() { if (MR_instance == null) new MR(); return MR_instance; } function AccountRegisterOptions(makeAccountActive, parentJoin) { makeAccountActive = makeAccountActive === VOID ? true : makeAccountActive; parentJoin = parentJoin === VOID ? null : parentJoin; this.int_1 = makeAccountActive; this.jnt_1 = parentJoin; } protoOf(AccountRegisterOptions).toString = function () { return 'AccountRegisterOptions(makeAccountActive=' + this.int_1 + ', parentJoin=' + this.jnt_1 + ')'; }; protoOf(AccountRegisterOptions).hashCode = function () { var result = getBooleanHashCode(this.int_1); result = imul(result, 31) + (this.jnt_1 == null ? 0 : this.jnt_1.hashCode()) | 0; return result; }; protoOf(AccountRegisterOptions).equals = function (other) { if (this === other) return true; if (!(other instanceof AccountRegisterOptions)) return false; var tmp0_other_with_cast = other instanceof AccountRegisterOptions ? other : THROW_CCE(); if (!(this.int_1 === tmp0_other_with_cast.int_1)) return false; if (!equals(this.jnt_1, tmp0_other_with_cast.jnt_1)) return false; return true; }; function AdultAccountRequiredException(message, cause) { message = message === VOID ? null : message; cause = cause === VOID ? null : cause; IllegalStateException_init_$Init$(message, cause, this); captureStack(this, AdultAccountRequiredException); } function _get_dataLayer__43yv12($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mnt_1; dataLayer$factory_0(); return this_0.t2(); } function $setAuthCOROUTINE$1(_this__u8e3s4, personUid, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vnt_1 = _this__u8e3s4; this.wnt_1 = personUid; this.xnt_1 = password; } protoOf($setAuthCOROUTINE$1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = doublePbkdf2HashAsBase64(this.vnt_1, this.xnt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ynt_1 = suspendResult; this.id_1 = 2; var tmp_0 = _get_dataLayer__43yv12(this.vnt_1).yk2().b7f(); var this_0 = new PersonAuth2(); this_0.dg0_1 = this.wnt_1; var tmp_1 = this_0; tmp_1.eg0_1 = 'PBKDF2x2'; this_0.fg0_1 = this.ynt_1; suspendResult = tmp_0.zfz(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function AuthManager(learningSpace, di) { this.knt_1 = learningSpace; this.lnt_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.knt_1; var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.i57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.mnt_1 = Instance(this_0, tmp$ret$3, null).b5d(this, dataLayer$factory()); } protoOf(AuthManager).b57 = function () { return this.lnt_1; }; protoOf(AuthManager).znt = function (personUid, password, $completion) { var tmp = new $setAuthCOROUTINE$1(this, personUid, password, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function dataLayer$factory() { return getPropertyCallableRef('dataLayer', 1, KProperty1, function (receiver) { return _get_dataLayer__43yv12(receiver); }, null); } function dataLayer$factory_0() { return getPropertyCallableRef('dataLayer', 1, KProperty1, function (receiver) { return _get_dataLayer__43yv12(receiver); }, null); } function ConsentNotGrantedException(message, cause) { message = message === VOID ? null : message; cause = cause === VOID ? null : cause; IllegalStateException_init_$Init$(message, cause, this); captureStack(this, ConsentNotGrantedException); } function Companion() { } var Companion_instance_47; function Companion_getInstance_17() { return Companion_instance_47; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.LearningSpace', this, 1); tmp0_serialDesc.u4f('url', false); this.anu_1 = tmp0_serialDesc; } protoOf($serializer).r44 = function () { return this.anu_1; }; protoOf($serializer).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer).t44 = function (decoder) { var tmp0_desc = this.anu_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return LearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer).bnu = function (encoder, value) { var tmp0_desc = this.anu_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.cnu_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer).s44 = function (encoder, value) { return this.bnu(encoder, value instanceof LearningSpace ? value : THROW_CCE()); }; var $serializer_instance; function $serializer_getInstance_11() { if ($serializer_instance == null) new $serializer(); return $serializer_instance; } function LearningSpace_init_$Init$(seen1, url, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_11().anu_1); } $this.cnu_1 = url; var tmp = $this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.dnu_1 = lazy(tmp_0, LearningSpace$_init_$lambda_beny7x($this)); return $this; } function LearningSpace_init_$Create$(seen1, url, serializationConstructorMarker) { return LearningSpace_init_$Init$(seen1, url, serializationConstructorMarker, objectCreate(protoOf(LearningSpace))); } function LearningSpace$isLocal$delegate$lambda(this$0) { return function () { return endsWith(Url(this$0.cnu_1).z30_1, '.local'); }; } function LearningSpace$_init_$lambda_beny7x(this$0) { return function () { return endsWith(Url(this$0.cnu_1).z30_1, '.local'); }; } function LearningSpace(url) { this.cnu_1 = url; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.dnu_1 = lazy(tmp_0, LearningSpace$isLocal$delegate$lambda(this)); } protoOf(LearningSpace).enu = function () { // Inline function 'kotlin.getValue' call var this_0 = this.dnu_1; isLocal$factory(); return this_0.t2(); }; protoOf(LearningSpace).toString = function () { return 'LearningSpace(url=' + this.cnu_1 + ')'; }; protoOf(LearningSpace).hashCode = function () { return getStringHashCode(this.cnu_1); }; protoOf(LearningSpace).equals = function (other) { if (this === other) return true; if (!(other instanceof LearningSpace)) return false; var tmp0_other_with_cast = other instanceof LearningSpace ? other : THROW_CCE(); if (!(this.cnu_1 === tmp0_other_with_cast.cnu_1)) return false; return true; }; function isLocal$factory() { return getPropertyCallableRef('isLocal', 1, KProperty1, function (receiver) { return receiver.enu(); }, null); } function Companion_0() { Companion_instance_48 = this; this.fnu_1 = new LearningSpaceScope(); } var Companion_instance_48; function Companion_getInstance_18() { if (Companion_instance_48 == null) new Companion_0(); return Companion_instance_48; } function LearningSpaceScope() { Companion_getInstance_18(); var tmp = this; // Inline function 'kotlin.collections.mutableMapOf' call tmp.gnu_1 = LinkedHashMap_init_$Create$(); } protoOf(LearningSpaceScope).hnu = function (context) { // Inline function 'kotlin.collections.getOrPut' call var this_0 = this.gnu_1; var key = context.cnu_1; var value = this_0.q(key); var tmp; if (value == null) { // Inline function 'com.ustadmobile.core.account.LearningSpaceScope.getRegistry.' call var answer = new StandardScopeRegistry(); this_0.s(key, answer); tmp = answer; } else { tmp = value; } return tmp; }; protoOf(LearningSpaceScope).i59 = function (context) { return this.hnu(context instanceof LearningSpace ? context : THROW_CCE()); }; function Pbkdf2Params(iterations, keyLength) { iterations = iterations === VOID ? 10000 : iterations; keyLength = keyLength === VOID ? 512 : keyLength; this.inu_1 = iterations; this.jnu_1 = keyLength; } protoOf(Pbkdf2Params).toString = function () { return 'Pbkdf2Params(iterations=' + this.inu_1 + ', keyLength=' + this.jnu_1 + ')'; }; protoOf(Pbkdf2Params).hashCode = function () { var result = this.inu_1; result = imul(result, 31) + this.jnu_1 | 0; return result; }; protoOf(Pbkdf2Params).equals = function (other) { if (this === other) return true; if (!(other instanceof Pbkdf2Params)) return false; var tmp0_other_with_cast = other instanceof Pbkdf2Params ? other : THROW_CCE(); if (!(this.inu_1 === tmp0_other_with_cast.inu_1)) return false; if (!(this.jnu_1 === tmp0_other_with_cast.jnu_1)) return false; return true; }; function Companion_1() { } protoOf(Companion_1).o4r = function () { return $serializer_getInstance_12(); }; var Companion_instance_49; function Companion_getInstance_19() { return Companion_instance_49; } function $serializer_0() { $serializer_instance_0 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.RegisterRequest', this, 5); tmp0_serialDesc.u4f('person', false); tmp0_serialDesc.u4f('newPassword', false); tmp0_serialDesc.u4f('parent', false); tmp0_serialDesc.u4f('learningSpaceUrl', false); tmp0_serialDesc.u4f('langCode', true); this.knu_1 = tmp0_serialDesc; } protoOf($serializer_0).r44 = function () { return this.knu_1; }; protoOf($serializer_0).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance(), StringSerializer_getInstance(), get_nullable($serializer_getInstance_0()), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_0).t44 = function (decoder) { var tmp0_desc = this.knu_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.j48(tmp0_desc); if (tmp9_input.y48()) { tmp4_local0 = tmp9_input.v48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.x48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.t48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.v48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.x48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.t48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.k48(tmp0_desc); return RegisterRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_0).lnu = function (encoder, value) { var tmp0_desc = this.knu_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance(), value.mnu_1); tmp1_output.x49(tmp0_desc, 1, value.nnu_1); tmp1_output.b4a(tmp0_desc, 2, $serializer_getInstance_0(), value.onu_1); tmp1_output.x49(tmp0_desc, 3, value.pnu_1); if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.qnu_1 === 'en')) { tmp1_output.x49(tmp0_desc, 4, value.qnu_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_0).s44 = function (encoder, value) { return this.lnu(encoder, value instanceof RegisterRequest ? value : THROW_CCE()); }; var $serializer_instance_0; function $serializer_getInstance_12() { if ($serializer_instance_0 == null) new $serializer_0(); return $serializer_instance_0; } function RegisterRequest_init_$Init$(seen1, person, newPassword, parent, learningSpaceUrl, langCode, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_12().knu_1); } $this.mnu_1 = person; $this.nnu_1 = newPassword; $this.onu_1 = parent; $this.pnu_1 = learningSpaceUrl; if (0 === (seen1 & 16)) $this.qnu_1 = 'en'; else $this.qnu_1 = langCode; return $this; } function RegisterRequest_init_$Create$(seen1, person, newPassword, parent, learningSpaceUrl, langCode, serializationConstructorMarker) { return RegisterRequest_init_$Init$(seen1, person, newPassword, parent, learningSpaceUrl, langCode, serializationConstructorMarker, objectCreate(protoOf(RegisterRequest))); } function RegisterRequest(person, newPassword, parent, learningSpaceUrl, langCode) { langCode = langCode === VOID ? 'en' : langCode; this.mnu_1 = person; this.nnu_1 = newPassword; this.onu_1 = parent; this.pnu_1 = learningSpaceUrl; this.qnu_1 = langCode; } protoOf(RegisterRequest).toString = function () { return 'RegisterRequest(person=' + this.mnu_1 + ', newPassword=' + this.nnu_1 + ', parent=' + this.onu_1 + ', learningSpaceUrl=' + this.pnu_1 + ', langCode=' + this.qnu_1 + ')'; }; protoOf(RegisterRequest).hashCode = function () { var result = this.mnu_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.nnu_1) | 0; result = imul(result, 31) + (this.onu_1 == null ? 0 : this.onu_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.pnu_1) | 0; result = imul(result, 31) + getStringHashCode(this.qnu_1) | 0; return result; }; protoOf(RegisterRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof RegisterRequest)) return false; var tmp0_other_with_cast = other instanceof RegisterRequest ? other : THROW_CCE(); if (!this.mnu_1.equals(tmp0_other_with_cast.mnu_1)) return false; if (!(this.nnu_1 === tmp0_other_with_cast.nnu_1)) return false; if (!equals(this.onu_1, tmp0_other_with_cast.onu_1)) return false; if (!(this.pnu_1 === tmp0_other_with_cast.pnu_1)) return false; if (!(this.qnu_1 === tmp0_other_with_cast.qnu_1)) return false; return true; }; function UnauthorizedException(message, cause) { message = message === VOID ? null : message; cause = cause === VOID ? null : cause; IllegalStateException_init_$Init$(message, cause, this); captureStack(this, UnauthorizedException); } function Companion_2() { } var Companion_instance_50; function Companion_getInstance_20() { return Companion_instance_50; } function $serializer_1() { $serializer_instance_1 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.UserSessionWithPersonAndLearningSpace', this, 4); tmp0_serialDesc.u4f('userSession', false); tmp0_serialDesc.u4f('person', false); tmp0_serialDesc.u4f('learningSpace', false); tmp0_serialDesc.u4f('personPicture', true); this.rnu_1 = tmp0_serialDesc; } protoOf($serializer_1).r44 = function () { return this.rnu_1; }; protoOf($serializer_1).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_1(), $serializer_getInstance(), $serializer_getInstance_11(), get_nullable($serializer_getInstance_2())]; }; protoOf($serializer_1).t44 = function (decoder) { var tmp0_desc = this.rnu_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.v48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.v48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.v48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.v48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return UserSessionWithPersonAndLearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_1).snu = function (encoder, value) { var tmp0_desc = this.rnu_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance_1(), value.tnu_1); tmp1_output.z49(tmp0_desc, 1, $serializer_getInstance(), value.unu_1); tmp1_output.z49(tmp0_desc, 2, $serializer_getInstance_11(), value.vnu_1); if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.wnu_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, $serializer_getInstance_2(), value.wnu_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_1).s44 = function (encoder, value) { return this.snu(encoder, value instanceof UserSessionWithPersonAndLearningSpace ? value : THROW_CCE()); }; var $serializer_instance_1; function $serializer_getInstance_13() { if ($serializer_instance_1 == null) new $serializer_1(); return $serializer_instance_1; } function UserSessionWithPersonAndLearningSpace_init_$Init$(seen1, userSession, person, learningSpace, personPicture, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_13().rnu_1); } $this.tnu_1 = userSession; $this.unu_1 = person; $this.vnu_1 = learningSpace; if (0 === (seen1 & 8)) $this.wnu_1 = null; else $this.wnu_1 = personPicture; return $this; } function UserSessionWithPersonAndLearningSpace_init_$Create$(seen1, userSession, person, learningSpace, personPicture, serializationConstructorMarker) { return UserSessionWithPersonAndLearningSpace_init_$Init$(seen1, userSession, person, learningSpace, personPicture, serializationConstructorMarker, objectCreate(protoOf(UserSessionWithPersonAndLearningSpace))); } function UserSessionWithPersonAndLearningSpace(userSession, person, learningSpace, personPicture) { personPicture = personPicture === VOID ? null : personPicture; this.tnu_1 = userSession; this.unu_1 = person; this.vnu_1 = learningSpace; this.wnu_1 = personPicture; } protoOf(UserSessionWithPersonAndLearningSpace).xnu = function () { var displayUrl = removeSuffix(removePrefix(removePrefix(this.vnu_1.cnu_1, 'http://'), 'https://'), '/'); return '' + this.unu_1.h96_1 + '@' + displayUrl; }; protoOf(UserSessionWithPersonAndLearningSpace).ynu = function () { return toUmAccount(this.unu_1, this.vnu_1.cnu_1); }; protoOf(UserSessionWithPersonAndLearningSpace).znu = function () { var tmp0_elvis_lhs = this.unu_1.h96_1; return new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(this.vnu_1.cnu_1, tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs)); }; protoOf(UserSessionWithPersonAndLearningSpace).anv = function (userSession, person, learningSpace, personPicture) { return new UserSessionWithPersonAndLearningSpace(userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).bnv = function (userSession, person, learningSpace, personPicture, $super) { userSession = userSession === VOID ? this.tnu_1 : userSession; person = person === VOID ? this.unu_1 : person; learningSpace = learningSpace === VOID ? this.vnu_1 : learningSpace; personPicture = personPicture === VOID ? this.wnu_1 : personPicture; return $super === VOID ? this.anv(userSession, person, learningSpace, personPicture) : $super.anv.call(this, userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).toString = function () { return 'UserSessionWithPersonAndLearningSpace(userSession=' + this.tnu_1 + ', person=' + this.unu_1 + ', learningSpace=' + this.vnu_1 + ', personPicture=' + this.wnu_1 + ')'; }; protoOf(UserSessionWithPersonAndLearningSpace).hashCode = function () { var result = hashCode(this.tnu_1); result = imul(result, 31) + this.unu_1.hashCode() | 0; result = imul(result, 31) + this.vnu_1.hashCode() | 0; result = imul(result, 31) + (this.wnu_1 == null ? 0 : this.wnu_1.hashCode()) | 0; return result; }; protoOf(UserSessionWithPersonAndLearningSpace).equals = function (other) { if (this === other) return true; if (!(other instanceof UserSessionWithPersonAndLearningSpace)) return false; var tmp0_other_with_cast = other instanceof UserSessionWithPersonAndLearningSpace ? other : THROW_CCE(); if (!equals(this.tnu_1, tmp0_other_with_cast.tnu_1)) return false; if (!this.unu_1.equals(tmp0_other_with_cast.unu_1)) return false; if (!this.vnu_1.equals(tmp0_other_with_cast.vnu_1)) return false; if (!equals(this.wnu_1, tmp0_other_with_cast.wnu_1)) return false; return true; }; function UstadAccountManager$slambda$slambda$slambda$slambda$slambda$lambda(a, b) { // Inline function 'kotlin.comparisons.compareValuesBy' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager........' call var tmp = a.xnu(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager........' call var tmp$ret$1 = b.xnu(); return compareValues(tmp, tmp$ret$1); } function UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.knv_1 = this$0; this.lnv_1 = $learningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).nnv = function (learningSpaceSessions, $completion) { var tmp = this.onv(learningSpaceSessions, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.nnv((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.knv_1.tnv_1; while (true) { var prevValue = this_0.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = prevValue.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.vnu_1.equals(this.lnv_1)) { destination.i1(element); } } var this_1 = this.mnv_1; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10)); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); var tmp0_elvis_lhs = item.iik_1; var tmp_0 = tmp0_elvis_lhs == null ? new UserSession() : tmp0_elvis_lhs; var tmp1_elvis_lhs = item.gik_1; destination_0.i1(new UserSessionWithPersonAndLearningSpace(tmp_0, tmp1_elvis_lhs == null ? new Person() : tmp1_elvis_lhs, this.lnv_1, item.hik_1)); } var tmp_1 = UstadAccountManager$slambda$slambda$slambda$slambda$slambda$lambda; var nextValue = plus(destination, sortedWith(destination_0, new sam$kotlin_Comparator$0(tmp_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).onv = function (learningSpaceSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this.knv_1, this.lnv_1, completion); i.mnv_1 = learningSpaceSessions; return i; }; function UstadAccountManager$slambda$slambda$slambda$slambda$slambda_0(this$0, $learningSpace, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation); var l = function (learningSpaceSessions, $completion) { return i.nnv(learningSpaceSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.inw_1 = this$0; this.jnw_1 = $learningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var this_0 = this.inw_1.qnv_1; var context = this.jnw_1; var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.lnw_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.id_1 = 1; var tmp_5 = this.lnw_1.c7f().bij(); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda$slambda_0(this.inw_1, this.jnw_1, null); suspendResult = tmp_5.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_6), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda(this.inw_1, this.jnw_1, completion); i.knw_1 = $this$launch; return i; }; function UstadAccountManager$slambda$slambda$slambda$slambda_0(this$0, $learningSpace, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda(this$0, resultContinuation) { this.unw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda).wnw = function (learningSpacesWithSessions, $completion) { var tmp = this.xnw(learningSpacesWithSessions, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda$slambda$slambda).ie = function (p1, $completion) { return this.wnw((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_iterator = this.vnw_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); launch(this.unw_1.znv_1, VOID, VOID, UstadAccountManager$slambda$slambda$slambda$slambda_0(this.unw_1, element, null)); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda).xnw = function (learningSpacesWithSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda(this.unw_1, completion); i.vnw_1 = learningSpacesWithSessions; return i; }; function UstadAccountManager$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda(this$0, resultContinuation); var l = function (learningSpacesWithSessions, $completion) { return i.wnw(learningSpacesWithSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda(this$0, resultContinuation) { this.gnx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(UstadAccountManager$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = collectLatest(this.gnx_1.snv_1, UstadAccountManager$slambda$slambda$slambda_0(this.gnx_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda).m78 = function (completion) { return new UstadAccountManager$slambda$slambda(this.gnx_1, completion); }; function UstadAccountManager$slambda$slambda_0(this$0, resultContinuation) { var i = new UstadAccountManager$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function UstadAccountManager$slambda$slambda$slambda$slambda$lambda($personAndPictureFromDb) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_safe_receiver = $personAndPictureFromDb; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag6_1; tmp.i96_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i96_1; var tmp_0 = $this$shallowCopy; var tmp2_safe_receiver = $personAndPictureFromDb; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ag6_1; tmp_0.j96_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j96_1; return Unit_instance; }; } function UstadAccountManager$slambda$slambda$slambda$slambda_1($session, this$0, resultContinuation) { this.pnx_1 = $session; this.qnx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).snx = function (personAndPictureFromDb, $completion) { var tmp = this.tnx(personAndPictureFromDb, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.snx((p1 == null ? true : p1 instanceof PersonAndPicture) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_safe_receiver = this.rnx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag6_1; var nameChanged = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ekr()) === this.pnx_1.unu_1.ekr()); var tmp2_safe_receiver = this.rnx_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.bg6_1; var tmp_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i97_1; var tmp4_safe_receiver = this.pnx_1.wnu_1; var pictureUriChanged = !(tmp_0 == (tmp4_safe_receiver == null ? null : tmp4_safe_receiver.i97_1)); if (nameChanged ? true : pictureUriChanged) { var tmp_1; if (nameChanged) { tmp_1 = shallowCopy(this.pnx_1.unu_1, UstadAccountManager$slambda$slambda$slambda$slambda$lambda(this.rnx_1)); } else { tmp_1 = this.pnx_1.unu_1; } var tmp_2 = tmp_1; var tmp_3; if (pictureUriChanged) { var tmp5_safe_receiver = this.rnx_1; tmp_3 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.bg6_1; } else { tmp_3 = this.pnx_1.wnu_1; } this.qnx_1.unx(this.pnx_1.bnv(VOID, tmp_2, VOID, tmp_3)); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).tnx = function (personAndPictureFromDb, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda_1(this.pnx_1, this.qnx_1, completion); i.rnx_1 = personAndPictureFromDb; return i; }; function UstadAccountManager$slambda$slambda$slambda$slambda_2($session, this$0, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda_1($session, this$0, resultContinuation); var l = function (personAndPictureFromDb, $completion) { return i.snx(personAndPictureFromDb, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda_1(this$0, resultContinuation) { this.dny_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda_1).gny = function (session, $completion) { var tmp = this.hny(session, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.gny(p1 instanceof UserSessionWithPersonAndLearningSpace ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var this_0 = this.dny_1.qnv_1; var context = this.eny_1.vnu_1; var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.fny_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.id_1 = 1; var tmp_5 = this.fny_1.o7d().hcl(this.eny_1.tnu_1.yij_1); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda_2(this.eny_1, this.dny_1, null); suspendResult = tmp_5.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_6), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda_1).hny = function (session, completion) { var i = new UstadAccountManager$slambda$slambda$slambda_1(this.dny_1, completion); i.eny_1 = session; return i; }; function UstadAccountManager$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new UstadAccountManager$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (session, $completion) { return i.gny(session, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda_1(this$0, resultContinuation) { this.qny_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda_1).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda$slambda_1).n78 = function ($completion) { return this.k87($completion); }; protoOf(UstadAccountManager$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = collectLatest(this.qny_1.rnv_1, UstadAccountManager$slambda$slambda$slambda_2(this.qny_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda_1).m78 = function (completion) { return new UstadAccountManager$slambda$slambda_1(this.qny_1, completion); }; function UstadAccountManager$slambda$slambda_2(this$0, resultContinuation) { var i = new UstadAccountManager$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function UstadAccountManager$registerWithPasskey$slambda$slambda($repo, $person, resultContinuation) { this.zny_1 = $repo; this.anz_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = this.zny_1.o7d().ng4(this.anz_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cnz_1 = suspendResult; if (this.cnz_1 == null) { this.id_1 = 2; suspendResult = this.zny_1.o7d().insertAsync(this.anz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).enz = function (it, completion) { var i = new UstadAccountManager$registerWithPasskey$slambda$slambda(this.zny_1, this.anz_1, completion); i.bnz_1 = it; return i; }; function UstadAccountManager$registerWithPasskey$slambda$slambda_0($repo, $person, resultContinuation) { var i = new UstadAccountManager$registerWithPasskey$slambda$slambda($repo, $person, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda(this$0, resultContinuation) { this.nnz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda).rnz = function (response, $completion) { var tmp = this.d3i(response, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$register$slambda$slambda).ie = function (p1, $completion) { return this.rnz(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$register$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (this.onz_1.k3b().g30_1 === 200) { var tmp_0 = this; tmp_0.qnz_1 = _get_json__d8whur(this.nnz_1); this.id_1 = 1; suspendResult = bodyAsText(this.onz_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.pnz_1 = new Pair(null, this.onz_1.k3b().g30_1); this.id_1 = 2; continue $sm; } case 1: var string = suspendResult; var this_0 = this.qnz_1.u45(); var this_1 = serializer(this_0, createKType(getKClass(Person), arrayOf([]), false)); var ARGUMENT = this.qnz_1.t45(isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(), string); this.pnz_1 = new Pair(ARGUMENT, 200); this.id_1 = 2; continue $sm; case 2: return this.pnz_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$register$slambda$slambda).d3i = function (response, completion) { var i = new UstadAccountManager$register$slambda$slambda(this.nnz_1, completion); i.onz_1 = response; return i; }; function UstadAccountManager$register$slambda$slambda_0(this$0, resultContinuation) { var i = new UstadAccountManager$register$slambda$slambda(this$0, resultContinuation); var l = function (response, $completion) { return i.rnz(response, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda_1($db, $registeredPerson, resultContinuation) { this.ao0_1 = $db; this.bo0_1 = $registeredPerson; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda_1).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$register$slambda$slambda_1).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$register$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = this.ao0_1.o7d().ng4(this.bo0_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.do0_1 = suspendResult; if (this.do0_1 == null) { this.id_1 = 2; suspendResult = this.ao0_1.o7d().insertAsync(this.bo0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$register$slambda$slambda_1).enz = function (it, completion) { var i = new UstadAccountManager$register$slambda$slambda_1(this.ao0_1, this.bo0_1, completion); i.co0_1 = it; return i; }; function UstadAccountManager$register$slambda$slambda_2($db, $registeredPerson, resultContinuation) { var i = new UstadAccountManager$register$slambda$slambda_1($db, $registeredPerson, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$loginWithPasskey$slambda$lambda($loginResponse) { return function () { return 'passkeyres : ' + $loginResponse; }; } function _get_createNewLocalAccountUseCase__gbdxzu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.unv_1; createNewLocalAccountUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vnv_1; httpClient$factory_0(); return this_0.t2(); } function _get_json__d8whur($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wnv_1; json$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xnv_1; apiUrlConfig$factory_0(); return this_0.t2(); } function makeNewTempGuestSession($this, learningSpaceUrl, currentDb) { // Inline function 'kotlin.also' call // Inline function 'kotlin.apply' call var this_0 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.makeNewTempGuestSession.' call var tmp = this_0; var tmp_0 = get_doorPrimaryKeyManager(currentDb); tmp.tij_1 = tmp_0.o62(679); this_0.zij_1 = get_doorWrapperNodeId(currentDb); this_0.aik_1 = systemTimeInMillis(); var tmp_1 = this_0; tmp_1.fik_1 = 8 | 4; var tmp_2 = this_0; tmp_2.cik_1 = 1; var this_1 = new UserSessionWithPersonAndLearningSpace(this_0, Companion_getInstance_21().eo0_1, new LearningSpace(learningSpaceUrl)); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.makeNewTempGuestSession.' call launch($this.znv_1, VOID, VOID, UstadAccountManager$makeNewTempGuestSession$slambda_0(currentDb, this_1, null)); return this_1; } function assertNotClosed($this) { if ($this.ynv_1.kotlinx$atomicfu$value) throw IllegalStateException_init_$Create$('UstadAccountManager is closed'); } function addActiveLearningSpace($this, learningSpace, commit, $completion) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.snv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager.addActiveLearningSpace.' call var nextValue = plus(prevValue, listOf_0(learningSpace)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (commit) { commitActiveEndpointsToPref($this); } return Unit_instance; } function removeActiveLearningSpace($this, learningSpace, commit) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.snv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager.removeActiveLearningSpace.' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = prevValue.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager.removeActiveLearningSpace..' call if (!element.equals(learningSpace)) { destination.i1(element); } } var nextValue = destination; if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (commit) { commitActiveEndpointsToPref($this); } } function removeActiveLearningSpace$default($this, learningSpace, commit, $super) { commit = commit === VOID ? true : commit; return removeActiveLearningSpace($this, learningSpace, commit); } function commitActiveEndpointsToPref($this) { var tmp = Default_getInstance(); var tmp_0 = ListSerializer(serializer_0(StringCompanionObject_instance)); // Inline function 'kotlin.collections.map' call var this_0 = toSet($this.snv_1.t2()); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager.commitActiveEndpointsToPref.' call var tmp$ret$0 = item.cnu_1; destination.i1(tmp$ret$0); } var json = tmp.s45(tmp_0, toList(destination)); // Inline function 'com.russhwolf.settings.set' call var this_1 = $this.pnv_1; var key = 'accountmgr.endpointswithsessions'; this_1.em8(key, json); } function getSiteFromDbOrLoadFromHttp($this, repo, $completion) { var tmp = new $getSiteFromDbOrLoadFromHttpCOROUTINE$7($this, repo, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_3() { Companion_instance_51 = this; var tmp = this; // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.Companion.GUEST_PERSON.' call this_0.g96_1 = new Long(0, 0); this_0.i96_1 = 'Guest'; this_0.j96_1 = 'User'; tmp.eo0_1 = this_0; this.fo0_1 = 'accountmgr.activesession'; this.go0_1 = 'accountmgr.activeendpoint'; this.ho0_1 = 'accountmgr.endpointswithsessions'; this.io0_1 = 'http://localhost/'; this.jo0_1 = 'com.ustadmobile'; this.ko0_1 = 'com.ustadmobile.AUTH_GET_TOKEN'; } var Companion_instance_51; function Companion_getInstance_21() { if (Companion_instance_51 == null) new Companion_3(); return Companion_instance_51; } function sam$kotlin_Comparator$0(function_0) { this.xo0_1 = function_0; } protoOf(sam$kotlin_Comparator$0).pa = function (a, b) { return this.xo0_1(a, b); }; protoOf(sam$kotlin_Comparator$0).compare = function (a, b) { return this.pa(a, b); }; function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) { this.yo0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).u1d = function (value, $completion) { return this.yo0_1(value, $completion); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0(function_0) { this.zo0_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0).ao1 = function (endpointUrl) { return this.zo0_1(endpointUrl); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0(function_0) { this.bo1_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0).ao1 = function (endpointUrl) { return this.bo1_1(endpointUrl); }; function UstadAccountManager$slambda(this$0, resultContinuation) { this.ko1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.ko1_1.tnv_1, UstadAccountManager$slambda$slambda_0(this.ko1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda).w1m = function ($this$launch, completion) { var i = new UstadAccountManager$slambda(this.ko1_1, completion); i.lo1_1 = $this$launch; return i; }; function UstadAccountManager$slambda_0(this$0, resultContinuation) { var i = new UstadAccountManager$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda_1(this$0, resultContinuation) { this.uo1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.uo1_1.rnv_1, UstadAccountManager$slambda$slambda_2(this.uo1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda_1).w1m = function ($this$launch, completion) { var i = new UstadAccountManager$slambda_1(this.uo1_1, completion); i.vo1_1 = $this$launch; return i; }; function UstadAccountManager$slambda_2(this$0, resultContinuation) { var i = new UstadAccountManager$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$makeNewTempGuestSession$slambda($currentDb, $it, resultContinuation) { this.eo2_1 = $currentDb; this.fo2_1 = $it; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.eo2_1.c7f().aij(this.fo2_1.tnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).w1m = function ($this$launch, completion) { var i = new UstadAccountManager$makeNewTempGuestSession$slambda(this.eo2_1, this.fo2_1, completion); i.go2_1 = $this$launch; return i; }; function UstadAccountManager$makeNewTempGuestSession$slambda_0($currentDb, $it, resultContinuation) { var i = new UstadAccountManager$makeNewTempGuestSession$slambda($currentDb, $it, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$activeSessionCount$lambda(it) { return true; } function UstadAccountManager$registerWithPasskey$slambda($learningSpaceUrl, this$0, $passkeyResult, $person, resultContinuation) { this.po2_1 = $learningSpaceUrl; this.qo2_1 = this$0; this.ro2_1 = $passkeyResult; this.so2_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$registerWithPasskey$slambda).v1m = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$registerWithPasskey$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$registerWithPasskey$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.uo2_1 = new LearningSpace(this.po2_1); var tmp_0 = this; var this_0 = this.qo2_1.qnv_1; var context = this.uo2_1; var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(SavePersonPasskeyUseCase), arrayOf([]), false)); tmp_0.vo2_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.id_1 = 1; suspendResult = this.vo2_1.bo3(this.ro2_1, this.so2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_5 = this; var this_1 = this.qo2_1.qnv_1; var context_0 = this.uo2_1; var trigger_0 = this_1.e57(); var tmp_6 = Companion_instance_0; var tmp_7 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_8 = get_direct(On(this_1, tmp_6.i57(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).g58(); var tmp_9 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_5.wo2_1 = tmp_8.e58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null).xk2(); this.id_1 = 2; suspendResult = this.qo2_1.co3(this.so2_1, this.po2_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.xo2_1 = suspendResult; this.id_1 = 3; suspendResult = withDoorTransactionAsync(this.wo2_1, VOID, UstadAccountManager$registerWithPasskey$slambda$slambda_0(this.wo2_1, this.so2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var this_2 = this.qo2_1.qnv_1; var context_1 = this.uo2_1; var trigger_1 = this_2.e57(); var tmp_10 = Companion_instance_0; var tmp_11 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_12 = get_direct(On(this_2, tmp_10.i57(isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(), context_1), trigger_1)).g58(); var tmp_13 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_12.e58(isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(), 1); this.qo2_1.unx(this.xo2_1); return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$registerWithPasskey$slambda).w1m = function ($this$withContext, completion) { var i = new UstadAccountManager$registerWithPasskey$slambda(this.po2_1, this.qo2_1, this.ro2_1, this.so2_1, completion); i.to2_1 = $this$withContext; return i; }; function UstadAccountManager$registerWithPasskey$slambda_0($learningSpaceUrl, this$0, $passkeyResult, $person, resultContinuation) { var i = new UstadAccountManager$registerWithPasskey$slambda($learningSpaceUrl, this$0, $passkeyResult, $person, resultContinuation); var l = function ($this$withContext, $completion) { return i.v1m($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda(this$0, $learningSpaceUrl, $accountRegisterOptions, $person, $password, resultContinuation) { this.lo3_1 = this$0; this.mo3_1 = $learningSpaceUrl; this.no3_1 = $accountRegisterOptions; this.oo3_1 = $person; this.po3_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda).bo4 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$register$slambda).ie = function (p1, $completion) { return this.bo4((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$register$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; assertNotClosed(this.lo3_1); this.ro3_1 = new LearningSpace(this.mo3_1); this.so3_1 = this.no3_1.jnt_1; var tmp_0 = this; var this_0 = _get_httpClient__2ty1zc(this.lo3_1); var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.mo3_1, '/') + '/auth/register'); contentType(this_1, Application_getInstance().w2r_1); setBodyJson(this_1, _get_json__d8whur(this.lo3_1), Companion_instance_49.o4r(), new RegisterRequest(this.oo3_1, this.po3_1, this.so3_1, this.mo3_1)); this_1.x38_1 = Companion_getInstance().n2x_1; tmp_0.to3_1 = new HttpStatement(this_1, this_0); this.id_1 = 1; suspendResult = this.to3_1.h3z(UstadAccountManager$register$slambda$slambda_0(this.lo3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uo3_1 = suspendResult; this.vo3_1 = this.uo3_1.y6(); this.wo3_1 = this.uo3_1.z6(); if (this.wo3_1 === 200 ? !(this.vo3_1 == null) : false) { var tmp_1 = this; var this_2 = this.lo3_1.qnv_1; var context = this.ro3_1; var trigger = this_2.e57(); var tmp_2 = Companion_instance_0; var tmp_3 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_4 = get_direct(On(this_2, tmp_2.i57(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context), trigger)).g58(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1.yo3_1 = tmp_4.e58(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null).xk2(); this.id_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.lo3_1, this.yo3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.wo3_1 === 409) { var tmp_6 = this; throw IllegalStateException_init_$Create$('Conflict: username already taken'); } else { var tmp_7 = this; throw Exception_init_$Create$('register request: non-OK status code: ' + this.wo3_1); } } case 2: this.id_1 = 3; suspendResult = this.lo3_1.co3(this.vo3_1, this.mo3_1, this.po3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.zo3_1 = suspendResult; var tmp_8 = this; var this_3 = this.lo3_1.qnv_1; var context_0 = this.ro3_1; var trigger_0 = this_3.e57(); var tmp_9 = Companion_instance_0; var tmp_10 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_11 = get_direct(On(this_3, tmp_9.i57(isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(), context_0), trigger_0)).g58(); var tmp_12 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_8.ao4_1 = tmp_11.e58(isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(), 1); this.id_1 = 4; suspendResult = withDoorTransactionAsync(this.ao4_1, VOID, UstadAccountManager$register$slambda$slambda_2(this.ao4_1, this.vo3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: if (this.no3_1.int_1) { this.lo3_1.unx(this.zo3_1); } this.xo3_1 = this.vo3_1; this.id_1 = 5; continue $sm; case 5: return this.xo3_1; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$register$slambda).w1m = function ($this$withContext, completion) { var i = new UstadAccountManager$register$slambda(this.lo3_1, this.mo3_1, this.no3_1, this.oo3_1, this.po3_1, completion); i.qo3_1 = $this$withContext; return i; }; function UstadAccountManager$register$slambda_0(this$0, $learningSpaceUrl, $accountRegisterOptions, $person, $password, resultContinuation) { var i = new UstadAccountManager$register$slambda(this$0, $learningSpaceUrl, $accountRegisterOptions, $person, $password, resultContinuation); var l = function ($this$withContext, $completion) { return i.bo4($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$addSession$slambda(this$0, $learningSpace, $person, $password, $authManager, $dataLayer, resultContinuation) { this.ko4_1 = this$0; this.lo4_1 = $learningSpace; this.mo4_1 = $person; this.no4_1 = $password; this.oo4_1 = $authManager; this.po4_1 = $dataLayer; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$addSession$slambda).co5 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$addSession$slambda).ie = function (p1, $completion) { return this.co5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$addSession$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; var tmp_0 = this; var this_0 = this.ko4_1.qnv_1; var context = this.lo4_1; var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(NodeIdAndAuth), arrayOf([]), false)); tmp_0.ro4_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null).r64_1; var tmp_5 = this; tmp_5.so4_1 = new UserSession(); var tmp_6 = this; tmp_6.to4_1 = this.so4_1; this.to4_1.zij_1 = this.ro4_1; this.to4_1.yij_1 = this.mo4_1.g96_1; this.to4_1.aik_1 = systemTimeInMillis(); var tmp_7 = this.to4_1; tmp_7.fik_1 = 1; var tmp_8 = this.to4_1; tmp_8.cik_1 = 1; this.uo4_1 = this.no4_1; if (this.uo4_1 == null) { this.vo4_1 = null; this.id_1 = 2; continue $sm; } else { var tmp_9 = this; tmp_9.wo4_1 = this.uo4_1; var tmp_10 = this; tmp_10.xo4_1 = this.wo4_1; this.id_1 = 1; suspendResult = encryptPbkdf2(this.oo4_1, this.xo4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.yo4_1 = suspendResult; this.vo4_1 = toHexString(this.yo4_1); this.id_1 = 2; continue $sm; case 2: this.zo4_1 = this.vo4_1; this.to4_1.eik_1 = this.zo4_1; this.id_1 = 3; suspendResult = this.po4_1.yk2().c7f().aij(this.to4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ao5_1 = suspendResult; this.to4_1.tij_1 = this.ao5_1; this.bo5_1 = this.so4_1; this.id_1 = 4; suspendResult = this.po4_1.uk2_1.g7e().zh3(this.mo4_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var personPicture = suspendResult; return to(this.bo5_1, personPicture); case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$addSession$slambda).enz = function (it, completion) { var i = new UstadAccountManager$addSession$slambda(this.ko4_1, this.lo4_1, this.mo4_1, this.no4_1, this.oo4_1, this.po4_1, completion); i.qo4_1 = it; return i; }; function UstadAccountManager$addSession$slambda_0(this$0, $learningSpace, $person, $password, $authManager, $dataLayer, resultContinuation) { var i = new UstadAccountManager$addSession$slambda(this$0, $learningSpace, $person, $password, $authManager, $dataLayer, resultContinuation); var l = function (it, $completion) { return i.co5(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$endSession$lambda($session) { return function (it) { return it === $session.vnu_1.cnu_1; }; } function UstadAccountManager$loginWithPasskey$slambda(this$0, $currentServerUrl, $passkeyWebAuthNResponse, resultContinuation) { this.lo5_1 = this$0; this.mo5_1 = $currentServerUrl; this.no5_1 = $passkeyWebAuthNResponse; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$loginWithPasskey$slambda).co6 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$loginWithPasskey$slambda).ie = function (p1, $completion) { return this.co6((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$loginWithPasskey$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; assertNotClosed(this.lo5_1); var tmp_0 = this; tmp_0.po5_1 = _get_httpClient__2ty1zc(this.lo5_1); var tmp_1 = this; tmp_1.qo5_1 = this.po5_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, removeSuffix(this.mo5_1, '/') + '/api/passkey/verifypasskey'); setBodyJson(this_0, _get_json__d8whur(this.lo5_1), Companion_instance_92.o4r(), this.no5_1); parameter(this_0, 'rpId', Url(_get_apiUrlConfig__mldllg(this.lo5_1).do6_1).z30_1); tmp_2.ro5_1 = this_0; this.ro5_1.x38_1 = Companion_getInstance().n2x_1; var tmp_3 = this; tmp_3.so5_1 = this.qo5_1; var tmp_4 = this; tmp_4.to5_1 = this.ro5_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.to5_1, this.so5_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uo5_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsText(this.uo5_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.vo5_1 = suspendResult; var tmp_5 = Napier_getInstance(); tmp_5.l5e(VOID, VOID, UstadAccountManager$loginWithPasskey$slambda$lambda(this.vo5_1)); var tmp_6 = this; var this_1 = _get_json__d8whur(this.lo5_1); var string = this.vo5_1; var this_2 = this_1.u45(); var this_3 = serializer(this_2, createKType(getKClass(PasskeyVerifyResult), arrayOf([]), false)); tmp_6.wo5_1 = this_1.t45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); if (!this.wo5_1.ho6_1) { throw new UnauthorizedException('Account not found'); } this.xo5_1 = new UmAccount(this.wo5_1.io6_1); this.xo5_1.fkz_1 = this.mo5_1; var tmp_7 = this; var this_4 = this.lo5_1.qnv_1; var context = new LearningSpace(this.mo5_1); var trigger = this_4.e57(); var tmp_8 = Companion_instance_0; var tmp_9 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_10 = get_direct(On(this_4, tmp_8.i57(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), context), trigger)).g58(); var tmp_11 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_7.yo5_1 = tmp_10.e58(isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(), null).xk2(); this.id_1 = 3; suspendResult = this.yo5_1.o7d().mg4(this.wo5_1.io6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.zo5_1 = suspendResult; var tmp_12 = this; var tmp_13; if (this.zo5_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_13 = this.zo5_1; } tmp_12.ao6_1 = tmp_13; this.bo6_1 = ensureNotNull(this.ao6_1.ag6_1); this.xo5_1.jkz_1 = this.bo6_1.o96_1; this.id_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.lo5_1, this.yo5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.id_1 = 5; suspendResult = this.lo5_1.co3(this.bo6_1, this.mo5_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; this.lo5_1.unx(newSession); return this.xo5_1; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$loginWithPasskey$slambda).w1m = function ($this$withContext, completion) { var i = new UstadAccountManager$loginWithPasskey$slambda(this.lo5_1, this.mo5_1, this.no5_1, completion); i.oo5_1 = $this$withContext; return i; }; function UstadAccountManager$loginWithPasskey$slambda_0(this$0, $currentServerUrl, $passkeyWebAuthNResponse, resultContinuation) { var i = new UstadAccountManager$loginWithPasskey$slambda(this$0, $currentServerUrl, $passkeyWebAuthNResponse, resultContinuation); var l = function ($this$withContext, $completion) { return i.co6($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$login$slambda(this$0, $endpointUrl, $username, $password, $maxDateOfBirth, $dontSetCurrentSession, resultContinuation) { this.to6_1 = this$0; this.uo6_1 = $endpointUrl; this.vo6_1 = $username; this.wo6_1 = $password; this.xo6_1 = $maxDateOfBirth; this.yo6_1 = $dontSetCurrentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$login$slambda).co6 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager$login$slambda).ie = function (p1, $completion) { return this.co6((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$login$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; assertNotClosed(this.to6_1); var tmp_0 = this; var this_0 = get_direct(this.to6_1.qnv_1); var context = new LearningSpace(this.uo6_1); var tmp_1 = this_0.g58(); var tmp_2 = Companion_instance_0; var tmp_3 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_4 = tmp_1.d58(tmp_2.i57(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context)).g58(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.ao7_1 = tmp_4.e58(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null); var tmp_6 = this; var tmp_7 = this.ao7_1.vk2_1; var tmp0_safe_receiver = (!(tmp_7 == null) ? isInterface(tmp_7, DoorDatabaseRepository) : false) ? tmp_7 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k39(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w65_1; var tmp_8; if (tmp2_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Could not open repo for endpoint ' + this.uo6_1); } else { tmp_8 = tmp2_elvis_lhs; } tmp_6.bo7_1 = tmp_8; var tmp_9 = this; tmp_9.co7_1 = _get_httpClient__2ty1zc(this.to6_1); var tmp_10 = this; tmp_10.do7_1 = this.co7_1; var tmp_11 = this; var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.uo6_1, '/') + '/auth/login'); parameter(this_1, 'username', this.vo6_1); parameter(this_1, 'password', this.wo6_1); parameter(this_1, 'maxDateOfBirth', this.xo6_1); header(this_1, 'X-nid', this.bo7_1); set_expectSuccess(this_1, false); tmp_11.eo7_1 = this_1; this.eo7_1.x38_1 = Companion_getInstance().n2x_1; var tmp_12 = this; tmp_12.fo7_1 = this.do7_1; var tmp_13 = this; tmp_13.go7_1 = this.eo7_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.go7_1, this.fo7_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ho7_1 = suspendResult; if (this.ho7_1.k3b().g30_1 === 403) { throw new UnauthorizedException('Access denied'); } else if (this.ho7_1.k3b().equals(Companion_getInstance_0().r2z_1)) { throw new ConsentNotGrantedException('Parental consent required but not granted'); } else if (this.ho7_1.k3b().equals(Companion_getInstance_0().g2z_1)) { throw new AdultAccountRequiredException('Adult account required, credentials for child account'); } else if (!(this.ho7_1.k3b().g30_1 === 200)) { throw IllegalStateException_init_$Create$('Server error - response ' + this.ho7_1.k3b().g30_1); } var tmp_14 = this; tmp_14.io7_1 = _get_json__d8whur(this.to6_1); this.id_1 = 2; suspendResult = bodyAsText(this.ho7_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jo7_1 = suspendResult; var tmp_15 = this; var this_2 = this.io7_1.u45(); var this_3 = serializer(this_2, createKType(getKClass(UmAccount), arrayOf([]), false)); tmp_15.ko7_1 = this.io7_1.t45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.jo7_1); this.ko7_1.fkz_1 = this.uo6_1; this.id_1 = 3; suspendResult = this.ao7_1.yk2().o7d().mg4(this.ko7_1.ckz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.lo7_1 = suspendResult; var tmp_16 = this; var tmp_17; if (this.lo7_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_17 = this.lo7_1; } tmp_16.mo7_1 = tmp_17; this.no7_1 = ensureNotNull(this.mo7_1.ag6_1); this.ko7_1.jkz_1 = this.no7_1.o96_1; this.id_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.to6_1, this.ao7_1.yk2(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.id_1 = 5; suspendResult = this.to6_1.co3(this.no7_1, this.uo6_1, this.wo6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; if (!this.yo6_1) { this.to6_1.unx(newSession); } return this.ko7_1; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadAccountManager$login$slambda).w1m = function ($this$withContext, completion) { var i = new UstadAccountManager$login$slambda(this.to6_1, this.uo6_1, this.vo6_1, this.wo6_1, this.xo6_1, this.yo6_1, completion); i.zo6_1 = $this$withContext; return i; }; function UstadAccountManager$login$slambda_0(this$0, $endpointUrl, $username, $password, $maxDateOfBirth, $dontSetCurrentSession, resultContinuation) { var i = new UstadAccountManager$login$slambda(this$0, $endpointUrl, $username, $password, $maxDateOfBirth, $dontSetCurrentSession, resultContinuation); var l = function ($this$withContext, $completion) { return i.co6($this$withContext, $completion); }; l.$arity = 1; return l; } function $activeSessionsListCOROUTINE$2(_this__u8e3s4, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wo7_1 = _this__u8e3s4; this.xo7_1 = endpointFilter; } protoOf($activeSessionsListCOROUTINE$2).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var this_0 = this.wo7_1.snv_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.xo7_1.ao1(element.cnu_1)) { destination.i1(element); } } tmp_0.yo7_1 = destination; var tmp_1 = this; tmp_1.zo7_1 = this.yo7_1; var tmp_2 = this; tmp_2.ao8_1 = ArrayList_init_$Create$(); this.bo8_1 = this.zo7_1.w(); this.id_1 = 1; continue $sm; case 1: if (!this.bo8_1.f()) { this.id_1 = 3; continue $sm; } this.co8_1 = this.bo8_1.e(); var tmp_3 = this; tmp_3.do8_1 = this.co8_1; var tmp_4 = this; var this_1 = this.wo7_1.qnv_1; var context = this.do8_1; var trigger = this_1.e57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_7 = get_direct(On(this_1, tmp_5.i57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).g58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.eo8_1 = tmp_7.e58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.id_1 = 2; suspendResult = this.eo8_1.c7f().cij(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var this_2 = suspendResult; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_0 = this_2.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); destination_0.i1(withLearningSpace(item, this.do8_1)); } var list = destination_0; addAll(this.ao8_1, list); this.id_1 = 1; continue $sm; case 3: return this.ao8_1; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $activeSessionCountCOROUTINE$3(_this__u8e3s4, maxDateOfBirth, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.no8_1 = _this__u8e3s4; this.oo8_1 = maxDateOfBirth; this.po8_1 = endpointFilter; } protoOf($activeSessionCountCOROUTINE$3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var this_0 = this.no8_1.snv_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.po8_1.ao1(element.cnu_1)) { destination.i1(element); } } tmp_0.qo8_1 = destination; var tmp_1 = this; tmp_1.ro8_1 = 0; this.so8_1 = this.ro8_1; this.to8_1 = this.qo8_1.w(); this.id_1 = 1; continue $sm; case 1: if (!this.to8_1.f()) { this.id_1 = 3; continue $sm; } this.uo8_1 = this.to8_1.e(); var tmp_2 = this; tmp_2.vo8_1 = this.so8_1; var tmp_3 = this; tmp_3.wo8_1 = this.uo8_1; var tmp_4 = this; var this_1 = this.no8_1.qnv_1; var context = this.wo8_1; var trigger = this_1.e57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_7 = get_direct(On(this_1, tmp_5.i57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).g58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.xo8_1 = tmp_7.e58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.id_1 = 2; suspendResult = this.xo8_1.c7f().dij(this.oo8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; this.so8_1 = this.vo8_1 + ARGUMENT | 0; this.id_1 = 1; continue $sm; case 3: return this.so8_1; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $addSessionCOROUTINE$4(_this__u8e3s4, person, learningSpaceUrl, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.go9_1 = _this__u8e3s4; this.ho9_1 = person; this.io9_1 = learningSpaceUrl; this.jo9_1 = password; } protoOf($addSessionCOROUTINE$4).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; assertNotClosed(this.go9_1); this.ko9_1 = new LearningSpace(this.io9_1); var tmp_0 = this; var this_0 = this.go9_1.qnv_1; var context = this.ko9_1; var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.lo9_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); if (!this.go9_1.snv_1.t2().a1(this.ko9_1)) { this.id_1 = 1; suspendResult = addActiveLearningSpace(this.go9_1, this.ko9_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: commitActiveEndpointsToPref(this.go9_1); this.id_1 = 2; continue $sm; case 2: var tmp_5 = this; var this_1 = this.go9_1.qnv_1; var context_0 = this.ko9_1; var trigger_0 = this_1.e57(); var tmp_6 = Companion_instance_0; var tmp_7 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_8 = get_direct(On(this_1, tmp_6.i57(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).g58(); var tmp_9 = typeToken(createKType(getKClass(AuthManager), arrayOf([]), false)); tmp_5.mo9_1 = tmp_8.e58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null); this.id_1 = 3; var tmp_10 = this.lo9_1.yk2(); suspendResult = withDoorTransactionAsync(tmp_10, VOID, UstadAccountManager$addSession$slambda_0(this.go9_1, this.ko9_1, this.ho9_1, this.jo9_1, this.mo9_1, this.lo9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var tmp0_container = suspendResult; var userSession = tmp0_container.y6(); var personPicture = tmp0_container.z6(); return new UserSessionWithPersonAndLearningSpace(userSession, this.ho9_1, this.ko9_1, personPicture); case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $endSessionCOROUTINE$6(_this__u8e3s4, session, endStatus, endReason, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vo9_1 = _this__u8e3s4; this.wo9_1 = session; this.xo9_1 = endStatus; this.yo9_1 = endReason; } protoOf($endSessionCOROUTINE$6).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var this_0 = this.vo9_1.qnv_1; var context = this.wo9_1.vnu_1; var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.zo9_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.id_1 = 1; suspendResult = this.zo9_1.yk2().c7f().eij(this.wo9_1.tnu_1.tij_1, this.xo9_1, this.yo9_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (this.vo9_1.aoa().tnu_1.tij_1.equals(this.wo9_1.tnu_1.tij_1) ? this.vo9_1.aoa().vnu_1.equals(this.wo9_1.vnu_1) : false) { this.vo9_1.unx(makeNewTempGuestSession(this.vo9_1, this.wo9_1.vnu_1.cnu_1, this.zo9_1.yk2())); } this.id_1 = 2; var tmp_5 = UstadAccountManager$endSession$lambda(this.wo9_1); suspendResult = this.vo9_1.boa(new sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0(tmp_5), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; if (ARGUMENT.c1()) { removeActiveLearningSpace$default(this.vo9_1, this.wo9_1.vnu_1); this.id_1 = 3; continue $sm; } else { this.id_1 = 3; continue $sm; } case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $getSiteFromDbOrLoadFromHttpCOROUTINE$7(_this__u8e3s4, repo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.to0_1 = _this__u8e3s4; this.uo0_1 = repo; } protoOf($getSiteFromDbOrLoadFromHttpCOROUTINE$7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var tmp_1 = this.uo0_1; var tmp_2 = (isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : THROW_CCE()).y5i(); tmp_0.vo0_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : THROW_CCE(); this.id_1 = 1; suspendResult = this.vo0_1.w7e().mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wo0_1 = suspendResult; if (this.wo0_1 == null) { this.id_1 = 2; suspendResult = this.uo0_1.w7e().mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: if (suspendResult == null) throw IllegalStateException_init_$Create$('Internal error: no Site in database and could not fetch it from server'); this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $startGuestSessionCOROUTINE$9(_this__u8e3s4, learningSpaceUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.koa_1 = _this__u8e3s4; this.loa_1 = learningSpaceUrl; } protoOf($startGuestSessionCOROUTINE$9).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var this_0 = this.koa_1.qnv_1; var context = new LearningSpace(this.loa_1); var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.moa_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.id_1 = 1; var tmp_5 = this.moa_1.yk2(); var this_1 = new Person(); this_1.h96_1 = null; this_1.i96_1 = 'Guest'; this_1.j96_1 = 'User'; var tmp_6 = this_1; tmp_6.v96_1 = 2; suspendResult = insertPersonAndGroup(tmp_5, this_1, 1 | 16, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.noa_1 = suspendResult; this.id_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.koa_1, this.moa_1.yk2(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 3; suspendResult = this.koa_1.co3(this.noa_1, this.loa_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var guestSession = suspendResult; this.koa_1.unx(guestSession); return guestSession; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function UstadAccountManager(settings, di) { Companion_getInstance_21(); this.pnv_1 = settings; this.qnv_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = this.qnv_1; // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(CreateNewLocalAccountUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.unv_1 = Instance(this_0, tmp$ret$0, null).b5d(this, createNewLocalAccountUseCase$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_1 = this.qnv_1; // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.vnv_1 = Instance(this_1, tmp$ret$2, null).b5d(this, httpClient$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_2 = this.qnv_1; // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.wnv_1 = Instance(this_2, tmp$ret$4, null).b5d(this, json$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call var this_3 = this.qnv_1; // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.xnv_1 = Instance(this_3, tmp$ret$6, null).b5d(this, apiUrlConfig$factory()); this.ynv_1 = atomic$boolean$1(false); this.znv_1 = CoroutineScope_0(Dispatchers_getInstance().u12().mj(Job())); var tmp0_elvis_lhs = this.pnv_1.fm8('accountmgr.activeendpoint'); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg(this).eo6_1 : tmp0_elvis_lhs; var currentEndpointStr = tmp1_elvis_lhs == null ? 'http://localhost/' : tmp1_elvis_lhs; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_4 = get_direct(this.qnv_1); var context = new LearningSpace(currentEndpointStr); var tmp_7 = this_4.g58(); // Inline function 'org.kodein.di.diContext' call var tmp_8 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var tmp$ret$9 = tmp_8.i57(tmp$ret$8, context); var tmp_10 = tmp_7.d58(tmp$ret$9).g58(); // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$11 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); var currentDb = tmp_10.e58(tmp$ret$11, 1); var tmp2_safe_receiver = this.pnv_1.fm8('accountmgr.activesession'); var tmp_12; if (tmp2_safe_receiver == null) { tmp_12 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.' call // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_5 = _get_json__d8whur(this); // Inline function 'kotlinx.serialization.serializer' call var this_6 = this_5.u45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_7 = serializer(this_6, createKType(getKClass(UserSessionWithPersonAndLearningSpace), arrayOf([]), true)); var tmp$ret$14 = isInterface(this_7, KSerializer) ? this_7 : THROW_CCE(); tmp_12 = this_5.t45(tmp$ret$14, tmp2_safe_receiver); } var tmp3_elvis_lhs = tmp_12; var initUserSession = tmp3_elvis_lhs == null ? makeNewTempGuestSession(this, currentEndpointStr, currentDb) : tmp3_elvis_lhs; this.rnv_1 = MutableStateFlow(initUserSession); var tmp4_safe_receiver = this.pnv_1.fm8('accountmgr.endpointswithsessions'); var tmp_13; if (tmp4_safe_receiver == null) { tmp_13 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.' call tmp_13 = _get_json__d8whur(this).t45(ListSerializer(serializer_0(StringCompanionObject_instance)), tmp4_safe_receiver); } var tmp5_elvis_lhs = tmp_13; var initEndpoints = tmp5_elvis_lhs == null ? listOf_0(currentEndpointStr) : tmp5_elvis_lhs; var tmp_14 = this; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(initEndpoints, 10)); var tmp0_iterator = initEndpoints.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager.' call var tmp$ret$20 = new LearningSpace(item); destination.i1(tmp$ret$20); } tmp_14.snv_1 = MutableStateFlow(destination); this.tnv_1 = MutableStateFlow(listOf_0(initUserSession)); launch(this.znv_1, VOID, VOID, UstadAccountManager$slambda_0(this, null)); launch(this.znv_1, VOID, VOID, UstadAccountManager$slambda_2(this, null)); } protoOf(UstadAccountManager).unx = function (value) { this.rnv_1.y1k(value); // Inline function 'kotlinx.serialization.encodeToString' call var this_0 = _get_json__d8whur(this); // Inline function 'kotlinx.serialization.serializer' call var this_1 = this_0.u45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_2 = serializer(this_1, createKType(getKClass(UserSessionWithPersonAndLearningSpace), arrayOf([]), false)); var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(); var activeAccountJson = this_0.s45(tmp$ret$1, value); // Inline function 'com.russhwolf.settings.set' call var this_3 = this.pnv_1; var key = 'accountmgr.activesession'; this_3.em8(key, activeAccountJson); // Inline function 'com.russhwolf.settings.set' call var this_4 = this.pnv_1; var key_0 = 'accountmgr.activeendpoint'; var value_0 = value.vnu_1.cnu_1; this_4.em8(key_0, value_0); }; protoOf(UstadAccountManager).aoa = function () { return this.rnv_1.t2(); }; protoOf(UstadAccountManager).ooa = function () { return asStateFlow(this.rnv_1); }; protoOf(UstadAccountManager).poa = function () { return this.rnv_1.t2().ynu(); }; protoOf(UstadAccountManager).qoa = function () { return asStateFlow(this.tnv_1); }; protoOf(UstadAccountManager).roa = function () { return this.rnv_1.t2().vnu_1; }; protoOf(UstadAccountManager).boa = function (endpointFilter, $completion) { var tmp = new $activeSessionsListCOROUTINE$2(this, endpointFilter, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager).soa = function (maxDateOfBirth, endpointFilter, $completion) { var tmp = new $activeSessionCountCOROUTINE$3(this, maxDateOfBirth, endpointFilter, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager).toa = function (maxDateOfBirth, endpointFilter, $completion, $super) { maxDateOfBirth = maxDateOfBirth === VOID ? new Long(0, 0) : maxDateOfBirth; var tmp; if (endpointFilter === VOID) { var tmp_0 = UstadAccountManager$activeSessionCount$lambda; tmp = new sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0(tmp_0); } else { tmp = endpointFilter; } endpointFilter = tmp; return $super === VOID ? this.soa(maxDateOfBirth, endpointFilter, $completion) : $super.soa.call(this, maxDateOfBirth, endpointFilter, $completion); }; protoOf(UstadAccountManager).uoa = function (learningSpaceUrl, passkeyResult, person, personPicture, $completion) { var tmp = Dispatchers_getInstance().q12_1; return withContext(tmp, UstadAccountManager$registerWithPasskey$slambda_0(learningSpaceUrl, this, passkeyResult, person, null), $completion); }; protoOf(UstadAccountManager).voa = function (person, password, learningSpaceUrl, accountRegisterOptions, $completion) { var tmp = Dispatchers_getInstance().q12_1; return withContext(tmp, UstadAccountManager$register$slambda_0(this, learningSpaceUrl, accountRegisterOptions, person, password, null), $completion); }; protoOf(UstadAccountManager).woa = function (person, password, learningSpaceUrl, accountRegisterOptions, $completion, $super) { accountRegisterOptions = accountRegisterOptions === VOID ? new AccountRegisterOptions() : accountRegisterOptions; return $super === VOID ? this.voa(person, password, learningSpaceUrl, accountRegisterOptions, $completion) : $super.voa.call(this, person, password, learningSpaceUrl, accountRegisterOptions, $completion); }; protoOf(UstadAccountManager).co3 = function (person, learningSpaceUrl, password, $completion) { var tmp = new $addSessionCOROUTINE$4(this, person, learningSpaceUrl, password, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager).xoa = function (session, endStatus, endReason, $completion) { var tmp = new $endSessionCOROUTINE$6(this, session, endStatus, endReason, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadAccountManager).yoa = function (session, endStatus, endReason, $completion, $super) { var tmp; if (endStatus === VOID) { tmp = 4; } else { tmp = endStatus; } endStatus = tmp; var tmp_0; if (endReason === VOID) { tmp_0 = 1; } else { tmp_0 = endReason; } endReason = tmp_0; return $super === VOID ? this.xoa(session, endStatus, endReason, $completion) : $super.xoa.call(this, session, endStatus, endReason, $completion); }; protoOf(UstadAccountManager).zoa = function (passkeyWebAuthNResponse, currentServerUrl, $completion) { var tmp = Dispatchers_getInstance().q12_1; return withContext(tmp, UstadAccountManager$loginWithPasskey$slambda_0(this, currentServerUrl, passkeyWebAuthNResponse, null), $completion); }; protoOf(UstadAccountManager).aob = function (username, password, endpointUrl, maxDateOfBirth, dontSetCurrentSession, $completion) { var tmp = Dispatchers_getInstance().q12_1; return withContext(tmp, UstadAccountManager$login$slambda_0(this, endpointUrl, username, password, maxDateOfBirth, dontSetCurrentSession, null), $completion); }; protoOf(UstadAccountManager).bob = function (learningSpaceUrl, $completion) { var tmp = new $startGuestSessionCOROUTINE$9(this, learningSpaceUrl, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function createNewLocalAccountUseCase$factory() { return getPropertyCallableRef('createNewLocalAccountUseCase', 1, KProperty1, function (receiver) { return _get_createNewLocalAccountUseCase__gbdxzu(receiver); }, null); } function httpClient$factory() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc(receiver); }, null); } function json$factory() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return _get_json__d8whur(receiver); }, null); } function apiUrlConfig$factory() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg(receiver); }, null); } function createNewLocalAccountUseCase$factory_0() { return getPropertyCallableRef('createNewLocalAccountUseCase', 1, KProperty1, function (receiver) { return _get_createNewLocalAccountUseCase__gbdxzu(receiver); }, null); } function httpClient$factory_0() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc(receiver); }, null); } function json$factory_0() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return _get_json__d8whur(receiver); }, null); } function apiUrlConfig$factory_0() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg(receiver); }, null); } function Companion_4() { this.cob_1 = 101; } var Companion_instance_52; function Companion_getInstance_22() { return Companion_instance_52; } function Companion_5() { } protoOf(Companion_5).o4r = function () { return AnchorSerializer_getInstance(); }; var Companion_instance_53; function Companion_getInstance_23() { return Companion_instance_53; } function Anchor(content, href) { content = content === VOID ? '' : content; href = href === VOID ? '' : href; this.dob_1 = content; this.eob_1 = href; } function deserializeDynamic($this, reader) { var href = reader.n7d(null, 'href'); // Inline function 'kotlin.text.trim' call var this_0 = xhtmlContentToText(reader); var text = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); return new Anchor(text, href == null ? '' : href); } function AnchorSerializer() { AnchorSerializer_instance = this; this.fob_1 = buildClassSerialDescriptor('a', []); } protoOf(AnchorSerializer).r44 = function () { return this.fob_1; }; protoOf(AnchorSerializer).t44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic(this, decoder.ulf()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.fob_1; var composite = decoder.j48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.AnchorSerializer.deserialize.' call var result = composite.w48(AnchorSerializer_getInstance().fob_1, 0, Companion_instance_53.o4r()); composite.k48(descriptor); tmp = result; } return tmp; }; protoOf(AnchorSerializer).gob = function (encoder, value) { encoder.a4a(Companion_instance_53.o4r(), value); }; protoOf(AnchorSerializer).s44 = function (encoder, value) { return this.gob(encoder, value instanceof Anchor ? value : THROW_CCE()); }; var AnchorSerializer_instance; function AnchorSerializer_getInstance() { if (AnchorSerializer_instance == null) new AnchorSerializer(); return AnchorSerializer_instance; } function Companion_6() { } protoOf(Companion_6).o4r = function () { return BodySerializer_instance; }; var Companion_instance_54; function Companion_getInstance_24() { return Companion_instance_54; } function Body(navigationElements) { this.hob_1 = navigationElements; } function BodySerializer() { } protoOf(BodySerializer).r44 = function () { return buildClassSerialDescriptor('body', []); }; protoOf(BodySerializer).t44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = this.iob(decoder, decoder.ulf()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.r44(); var composite = decoder.j48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.BodySerializer.deserialize.' call var result = composite.w48(BodySerializer_instance.r44(), 0, Companion_instance_54.o4r()); composite.k48(descriptor); tmp = result; } return tmp; }; protoOf(BodySerializer).iob = function (decoder, reader) { var xml = this.job(decoder); // Inline function 'kotlin.collections.mutableListOf' call var navElementList = ArrayList_init_$Create$(); // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.r44(); var composite = decoder.j48(descriptor); while (!(reader.e().equals(EventType_END_ELEMENT_getInstance()) ? reader.dc().sl9() === 'body' : false)) { if (reader.bl6().equals(EventType_START_ELEMENT_getInstance()) ? reader.tl5() === 'nav' : false) { // Inline function 'kotlin.collections.plusAssign' call var element = xml.hlk(Companion_instance_56.o4r(), reader); navElementList.i1(element); } } var result = Unit_instance; composite.k48(descriptor); return new Body(toList(navElementList)); }; protoOf(BodySerializer).kob = function (encoder, value) { encoder.a4a(Companion_instance_54.o4r(), value); }; protoOf(BodySerializer).s44 = function (encoder, value) { return this.kob(encoder, value instanceof Body ? value : THROW_CCE()); }; protoOf(BodySerializer).job = function (decoder) { return (isInterface(decoder, XmlInput) ? decoder : THROW_CCE()).dli(); }; var BodySerializer_instance; function BodySerializer_getInstance() { return BodySerializer_instance; } function Companion_7() { } var Companion_instance_55; function Companion_getInstance_25() { return Companion_instance_55; } function $serializer_2() { $serializer_instance_2 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.ListItem', this, 3); tmp0_serialDesc.u4f('anchor', true); tmp0_serialDesc.u4f('span', true); tmp0_serialDesc.u4f('orderedList', true); tmp0_serialDesc.w4f(new XmlSerialName('li', 'http://www.w3.org/1999/xhtml')); this.lob_1 = tmp0_serialDesc; } protoOf($serializer_2).r44 = function () { return this.lob_1; }; protoOf($serializer_2).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(AnchorSerializer_getInstance()), get_nullable(SpanSerializer_getInstance()), get_nullable($serializer_getInstance_17())]; }; protoOf($serializer_2).t44 = function (decoder) { var tmp0_desc = this.lob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.j48(tmp0_desc); if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.x48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.x48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.x48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.x48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return ListItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_2).mob = function (encoder, value) { var tmp0_desc = this.lob_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.nob_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, AnchorSerializer_getInstance(), value.nob_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.oob_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, SpanSerializer_getInstance(), value.oob_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.pob_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, $serializer_getInstance_17(), value.pob_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_2).s44 = function (encoder, value) { return this.mob(encoder, value instanceof ListItem ? value : THROW_CCE()); }; var $serializer_instance_2; function $serializer_getInstance_14() { if ($serializer_instance_2 == null) new $serializer_2(); return $serializer_instance_2; } function ListItem_init_$Init$(seen1, anchor, span, orderedList, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_14().lob_1); } if (0 === (seen1 & 1)) $this.nob_1 = null; else $this.nob_1 = anchor; if (0 === (seen1 & 2)) $this.oob_1 = null; else $this.oob_1 = span; if (0 === (seen1 & 4)) $this.pob_1 = null; else $this.pob_1 = orderedList; return $this; } function ListItem_init_$Create$(seen1, anchor, span, orderedList, serializationConstructorMarker) { return ListItem_init_$Init$(seen1, anchor, span, orderedList, serializationConstructorMarker, objectCreate(protoOf(ListItem))); } function ListItem(anchor, span, orderedList) { anchor = anchor === VOID ? null : anchor; span = span === VOID ? null : span; orderedList = orderedList === VOID ? null : orderedList; this.nob_1 = anchor; this.oob_1 = span; this.pob_1 = orderedList; } function Companion_8() { } protoOf(Companion_8).o4r = function () { return $serializer_getInstance_15(); }; var Companion_instance_56; function Companion_getInstance_26() { return Companion_instance_56; } function $serializer_3() { $serializer_instance_3 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavElement', this, 2); tmp0_serialDesc.u4f('epubType', true); tmp0_serialDesc.v4f(new XmlSerialName('type', 'http://www.idpf.org/2007/ops')); tmp0_serialDesc.u4f('orderedList', false); tmp0_serialDesc.w4f(new XmlSerialName('nav', 'http://www.w3.org/1999/xhtml')); this.qob_1 = tmp0_serialDesc; } protoOf($serializer_3).r44 = function () { return this.qob_1; }; protoOf($serializer_3).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), $serializer_getInstance_17()]; }; protoOf($serializer_3).t44 = function (decoder) { var tmp0_desc = this.qob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return NavElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_3).rob = function (encoder, value) { var tmp0_desc = this.qob_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.sob_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.sob_1); } tmp1_output.z49(tmp0_desc, 1, $serializer_getInstance_17(), value.tob_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_3).s44 = function (encoder, value) { return this.rob(encoder, value instanceof NavElement ? value : THROW_CCE()); }; var $serializer_instance_3; function $serializer_getInstance_15() { if ($serializer_instance_3 == null) new $serializer_3(); return $serializer_instance_3; } function NavElement_init_$Init$(seen1, epubType, orderedList, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_15().qob_1); } if (0 === (seen1 & 1)) $this.sob_1 = null; else $this.sob_1 = epubType; $this.tob_1 = orderedList; return $this; } function NavElement_init_$Create$(seen1, epubType, orderedList, serializationConstructorMarker) { return NavElement_init_$Init$(seen1, epubType, orderedList, serializationConstructorMarker, objectCreate(protoOf(NavElement))); } function NavElement() { } function Companion_9() { this.uob_1 = 'http://www.w3.org/1999/xhtml'; this.vob_1 = 'http://www.idpf.org/2007/ops'; } var Companion_instance_57; function Companion_getInstance_27() { return Companion_instance_57; } function $serializer_4() { $serializer_instance_4 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavigationDocument', this, 1); tmp0_serialDesc.u4f('bodyElement', false); tmp0_serialDesc.w4f(new XmlSerialName('html', 'http://www.w3.org/1999/xhtml')); this.wob_1 = tmp0_serialDesc; } protoOf($serializer_4).r44 = function () { return this.wob_1; }; protoOf($serializer_4).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BodySerializer_instance]; }; protoOf($serializer_4).t44 = function (decoder) { var tmp0_desc = this.wob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return NavigationDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_4).xob = function (encoder, value) { var tmp0_desc = this.wob_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, BodySerializer_instance, value.yob_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_4).s44 = function (encoder, value) { return this.xob(encoder, value instanceof NavigationDocument ? value : THROW_CCE()); }; var $serializer_instance_4; function $serializer_getInstance_16() { if ($serializer_instance_4 == null) new $serializer_4(); return $serializer_instance_4; } function NavigationDocument_init_$Init$(seen1, bodyElement, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_16().wob_1); } $this.yob_1 = bodyElement; return $this; } function NavigationDocument_init_$Create$(seen1, bodyElement, serializationConstructorMarker) { return NavigationDocument_init_$Init$(seen1, bodyElement, serializationConstructorMarker, objectCreate(protoOf(NavigationDocument))); } function NavigationDocument(bodyElement) { this.yob_1 = bodyElement; } function Companion_10() { Companion_instance_58 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.zob_1 = [new ArrayListSerializer($serializer_getInstance_14())]; } var Companion_instance_58; function Companion_getInstance_28() { if (Companion_instance_58 == null) new Companion_10(); return Companion_instance_58; } function $serializer_5() { $serializer_instance_5 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.OrderedList', this, 1); tmp0_serialDesc.u4f('listItems', false); tmp0_serialDesc.w4f(new XmlSerialName('ol', 'http://www.w3.org/1999/xhtml')); this.aoc_1 = tmp0_serialDesc; } protoOf($serializer_5).r44 = function () { return this.aoc_1; }; protoOf($serializer_5).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_28().zob_1[0]]; }; protoOf($serializer_5).t44 = function (decoder) { var tmp0_desc = this.aoc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); var tmp6_cached = Companion_getInstance_28().zob_1; if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return OrderedList_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_5).boc = function (encoder, value) { var tmp0_desc = this.aoc_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_28().zob_1; tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.coc_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_5).s44 = function (encoder, value) { return this.boc(encoder, value instanceof OrderedList ? value : THROW_CCE()); }; var $serializer_instance_5; function $serializer_getInstance_17() { if ($serializer_instance_5 == null) new $serializer_5(); return $serializer_instance_5; } function OrderedList_init_$Init$(seen1, listItems, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_17().aoc_1); } $this.coc_1 = listItems; return $this; } function OrderedList_init_$Create$(seen1, listItems, serializationConstructorMarker) { return OrderedList_init_$Init$(seen1, listItems, serializationConstructorMarker, objectCreate(protoOf(OrderedList))); } function OrderedList() { } function Companion_11() { } protoOf(Companion_11).o4r = function () { return SpanSerializer_getInstance(); }; var Companion_instance_59; function Companion_getInstance_29() { return Companion_instance_59; } function Span(content) { content = content === VOID ? '' : content; this.doc_1 = content; } function deserializeDynamic_0($this, reader) { // Inline function 'kotlin.text.trim' call var this_0 = xhtmlContentToText(reader); var text = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); return new Span(text); } function SpanSerializer() { SpanSerializer_instance = this; this.eoc_1 = buildClassSerialDescriptor('span', []); } protoOf(SpanSerializer).r44 = function () { return this.eoc_1; }; protoOf(SpanSerializer).t44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic_0(this, decoder.ulf()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = AnchorSerializer_getInstance().fob_1; var composite = decoder.j48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.SpanSerializer.deserialize.' call var result = composite.w48(AnchorSerializer_getInstance().fob_1, 0, Companion_instance_59.o4r()); composite.k48(descriptor); tmp = result; } return tmp; }; protoOf(SpanSerializer).foc = function (encoder, value) { encoder.a4a(Companion_instance_59.o4r(), value); }; protoOf(SpanSerializer).s44 = function (encoder, value) { return this.foc(encoder, value instanceof Span ? value : THROW_CCE()); }; var SpanSerializer_instance; function SpanSerializer_getInstance() { if (SpanSerializer_instance == null) new SpanSerializer(); return SpanSerializer_instance; } function $serializer_6() { $serializer_instance_6 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Content', this, 2); tmp0_serialDesc.u4f('id', true); tmp0_serialDesc.u4f('src', false); tmp0_serialDesc.w4f(new XmlSerialName('content', 'http://www.daisy.org/z3986/2005/ncx/')); this.goc_1 = tmp0_serialDesc; } protoOf($serializer_6).r44 = function () { return this.goc_1; }; protoOf($serializer_6).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_6).t44 = function (decoder) { var tmp0_desc = this.goc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return Content_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_6).hoc = function (encoder, value) { var tmp0_desc = this.goc_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.ioc_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.ioc_1); } tmp1_output.x49(tmp0_desc, 1, value.joc_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_6).s44 = function (encoder, value) { return this.hoc(encoder, value instanceof Content ? value : THROW_CCE()); }; var $serializer_instance_6; function $serializer_getInstance_18() { if ($serializer_instance_6 == null) new $serializer_6(); return $serializer_instance_6; } function Content_init_$Init$(seen1, id, src, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_18().goc_1); } if (0 === (seen1 & 1)) $this.ioc_1 = null; else $this.ioc_1 = id; $this.joc_1 = src; return $this; } function Content_init_$Create$(seen1, id, src, serializationConstructorMarker) { return Content_init_$Init$(seen1, id, src, serializationConstructorMarker, objectCreate(protoOf(Content))); } function Content() { } function Companion_12() { Companion_instance_60 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.koc_1 = [new ArrayListSerializer($serializer_getInstance_25())]; } var Companion_instance_60; function Companion_getInstance_30() { if (Companion_instance_60 == null) new Companion_12(); return Companion_instance_60; } function $serializer_7() { $serializer_instance_7 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.DocTitle', this, 1); tmp0_serialDesc.u4f('texts', false); tmp0_serialDesc.w4f(new XmlSerialName('docTitle', 'http://www.daisy.org/z3986/2005/ncx/')); this.loc_1 = tmp0_serialDesc; } protoOf($serializer_7).r44 = function () { return this.loc_1; }; protoOf($serializer_7).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_30().koc_1[0]]; }; protoOf($serializer_7).t44 = function (decoder) { var tmp0_desc = this.loc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); var tmp6_cached = Companion_getInstance_30().koc_1; if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return DocTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_7).moc = function (encoder, value) { var tmp0_desc = this.loc_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_30().koc_1; tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.noc_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_7).s44 = function (encoder, value) { return this.moc(encoder, value instanceof DocTitle ? value : THROW_CCE()); }; var $serializer_instance_7; function $serializer_getInstance_19() { if ($serializer_instance_7 == null) new $serializer_7(); return $serializer_instance_7; } function DocTitle_init_$Init$(seen1, texts, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_19().loc_1); } $this.noc_1 = texts; return $this; } function DocTitle_init_$Create$(seen1, texts, serializationConstructorMarker) { return DocTitle_init_$Init$(seen1, texts, serializationConstructorMarker, objectCreate(protoOf(DocTitle))); } function DocTitle() { } function Companion_13() { Companion_instance_61 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.ooc_1 = [new ArrayListSerializer($serializer_getInstance_35())]; } var Companion_instance_61; function Companion_getInstance_31() { if (Companion_instance_61 == null) new Companion_13(); return Companion_instance_61; } function $serializer_8() { $serializer_instance_8 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Head', this, 1); tmp0_serialDesc.u4f('metadata', true); tmp0_serialDesc.w4f(new XmlSerialName('head', 'http://www.daisy.org/z3986/2005/ncx/')); this.poc_1 = tmp0_serialDesc; } protoOf($serializer_8).r44 = function () { return this.poc_1; }; protoOf($serializer_8).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_31().ooc_1[0]]; }; protoOf($serializer_8).t44 = function (decoder) { var tmp0_desc = this.poc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); var tmp6_cached = Companion_getInstance_31().ooc_1; if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return Head_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_8).qoc = function (encoder, value) { var tmp0_desc = this.poc_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_31().ooc_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !equals(value.roc_1, emptyList())) { tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.roc_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_8).s44 = function (encoder, value) { return this.qoc(encoder, value instanceof Head ? value : THROW_CCE()); }; var $serializer_instance_8; function $serializer_getInstance_20() { if ($serializer_instance_8 == null) new $serializer_8(); return $serializer_instance_8; } function Head_init_$Init$(seen1, metadata, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_20().poc_1); } if (0 === (seen1 & 1)) $this.roc_1 = emptyList(); else $this.roc_1 = metadata; return $this; } function Head_init_$Create$(seen1, metadata, serializationConstructorMarker) { return Head_init_$Init$(seen1, metadata, serializationConstructorMarker, objectCreate(protoOf(Head))); } function Head(metadata) { Companion_getInstance_31(); metadata = metadata === VOID ? emptyList() : metadata; this.roc_1 = metadata; } function $serializer_9() { $serializer_instance_9 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavLabel', this, 1); tmp0_serialDesc.u4f('text', false); tmp0_serialDesc.w4f(new XmlSerialName('navLabel', 'http://www.daisy.org/z3986/2005/ncx/')); this.soc_1 = tmp0_serialDesc; } protoOf($serializer_9).r44 = function () { return this.soc_1; }; protoOf($serializer_9).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_25()]; }; protoOf($serializer_9).t44 = function (decoder) { var tmp0_desc = this.soc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return NavLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_9).toc = function (encoder, value) { var tmp0_desc = this.soc_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance_25(), value.uoc_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_9).s44 = function (encoder, value) { return this.toc(encoder, value instanceof NavLabel ? value : THROW_CCE()); }; var $serializer_instance_9; function $serializer_getInstance_21() { if ($serializer_instance_9 == null) new $serializer_9(); return $serializer_instance_9; } function NavLabel_init_$Init$(seen1, text, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_21().soc_1); } $this.uoc_1 = text; return $this; } function NavLabel_init_$Create$(seen1, text, serializationConstructorMarker) { return NavLabel_init_$Init$(seen1, text, serializationConstructorMarker, objectCreate(protoOf(NavLabel))); } function NavLabel() { } function Companion_14() { Companion_instance_62 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.voc_1 = [new ArrayListSerializer($serializer_getInstance_23())]; } var Companion_instance_62; function Companion_getInstance_32() { if (Companion_instance_62 == null) new Companion_14(); return Companion_instance_62; } function $serializer_10() { $serializer_instance_10 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavMap', this, 1); tmp0_serialDesc.u4f('navPoints', false); tmp0_serialDesc.w4f(new XmlSerialName('navMap', 'http://www.daisy.org/z3986/2005/ncx/')); this.woc_1 = tmp0_serialDesc; } protoOf($serializer_10).r44 = function () { return this.woc_1; }; protoOf($serializer_10).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_32().voc_1[0]]; }; protoOf($serializer_10).t44 = function (decoder) { var tmp0_desc = this.woc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); var tmp6_cached = Companion_getInstance_32().voc_1; if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return NavMap_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_10).xoc = function (encoder, value) { var tmp0_desc = this.woc_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_32().voc_1; tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.yoc_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_10).s44 = function (encoder, value) { return this.xoc(encoder, value instanceof NavMap ? value : THROW_CCE()); }; var $serializer_instance_10; function $serializer_getInstance_22() { if ($serializer_instance_10 == null) new $serializer_10(); return $serializer_instance_10; } function NavMap_init_$Init$(seen1, navPoints, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_22().woc_1); } $this.yoc_1 = navPoints; return $this; } function NavMap_init_$Create$(seen1, navPoints, serializationConstructorMarker) { return NavMap_init_$Init$(seen1, navPoints, serializationConstructorMarker, objectCreate(protoOf(NavMap))); } function NavMap() { } function Companion_15() { Companion_instance_63 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.zoc_1 = [new ArrayListSerializer($serializer_getInstance_21()), null, null, null]; } var Companion_instance_63; function Companion_getInstance_33() { if (Companion_instance_63 == null) new Companion_15(); return Companion_instance_63; } function $serializer_11() { $serializer_instance_11 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavPoint', this, 4); tmp0_serialDesc.u4f('navLabels', false); tmp0_serialDesc.u4f('content', false); tmp0_serialDesc.u4f('id', false); tmp0_serialDesc.u4f('childPoints', false); tmp0_serialDesc.w4f(new XmlSerialName('navPoint', 'http://www.daisy.org/z3986/2005/ncx/')); this.aod_1 = tmp0_serialDesc; } protoOf($serializer_11).r44 = function () { return this.aod_1; }; protoOf($serializer_11).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_33().zoc_1[0], $serializer_getInstance_18(), StringSerializer_getInstance(), new ArrayListSerializer($serializer_getInstance_23())]; }; protoOf($serializer_11).t44 = function (decoder) { var tmp0_desc = this.aod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); var tmp9_cached = Companion_getInstance_33().zoc_1; if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.v48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.v48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.v48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.v48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return NavPoint_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_11).bod = function (encoder, value) { var tmp0_desc = this.aod_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_33().zoc_1; tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.cod_1); tmp1_output.z49(tmp0_desc, 1, $serializer_getInstance_18(), value.dod_1); tmp1_output.x49(tmp0_desc, 2, value.eod_1); tmp1_output.z49(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), value.fod_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_11).s44 = function (encoder, value) { return this.bod(encoder, value instanceof NavPoint ? value : THROW_CCE()); }; var $serializer_instance_11; function $serializer_getInstance_23() { if ($serializer_instance_11 == null) new $serializer_11(); return $serializer_instance_11; } function NavPoint_init_$Init$(seen1, navLabels, content, id, childPoints, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_23().aod_1); } $this.cod_1 = navLabels; $this.dod_1 = content; $this.eod_1 = id; $this.fod_1 = childPoints; return $this; } function NavPoint_init_$Create$(seen1, navLabels, content, id, childPoints, serializationConstructorMarker) { return NavPoint_init_$Init$(seen1, navLabels, content, id, childPoints, serializationConstructorMarker, objectCreate(protoOf(NavPoint))); } function NavPoint() { } function Companion_16() { this.god_1 = 'http://www.daisy.org/z3986/2005/ncx/'; this.hod_1 = 'application/x-dtbncx+xml'; } var Companion_instance_64; function Companion_getInstance_34() { return Companion_instance_64; } function $serializer_12() { $serializer_instance_12 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NcxDocument', this, 3); tmp0_serialDesc.u4f('head', false); tmp0_serialDesc.u4f('docTitle', false); tmp0_serialDesc.u4f('navMap', false); tmp0_serialDesc.w4f(new XmlSerialName('ncx', 'http://www.daisy.org/z3986/2005/ncx/')); this.iod_1 = tmp0_serialDesc; } protoOf($serializer_12).r44 = function () { return this.iod_1; }; protoOf($serializer_12).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_20(), $serializer_getInstance_19(), $serializer_getInstance_22()]; }; protoOf($serializer_12).t44 = function (decoder) { var tmp0_desc = this.iod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.j48(tmp0_desc); if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.v48(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.v48(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return NcxDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_12).jod = function (encoder, value) { var tmp0_desc = this.iod_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance_20(), value.kod_1); tmp1_output.z49(tmp0_desc, 1, $serializer_getInstance_19(), value.lod_1); tmp1_output.z49(tmp0_desc, 2, $serializer_getInstance_22(), value.mod_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_12).s44 = function (encoder, value) { return this.jod(encoder, value instanceof NcxDocument ? value : THROW_CCE()); }; var $serializer_instance_12; function $serializer_getInstance_24() { if ($serializer_instance_12 == null) new $serializer_12(); return $serializer_instance_12; } function NcxDocument_init_$Init$(seen1, head, docTitle, navMap, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_24().iod_1); } $this.kod_1 = head; $this.lod_1 = docTitle; $this.mod_1 = navMap; return $this; } function NcxDocument_init_$Create$(seen1, head, docTitle, navMap, serializationConstructorMarker) { return NcxDocument_init_$Init$(seen1, head, docTitle, navMap, serializationConstructorMarker, objectCreate(protoOf(NcxDocument))); } function NcxDocument(head, docTitle, navMap) { this.kod_1 = head; this.lod_1 = docTitle; this.mod_1 = navMap; } function Companion_17() { } var Companion_instance_65; function Companion_getInstance_35() { return Companion_instance_65; } function $serializer_13() { $serializer_instance_13 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Text', this, 1); tmp0_serialDesc.u4f('content', true); tmp0_serialDesc.v4f(new XmlValue()); tmp0_serialDesc.w4f(new XmlSerialName('text', 'http://www.daisy.org/z3986/2005/ncx/')); this.nod_1 = tmp0_serialDesc; } protoOf($serializer_13).r44 = function () { return this.nod_1; }; protoOf($serializer_13).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_13).t44 = function (decoder) { var tmp0_desc = this.nod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return Text_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_13).ood = function (encoder, value) { var tmp0_desc = this.nod_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.pod_1 === '')) { tmp1_output.x49(tmp0_desc, 0, value.pod_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_13).s44 = function (encoder, value) { return this.ood(encoder, value instanceof Text ? value : THROW_CCE()); }; var $serializer_instance_13; function $serializer_getInstance_25() { if ($serializer_instance_13 == null) new $serializer_13(); return $serializer_instance_13; } function Text_init_$Init$(seen1, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_25().nod_1); } if (0 === (seen1 & 1)) $this.pod_1 = ''; else $this.pod_1 = content; return $this; } function Text_init_$Create$(seen1, content, serializationConstructorMarker) { return Text_init_$Init$(seen1, content, serializationConstructorMarker, objectCreate(protoOf(Text))); } function Text(content) { content = content === VOID ? '' : content; this.pod_1 = content; } function Companion_18() { } var Companion_instance_66; function Companion_getInstance_36() { return Companion_instance_66; } function $serializer_14() { $serializer_instance_14 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcCreator', this, 2); tmp0_serialDesc.u4f('id', true); tmp0_serialDesc.u4f('content', true); tmp0_serialDesc.v4f(new XmlValue()); tmp0_serialDesc.w4f(new XmlSerialName('creator', 'http://purl.org/dc/elements/1.1/')); this.qod_1 = tmp0_serialDesc; } protoOf($serializer_14).r44 = function () { return this.qod_1; }; protoOf($serializer_14).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_14).t44 = function (decoder) { var tmp0_desc = this.qod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return DcCreator_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_14).rod = function (encoder, value) { var tmp0_desc = this.qod_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.sod_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.sod_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.tod_1 === '')) { tmp1_output.x49(tmp0_desc, 1, value.tod_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_14).s44 = function (encoder, value) { return this.rod(encoder, value instanceof DcCreator ? value : THROW_CCE()); }; var $serializer_instance_14; function $serializer_getInstance_26() { if ($serializer_instance_14 == null) new $serializer_14(); return $serializer_instance_14; } function DcCreator_init_$Init$(seen1, id, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_26().qod_1); } if (0 === (seen1 & 1)) $this.sod_1 = null; else $this.sod_1 = id; if (0 === (seen1 & 2)) $this.tod_1 = ''; else $this.tod_1 = content; return $this; } function DcCreator_init_$Create$(seen1, id, content, serializationConstructorMarker) { return DcCreator_init_$Init$(seen1, id, content, serializationConstructorMarker, objectCreate(protoOf(DcCreator))); } function DcCreator(id, content) { id = id === VOID ? null : id; content = content === VOID ? '' : content; this.sod_1 = id; this.tod_1 = content; } function Companion_19() { } var Companion_instance_67; function Companion_getInstance_37() { return Companion_instance_67; } function $serializer_15() { $serializer_instance_15 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcDescription', this, 2); tmp0_serialDesc.u4f('lang', true); tmp0_serialDesc.u4f('content', true); tmp0_serialDesc.v4f(new XmlValue()); tmp0_serialDesc.w4f(new XmlSerialName('description', 'http://purl.org/dc/elements/1.1/')); this.uod_1 = tmp0_serialDesc; } protoOf($serializer_15).r44 = function () { return this.uod_1; }; protoOf($serializer_15).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_15).t44 = function (decoder) { var tmp0_desc = this.uod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return DcDescription_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_15).vod = function (encoder, value) { var tmp0_desc = this.uod_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.wod_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.wod_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.xod_1 === '')) { tmp1_output.x49(tmp0_desc, 1, value.xod_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_15).s44 = function (encoder, value) { return this.vod(encoder, value instanceof DcDescription ? value : THROW_CCE()); }; var $serializer_instance_15; function $serializer_getInstance_27() { if ($serializer_instance_15 == null) new $serializer_15(); return $serializer_instance_15; } function DcDescription_init_$Init$(seen1, lang, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_27().uod_1); } if (0 === (seen1 & 1)) $this.wod_1 = null; else $this.wod_1 = lang; if (0 === (seen1 & 2)) $this.xod_1 = ''; else $this.xod_1 = content; return $this; } function DcDescription_init_$Create$(seen1, lang, content, serializationConstructorMarker) { return DcDescription_init_$Init$(seen1, lang, content, serializationConstructorMarker, objectCreate(protoOf(DcDescription))); } function DcDescription(lang, content) { lang = lang === VOID ? null : lang; content = content === VOID ? '' : content; this.wod_1 = lang; this.xod_1 = content; } function Companion_20() { } var Companion_instance_68; function Companion_getInstance_38() { return Companion_instance_68; } function $serializer_16() { $serializer_instance_16 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcIdentifier', this, 2); tmp0_serialDesc.u4f('id', true); tmp0_serialDesc.u4f('content', true); tmp0_serialDesc.v4f(new XmlValue()); tmp0_serialDesc.w4f(new XmlSerialName('identifier', 'http://purl.org/dc/elements/1.1/')); this.yod_1 = tmp0_serialDesc; } protoOf($serializer_16).r44 = function () { return this.yod_1; }; protoOf($serializer_16).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_16).t44 = function (decoder) { var tmp0_desc = this.yod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return DcIdentifier_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_16).zod = function (encoder, value) { var tmp0_desc = this.yod_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.aoe_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.aoe_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.boe_1 === '')) { tmp1_output.x49(tmp0_desc, 1, value.boe_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_16).s44 = function (encoder, value) { return this.zod(encoder, value instanceof DcIdentifier ? value : THROW_CCE()); }; var $serializer_instance_16; function $serializer_getInstance_28() { if ($serializer_instance_16 == null) new $serializer_16(); return $serializer_instance_16; } function DcIdentifier_init_$Init$(seen1, id, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_28().yod_1); } if (0 === (seen1 & 1)) $this.aoe_1 = null; else $this.aoe_1 = id; if (0 === (seen1 & 2)) $this.boe_1 = ''; else $this.boe_1 = content; return $this; } function DcIdentifier_init_$Create$(seen1, id, content, serializationConstructorMarker) { return DcIdentifier_init_$Init$(seen1, id, content, serializationConstructorMarker, objectCreate(protoOf(DcIdentifier))); } function DcIdentifier(id, content) { id = id === VOID ? null : id; content = content === VOID ? '' : content; this.aoe_1 = id; this.boe_1 = content; } function $serializer_17() { $serializer_instance_17 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcLanguage', this, 1); tmp0_serialDesc.u4f('content', false); tmp0_serialDesc.v4f(new XmlValue()); tmp0_serialDesc.w4f(new XmlSerialName('language', 'http://purl.org/dc/elements/1.1/')); this.coe_1 = tmp0_serialDesc; } protoOf($serializer_17).r44 = function () { return this.coe_1; }; protoOf($serializer_17).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_17).t44 = function (decoder) { var tmp0_desc = this.coe_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return DcLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_17).doe = function (encoder, value) { var tmp0_desc = this.coe_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.eoe_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_17).s44 = function (encoder, value) { return this.doe(encoder, value instanceof DcLanguage ? value : THROW_CCE()); }; var $serializer_instance_17; function $serializer_getInstance_29() { if ($serializer_instance_17 == null) new $serializer_17(); return $serializer_instance_17; } function DcLanguage_init_$Init$(seen1, content, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_29().coe_1); } $this.eoe_1 = content; return $this; } function DcLanguage_init_$Create$(seen1, content, serializationConstructorMarker) { return DcLanguage_init_$Init$(seen1, content, serializationConstructorMarker, objectCreate(protoOf(DcLanguage))); } function DcLanguage() { } function Companion_21() { } var Companion_instance_69; function Companion_getInstance_39() { return Companion_instance_69; } function $serializer_18() { $serializer_instance_18 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcTitle', this, 2); tmp0_serialDesc.u4f('lang', true); tmp0_serialDesc.v4f(new XmlSerialName(VOID, VOID, 'xml')); tmp0_serialDesc.u4f('content', true); tmp0_serialDesc.v4f(new XmlValue()); tmp0_serialDesc.w4f(new XmlSerialName('title', 'http://purl.org/dc/elements/1.1/')); this.foe_1 = tmp0_serialDesc; } protoOf($serializer_18).r44 = function () { return this.foe_1; }; protoOf($serializer_18).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_18).t44 = function (decoder) { var tmp0_desc = this.foe_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return DcTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_18).goe = function (encoder, value) { var tmp0_desc = this.foe_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.hoe_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.hoe_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.ioe_1 === '')) { tmp1_output.x49(tmp0_desc, 1, value.ioe_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_18).s44 = function (encoder, value) { return this.goe(encoder, value instanceof DcTitle ? value : THROW_CCE()); }; var $serializer_instance_18; function $serializer_getInstance_30() { if ($serializer_instance_18 == null) new $serializer_18(); return $serializer_instance_18; } function DcTitle_init_$Init$(seen1, lang, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_30().foe_1); } if (0 === (seen1 & 1)) $this.hoe_1 = null; else $this.hoe_1 = lang; if (0 === (seen1 & 2)) $this.ioe_1 = ''; else $this.ioe_1 = content; return $this; } function DcTitle_init_$Create$(seen1, lang, content, serializationConstructorMarker) { return DcTitle_init_$Init$(seen1, lang, content, serializationConstructorMarker, objectCreate(protoOf(DcTitle))); } function DcTitle(lang, content) { lang = lang === VOID ? null : lang; content = content === VOID ? '' : content; this.hoe_1 = lang; this.ioe_1 = content; } function $serializer_19() { $serializer_instance_19 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Item', this, 4); tmp0_serialDesc.u4f('id', false); tmp0_serialDesc.u4f('href', false); tmp0_serialDesc.u4f('properties', true); tmp0_serialDesc.u4f('mediaType', false); tmp0_serialDesc.v4f(new XmlSerialName('media-type')); tmp0_serialDesc.w4f(new XmlSerialName('item', 'http://www.idpf.org/2007/opf')); this.joe_1 = tmp0_serialDesc; } protoOf($serializer_19).r44 = function () { return this.joe_1; }; protoOf($serializer_19).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_19).t44 = function (decoder) { var tmp0_desc = this.joe_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return Item_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_19).koe = function (encoder, value) { var tmp0_desc = this.joe_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.loe_1); tmp1_output.x49(tmp0_desc, 1, value.moe_1); if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.noe_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.noe_1); } tmp1_output.x49(tmp0_desc, 3, value.ooe_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_19).s44 = function (encoder, value) { return this.koe(encoder, value instanceof Item ? value : THROW_CCE()); }; var $serializer_instance_19; function $serializer_getInstance_31() { if ($serializer_instance_19 == null) new $serializer_19(); return $serializer_instance_19; } function Item_init_$Init$(seen1, id, href, properties, mediaType, serializationConstructorMarker, $this) { if (!(11 === (11 & seen1))) { throwMissingFieldException(seen1, 11, $serializer_getInstance_31().joe_1); } $this.loe_1 = id; $this.moe_1 = href; if (0 === (seen1 & 4)) $this.noe_1 = null; else $this.noe_1 = properties; $this.ooe_1 = mediaType; return $this; } function Item_init_$Create$(seen1, id, href, properties, mediaType, serializationConstructorMarker) { return Item_init_$Init$(seen1, id, href, properties, mediaType, serializationConstructorMarker, objectCreate(protoOf(Item))); } function Item() { } function Companion_22() { } var Companion_instance_70; function Companion_getInstance_40() { return Companion_instance_70; } function $serializer_20() { $serializer_instance_20 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.ItemRef', this, 1); tmp0_serialDesc.u4f('idRef', true); tmp0_serialDesc.v4f(new XmlSerialName('idref')); tmp0_serialDesc.w4f(new XmlSerialName('itemref', 'http://www.idpf.org/2007/opf')); this.poe_1 = tmp0_serialDesc; } protoOf($serializer_20).r44 = function () { return this.poe_1; }; protoOf($serializer_20).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_20).t44 = function (decoder) { var tmp0_desc = this.poe_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return ItemRef_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_20).qoe = function (encoder, value) { var tmp0_desc = this.poe_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.roe_1 === '')) { tmp1_output.x49(tmp0_desc, 0, value.roe_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_20).s44 = function (encoder, value) { return this.qoe(encoder, value instanceof ItemRef ? value : THROW_CCE()); }; var $serializer_instance_20; function $serializer_getInstance_32() { if ($serializer_instance_20 == null) new $serializer_20(); return $serializer_instance_20; } function ItemRef_init_$Init$(seen1, idRef, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_32().poe_1); } if (0 === (seen1 & 1)) $this.roe_1 = ''; else $this.roe_1 = idRef; return $this; } function ItemRef_init_$Create$(seen1, idRef, serializationConstructorMarker) { return ItemRef_init_$Init$(seen1, idRef, serializationConstructorMarker, objectCreate(protoOf(ItemRef))); } function ItemRef(idRef) { idRef = idRef === VOID ? '' : idRef; this.roe_1 = idRef; } function Companion_23() { Companion_instance_71 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.soe_1 = [new ArrayListSerializer($serializer_getInstance_31())]; } var Companion_instance_71; function Companion_getInstance_41() { if (Companion_instance_71 == null) new Companion_23(); return Companion_instance_71; } function $serializer_21() { $serializer_instance_21 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Manifest', this, 1); tmp0_serialDesc.u4f('items', true); tmp0_serialDesc.w4f(new XmlSerialName('manifest', 'http://www.idpf.org/2007/opf')); this.toe_1 = tmp0_serialDesc; } protoOf($serializer_21).r44 = function () { return this.toe_1; }; protoOf($serializer_21).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_41().soe_1[0]]; }; protoOf($serializer_21).t44 = function (decoder) { var tmp0_desc = this.toe_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); var tmp6_cached = Companion_getInstance_41().soe_1; if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return Manifest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_21).uoe = function (encoder, value) { var tmp0_desc = this.toe_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_41().soe_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !equals(value.voe_1, emptyList())) { tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.voe_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_21).s44 = function (encoder, value) { return this.uoe(encoder, value instanceof Manifest ? value : THROW_CCE()); }; var $serializer_instance_21; function $serializer_getInstance_33() { if ($serializer_instance_21 == null) new $serializer_21(); return $serializer_instance_21; } function Manifest_init_$Init$(seen1, items, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_33().toe_1); } if (0 === (seen1 & 1)) $this.voe_1 = emptyList(); else $this.voe_1 = items; return $this; } function Manifest_init_$Create$(seen1, items, serializationConstructorMarker) { return Manifest_init_$Init$(seen1, items, serializationConstructorMarker, objectCreate(protoOf(Manifest))); } function Manifest(items) { Companion_getInstance_41(); items = items === VOID ? emptyList() : items; this.voe_1 = items; } function Companion_24() { } var Companion_instance_72; function Companion_getInstance_42() { return Companion_instance_72; } function $serializer_22() { $serializer_instance_22 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Meta', this, 2); tmp0_serialDesc.u4f('name', true); tmp0_serialDesc.u4f('content', true); tmp0_serialDesc.w4f(new XmlSerialName('meta', 'http://www.idpf.org/2007/opf')); this.woe_1 = tmp0_serialDesc; } protoOf($serializer_22).r44 = function () { return this.woe_1; }; protoOf($serializer_22).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_22).t44 = function (decoder) { var tmp0_desc = this.woe_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return Meta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_22).xoe = function (encoder, value) { var tmp0_desc = this.woe_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.yoe_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.yoe_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.zoe_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, StringSerializer_getInstance(), value.zoe_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_22).s44 = function (encoder, value) { return this.xoe(encoder, value instanceof Meta ? value : THROW_CCE()); }; var $serializer_instance_22; function $serializer_getInstance_34() { if ($serializer_instance_22 == null) new $serializer_22(); return $serializer_instance_22; } function Meta_init_$Init$(seen1, name, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_34().woe_1); } if (0 === (seen1 & 1)) $this.yoe_1 = null; else $this.yoe_1 = name; if (0 === (seen1 & 2)) $this.zoe_1 = null; else $this.zoe_1 = content; return $this; } function Meta_init_$Create$(seen1, name, content, serializationConstructorMarker) { return Meta_init_$Init$(seen1, name, content, serializationConstructorMarker, objectCreate(protoOf(Meta))); } function Meta(name, content) { name = name === VOID ? null : name; content = content === VOID ? null : content; this.yoe_1 = name; this.zoe_1 = content; } function Companion_25() { Companion_instance_73 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.aof_1 = [new ArrayListSerializer($serializer_getInstance_30()), new ArrayListSerializer($serializer_getInstance_26()), new ArrayListSerializer($serializer_getInstance_29()), new ArrayListSerializer($serializer_getInstance_27()), new ArrayListSerializer($serializer_getInstance_28()), new ArrayListSerializer($serializer_getInstance_34())]; } var Companion_instance_73; function Companion_getInstance_43() { if (Companion_instance_73 == null) new Companion_25(); return Companion_instance_73; } function $serializer_23() { $serializer_instance_23 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Metadata', this, 6); tmp0_serialDesc.u4f('titles', true); tmp0_serialDesc.u4f('creators', true); tmp0_serialDesc.u4f('languages', true); tmp0_serialDesc.u4f('descriptions', true); tmp0_serialDesc.u4f('identifiers', true); tmp0_serialDesc.u4f('metas', true); tmp0_serialDesc.w4f(new XmlSerialName('metadata', 'http://www.idpf.org/2007/opf')); this.bof_1 = tmp0_serialDesc; } protoOf($serializer_23).r44 = function () { return this.bof_1; }; protoOf($serializer_23).l4g = function () { var tmp0_cached = Companion_getInstance_43().aof_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [tmp0_cached[0], tmp0_cached[1], tmp0_cached[2], tmp0_cached[3], tmp0_cached[4], tmp0_cached[5]]; }; protoOf($serializer_23).t44 = function (decoder) { var tmp0_desc = this.bof_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.j48(tmp0_desc); var tmp11_cached = Companion_getInstance_43().aof_1; if (tmp10_input.y48()) { tmp4_local0 = tmp10_input.v48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.v48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.v48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.v48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.v48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.v48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.v48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.v48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.v48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.v48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.v48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.v48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.k48(tmp0_desc); return Metadata_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_23).cof = function (encoder, value) { var tmp0_desc = this.bof_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_43().aof_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !equals(value.dof_1, emptyList())) { tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.dof_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !equals(value.eof_1, emptyList())) { tmp1_output.z49(tmp0_desc, 1, tmp2_cached[1], value.eof_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !equals(value.fof_1, emptyList())) { tmp1_output.z49(tmp0_desc, 2, tmp2_cached[2], value.fof_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !equals(value.gof_1, emptyList())) { tmp1_output.z49(tmp0_desc, 3, tmp2_cached[3], value.gof_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !equals(value.hof_1, emptyList())) { tmp1_output.z49(tmp0_desc, 4, tmp2_cached[4], value.hof_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !equals(value.iof_1, emptyList())) { tmp1_output.z49(tmp0_desc, 5, tmp2_cached[5], value.iof_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_23).s44 = function (encoder, value) { return this.cof(encoder, value instanceof Metadata ? value : THROW_CCE()); }; var $serializer_instance_23; function $serializer_getInstance_35() { if ($serializer_instance_23 == null) new $serializer_23(); return $serializer_instance_23; } function Metadata_init_$Init$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_35().bof_1); } if (0 === (seen1 & 1)) $this.dof_1 = emptyList(); else $this.dof_1 = titles; if (0 === (seen1 & 2)) $this.eof_1 = emptyList(); else $this.eof_1 = creators; if (0 === (seen1 & 4)) $this.fof_1 = emptyList(); else $this.fof_1 = languages; if (0 === (seen1 & 8)) $this.gof_1 = emptyList(); else $this.gof_1 = descriptions; if (0 === (seen1 & 16)) $this.hof_1 = emptyList(); else $this.hof_1 = identifiers; if (0 === (seen1 & 32)) $this.iof_1 = emptyList(); else $this.iof_1 = metas; return $this; } function Metadata_init_$Create$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker) { return Metadata_init_$Init$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker, objectCreate(protoOf(Metadata))); } function Metadata(titles, creators, languages, descriptions, identifiers, metas) { Companion_getInstance_43(); titles = titles === VOID ? emptyList() : titles; creators = creators === VOID ? emptyList() : creators; languages = languages === VOID ? emptyList() : languages; descriptions = descriptions === VOID ? emptyList() : descriptions; identifiers = identifiers === VOID ? emptyList() : identifiers; metas = metas === VOID ? emptyList() : metas; this.dof_1 = titles; this.eof_1 = creators; this.fof_1 = languages; this.gof_1 = descriptions; this.hof_1 = identifiers; this.iof_1 = metas; } function Companion_26() { this.jof_1 = 'http://www.idpf.org/2007/opf'; this.kof_1 = 'http://purl.org/dc/elements/1.1/'; } protoOf(Companion_26).o4r = function () { return $serializer_getInstance_36(); }; var Companion_instance_74; function Companion_getInstance_44() { return Companion_instance_74; } function $serializer_24() { $serializer_instance_24 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.PackageDocument', this, 5); tmp0_serialDesc.u4f('version', true); tmp0_serialDesc.u4f('uniqueIdentifier', true); tmp0_serialDesc.v4f(new XmlSerialName('unique-identifier')); tmp0_serialDesc.u4f('metadata', true); tmp0_serialDesc.u4f('manifest', true); tmp0_serialDesc.u4f('spine', true); tmp0_serialDesc.w4f(new XmlSerialName('package', 'http://www.idpf.org/2007/opf')); this.lof_1 = tmp0_serialDesc; } protoOf($serializer_24).r44 = function () { return this.lof_1; }; protoOf($serializer_24).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), $serializer_getInstance_35(), $serializer_getInstance_33(), $serializer_getInstance_37()]; }; protoOf($serializer_24).t44 = function (decoder) { var tmp0_desc = this.lof_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.j48(tmp0_desc); if (tmp9_input.y48()) { tmp4_local0 = tmp9_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.v48(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.v48(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.v48(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.v48(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.v48(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.v48(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.k48(tmp0_desc); return PackageDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_24).mof = function (encoder, value) { var tmp0_desc = this.lof_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.nof_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.nof_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.oof_1 === '')) { tmp1_output.x49(tmp0_desc, 1, value.oof_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !equals(value.pof_1, new Metadata())) { tmp1_output.z49(tmp0_desc, 2, $serializer_getInstance_35(), value.pof_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !equals(value.qof_1, new Manifest())) { tmp1_output.z49(tmp0_desc, 3, $serializer_getInstance_33(), value.qof_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !equals(value.rof_1, new Spine())) { tmp1_output.z49(tmp0_desc, 4, $serializer_getInstance_37(), value.rof_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_24).s44 = function (encoder, value) { return this.mof(encoder, value instanceof PackageDocument ? value : THROW_CCE()); }; var $serializer_instance_24; function $serializer_getInstance_36() { if ($serializer_instance_24 == null) new $serializer_24(); return $serializer_instance_24; } function PackageDocument_init_$Init$(seen1, version, uniqueIdentifier, metadata, manifest, spine, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_36().lof_1); } if (0 === (seen1 & 1)) $this.nof_1 = null; else $this.nof_1 = version; if (0 === (seen1 & 2)) $this.oof_1 = ''; else $this.oof_1 = uniqueIdentifier; if (0 === (seen1 & 4)) $this.pof_1 = new Metadata(); else $this.pof_1 = metadata; if (0 === (seen1 & 8)) $this.qof_1 = new Manifest(); else $this.qof_1 = manifest; if (0 === (seen1 & 16)) $this.rof_1 = new Spine(); else $this.rof_1 = spine; return $this; } function PackageDocument_init_$Create$(seen1, version, uniqueIdentifier, metadata, manifest, spine, serializationConstructorMarker) { return PackageDocument_init_$Init$(seen1, version, uniqueIdentifier, metadata, manifest, spine, serializationConstructorMarker, objectCreate(protoOf(PackageDocument))); } function PackageDocument(version, uniqueIdentifier, metadata, manifest, spine) { version = version === VOID ? null : version; uniqueIdentifier = uniqueIdentifier === VOID ? '' : uniqueIdentifier; metadata = metadata === VOID ? new Metadata() : metadata; manifest = manifest === VOID ? new Manifest() : manifest; spine = spine === VOID ? new Spine() : spine; this.nof_1 = version; this.oof_1 = uniqueIdentifier; this.pof_1 = metadata; this.qof_1 = manifest; this.rof_1 = spine; } protoOf(PackageDocument).sof = function () { var whitespaceRegex = Regex_init_$Create$('\\s+'); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.qof_1.voe_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.coverItem.' call var tmp0_safe_receiver = element.noe_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.text.split' call tmp = whitespaceRegex.y9(tmp0_safe_receiver, 0); } var tmp1_safe_receiver = tmp; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a1('cover-image'); if (tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs) { tmp$ret$2 = element; break $l$block; } } tmp$ret$2 = null; } var tmp2_elvis_lhs_0 = tmp$ret$2; var tmp_0; if (tmp2_elvis_lhs_0 == null) { var tmp$ret$4; $l$block_0: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator_0 = this.pof_1.iof_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.coverItem.' call if (element_0.yoe_1 === 'cover') { tmp$ret$4 = element_0; break $l$block_0; } } tmp$ret$4 = null; } var tmp0_safe_receiver_0 = tmp$ret$4; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.zoe_1; var tmp_1; if (tmp1_safe_receiver_0 == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.coverItem.' call var tmp$ret$6; $l$block_1: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator_1 = this.qof_1.voe_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.coverItem..' call if (element_1.loe_1 === tmp1_safe_receiver_0) { tmp$ret$6 = element_1; break $l$block_1; } } tmp$ret$6 = null; } tmp_1 = tmp$ret$6; } tmp_0 = tmp_1; } else { tmp_0 = tmp2_elvis_lhs_0; } return tmp_0; }; protoOf(PackageDocument).tof = function () { var whiteSpaceRegex = Regex_init_$Create$('\\s+'); // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.qof_1.voe_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.tableOfContentItem.' call var tmp0_safe_receiver = element.noe_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.text.split' call tmp = whiteSpaceRegex.y9(tmp0_safe_receiver, 0); } var tmp1_safe_receiver = tmp; var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.tableOfContentItem..' call tmp_0 = tmp1_safe_receiver.a1('toc') ? true : tmp1_safe_receiver.a1('nav'); } var tmp2_elvis_lhs = tmp_0; if (tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs) { destination.i1(element); } } var tocCandidates = destination; var tmp0_safe_receiver_0 = this.rof_1.vof_1; var tmp_1; if (tmp0_safe_receiver_0 == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.tableOfContentItem.' call var tmp$ret$7; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator_0 = this.qof_1.voe_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.tableOfContentItem..' call if (element_0.loe_1 === tmp0_safe_receiver_0) { tmp$ret$7 = element_0; break $l$block; } } tmp$ret$7 = null; } var tmp0_safe_receiver_1 = tmp$ret$7; var tmp_2; if (tmp0_safe_receiver_1 == null) { tmp_2 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.tableOfContentItem..' call tmp_2 = listOf_0(tmp0_safe_receiver_1); } var tmp1_elvis_lhs = tmp_2; tmp_1 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; } var tmp1_elvis_lhs_0 = tmp_1; var spineNcxCandidate = tmp1_elvis_lhs_0 == null ? emptyList() : tmp1_elvis_lhs_0; var allTocCandidates = plus(tocCandidates, spineNcxCandidate); var tmp$ret$13; $l$block_0: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator_1 = allTocCandidates.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.contentformats.epub.opf.PackageDocument.tableOfContentItem.' call var tmp0_safe_receiver_2 = element_1.noe_1; var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : contains(tmp0_safe_receiver_2, 'nav'); if (tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1) { tmp$ret$13 = element_1; break $l$block_0; } } tmp$ret$13 = null; } var tmp2_elvis_lhs_0 = tmp$ret$13; return tmp2_elvis_lhs_0 == null ? firstOrNull(allTocCandidates) : tmp2_elvis_lhs_0; }; function Companion_27() { Companion_instance_75 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.wof_1 = [new ArrayListSerializer($serializer_getInstance_32()), null]; } var Companion_instance_75; function Companion_getInstance_45() { if (Companion_instance_75 == null) new Companion_27(); return Companion_instance_75; } function $serializer_25() { $serializer_instance_25 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Spine', this, 2); tmp0_serialDesc.u4f('itemRefs', true); tmp0_serialDesc.u4f('toc', true); tmp0_serialDesc.w4f(new XmlSerialName('spine', 'http://www.idpf.org/2007/opf')); this.xof_1 = tmp0_serialDesc; } protoOf($serializer_25).r44 = function () { return this.xof_1; }; protoOf($serializer_25).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_45().wof_1[0], get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_25).t44 = function (decoder) { var tmp0_desc = this.xof_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); var tmp7_cached = Companion_getInstance_45().wof_1; if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return Spine_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_25).yof = function (encoder, value) { var tmp0_desc = this.xof_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_45().wof_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !equals(value.uof_1, emptyList())) { tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.uof_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.vof_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, StringSerializer_getInstance(), value.vof_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_25).s44 = function (encoder, value) { return this.yof(encoder, value instanceof Spine ? value : THROW_CCE()); }; var $serializer_instance_25; function $serializer_getInstance_37() { if ($serializer_instance_25 == null) new $serializer_25(); return $serializer_instance_25; } function Spine_init_$Init$(seen1, itemRefs, toc, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_37().xof_1); } if (0 === (seen1 & 1)) $this.uof_1 = emptyList(); else $this.uof_1 = itemRefs; if (0 === (seen1 & 2)) $this.vof_1 = null; else $this.vof_1 = toc; return $this; } function Spine_init_$Create$(seen1, itemRefs, toc, serializationConstructorMarker) { return Spine_init_$Init$(seen1, itemRefs, toc, serializationConstructorMarker, objectCreate(protoOf(Spine))); } function Spine(itemRefs, toc) { Companion_getInstance_45(); itemRefs = itemRefs === VOID ? emptyList() : itemRefs; toc = toc === VOID ? null : toc; this.uof_1 = itemRefs; this.vof_1 = toc; } function Companion_28() { Companion_instance_76 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.zof_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_39())]; } var Companion_instance_76; function Companion_getInstance_46() { if (Companion_instance_76 == null) new Companion_28(); return Companion_instance_76; } function $serializer_26() { $serializer_instance_26 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifest', this, 3); tmp0_serialDesc.u4f('version', false); tmp0_serialDesc.u4f('metadata', false); tmp0_serialDesc.u4f('entries', false); this.aog_1 = tmp0_serialDesc; } protoOf($serializer_26).r44 = function () { return this.aog_1; }; protoOf($serializer_26).l4g = function () { var tmp0_cached = Companion_getInstance_46().zof_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), tmp0_cached[1], tmp0_cached[2]]; }; protoOf($serializer_26).t44 = function (decoder) { var tmp0_desc = this.aog_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.j48(tmp0_desc); var tmp8_cached = Companion_getInstance_46().zof_1; if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return ContentManifest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_26).bog = function (encoder, value) { var tmp0_desc = this.aog_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_46().zof_1; tmp1_output.s49(tmp0_desc, 0, value.cog_1); tmp1_output.z49(tmp0_desc, 1, tmp2_cached[1], value.dog_1); tmp1_output.z49(tmp0_desc, 2, tmp2_cached[2], value.eog_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_26).s44 = function (encoder, value) { return this.bog(encoder, value instanceof ContentManifest ? value : THROW_CCE()); }; var $serializer_instance_26; function $serializer_getInstance_38() { if ($serializer_instance_26 == null) new $serializer_26(); return $serializer_instance_26; } function ContentManifest_init_$Init$(seen1, version, metadata, entries, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_38().aog_1); } $this.cog_1 = version; $this.dog_1 = metadata; $this.eog_1 = entries; return $this; } function ContentManifest_init_$Create$(seen1, version, metadata, entries, serializationConstructorMarker) { return ContentManifest_init_$Init$(seen1, version, metadata, entries, serializationConstructorMarker, objectCreate(protoOf(ContentManifest))); } function ContentManifest(version, metadata, entries) { Companion_getInstance_46(); this.cog_1 = version; this.dog_1 = metadata; this.eog_1 = entries; } protoOf(ContentManifest).toString = function () { return 'ContentManifest(version=' + this.cog_1 + ', metadata=' + this.dog_1 + ', entries=' + this.eog_1 + ')'; }; protoOf(ContentManifest).hashCode = function () { var result = this.cog_1; result = imul(result, 31) + hashCode(this.dog_1) | 0; result = imul(result, 31) + hashCode(this.eog_1) | 0; return result; }; protoOf(ContentManifest).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentManifest)) return false; var tmp0_other_with_cast = other instanceof ContentManifest ? other : THROW_CCE(); if (!(this.cog_1 === tmp0_other_with_cast.cog_1)) return false; if (!equals(this.dog_1, tmp0_other_with_cast.dog_1)) return false; if (!equals(this.eog_1, tmp0_other_with_cast.eog_1)) return false; return true; }; function Companion_29() { Companion_instance_77 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.fog_1 = [null, null, null, null, null, null, new StringValuesSerializer(), new StringValuesSerializer(), null]; } var Companion_instance_77; function Companion_getInstance_47() { if (Companion_instance_77 == null) new Companion_29(); return Companion_instance_77; } function $serializer_27() { $serializer_instance_27 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifestEntry', this, 9); tmp0_serialDesc.u4f('uri', false); tmp0_serialDesc.u4f('storageSize', false); tmp0_serialDesc.u4f('ignoreQueryParams', true); tmp0_serialDesc.u4f('status', true); tmp0_serialDesc.u4f('method', true); tmp0_serialDesc.u4f('integrity', false); tmp0_serialDesc.u4f('requestHeaders', true); tmp0_serialDesc.u4f('responseHeaders', false); tmp0_serialDesc.u4f('bodyDataUrl', false); this.gog_1 = tmp0_serialDesc; } protoOf($serializer_27).r44 = function () { return this.gog_1; }; protoOf($serializer_27).l4g = function () { var tmp0_cached = Companion_getInstance_47().fog_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[6], tmp0_cached[7], StringSerializer_getInstance()]; }; protoOf($serializer_27).t44 = function (decoder) { var tmp0_desc = this.gog_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = false; var tmp7_local3 = 0; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_input = decoder.j48(tmp0_desc); var tmp14_cached = Companion_getInstance_47().fog_1; if (tmp13_input.y48()) { tmp4_local0 = tmp13_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.l48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.o48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.t48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.t48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.v48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.v48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.t48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.l48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.o48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.t48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.t48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.v48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.v48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.t48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.k48(tmp0_desc); return ContentManifestEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_27).hog = function (encoder, value) { var tmp0_desc = this.gog_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_47().fog_1; tmp1_output.x49(tmp0_desc, 0, value.iog_1); tmp1_output.t49(tmp0_desc, 1, value.jog_1); if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.kog_1 === true)) { tmp1_output.p49(tmp0_desc, 2, value.kog_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.log_1 === 200)) { tmp1_output.s49(tmp0_desc, 3, value.log_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.mog_1 === 'GET')) { tmp1_output.x49(tmp0_desc, 4, value.mog_1); } tmp1_output.x49(tmp0_desc, 5, value.nog_1); if (tmp1_output.f4a(tmp0_desc, 6) ? true : !equals(value.oog_1, emptyStringValues())) { tmp1_output.z49(tmp0_desc, 6, tmp2_cached[6], value.oog_1); } tmp1_output.z49(tmp0_desc, 7, tmp2_cached[7], value.pog_1); tmp1_output.x49(tmp0_desc, 8, value.qog_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_27).s44 = function (encoder, value) { return this.hog(encoder, value instanceof ContentManifestEntry ? value : THROW_CCE()); }; var $serializer_instance_27; function $serializer_getInstance_39() { if ($serializer_instance_27 == null) new $serializer_27(); return $serializer_instance_27; } function ContentManifestEntry_init_$Init$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker, $this) { if (!(419 === (419 & seen1))) { throwMissingFieldException(seen1, 419, $serializer_getInstance_39().gog_1); } $this.iog_1 = uri; $this.jog_1 = storageSize; if (0 === (seen1 & 4)) $this.kog_1 = true; else $this.kog_1 = ignoreQueryParams; if (0 === (seen1 & 8)) $this.log_1 = 200; else $this.log_1 = status; if (0 === (seen1 & 16)) $this.mog_1 = 'GET'; else $this.mog_1 = method; $this.nog_1 = integrity; if (0 === (seen1 & 64)) $this.oog_1 = emptyStringValues(); else $this.oog_1 = requestHeaders; $this.pog_1 = responseHeaders; $this.qog_1 = bodyDataUrl; return $this; } function ContentManifestEntry_init_$Create$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker) { return ContentManifestEntry_init_$Init$(seen1, uri, storageSize, ignoreQueryParams, status, method, integrity, requestHeaders, responseHeaders, bodyDataUrl, serializationConstructorMarker, objectCreate(protoOf(ContentManifestEntry))); } function ContentManifestEntry() { } function Companion_30() { Companion_instance_78 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.rog_1 = [new ArrayListSerializer($serializer_getInstance_41()), new ArrayListSerializer($serializer_getInstance_42())]; } var Companion_instance_78; function Companion_getInstance_48() { if (Companion_instance_78 == null) new Companion_30(); return Companion_instance_78; } function $serializer_28() { $serializer_instance_28 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaContentInfo', this, 2); tmp0_serialDesc.u4f('sources', false); tmp0_serialDesc.u4f('subtitles', true); this.sog_1 = tmp0_serialDesc; } protoOf($serializer_28).r44 = function () { return this.sog_1; }; protoOf($serializer_28).l4g = function () { var tmp0_cached = Companion_getInstance_48().rog_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [tmp0_cached[0], tmp0_cached[1]]; }; protoOf($serializer_28).t44 = function (decoder) { var tmp0_desc = this.sog_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); var tmp7_cached = Companion_getInstance_48().rog_1; if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return MediaContentInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_28).tog = function (encoder, value) { var tmp0_desc = this.sog_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_48().rog_1; tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.uog_1); if (tmp1_output.f4a(tmp0_desc, 1) ? true : !equals(value.vog_1, emptyList())) { tmp1_output.z49(tmp0_desc, 1, tmp2_cached[1], value.vog_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_28).s44 = function (encoder, value) { return this.tog(encoder, value instanceof MediaContentInfo ? value : THROW_CCE()); }; var $serializer_instance_28; function $serializer_getInstance_40() { if ($serializer_instance_28 == null) new $serializer_28(); return $serializer_instance_28; } function MediaContentInfo_init_$Init$(seen1, sources, subtitles, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_40().sog_1); } $this.uog_1 = sources; if (0 === (seen1 & 2)) $this.vog_1 = emptyList(); else $this.vog_1 = subtitles; return $this; } function MediaContentInfo_init_$Create$(seen1, sources, subtitles, serializationConstructorMarker) { return MediaContentInfo_init_$Init$(seen1, sources, subtitles, serializationConstructorMarker, objectCreate(protoOf(MediaContentInfo))); } function MediaContentInfo(sources, subtitles) { Companion_getInstance_48(); subtitles = subtitles === VOID ? emptyList() : subtitles; this.uog_1 = sources; this.vog_1 = subtitles; } function $serializer_29() { $serializer_instance_29 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaSource', this, 2); tmp0_serialDesc.u4f('uri', false); tmp0_serialDesc.u4f('mimeType', false); this.wog_1 = tmp0_serialDesc; } protoOf($serializer_29).r44 = function () { return this.wog_1; }; protoOf($serializer_29).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_29).t44 = function (decoder) { var tmp0_desc = this.wog_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return MediaSource_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_29).xog = function (encoder, value) { var tmp0_desc = this.wog_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.yog_1); tmp1_output.x49(tmp0_desc, 1, value.zog_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_29).s44 = function (encoder, value) { return this.xog(encoder, value instanceof MediaSource ? value : THROW_CCE()); }; var $serializer_instance_29; function $serializer_getInstance_41() { if ($serializer_instance_29 == null) new $serializer_29(); return $serializer_instance_29; } function MediaSource_init_$Init$(seen1, uri, mimeType, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_41().wog_1); } $this.yog_1 = uri; $this.zog_1 = mimeType; return $this; } function MediaSource_init_$Create$(seen1, uri, mimeType, serializationConstructorMarker) { return MediaSource_init_$Init$(seen1, uri, mimeType, serializationConstructorMarker, objectCreate(protoOf(MediaSource))); } function MediaSource() { } function Companion_31() { } protoOf(Companion_31).o4r = function () { return $serializer_getInstance_42(); }; var Companion_instance_79; function Companion_getInstance_49() { return Companion_instance_79; } function $serializer_30() { $serializer_instance_30 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.SubtitleTrack', this, 4); tmp0_serialDesc.u4f('uri', false); tmp0_serialDesc.u4f('mimeType', false); tmp0_serialDesc.u4f('langCode', false); tmp0_serialDesc.u4f('title', false); this.aoh_1 = tmp0_serialDesc; } protoOf($serializer_30).r44 = function () { return this.aoh_1; }; protoOf($serializer_30).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_30).t44 = function (decoder) { var tmp0_desc = this.aoh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return SubtitleTrack_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_30).boh = function (encoder, value) { var tmp0_desc = this.aoh_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.coh_1); tmp1_output.x49(tmp0_desc, 1, value.doh_1); tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.eoh_1); tmp1_output.x49(tmp0_desc, 3, value.foh_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_30).s44 = function (encoder, value) { return this.boh(encoder, value instanceof SubtitleTrack ? value : THROW_CCE()); }; var $serializer_instance_30; function $serializer_getInstance_42() { if ($serializer_instance_30 == null) new $serializer_30(); return $serializer_instance_30; } function SubtitleTrack_init_$Init$(seen1, uri, mimeType, langCode, title, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_42().aoh_1); } $this.coh_1 = uri; $this.doh_1 = mimeType; $this.eoh_1 = langCode; $this.foh_1 = title; return $this; } function SubtitleTrack_init_$Create$(seen1, uri, mimeType, langCode, title, serializationConstructorMarker) { return SubtitleTrack_init_$Init$(seen1, uri, mimeType, langCode, title, serializationConstructorMarker, objectCreate(protoOf(SubtitleTrack))); } function SubtitleTrack(uri, mimeType, langCode, title) { this.coh_1 = uri; this.doh_1 = mimeType; this.eoh_1 = langCode; this.foh_1 = title; } protoOf(SubtitleTrack).goh = function (uri, mimeType, langCode, title) { return new SubtitleTrack(uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).hoh = function (uri, mimeType, langCode, title, $super) { uri = uri === VOID ? this.coh_1 : uri; mimeType = mimeType === VOID ? this.doh_1 : mimeType; langCode = langCode === VOID ? this.eoh_1 : langCode; title = title === VOID ? this.foh_1 : title; return $super === VOID ? this.goh(uri, mimeType, langCode, title) : $super.goh.call(this, uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).toString = function () { return 'SubtitleTrack(uri=' + this.coh_1 + ', mimeType=' + this.doh_1 + ', langCode=' + this.eoh_1 + ', title=' + this.foh_1 + ')'; }; protoOf(SubtitleTrack).hashCode = function () { var result = getStringHashCode(this.coh_1); result = imul(result, 31) + getStringHashCode(this.doh_1) | 0; result = imul(result, 31) + (this.eoh_1 == null ? 0 : getStringHashCode(this.eoh_1)) | 0; result = imul(result, 31) + getStringHashCode(this.foh_1) | 0; return result; }; protoOf(SubtitleTrack).equals = function (other) { if (this === other) return true; if (!(other instanceof SubtitleTrack)) return false; var tmp0_other_with_cast = other instanceof SubtitleTrack ? other : THROW_CCE(); if (!(this.coh_1 === tmp0_other_with_cast.coh_1)) return false; if (!(this.doh_1 === tmp0_other_with_cast.doh_1)) return false; if (!(this.eoh_1 == tmp0_other_with_cast.eoh_1)) return false; if (!(this.foh_1 === tmp0_other_with_cast.foh_1)) return false; return true; }; function InvalidContentException(message, cause) { cause = cause === VOID ? null : cause; IllegalArgumentException_init_$Init$(message, cause, this); captureStack(this, InvalidContentException); } function Companion_32() { this.ioh_1 = 'upload-tmp'; this.joh_1 = 'upload-tmp:///'; } protoOf(Companion_32).o4r = function () { return $serializer_getInstance_43(); }; var Companion_instance_80; function Companion_getInstance_50() { return Companion_instance_80; } function $serializer_31() { $serializer_instance_31 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentjob.MetadataResult', this, 4); tmp0_serialDesc.u4f('entry', false); tmp0_serialDesc.u4f('importerId', false); tmp0_serialDesc.u4f('originalFilename', true); tmp0_serialDesc.u4f('picture', true); this.koh_1 = tmp0_serialDesc; } protoOf($serializer_31).r44 = function () { return this.koh_1; }; protoOf($serializer_31).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_3(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_4())]; }; protoOf($serializer_31).t44 = function (decoder) { var tmp0_desc = this.koh_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = 0; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return MetadataResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_31).loh = function (encoder, value) { var tmp0_desc = this.koh_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance_3(), value.moh_1); tmp1_output.s49(tmp0_desc, 1, value.noh_1); if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.ooh_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ooh_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.poh_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, $serializer_getInstance_4(), value.poh_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_31).s44 = function (encoder, value) { return this.loh(encoder, value instanceof MetadataResult ? value : THROW_CCE()); }; var $serializer_instance_31; function $serializer_getInstance_43() { if ($serializer_instance_31 == null) new $serializer_31(); return $serializer_instance_31; } function MetadataResult_init_$Init$(seen1, entry, importerId, originalFilename, picture, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_43().koh_1); } $this.moh_1 = entry; $this.noh_1 = importerId; if (0 === (seen1 & 4)) $this.ooh_1 = null; else $this.ooh_1 = originalFilename; if (0 === (seen1 & 8)) $this.poh_1 = null; else $this.poh_1 = picture; return $this; } function MetadataResult_init_$Create$(seen1, entry, importerId, originalFilename, picture, serializationConstructorMarker) { return MetadataResult_init_$Init$(seen1, entry, importerId, originalFilename, picture, serializationConstructorMarker, objectCreate(protoOf(MetadataResult))); } function MetadataResult(entry, importerId, originalFilename, picture) { originalFilename = originalFilename === VOID ? null : originalFilename; picture = picture === VOID ? null : picture; this.moh_1 = entry; this.noh_1 = importerId; this.ooh_1 = originalFilename; this.poh_1 = picture; } protoOf(MetadataResult).toString = function () { return 'MetadataResult(entry=' + this.moh_1 + ', importerId=' + this.noh_1 + ', originalFilename=' + this.ooh_1 + ', picture=' + this.poh_1 + ')'; }; protoOf(MetadataResult).hashCode = function () { var result = this.moh_1.hashCode(); result = imul(result, 31) + this.noh_1 | 0; result = imul(result, 31) + (this.ooh_1 == null ? 0 : getStringHashCode(this.ooh_1)) | 0; result = imul(result, 31) + (this.poh_1 == null ? 0 : this.poh_1.hashCode()) | 0; return result; }; protoOf(MetadataResult).equals = function (other) { if (this === other) return true; if (!(other instanceof MetadataResult)) return false; var tmp0_other_with_cast = other instanceof MetadataResult ? other : THROW_CCE(); if (!this.moh_1.equals(tmp0_other_with_cast.moh_1)) return false; if (!(this.noh_1 === tmp0_other_with_cast.noh_1)) return false; if (!(this.ooh_1 == tmp0_other_with_cast.ooh_1)) return false; if (!equals(this.poh_1, tmp0_other_with_cast.poh_1)) return false; return true; }; function PersonConstants() { PersonConstants_instance = this; var tmp = this; var tmp_0 = to(1, strings_getInstance().zmk_1); var tmp_1 = to(2, strings_getInstance().ymk_1); var tmp_2 = to(4, strings_getInstance().aml_1); tmp.qoh_1 = mapOf([tmp_0, tmp_1, tmp_2, to(0, strings_getInstance().bml_1)]); } var PersonConstants_instance; function PersonConstants_getInstance() { if (PersonConstants_instance == null) new PersonConstants(); return PersonConstants_instance; } function SubmissionConstants() { SubmissionConstants_instance = this; var tmp = this; var tmp_0 = to(0, strings_getInstance().bnh_1); var tmp_1 = to(4, strings_getInstance().lmn_1); var tmp_2 = to(1, strings_getInstance().cnh_1); var tmp_3 = to(2, strings_getInstance().dnh_1); tmp.roh_1 = mapOf([tmp_0, tmp_1, tmp_2, tmp_3, to(3, strings_getInstance().tna_1)]); var tmp_4 = this; Companion_getInstance_1(); var tmp_5 = to(0, strings_getInstance().un5_1); Companion_getInstance_1(); var tmp_6 = to(1, strings_getInstance().tn5_1); Companion_getInstance_1(); tmp_4.soh_1 = mapOf([tmp_5, tmp_6, to(2, strings_getInstance().sn5_1)]); } var SubmissionConstants_instance; function SubmissionConstants_getInstance() { if (SubmissionConstants_instance == null) new SubmissionConstants(); return SubmissionConstants_instance; } function TerminologyKeys() { TerminologyKeys_instance = this; this.toh_1 = 'Teacher'; this.uoh_1 = 'Student'; this.voh_1 = 'Teachers'; this.woh_1 = 'Students'; this.xoh_1 = 'AddTeacher'; this.yoh_1 = 'AddStudent'; this.zoh_1 = mapOf([to('Teacher', strings_getInstance().bmz_1), to('Student', strings_getInstance().on5_1), to('Teachers', strings_getInstance().emz_1), to('Students', strings_getInstance().zml_1), to('AddTeacher', strings_getInstance().cmz_1), to('AddStudent', strings_getInstance().amm_1)]); } var TerminologyKeys_instance; function TerminologyKeys_getInstance() { if (TerminologyKeys_instance == null) new TerminologyKeys(); return TerminologyKeys_instance; } function $invokeCOROUTINE$10(_this__u8e3s4, destUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ioi_1 = _this__u8e3s4; this.joi_1 = destUri; } protoOf($invokeCOROUTINE$10).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.id_1 = 1; suspendResult = this.ioi_1.ooi_1.uk2_1.w7e().mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.koi_1 = suspendResult; this.jd_1 = 4; var tmp_0 = this; var tmp0_safe_receiver = this.ioi_1.ooi_1.vk2_1; tmp_0.moi_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w7e(); if (this.moi_1 == null) { this.noi_1 = null; this.id_1 = 3; continue $sm; } else { this.id_1 = 2; suspendResult = this.moi_1.mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.noi_1 = suspendResult; this.id_1 = 3; continue $sm; case 3: var tmp2_safe_receiver = this.noi_1; this.loi_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.yhn_1; this.jd_1 = 6; this.id_1 = 5; continue $sm; case 4: this.jd_1 = 6; var tmp_1 = this.ld_1; if (tmp_1 instanceof Exception) { var e = this.ld_1; var tmp_2 = this; Napier_getInstance().j5e('GetRegistrationAllowedUseCase: Error occurred: ' + e.message, e); var tmp3_safe_receiver = this.koi_1; tmp_2.loi_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.yhn_1; this.id_1 = 5; continue $sm; } else { throw this.ld_1; } case 5: this.jd_1 = 6; return this.loi_1; case 6: throw this.ld_1; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 6) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function CheckRegistrationAllowedUseCase(dataLayer) { this.ooi_1 = dataLayer; } protoOf(CheckRegistrationAllowedUseCase).poi = function (destUri, $completion) { var tmp = new $invokeCOROUTINE$10(this, destUri, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function CreateNewLocalAccountUseCase(di) { this.qoi_1 = di; } function SetPasswordUseCase() { } function AccountIsNotSubmitterException(message) { AssignmentSubmissionException.call(this, message); captureStack(this, AccountIsNotSubmitterException); } function AssignmentAlreadySubmittedException(message) { AssignmentSubmissionException.call(this, message); captureStack(this, AssignmentAlreadySubmittedException); } function AssignmentDeadlinePassedException(message) { AssignmentSubmissionException.call(this, message); captureStack(this, AssignmentDeadlinePassedException); } function AssignmentTextTooLongException(message) { AssignmentSubmissionException.call(this, message); captureStack(this, AssignmentTextTooLongException); } function AssignmentSubmissionException(message) { Exception_init_$Init$(message, this); captureStack(this, AssignmentSubmissionException); } function SubmitAssignmentResult(submission) { this.soi_1 = submission; } protoOf(SubmitAssignmentResult).toString = function () { return 'SubmitAssignmentResult(submission=' + this.soi_1 + ')'; }; protoOf(SubmitAssignmentResult).hashCode = function () { return this.soi_1 == null ? 0 : this.soi_1.hashCode(); }; protoOf(SubmitAssignmentResult).equals = function (other) { if (this === other) return true; if (!(other instanceof SubmitAssignmentResult)) return false; var tmp0_other_with_cast = other instanceof SubmitAssignmentResult ? other : THROW_CCE(); if (!equals(this.soi_1, tmp0_other_with_cast.soi_1)) return false; return true; }; function SubmitAssignmentUseCase$invoke$lambda($assignmentUid, $submitterUid, $accountPersonUid, $assignment) { return function ($this$shallowCopy) { $this$shallowCopy.mc2_1 = $assignmentUid; $this$shallowCopy.nc2_1 = $submitterUid; $this$shallowCopy.oc2_1 = $accountPersonUid; $this$shallowCopy.rc2_1 = systemTimeInMillis(); $this$shallowCopy.sc2_1 = $assignment.g7u_1; return Unit_instance; }; } function $invokeCOROUTINE$11(_this__u8e3s4, repo, submitterUid, assignmentUid, accountPersonUid, submission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.boj_1 = _this__u8e3s4; this.coj_1 = repo; this.doj_1 = submitterUid; this.eoj_1 = assignmentUid; this.foj_1 = accountPersonUid; this.goj_1 = submission; } protoOf($invokeCOROUTINE$11).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; if (this.doj_1.equals(new Long(0, 0))) throw new AccountIsNotSubmitterException('Not a valid submitter'); this.id_1 = 1; suspendResult = this.coj_1.r7e().r7s(this.eoj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hoj_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.hoj_1 == null) { throw IllegalArgumentException_init_$Create$('Could not find assignment uid ' + this.eoj_1.toString()); } else { tmp_1 = this.hoj_1; } tmp_0.ioj_1 = tmp_1; var tmp_2 = this; var tmp1_elvis_lhs = this.ioj_1.t7x_1; var tmp_3; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('Could not load courseblock'); } else { tmp_3 = tmp1_elvis_lhs; } tmp_2.joj_1 = tmp_3; var tmp_4 = this; var tmp2_elvis_lhs = this.ioj_1.s7x_1; var tmp_5; if (tmp2_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('assignment cannot be null'); } else { tmp_5 = tmp2_elvis_lhs; } tmp_4.koj_1 = tmp_5; var tmp_6 = this.koj_1.a7u_1; if (tmp_6 === 1) { this.id_1 = 2; suspendResult = this.coj_1.s7e().tc1(this.foj_1, this.eoj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.loj_1 = false; this.id_1 = 3; continue $sm; } case 2: this.loj_1 = suspendResult; this.id_1 = 3; continue $sm; case 3: if (this.loj_1) { throw new AssignmentAlreadySubmittedException(this.boj_1.noj_1.soj(strings_getInstance().unk_1)); } else { this.id_1 = 4; continue $sm; } case 4: if (lastPossibleSubmissionTime(this.joj_1).c7(systemTimeInMillis()) < 0) { throw new AssignmentDeadlinePassedException(this.boj_1.noj_1.soj(strings_getInstance().tnk_1)); } if (this.koj_1.c7u_1) { var tmp_7 = this.koj_1.d7u_1; if (tmp_7 === 1) { var tmp3_safe_receiver = this.goj_1.pc2_1; var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : htmlToPlainText(tmp3_safe_receiver); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : countWords(tmp4_safe_receiver); var wordCount = tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs; if (wordCount > this.koj_1.e7u_1) { throw new AssignmentTextTooLongException(this.boj_1.noj_1.toj(strings_getInstance().vnk_1, [wordCount.toString(), this.koj_1.e7u_1.toString()])); } } else { var tmp_8 = this.koj_1.d7u_1; if (tmp_8 === 2) { var tmp6_safe_receiver = this.goj_1.pc2_1; var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : htmlToPlainText(tmp6_safe_receiver); var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.length; var charCount = tmp8_elvis_lhs == null ? 0 : tmp8_elvis_lhs; if (charCount > this.koj_1.e7u_1) { throw new AssignmentTextTooLongException(this.boj_1.noj_1.toj(strings_getInstance().wnk_1, [charCount.toString(), this.koj_1.e7u_1.toString()])); } } } } var tmp_9 = this; tmp_9.moj_1 = shallowCopy_0(this.goj_1, SubmitAssignmentUseCase$invoke$lambda(this.eoj_1, this.doj_1, this.foj_1, this.koj_1)); Napier_getInstance().j5e('SubmitAssignmentUseCase: save to repo for submitterUid=' + this.doj_1.toString() + ' assignmentUid=' + this.eoj_1.toString()); this.id_1 = 5; suspendResult = this.coj_1.s7e().insertAsync(this.moj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return new SubmitAssignmentResult(this.moj_1); case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SubmitAssignmentUseCase(systemImpl) { this.noj_1 = systemImpl; } protoOf(SubmitAssignmentUseCase).uoj = function (repo, submitterUid, assignmentUid, accountPersonUid, submission, $completion) { var tmp = new $invokeCOROUTINE$11(this, repo, submitterUid, assignmentUid, accountPersonUid, submission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function SubmitMarkUseCase$invoke$lambda($assignment, $submitterUid, $activeUserSubmitterUid, $activeUserPerson, $courseBlock, $clazzUid, $applyPenalty) { return function ($this$shallowCopy) { $this$shallowCopy.hbw_1 = $assignment.o7t_1; $this$shallowCopy.ibw_1 = $submitterUid; $this$shallowCopy.jbw_1 = $activeUserSubmitterUid; $this$shallowCopy.kbw_1 = $activeUserPerson.g96_1; var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $courseBlock.f7y_1; tmp.nbw_1 = tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs; $this$shallowCopy.qbw_1 = $clazzUid; var tmp_0; if ($applyPenalty) { $this$shallowCopy.obw_1 = roundTo($this$shallowCopy.mbw_1 * ($courseBlock.d7y_1 / 100.0), 2); $this$shallowCopy.mbw_1 = $this$shallowCopy.mbw_1 - $this$shallowCopy.obw_1; tmp_0 = Unit_instance; } return Unit_instance; }; } function SubmitMarkUseCase$invoke$slambda(this$0, $stmt, $activeUserPerson, $courseBlock, $instructorActorToPersonUidMap, $actorToPersonUidMap, $clazzUid, $activityId, $markToRecord, resultContinuation) { this.dok_1 = this$0; this.eok_1 = $stmt; this.fok_1 = $activeUserPerson; this.gok_1 = $courseBlock; this.hok_1 = $instructorActorToPersonUidMap; this.iok_1 = $actorToPersonUidMap; this.jok_1 = $clazzUid; this.kok_1 = $activityId; this.lok_1 = $markToRecord; CoroutineImpl.call(this, resultContinuation); } protoOf(SubmitMarkUseCase$invoke$slambda).ook = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SubmitMarkUseCase$invoke$slambda).ie = function (p1, $completion) { return this.ook(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SubmitMarkUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.nok_1 = uuid4(); this.id_1 = 1; var tmp_0 = listOf_0(this.eok_1); var tmp0_xseAccountPersonUid = this.fok_1.g96_1; var tmp1_xseAccountUsername = ensureNotNull(this.fok_1.h96_1); var tmp2_xseCbUid = this.gok_1.u7x_1; var tmp3_xseRegistrationHi = this.nok_1.cme(); var tmp4_xseRegistrationLo = this.nok_1.dme(); var tmp5_knownActorUidToPersonUids = this.dok_1.uok_1.s45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), plus_0(this.hok_1, this.iok_1)); suspendResult = this.dok_1.sok_1.col(tmp_0, new XapiSessionEntity(VOID, VOID, tmp3_xseRegistrationHi, tmp4_xseRegistrationLo, VOID, tmp0_xseAccountPersonUid, VOID, tmp1_xseAccountUsername, this.jok_1, tmp2_xseCbUid, VOID, VOID, this.kok_1, VOID, VOID, VOID, VOID, VOID, tmp5_knownActorUidToPersonUids), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; suspendResult = this.dok_1.pok_1.u7e().insertAsync(this.lok_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SubmitMarkUseCase$invoke$slambda).enz = function (it, completion) { var i = new SubmitMarkUseCase$invoke$slambda(this.dok_1, this.eok_1, this.fok_1, this.gok_1, this.hok_1, this.iok_1, this.jok_1, this.kok_1, this.lok_1, completion); i.mok_1 = it; return i; }; function SubmitMarkUseCase$invoke$slambda_0(this$0, $stmt, $activeUserPerson, $courseBlock, $instructorActorToPersonUidMap, $actorToPersonUidMap, $clazzUid, $activityId, $markToRecord, resultContinuation) { var i = new SubmitMarkUseCase$invoke$slambda(this$0, $stmt, $activeUserPerson, $courseBlock, $instructorActorToPersonUidMap, $actorToPersonUidMap, $clazzUid, $activityId, $markToRecord, resultContinuation); var l = function (it, $completion) { return i.ook(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$12(_this__u8e3s4, activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lol_1 = _this__u8e3s4; this.mol_1 = activeUserPerson; this.nol_1 = assignment; this.ool_1 = clazzUid; this.pol_1 = submitterUid; this.qol_1 = draftMark; this.rol_1 = submissions; this.sol_1 = courseBlock; } protoOf($invokeCOROUTINE$12).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 8; var tmp_0 = this; var tmp_1; if (!this.rol_1.c1()) { var iterator = this.rol_1.w(); if (!iterator.f()) throw NoSuchElementException_init_$Create$(); var maxValue = iterator.e().rc2_1; while (iterator.f()) { var v = iterator.e().rc2_1; if (compareTo(maxValue, v) < 0) { maxValue = v; } } tmp_1 = maxValue.c7(this.sol_1.c7y_1) > 0; } else { tmp_1 = false; } tmp_0.tol_1 = tmp_1; this.id_1 = 1; suspendResult = this.lol_1.pok_1.r7e().p7s(this.nol_1.o7t_1, this.ool_1, this.mol_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uol_1 = suspendResult; var tmp_2; if (this.nol_1.r7t_1.equals(new Long(0, 0))) { tmp_2 = true; } else { var tmp_3 = this.nol_1.b7u_1; tmp_2 = tmp_3 === 1; } if (tmp_2) { var tmp_4 = this; var activeUserPersonXapiAgent = toXapiAgent(this.mol_1, this.lol_1.qok_1); tmp_4.vol_1 = to(activeUserPersonXapiAgent, mapOf_0(to(identifierHash(activeUserPersonXapiAgent, this.lol_1.tok_1), this.mol_1.g96_1))); this.id_1 = 3; continue $sm; } else { this.id_1 = 2; suspendResult = this.lol_1.rok_1.oom(this.nol_1.r7t_1, this.uol_1.mb(), this.nol_1.g7u_1, this.nol_1.o7t_1, this.mol_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.wol_1 = suspendResult; var tmp_5 = this; var it = this.wol_1; tmp_5.vol_1 = to(it.pom_1, it.qom_1); this.id_1 = 3; continue $sm; case 3: this.xol_1 = this.vol_1; this.yol_1 = this.xol_1.y6(); this.zol_1 = this.xol_1.z6(); if (this.nol_1.r7t_1.equals(new Long(0, 0))) { this.id_1 = 5; suspendResult = this.lol_1.pok_1.o7d().ng4(this.pol_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 4; suspendResult = this.lol_1.rok_1.oom(this.nol_1.r7t_1, this.pol_1.mb(), this.nol_1.g7u_1, this.nol_1.o7t_1, this.mol_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.bom_1 = suspendResult; var tmp_6 = this; var it_0 = this.bom_1; tmp_6.aom_1 = to(it_0.pom_1, it_0.qom_1); this.id_1 = 6; continue $sm; case 5: this.com_1 = suspendResult; this.dom_1 = this.com_1 == null ? null : toXapiAgent(this.com_1, this.lol_1.qok_1); var tmp_7 = this; var tmp_8; if (this.dom_1 == null) { throw IllegalStateException_init_$Create$('Could not find person for ' + this.pol_1.toString()); } else { tmp_8 = this.dom_1; } tmp_7.eom_1 = tmp_8; this.aom_1 = to(this.eom_1, mapOf_0(to(identifierHash(this.eom_1, this.lol_1.tok_1), this.pol_1))); this.id_1 = 6; continue $sm; case 6: this.fom_1 = this.aom_1; this.gom_1 = this.fom_1.y6(); this.hom_1 = this.fom_1.z6(); var tmp_9 = this; tmp_9.iom_1 = shallowCopy_1(this.qol_1, SubmitMarkUseCase$invoke$lambda(this.nol_1, this.pol_1, this.uol_1, this.mol_1, this.sol_1, this.ool_1, this.tol_1)); var tmp_10 = this; var tmp4_viewName = 'CourseAssignment'; var tmp5_learningSpace = this.lol_1.qok_1.cnu_1; Companion_getInstance_126(); var tmp_11 = to('clazzUid', this.ool_1.toString()); Companion_getInstance_126(); var tmp6_queryString = toQueryString(mapOf([tmp_11, to('entityUid', this.nol_1.o7t_1.toString())])); tmp_10.jom_1 = (new UstadUrlComponents(tmp5_learningSpace, tmp4_viewName, tmp6_queryString)).wom(); var tmp_12 = this; var tmp7_verb = new XapiVerb(get_VERB_COMPLETED()); var tmp8_object = new XapiActivityStatementObject(XapiObjectType_Activity_getInstance(), this.jom_1); var tmp9_context = new XapiContext(this.yol_1); var tmp10_result = new XapiResult(true, true, new Score(this.iom_1.mbw_1 / this.iom_1.nbw_1, this.iom_1.mbw_1, 0.0, this.iom_1.nbw_1)); tmp_12.kom_1 = new XapiStatement(VOID, this.gom_1, tmp7_verb, tmp8_object, tmp10_result, tmp9_context); this.id_1 = 7; suspendResult = withDoorTransactionAsync(this.lol_1.pok_1, VOID, SubmitMarkUseCase$invoke$slambda_0(this.lol_1, this.kom_1, this.mol_1, this.sol_1, this.zol_1, this.hom_1, this.ool_1, this.jom_1, this.iom_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: return Unit_instance; case 8: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 8) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SubmitMarkUseCase(repo, learningSpace, createXapiGroupUseCase, xapiStatementResource, xxStringHasher, json) { this.pok_1 = repo; this.qok_1 = learningSpace; this.rok_1 = createXapiGroupUseCase; this.sok_1 = xapiStatementResource; this.tok_1 = xxStringHasher; this.uok_1 = json; } protoOf(SubmitMarkUseCase).xom = function (activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, $completion) { var tmp = new $invokeCOROUTINE$12(this, activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.gon_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).lon = function (value, $completion) { var tmp = this.mon(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).ie = function (p1, $completion) { return this.lon((p1 == null ? true : p1 instanceof PersonNames) ? p1 : THROW_CCE(), $completion); }; protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.jon_1 = this.gon_1; var tmp_1 = this; tmp_1.kon_1 = this.hon_1; var tmp0_safe_receiver = this.kon_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag9_1) == null)) { this.id_1 = 3; suspendResult = this.jon_1.u1d(this.kon_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 2: if (false) { this.id_1 = 1; continue $sm; } this.id_1 = 4; continue $sm; case 3: this.ion_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).mon = function (value, completion) { var i = new GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda(this.gon_1, completion); i.hon_1 = value; return i; }; function GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) { var i = new GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.lon(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$14(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.von_1 = _this__u8e3s4; this.won_1 = collector; } protoOf($collectCOROUTINE$14).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.xon_1 = this.won_1; this.id_1 = 1; var tmp_1 = GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda_0(this.xon_1, null); suspendResult = this.von_1.yon_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) { this.zon_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).u1d = function (value, $completion) { return this.zon_1(value, $completion); }; function _no_name_provided__qut3iv($this) { this.yon_1 = $this; } protoOf(_no_name_provided__qut3iv).aoo = function (collector, $completion) { var tmp = new $collectCOROUTINE$14(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv).b1c = function (collector, $completion) { return this.aoo(collector, $completion); }; function $invokeCOROUTINE$13(_this__u8e3s4, submitterUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.joo_1 = _this__u8e3s4; this.koo_1 = submitterUid; } protoOf($invokeCOROUTINE$13).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; Companion_getInstance_1(); if (this.koo_1.c7(toLong(10000)) < 0) { var tmp_0 = this; tmp_0.loo_1 = this.joo_1.noo_1.soj(strings_getInstance().ing_1) + ' ' + this.koo_1.toString(); this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var this_0 = this.joo_1.moo_1.o7d().rg4(this.koo_1); suspendResult = first(new _no_name_provided__qut3iv(this_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; var it = suspendResult; var tmp_2 = it == null ? null : it.ag9_1; tmp_1.loo_1 = '' + tmp_2 + ' ' + (it == null ? null : it.bg9_1); this.id_1 = 2; continue $sm; case 2: return this.loo_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function GetAssignmentSubmitterNameUseCase(repo, systemImpl) { this.moo_1 = repo; this.noo_1 = systemImpl; } protoOf(GetAssignmentSubmitterNameUseCase).ooo = function (submitterUid, $completion) { var tmp = new $invokeCOROUTINE$13(this, submitterUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function ZipFileUseCase() { } function BlobTransferJobItem(blobUrl, transferJobItemUid, lockIdToRelease, estimatedSize, partialResponseFile) { lockIdToRelease = lockIdToRelease === VOID ? new Long(0, 0) : lockIdToRelease; estimatedSize = estimatedSize === VOID ? null : estimatedSize; partialResponseFile = partialResponseFile === VOID ? null : partialResponseFile; this.poo_1 = blobUrl; this.qoo_1 = transferJobItemUid; this.roo_1 = lockIdToRelease; this.soo_1 = estimatedSize; this.too_1 = partialResponseFile; } protoOf(BlobTransferJobItem).toString = function () { return 'BlobTransferJobItem(blobUrl=' + this.poo_1 + ', transferJobItemUid=' + this.qoo_1 + ', lockIdToRelease=' + this.roo_1.toString() + ', estimatedSize=' + toString_0(this.soo_1) + ', partialResponseFile=' + this.too_1 + ')'; }; protoOf(BlobTransferJobItem).hashCode = function () { var result = getStringHashCode(this.poo_1); result = imul(result, 31) + this.qoo_1 | 0; result = imul(result, 31) + this.roo_1.hashCode() | 0; result = imul(result, 31) + (this.soo_1 == null ? 0 : this.soo_1.hashCode()) | 0; result = imul(result, 31) + (this.too_1 == null ? 0 : getStringHashCode(this.too_1)) | 0; return result; }; protoOf(BlobTransferJobItem).equals = function (other) { if (this === other) return true; if (!(other instanceof BlobTransferJobItem)) return false; var tmp0_other_with_cast = other instanceof BlobTransferJobItem ? other : THROW_CCE(); if (!(this.poo_1 === tmp0_other_with_cast.poo_1)) return false; if (!(this.qoo_1 === tmp0_other_with_cast.qoo_1)) return false; if (!this.roo_1.equals(tmp0_other_with_cast.roo_1)) return false; if (!equals(this.soo_1, tmp0_other_with_cast.soo_1)) return false; if (!(this.too_1 == tmp0_other_with_cast.too_1)) return false; return true; }; function BlobTransferProgressUpdate(transferItem, bytesTransferred) { this.uoo_1 = transferItem; this.voo_1 = bytesTransferred; } protoOf(BlobTransferProgressUpdate).toString = function () { return 'Uid #' + this.uoo_1.qoo_1 + ' transferred=' + this.voo_1.toString() + ' bytes'; }; protoOf(BlobTransferProgressUpdate).hashCode = function () { var result = this.uoo_1.hashCode(); result = imul(result, 31) + this.voo_1.hashCode() | 0; return result; }; protoOf(BlobTransferProgressUpdate).equals = function (other) { if (this === other) return true; if (!(other instanceof BlobTransferProgressUpdate)) return false; var tmp0_other_with_cast = other instanceof BlobTransferProgressUpdate ? other : THROW_CCE(); if (!this.uoo_1.equals(tmp0_other_with_cast.uoo_1)) return false; if (!this.voo_1.equals(tmp0_other_with_cast.voo_1)) return false; return true; }; function BlobTransferStatusUpdate(transferItem, status) { this.woo_1 = transferItem; this.xoo_1 = status; } protoOf(BlobTransferStatusUpdate).toString = function () { return 'BlobTransferStatusUpdate(transferItem=' + this.woo_1 + ', status=' + this.xoo_1 + ')'; }; protoOf(BlobTransferStatusUpdate).hashCode = function () { var result = this.woo_1.hashCode(); result = imul(result, 31) + this.xoo_1 | 0; return result; }; protoOf(BlobTransferStatusUpdate).equals = function (other) { if (this === other) return true; if (!(other instanceof BlobTransferStatusUpdate)) return false; var tmp0_other_with_cast = other instanceof BlobTransferStatusUpdate ? other : THROW_CCE(); if (!this.woo_1.equals(tmp0_other_with_cast.woo_1)) return false; if (!(this.xoo_1 === tmp0_other_with_cast.xoo_1)) return false; return true; }; function CancelDownloadUseCase() { } function MakeContentEntryAvailableOfflineUseCase(repo, nodeIdAndAuth, enqueueContentManifestDownloadUseCase) { this.yoo_1 = repo; this.zoo_1 = nodeIdAndAuth; this.aop_1 = enqueueContentManifestDownloadUseCase; } function OpenBlobItem(uri, mimeType, fileName, fileSize) { this.bop_1 = uri; this.cop_1 = mimeType; this.dop_1 = fileName; this.eop_1 = fileSize; } protoOf(OpenBlobItem).toString = function () { return 'OpenBlobItem(uri=' + this.bop_1 + ', mimeType=' + this.cop_1 + ', fileName=' + this.dop_1 + ', fileSize=' + this.eop_1.toString() + ')'; }; protoOf(OpenBlobItem).hashCode = function () { var result = getStringHashCode(this.bop_1); result = imul(result, 31) + getStringHashCode(this.cop_1) | 0; result = imul(result, 31) + getStringHashCode(this.dop_1) | 0; result = imul(result, 31) + this.eop_1.hashCode() | 0; return result; }; protoOf(OpenBlobItem).equals = function (other) { if (this === other) return true; if (!(other instanceof OpenBlobItem)) return false; var tmp0_other_with_cast = other instanceof OpenBlobItem ? other : THROW_CCE(); if (!(this.bop_1 === tmp0_other_with_cast.bop_1)) return false; if (!(this.cop_1 === tmp0_other_with_cast.cop_1)) return false; if (!(this.dop_1 === tmp0_other_with_cast.dop_1)) return false; if (!this.eop_1.equals(tmp0_other_with_cast.eop_1)) return false; return true; }; function OpenBlobUiUseCase$invoke$lambda($onUiUpdate, $openItem) { return function (transferred, total) { $onUiUpdate(new OpeningBlobState($openItem, transferred, total)); return Unit_instance; }; } function $invokeCOROUTINE$16(_this__u8e3s4, openItem, onUiUpdate, intent, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nop_1 = _this__u8e3s4; this.oop_1 = openItem; this.pop_1 = onUiUpdate; this.qop_1 = intent; } protoOf($invokeCOROUTINE$16).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.pop_1(new OpeningBlobState(this.oop_1, new Long(0, 0), new Long(0, 0))); this.jd_1 = 2; this.id_1 = 1; suspendResult = this.nop_1.rop_1.top(this.oop_1, OpenBlobUiUseCase$invoke$lambda(this.pop_1, this.oop_1), this.qop_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pop_1(null); this.jd_1 = 4; this.id_1 = 3; continue $sm; case 2: this.jd_1 = 4; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { var e = this.ld_1; Napier_getInstance().n5e('OpenBlobUiCase: could not open ' + this.oop_1, e); if (!(e instanceof CancellationException)) { var tmp_1 = new Long(0, 0); var tmp_2 = new Long(0, 0); var tmp0_elvis_lhs = e.message; this.pop_1(new OpeningBlobState(this.oop_1, tmp_1, tmp_2, tmp0_elvis_lhs == null ? this.nop_1.sop_1.soj(strings_getInstance().xmi_1) : tmp0_elvis_lhs)); } this.id_1 = 3; continue $sm; } else { throw this.ld_1; } case 3: this.jd_1 = 4; return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 4) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function OpenBlobUiUseCase(openBlobUseCase, systemImpl) { this.rop_1 = openBlobUseCase; this.sop_1 = systemImpl; } protoOf(OpenBlobUiUseCase).uop = function (openItem, onUiUpdate, intent, $completion) { var tmp = new $invokeCOROUTINE$16(this, openItem, onUiUpdate, intent, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; var OpenBlobIntent_VIEW_instance; var OpenBlobIntent_SEND_instance; var OpenBlobIntent_entriesInitialized; function OpenBlobIntent_initEntries() { if (OpenBlobIntent_entriesInitialized) return Unit_instance; OpenBlobIntent_entriesInitialized = true; OpenBlobIntent_VIEW_instance = new OpenBlobIntent('VIEW', 0); OpenBlobIntent_SEND_instance = new OpenBlobIntent('SEND', 1); } function OpenBlobIntent(name, ordinal) { Enum.call(this, name, ordinal); } function OpenBlobIntent_VIEW_getInstance() { OpenBlobIntent_initEntries(); return OpenBlobIntent_VIEW_instance; } function OpenBlobIntent_SEND_getInstance() { OpenBlobIntent_initEntries(); return OpenBlobIntent_SEND_instance; } function OpenBlobUseCase() { } function OpeningBlobState(item, bytesReady, totalBytes, error) { error = error === VOID ? null : error; this.vop_1 = item; this.wop_1 = bytesReady; this.xop_1 = totalBytes; this.yop_1 = error; } protoOf(OpeningBlobState).toString = function () { return 'OpeningBlobState(item=' + this.vop_1 + ', bytesReady=' + this.wop_1.toString() + ', totalBytes=' + this.xop_1.toString() + ', error=' + this.yop_1 + ')'; }; protoOf(OpeningBlobState).hashCode = function () { var result = this.vop_1.hashCode(); result = imul(result, 31) + this.wop_1.hashCode() | 0; result = imul(result, 31) + this.xop_1.hashCode() | 0; result = imul(result, 31) + (this.yop_1 == null ? 0 : getStringHashCode(this.yop_1)) | 0; return result; }; protoOf(OpeningBlobState).equals = function (other) { if (this === other) return true; if (!(other instanceof OpeningBlobState)) return false; var tmp0_other_with_cast = other instanceof OpeningBlobState ? other : THROW_CCE(); if (!this.vop_1.equals(tmp0_other_with_cast.vop_1)) return false; if (!this.wop_1.equals(tmp0_other_with_cast.wop_1)) return false; if (!this.xop_1.equals(tmp0_other_with_cast.xop_1)) return false; if (!(this.yop_1 == tmp0_other_with_cast.yop_1)) return false; return true; }; function updateUris(_this__u8e3s4, $this, blobs, $completion) { var timeNow = systemTimeInMillis(); return withDoorTransactionAsync(_this__u8e3s4, VOID, SaveAndUploadLocalUrisUseCase$updateUris$slambda_0(blobs, _this__u8e3s4, timeNow, null), $completion); } function SaveAndUploadLocalUrisUseCase$updateUris$slambda($blobs, $this_updateUris, $timeNow, resultContinuation) { this.hoq_1 = $blobs; this.ioq_1 = $this_updateUris; this.joq_1 = $timeNow; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).dnz = function (_anonymous_parameter_0__qggqh8, $completion) { var tmp = this.enz(_anonymous_parameter_0__qggqh8, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; var tmp_0 = this; tmp_0.loq_1 = this.hoq_1; this.moq_1 = this.loq_1.w(); this.id_1 = 1; continue $sm; case 1: if (!this.moq_1.f()) { this.id_1 = 4; continue $sm; } this.noq_1 = this.moq_1.e(); var tmp_1 = this; tmp_1.ooq_1 = this.noq_1; this.poq_1 = this.ooq_1.roq_1; if (this.poq_1 === 90) { this.id_1 = 2; suspendResult = this.ioq_1.t7e().eca(this.ooq_1.qoq_1, this.ooq_1.toq_1, this.joq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: this.id_1 = 1; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).enz = function (_anonymous_parameter_0__qggqh8, completion) { var i = new SaveAndUploadLocalUrisUseCase$updateUris$slambda(this.hoq_1, this.ioq_1, this.joq_1, completion); i.koq_1 = _anonymous_parameter_0__qggqh8; return i; }; function SaveAndUploadLocalUrisUseCase$updateUris$slambda_0($blobs, $this_updateUris, $timeNow, resultContinuation) { var i = new SaveAndUploadLocalUrisUseCase$updateUris$slambda($blobs, $this_updateUris, $timeNow, resultContinuation); var l = function (_anonymous_parameter_0__qggqh8, $completion) { return i.dnz(_anonymous_parameter_0__qggqh8, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$17(_this__u8e3s4, localUrisToSave, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gor_1 = _this__u8e3s4; this.hor_1 = localUrisToSave; } protoOf($invokeCOROUTINE$17).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.id_1 = 1; suspendResult = this.gor_1.kor_1.oor(this.hor_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ior_1 = suspendResult; this.jor_1 = this.gor_1.lor_1; if (!(this.jor_1 == null)) { this.id_1 = 3; suspendResult = updateUris(this.gor_1.mor_1, this.gor_1, this.ior_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; var tmp0_elvis_lhs = this.gor_1.nor_1; suspendResult = updateUris(tmp0_elvis_lhs == null ? this.gor_1.mor_1 : tmp0_elvis_lhs, this.gor_1, this.ior_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.id_1 = 5; continue $sm; case 3: this.id_1 = 4; var this_0 = this.ior_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); var tmp0_blobUrl = item.toq_1; var tmp1_entityUid = item.qoq_1; var tmp2_tableId = item.roq_1; var tmp3_retentionLockIdToRelease = item.uoq_1; destination.i1(new EnqueueBlobUploadItem(tmp0_blobUrl, tmp2_tableId, tmp1_entityUid, tmp3_retentionLockIdToRelease)); } suspendResult = this.jor_1.por(destination, randomUuidAsString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.id_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SaveAndUploadLocalUrisUseCase(saveLocalUrisAsBlobsUseCase, enqueueBlobUploadClientUseCase, activeDb, activeRepo) { this.kor_1 = saveLocalUrisAsBlobsUseCase; this.lor_1 = enqueueBlobUploadClientUseCase; this.mor_1 = activeDb; this.nor_1 = activeRepo; } protoOf(SaveAndUploadLocalUrisUseCase).qor = function (localUrisToSave, $completion) { var tmp = new $invokeCOROUTINE$17(this, localUrisToSave, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function Companion_33() { } protoOf(Companion_33).o4r = function () { return $serializer_getInstance_44(); }; var Companion_instance_81; function Companion_getInstance_51() { return Companion_instance_81; } function $serializer_32() { $serializer_instance_32 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.blob.savelocaluris.SaveLocalUrisAsBlobsUseCase.SavedBlob', this, 8); tmp0_serialDesc.u4f('entityUid', false); tmp0_serialDesc.u4f('tableId', false); tmp0_serialDesc.u4f('localUri', false); tmp0_serialDesc.u4f('blobUrl', false); tmp0_serialDesc.u4f('retentionLockId', true); tmp0_serialDesc.u4f('integrity', false); tmp0_serialDesc.u4f('mimeType', false); tmp0_serialDesc.u4f('storageSize', false); this.ror_1 = tmp0_serialDesc; } protoOf($serializer_32).r44 = function () { return this.ror_1; }; protoOf($serializer_32).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_32).t44 = function (decoder) { var tmp0_desc = this.ror_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = 0; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.j48(tmp0_desc); if (tmp12_input.y48()) { tmp4_local0 = tmp12_input.p48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.p48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.t48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.t48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.p48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.p48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.p48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.t48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.t48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.p48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.k48(tmp0_desc); return SavedBlob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_32).sor = function (encoder, value) { var tmp0_desc = this.ror_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.t49(tmp0_desc, 0, value.qoq_1); tmp1_output.s49(tmp0_desc, 1, value.roq_1); tmp1_output.x49(tmp0_desc, 2, value.soq_1); tmp1_output.x49(tmp0_desc, 3, value.toq_1); if (tmp1_output.f4a(tmp0_desc, 4) ? true : !value.uoq_1.equals(new Long(0, 0))) { tmp1_output.t49(tmp0_desc, 4, value.uoq_1); } tmp1_output.x49(tmp0_desc, 5, value.voq_1); tmp1_output.x49(tmp0_desc, 6, value.woq_1); tmp1_output.t49(tmp0_desc, 7, value.xoq_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_32).s44 = function (encoder, value) { return this.sor(encoder, value instanceof SavedBlob ? value : THROW_CCE()); }; var $serializer_instance_32; function $serializer_getInstance_44() { if ($serializer_instance_32 == null) new $serializer_32(); return $serializer_instance_32; } function SavedBlob_init_$Init$(seen1, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, serializationConstructorMarker, $this) { if (!(239 === (239 & seen1))) { throwMissingFieldException(seen1, 239, $serializer_getInstance_44().ror_1); } $this.qoq_1 = entityUid; $this.roq_1 = tableId; $this.soq_1 = localUri; $this.toq_1 = blobUrl; if (0 === (seen1 & 16)) $this.uoq_1 = new Long(0, 0); else $this.uoq_1 = retentionLockId; $this.voq_1 = integrity; $this.woq_1 = mimeType; $this.xoq_1 = storageSize; return $this; } function SavedBlob_init_$Create$(seen1, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, serializationConstructorMarker) { return SavedBlob_init_$Init$(seen1, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, serializationConstructorMarker, objectCreate(protoOf(SavedBlob))); } function SaveLocalUriAsBlobItem(localUri, entityUid, tableId, mimeType, deleteLocalUriAfterSave, createRetentionLock, extraHeaders) { entityUid = entityUid === VOID ? new Long(0, 0) : entityUid; tableId = tableId === VOID ? 0 : tableId; mimeType = mimeType === VOID ? null : mimeType; deleteLocalUriAfterSave = deleteLocalUriAfterSave === VOID ? false : deleteLocalUriAfterSave; createRetentionLock = createRetentionLock === VOID ? false : createRetentionLock; extraHeaders = extraHeaders === VOID ? Companion_instance_138.c4e() : extraHeaders; this.tor_1 = localUri; this.uor_1 = entityUid; this.vor_1 = tableId; this.wor_1 = mimeType; this.xor_1 = deleteLocalUriAfterSave; this.yor_1 = createRetentionLock; this.zor_1 = extraHeaders; } protoOf(SaveLocalUriAsBlobItem).toString = function () { return 'SaveLocalUriAsBlobItem(localUri=' + this.tor_1 + ', entityUid=' + this.uor_1.toString() + ', tableId=' + this.vor_1 + ', mimeType=' + this.wor_1 + ', deleteLocalUriAfterSave=' + this.xor_1 + ', createRetentionLock=' + this.yor_1 + ', extraHeaders=' + this.zor_1 + ')'; }; protoOf(SaveLocalUriAsBlobItem).hashCode = function () { var result = getStringHashCode(this.tor_1); result = imul(result, 31) + this.uor_1.hashCode() | 0; result = imul(result, 31) + this.vor_1 | 0; result = imul(result, 31) + (this.wor_1 == null ? 0 : getStringHashCode(this.wor_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xor_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yor_1) | 0; result = imul(result, 31) + hashCode(this.zor_1) | 0; return result; }; protoOf(SaveLocalUriAsBlobItem).equals = function (other) { if (this === other) return true; if (!(other instanceof SaveLocalUriAsBlobItem)) return false; var tmp0_other_with_cast = other instanceof SaveLocalUriAsBlobItem ? other : THROW_CCE(); if (!(this.tor_1 === tmp0_other_with_cast.tor_1)) return false; if (!this.uor_1.equals(tmp0_other_with_cast.uor_1)) return false; if (!(this.vor_1 === tmp0_other_with_cast.vor_1)) return false; if (!(this.wor_1 == tmp0_other_with_cast.wor_1)) return false; if (!(this.xor_1 === tmp0_other_with_cast.xor_1)) return false; if (!(this.yor_1 === tmp0_other_with_cast.yor_1)) return false; if (!equals(this.zor_1, tmp0_other_with_cast.zor_1)) return false; return true; }; function SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { retentionLockId = retentionLockId === VOID ? new Long(0, 0) : retentionLockId; this.qoq_1 = entityUid; this.roq_1 = tableId; this.soq_1 = localUri; this.toq_1 = blobUrl; this.uoq_1 = retentionLockId; this.voq_1 = integrity; this.woq_1 = mimeType; this.xoq_1 = storageSize; } protoOf(SavedBlob).aos = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { return new SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).bos = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, $super) { entityUid = entityUid === VOID ? this.qoq_1 : entityUid; tableId = tableId === VOID ? this.roq_1 : tableId; localUri = localUri === VOID ? this.soq_1 : localUri; blobUrl = blobUrl === VOID ? this.toq_1 : blobUrl; retentionLockId = retentionLockId === VOID ? this.uoq_1 : retentionLockId; integrity = integrity === VOID ? this.voq_1 : integrity; mimeType = mimeType === VOID ? this.woq_1 : mimeType; storageSize = storageSize === VOID ? this.xoq_1 : storageSize; return $super === VOID ? this.aos(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) : $super.aos.call(this, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).toString = function () { return 'SavedBlob(entityUid=' + this.qoq_1.toString() + ', tableId=' + this.roq_1 + ', localUri=' + this.soq_1 + ', blobUrl=' + this.toq_1 + ', retentionLockId=' + this.uoq_1.toString() + ', integrity=' + this.voq_1 + ', mimeType=' + this.woq_1 + ', storageSize=' + this.xoq_1.toString() + ')'; }; protoOf(SavedBlob).hashCode = function () { var result = this.qoq_1.hashCode(); result = imul(result, 31) + this.roq_1 | 0; result = imul(result, 31) + getStringHashCode(this.soq_1) | 0; result = imul(result, 31) + getStringHashCode(this.toq_1) | 0; result = imul(result, 31) + this.uoq_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.voq_1) | 0; result = imul(result, 31) + getStringHashCode(this.woq_1) | 0; result = imul(result, 31) + this.xoq_1.hashCode() | 0; return result; }; protoOf(SavedBlob).equals = function (other) { if (this === other) return true; if (!(other instanceof SavedBlob)) return false; var tmp0_other_with_cast = other instanceof SavedBlob ? other : THROW_CCE(); if (!this.qoq_1.equals(tmp0_other_with_cast.qoq_1)) return false; if (!(this.roq_1 === tmp0_other_with_cast.roq_1)) return false; if (!(this.soq_1 === tmp0_other_with_cast.soq_1)) return false; if (!(this.toq_1 === tmp0_other_with_cast.toq_1)) return false; if (!this.uoq_1.equals(tmp0_other_with_cast.uoq_1)) return false; if (!(this.voq_1 === tmp0_other_with_cast.voq_1)) return false; if (!(this.woq_1 === tmp0_other_with_cast.woq_1)) return false; if (!this.xoq_1.equals(tmp0_other_with_cast.xoq_1)) return false; return true; }; function SaveLocalUrisAsBlobsUseCase$invoke$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function SaveLocalUrisAsBlobsUseCase() { } function EnqueueSavePictureUseCase() { } function imageDaoForTable(_this__u8e3s4, $this, tableId) { var tmp; if (tableId === 50) { tmp = _this__u8e3s4.g7e(); } else { if (tableId === 125) { tmp = _this__u8e3s4.e7f(); } else { if (tableId === 6677) { tmp = _this__u8e3s4.r7f(); } else { if (tableId === 6678) { tmp = _this__u8e3s4.s7f(); } else { tmp = null; } } } } return tmp; } function Companion_34() { this.eos_1 = 160; } var Companion_instance_82; function Companion_getInstance_52() { return Companion_instance_82; } function $invokeCOROUTINE$18(_this__u8e3s4, entityUid, tableId, pictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nos_1 = _this__u8e3s4; this.oos_1 = entityUid; this.pos_1 = tableId; this.qos_1 = pictureUri; } protoOf($invokeCOROUTINE$18).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 21; var tmp0_safe_receiver = this.qos_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { var tmp_1; if (charSequenceLength(tmp0_safe_receiver) === 0) { tmp_1 = null; } else { tmp_1 = tmp0_safe_receiver; } tmp_0 = tmp_1; } if (!(tmp_0 == null)) { this.ros_1 = Companion_getInstance_3().p2r(this.qos_1); this.sos_1 = this.nos_1.zot_1; if (this.sos_1 == null) { this.tos_1 = null; this.id_1 = 4; continue $sm; } else { this.id_1 = 3; suspendResult = getLocalUriIfRemote(this.sos_1, this.ros_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { var tmp_2 = this; var tmp12_elvis_lhs = this.nos_1.wot_1; tmp_2.uos_1 = imageDaoForTable(tmp12_elvis_lhs == null ? this.nos_1.vot_1 : tmp12_elvis_lhs, this.nos_1, this.pos_1); if (this.uos_1 == null) { this.vos_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.uos_1.vbi(this.oos_1, null, null, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp_3 = this; tmp_3.vos_1 = Unit_instance; this.id_1 = 2; continue $sm; case 2: this.id_1 = 20; continue $sm; case 3: this.tos_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: this.wos_1 = this.tos_1; this.xos_1 = this.wos_1 == null ? this.ros_1 : this.wos_1; this.id_1 = 5; suspendResult = this.nos_1.xot_1.aou(this.xos_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.yos_1 = suspendResult; this.id_1 = 6; suspendResult = this.nos_1.xot_1.aou(this.xos_1.toString(), VOID, new CompressParams(160, 160), VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.zos_1 = suspendResult; this.aot_1 = this.nos_1.tot_1; var tmp_4 = this; tmp_4.bot_1 = ArrayList_init_$Create$(); var tmp_5 = this; tmp_5.cot_1 = this.bot_1; if (this.yos_1 == null) null; else { this.cot_1.i1(new SaveLocalUriAsBlobItem(this.yos_1.bou_1, this.oos_1, this.pos_1, this.yos_1.cou_1, true, true)); } if (this.zos_1 == null) null; else { this.cot_1.i1(new SaveLocalUriAsBlobItem(this.zos_1.bou_1, this.oos_1, this.pos_1, this.zos_1.cou_1, true, true)); } if (this.yos_1 == null ? true : this.zos_1 == null) { this.id_1 = 7; suspendResult = isRemote(this.ros_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.dot_1 = false; this.id_1 = 8; continue $sm; } case 7: this.eot_1 = suspendResult; this.dot_1 = !this.eot_1; this.id_1 = 8; continue $sm; case 8: this.fot_1 = this.dot_1; if (this.fot_1) { this.cot_1.i1(new SaveLocalUriAsBlobItem(this.qos_1, this.oos_1, this.pos_1, VOID, VOID, true)); } this.got_1 = this.bot_1; this.hot_1 = this.got_1.f3(); this.id_1 = 9; suspendResult = this.aot_1.oor(this.hot_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.iot_1 = suspendResult; this.id_1 = 10; suspendResult = this.nos_1.yot_1.fou(listOf_0(this.qos_1), true, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp_6 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.iot_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.soq_1 === this.qos_1) { tmp$ret$0 = element; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp3_safe_receiver = tmp$ret$0; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.toq_1; tmp_6.jot_1 = tmp4_elvis_lhs == null ? this.ros_1.toString() : tmp4_elvis_lhs; var tmp_7 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_0 = this.iot_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = this.yos_1; if (element_0.soq_1 === (tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.bou_1)) { tmp$ret$2 = element_0; break l$ret$3; } } tmp$ret$2 = null; } while (false); var tmp5_safe_receiver = tmp$ret$2; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.toq_1; tmp_7.kot_1 = tmp6_elvis_lhs == null ? this.jot_1 : tmp6_elvis_lhs; var tmp_8 = this; var tmp$ret$4; l$ret$5: do { var tmp0_iterator_1 = this.iot_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_1 = this.zos_1; if (element_1.soq_1 === (tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.bou_1)) { tmp$ret$4 = element_1; break l$ret$5; } } tmp$ret$4 = null; } while (false); var tmp7_safe_receiver = tmp$ret$4; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.toq_1; tmp_8.lot_1 = tmp8_elvis_lhs == null ? this.jot_1 : tmp8_elvis_lhs; if (!(this.nos_1.uot_1 == null)) { if (this.yos_1 == null ? true : this.zos_1 == null) { this.id_1 = 13; suspendResult = isRemote(this.ros_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.not_1 = false; this.id_1 = 14; continue $sm; } } else { var tmp_9 = this; var tmp10_elvis_lhs = this.nos_1.wot_1; tmp_9.oot_1 = imageDaoForTable(tmp10_elvis_lhs == null ? this.nos_1.vot_1 : tmp10_elvis_lhs, this.nos_1, this.pos_1); if (this.oot_1 == null) { this.pot_1 = null; this.id_1 = 12; continue $sm; } else { this.id_1 = 11; suspendResult = this.oot_1.vbi(this.oos_1, this.kot_1, this.lot_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 11: var tmp_10 = this; tmp_10.pot_1 = Unit_instance; this.id_1 = 12; continue $sm; case 12: this.id_1 = 19; continue $sm; case 13: this.not_1 = suspendResult; this.id_1 = 14; continue $sm; case 14: if (this.not_1) { var tmp_11 = this; tmp_11.mot_1 = new EnqueueBlobUploadItem(this.ros_1.toString(), this.pos_1, this.oos_1, new Long(0, 0)); this.id_1 = 15; continue $sm; } else { var tmp_12 = this; tmp_12.mot_1 = null; this.id_1 = 15; continue $sm; } case 15: this.qot_1 = this.mot_1; this.rot_1 = imageDaoForTable(this.nos_1.vot_1, this.nos_1, this.pos_1); if (this.rot_1 == null) { this.sot_1 = null; this.id_1 = 17; continue $sm; } else { this.id_1 = 16; suspendResult = this.rot_1.vbi(this.oos_1, this.kot_1, this.lot_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: var tmp_13 = this; tmp_13.sot_1 = Unit_instance; this.id_1 = 17; continue $sm; case 17: Napier_getInstance().j5e('SavePictureUseCase: Set picture url = ' + this.kot_1 + ' on entity=' + this.oos_1.toString() + ' table=' + this.pos_1); this.id_1 = 18; var this_0 = this.iot_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator_2 = this_0.w(); while (tmp0_iterator_2.f()) { var item = tmp0_iterator_2.e(); destination.i1(new EnqueueBlobUploadItem(item.toq_1, this.pos_1, this.oos_1, item.uoq_1)); } var this_1 = listOf_0(this.qot_1); var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_3 = this_1.w(); while (tmp0_iterator_3.f()) { var element_2 = tmp0_iterator_3.e(); if (element_2 == null) null; else { destination_0.i1(element_2); } } suspendResult = this.nos_1.uot_1.por(plus(destination, destination_0), randomUuidAsString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 18: this.id_1 = 19; continue $sm; case 19: this.id_1 = 20; continue $sm; case 20: return Unit_instance; case 21: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 21) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SavePictureUseCase(saveLocalUrisAsBlobUseCase, enqueueBlobUploadClientUseCase, db, repo, compressImageUseCase, deleteUrisUseCase, getStoragePathForUrlUseCase) { getStoragePathForUrlUseCase = getStoragePathForUrlUseCase === VOID ? null : getStoragePathForUrlUseCase; this.tot_1 = saveLocalUrisAsBlobUseCase; this.uot_1 = enqueueBlobUploadClientUseCase; this.vot_1 = db; this.wot_1 = repo; this.xot_1 = compressImageUseCase; this.yot_1 = deleteUrisUseCase; this.zot_1 = getStoragePathForUrlUseCase; } protoOf(SavePictureUseCase).dos = function (entityUid, tableId, pictureUri, $completion) { var tmp = new $invokeCOROUTINE$18(this, entityUid, tableId, pictureUri, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function TransferJobItemStatusUpdater$commit$slambda$lambda($updateTransferJobStatusUid, $numUpdates) { return function () { return 'TransferJobItemStatusUpdater: update status complete for ' + ('' + $updateTransferJobStatusUid + ' updates=' + $numUpdates); }; } function TransferJobItemStatusUpdater$updateJob$slambda(this$0, resultContinuation) { this.oou_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$updateJob$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TransferJobItemStatusUpdater$updateJob$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemStatusUpdater$updateJob$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: if (!get_isActive(this.pou_1)) { this.id_1 = 4; continue $sm; } this.id_1 = 2; suspendResult = delay(this.oou_1.sou_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 3; suspendResult = this.oou_1.xou(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 1; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(TransferJobItemStatusUpdater$updateJob$slambda).w1m = function ($this$launch, completion) { var i = new TransferJobItemStatusUpdater$updateJob$slambda(this.oou_1, completion); i.pou_1 = $this$launch; return i; }; function TransferJobItemStatusUpdater$updateJob$slambda_0(this$0, resultContinuation) { var i = new TransferJobItemStatusUpdater$updateJob$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function TransferJobItemStatusUpdater$commit$slambda($progressUpdatesToCommit, this$0, $statusUpdatesToCommit, $repoNodeId, $updateTransferJobStatusUid, resultContinuation) { this.gov_1 = $progressUpdatesToCommit; this.hov_1 = this$0; this.iov_1 = $statusUpdatesToCommit; this.jov_1 = $repoNodeId; this.kov_1 = $updateTransferJobStatusUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$commit$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 11; var tmp_0 = this; tmp_0.mov_1 = this.gov_1; this.nov_1 = this.mov_1.w(); this.id_1 = 1; continue $sm; case 1: if (!this.nov_1.f()) { this.id_1 = 3; continue $sm; } this.oov_1 = this.nov_1.e(); var tmp_1 = this; tmp_1.pov_1 = this.oov_1; this.id_1 = 2; suspendResult = this.hov_1.qou_1.l7f().xie(this.pov_1.uoo_1.qoo_1, this.pov_1.voo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 1; continue $sm; case 3: var tmp_2 = this; tmp_2.qov_1 = this.iov_1; this.rov_1 = this.qov_1.w(); this.id_1 = 4; continue $sm; case 4: if (!this.rov_1.f()) { this.id_1 = 8; continue $sm; } this.sov_1 = this.rov_1.e(); var tmp_3 = this; tmp_3.tov_1 = this.sov_1; this.id_1 = 5; suspendResult = this.hov_1.qou_1.l7f().yie(this.tov_1.woo_1.qoo_1, this.tov_1.xoo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: if (this.tov_1.xoo_1 === TransferJobItemStatus_COMPLETE_getInstance().skb_1 ? !(this.jov_1 == null) : false) { this.id_1 = 6; suspendResult = this.hov_1.qou_1.l7f().zie(this.jov_1, this.tov_1.woo_1.qoo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 7; continue $sm; } case 6: this.id_1 = 7; continue $sm; case 7: this.id_1 = 4; continue $sm; case 8: if (!(this.kov_1 === 0)) { this.id_1 = 9; suspendResult = this.hov_1.qou_1.k7f().nic(this.kov_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 10; continue $sm; } case 9: var numUpdates = suspendResult; var tmp_4 = Napier_getInstance(); tmp_4.l5e(VOID, VOID, TransferJobItemStatusUpdater$commit$slambda$lambda(this.kov_1, numUpdates)); this.id_1 = 10; continue $sm; case 10: return Unit_instance; case 11: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 11) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).enz = function (it, completion) { var i = new TransferJobItemStatusUpdater$commit$slambda(this.gov_1, this.hov_1, this.iov_1, this.jov_1, this.kov_1, completion); i.lov_1 = it; return i; }; function TransferJobItemStatusUpdater$commit$slambda_0($progressUpdatesToCommit, this$0, $statusUpdatesToCommit, $repoNodeId, $updateTransferJobStatusUid, resultContinuation) { var i = new TransferJobItemStatusUpdater$commit$slambda($progressUpdatesToCommit, this$0, $statusUpdatesToCommit, $repoNodeId, $updateTransferJobStatusUid, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function $commitCOROUTINE$19(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cow_1 = _this__u8e3s4; this.dow_1 = updateTransferJobStatusUid; } protoOf($commitCOROUTINE$19).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.eow_1 = this.cow_1.uou_1.atomicfu$getAndSet(emptyList()); this.fow_1 = this.cow_1.vou_1.atomicfu$getAndSet(emptyList()); var tmp_0 = this; var this_0 = this.eow_1; var map = LinkedHashMap_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var key = element.uoo_1.qoo_1; map.s(key, element); } tmp_0.gow_1 = toList(map.p2()); var tmp_1 = this; var this_1 = this.fow_1; var map_0 = LinkedHashMap_init_$Create$(); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var key_0 = element_0.woo_1.qoo_1; map_0.s(key_0, element_0); } tmp_1.how_1 = toList(map_0.p2()); var tmp_2 = this; var tmp_3 = this.cow_1.rou_1; var tmp0_safe_receiver = (!(tmp_3 == null) ? isInterface(tmp_3, DoorDatabaseRepository) : false) ? tmp_3 : null; tmp_2.iow_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n61(); var tmp_4 = this; var this_2 = this.cow_1.qou_1; var tmp_5; var tmp_6; var tmp_7; if (!this.gow_1.c1()) { tmp_7 = true; } else { tmp_7 = !this.how_1.c1(); } if (tmp_7) { tmp_6 = true; } else { tmp_6 = !(this.dow_1 === 0); } if (tmp_6) { tmp_5 = this_2; } else { tmp_5 = null; } tmp_4.jow_1 = tmp_5; if (this.jow_1 == null) { this.kow_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = withDoorTransactionAsync(this.jow_1, VOID, TransferJobItemStatusUpdater$commit$slambda_0(this.gow_1, this.cow_1, this.how_1, this.iow_1, this.dow_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_8 = this; tmp_8.kow_1 = Unit_instance; this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $onFinishedCOROUTINE$20(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tow_1 = _this__u8e3s4; this.uow_1 = updateTransferJobStatusUid; } protoOf($onFinishedCOROUTINE$20).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (!this.tow_1.tou_1.atomicfu$getAndSet(true)) { this.tow_1.wou_1.nr(); this.id_1 = 1; suspendResult = this.tow_1.vow(this.uow_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function TransferJobItemStatusUpdater(db, repo, scope, commitInterval) { commitInterval = commitInterval === VOID ? new Long(500, 0) : commitInterval; this.qou_1 = db; this.rou_1 = repo; this.sou_1 = commitInterval; this.tou_1 = atomic$boolean$1(false); this.uou_1 = atomic$ref$1(emptyList()); this.vou_1 = atomic$ref$1(emptyList()); var tmp = this; tmp.wou_1 = launch(scope, VOID, VOID, TransferJobItemStatusUpdater$updateJob$slambda_0(this, null)); } protoOf(TransferJobItemStatusUpdater).wow = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.uou_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.blob.transferjobitem.TransferJobItemStatusUpdater.onProgressUpdate.' call var upd = plus_1(cur, update); if (this_0.atomicfu$compareAndSet(cur, upd)) { break $l$block; } } } }; protoOf(TransferJobItemStatusUpdater).xow = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.vou_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.blob.transferjobitem.TransferJobItemStatusUpdater.onStatusUpdate.' call var upd = plus_1(cur, update); if (this_0.atomicfu$compareAndSet(cur, upd)) { break $l$block; } } } }; protoOf(TransferJobItemStatusUpdater).vow = function (updateTransferJobStatusUid, $completion) { var tmp = new $commitCOROUTINE$19(this, updateTransferJobStatusUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TransferJobItemStatusUpdater).xou = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.vow(updateTransferJobStatusUid, $completion) : $super.vow.call(this, updateTransferJobStatusUid, $completion); }; protoOf(TransferJobItemStatusUpdater).yow = function (updateTransferJobStatusUid, $completion) { var tmp = new $onFinishedCOROUTINE$20(this, updateTransferJobStatusUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TransferJobItemStatusUpdater).zow = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.yow(updateTransferJobStatusUid, $completion) : $super.yow.call(this, updateTransferJobStatusUid, $completion); }; function $invokeCOROUTINE$21(_this__u8e3s4, db, tableId, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.iox_1 = _this__u8e3s4; this.jox_1 = db; this.kox_1 = tableId; this.lox_1 = entityUid; this.mox_1 = transferJobItemUid; } protoOf($invokeCOROUTINE$21).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.nox_1 = this.kox_1; if (this.nox_1 === 50) { this.id_1 = 2; suspendResult = this.jox_1.g7e().jbq(this.lox_1, this.mox_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.nox_1 === 738) { this.id_1 = 1; suspendResult = this.jox_1.j7f().jbq(this.lox_1, this.mox_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } } case 1: this.id_1 = 3; continue $sm; case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function UpdateTransferJobItemEtagUseCase() { } protoOf(UpdateTransferJobItemEtagUseCase).oox = function (db, tableId, entityUid, transferJobItemUid, $completion) { var tmp = new $invokeCOROUTINE$21(this, db, tableId, entityUid, transferJobItemUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function Companion_35() { this.pox_1 = 'X-Blob-Response-'; this.qox_1 = 'Blob-Upload-Batch-Uuid'; } var Companion_instance_83; function Companion_getInstance_53() { return Companion_instance_83; } function CancelBlobUploadClientUseCase() { } function EnqueueBlobUploadItem(blobUrl, tableId, entityUid, retentionLockIdToRelease) { tableId = tableId === VOID ? 0 : tableId; entityUid = entityUid === VOID ? new Long(0, 0) : entityUid; retentionLockIdToRelease = retentionLockIdToRelease === VOID ? new Long(0, 0) : retentionLockIdToRelease; this.rox_1 = blobUrl; this.sox_1 = tableId; this.tox_1 = entityUid; this.uox_1 = retentionLockIdToRelease; } protoOf(EnqueueBlobUploadItem).toString = function () { return 'EnqueueBlobUploadItem(blobUrl=' + this.rox_1 + ', tableId=' + this.sox_1 + ', entityUid=' + this.tox_1.toString() + ', retentionLockIdToRelease=' + this.uox_1.toString() + ')'; }; protoOf(EnqueueBlobUploadItem).hashCode = function () { var result = getStringHashCode(this.rox_1); result = imul(result, 31) + this.sox_1 | 0; result = imul(result, 31) + this.tox_1.hashCode() | 0; result = imul(result, 31) + this.uox_1.hashCode() | 0; return result; }; protoOf(EnqueueBlobUploadItem).equals = function (other) { if (this === other) return true; if (!(other instanceof EnqueueBlobUploadItem)) return false; var tmp0_other_with_cast = other instanceof EnqueueBlobUploadItem ? other : THROW_CCE(); if (!(this.rox_1 === tmp0_other_with_cast.rox_1)) return false; if (!(this.sox_1 === tmp0_other_with_cast.sox_1)) return false; if (!this.tox_1.equals(tmp0_other_with_cast.tox_1)) return false; if (!this.uox_1.equals(tmp0_other_with_cast.uox_1)) return false; return true; }; function EnqueueBlobUploadClientUseCase() { } function getLocalUriIfRemote(_this__u8e3s4, uri, $completion) { var tmp = new $getLocalUriIfRemoteCOROUTINE$22(_this__u8e3s4, uri, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function $getLocalUriIfRemoteCOROUTINE$22(_this__u8e3s4, uri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eoy_1 = _this__u8e3s4; this.foy_1 = uri; } protoOf($getLocalUriIfRemoteCOROUTINE$22).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = isRemote(this.foy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (suspendResult) { this.hoy_1 = Companion_getInstance_3(); this.id_1 = 2; suspendResult = this.eoy_1.ioy(this.foy_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0 = this; tmp_0.goy_1 = this.foy_1; this.id_1 = 3; continue $sm; } case 2: var ARGUMENT = suspendResult; var ARGUMENT_0 = ARGUMENT.joy_1; this.goy_1 = this.hoy_1.p2r(ARGUMENT_0); this.id_1 = 3; continue $sm; case 3: return this.goy_1; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function GetStoragePathForUrlUseCase$invoke$lambda(it) { return Unit_instance; } function GetStoragePathForUrlUseCase() { } function CreateNewClazzUseCase$invoke$slambda($clazz, this$0, resultContinuation) { this.uoy_1 = $clazz; this.voy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CreateNewClazzUseCase$invoke$slambda).ook = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CreateNewClazzUseCase$invoke$slambda).ie = function (p1, $completion) { return this.ook(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CreateNewClazzUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var this_0 = this.uoy_1; var tmp_0; if (this_0.p8e_1 == null) { tmp_0 = this_0; } else { tmp_0 = null; } var tmp0_safe_receiver = tmp_0; if (tmp0_safe_receiver != null) { var tmp_1 = tmp0_safe_receiver; Companion_getInstance_4(); tmp_1.p8e_1 = randomString(6); } this.id_1 = 1; suspendResult = this.voy_1.yoy_1.p7d().insertAsync(this.uoy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xoy_1 = suspendResult; this.id_1 = 2; var tmp_2 = this.voy_1.yoy_1.p7f(); var tmp_3 = this.uoy_1.s8d_1; Companion_getInstance_5(); suspendResult = tmp_2.edk(new CoursePermission(VOID, VOID, tmp_3, 1001, VOID, VOID, new Long(8703, 0)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 3; var tmp_4 = this.voy_1.yoy_1.p7f(); var tmp_5 = this.uoy_1.s8d_1; Companion_getInstance_5(); suspendResult = tmp_4.edk(new CoursePermission(VOID, VOID, tmp_5, 1000, VOID, VOID, new Long(8193, 0)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.xoy_1; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CreateNewClazzUseCase$invoke$slambda).enz = function (it, completion) { var i = new CreateNewClazzUseCase$invoke$slambda(this.uoy_1, this.voy_1, completion); i.woy_1 = it; return i; }; function CreateNewClazzUseCase$invoke$slambda_0($clazz, this$0, resultContinuation) { var i = new CreateNewClazzUseCase$invoke$slambda($clazz, this$0, resultContinuation); var l = function (it, $completion) { return i.ook(it, $completion); }; l.$arity = 1; return l; } function CreateNewClazzUseCase(repoOrDb) { this.yoy_1 = repoOrDb; } protoOf(CreateNewClazzUseCase).zoy = function (clazz, $completion) { return withDoorTransactionAsync(this.yoy_1, VOID, CreateNewClazzUseCase$invoke$slambda_0(clazz, this, null), $completion); }; function AlreadyEnroledInClassException() { Exception_init_$Init$_0(this); captureStack(this, AlreadyEnroledInClassException); } function AlreadyHasPendingRequestException() { IllegalStateException_init_$Init$_0(this); captureStack(this, AlreadyHasPendingRequestException); } function ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda($approved, this$0, $enrolmentRequest, $effectiveClazz, resultContinuation) { this.ioz_1 = $approved; this.joz_1 = this$0; this.koz_1 = $enrolmentRequest; this.loz_1 = $effectiveClazz; CoroutineImpl.call(this, resultContinuation); } protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; if (this.ioz_1) { this.id_1 = 1; var tmp_0 = this.koz_1.mey_1; var tmp_1 = this.koz_1.oey_1; var tmp_2 = ClazzEnrolment_init_$Create$(tmp_0, tmp_1, 1000); var tmp0_elvis_lhs = this.loz_1.k8e_1; suspendResult = this.joz_1.roz_1.uoz(tmp_2, tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_3 = this; tmp_3.noz_1 = 3; this.id_1 = 2; continue $sm; } case 1: var tmp_4 = this; tmp_4.noz_1 = 2; this.id_1 = 2; continue $sm; case 2: this.ooz_1 = this.noz_1; this.id_1 = 3; var tmp1_elvis_lhs = this.joz_1.qoz_1; suspendResult = (tmp1_elvis_lhs == null ? this.joz_1.poz_1 : tmp1_elvis_lhs).o7f().vex(this.koz_1.ley_1, this.ooz_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).enz = function (it, completion) { var i = new ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda(this.ioz_1, this.joz_1, this.koz_1, this.loz_1, completion); i.moz_1 = it; return i; }; function ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda_0($approved, this$0, $enrolmentRequest, $effectiveClazz, resultContinuation) { var i = new ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda($approved, this$0, $enrolmentRequest, $effectiveClazz, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$23(_this__u8e3s4, enrolmentRequest, approved, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dp0_1 = _this__u8e3s4; this.ep0_1 = enrolmentRequest; this.fp0_1 = approved; } protoOf($invokeCOROUTINE$23).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.dp0_1.poz_1.p7d().t8c(this.ep0_1.mey_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gp0_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.gp0_1 == null) { throw IllegalStateException_init_$Create$('Class does not exist'); } else { tmp_1 = this.gp0_1; } tmp_0.hp0_1 = tmp_1; this.id_1 = 2; var tmp1_elvis_lhs = this.dp0_1.qoz_1; var tmp_2 = tmp1_elvis_lhs == null ? this.dp0_1.poz_1 : tmp1_elvis_lhs; suspendResult = withDoorTransactionAsync(tmp_2, VOID, ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda_0(this.fp0_1, this.dp0_1, this.ep0_1, this.hp0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ApproveOrDeclinePendingEnrolmentUseCase(db, repo, enrolIntoCourseUseCase) { this.poz_1 = db; this.qoz_1 = repo; this.roz_1 = enrolIntoCourseUseCase; } protoOf(ApproveOrDeclinePendingEnrolmentUseCase).ip0 = function (enrolmentRequest, approved, $completion) { var tmp = new $invokeCOROUTINE$23(this, enrolmentRequest, approved, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function EnrolIntoCourseUseCase$invoke$slambda($effectiveDb, $enrolment, resultContinuation) { this.rp0_1 = $effectiveDb; this.sp0_1 = $enrolment; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolIntoCourseUseCase$invoke$slambda).ook = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).ie = function (p1, $completion) { return this.ook(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.rp0_1.u7d().insertAsync(this.sp0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).enz = function (it, completion) { var i = new EnrolIntoCourseUseCase$invoke$slambda(this.rp0_1, this.sp0_1, completion); i.tp0_1 = it; return i; }; function EnrolIntoCourseUseCase$invoke$slambda_0($effectiveDb, $enrolment, resultContinuation) { var i = new EnrolIntoCourseUseCase$invoke$slambda($effectiveDb, $enrolment, resultContinuation); var l = function (it, $completion) { return i.ook(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$24(_this__u8e3s4, enrolment, timeZoneId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cp1_1 = _this__u8e3s4; this.dp1_1 = enrolment; this.ep1_1 = timeZoneId; } protoOf($invokeCOROUTINE$24).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; var tmp0_elvis_lhs = this.cp1_1.toz_1; suspendResult = (tmp0_elvis_lhs == null ? this.cp1_1.soz_1 : tmp0_elvis_lhs).u7d().j93(this.dp1_1.e8i_1, this.dp1_1.d8i_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fp1_1 = suspendResult; if (!this.fp1_1.c1()) { throw new AlreadyEnroledInClassException(); } this.dp1_1.f8i_1 = toLocalMidnight(Companion_getInstance_6().mmh(this.dp1_1.f8i_1), this.ep1_1).lmh(); if (this.dp1_1.g8i_1.c7(get_UNSET_DISTANT_FUTURE()) < 0) { this.dp1_1.g8i_1 = toLocalEndOfDay(Companion_getInstance_6().mmh(this.dp1_1.g8i_1), this.ep1_1).lmh(); } var tmp_0 = this; var tmp1_elvis_lhs = this.cp1_1.toz_1; tmp_0.gp1_1 = tmp1_elvis_lhs == null ? this.cp1_1.soz_1 : tmp1_elvis_lhs; this.id_1 = 2; suspendResult = withDoorTransactionAsync(this.gp1_1, VOID, EnrolIntoCourseUseCase$invoke$slambda_0(this.gp1_1, this.dp1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function EnrolIntoCourseUseCase(db, repo) { this.soz_1 = db; this.toz_1 = repo; } protoOf(EnrolIntoCourseUseCase).uoz = function (enrolment, timeZoneId, $completion) { var tmp = new $invokeCOROUTINE$24(this, enrolment, timeZoneId, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function IApproveOrDeclinePendingEnrolmentRequestUseCase() { } function $invokeCOROUTINE$25(_this__u8e3s4, clazzCode, person, roleId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pp1_1 = _this__u8e3s4; this.qp1_1 = clazzCode; this.rp1_1 = person; this.sp1_1 = roleId; } protoOf($invokeCOROUTINE$25).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 7; this.id_1 = 1; suspendResult = this.pp1_1.wp1_1.p7d().s8c(this.qp1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tp1_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.tp1_1 == null) { throw IllegalArgumentException_init_$Create$_0(); } else { tmp_1 = this.tp1_1; } tmp_0.up1_1 = tmp_1; this.id_1 = 2; suspendResult = this.pp1_1.wp1_1.o7f().tex(this.rp1_1.g96_1, this.up1_1.s8d_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: if (suspendResult) { throw new AlreadyHasPendingRequestException(); } else { this.id_1 = 3; continue $sm; } case 3: this.id_1 = 4; suspendResult = this.pp1_1.wp1_1.u7d().j93(this.up1_1.s8d_1, this.rp1_1.g96_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.vp1_1 = suspendResult; if (!this.vp1_1.c1()) { throw new AlreadyEnroledInClassException(); } else { this.id_1 = 5; continue $sm; } case 5: this.id_1 = 6; var tmp_2 = this.pp1_1.wp1_1.o7f(); var tmp_3 = this.up1_1.s8d_1; var tmp_4 = this.up1_1.t8d_1; var tmp_5 = this.rp1_1.g96_1; var tmp_6 = this.rp1_1.ekr(); var tmp_7 = this.rp1_1.h96_1; var tmp_8 = systemTimeInMillis(); suspendResult = tmp_2.sex(new EnrolmentRequest(VOID, tmp_3, tmp_4, tmp_5, tmp_6, VOID, tmp_7, this.sp1_1, tmp_8, 1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: return Unit_instance; case 7: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 7) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function RequestEnrolmentUseCase(activeRepo) { this.wp1_1 = activeRepo; } protoOf(RequestEnrolmentUseCase).xp1 = function (clazzCode, person, roleId, $completion) { var tmp = new $invokeCOROUTINE$25(this, clazzCode, person, roleId, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function SetClipboardStringUseCase() { } function Companion_36() { } var Companion_instance_84; function Companion_getInstance_54() { return Companion_instance_84; } function $serializer_33() { $serializer_instance_33 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.compress.CompressParams', this, 3); tmp0_serialDesc.u4f('maxWidth', true); tmp0_serialDesc.u4f('maxHeight', true); tmp0_serialDesc.u4f('compressionLevel', true); this.zp1_1 = tmp0_serialDesc; } protoOf($serializer_33).r44 = function () { return this.zp1_1; }; protoOf($serializer_33).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), CompressionLevelSerializer_getInstance()]; }; protoOf($serializer_33).t44 = function (decoder) { var tmp0_desc = this.zp1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = null; var tmp7_input = decoder.j48(tmp0_desc); if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return CompressParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_33).ap2 = function (encoder, value) { var tmp0_desc = this.zp1_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.bp2_1 === 1280)) { tmp1_output.s49(tmp0_desc, 0, value.bp2_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.cp2_1 === 1280)) { tmp1_output.s49(tmp0_desc, 1, value.cp2_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !value.dp2_1.equals(CompressionLevel_MEDIUM_getInstance())) { tmp1_output.z49(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), value.dp2_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_33).s44 = function (encoder, value) { return this.ap2(encoder, value instanceof CompressParams ? value : THROW_CCE()); }; var $serializer_instance_33; function $serializer_getInstance_45() { if ($serializer_instance_33 == null) new $serializer_33(); return $serializer_instance_33; } function CompressParams_init_$Init$(seen1, maxWidth, maxHeight, compressionLevel, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_45().zp1_1); } if (0 === (seen1 & 1)) $this.bp2_1 = 1280; else $this.bp2_1 = maxWidth; if (0 === (seen1 & 2)) $this.cp2_1 = 1280; else $this.cp2_1 = maxHeight; if (0 === (seen1 & 4)) $this.dp2_1 = CompressionLevel_MEDIUM_getInstance(); else $this.dp2_1 = compressionLevel; return $this; } function CompressParams_init_$Create$(seen1, maxWidth, maxHeight, compressionLevel, serializationConstructorMarker) { return CompressParams_init_$Init$(seen1, maxWidth, maxHeight, compressionLevel, serializationConstructorMarker, objectCreate(protoOf(CompressParams))); } function CompressParams(maxWidth, maxHeight, compressionLevel) { maxWidth = maxWidth === VOID ? 1280 : maxWidth; maxHeight = maxHeight === VOID ? 1280 : maxHeight; compressionLevel = compressionLevel === VOID ? CompressionLevel_MEDIUM_getInstance() : compressionLevel; this.bp2_1 = maxWidth; this.cp2_1 = maxHeight; this.dp2_1 = compressionLevel; } protoOf(CompressParams).toString = function () { return 'CompressParams(maxWidth=' + this.bp2_1 + ', maxHeight=' + this.cp2_1 + ', compressionLevel=' + this.dp2_1 + ')'; }; protoOf(CompressParams).hashCode = function () { var result = this.bp2_1; result = imul(result, 31) + this.cp2_1 | 0; result = imul(result, 31) + this.dp2_1.hashCode() | 0; return result; }; protoOf(CompressParams).equals = function (other) { if (this === other) return true; if (!(other instanceof CompressParams)) return false; var tmp0_other_with_cast = other instanceof CompressParams ? other : THROW_CCE(); if (!(this.bp2_1 === tmp0_other_with_cast.bp2_1)) return false; if (!(this.cp2_1 === tmp0_other_with_cast.cp2_1)) return false; if (!this.dp2_1.equals(tmp0_other_with_cast.dp2_1)) return false; return true; }; function CompressResult(uri, mimeType, originalSize, compressedSize) { this.bou_1 = uri; this.cou_1 = mimeType; this.dou_1 = originalSize; this.eou_1 = compressedSize; } protoOf(CompressResult).toString = function () { return 'CompressResult(uri=' + this.bou_1 + ', mimeType=' + this.cou_1 + ', originalSize=' + this.dou_1.toString() + ', compressedSize=' + this.eou_1.toString() + ')'; }; protoOf(CompressResult).hashCode = function () { var result = getStringHashCode(this.bou_1); result = imul(result, 31) + getStringHashCode(this.cou_1) | 0; result = imul(result, 31) + this.dou_1.hashCode() | 0; result = imul(result, 31) + this.eou_1.hashCode() | 0; return result; }; protoOf(CompressResult).equals = function (other) { if (this === other) return true; if (!(other instanceof CompressResult)) return false; var tmp0_other_with_cast = other instanceof CompressResult ? other : THROW_CCE(); if (!(this.bou_1 === tmp0_other_with_cast.bou_1)) return false; if (!(this.cou_1 === tmp0_other_with_cast.cou_1)) return false; if (!this.dou_1.equals(tmp0_other_with_cast.dou_1)) return false; if (!this.eou_1.equals(tmp0_other_with_cast.eou_1)) return false; return true; }; function CompressUseCase() { } function _get_$cachedSerializer__te6jhj($this) { return $this.fp2_1.t2(); } function CompressionLevel$Companion$_anonymous__cmsj0x() { return CompressionLevelSerializer_getInstance(); } var CompressionLevel_NONE_instance; var CompressionLevel_LOWEST_instance; var CompressionLevel_LOW_instance; var CompressionLevel_MEDIUM_instance; var CompressionLevel_HIGH_instance; var CompressionLevel_HIGHEST_instance; function Companion_37() { Companion_instance_85 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.fp2_1 = lazy(tmp_0, CompressionLevel$Companion$_anonymous__cmsj0x); } protoOf(Companion_37).gp2 = function (value) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.first' call var tmp0_iterator = get_entries().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.compress.Companion.forValue.' call if (element.jp2_1 === value) { tmp$ret$1 = element; break $l$block; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } return tmp$ret$1; }; protoOf(Companion_37).o4r = function () { return _get_$cachedSerializer__te6jhj(this); }; protoOf(Companion_37).w4g = function (typeParamsSerializers) { return this.o4r(); }; var Companion_instance_85; function Companion_getInstance_55() { CompressionLevel_initEntries(); if (Companion_instance_85 == null) new Companion_37(); return Companion_instance_85; } function values_0() { return [CompressionLevel_NONE_getInstance(), CompressionLevel_LOWEST_getInstance(), CompressionLevel_LOW_getInstance(), CompressionLevel_MEDIUM_getInstance(), CompressionLevel_HIGH_getInstance(), CompressionLevel_HIGHEST_getInstance()]; } function get_entries() { if ($ENTRIES == null) $ENTRIES = enumEntries(values_0()); return $ENTRIES; } var CompressionLevel_entriesInitialized; function CompressionLevel_initEntries() { if (CompressionLevel_entriesInitialized) return Unit_instance; CompressionLevel_entriesInitialized = true; CompressionLevel_NONE_instance = new CompressionLevel('NONE', 0, 0); CompressionLevel_LOWEST_instance = new CompressionLevel('LOWEST', 1, 1); CompressionLevel_LOW_instance = new CompressionLevel('LOW', 2, 2); CompressionLevel_MEDIUM_instance = new CompressionLevel('MEDIUM', 3, 3); CompressionLevel_HIGH_instance = new CompressionLevel('HIGH', 4, 4); CompressionLevel_HIGHEST_instance = new CompressionLevel('HIGHEST', 5, 5); Companion_getInstance_55(); } var $ENTRIES; function CompressionLevel(name, ordinal, value) { Enum.call(this, name, ordinal); this.jp2_1 = value; } function CompressionLevel_NONE_getInstance() { CompressionLevel_initEntries(); return CompressionLevel_NONE_instance; } function CompressionLevel_LOWEST_getInstance() { CompressionLevel_initEntries(); return CompressionLevel_LOWEST_instance; } function CompressionLevel_LOW_getInstance() { CompressionLevel_initEntries(); return CompressionLevel_LOW_instance; } function CompressionLevel_MEDIUM_getInstance() { CompressionLevel_initEntries(); return CompressionLevel_MEDIUM_instance; } function CompressionLevel_HIGH_getInstance() { CompressionLevel_initEntries(); return CompressionLevel_HIGH_instance; } function CompressionLevel_HIGHEST_getInstance() { CompressionLevel_initEntries(); return CompressionLevel_HIGHEST_instance; } function CompressionLevelSerializer() { CompressionLevelSerializer_instance = this; this.kp2_1 = PrimitiveSerialDescriptor('CompressionLevel', INT_getInstance()); } protoOf(CompressionLevelSerializer).r44 = function () { return this.kp2_1; }; protoOf(CompressionLevelSerializer).t44 = function (decoder) { return Companion_getInstance_55().gp2(decoder.z47()); }; protoOf(CompressionLevelSerializer).lp2 = function (encoder, value) { encoder.h49(value.jp2_1); }; protoOf(CompressionLevelSerializer).s44 = function (encoder, value) { return this.lp2(encoder, value instanceof CompressionLevel ? value : THROW_CCE()); }; var CompressionLevelSerializer_instance; function CompressionLevelSerializer_getInstance() { if (CompressionLevelSerializer_instance == null) new CompressionLevelSerializer(); return CompressionLevelSerializer_instance; } function ContentManifestMap(manifest, entryMap) { var tmp; if (entryMap === VOID) { // Inline function 'kotlin.collections.associateBy' call var this_0 = manifest.eog_1; var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16); // Inline function 'kotlin.collections.associateByTo' call var destination = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.contententry.ContentManifestMap..' call var tmp$ret$0 = UrlEncoderUtil_getInstance().zmd(element.iog_1); destination.s(tmp$ret$0, element); } tmp = destination; } else { tmp = entryMap; } entryMap = tmp; this.mp2_1 = manifest; this.np2_1 = entryMap; } protoOf(ContentManifestMap).op2 = function (manifestUrl, pathInContentEntryVersion) { return UrlKmp(manifestUrl).pp2(pathInContentEntryVersion).toString(); }; protoOf(ContentManifestMap).toString = function () { return 'ContentManifestMap(manifest=' + this.mp2_1 + ', entryMap=' + this.np2_1 + ')'; }; protoOf(ContentManifestMap).hashCode = function () { var result = this.mp2_1.hashCode(); result = imul(result, 31) + hashCode(this.np2_1) | 0; return result; }; protoOf(ContentManifestMap).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentManifestMap)) return false; var tmp0_other_with_cast = other instanceof ContentManifestMap ? other : THROW_CCE(); if (!this.mp2_1.equals(tmp0_other_with_cast.mp2_1)) return false; if (!equals(this.np2_1, tmp0_other_with_cast.np2_1)) return false; return true; }; function DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this$0, $entries, $timeNow, $activeUserPersonUid, resultContinuation) { this.yp2_1 = this$0; this.zp2_1 = $entries; this.ap3_1 = $timeNow; this.bp3_1 = $activeUserPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; var tmp_0 = this.yp2_1.hp3_1.y7d(); var this_0 = this.zp2_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(item.jp3_1); } suspendResult = tmp_0.sbd(destination, true, this.ap3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; tmp_1.dp3_1 = this.zp2_1; this.ep3_1 = this.dp3_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.ep3_1.f()) { this.id_1 = 4; continue $sm; } this.fp3_1 = this.ep3_1.e(); var tmp_2 = this; tmp_2.gp3_1 = this.fp3_1; this.id_1 = 3; suspendResult = this.yp2_1.hp3_1.n7f().deg(this.gp3_1.jp3_1, this.ap3_1, this.bp3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 2; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).enz = function (it, completion) { var i = new DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this.yp2_1, this.zp2_1, this.ap3_1, this.bp3_1, completion); i.cp3_1 = it; return i; }; function DeleteContentEntryParentChildJoinUseCase$invoke$slambda_0(this$0, $entries, $timeNow, $activeUserPersonUid, resultContinuation) { var i = new DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this$0, $entries, $timeNow, $activeUserPersonUid, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function DeleteContentEntryParentChildJoinUseCase(repoOrDb) { this.hp3_1 = repoOrDb; } protoOf(DeleteContentEntryParentChildJoinUseCase).lp3 = function (entries, activeUserPersonUid, $completion) { var timeNow = systemTimeInMillis(); return withDoorTransactionAsync(this.hp3_1, VOID, DeleteContentEntryParentChildJoinUseCase$invoke$slambda_0(this, entries, timeNow, activeUserPersonUid, null), $completion); }; function Companion_38() { this.mp3_1 = 'upload-original-filename'; } var Companion_instance_86; function Companion_getInstance_56() { return Companion_instance_86; } function ContentEntryGetMetaDataFromUriUseCase() { } function ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes) { indeterminate = indeterminate === VOID ? true : indeterminate; error = error === VOID ? null : error; processedBytes = processedBytes === VOID ? new Long(0, 0) : processedBytes; totalBytes = totalBytes === VOID ? new Long(0, 0) : totalBytes; this.op3_1 = indeterminate; this.pp3_1 = error; this.qp3_1 = processedBytes; this.rp3_1 = totalBytes; } protoOf(ContentEntryGetMetadataStatus).sp3 = function () { var tmp; if (!this.rp3_1.equals(new Long(0, 0))) { // Inline function 'kotlin.Long.times' call tmp = this.qp3_1.cb(toLong(100)).bb(this.rp3_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(ContentEntryGetMetadataStatus).tp3 = function (indeterminate, error, processedBytes, totalBytes) { return new ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).up3 = function (indeterminate, error, processedBytes, totalBytes, $super) { indeterminate = indeterminate === VOID ? this.op3_1 : indeterminate; error = error === VOID ? this.pp3_1 : error; processedBytes = processedBytes === VOID ? this.qp3_1 : processedBytes; totalBytes = totalBytes === VOID ? this.rp3_1 : totalBytes; return $super === VOID ? this.tp3(indeterminate, error, processedBytes, totalBytes) : $super.tp3.call(this, indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).toString = function () { return 'ContentEntryGetMetadataStatus(indeterminate=' + this.op3_1 + ', error=' + this.pp3_1 + ', processedBytes=' + this.qp3_1.toString() + ', totalBytes=' + this.rp3_1.toString() + ')'; }; protoOf(ContentEntryGetMetadataStatus).hashCode = function () { var result = getBooleanHashCode(this.op3_1); result = imul(result, 31) + (this.pp3_1 == null ? 0 : getStringHashCode(this.pp3_1)) | 0; result = imul(result, 31) + this.qp3_1.hashCode() | 0; result = imul(result, 31) + this.rp3_1.hashCode() | 0; return result; }; protoOf(ContentEntryGetMetadataStatus).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryGetMetadataStatus)) return false; var tmp0_other_with_cast = other instanceof ContentEntryGetMetadataStatus ? other : THROW_CCE(); if (!(this.op3_1 === tmp0_other_with_cast.op3_1)) return false; if (!(this.pp3_1 == tmp0_other_with_cast.pp3_1)) return false; if (!this.qp3_1.equals(tmp0_other_with_cast.qp3_1)) return false; if (!this.rp3_1.equals(tmp0_other_with_cast.rp3_1)) return false; return true; }; function UnsupportedContentException(message) { Exception_init_$Init$(message, this); captureStack(this, UnsupportedContentException); } function Companion_39() { this.vp3_1 = 'text/vtt'; this.wp3_1 = 'filename'; this.xp3_1 = 'locale'; this.yp3_1 = 'WEBVTT'; } var Companion_instance_87; function Companion_getInstance_57() { return Companion_instance_87; } function GetSubtitleTrackFromUriUseCase() { } function CancelImportContentEntryUseCase() { } function $invokeCOROUTINE$26(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jp4_1 = _this__u8e3s4; this.kp4_1 = cjiUid; this.lp4_1 = activeUserPersonUid; } protoOf($invokeCOROUTINE$26).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.jp4_1.wp4_1; var tmp0_elvis_lhs = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$_0(); } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.mp4_1 = tmp_2; var tmp_3 = this; tmp_3.np4_1 = this.jp4_1.vp4_1; var tmp_4 = this; tmp_4.op4_1 = this.jp4_1.up4_1.cnu_1 + 'api/contententryimportjob/cancel'; var tmp_5 = this; tmp_5.pp4_1 = this.np4_1; var tmp_6 = this; tmp_6.qp4_1 = this.pp4_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.op4_1); parameter(this_0, 'jobUid', this.kp4_1); doorNodeIdHeader(this_0, this.mp4_1); parameter(this_0, 'accountPersonUid', this.lp4_1); header(this_0, 'cache-control', 'no-store'); tmp_7.rp4_1 = this_0; this.rp4_1.x38_1 = Companion_getInstance().m2x_1; var tmp_8 = this; tmp_8.sp4_1 = this.qp4_1; var tmp_9 = this; tmp_9.tp4_1 = this.rp4_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.tp4_1, this.sp4_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function CancelRemoteContentEntryImportUseCase(learningSpace, httpClient, repo) { this.up4_1 = learningSpace; this.vp4_1 = httpClient; this.wp4_1 = repo; } protoOf(CancelRemoteContentEntryImportUseCase).xp4 = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$26(this, cjiUid, activeUserPersonUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function $invokeCOROUTINE$27(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gp5_1 = _this__u8e3s4; this.hp5_1 = cjiUid; this.ip5_1 = activeUserPersonUid; } protoOf($invokeCOROUTINE$27).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.gp5_1.tp5_1; var tmp0_elvis_lhs = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('no repo'); } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.jp5_1 = tmp_2; var tmp_3 = this; tmp_3.kp5_1 = this.gp5_1.rp5_1; var tmp_4 = this; tmp_4.lp5_1 = this.gp5_1.sp5_1.cnu_1 + 'api/contententryimportjob/dismissError'; var tmp_5 = this; tmp_5.mp5_1 = this.kp5_1; var tmp_6 = this; tmp_6.np5_1 = this.mp5_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.lp5_1); parameter(this_0, 'jobUid', this.hp5_1); doorNodeIdHeader(this_0, this.jp5_1); parameter(this_0, 'accountPersonUid', this.ip5_1); header(this_0, 'cache-control', 'no-store'); tmp_7.op5_1 = this_0; this.op5_1.x38_1 = Companion_getInstance().m2x_1; var tmp_8 = this; tmp_8.pp5_1 = this.np5_1; var tmp_9 = this; tmp_9.qp5_1 = this.op5_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.qp5_1, this.pp5_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function DismissRemoteContentEntryImportErrorUseCase(httpClient, learningSpace, repo) { this.rp5_1 = httpClient; this.sp5_1 = learningSpace; this.tp5_1 = repo; } protoOf(DismissRemoteContentEntryImportErrorUseCase).xp4 = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$27(this, cjiUid, activeUserPersonUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function EnqueueContentEntryImportUseCase() { } function $invokeCOROUTINE$28(_this__u8e3s4, contentJobItem, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dp6_1 = _this__u8e3s4; this.ep6_1 = contentJobItem; } protoOf($invokeCOROUTINE$28).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.fp6_1 = this.dp6_1.np6_1; var tmp_1 = this; tmp_1.gp6_1 = this.dp6_1.mp6_1.cnu_1 + 'api/import/importRequest'; var tmp_2 = this; tmp_2.hp6_1 = this.fp6_1; var tmp_3 = this; tmp_3.ip6_1 = this.hp6_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.gp6_1); contentType(this_0, Application_getInstance().w2r_1); setBodyJson(this_0, this.dp6_1.op6_1, Companion_instance_88.o4r(), new ImportRequest(this.ep6_1)); tmp_4.jp6_1 = this_0; this.jp6_1.x38_1 = Companion_getInstance().n2x_1; var tmp_5 = this; tmp_5.kp6_1 = this.ip6_1; var tmp_6 = this; tmp_6.lp6_1 = this.jp6_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.lp6_1, this.kp6_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function EnqueueImportContentEntryUseCaseRemote(learningSpace, httpClient, json) { this.mp6_1 = learningSpace; this.np6_1 = httpClient; this.op6_1 = json; } protoOf(EnqueueImportContentEntryUseCaseRemote).up5 = function (contentJobItem, $completion) { var tmp = new $invokeCOROUTINE$28(this, contentJobItem, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function Companion_40() { } protoOf(Companion_40).o4r = function () { return $serializer_getInstance_46(); }; var Companion_instance_88; function Companion_getInstance_58() { return Companion_instance_88; } function $serializer_34() { $serializer_instance_34 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.contententry.importcontent.ImportRequest', this, 1); tmp0_serialDesc.u4f('contentJobItem', false); this.pp6_1 = tmp0_serialDesc; } protoOf($serializer_34).r44 = function () { return this.pp6_1; }; protoOf($serializer_34).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_5()]; }; protoOf($serializer_34).t44 = function (decoder) { var tmp0_desc = this.pp6_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.v48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return ImportRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_34).qp6 = function (encoder, value) { var tmp0_desc = this.pp6_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance_5(), value.rp6_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_34).s44 = function (encoder, value) { return this.qp6(encoder, value instanceof ImportRequest ? value : THROW_CCE()); }; var $serializer_instance_34; function $serializer_getInstance_46() { if ($serializer_instance_34 == null) new $serializer_34(); return $serializer_instance_34; } function ImportRequest_init_$Init$(seen1, contentJobItem, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_46().pp6_1); } $this.rp6_1 = contentJobItem; return $this; } function ImportRequest_init_$Create$(seen1, contentJobItem, serializationConstructorMarker) { return ImportRequest_init_$Init$(seen1, contentJobItem, serializationConstructorMarker, objectCreate(protoOf(ImportRequest))); } function ImportRequest(contentJobItem) { this.rp6_1 = contentJobItem; } protoOf(ImportRequest).toString = function () { return 'ImportRequest(contentJobItem=' + this.rp6_1 + ')'; }; protoOf(ImportRequest).hashCode = function () { return this.rp6_1.hashCode(); }; protoOf(ImportRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof ImportRequest)) return false; var tmp0_other_with_cast = other instanceof ImportRequest ? other : THROW_CCE(); if (!this.rp6_1.equals(tmp0_other_with_cast.rp6_1)) return false; return true; }; function DefaultLaunchContentEntryVersionUseCase() { } protoOf(DefaultLaunchContentEntryVersionUseCase).sp6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp0_subject = contentEntryVersion.pax_1; var tmp; if (tmp0_subject === 'xapi') { tmp = 'XapiContent'; } else { if (tmp0_subject === 'pdf') { tmp = 'PdfContent'; } else { if (tmp0_subject === 'epub') { tmp = 'EpubContent'; } else { if (tmp0_subject === 'video') { tmp = 'Video'; } else { tmp = null; } } } } var destName = tmp; if (!(destName == null)) { Companion_getInstance_126(); var tmp_0 = to('entityUid', contentEntryVersion.max_1.toString()); Companion_getInstance_126(); var tmp_1 = to('courseBlockUid', cbUid.toString()); Companion_getInstance_126(); var tmp_2 = to('clazzUid', clazzUid.toString()); Companion_getInstance_126(); navController.tp6(destName, mapOf([tmp_0, tmp_1, tmp_2, to('entryid', contentEntryVersion.nax_1.toString())])); } return new LaunchResult(); }; protoOf(DefaultLaunchContentEntryVersionUseCase).up6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.sp6(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function LaunchResult(message) { message = message === VOID ? null : message; this.vp6_1 = message; } protoOf(LaunchResult).toString = function () { return 'LaunchResult(message=' + this.vp6_1 + ')'; }; protoOf(LaunchResult).hashCode = function () { return this.vp6_1 == null ? 0 : getStringHashCode(this.vp6_1); }; protoOf(LaunchResult).equals = function (other) { if (this === other) return true; if (!(other instanceof LaunchResult)) return false; var tmp0_other_with_cast = other instanceof LaunchResult ? other : THROW_CCE(); if (!(this.vp6_1 == tmp0_other_with_cast.vp6_1)) return false; return true; }; function LaunchContentEntryVersionUseCase() { } function LaunchEpubUseCase() { } function LaunchXapiUseCase() { } function XapiLaunchHrefResult(url, launchUriInContent, launchActivity, manifestUrl) { this.wp6_1 = url; this.xp6_1 = launchUriInContent; this.yp6_1 = launchActivity; this.zp6_1 = manifestUrl; } function ResolveXapiLaunchHrefUseCase$invoke$lambda($contentEntryVersionUid) { return function () { return 'Resolving xAPI url for contentEntryVersion ' + $contentEntryVersionUid.toString(); }; } function ResolveXapiLaunchHrefUseCase$invoke$slambda($contentEntryVersionUid, resultContinuation) { this.ip7_1 = $contentEntryVersionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).kp7 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).ie = function (p1, $completion) { return this.kp7(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.jp7_1.j7f().gbq(this.ip7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).enz = function (it, completion) { var i = new ResolveXapiLaunchHrefUseCase$invoke$slambda(this.ip7_1, completion); i.jp7_1 = it; return i; }; function ResolveXapiLaunchHrefUseCase$invoke$slambda_0($contentEntryVersionUid, resultContinuation) { var i = new ResolveXapiLaunchHrefUseCase$invoke$slambda($contentEntryVersionUid, resultContinuation); var l = function (it, $completion) { return i.kp7(it, $completion); }; l.$arity = 1; return l; } function ResolveXapiLaunchHrefUseCase$invoke$lambda_0($contentEntryVersionUid, $url) { return function () { return 'Resolved xAPI url for contentEntryVersion ' + $contentEntryVersionUid.toString() + ' : ' + $url; }; } function $invokeCOROUTINE$29(_this__u8e3s4, contentEntryVersionUid, clazzUid, cbUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tp7_1 = _this__u8e3s4; this.up7_1 = contentEntryVersionUid; this.vp7_1 = clazzUid; this.wp7_1 = cbUid; } protoOf($invokeCOROUTINE$29).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 7; var tmp_0 = Napier_getInstance(); tmp_0.f5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda(this.up7_1)); this.id_1 = 1; suspendResult = localFirstThenRepoIfNull(this.tp7_1.ap9_1, ResolveXapiLaunchHrefUseCase$invoke$slambda_0(this.up7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xp7_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.xp7_1 == null) { throw IllegalArgumentException_init_$Create$('could not load contententryversion ' + this.up7_1.toString()); } else { tmp_2 = this.xp7_1; } tmp_1.yp7_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.yp7_1.qax_1; var tmp_4; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.up7_1.toString() + ' manifesturl is null'); } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.zp7_1 = tmp_4; var tmp_5 = this; tmp_5.ap8_1 = this.tp7_1.cp9_1; var tmp_6 = this; tmp_6.bp8_1 = this.tp7_1.bp9_1; var tmp_7 = this; tmp_7.cp8_1 = this.zp7_1; var tmp_8 = this; tmp_8.dp8_1 = this.bp8_1; var tmp_9 = this; tmp_9.ep8_1 = this.dp8_1; var tmp_10 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.cp8_1); tmp_10.fp8_1 = this_0; this.fp8_1.x38_1 = Companion_getInstance().m2x_1; var tmp_11 = this; tmp_11.gp8_1 = this.ep8_1; var tmp_12 = this; tmp_12.hp8_1 = this.fp8_1; this.id_1 = 2; suspendResult = (new HttpStatement(this.hp8_1, this.gp8_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ip8_1 = suspendResult; this.id_1 = 3; suspendResult = bodyAsDecodedText(this.ip8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.jp8_1 = suspendResult; var tmp_13 = this; var this_1 = this.ap8_1.u45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_13.kp8_1 = this.ap8_1.t45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.jp8_1); this.lp8_1 = requireEntryByUri(this.kp8_1, ensureNotNull(this.yp7_1.oax_1)); var tmp_14 = this; tmp_14.mp8_1 = this.tp7_1.bp9_1; var tmp_15 = this; tmp_15.np8_1 = this.lp8_1.qog_1; var tmp_16 = this; tmp_16.op8_1 = this.mp8_1; var tmp_17 = this; tmp_17.pp8_1 = this.op8_1; var tmp_18 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.np8_1); tmp_18.qp8_1 = this_3; this.qp8_1.x38_1 = Companion_getInstance().m2x_1; var tmp_19 = this; tmp_19.rp8_1 = this.pp8_1; var tmp_20 = this; tmp_20.sp8_1 = this.qp8_1; this.id_1 = 4; suspendResult = (new HttpStatement(this.sp8_1, this.rp8_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.tp8_1 = suspendResult; this.id_1 = 5; suspendResult = bodyAsDecodedText(this.tp8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.up8_1 = suspendResult; this.vp8_1 = this.tp7_1.dp9_1.z7c(); setInputString(this.vp8_1, this.up8_1); this.wp8_1 = Companion_instance_134.jp9(this.vp8_1); var tmp_21 = this; var tmp2_safe_receiver = this.wp8_1.kp9_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.sp9_1; var tmp_22; if (tmp3_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.up7_1.toString() + ' manifesturl is null'); } else { tmp_22 = tmp3_elvis_lhs; } tmp_21.xp8_1 = tmp_22; var tmp_23 = this; var tmp4_safe_receiver = this.wp8_1.kp9_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.pp9_1; var tmp_24; if (tmp5_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Launch Activity must have id'); } else { tmp_24 = tmp5_elvis_lhs; } tmp_23.yp8_1 = tmp_24; this.zp8_1 = this.tp7_1.gp9_1.aoa().unu_1.g96_1; this.id_1 = 6; suspendResult = this.tp7_1.ep9_1.vp9(this.zp8_1, this.tp7_1.gp9_1.aoa().znu(), this.yp8_1, this.vp7_1, this.wp7_1, this.yp7_1.nax_1, this.up7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var xapiSession = suspendResult; var queryParams = mapOf([to('endpoint', this.tp7_1.fp9_1.wp9('/api/xapi/')), to('auth', authorizationHeader(xapiSession)), to('actor', this.tp7_1.cp9_1.s45(Companion_instance_112.o4r(), agent(xapiSession, this.tp7_1.hp9_1))), to('registration', get_registrationUuid(xapiSession).toString()), to('activity_id', xapiSession.wjz_1)]); var url_0 = appendQueryArgs(UMFileUtil_getInstance().cpa(this.zp7_1, this.xp8_1), queryParams); var tinCanXmlPathPrefix = substringBeforeLast(ensureNotNull(this.yp7_1.oax_1), '/', ''); var tmp_25 = Napier_getInstance(); tmp_25.f5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda_0(this.up7_1, url_0)); return new XapiLaunchHrefResult(url_0, appendQueryArgs(tinCanXmlPathPrefix + this.xp8_1, queryParams), ensureNotNull(this.wp8_1.kp9_1), this.zp7_1); case 7: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 7) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ResolveXapiLaunchHrefUseCase(activeRepoOrDb, httpClient, json, xppFactory, resumeOrStartXapiSessionUseCase, getApiUrlUseCase, accountManager, learningSpace) { this.ap9_1 = activeRepoOrDb; this.bp9_1 = httpClient; this.cp9_1 = json; this.dp9_1 = xppFactory; this.ep9_1 = resumeOrStartXapiSessionUseCase; this.fp9_1 = getApiUrlUseCase; this.gp9_1 = accountManager; this.hp9_1 = learningSpace; } protoOf(ResolveXapiLaunchHrefUseCase).dpa = function (contentEntryVersionUid, clazzUid, cbUid, $completion) { var tmp = new $invokeCOROUTINE$29(this, contentEntryVersionUid, clazzUid, cbUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function MoveContentEntriesUseCase(repo, systemImpl) { this.epa_1 = repo; this.fpa_1 = systemImpl; } protoOf(MoveContentEntriesUseCase).gpa = function (destContentEntry, selectedEntriesToMove, $completion) { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var tmp; if (isInterface(selectedEntriesToMove, Collection)) { tmp = selectedEntriesToMove.c1(); } else { tmp = false; } if (tmp) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = selectedEntriesToMove.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.contententry.move.MoveContentEntriesUseCase.invoke.' call if (element.ip3_1.equals(destContentEntry.oav_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { throw IllegalArgumentException_init_$Create$(this.fpa_1.soj(strings_getInstance().inn_1)); } var tmp$ret$2; $l$block_2: { // Inline function 'kotlin.collections.any' call var tmp_0; if (isInterface(selectedEntriesToMove, Collection)) { tmp_0 = selectedEntriesToMove.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$2 = false; break $l$block_2; } var tmp0_iterator_0 = selectedEntriesToMove.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.domain.contententry.move.MoveContentEntriesUseCase.invoke.' call if (element_0.kp3_1.equals(destContentEntry.oav_1)) { tmp$ret$2 = true; break $l$block_2; } } tmp$ret$2 = false; } if (tmp$ret$2) { throw IllegalArgumentException_init_$Create$(this.fpa_1.soj(strings_getInstance().jnn_1)); } // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(selectedEntriesToMove, 10)); var tmp0_iterator_1 = selectedEntriesToMove.w(); while (tmp0_iterator_1.f()) { var item = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.domain.contententry.move.MoveContentEntriesUseCase.invoke.' call var tmp$ret$4 = item.jp3_1; destination.i1(tmp$ret$4); } var uidsToMove = destination; if (uidsToMove.c1()) return Unit_instance; return this.epa_1.y7d().rbd(destContentEntry.oav_1, uidsToMove, systemTimeInMillis(), $completion); }; function SaveContentEntryUseCase$invoke$slambda$lambda($picture) { return function () { return 'SavePictureUseCase: ContentEntry Set picture upsert uri = ' + $picture.gax_1 + ' uid=' + $picture.eax_1.toString(); }; } function SaveContentEntryUseCase$invoke$slambda($effectiveDb, $contentEntry, $picture, $initPictureUri, this$0, $joinToParentUid, resultContinuation) { this.ppa_1 = $effectiveDb; this.qpa_1 = $contentEntry; this.rpa_1 = $picture; this.spa_1 = $initPictureUri; this.tpa_1 = this$0; this.upa_1 = $joinToParentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveContentEntryUseCase$invoke$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SaveContentEntryUseCase$invoke$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveContentEntryUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.id_1 = 1; suspendResult = this.ppa_1.w7d().rau(this.qpa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rpa_1 == null) ? !(this.rpa_1.gax_1 == this.spa_1) : false) { var tmp_0 = Napier_getInstance(); tmp_0.f5e(VOID, VOID, SaveContentEntryUseCase$invoke$slambda$lambda(this.rpa_1)); this.id_1 = 2; suspendResult = this.tpa_1.wpa_1.s7f().ubi(listOf_0(this.rpa_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: if (!(this.upa_1 == null)) { this.id_1 = 4; suspendResult = this.ppa_1.y7d().insertAsync(new ContentEntryParentChildJoin(this.upa_1, this.qpa_1.oav_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 5; continue $sm; } case 4: this.id_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SaveContentEntryUseCase$invoke$slambda).enz = function (it, completion) { var i = new SaveContentEntryUseCase$invoke$slambda(this.ppa_1, this.qpa_1, this.rpa_1, this.spa_1, this.tpa_1, this.upa_1, completion); i.vpa_1 = it; return i; }; function SaveContentEntryUseCase$invoke$slambda_0($effectiveDb, $contentEntry, $picture, $initPictureUri, this$0, $joinToParentUid, resultContinuation) { var i = new SaveContentEntryUseCase$invoke$slambda($effectiveDb, $contentEntry, $picture, $initPictureUri, this$0, $joinToParentUid, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$30(_this__u8e3s4, contentEntry, joinToParentUid, picture, initPictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hpb_1 = _this__u8e3s4; this.ipb_1 = contentEntry; this.jpb_1 = joinToParentUid; this.kpb_1 = picture; this.lpb_1 = initPictureUri; } protoOf($invokeCOROUTINE$30).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var tmp0_elvis_lhs = this.hpb_1.xpa_1; tmp_0.mpb_1 = tmp0_elvis_lhs == null ? this.hpb_1.wpa_1 : tmp0_elvis_lhs; this.id_1 = 1; suspendResult = withDoorTransactionAsync(this.mpb_1, VOID, SaveContentEntryUseCase$invoke$slambda_0(this.mpb_1, this.ipb_1, this.kpb_1, this.lpb_1, this.hpb_1, this.jpb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.kpb_1 == null) ? !(this.kpb_1.gax_1 == this.lpb_1) : false) { this.id_1 = 2; var tmp_1 = this.kpb_1.eax_1; suspendResult = this.hpb_1.ypa_1.dos(tmp_1, 6678, this.kpb_1.gax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SaveContentEntryUseCase(db, repo, enqueueSavePictureUseCase) { this.wpa_1 = db; this.xpa_1 = repo; this.ypa_1 = enqueueSavePictureUseCase; } protoOf(SaveContentEntryUseCase).npb = function (contentEntry, joinToParentUid, picture, initPictureUri, $completion) { var tmp = new $invokeCOROUTINE$30(this, contentEntry, joinToParentUid, picture, initPictureUri, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function AddOrUpdateCourseBlockUseCase() { } protoOf(AddOrUpdateCourseBlockUseCase).opb = function (currentList, clazzUid, addOrUpdateBlock) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = currentList.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.courseblockupdate.AddOrUpdateCourseBlockUseCase.invoke.' call if (item.pk8_1.u7x_1.equals(addOrUpdateBlock.pk8_1.u7x_1)) { tmp$ret$1 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$1 = -1; } var currentIndex = tmp$ret$1; var courseBlockMutableList = toMutableList(currentList); var tmp; if (currentIndex >= 0) { // Inline function 'kotlin.apply' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.courseblockupdate.AddOrUpdateCourseBlockUseCase.invoke.' call courseBlockMutableList.f1(currentIndex, addOrUpdateBlock); tmp = courseBlockMutableList; } else { courseBlockMutableList.i1(addOrUpdateBlock.bk9(addOrUpdateBlock.pk8_1.jkm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, clazzUid))); tmp = updateParentModuleUidsAndIndex(autoIndent(courseBlockMutableList, courseBlockMutableList.u() - 1 | 0)); } var newCourseBlockList = tmp; return toList(newCourseBlockList); }; function updateParentModuleUidsAndIndex(_this__u8e3s4) { // Inline function 'kotlin.collections.mapIndexed' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.collections.mapIndexedTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var index = 0; var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.courseblockupdate.updateParentModuleUidsAndIndex.' call var tmp1 = index; index = tmp1 + 1 | 0; var index_0 = checkIndexOverflow(tmp1); var parentModUid = findParentModule(_this__u8e3s4, item); var tmp; if (!item.pk8_1.x7x_1.equals(parentModUid) ? true : !(item.pk8_1.h7y_1 === index_0)) { tmp = item.bk9(item.pk8_1.jkm(VOID, VOID, VOID, parentModUid, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, index_0)); } else { tmp = item; } var tmp$ret$0 = tmp; destination.i1(tmp$ret$0); } return toList(destination); } function autoIndent(_this__u8e3s4, index) { var block = _this__u8e3s4.v(index).pk8_1; var tmp = block.v7x_1; if (tmp === 100) return _this__u8e3s4; var tmp0_safe_receiver = getOrNull(_this__u8e3s4, index - 1 | 0); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk8_1; var tmp_0; if (tmp1_elvis_lhs == null) { return _this__u8e3s4; } else { tmp_0 = tmp1_elvis_lhs; } var prevBlock = tmp_0; var tmp_1; var tmp_2 = prevBlock.v7x_1; if (tmp_2 === 100) { tmp_1 = 1; } else { tmp_1 = prevBlock.w7x_1; } var autoIndent = tmp_1; var tmp_3; if (!(block.w7x_1 === autoIndent)) { // Inline function 'kotlin.apply' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.courseblockupdate.autoIndent.' call this_0.f1(index, this_0.v(index).bk9(this_0.v(index).pk8_1.jkm(VOID, VOID, autoIndent))); tmp_3 = toList(this_0); } else { tmp_3 = _this__u8e3s4; } return tmp_3; } function findParentModule(_this__u8e3s4, forBlock) { var tmp = forBlock.pk8_1.v7x_1; if (tmp === 100) return new Long(0, 0); var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.courseblockupdate.findParentModule.' call if (item.pk8_1.u7x_1.equals(forBlock.pk8_1.u7x_1)) { tmp$ret$1 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$1 = -1; } var index_0 = tmp$ret$1; var tmp0_elvis_lhs = getOrNull(_this__u8e3s4, index_0 - 1 | 0); var tmp_0; if (tmp0_elvis_lhs == null) { return new Long(0, 0); } else { tmp_0 = tmp0_elvis_lhs; } var prevBlock = tmp_0; var tmp_1; var tmp_2 = prevBlock.pk8_1.v7x_1; if (tmp_2 === 100) { tmp_1 = prevBlock.pk8_1.u7x_1; } else { if (prevBlock.pk8_1.w7x_1 >= 1) { tmp_1 = prevBlock.pk8_1.x7x_1; } else { tmp_1 = new Long(0, 0); } } return tmp_1; } function UpdateCourseBlocksOnReorderOrCommitUseCase() { } protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).ppb = function (currentList, autoIndentIndex) { var tmp; if (autoIndentIndex >= 0) { tmp = autoIndent(currentList, autoIndentIndex); } else { tmp = currentList; } var listIndented = tmp; return updateParentModuleUidsAndIndex(listIndented); }; protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).qpb = function (currentList, autoIndentIndex, $super) { autoIndentIndex = autoIndentIndex === VOID ? -1 : autoIndentIndex; return $super === VOID ? this.ppb(currentList, autoIndentIndex) : $super.ppb.call(this, currentList, autoIndentIndex); }; function CreatePasskeyResult() { } function PasskeyCreatedResult() { } function UserCanceledResult() { } function Error_1() { } function CreatePasskeyUseCase() { } function CredentialResult() { } function PasswordCredentialResult() { } function PasskeyCredentialResult() { } function NoCredentialAvailableResult() { } function UserCanceledResult_0() { } function Error_2() { } function GetCredentialUseCase() { } function Companion_41() { } var Companion_instance_89; function Companion_getInstance_59() { return Companion_instance_89; } function $serializer_35() { $serializer_instance_35 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.PasskeyVerifyResult', this, 4); tmp0_serialDesc.u4f('isVerified', false); tmp0_serialDesc.u4f('personUid', false); tmp0_serialDesc.u4f('firstName', true); tmp0_serialDesc.u4f('lastName', true); this.tpb_1 = tmp0_serialDesc; } protoOf($serializer_35).r44 = function () { return this.tpb_1; }; protoOf($serializer_35).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_35).t44 = function (decoder) { var tmp0_desc = this.tpb_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return PasskeyVerifyResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_35).upb = function (encoder, value) { var tmp0_desc = this.tpb_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.p49(tmp0_desc, 0, value.ho6_1); tmp1_output.t49(tmp0_desc, 1, value.io6_1); if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.jo6_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.jo6_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.ko6_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ko6_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_35).s44 = function (encoder, value) { return this.upb(encoder, value instanceof PasskeyVerifyResult ? value : THROW_CCE()); }; var $serializer_instance_35; function $serializer_getInstance_47() { if ($serializer_instance_35 == null) new $serializer_35(); return $serializer_instance_35; } function PasskeyVerifyResult_init_$Init$(seen1, isVerified, personUid, firstName, lastName, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_47().tpb_1); } $this.ho6_1 = isVerified; $this.io6_1 = personUid; if (0 === (seen1 & 4)) $this.jo6_1 = null; else $this.jo6_1 = firstName; if (0 === (seen1 & 8)) $this.ko6_1 = null; else $this.ko6_1 = lastName; return $this; } function PasskeyVerifyResult_init_$Create$(seen1, isVerified, personUid, firstName, lastName, serializationConstructorMarker) { return PasskeyVerifyResult_init_$Init$(seen1, isVerified, personUid, firstName, lastName, serializationConstructorMarker, objectCreate(protoOf(PasskeyVerifyResult))); } function PasskeyVerifyResult(isVerified, personUid, firstName, lastName) { firstName = firstName === VOID ? null : firstName; lastName = lastName === VOID ? null : lastName; this.ho6_1 = isVerified; this.io6_1 = personUid; this.jo6_1 = firstName; this.ko6_1 = lastName; } protoOf(PasskeyVerifyResult).toString = function () { return 'PasskeyVerifyResult(isVerified=' + this.ho6_1 + ', personUid=' + this.io6_1.toString() + ', firstName=' + this.jo6_1 + ', lastName=' + this.ko6_1 + ')'; }; protoOf(PasskeyVerifyResult).hashCode = function () { var result = getBooleanHashCode(this.ho6_1); result = imul(result, 31) + this.io6_1.hashCode() | 0; result = imul(result, 31) + (this.jo6_1 == null ? 0 : getStringHashCode(this.jo6_1)) | 0; result = imul(result, 31) + (this.ko6_1 == null ? 0 : getStringHashCode(this.ko6_1)) | 0; return result; }; protoOf(PasskeyVerifyResult).equals = function (other) { if (this === other) return true; if (!(other instanceof PasskeyVerifyResult)) return false; var tmp0_other_with_cast = other instanceof PasskeyVerifyResult ? other : THROW_CCE(); if (!(this.ho6_1 === tmp0_other_with_cast.ho6_1)) return false; if (!this.io6_1.equals(tmp0_other_with_cast.io6_1)) return false; if (!(this.jo6_1 == tmp0_other_with_cast.jo6_1)) return false; if (!(this.ko6_1 == tmp0_other_with_cast.ko6_1)) return false; return true; }; function SavePersonPasskeyUseCase(db, repo, json) { this.yo2_1 = db; this.zo2_1 = repo; this.ao3_1 = json; } protoOf(SavePersonPasskeyUseCase).bo3 = function (passkeyResult, person, $completion) { var tmp0_elvis_lhs = this.zo2_1; var effectiveDb = tmp0_elvis_lhs == null ? this.yo2_1 : tmp0_elvis_lhs; var clientDataJSONBase64 = passkeyResult.dpc_1.xpb_1; var decodedBytes = decodeBase64Bytes(clientDataJSONBase64); // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_0 = this.ao3_1; var string = decodeToString(decodedBytes); // Inline function 'kotlinx.serialization.serializer' call var this_1 = this_0.u45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_2 = serializer(this_1, createKType(getKClass(ClientDataJSON), arrayOf([]), false)); var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(); var clientDataJson = this_0.t45(tmp$ret$1, string); var personPasskey = new PersonPasskey(VOID, person.g96_1, passkeyResult.dpc_1.vpb_1, passkeyResult.dpc_1.xpb_1, clientDataJson.jpc_1, passkeyResult.bpc_1, clientDataJson.ipc_1, passkeyResult.dpc_1.ypb_1); return effectiveDb.c7g().ugz(personPasskey, $completion); }; function DecodeUserHandleUseCase() { } function Companion_42() { } var Companion_instance_90; function Companion_getInstance_60() { return Companion_instance_90; } function $serializer_36() { $serializer_instance_36 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.AuthenticationExtensionsClientOutputsJSON', this, 1); tmp0_serialDesc.u4f('prf', true); this.lpc_1 = tmp0_serialDesc; } protoOf($serializer_36).r44 = function () { return this.lpc_1; }; protoOf($serializer_36).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_49())]; }; protoOf($serializer_36).t44 = function (decoder) { var tmp0_desc = this.lpc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.x48(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.x48(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return AuthenticationExtensionsClientOutputsJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_36).mpc = function (encoder, value) { var tmp0_desc = this.lpc_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.npc_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, $serializer_getInstance_49(), value.npc_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_36).s44 = function (encoder, value) { return this.mpc(encoder, value instanceof AuthenticationExtensionsClientOutputsJSON ? value : THROW_CCE()); }; var $serializer_instance_36; function $serializer_getInstance_48() { if ($serializer_instance_36 == null) new $serializer_36(); return $serializer_instance_36; } function AuthenticationExtensionsClientOutputsJSON_init_$Init$(seen1, prf, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_48().lpc_1); } if (0 === (seen1 & 1)) $this.npc_1 = null; else $this.npc_1 = prf; return $this; } function AuthenticationExtensionsClientOutputsJSON_init_$Create$(seen1, prf, serializationConstructorMarker) { return AuthenticationExtensionsClientOutputsJSON_init_$Init$(seen1, prf, serializationConstructorMarker, objectCreate(protoOf(AuthenticationExtensionsClientOutputsJSON))); } function AuthenticationExtensionsClientOutputsJSON(prf) { prf = prf === VOID ? null : prf; this.npc_1 = prf; } protoOf(AuthenticationExtensionsClientOutputsJSON).toString = function () { return 'AuthenticationExtensionsClientOutputsJSON(prf=' + this.npc_1 + ')'; }; protoOf(AuthenticationExtensionsClientOutputsJSON).hashCode = function () { return this.npc_1 == null ? 0 : this.npc_1.hashCode(); }; protoOf(AuthenticationExtensionsClientOutputsJSON).equals = function (other) { if (this === other) return true; if (!(other instanceof AuthenticationExtensionsClientOutputsJSON)) return false; var tmp0_other_with_cast = other instanceof AuthenticationExtensionsClientOutputsJSON ? other : THROW_CCE(); if (!equals(this.npc_1, tmp0_other_with_cast.npc_1)) return false; return true; }; function Companion_43() { } var Companion_instance_91; function Companion_getInstance_61() { return Companion_instance_91; } function $serializer_37() { $serializer_instance_37 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.AuthenticationExtensionsPRFOutputsJSON', this, 1); tmp0_serialDesc.u4f('enabled', true); this.opc_1 = tmp0_serialDesc; } protoOf($serializer_37).r44 = function () { return this.opc_1; }; protoOf($serializer_37).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(BooleanSerializer_getInstance())]; }; protoOf($serializer_37).t44 = function (decoder) { var tmp0_desc = this.opc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.x48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.x48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return AuthenticationExtensionsPRFOutputsJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_37).ppc = function (encoder, value) { var tmp0_desc = this.opc_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.qpc_1 === false)) { tmp1_output.b4a(tmp0_desc, 0, BooleanSerializer_getInstance(), value.qpc_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_37).s44 = function (encoder, value) { return this.ppc(encoder, value instanceof AuthenticationExtensionsPRFOutputsJSON ? value : THROW_CCE()); }; var $serializer_instance_37; function $serializer_getInstance_49() { if ($serializer_instance_37 == null) new $serializer_37(); return $serializer_instance_37; } function AuthenticationExtensionsPRFOutputsJSON_init_$Init$(seen1, enabled, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_49().opc_1); } if (0 === (seen1 & 1)) $this.qpc_1 = false; else $this.qpc_1 = enabled; return $this; } function AuthenticationExtensionsPRFOutputsJSON_init_$Create$(seen1, enabled, serializationConstructorMarker) { return AuthenticationExtensionsPRFOutputsJSON_init_$Init$(seen1, enabled, serializationConstructorMarker, objectCreate(protoOf(AuthenticationExtensionsPRFOutputsJSON))); } function AuthenticationExtensionsPRFOutputsJSON(enabled) { enabled = enabled === VOID ? false : enabled; this.qpc_1 = enabled; } protoOf(AuthenticationExtensionsPRFOutputsJSON).toString = function () { return 'AuthenticationExtensionsPRFOutputsJSON(enabled=' + this.qpc_1 + ')'; }; protoOf(AuthenticationExtensionsPRFOutputsJSON).hashCode = function () { return this.qpc_1 == null ? 0 : getBooleanHashCode(this.qpc_1); }; protoOf(AuthenticationExtensionsPRFOutputsJSON).equals = function (other) { if (this === other) return true; if (!(other instanceof AuthenticationExtensionsPRFOutputsJSON)) return false; var tmp0_other_with_cast = other instanceof AuthenticationExtensionsPRFOutputsJSON ? other : THROW_CCE(); if (!(this.qpc_1 == tmp0_other_with_cast.qpc_1)) return false; return true; }; function Companion_44() { } protoOf(Companion_44).o4r = function () { return $serializer_getInstance_50(); }; var Companion_instance_92; function Companion_getInstance_62() { return Companion_instance_92; } function $serializer_38() { $serializer_instance_38 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.AuthenticationResponseJSON', this, 6); tmp0_serialDesc.u4f('id', false); tmp0_serialDesc.u4f('rawId', false); tmp0_serialDesc.u4f('response', false); tmp0_serialDesc.u4f('authenticatorAttachment', true); tmp0_serialDesc.u4f('clientExtensionResults', false); tmp0_serialDesc.u4f('type', false); this.rpc_1 = tmp0_serialDesc; } protoOf($serializer_38).r44 = function () { return this.rpc_1; }; protoOf($serializer_38).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), $serializer_getInstance_51(), get_nullable(StringSerializer_getInstance()), $serializer_getInstance_48(), StringSerializer_getInstance()]; }; protoOf($serializer_38).t44 = function (decoder) { var tmp0_desc = this.rpc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.j48(tmp0_desc); if (tmp10_input.y48()) { tmp4_local0 = tmp10_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.v48(tmp0_desc, 2, $serializer_getInstance_51(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.v48(tmp0_desc, 4, $serializer_getInstance_48(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.t48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.v48(tmp0_desc, 2, $serializer_getInstance_51(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.v48(tmp0_desc, 4, $serializer_getInstance_48(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.t48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.k48(tmp0_desc); return AuthenticationResponseJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_38).spc = function (encoder, value) { var tmp0_desc = this.rpc_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.bpc_1); tmp1_output.x49(tmp0_desc, 1, value.cpc_1); tmp1_output.z49(tmp0_desc, 2, $serializer_getInstance_51(), value.dpc_1); if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.epc_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.epc_1); } tmp1_output.z49(tmp0_desc, 4, $serializer_getInstance_48(), value.fpc_1); tmp1_output.x49(tmp0_desc, 5, value.gpc_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_38).s44 = function (encoder, value) { return this.spc(encoder, value instanceof AuthenticationResponseJSON ? value : THROW_CCE()); }; var $serializer_instance_38; function $serializer_getInstance_50() { if ($serializer_instance_38 == null) new $serializer_38(); return $serializer_instance_38; } function AuthenticationResponseJSON_init_$Init$(seen1, id, rawId, response, authenticatorAttachment, clientExtensionResults, type, serializationConstructorMarker, $this) { if (!(55 === (55 & seen1))) { throwMissingFieldException(seen1, 55, $serializer_getInstance_50().rpc_1); } $this.bpc_1 = id; $this.cpc_1 = rawId; $this.dpc_1 = response; if (0 === (seen1 & 8)) $this.epc_1 = null; else $this.epc_1 = authenticatorAttachment; $this.fpc_1 = clientExtensionResults; $this.gpc_1 = type; return $this; } function AuthenticationResponseJSON_init_$Create$(seen1, id, rawId, response, authenticatorAttachment, clientExtensionResults, type, serializationConstructorMarker) { return AuthenticationResponseJSON_init_$Init$(seen1, id, rawId, response, authenticatorAttachment, clientExtensionResults, type, serializationConstructorMarker, objectCreate(protoOf(AuthenticationResponseJSON))); } function AuthenticationResponseJSON() { } protoOf(AuthenticationResponseJSON).toString = function () { return 'AuthenticationResponseJSON(id=' + this.bpc_1 + ', rawId=' + this.cpc_1 + ', response=' + this.dpc_1 + ', authenticatorAttachment=' + this.epc_1 + ', clientExtensionResults=' + this.fpc_1 + ', type=' + this.gpc_1 + ')'; }; protoOf(AuthenticationResponseJSON).hashCode = function () { var result = getStringHashCode(this.bpc_1); result = imul(result, 31) + getStringHashCode(this.cpc_1) | 0; result = imul(result, 31) + this.dpc_1.hashCode() | 0; result = imul(result, 31) + (this.epc_1 == null ? 0 : getStringHashCode(this.epc_1)) | 0; result = imul(result, 31) + this.fpc_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.gpc_1) | 0; return result; }; protoOf(AuthenticationResponseJSON).equals = function (other) { if (this === other) return true; if (!(other instanceof AuthenticationResponseJSON)) return false; var tmp0_other_with_cast = other instanceof AuthenticationResponseJSON ? other : THROW_CCE(); if (!(this.bpc_1 === tmp0_other_with_cast.bpc_1)) return false; if (!(this.cpc_1 === tmp0_other_with_cast.cpc_1)) return false; if (!this.dpc_1.equals(tmp0_other_with_cast.dpc_1)) return false; if (!(this.epc_1 == tmp0_other_with_cast.epc_1)) return false; if (!this.fpc_1.equals(tmp0_other_with_cast.fpc_1)) return false; if (!(this.gpc_1 === tmp0_other_with_cast.gpc_1)) return false; return true; }; function $serializer_39() { $serializer_instance_39 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.AuthenticatorAssertionResponseJSON', this, 6); tmp0_serialDesc.u4f('attestationObject', true); tmp0_serialDesc.u4f('authenticatorData', false); tmp0_serialDesc.u4f('clientDataJSON', false); tmp0_serialDesc.u4f('publicKey', true); tmp0_serialDesc.u4f('userHandle', true); tmp0_serialDesc.u4f('signature', true); this.tpc_1 = tmp0_serialDesc; } protoOf($serializer_39).r44 = function () { return this.tpc_1; }; protoOf($serializer_39).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_39).t44 = function (decoder) { var tmp0_desc = this.tpc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.j48(tmp0_desc); if (tmp10_input.y48()) { tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.k48(tmp0_desc); return AuthenticatorAssertionResponseJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_39).upc = function (encoder, value) { var tmp0_desc = this.tpc_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.vpb_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.vpb_1); } tmp1_output.x49(tmp0_desc, 1, value.wpb_1); tmp1_output.x49(tmp0_desc, 2, value.xpb_1); if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.ypb_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ypb_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.zpb_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, StringSerializer_getInstance(), value.zpb_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.apc_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, StringSerializer_getInstance(), value.apc_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_39).s44 = function (encoder, value) { return this.upc(encoder, value instanceof AuthenticatorAssertionResponseJSON ? value : THROW_CCE()); }; var $serializer_instance_39; function $serializer_getInstance_51() { if ($serializer_instance_39 == null) new $serializer_39(); return $serializer_instance_39; } function AuthenticatorAssertionResponseJSON_init_$Init$(seen1, attestationObject, authenticatorData, clientDataJSON, publicKey, userHandle, signature, serializationConstructorMarker, $this) { if (!(6 === (6 & seen1))) { throwMissingFieldException(seen1, 6, $serializer_getInstance_51().tpc_1); } if (0 === (seen1 & 1)) $this.vpb_1 = null; else $this.vpb_1 = attestationObject; $this.wpb_1 = authenticatorData; $this.xpb_1 = clientDataJSON; if (0 === (seen1 & 8)) $this.ypb_1 = null; else $this.ypb_1 = publicKey; if (0 === (seen1 & 16)) $this.zpb_1 = null; else $this.zpb_1 = userHandle; if (0 === (seen1 & 32)) $this.apc_1 = null; else $this.apc_1 = signature; return $this; } function AuthenticatorAssertionResponseJSON_init_$Create$(seen1, attestationObject, authenticatorData, clientDataJSON, publicKey, userHandle, signature, serializationConstructorMarker) { return AuthenticatorAssertionResponseJSON_init_$Init$(seen1, attestationObject, authenticatorData, clientDataJSON, publicKey, userHandle, signature, serializationConstructorMarker, objectCreate(protoOf(AuthenticatorAssertionResponseJSON))); } function AuthenticatorAssertionResponseJSON() { } protoOf(AuthenticatorAssertionResponseJSON).toString = function () { return 'AuthenticatorAssertionResponseJSON(attestationObject=' + this.vpb_1 + ', authenticatorData=' + this.wpb_1 + ', clientDataJSON=' + this.xpb_1 + ', publicKey=' + this.ypb_1 + ', userHandle=' + this.zpb_1 + ', signature=' + this.apc_1 + ')'; }; protoOf(AuthenticatorAssertionResponseJSON).hashCode = function () { var result = this.vpb_1 == null ? 0 : getStringHashCode(this.vpb_1); result = imul(result, 31) + getStringHashCode(this.wpb_1) | 0; result = imul(result, 31) + getStringHashCode(this.xpb_1) | 0; result = imul(result, 31) + (this.ypb_1 == null ? 0 : getStringHashCode(this.ypb_1)) | 0; result = imul(result, 31) + (this.zpb_1 == null ? 0 : getStringHashCode(this.zpb_1)) | 0; result = imul(result, 31) + (this.apc_1 == null ? 0 : getStringHashCode(this.apc_1)) | 0; return result; }; protoOf(AuthenticatorAssertionResponseJSON).equals = function (other) { if (this === other) return true; if (!(other instanceof AuthenticatorAssertionResponseJSON)) return false; var tmp0_other_with_cast = other instanceof AuthenticatorAssertionResponseJSON ? other : THROW_CCE(); if (!(this.vpb_1 == tmp0_other_with_cast.vpb_1)) return false; if (!(this.wpb_1 === tmp0_other_with_cast.wpb_1)) return false; if (!(this.xpb_1 === tmp0_other_with_cast.xpb_1)) return false; if (!(this.ypb_1 == tmp0_other_with_cast.ypb_1)) return false; if (!(this.zpb_1 == tmp0_other_with_cast.zpb_1)) return false; if (!(this.apc_1 == tmp0_other_with_cast.apc_1)) return false; return true; }; function Companion_45() { } var Companion_instance_93; function Companion_getInstance_63() { return Companion_instance_93; } function $serializer_40() { $serializer_instance_40 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.ClientDataJSON', this, 4); tmp0_serialDesc.u4f('type', false); tmp0_serialDesc.u4f('challenge', false); tmp0_serialDesc.u4f('origin', false); tmp0_serialDesc.u4f('crossOrigin', true); this.vpc_1 = tmp0_serialDesc; } protoOf($serializer_40).r44 = function () { return this.vpc_1; }; protoOf($serializer_40).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance())]; }; protoOf($serializer_40).t44 = function (decoder) { var tmp0_desc = this.vpc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return ClientDataJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_40).wpc = function (encoder, value) { var tmp0_desc = this.vpc_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.hpc_1); tmp1_output.x49(tmp0_desc, 1, value.ipc_1); tmp1_output.x49(tmp0_desc, 2, value.jpc_1); if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.kpc_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, BooleanSerializer_getInstance(), value.kpc_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_40).s44 = function (encoder, value) { return this.wpc(encoder, value instanceof ClientDataJSON ? value : THROW_CCE()); }; var $serializer_instance_40; function $serializer_getInstance_52() { if ($serializer_instance_40 == null) new $serializer_40(); return $serializer_instance_40; } function ClientDataJSON_init_$Init$(seen1, type, challenge, origin, crossOrigin, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_52().vpc_1); } $this.hpc_1 = type; $this.ipc_1 = challenge; $this.jpc_1 = origin; if (0 === (seen1 & 8)) $this.kpc_1 = null; else $this.kpc_1 = crossOrigin; return $this; } function ClientDataJSON_init_$Create$(seen1, type, challenge, origin, crossOrigin, serializationConstructorMarker) { return ClientDataJSON_init_$Init$(seen1, type, challenge, origin, crossOrigin, serializationConstructorMarker, objectCreate(protoOf(ClientDataJSON))); } function ClientDataJSON(type, challenge, origin, crossOrigin) { crossOrigin = crossOrigin === VOID ? null : crossOrigin; this.hpc_1 = type; this.ipc_1 = challenge; this.jpc_1 = origin; this.kpc_1 = crossOrigin; } protoOf(ClientDataJSON).toString = function () { return 'ClientDataJSON(type=' + this.hpc_1 + ', challenge=' + this.ipc_1 + ', origin=' + this.jpc_1 + ', crossOrigin=' + this.kpc_1 + ')'; }; protoOf(ClientDataJSON).hashCode = function () { var result = getStringHashCode(this.hpc_1); result = imul(result, 31) + getStringHashCode(this.ipc_1) | 0; result = imul(result, 31) + getStringHashCode(this.jpc_1) | 0; result = imul(result, 31) + (this.kpc_1 == null ? 0 : getBooleanHashCode(this.kpc_1)) | 0; return result; }; protoOf(ClientDataJSON).equals = function (other) { if (this === other) return true; if (!(other instanceof ClientDataJSON)) return false; var tmp0_other_with_cast = other instanceof ClientDataJSON ? other : THROW_CCE(); if (!(this.hpc_1 === tmp0_other_with_cast.hpc_1)) return false; if (!(this.ipc_1 === tmp0_other_with_cast.ipc_1)) return false; if (!(this.jpc_1 === tmp0_other_with_cast.jpc_1)) return false; if (!(this.kpc_1 == tmp0_other_with_cast.kpc_1)) return false; return true; }; function SavePasswordUseCase() { } function CreateCredentialUsernameUseCase(learningSpace) { this.ypc_1 = learningSpace; } function ParseCredentialUsernameUseCase() { } protoOf(ParseCredentialUsernameUseCase).wp9 = function (credentialUsername) { var tmp0_container = split(credentialUsername, ['@'], VOID, 2); // Inline function 'kotlin.collections.component1' call var username = tmp0_container.v(0); // Inline function 'kotlin.collections.component2' call var learningSpacePart = tmp0_container.v(1); // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call var learningSpacePartLower = learningSpacePart.toLowerCase(); var tmp; if (startsWith(learningSpacePartLower, 'http://')) { tmp = new Pair(new LearningSpace(learningSpacePart), username); } else { tmp = new Pair(new LearningSpace(requirePostfix('https://' + learningSpacePart, '/')), username); } return tmp; }; function DeletePermanentlyUseCase(repoOrDb) { this.zpc_1 = repoOrDb; } protoOf(DeletePermanentlyUseCase).apd = function (items, $completion) { var timeNow = systemTimeInMillis(); var tmp = this.zpc_1.n7f(); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(items, 10)); var tmp0_iterator = items.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.deleteditem.DeletePermanentlyUseCase.invoke.' call var tmp$ret$0 = item.geg_1; destination.i1(tmp$ret$0); } var tmp_0 = destination; return tmp.feg(tmp_0, 3, timeNow, $completion); }; function RestoreDeletedItemUseCase$invoke$slambda($itemsByType, this$0, $timeNow, $items, resultContinuation) { this.jpd_1 = $itemsByType; this.kpd_1 = this$0; this.lpd_1 = $timeNow; this.mpd_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(RestoreDeletedItemUseCase$invoke$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; var tmp_0 = this; tmp_0.opd_1 = this.jpd_1; var tmp_1 = this; tmp_1.ppd_1 = this.opd_1.q2().w(); this.id_1 = 1; continue $sm; case 1: if (!this.ppd_1.f()) { this.id_1 = 4; continue $sm; } this.qpd_1 = this.ppd_1.e(); var tmp_2 = this; tmp_2.rpd_1 = this.qpd_1; this.spd_1 = this.rpd_1.s2(); if (this.spd_1 === 7) { this.id_1 = 2; var tmp_3 = this.kpd_1.tpd_1.y7d(); var this_0 = this.rpd_1.t2(); var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(item.meg_1); } suspendResult = tmp_3.sbd(destination, false, this.lpd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: this.id_1 = 1; continue $sm; case 4: this.id_1 = 5; var tmp_4 = this.kpd_1.tpd_1.n7f(); var this_1 = this.mpd_1; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10)); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); destination_0.i1(item_0.geg_1); } suspendResult = tmp_4.feg(destination_0, 2, this.lpd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).enz = function (it, completion) { var i = new RestoreDeletedItemUseCase$invoke$slambda(this.jpd_1, this.kpd_1, this.lpd_1, this.mpd_1, completion); i.npd_1 = it; return i; }; function RestoreDeletedItemUseCase$invoke$slambda_0($itemsByType, this$0, $timeNow, $items, resultContinuation) { var i = new RestoreDeletedItemUseCase$invoke$slambda($itemsByType, this$0, $timeNow, $items, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function RestoreDeletedItemUseCase(repoOrDb) { this.tpd_1 = repoOrDb; } protoOf(RestoreDeletedItemUseCase).apd = function (items, $completion) { // Inline function 'kotlin.collections.groupBy' call // Inline function 'kotlin.collections.groupByTo' call var destination = LinkedHashMap_init_$Create$(); var tmp0_iterator = items.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.deleteditem.RestoreDeletedItemUseCase.invoke.' call var key = element.leg_1; // Inline function 'kotlin.collections.getOrPut' call var value = destination.q(key); var tmp; if (value == null) { // Inline function 'kotlin.collections.groupByTo.' call var answer = ArrayList_init_$Create$(); destination.s(key, answer); tmp = answer; } else { tmp = value; } var list = tmp; list.i1(element); } var itemsByType = destination; var timeNow = systemTimeInMillis(); return withDoorTransactionAsync(this.tpd_1, VOID, RestoreDeletedItemUseCase$invoke$slambda_0(itemsByType, this, timeNow, items, null), $completion); }; function toEpubTocItem(_this__u8e3s4, $this, indentLevel, parentUids) { var uid = $this.vpd_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp8_uid = $this.vpd_1.atomicfu$incrementAndGet(); var tmp0_safe_receiver = _this__u8e3s4.nob_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dob_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.oob_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.doc_1; } else { tmp = tmp2_elvis_lhs; } var tmp3_elvis_lhs = tmp; var tmp9_label = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; var tmp4_safe_receiver = _this__u8e3s4.nob_1; var tmp10_href = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.eob_1; var tmp5_safe_receiver = _this__u8e3s4.pob_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.coc_1; var tmp_0; if (tmp6_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_safe_receiver, 10)); var tmp0_iterator = tmp6_safe_receiver.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.epub.GetEpubTableOfContentsUseCase.toEpubTocItem.' call var tmp$ret$0 = toEpubTocItem(item, $this, indentLevel + 1 | 0, uidsForChildren); destination.i1(tmp$ret$0); } tmp_0 = destination; } var tmp7_elvis_lhs = tmp_0; var tmp11_children = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs; return new EpubTocItem(tmp8_uid, tmp9_label, tmp10_href, tmp11_children, parentUids, indentLevel); } function toTocItem(_this__u8e3s4, $this, indentLevel, parentUids) { var uid = $this.vpd_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp0_safe_receiver = firstOrNull(_this__u8e3s4.cod_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uoc_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pod_1; var tmp3_label = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp4_href = _this__u8e3s4.dod_1.joc_1; // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.fod_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.epub.GetEpubTableOfContentsUseCase.toTocItem.' call var tmp$ret$0 = toTocItem(item, $this, indentLevel + 1 | 0, uidsForChildren); destination.i1(tmp$ret$0); } return new EpubTocItem(uid, tmp3_label, tmp4_href, destination, parentUids, indentLevel); } function $invokeCOROUTINE$31(_this__u8e3s4, opfPackage, readItemText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.epe_1 = _this__u8e3s4; this.fpe_1 = opfPackage; this.gpe_1 = readItemText; } protoOf($invokeCOROUTINE$31).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.hpe_1 = this.fpe_1.tof(); if (!(this.hpe_1 == null) ? startsWith(this.hpe_1.ooe_1, 'application/xhtml') : false) { this.id_1 = 2; suspendResult = this.gpe_1(this.hpe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0; if (!(this.hpe_1 == null)) { tmp_0 = this.hpe_1.ooe_1 === 'application/x-dtbncx+xml'; } else { tmp_0 = false; } if (tmp_0) { this.id_1 = 1; suspendResult = this.gpe_1(this.hpe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.ipe_1 = null; this.id_1 = 3; continue $sm; } } case 1: var docStr = suspendResult; var this_0 = this.epe_1.upd_1; var this_1 = this_0.u45(); var this_2 = serializer(this_1, createKType(getKClass(NcxDocument), arrayOf([]), false)); var ncxDoc = this_0.t45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), docStr); var tmp_2 = this; var this_3 = ncxDoc.mod_1.yoc_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_3.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var it = toTocItem(element, this.epe_1, 0, emptySet()); var list = plus(listOf_0(it), it.mpe_1); addAll(destination, list); } tmp_2.ipe_1 = destination; this.id_1 = 3; continue $sm; case 2: var docStr_0 = suspendResult; var this_4 = this.epe_1.upd_1; var this_5 = this_4.u45(); var this_6 = serializer(this_5, createKType(getKClass(NavigationDocument), arrayOf([]), false)); var navDoc = this_4.t45(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), docStr_0); var tmp_3 = this; var this_7 = first_0(navDoc.yob_1.hob_1).tob_1.coc_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_7.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var it_0 = toEpubTocItem(element_0, this.epe_1, 0, emptySet()); var list_0 = plus(listOf_0(it_0), it_0.mpe_1); addAll(destination_0, list_0); } tmp_3.ipe_1 = destination_0; this.id_1 = 3; continue $sm; case 3: return this.ipe_1; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function GetEpubTableOfContentsUseCase(xml) { this.upd_1 = xml; this.vpd_1 = atomic$int$1(0); } protoOf(GetEpubTableOfContentsUseCase).qpe = function (opfPackage, readItemText, $completion) { var tmp = new $invokeCOROUTINE$31(this, opfPackage, readItemText, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function Companion_46() { Companion_instance_94 = this; this.rpe_1 = Companion_getInstance_74().upe_1; } var Companion_instance_94; function Companion_getInstance_64() { if (Companion_instance_94 == null) new Companion_46(); return Companion_instance_94; } function FilterUsernameUseCase() { Companion_getInstance_64(); } protoOf(FilterUsernameUseCase).vpe = function (username, invalidCharReplacement) { // Inline function 'kotlin.text.map' call // Inline function 'kotlin.text.mapTo' call var destination = ArrayList_init_$Create$_0(charSequenceLength(username)); var inductionVariable = 0; while (inductionVariable < charSequenceLength(username)) { var item = charSequenceGet(username, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.domain.filterusername.FilterUsernameUseCase.invoke.' call var tmp; if (isLetter(item)) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp = toString_1(item).toLowerCase(); } else if (isDigit(item)) { tmp = new Char(item); } else if (Companion_getInstance_64().rpe_1.a1(new Char(item))) { tmp = new Char(item); } else { tmp = invalidCharReplacement; } var tmp$ret$3 = tmp; destination.i1(tmp$ret$3); } return joinToString(destination, ''); }; function GetApiUrlUseCase() { } function GetApiUrlUseCaseDirect(learningSpace) { this.wpe_1 = learningSpace; } protoOf(GetApiUrlUseCaseDirect).wp9 = function (path) { return requirePostfix(this.wpe_1.cnu_1, '/') + removePrefix(path, '/'); }; function VersionInfo(versionString, buildTime) { this.xpe_1 = versionString; this.ype_1 = buildTime; } protoOf(VersionInfo).toString = function () { return 'VersionInfo(versionString=' + this.xpe_1 + ', buildTime=' + this.ype_1.toString() + ')'; }; protoOf(VersionInfo).hashCode = function () { var result = getStringHashCode(this.xpe_1); result = imul(result, 31) + this.ype_1.hashCode() | 0; return result; }; protoOf(VersionInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof VersionInfo)) return false; var tmp0_other_with_cast = other instanceof VersionInfo ? other : THROW_CCE(); if (!(this.xpe_1 === tmp0_other_with_cast.xpe_1)) return false; if (!this.ype_1.equals(tmp0_other_with_cast.ype_1)) return false; return true; }; function GetVersionUseCase() { } function HideKeyboardUseCase() { } function GetHtmlContentDisplayEngineOptionsUseCase(optionsList) { this.bpf_1 = optionsList; } protoOf(GetHtmlContentDisplayEngineOptionsUseCase).zpe = function () { return this.bpf_1; }; function GetHtmlContentDisplayEngineUseCase(settings, getOptionsUseCase) { this.cpf_1 = settings; this.dpf_1 = getOptionsUseCase; } protoOf(GetHtmlContentDisplayEngineUseCase).zpe = function () { // Inline function 'com.russhwolf.settings.get' call var this_0 = this.cpf_1; var key = 'com.ustadmobile.htmlcontentdisplayengine'; var settingInt = this_0.dm8(key, 0); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.dpf_1.zpe().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.htmlcontentdisplayengine.GetHtmlContentDisplayEngineUseCase.invoke.' call if (element.epf_1 === settingInt) { tmp$ret$2 = element; break $l$block; } } tmp$ret$2 = null; } var tmp0_elvis_lhs = tmp$ret$2; return tmp0_elvis_lhs == null ? first_0(this.dpf_1.zpe()) : tmp0_elvis_lhs; }; function Companion_47() { this.hpf_1 = 'com.ustadmobile.htmlcontentdisplayengine'; } var Companion_instance_95; function Companion_getInstance_65() { return Companion_instance_95; } function SetHtmlContentDisplayEngineUseCase(settings) { this.ipf_1 = settings; } function ClazzInviteRedeemException(message, stringResource) { Exception_init_$Init$(message, this); captureStack(this, ClazzInviteRedeemException); this.jpf_1 = stringResource; } protoOf(ClazzInviteRedeemException).kpf = function () { return this.jpf_1; }; function ClazzInviteRedeemUseCase$invoke$slambda($effectiveDb, $clazzInvite, $enrolmentUid, resultContinuation) { this.tpf_1 = $effectiveDb; this.upf_1 = $clazzInvite; this.vpf_1 = $enrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemUseCase$invoke$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.tpf_1.u7d().n93(this.upf_1.d9n_1, this.vpf_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; var tmp_0 = this.tpf_1.f7g(); suspendResult = tmp_0.m9m(1, this.upf_1.d9n_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).enz = function (it, completion) { var i = new ClazzInviteRedeemUseCase$invoke$slambda(this.tpf_1, this.upf_1, this.vpf_1, completion); i.wpf_1 = it; return i; }; function ClazzInviteRedeemUseCase$invoke$slambda_0($effectiveDb, $clazzInvite, $enrolmentUid, resultContinuation) { var i = new ClazzInviteRedeemUseCase$invoke$slambda($effectiveDb, $clazzInvite, $enrolmentUid, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$32(_this__u8e3s4, inviteCode, isAccepting, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fpg_1 = _this__u8e3s4; this.gpg_1 = inviteCode; this.hpg_1 = isAccepting; this.ipg_1 = personUid; } protoOf($invokeCOROUTINE$32).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; var tmp_0 = this; var tmp0_elvis_lhs = this.fpg_1.ppg_1; tmp_0.jpg_1 = tmp0_elvis_lhs == null ? this.fpg_1.opg_1 : tmp0_elvis_lhs; this.id_1 = 1; suspendResult = this.jpg_1.f7g().k9m(this.gpg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kpg_1 = suspendResult; var tmp_1 = this; var tmp1_safe_receiver = this.kpg_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o9n_1; var tmp_2; if (tmp2_elvis_lhs == null) { throw new ClazzInviteRedeemException('Invite not found', strings_getInstance().xno_1); } else { tmp_2 = tmp2_elvis_lhs; } tmp_1.lpg_1 = tmp_2; var tmp_3 = this.lpg_1.k9n_1; if (tmp_3 === 3) { throw new ClazzInviteRedeemException('Invite code is revoked', strings_getInstance().fns_1); } var tmp_4 = this.lpg_1.k9n_1; if (!(tmp_4 === 0)) { throw new ClazzInviteRedeemException('Invite already used', strings_getInstance().unr_1); } if (this.lpg_1.l9n_1.c7(systemTimeInMillis()) < 0) { throw new ClazzInviteRedeemException('Invite code is expired', strings_getInstance().ens_1); } if (this.hpg_1) { this.id_1 = 3; var tmp_5 = ClazzEnrolment_init_$Create$(this.lpg_1.g9n_1, this.ipg_1, this.lpg_1.f9n_1.mb()); var tmp3_elvis_lhs = this.kpg_1.p9n_1; suspendResult = this.fpg_1.npg_1.uoz(tmp_5, tmp3_elvis_lhs == null ? 'UTC' : tmp3_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; var tmp_6 = this.jpg_1.f7g(); suspendResult = tmp_6.m9m(2, this.lpg_1.d9n_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: return new ClazzRedeemResult(this.fpg_1.qpg_1.soj(strings_getInstance().cns_1)); case 3: this.mpg_1 = suspendResult; this.id_1 = 4; suspendResult = withDoorTransactionAsync(this.jpg_1, VOID, ClazzInviteRedeemUseCase$invoke$slambda_0(this.jpg_1, this.lpg_1, this.mpg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return new ClazzRedeemResult(this.fpg_1.qpg_1.soj(strings_getInstance().ans_1)); case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ClazzInviteRedeemUseCase(enrolIntoCourseUseCase, db, repo, systemImpl) { this.npg_1 = enrolIntoCourseUseCase; this.opg_1 = db; this.ppg_1 = repo; this.qpg_1 = systemImpl; } protoOf(ClazzInviteRedeemUseCase).rpg = function (inviteCode, isAccepting, personUid, $completion) { var tmp = new $invokeCOROUTINE$32(this, inviteCode, isAccepting, personUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function ClazzRedeemResult(message) { this.spg_1 = message; } protoOf(ClazzRedeemResult).toString = function () { return 'ClazzRedeemResult(message=' + this.spg_1 + ')'; }; protoOf(ClazzRedeemResult).hashCode = function () { return getStringHashCode(this.spg_1); }; protoOf(ClazzRedeemResult).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzRedeemResult)) return false; var tmp0_other_with_cast = other instanceof ClazzRedeemResult ? other : THROW_CCE(); if (!(this.spg_1 === tmp0_other_with_cast.spg_1)) return false; return true; }; function $invokeCOROUTINE$33(_this__u8e3s4, viewUri, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bph_1 = _this__u8e3s4; this.cph_1 = viewUri; this.dph_1 = personUid; } protoOf($invokeCOROUTINE$33).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.eph_1 = indexOf(this.cph_1, _Char___init__impl__6a9atx(63)); var tmp_0 = this; var tmp_1; if (this.eph_1 > 0) { var tmp_2 = UMFileUtil_getInstance(); var this_0 = this.cph_1; var startIndex = this.eph_1; tmp_1 = tmp_2.parseURLQueryString(this_0.substring(startIndex)); } else { tmp_1 = emptyMap(); } tmp_0.fph_1 = tmp_1; this.id_1 = 1; suspendResult = this.bph_1.gph_1.rpg(first_1(this.fph_1.p2()), true, this.dph_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function EnrollToCourseFromInviteCodeUseCase(clazzInviteRedeemUseCase) { this.gph_1 = clazzInviteRedeemUseCase; } protoOf(EnrollToCourseFromInviteCodeUseCase).hph = function (viewUri, personUid, $completion) { var tmp = new $invokeCOROUTINE$33(this, viewUri, personUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function isValidUserName($this, username) { return startsWith(username, '@'); } function ParseInviteUseCase(phoneNumValidatorUseCase, validateEmailUseCase) { this.iph_1 = phoneNumValidatorUseCase; this.jph_1 = validateEmailUseCase; } protoOf(ParseInviteUseCase).wp9 = function (text) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.text.split' call var this_0 = Regex_init_$Create$('\\s+|,|;').y9(text, 0); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.invite.ParseInviteUseCase.invoke.' call // Inline function 'kotlin.text.trim' call var tmp$ret$2 = toString(trim(isCharSequence(item) ? item : THROW_CCE())); destination.i1(tmp$ret$2); } // Inline function 'kotlin.collections.filterTo' call var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = destination.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.domain.invite.ParseInviteUseCase.invoke.' call // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(element) > 0) { destination_0.i1(element); } } var parts = distinct(destination_0); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(parts, 10)); var tmp0_iterator_1 = parts.w(); while (tmp0_iterator_1.f()) { var item_0 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.domain.invite.ParseInviteUseCase.invoke.' call var tmp; if (!(this.jph_1.wp9(item_0) == null)) { tmp = new InviteViaContactChip(item_0, true, 1); } else if (this.iph_1.kph(item_0)) { tmp = new InviteViaContactChip(item_0, true, 2); } else if (isValidUserName(this, item_0)) { tmp = new InviteViaContactChip(item_0, true, 3); } else { tmp = new InviteViaContactChip(item_0, false, 0); } var tmp$ret$9 = tmp; destination_1.i1(tmp$ret$9); } return destination_1; }; function Companion_48() { Companion_instance_96 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.lph_1 = [new ArrayListSerializer(StringSerializer_getInstance()), null, null, null]; } protoOf(Companion_48).o4r = function () { return $serializer_getInstance_53(); }; var Companion_instance_96; function Companion_getInstance_66() { if (Companion_instance_96 == null) new Companion_48(); return Companion_instance_96; } function $serializer_41() { $serializer_instance_41 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.invite.SendClazzInvitesUseCase.SendClazzInvitesRequest', this, 4); tmp0_serialDesc.u4f('contacts', false); tmp0_serialDesc.u4f('clazzUid', false); tmp0_serialDesc.u4f('role', false); tmp0_serialDesc.u4f('personUid', false); this.mph_1 = tmp0_serialDesc; } protoOf($serializer_41).r44 = function () { return this.mph_1; }; protoOf($serializer_41).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_66().lph_1[0], LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_41).t44 = function (decoder) { var tmp0_desc = this.mph_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_input = decoder.j48(tmp0_desc); var tmp9_cached = Companion_getInstance_66().lph_1; if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.p48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.p48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.v48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.p48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.p48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return SendClazzInvitesRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_41).nph = function (encoder, value) { var tmp0_desc = this.mph_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_66().lph_1; tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.oph_1); tmp1_output.t49(tmp0_desc, 1, value.pph_1); tmp1_output.t49(tmp0_desc, 2, value.qph_1); tmp1_output.t49(tmp0_desc, 3, value.rph_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_41).s44 = function (encoder, value) { return this.nph(encoder, value instanceof SendClazzInvitesRequest ? value : THROW_CCE()); }; var $serializer_instance_41; function $serializer_getInstance_53() { if ($serializer_instance_41 == null) new $serializer_41(); return $serializer_instance_41; } function SendClazzInvitesRequest_init_$Init$(seen1, contacts, clazzUid, role, personUid, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_53().mph_1); } $this.oph_1 = contacts; $this.pph_1 = clazzUid; $this.qph_1 = role; $this.rph_1 = personUid; return $this; } function SendClazzInvitesRequest_init_$Create$(seen1, contacts, clazzUid, role, personUid, serializationConstructorMarker) { return SendClazzInvitesRequest_init_$Init$(seen1, contacts, clazzUid, role, personUid, serializationConstructorMarker, objectCreate(protoOf(SendClazzInvitesRequest))); } function SendClazzInvitesRequest(contacts, clazzUid, role, personUid) { Companion_getInstance_66(); this.oph_1 = contacts; this.pph_1 = clazzUid; this.qph_1 = role; this.rph_1 = personUid; } protoOf(SendClazzInvitesRequest).toString = function () { return 'SendClazzInvitesRequest(contacts=' + this.oph_1 + ', clazzUid=' + this.pph_1.toString() + ', role=' + this.qph_1.toString() + ', personUid=' + this.rph_1.toString() + ')'; }; protoOf(SendClazzInvitesRequest).hashCode = function () { var result = hashCode(this.oph_1); result = imul(result, 31) + this.pph_1.hashCode() | 0; result = imul(result, 31) + this.qph_1.hashCode() | 0; result = imul(result, 31) + this.rph_1.hashCode() | 0; return result; }; protoOf(SendClazzInvitesRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof SendClazzInvitesRequest)) return false; var tmp0_other_with_cast = other instanceof SendClazzInvitesRequest ? other : THROW_CCE(); if (!equals(this.oph_1, tmp0_other_with_cast.oph_1)) return false; if (!this.pph_1.equals(tmp0_other_with_cast.pph_1)) return false; if (!this.qph_1.equals(tmp0_other_with_cast.qph_1)) return false; if (!this.rph_1.equals(tmp0_other_with_cast.rph_1)) return false; return true; }; function SendClazzInvitesUseCase() { } function SendClazzInvitesUseCaseSendToServerImpl$invoke$lambda() { return 'ContactToServerUseCase: sent OK'; } function SendClazzInvitesUseCaseSendToServerImpl$invoke$lambda_0($e) { return function () { return 'ContactToServerUseCase:- exception ' + $e; }; } function $invokeCOROUTINE$34(_this__u8e3s4, request, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bpi_1 = _this__u8e3s4; this.cpi_1 = request; } protoOf($invokeCOROUTINE$34).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; var tmp_0 = this; tmp_0.dpi_1 = this.bpi_1.kpi_1; var tmp_1 = this; tmp_1.epi_1 = this.bpi_1.lpi_1.cnu_1 + 'api/invite/sendclazzinvites'; var tmp_2 = this; tmp_2.fpi_1 = this.dpi_1; var tmp_3 = this; tmp_3.gpi_1 = this.fpi_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.epi_1); contentType(this_0, Application_getInstance().w2r_1); setBodyJson(this_0, this.bpi_1.mpi_1, Companion_getInstance_66().o4r(), this.cpi_1); tmp_4.hpi_1 = this_0; this.hpi_1.x38_1 = Companion_getInstance().n2x_1; var tmp_5 = this; tmp_5.ipi_1 = this.gpi_1; var tmp_6 = this; tmp_6.jpi_1 = this.hpi_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.jpi_1, this.ipi_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_7 = Napier_getInstance(); tmp_7.l5e(VOID, VOID, SendClazzInvitesUseCaseSendToServerImpl$invoke$lambda); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_8 = this.ld_1; if (tmp_8 instanceof Error) { var e = this.ld_1; var tmp_9 = Napier_getInstance(); tmp_9.l5e(VOID, VOID, SendClazzInvitesUseCaseSendToServerImpl$invoke$lambda_0(e)); throw e; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function SendClazzInvitesUseCaseSendToServerImpl(httpClient, learningSpace, json) { this.kpi_1 = httpClient; this.lpi_1 = learningSpace; this.mpi_1 = json; } protoOf(SendClazzInvitesUseCaseSendToServerImpl).sph = function (request, $completion) { var tmp = new $invokeCOROUTINE$34(this, request, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function SetLangResult(waitForRestart) { this.npi_1 = waitForRestart; } protoOf(SetLangResult).toString = function () { return 'SetLangResult(waitForRestart=' + this.npi_1 + ')'; }; protoOf(SetLangResult).hashCode = function () { return getBooleanHashCode(this.npi_1); }; protoOf(SetLangResult).equals = function (other) { if (this === other) return true; if (!(other instanceof SetLangResult)) return false; var tmp0_other_with_cast = other instanceof SetLangResult ? other : THROW_CCE(); if (!(this.npi_1 === tmp0_other_with_cast.npi_1)) return false; return true; }; function SetLanguageUseCase() { } function LaunchOpenLicensesUseCase() { } function GoToLearningSpaceUseCase() { } function GetLocalAccountsSupportedUseCase(localAccountsSupported) { this.rpi_1 = localAccountsSupported; } protoOf(GetLocalAccountsSupportedUseCase).zpe = function () { return this.rpi_1; }; function MakeLinkUseCase(learningSpace) { this.spi_1 = learningSpace; } protoOf(MakeLinkUseCase).tpi = function (destName, args) { var tmp = UMFileUtil_getInstance(); Companion_getInstance_97(); return appendQueryArgs_0(tmp.upi([this.spi_1.cnu_1, '/umapp/#/']) + destName, toQueryString(args)); }; function $invokeCOROUTINE$35(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dpj_1 = _this__u8e3s4; } protoOf($invokeCOROUTINE$35).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.dpj_1.ipj_1; tmp_0.epj_1 = tmp0_elvis_lhs == null ? this.dpj_1.hpj_1 : tmp0_elvis_lhs; this.id_1 = 1; suspendResult = this.epj_1.w7e().mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var site = suspendResult; var tmp2_elvis_lhs = site == null ? null : site.aho_1; var visibilityFlag = tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs; var isPersonalOrLocal = this.dpj_1.gpj_1.cnu_1 === this.dpj_1.fpj_1.fo6_1 ? true : this.dpj_1.gpj_1.enu(); var tmp_1; if (isPersonalOrLocal) { var this_0 = get_COMMON_TOP_LEVEL_NAV_ITEMS(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); Companion_getInstance_7(); if (!element.lpj_1.equals(new Long(1, 0))) { destination.i1(element); } } tmp_1 = destination; } else { tmp_1 = get_COMMON_TOP_LEVEL_NAV_ITEMS(); } var filteredDestinations = tmp_1; var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = filteredDestinations.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (hasFlag_0(visibilityFlag, element_0.lpj_1)) { tmp$ret$0 = element_0; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp3_safe_receiver = tmp$ret$0; return tmp3_safe_receiver == null ? null : tmp3_safe_receiver.jpj_1; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function GetDefaultDestinationUseCase(systemUrlConfig, learningSpace, db, repo) { this.fpj_1 = systemUrlConfig; this.gpj_1 = learningSpace; this.hpj_1 = db; this.ipj_1 = repo; } protoOf(GetDefaultDestinationUseCase).w8q = function ($completion) { var tmp = new $invokeCOROUTINE$35(this, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function OnClickLinkUseCase_init_$Init$(navController, accountManager, openExternalLinkUseCase, apiUrlConfig, $this) { OnClickLinkUseCase.call($this, navController, accountManager, openExternalLinkUseCase, apiUrlConfig.go6_1); return $this; } function OnClickLinkUseCase_init_$Create$(navController, accountManager, openExternalLinkUseCase, apiUrlConfig) { return OnClickLinkUseCase_init_$Init$(navController, accountManager, openExternalLinkUseCase, apiUrlConfig, objectCreate(protoOf(OnClickLinkUseCase))); } function OnClickLinkUseCase(navController, accountManager, openExternalLinkUseCase, userCanSelectServer) { this.mpj_1 = navController; this.npj_1 = accountManager; this.opj_1 = openExternalLinkUseCase; this.ppj_1 = userCanSelectServer; } protoOf(OnClickLinkUseCase).qpj = function (link, target) { navigateToLink(this.mpj_1, link, this.npj_1, this.opj_1, VOID, VOID, this.ppj_1, VOID, VOID, target); }; var LinkTarget_BLANK_instance; var LinkTarget_TOP_instance; var LinkTarget_SELF_instance; var LinkTarget_DEFAULT_instance; function Companion_49() { } protoOf(Companion_49).cmh = function (targetAttr) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call switch (targetAttr.toLowerCase()) { case '_top': return LinkTarget_TOP_getInstance(); case '_blank': return LinkTarget_BLANK_getInstance(); case '_self': return LinkTarget_SELF_getInstance(); default: return LinkTarget_DEFAULT_getInstance(); } }; var Companion_instance_97; function Companion_getInstance_67() { return Companion_instance_97; } var LinkTarget_entriesInitialized; function LinkTarget_initEntries() { if (LinkTarget_entriesInitialized) return Unit_instance; LinkTarget_entriesInitialized = true; LinkTarget_BLANK_instance = new LinkTarget('BLANK', 0); LinkTarget_TOP_instance = new LinkTarget('TOP', 1); LinkTarget_SELF_instance = new LinkTarget('SELF', 2); LinkTarget_DEFAULT_instance = new LinkTarget('DEFAULT', 3); } function LinkTarget(name, ordinal) { Enum.call(this, name, ordinal); } function LinkTarget_BLANK_getInstance() { LinkTarget_initEntries(); return LinkTarget_BLANK_instance; } function LinkTarget_TOP_getInstance() { LinkTarget_initEntries(); return LinkTarget_TOP_instance; } function LinkTarget_SELF_getInstance() { LinkTarget_initEntries(); return LinkTarget_SELF_instance; } function LinkTarget_DEFAULT_getInstance() { LinkTarget_initEntries(); return LinkTarget_DEFAULT_instance; } function OpenExternalLinkUseCase() { } function UpdatePeerReviewAllocationUseCase$invoke$lambda($selectedMarkerUid) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $selectedMarkerUid; tmp.pfu_1 = tmp0_elvis_lhs == null ? new Long(0, 0) : tmp0_elvis_lhs; return Unit_instance; }; } function $invokeCOROUTINE$36(_this__u8e3s4, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zpj_1 = _this__u8e3s4; this.apk_1 = existingAllocations; this.bpk_1 = groupUid; this.cpk_1 = clazzUid; this.dpk_1 = assignmentUid; this.epk_1 = numReviewsPerSubmission; this.fpk_1 = allocateRemaining; this.gpk_1 = resetAllocations; } protoOf($invokeCOROUTINE$36).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 8; this.id_1 = 1; suspendResult = this.zpj_1.apl_1.r7e().n7s(this.cpk_1, this.bpk_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hpk_1 = suspendResult; var tmp_0 = this; tmp_0.ipk_1 = this.hpk_1; var tmp_1 = this; tmp_1.jpk_1 = this.ipk_1; var tmp_2 = this; tmp_2.kpk_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.ipk_1, 10)); this.lpk_1 = this.jpk_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.lpk_1.f()) { this.id_1 = 7; continue $sm; } this.mpk_1 = this.lpk_1.e(); var tmp_3 = this; tmp_3.npk_1 = this.mpk_1; var tmp_4 = this; tmp_4.opk_1 = this.zpj_1; var tmp_5 = this; var this_0 = this.apk_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.qfu_1.equals(this.npk_1)) { destination.i1(element); } } tmp_5.ppk_1 = this.zpj_1.cpl(destination, this.epk_1); var tmp_6 = this; tmp_6.qpk_1 = this.epk_1; if (this.ppk_1.u() >= this.qpk_1) { this.rpk_1 = this.ppk_1; this.id_1 = 6; continue $sm; } else { var tmp_7 = this; tmp_7.spk_1 = until(0, this.qpk_1 - this.ppk_1.u() | 0); var tmp_8 = this; tmp_8.tpk_1 = this.spk_1; var tmp_9 = this; tmp_9.upk_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.spk_1, 10)); this.vpk_1 = this.tpk_1.w(); this.id_1 = 3; continue $sm; } case 3: if (!this.vpk_1.f()) { this.id_1 = 5; continue $sm; } this.wpk_1 = this.vpk_1.e(); var tmp_10 = this; tmp_10.xpk_1 = this.wpk_1; var tmp_11 = this; tmp_11.ypk_1 = new PeerReviewerAllocation(); var tmp_12 = this; tmp_12.zpk_1 = this.ypk_1; this.id_1 = 4; var tmp_13 = get_doorPrimaryKeyManager(this.zpj_1.apl_1); suspendResult = tmp_13.p62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var ARGUMENT = suspendResult; this.zpk_1.ofu_1 = ARGUMENT; this.zpk_1.qfu_1 = this.npk_1; this.zpk_1.rfu_1 = this.dpk_1; var ARGUMENT_0 = this.ypk_1; this.upk_1.i1(ARGUMENT_0); this.id_1 = 3; continue $sm; case 5: var ARGUMENT_1 = this.upk_1; this.rpk_1 = plus(this.ppk_1, ARGUMENT_1); this.id_1 = 6; continue $sm; case 6: var existingAllocationsForSubmitter = this.rpk_1; var ARGUMENT_2 = to(this.npk_1, existingAllocationsForSubmitter); this.kpk_1.i1(ARGUMENT_2); this.id_1 = 2; continue $sm; case 7: var ARGUMENT_3 = this.kpk_1; var allocationsForEachSubmitter = toMap(ARGUMENT_3); var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = allocationsForEachSubmitter.q2().w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var list = element_0.t2(); addAll(destination_0, list); } var allocationList = toMutableList(destination_0); if (this.gpk_1) { var inductionVariable = 0; var last = allocationList.u() - 1 | 0; if (inductionVariable <= last) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; allocationList.f1(index, allocationList.v(index).qkq(VOID, new Long(0, 0))); } while (inductionVariable <= last); } if (this.fpk_1) { var this_1 = this.hpk_1; var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = this_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp$ret$0; l$ret$1: do { var tmp_14; if (isInterface(allocationList, Collection)) { tmp_14 = allocationList.c1(); } else { tmp_14 = false; } if (tmp_14) { tmp$ret$0 = 0; break l$ret$1; } var count = 0; var tmp0_iterator_2 = allocationList.w(); while (tmp0_iterator_2.f()) { var element_2 = tmp0_iterator_2.e(); if (element_2.pfu_1.equals(element_1)) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$0 = count; } while (false); var numToMarkAlreadyAssignedToSubmitter = tmp$ret$0; var this_2 = until(0, this.epk_1 - numToMarkAlreadyAssignedToSubmitter | 0); var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_3 = this_2.w(); while (tmp0_iterator_3.f()) { var item = tmp0_iterator_3.e(); destination_2.i1(element_1); } var list_0 = destination_2; addAll(destination_1, list_0); } var fromBucket = toMutableList(shuffled(destination_1)); var inductionVariable_0 = 0; var last_0 = allocationList.u() - 1 | 0; if (inductionVariable_0 <= last_0) do { var index_0 = inductionVariable_0; inductionVariable_0 = inductionVariable_0 + 1 | 0; var allocation = allocationList.v(index_0); if (allocation.pfu_1.equals(new Long(0, 0))) { var destination_3 = ArrayList_init_$Create$(); var tmp0_iterator_4 = allocationList.w(); while (tmp0_iterator_4.f()) { var element_3 = tmp0_iterator_4.e(); if (element_3.qfu_1.equals(allocation.qfu_1)) { destination_3.i1(element_3); } } var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_3, 10)); var tmp0_iterator_5 = destination_3.w(); while (tmp0_iterator_5.f()) { var item_0 = tmp0_iterator_5.e(); destination_4.i1(item_0.pfu_1); } var destination_5 = ArrayList_init_$Create$(); var tmp0_iterator_6 = destination_4.w(); while (tmp0_iterator_6.f()) { var element_4 = tmp0_iterator_6.e(); if (!element_4.equals(new Long(0, 0))) { destination_5.i1(element_4); } } var otherMarkersForThisSubmitter = destination_5; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_7 = fromBucket.w(); while (tmp0_iterator_7.f()) { var element_5 = tmp0_iterator_7.e(); if (!element_5.equals(allocation.qfu_1) ? !otherMarkersForThisSubmitter.a1(element_5) : false) { tmp$ret$2 = element_5; break l$ret$3; } } tmp$ret$2 = null; } while (false); var tmp2_safe_receiver = tmp$ret$2; var tmp_15; if (tmp2_safe_receiver == null) { tmp_15 = null; } else { fromBucket.j1(tmp2_safe_receiver); tmp_15 = tmp2_safe_receiver; } var selectedMarkerUid = tmp_15; allocationList.f1(index_0, shallowCopy_2(allocation, UpdatePeerReviewAllocationUseCase$invoke$lambda(selectedMarkerUid))); } } while (inductionVariable_0 <= last_0); } return allocationList; case 8: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 8) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function UpdatePeerReviewAllocationUseCase(db, systemImpl) { this.apl_1 = db; this.bpl_1 = systemImpl; } protoOf(UpdatePeerReviewAllocationUseCase).cpl = function (_this__u8e3s4, maxSize) { return _this__u8e3s4.u() <= maxSize ? _this__u8e3s4 : _this__u8e3s4.z(0, maxSize); }; protoOf(UpdatePeerReviewAllocationUseCase).dpl = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) { var tmp = new $invokeCOROUTINE$36(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UpdatePeerReviewAllocationUseCase).epl = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion, $super) { resetAllocations = resetAllocations === VOID ? false : resetAllocations; return $super === VOID ? this.dpl(existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) : $super.dpl.call(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); }; function AddNewPersonUseCase$invoke$slambda($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, $relationship, resultContinuation) { this.npl_1 = $effectiveDb; this.opl_1 = $person; this.ppl_1 = $systemPermissions; this.qpl_1 = $createPersonParentApprovalIfMinor; this.rpl_1 = $addedByPersonUid; this.spl_1 = $relationship; CoroutineImpl.call(this, resultContinuation); } protoOf(AddNewPersonUseCase$invoke$slambda).ook = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddNewPersonUseCase$invoke$slambda).ie = function (p1, $completion) { return this.ook(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddNewPersonUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; suspendResult = this.npl_1.o7d().insertAsync(this.opl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.upl_1 = suspendResult; this.vpl_1 = this.opl_1.g96_1.equals(new Long(0, 0)) ? this.upl_1 : this.opl_1.g96_1; this.id_1 = 2; suspendResult = this.npl_1.q7f().ai1(new SystemPermission(VOID, this.vpl_1, VOID, this.ppl_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: if (isDateOfBirthAMinor(Companion_getInstance_6().mmh(this.opl_1.p96_1)) ? this.qpl_1 : false) { this.id_1 = 3; var tmp_0 = this.npl_1.y7e(); var tmp1_ppjApprovalTiemstamp = systemTimeInMillis(); suspendResult = tmp_0.vgs(new PersonParentJoin(VOID, VOID, VOID, VOID, VOID, this.rpl_1, this.vpl_1, this.spl_1, VOID, VOID, VOID, 1, tmp1_ppjApprovalTiemstamp), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 4; continue $sm; } case 3: this.id_1 = 4; continue $sm; case 4: return this.vpl_1; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AddNewPersonUseCase$invoke$slambda).enz = function (it, completion) { var i = new AddNewPersonUseCase$invoke$slambda(this.npl_1, this.opl_1, this.ppl_1, this.qpl_1, this.rpl_1, this.spl_1, completion); i.tpl_1 = it; return i; }; function AddNewPersonUseCase$invoke$slambda_0($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, $relationship, resultContinuation) { var i = new AddNewPersonUseCase$invoke$slambda($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, $relationship, resultContinuation); var l = function (it, $completion) { return i.ook(it, $completion); }; l.$arity = 1; return l; } function AddNewPersonUseCase(db, repo) { this.wpl_1 = db; this.xpl_1 = repo; } protoOf(AddNewPersonUseCase).ypl = function (person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) { var tmp0_elvis_lhs = this.xpl_1; var effectiveDb = tmp0_elvis_lhs == null ? this.wpl_1 : tmp0_elvis_lhs; return withDoorTransactionAsync(effectiveDb, VOID, AddNewPersonUseCase$invoke$slambda_0(effectiveDb, person, systemPermissions, createPersonParentApprovalIfMinor, addedByPersonUid, relationship, null), $completion); }; protoOf(AddNewPersonUseCase).zpl = function (person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion, $super) { addedByPersonUid = addedByPersonUid === VOID ? new Long(0, 0) : addedByPersonUid; createPersonParentApprovalIfMinor = createPersonParentApprovalIfMinor === VOID ? true : createPersonParentApprovalIfMinor; var tmp; if (systemPermissions === VOID) { Companion_getInstance_8(); tmp = new Long(0, 0); } else { tmp = systemPermissions; } systemPermissions = tmp; var tmp_0; if (relationship === VOID) { tmp_0 = 8; } else { tmp_0 = relationship; } relationship = tmp_0; return $super === VOID ? this.ypl(person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) : $super.ypl.call(this, person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion); }; function BulkAddPersonException(message, errors) { message = message === VOID ? null : message; IllegalArgumentException_init_$Init$_0(message, this); captureStack(this, BulkAddPersonException); this.apm_1 = errors; } protoOf(BulkAddPersonException).toString = function () { var tmp0_elvis_lhs = this.message; return (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + ' ' + joinToString(this.apm_1); }; function $serializer_42() { $serializer_instance_42 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsDataError', this, 3); tmp0_serialDesc.u4f('lineNum', false); tmp0_serialDesc.u4f('colName', false); tmp0_serialDesc.u4f('invalidValue', false); this.bpm_1 = tmp0_serialDesc; } protoOf($serializer_42).r44 = function () { return this.bpm_1; }; protoOf($serializer_42).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_42).t44 = function (decoder) { var tmp0_desc = this.bpm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.j48(tmp0_desc); if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return BulkAddPersonsDataError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_42).cpm = function (encoder, value) { var tmp0_desc = this.bpm_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.s49(tmp0_desc, 0, value.dpm_1); tmp1_output.x49(tmp0_desc, 1, value.epm_1); tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.fpm_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_42).s44 = function (encoder, value) { return this.cpm(encoder, value instanceof BulkAddPersonsDataError ? value : THROW_CCE()); }; var $serializer_instance_42; function $serializer_getInstance_54() { if ($serializer_instance_42 == null) new $serializer_42(); return $serializer_instance_42; } function BulkAddPersonsDataError_init_$Init$(seen1, lineNum, colName, invalidValue, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_54().bpm_1); } $this.dpm_1 = lineNum; $this.epm_1 = colName; $this.fpm_1 = invalidValue; return $this; } function BulkAddPersonsDataError_init_$Create$(seen1, lineNum, colName, invalidValue, serializationConstructorMarker) { return BulkAddPersonsDataError_init_$Init$(seen1, lineNum, colName, invalidValue, serializationConstructorMarker, objectCreate(protoOf(BulkAddPersonsDataError))); } function BulkAddPersonsDataError() { } protoOf(BulkAddPersonsDataError).toString = function () { return 'BulkAddPersonsDataError(lineNum=' + this.dpm_1 + ', colName=' + this.epm_1 + ', invalidValue=' + this.fpm_1 + ')'; }; protoOf(BulkAddPersonsDataError).hashCode = function () { var result = this.dpm_1; result = imul(result, 31) + getStringHashCode(this.epm_1) | 0; result = imul(result, 31) + (this.fpm_1 == null ? 0 : getStringHashCode(this.fpm_1)) | 0; return result; }; protoOf(BulkAddPersonsDataError).equals = function (other) { if (this === other) return true; if (!(other instanceof BulkAddPersonsDataError)) return false; var tmp0_other_with_cast = other instanceof BulkAddPersonsDataError ? other : THROW_CCE(); if (!(this.dpm_1 === tmp0_other_with_cast.dpm_1)) return false; if (!(this.epm_1 === tmp0_other_with_cast.epm_1)) return false; if (!(this.fpm_1 == tmp0_other_with_cast.fpm_1)) return false; return true; }; function BulkAddPersonsFromLocalUriUseCase() { } function Companion_50() { } var Companion_instance_98; function Companion_getInstance_68() { return Companion_instance_98; } function $serializer_43() { $serializer_instance_43 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsUseCase.BulkAddUsersResult', this, 1); tmp0_serialDesc.u4f('numImported', false); this.hpm_1 = tmp0_serialDesc; } protoOf($serializer_43).r44 = function () { return this.hpm_1; }; protoOf($serializer_43).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance()]; }; protoOf($serializer_43).t44 = function (decoder) { var tmp0_desc = this.hpm_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_input = decoder.j48(tmp0_desc); if (tmp5_input.y48()) { tmp4_local0 = tmp5_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.k48(tmp0_desc); return BulkAddUsersResult_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_43).ipm = function (encoder, value) { var tmp0_desc = this.hpm_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.s49(tmp0_desc, 0, value.jpm_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_43).s44 = function (encoder, value) { return this.ipm(encoder, value instanceof BulkAddUsersResult ? value : THROW_CCE()); }; var $serializer_instance_43; function $serializer_getInstance_55() { if ($serializer_instance_43 == null) new $serializer_43(); return $serializer_instance_43; } function BulkAddUsersResult_init_$Init$(seen1, numImported, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_55().hpm_1); } $this.jpm_1 = numImported; return $this; } function BulkAddUsersResult_init_$Create$(seen1, numImported, serializationConstructorMarker) { return BulkAddUsersResult_init_$Init$(seen1, numImported, serializationConstructorMarker, objectCreate(protoOf(BulkAddUsersResult))); } function BulkAddUsersResult(numImported) { this.jpm_1 = numImported; } protoOf(BulkAddUsersResult).toString = function () { return 'BulkAddUsersResult(numImported=' + this.jpm_1 + ')'; }; protoOf(BulkAddUsersResult).hashCode = function () { return this.jpm_1; }; protoOf(BulkAddUsersResult).equals = function (other) { if (this === other) return true; if (!(other instanceof BulkAddUsersResult)) return false; var tmp0_other_with_cast = other instanceof BulkAddUsersResult ? other : THROW_CCE(); if (!(this.jpm_1 === tmp0_other_with_cast.jpm_1)) return false; return true; }; function IPhoneNumberUtil() { } function formatInternationalOrNull(_this__u8e3s4, number) { var tmp; try { tmp = _this__u8e3s4.lpm(_this__u8e3s4.kpm(number, 'US')); } catch ($p) { var tmp_0; if ($p instanceof Error) { var e = $p; tmp_0 = null; } else { throw $p; } tmp = tmp_0; } return tmp; } function OnClickPhoneNumUseCase() { } function PhoneNumValidatorUseCase() { } function OnClickEmailUseCase() { } function ShareAppUseCase() { } function ShareTextUseCase() { } function GetShowPoweredByUseCase(showPoweredBy) { this.mpm_1 = showPoweredBy; } protoOf(GetShowPoweredByUseCase).zpe = function () { return this.mpm_1; }; function Companion_51() { this.npm_1 = 'en'; } var Companion_instance_99; function Companion_getInstance_69() { return Companion_instance_99; } function $invokeCOROUTINE$37(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wpm_1 = _this__u8e3s4; } protoOf($invokeCOROUTINE$37).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.xpm_1 = plus(listOf_0(this.wpm_1.fpn_1.epn_1), this.wpm_1.fpn_1.ypm_1); this.id_1 = 1; suspendResult = this.wpm_1.gpn_1.x7e().khs(1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var availableLocales = filterNotNull(ARGUMENT); var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.xpm_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (availableLocales.a1(element)) { tmp$ret$0 = element; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp0_elvis_lhs = tmp$ret$0; return tmp0_elvis_lhs == null ? 'en' : tmp0_elvis_lhs; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function GetLocaleForSiteTermsUseCase(supportedLangConfig, repo) { this.fpn_1 = supportedLangConfig; this.gpn_1 = repo; } protoOf(GetLocaleForSiteTermsUseCase).hpn = function ($completion) { var tmp = new $invokeCOROUTINE$37(this, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function OnClickSendSmsUseCase() { } function Companion_52() { this.ipn_1 = 'dismissed-social-warning-'; } var Companion_instance_100; function Companion_getInstance_70() { return Companion_instance_100; } function DismissSocialWarningUseCase(settings) { this.jpn_1 = settings; } protoOf(DismissSocialWarningUseCase).yp1 = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); // Inline function 'com.russhwolf.settings.set' call this.jpn_1.gm8(key, true); }; function Companion_53() { this.kpn_1 = 'dismissed-social-warning-'; this.lpn_1 = 'https://beinternetawesome.withgoogle.com'; } var Companion_instance_101; function Companion_getInstance_71() { return Companion_instance_101; } function ShowSocialWarningUseCase(settings) { this.mpn_1 = settings; } protoOf(ShowSocialWarningUseCase).wp9 = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); return !this.mpn_1.hm8(key, false); }; function GetOfflineStorageAvailableSpace() { } function Companion_54() { this.opn_1 = 'offlineStoragePath'; } var Companion_instance_102; function Companion_getInstance_72() { return Companion_instance_102; } function GetOfflineStorageOptionsUseCase() { } function GetOfflineStorageSettingUseCase(getOfflineStorageOptionsUseCase, settings) { this.ppn_1 = getOfflineStorageOptionsUseCase; this.qpn_1 = settings; } protoOf(GetOfflineStorageSettingUseCase).zpe = function () { var setting = this.qpn_1.fm8('offlineStoragePath'); var options = this.ppn_1.zpe(); // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.domain.storage.GetOfflineStorageSettingUseCase.invoke.' call if (!(setting == null)) { tmp = options; } else { tmp = null; } var tmp0_safe_receiver = tmp; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { var tmp$ret$3; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = tmp0_safe_receiver.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.storage.GetOfflineStorageSettingUseCase.invoke.' call if (element.spn_1 === setting) { tmp$ret$3 = element; break $l$block; } } tmp$ret$3 = null; } tmp_0 = tmp$ret$3; } var tmp1_elvis_lhs = tmp_0; return tmp1_elvis_lhs == null ? first_0(options) : tmp1_elvis_lhs; }; function OfflineStorageOption() { } protoOf(OfflineStorageOption).hashCode = function () { var result = this.rpn_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.spn_1) | 0; return result; }; protoOf(OfflineStorageOption).equals = function (other) { if (this === other) return true; if (!(other instanceof OfflineStorageOption)) return false; var tmp0_other_with_cast = other instanceof OfflineStorageOption ? other : THROW_CCE(); if (!this.rpn_1.equals(tmp0_other_with_cast.rpn_1)) return false; if (!(this.spn_1 === tmp0_other_with_cast.spn_1)) return false; return true; }; function SetOfflineStorageSettingUseCase(settings) { this.tpn_1 = settings; } function DeleteUrisUseCase() { } function IsTempFileCheckerUseCase() { } function ChunkIterator(chunkInfo) { this.upn_1 = chunkInfo; this.vpn_1 = 0; } protoOf(ChunkIterator).f = function () { return this.vpn_1 < this.upn_1.apo_1; }; protoOf(ChunkIterator).e = function () { // Inline function 'kotlin.also' call var this_0 = this.upn_1.v(this.vpn_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.upload.ChunkIterator.next.' call this.vpn_1 = this.vpn_1 + 1 | 0; return this_0; }; function Chunk(start, end, isLastChunk, size) { size = size === VOID ? end.mc(start).mb() : size; this.bpo_1 = start; this.cpo_1 = end; this.dpo_1 = isLastChunk; this.epo_1 = size; } protoOf(Chunk).toString = function () { return 'Chunk(start=' + this.bpo_1.toString() + ', end=' + this.cpo_1.toString() + ', isLastChunk=' + this.dpo_1 + ', size=' + this.epo_1 + ')'; }; protoOf(Chunk).hashCode = function () { var result = this.bpo_1.hashCode(); result = imul(result, 31) + this.cpo_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.dpo_1) | 0; result = imul(result, 31) + this.epo_1 | 0; return result; }; protoOf(Chunk).equals = function (other) { if (this === other) return true; if (!(other instanceof Chunk)) return false; var tmp0_other_with_cast = other instanceof Chunk ? other : THROW_CCE(); if (!this.bpo_1.equals(tmp0_other_with_cast.bpo_1)) return false; if (!this.cpo_1.equals(tmp0_other_with_cast.cpo_1)) return false; if (!(this.dpo_1 === tmp0_other_with_cast.dpo_1)) return false; if (!(this.epo_1 === tmp0_other_with_cast.epo_1)) return false; return true; }; function ChunkInfo(totalSize, chunkSize, fromByte) { fromByte = fromByte === VOID ? new Long(0, 0) : fromByte; this.wpn_1 = totalSize; this.xpn_1 = chunkSize; this.ypn_1 = fromByte; this.zpn_1 = this.wpn_1.mc(this.ypn_1); var tmp = this; // Inline function 'kotlin.comparisons.maxOf' call // Inline function 'kotlin.let' call // Inline function 'kotlin.Long.div' call var this_0 = this.zpn_1; var other = this.xpn_1; // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.upload.ChunkInfo.numChunks.' call var it = this_0.bb(toLong(other)); var tmp_0; // Inline function 'kotlin.mod' call var this_1 = this.zpn_1; var other_0 = this.xpn_1; // Inline function 'kotlin.mod' call var other_1 = toLong(other_0); var r = this_1.nc(other_1); if (!(r.lc(other_1.uc(r.wc(other_1).uc(r.vc(r.b7())).sc(63))).mb() === 0)) { // Inline function 'kotlin.Long.plus' call tmp_0 = it.lc(toLong(1)); } else { tmp_0 = it; } var a = tmp_0.mb(); tmp.apo_1 = Math.max(a, 1); } protoOf(ChunkInfo).w = function () { return new ChunkIterator(this); }; protoOf(ChunkInfo).v = function (index) { var start = numberToLong(index).cb(toLong(this.xpn_1)).lc(this.ypn_1); // Inline function 'kotlin.math.min' call // Inline function 'kotlin.Long.plus' call var other = this.xpn_1; var a = start.lc(toLong(other)); var b = this.wpn_1; var end = a.c7(b) <= 0 ? a : b; var isLastChunk = index === (this.apo_1 - 1 | 0); return new Chunk(start, end, isLastChunk); }; function UploadProgress(bytesTransferred, totalBytes) { this.fpo_1 = bytesTransferred; this.gpo_1 = totalBytes; } protoOf(UploadProgress).toString = function () { return 'UploadProgress(bytesTransferred=' + this.fpo_1.toString() + ', totalBytes=' + this.gpo_1.toString() + ')'; }; protoOf(UploadProgress).hashCode = function () { var result = this.fpo_1.hashCode(); result = imul(result, 31) + this.gpo_1.hashCode() | 0; return result; }; protoOf(UploadProgress).equals = function (other) { if (this === other) return true; if (!(other instanceof UploadProgress)) return false; var tmp0_other_with_cast = other instanceof UploadProgress ? other : THROW_CCE(); if (!this.fpo_1.equals(tmp0_other_with_cast.fpo_1)) return false; if (!this.gpo_1.equals(tmp0_other_with_cast.gpo_1)) return false; return true; }; function LastChunkResponse(body, statusCode, headers) { this.hpo_1 = body; this.ipo_1 = statusCode; this.jpo_1 = headers; } protoOf(LastChunkResponse).toString = function () { return 'LastChunkResponse(body=' + this.hpo_1 + ', statusCode=' + this.ipo_1 + ', headers=' + this.jpo_1 + ')'; }; protoOf(LastChunkResponse).hashCode = function () { var result = this.hpo_1 == null ? 0 : getStringHashCode(this.hpo_1); result = imul(result, 31) + this.ipo_1 | 0; result = imul(result, 31) + hashCode(this.jpo_1) | 0; return result; }; protoOf(LastChunkResponse).equals = function (other) { if (this === other) return true; if (!(other instanceof LastChunkResponse)) return false; var tmp0_other_with_cast = other instanceof LastChunkResponse ? other : THROW_CCE(); if (!(this.hpo_1 == tmp0_other_with_cast.hpo_1)) return false; if (!(this.ipo_1 === tmp0_other_with_cast.ipo_1)) return false; if (!equals(this.jpo_1, tmp0_other_with_cast.jpo_1)) return false; return true; }; function ChunkedUploadClientLocalUriUseCase$invoke$lambda(it) { return Unit_instance; } function ChunkedUploadClientLocalUriUseCase$invoke$lambda_0(it) { return Unit_instance; } function ChunkedUploadClientLocalUriUseCase() { } function Companion_55() { this.mpo_1 = 524288; } var Companion_instance_103; function Companion_getInstance_73() { return Companion_instance_103; } function get_HEADER_UPLOAD_UUID() { return HEADER_UPLOAD_UUID; } var HEADER_UPLOAD_UUID; function get_HEADER_IS_FINAL_CHUNK() { return HEADER_IS_FINAL_CHUNK; } var HEADER_IS_FINAL_CHUNK; function get_HEADER_UPLOAD_START_BYTE() { return HEADER_UPLOAD_START_BYTE; } var HEADER_UPLOAD_START_BYTE; function get_DEFAULT_CHUNK_SIZE() { return DEFAULT_CHUNK_SIZE; } var DEFAULT_CHUNK_SIZE; function GetUsernameSuggestionUseCase$invoke$lambda($usernameSuggestion) { return function () { return 'GetUsernameSuggestionUseCase: ' + $usernameSuggestion; }; } function GetUsernameSuggestionUseCase$invoke$lambda_0($e) { return function () { return 'GetUsernameSuggestionUseCase:- exception ' + $e; }; } function $invokeCOROUTINE$41(_this__u8e3s4, name, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vpo_1 = _this__u8e3s4; this.wpo_1 = name; } protoOf($invokeCOROUTINE$41).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.jd_1 = 3; var tmp_0 = this; tmp_0.xpo_1 = this.vpo_1.dpp_1; var tmp_1 = this; tmp_1.ypo_1 = this.xpo_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, removeSuffix(this.vpo_1.epp_1.cnu_1, '/') + '/api/username/getsuggestion'); parameter(this_0, 'name', this.wpo_1); tmp_2.zpo_1 = this_0; this.zpo_1.x38_1 = Companion_getInstance().n2x_1; var tmp_3 = this; tmp_3.app_1 = this.ypo_1; var tmp_4 = this; tmp_4.bpp_1 = this.zpo_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.bpp_1, this.app_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cpp_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsText(this.cpp_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var usernameSuggestion = suspendResult; var tmp_5 = Napier_getInstance(); tmp_5.l5e(VOID, VOID, GetUsernameSuggestionUseCase$invoke$lambda(usernameSuggestion)); return usernameSuggestion; case 3: this.jd_1 = 4; var tmp_6 = this.ld_1; if (tmp_6 instanceof Error) { var e = this.ld_1; var tmp_7 = Napier_getInstance(); tmp_7.l5e(VOID, VOID, GetUsernameSuggestionUseCase$invoke$lambda_0(e)); throw e; } else { throw this.ld_1; } case 4: throw this.ld_1; case 5: this.jd_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 4) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function GetUsernameSuggestionUseCase(httpClient, learningSpace) { this.dpp_1 = httpClient; this.epp_1 = learningSpace; } protoOf(GetUsernameSuggestionUseCase).fpp = function (name, $completion) { var tmp = new $invokeCOROUTINE$41(this, name, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function StartUserSessionUseCase(accountManager) { this.gpp_1 = accountManager; } protoOf(StartUserSessionUseCase).hpp = function (session, nextDest, navController, goOptions, dontSetCurrentSession) { // Inline function 'kotlin.takeIf' call var this_0 = this.gpp_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.domain.usersession.StartUserSessionUseCase.invoke.' call if (!dontSetCurrentSession) { tmp = this_0; } else { tmp = null; } var tmp0_safe_receiver = tmp; if (tmp0_safe_receiver != null) { tmp0_safe_receiver.unx(session); } navigateToViewUri(navController, appendSelectedAccount(nextDest, session.unu_1.g96_1, session.vnu_1), goOptions); }; protoOf(StartUserSessionUseCase).ipp = function (session, nextDest, navController, goOptions, dontSetCurrentSession, $super) { var tmp; if (nextDest === VOID) { Companion_getInstance_141(); tmp = 'CourseListHome'; } else { tmp = nextDest; } nextDest = tmp; goOptions = goOptions === VOID ? new UstadGoOptions(VOID, VOID, true) : goOptions; dontSetCurrentSession = dontSetCurrentSession === VOID ? false : dontSetCurrentSession; var tmp_0; if ($super === VOID) { this.hpp(session, nextDest, navController, goOptions, dontSetCurrentSession); tmp_0 = Unit_instance; } else { tmp_0 = $super.hpp.call(this, session, nextDest, navController, goOptions, dontSetCurrentSession); } return tmp_0; }; function ValidateEmailUseCase() { } protoOf(ValidateEmailUseCase).wp9 = function (email) { // Inline function 'kotlin.text.trim' call var trimmed = toString(trim(isCharSequence(email) ? email : THROW_CCE())); var atPos = indexOf(trimmed, _Char___init__impl__6a9atx(64)); if (atPos === -1) return null; if (indexOf(trimmed, _Char___init__impl__6a9atx(46), atPos) === -1) return null; var tmp$ret$2; $l$block: { // Inline function 'kotlin.text.any' call var inductionVariable = 0; while (inductionVariable < charSequenceLength(trimmed)) { var element = charSequenceGet(trimmed, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.domain.validateemail.ValidateEmailUseCase.invoke.' call if (((isWhitespace(element) ? true : element === _Char___init__impl__6a9atx(91)) ? true : element === _Char___init__impl__6a9atx(93)) ? true : element === _Char___init__impl__6a9atx(92)) { tmp$ret$2 = true; break $l$block; } } tmp$ret$2 = false; } if (tmp$ret$2) return null; return trimmed; }; function Companion_56() { Companion_instance_104 = this; this.spe_1 = 3; this.tpe_1 = 30; this.upe_1 = setOf([new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95))]); } protoOf(Companion_56).jpp = function (character) { return isLetter(character) ? true : isDigit(character) ? true : this.upe_1.a1(new Char(character)) ? true : false; }; var Companion_instance_104; function Companion_getInstance_74() { if (Companion_instance_104 == null) new Companion_56(); return Companion_instance_104; } function ValidateUsernameUseCase() { Companion_getInstance_74(); } protoOf(ValidateUsernameUseCase).wp9 = function (username) { var tmp; if (username.length < 3) { tmp = Companion_getInstance_75().lpp_1; } else { if (username.length > 30) { tmp = Companion_getInstance_75().mpp_1; } else { var tmp0_safe_receiver = firstOrNull_0(username); var tmp_0; var tmp_1 = tmp0_safe_receiver; if ((tmp_1 == null ? null : new Char(tmp_1)) == null) { tmp_0 = null; } else { tmp_0 = isDigit(tmp0_safe_receiver); } if (tmp_0 === true) { tmp = Companion_getInstance_75().npp_1; } else { var tmp$ret$1; $l$block: { // Inline function 'kotlin.text.all' call var inductionVariable = 0; while (inductionVariable < charSequenceLength(username)) { var element = charSequenceGet(username, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.domain.validateusername.ValidateUsernameUseCase.invoke.' call if (!Companion_getInstance_74().jpp(element)) { tmp$ret$1 = false; break $l$block; } } tmp$ret$1 = true; } if (!tmp$ret$1) { tmp = Companion_getInstance_75().opp_1; } else { tmp = Companion_getInstance_75().kpp_1; } } } } return tmp; }; function Companion_57() { Companion_instance_105 = this; this.kpp_1 = new ValidationResult(); this.lpp_1 = new ValidationResult(strings_getInstance().gn8_1); this.mpp_1 = new ValidationResult(strings_getInstance().hn8_1); this.npp_1 = new ValidationResult(strings_getInstance().in8_1); this.opp_1 = new ValidationResult(strings_getInstance().jn8_1); } var Companion_instance_105; function Companion_getInstance_75() { if (Companion_instance_105 == null) new Companion_57(); return Companion_instance_105; } function ValidationResult(errorMessage) { Companion_getInstance_75(); errorMessage = errorMessage === VOID ? null : errorMessage; this.ppp_1 = errorMessage; } protoOf(ValidationResult).toString = function () { return 'ValidationResult(errorMessage=' + this.ppp_1 + ')'; }; protoOf(ValidationResult).hashCode = function () { return this.ppp_1 == null ? 0 : this.ppp_1.hashCode(); }; protoOf(ValidationResult).equals = function (other) { if (this === other) return true; if (!(other instanceof ValidationResult)) return false; var tmp0_other_with_cast = other instanceof ValidationResult ? other : THROW_CCE(); if (!equals(this.ppp_1, tmp0_other_with_cast.ppp_1)) return false; return true; }; function isAnonymous(_this__u8e3s4) { return ((_this__u8e3s4.bj4_1 == null ? _this__u8e3s4.zj3_1 == null : false) ? _this__u8e3s4.cj4_1 == null : false) ? _this__u8e3s4.aj4_1 == null : false; } function _get_isIdOnly__t0wrie(_this__u8e3s4, $this) { var tmp; var tmp_0; if (_this__u8e3s4.yip_1 == null ? _this__u8e3s4.zip_1 == null : false) { var tmp_1 = _this__u8e3s4.aiq_1; tmp_0 = tmp_1 === 0; } else { tmp_0 = false; } if (tmp_0) { tmp = _this__u8e3s4.biq_1 == null; } else { tmp = false; } return tmp; } function StoreActivitiesUseCase$invoke$slambda($activityEntities, $timeNow, this$0, resultContinuation) { this.ypp_1 = $activityEntities; this.zpp_1 = $timeNow; this.apq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StoreActivitiesUseCase$invoke$slambda).hpr = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(StoreActivitiesUseCase$invoke$slambda).ie = function (p1, $completion) { return this.hpr(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(StoreActivitiesUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 18; var tmp_0 = this; var this_0 = this.ypp_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(item.ipr_1.nl0(VOID, VOID, VOID, VOID, VOID, VOID, this.zpp_1)); } tmp_0.cpq_1 = destination; this.id_1 = 1; suspendResult = this.apq_1.opr_1.i7e().rip(this.cpq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var this_1 = this.cpq_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); if (!_get_isIdOnly__t0wrie(element, this.apq_1)) { destination_0.i1(element); } } tmp_1.dpq_1 = destination_0; this.epq_1 = this.dpq_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.epq_1.f()) { this.id_1 = 5; continue $sm; } this.fpq_1 = this.epq_1.e(); var tmp_2 = this; tmp_2.gpq_1 = this.fpq_1; this.id_1 = 3; suspendResult = this.apq_1.opr_1.i7e().sip(this.gpq_1.wip_1, this.gpq_1.zip_1, this.zpp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 4; suspendResult = this.apq_1.opr_1.i7e().tip(this.gpq_1.wip_1, this.gpq_1.yip_1, this.gpq_1.zip_1, this.gpq_1.aiq_1, this.gpq_1.biq_1, this.zpp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.id_1 = 2; continue $sm; case 5: var tmp_3 = this; var this_2 = this.ypp_1; var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var element_0 = tmp0_iterator_1.e(); var list = element_0.jpr_1; addAll(destination_1, list); } tmp_3.hpq_1 = destination_1; var tmp_4 = this; var this_3 = this.ypp_1; var destination_2 = ArrayList_init_$Create$(); var tmp0_iterator_2 = this_3.w(); while (tmp0_iterator_2.f()) { var element_1 = tmp0_iterator_2.e(); var list_0 = element_1.kpr_1; addAll(destination_2, list_0); } tmp_4.ipq_1 = destination_2; this.id_1 = 6; var tmp_5 = this.apq_1.npr_1.x7f(); var this_4 = this.ipq_1; var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10)); var tmp0_iterator_3 = this_4.w(); while (tmp0_iterator_3.f()) { var item_0 = tmp0_iterator_3.e(); destination_3.i1(item_0.jiv_1); } suspendResult = tmp_5.giv(toList(distinct(destination_3)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.jpq_1 = suspendResult; this.kpq_1 = toSet(this.jpq_1); this.id_1 = 7; var tmp_6 = this.apq_1.opr_1.x7f(); var this_5 = this.ipq_1; var destination_4 = ArrayList_init_$Create$(); var tmp0_iterator_4 = this_5.w(); while (tmp0_iterator_4.f()) { var element_2 = tmp0_iterator_4.e(); if (!this.kpq_1.a1(element_2.jiv_1)) { destination_4.i1(element_2); } } suspendResult = tmp_6.fiv(destination_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var tmp_7 = this; var this_6 = this.hpq_1; var first = ArrayList_init_$Create$(); var second = ArrayList_init_$Create$(); var tmp0_iterator_5 = this_6.w(); while (tmp0_iterator_5.f()) { var element_3 = tmp0_iterator_5.e(); if (element_3.pix_1.equals(new Long(0, 0))) { first.i1(element_3); } else { second.i1(element_3); } } tmp_7.lpq_1 = new Pair(first, second); this.mpq_1 = this.lpq_1.y6(); this.npq_1 = this.lpq_1.z6(); this.id_1 = 8; suspendResult = this.apq_1.opr_1.w7f().eix(this.mpq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: var tmp_8 = this; tmp_8.opq_1 = this.npq_1; this.ppq_1 = this.opq_1.w(); this.id_1 = 9; continue $sm; case 9: if (!this.ppq_1.f()) { this.id_1 = 11; continue $sm; } this.qpq_1 = this.ppq_1.e(); var tmp_9 = this; tmp_9.rpq_1 = this.qpq_1; this.spq_1 = this.apq_1.opr_1.w7f(); this.tpq_1 = this.rpq_1.kix_1; this.upq_1 = this.rpq_1.pix_1; this.vpq_1 = this.rpq_1.nix_1; this.wpq_1 = this.rpq_1.oix_1; this.xpq_1 = this.rpq_1.mix_1; this.ypq_1 = this.rpq_1.lix_1; this.id_1 = 10; suspendResult = this.spq_1.fix(this.tpq_1, this.ypq_1, this.vpq_1, this.xpq_1, this.wpq_1, this.upq_1, this.zpp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: this.id_1 = 9; continue $sm; case 11: var tmp_10 = this; tmp_10.zpq_1 = this.hpq_1; this.apr_1 = this.zpq_1.w(); this.id_1 = 12; continue $sm; case 12: if (!this.apr_1.f()) { this.id_1 = 14; continue $sm; } this.bpr_1 = this.apr_1.e(); var tmp_11 = this; tmp_11.cpr_1 = this.bpr_1; this.id_1 = 13; suspendResult = this.apq_1.opr_1.w7f().gix(this.cpr_1.kix_1, this.cpr_1.lix_1, this.cpr_1.oix_1, this.zpp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 13: this.id_1 = 12; continue $sm; case 14: this.id_1 = 15; var tmp_12 = this.apq_1.opr_1.y7f(); var this_7 = this.ypp_1; var destination_5 = ArrayList_init_$Create$(); var tmp0_iterator_6 = this_7.w(); while (tmp0_iterator_6.f()) { var element_4 = tmp0_iterator_6.e(); var list_1 = element_4.lpr_1; addAll(destination_5, list_1); } suspendResult = tmp_12.biu(destination_5, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: var tmp_13 = this; var this_8 = this.ypp_1; var destination_6 = ArrayList_init_$Create$(); var tmp0_iterator_7 = this_8.w(); while (tmp0_iterator_7.f()) { var element_5 = tmp0_iterator_7.e(); var tmp0_safe_receiver = element_5.mpr_1; if (tmp0_safe_receiver == null) null; else { destination_6.i1(tmp0_safe_receiver); } } var tmp_14; if (!destination_6.c1()) { tmp_14 = destination_6; } else { tmp_14 = null; } tmp_13.dpr_1 = tmp_14; if (this.dpr_1 == null) { this.epr_1 = null; this.id_1 = 17; continue $sm; } else { var tmp_15 = this; tmp_15.fpr_1 = this.dpr_1; var tmp_16 = this; tmp_16.gpr_1 = this.fpr_1; this.id_1 = 16; suspendResult = this.apq_1.opr_1.z7f().jjd(this.gpr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: this.epr_1 = this.fpr_1; this.id_1 = 17; continue $sm; case 17: return this.epr_1; case 18: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 18) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(StoreActivitiesUseCase$invoke$slambda).enz = function (it, completion) { var i = new StoreActivitiesUseCase$invoke$slambda(this.ypp_1, this.zpp_1, this.apq_1, completion); i.bpq_1 = it; return i; }; function StoreActivitiesUseCase$invoke$slambda_0($activityEntities, $timeNow, this$0, resultContinuation) { var i = new StoreActivitiesUseCase$invoke$slambda($activityEntities, $timeNow, this$0, resultContinuation); var l = function (it, $completion) { return i.hpr(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$42(_this__u8e3s4, activityEntities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xpr_1 = _this__u8e3s4; this.ypr_1 = activityEntities; } protoOf($invokeCOROUTINE$42).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.zpr_1 = systemTimeInMillis(); this.id_1 = 1; suspendResult = withDoorTransactionAsync(this.xpr_1.opr_1, VOID, StoreActivitiesUseCase$invoke$slambda_0(this.ypr_1, this.zpr_1, this.xpr_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function StoreActivitiesUseCase(db, repo) { this.npr_1 = db; var tmp = this; tmp.opr_1 = repo == null ? this.npr_1 : repo; } protoOf(StoreActivitiesUseCase).aps = function (activityEntities, $completion) { var tmp = new $invokeCOROUTINE$42(this, activityEntities, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function XapiException(responseCode, message, cause) { cause = cause === VOID ? null : cause; Exception_init_$Init$_1(message, cause, this); captureStack(this, XapiException); this.bps_1 = responseCode; } function XapiJson$_init_$lambda_lhwgtd($this$Json) { $this$Json.e4q_1 = false; $this$Json.g4q_1 = true; return Unit_instance; } function XapiJson(json) { var tmp; if (json === VOID) { tmp = Json_0(VOID, XapiJson$_init_$lambda_lhwgtd); } else { tmp = json; } json = tmp; this.cps_1 = json; } protoOf(XapiJson).toString = function () { return 'XapiJson(json=' + this.cps_1 + ')'; }; protoOf(XapiJson).hashCode = function () { return hashCode(this.cps_1); }; protoOf(XapiJson).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiJson)) return false; var tmp0_other_with_cast = other instanceof XapiJson ? other : THROW_CCE(); if (!equals(this.cps_1, tmp0_other_with_cast.cps_1)) return false; return true; }; function xapiRequireValidUuidOrNullAsString(uuid, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid uuid' : errorMessage; try { if (!(uuid == null)) { uuidFrom(uuid); } return uuid; } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, errorMessage + ': ' + e.message, e); } else { throw $p; } } } function xapiRequireValidUuidOrNull(uuid, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid uuid' : errorMessage; try { var tmp; if (uuid == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.xapiRequireValidUuidOrNull.' call tmp = uuidFrom(uuid); } return tmp; } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, errorMessage + ': ' + e.message, e); } else { throw $p; } } } function xapiRequireValidIRI(iri, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid iri' : errorMessage; if (iri == null) throw new XapiException(400, errorMessage + ': iri is null'); xapiRequireValidIRIOrNull(iri); return iri; } function xapiRequireDurationOrNullAsLong(duration) { var tmp; if (duration == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.xapiRequireDurationOrNullAsLong.' call var tmp_0; try { tmp_0 = _Duration___get_inWholeMilliseconds__impl__msfiry(Companion_getInstance_9().km(duration)); } catch ($p) { var tmp_1; if ($p instanceof Error) { var e = $p; throw new XapiException(400, 'Invalid duration: ' + e.message, e); } else { throw $p; } } tmp = tmp_0; } return tmp; } function xapiRequireTimestampAsLong(timestampStr) { try { return Companion_getInstance_6().p2r(timestampStr).lmh(); } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, 'Invalid timestamp: ' + e.message, e); } else { throw $p; } } } function xapiRequireValidIRIOrNull(iri, errorMessage) { errorMessage = errorMessage === VOID ? 'Invalid IRI:' : errorMessage; if (!(iri == null)) { try { Companion_getInstance_3().p2r(iri); } catch ($p) { if ($p instanceof Error) { var e = $p; throw new XapiException(400, errorMessage + ': ' + e.message, e); } else { throw $p; } } } return iri; } function StatementStoreResult(statementUuids) { this.dps_1 = statementUuids; } protoOf(StatementStoreResult).toString = function () { return 'StatementStoreResult(statementUuids=' + this.dps_1 + ')'; }; protoOf(StatementStoreResult).hashCode = function () { return hashCode(this.dps_1); }; protoOf(StatementStoreResult).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementStoreResult)) return false; var tmp0_other_with_cast = other instanceof StatementStoreResult ? other : THROW_CCE(); if (!equals(this.dps_1, tmp0_other_with_cast.dps_1)) return false; return true; }; function storeStatements($this, statements, xapiSession, $completion) { var tmp = new $storeStatementsCOROUTINE$43($this, statements, xapiSession, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function XapiStatementResource$storeStatements$slambda($statementEntities, this$0, $xapiSession, resultContinuation) { this.apt_1 = $statementEntities; this.bpt_1 = this$0; this.cpt_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiStatementResource$storeStatements$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(XapiStatementResource$storeStatements$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(XapiStatementResource$storeStatements$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 18; var tmp$ret$0; l$ret$1: do { var this_0 = this.apt_1; var tmp_0; if (isInterface(this_0, Collection)) { tmp_0 = this_0.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break l$ret$1; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_safe_receiver = element.xpt_1; var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = tmp0_safe_receiver.ajg_1 ? tmp0_safe_receiver.ijf_1 === true : false; } if (tmp_1 === true) { tmp$ret$0 = true; break l$ret$1; } } tmp$ret$0 = false; } while (false); if (tmp$ret$0) { this.ept_1 = this.bpt_1.aol_1.a7g(); this.fpt_1 = this.cpt_1.kjz_1; this.gpt_1 = systemTimeInMillis(); this.id_1 = 1; suspendResult = this.ept_1.cjz(true, this.gpt_1, this.fpt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: this.id_1 = 2; continue $sm; case 2: this.id_1 = 3; var tmp_2 = this.bpt_1.aol_1.k7e(); var this_1 = this.apt_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = element_0.xpt_1; if (tmp0_safe_receiver_0 == null) null; else { destination.i1(tmp0_safe_receiver_0); } } suspendResult = tmp_2.oje(destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 4; var tmp_3 = this.bpt_1.aol_1.b7g(); var this_2 = this.apt_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_1 = element_1.ypt_1; if (tmp0_safe_receiver_1 == null) null; else { destination_0.i1(tmp0_safe_receiver_1); } } suspendResult = tmp_3.ejw(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_4 = this; var this_3 = this.apt_1; var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_2 = this_3.w(); while (tmp0_iterator_2.f()) { var element_2 = tmp0_iterator_2.e(); var tmp0_elvis_lhs = element_2.zpt_1; var list = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs; addAll(destination_1, list); } tmp_4.hpt_1 = destination_1; var tmp_5 = this; var this_4 = this.hpt_1; var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_4, 10)); var tmp0_iterator_3 = this_4.w(); while (tmp0_iterator_3.f()) { var item = tmp0_iterator_3.e(); destination_2.i1(item.cpu_1); } var destination_3 = ArrayList_init_$Create$(); var tmp0_iterator_4 = destination_2.w(); while (tmp0_iterator_4.f()) { var element_3 = tmp0_iterator_4.e(); var tmp_6 = element_3.gj4_1; if (tmp_6 === 1) { destination_3.i1(element_3); } } var tmp_7; if (!destination_3.c1()) { tmp_7 = destination_3; } else { tmp_7 = null; } tmp_5.ipt_1 = tmp_7; if (this.ipt_1 == null) { this.jpt_1 = null; this.id_1 = 6; continue $sm; } else { var tmp_8 = this; tmp_8.kpt_1 = this.ipt_1; var tmp_9 = this; tmp_9.lpt_1 = this.kpt_1; this.id_1 = 5; suspendResult = insertOrUpdateActorsIfNameChanged(this.bpt_1.aol_1.l7e(), this.lpt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 5: this.jpt_1 = this.kpt_1; this.id_1 = 6; continue $sm; case 6: var tmp_10 = this; var this_5 = this.hpt_1; var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_5, 10)); var tmp0_iterator_5 = this_5.w(); while (tmp0_iterator_5.f()) { var item_0 = tmp0_iterator_5.e(); destination_4.i1(item_0.cpu_1); } var destination_5 = ArrayList_init_$Create$(); var tmp0_iterator_6 = destination_4.w(); while (tmp0_iterator_6.f()) { var element_4 = tmp0_iterator_6.e(); var tmp_11 = element_4.gj4_1; if (tmp_11 === 2) { destination_5.i1(element_4); } } tmp_10.mpt_1 = destination_5; this.id_1 = 7; var tmp_12 = this.bpt_1.vok_1.l7e(); var this_6 = this.mpt_1; var destination_6 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10)); var tmp0_iterator_7 = this_6.w(); while (tmp0_iterator_7.f()) { var item_1 = tmp0_iterator_7.e(); destination_6.i1(item_1.wj3_1); } suspendResult = tmp_12.cj3(destination_6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.npt_1 = suspendResult; var tmp_13 = this; var this_7 = this.hpt_1; var destination_7 = ArrayList_init_$Create$(); var tmp0_iterator_8 = this_7.w(); while (tmp0_iterator_8.f()) { var element_5 = tmp0_iterator_8.e(); var list_0 = element_5.dpu_1; addAll(destination_7, list_0); } var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_7, 10)), 16); var destination_8 = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator_9 = destination_7.w(); while (tmp0_iterator_9.f()) { var element_6 = tmp0_iterator_9.e(); destination_8.s(element_6.wj3_1, element_6); } tmp_13.opt_1 = destination_8; var tmp_14 = this; tmp_14.ppt_1 = this.mpt_1; this.qpt_1 = this.ppt_1.w(); this.id_1 = 8; continue $sm; case 8: if (!this.qpt_1.f()) { this.id_1 = 14; continue $sm; } this.rpt_1 = this.qpt_1.e(); var tmp_15 = this; tmp_15.spt_1 = this.rpt_1; var tmp_16 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_10 = this.npt_1.w(); while (tmp0_iterator_10.f()) { var element_7 = tmp0_iterator_10.e(); if (element_7.yj4_1.equals(this.spt_1.wj3_1)) { tmp$ret$2 = element_7; break l$ret$3; } } tmp$ret$2 = null; } while (false); tmp_16.tpt_1 = tmp$ret$2; var tmp_17 = this; var tmp_18; if (!isAnonymous(this.spt_1)) { var tmp_19 = this.spt_1.ej4_1; var tmp0_safe_receiver_2 = this.tpt_1; tmp_18 = !tmp_19.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.zj4_1); } else { tmp_18 = true; } tmp_17.upt_1 = tmp_18; var tmp_20 = this; var this_8 = this.hpt_1; var destination_9 = ArrayList_init_$Create$(); var tmp0_iterator_11 = this_8.w(); while (tmp0_iterator_11.f()) { var element_8 = tmp0_iterator_11.e(); var list_1 = element_8.epu_1; addAll(destination_9, list_1); } var destination_10 = ArrayList_init_$Create$(); var tmp0_iterator_12 = destination_9.w(); while (tmp0_iterator_12.f()) { var element_9 = tmp0_iterator_12.e(); if (element_9.tj8_1.equals(this.spt_1.wj3_1)) { destination_10.i1(element_9); } } tmp_20.vpt_1 = destination_10; var tmp_21 = this; var this_9 = this.vpt_1; var destination_11 = ArrayList_init_$Create$(); var tmp0_iterator_13 = this_9.w(); while (tmp0_iterator_13.f()) { var element_10 = tmp0_iterator_13.e(); var tmp0_safe_receiver_3 = this.opt_1.q(element_10.uj8_1); if (tmp0_safe_receiver_3 == null) null; else { destination_11.i1(tmp0_safe_receiver_3); } } tmp_21.wpt_1 = destination_11; this.id_1 = 9; suspendResult = insertOrUpdateActorsIfNameChanged(this.bpt_1.aol_1.l7e(), this.wpt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: if (!this.upt_1 ? !(this.tpt_1 == null) : false) { this.id_1 = 12; var tmp_22 = this.bpt_1.aol_1.v7f(); var this_10 = this.vpt_1; var destination_12 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_10, 10)); var tmp0_iterator_14 = this_10.w(); while (tmp0_iterator_14.f()) { var item_2 = tmp0_iterator_14.e(); destination_12.i1(item_2.jl1(VOID, VOID, this.tpt_1.aj5_1)); } suspendResult = insertOrUpdateIfLastModChanged(tmp_22, destination_12, this.tpt_1.aj5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 10; suspendResult = this.bpt_1.aol_1.l7e().aj3(listOf_0(this.spt_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 10: this.id_1 = 11; suspendResult = this.bpt_1.aol_1.v7f().pj8(this.vpt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 11: this.id_1 = 13; continue $sm; case 12: this.id_1 = 13; continue $sm; case 13: this.id_1 = 8; continue $sm; case 14: this.id_1 = 15; var tmp_23 = this.bpt_1.aol_1.h7e(); var this_11 = this.apt_1; var destination_13 = ArrayList_init_$Create$(); var tmp0_iterator_15 = this_11.w(); while (tmp0_iterator_15.f()) { var element_11 = tmp0_iterator_15.e(); var tmp0_safe_receiver_4 = element_11.apu_1; var tmp0_safe_receiver_5 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.fpu_1; if (tmp0_safe_receiver_5 == null) null; else { destination_13.i1(tmp0_safe_receiver_5); } } suspendResult = tmp_23.gjx(destination_13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: this.id_1 = 16; var tmp_24 = this.bpt_1.aol_1.u7f(); var this_12 = this.apt_1; var destination_14 = ArrayList_init_$Create$(); var tmp0_iterator_16 = this_12.w(); while (tmp0_iterator_16.f()) { var element_12 = tmp0_iterator_16.e(); var tmp0_safe_receiver_6 = element_12.apu_1; var tmp1_elvis_lhs = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.gpu_1; var list_2 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; addAll(destination_14, list_2); } suspendResult = tmp_24.ejy(destination_14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 16: this.id_1 = 17; var this_13 = this.apt_1; var destination_15 = ArrayList_init_$Create$(); var tmp0_iterator_17 = this_13.w(); while (tmp0_iterator_17.f()) { var element_13 = tmp0_iterator_17.e(); var tmp0_elvis_lhs_0 = element_13.bpu_1; var list_3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0; addAll(destination_15, list_3); } suspendResult = this.bpt_1.zok_1.aps(destination_15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 17: return Unit_instance; case 18: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 18) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(XapiStatementResource$storeStatements$slambda).enz = function (it, completion) { var i = new XapiStatementResource$storeStatements$slambda(this.apt_1, this.bpt_1, this.cpt_1, completion); i.dpt_1 = it; return i; }; function XapiStatementResource$storeStatements$slambda_0($statementEntities, this$0, $xapiSession, resultContinuation) { var i = new XapiStatementResource$storeStatements$slambda($statementEntities, this$0, $xapiSession, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function $storeStatementsCOROUTINE$43(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mps_1 = _this__u8e3s4; this.nps_1 = statements; this.ops_1 = xapiSession; } protoOf($storeStatementsCOROUTINE$43).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.pps_1 = identifierHash(agent(this.ops_1, this.mps_1.xok_1), this.mps_1.wok_1); var tmp_0 = this; var it = knownActorUidToPersonUidsMap(this.ops_1, this.mps_1.bol_1); var tmp_1; if (!it.r(this.pps_1)) { tmp_1 = plus_3(it, to(this.pps_1, this.ops_1.pjz_1)); } else { tmp_1 = it; } tmp_0.qps_1 = tmp_1; var tmp_2 = this; var this_0 = this.nps_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var timeNowStr = System_instance.fme().toString(); var tmp1_elvis_lhs = element.npu_1; var tmp4_timestamp = tmp1_elvis_lhs == null ? timeNowStr : tmp1_elvis_lhs; var tmp0_elvis_lhs = xapiRequireValidUuidOrNullAsString(element.hpu_1); var tmp5_id = tmp0_elvis_lhs == null ? randomUuidAsString() : tmp0_elvis_lhs; var tmp2_name = this.ops_1.rjz_1; var tmp3_homePage = this.mps_1.xok_1.cnu_1; var tmp6_authority = new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(tmp3_homePage, tmp2_name)); var exactStatement = element.tpu(tmp5_id, VOID, VOID, VOID, VOID, VOID, tmp4_timestamp, timeNowStr, tmp6_authority); var tmp7_stringHasher = this.mps_1.wok_1; var tmp8_exactJson = this.mps_1.bol_1.s45(Companion_getInstance_91().o4r(), exactStatement); var tmp9_primaryKeyManager = get_doorPrimaryKeyManager(this.mps_1.vok_1); var tmp10_hasherFactory = this.mps_1.yok_1; var tmp11_json = this.mps_1.bol_1; var tmp12_learningSpace = this.mps_1.xok_1; var list = toEntities_3(exactStatement, tmp7_stringHasher, tmp9_primaryKeyManager, tmp10_hasherFactory, tmp11_json, this.ops_1, this.qps_1, tmp8_exactJson, false, tmp12_learningSpace); addAll(destination, list); } tmp_2.rps_1 = destination; this.id_1 = 1; suspendResult = withDoorTransactionAsync(this.mps_1.aol_1, VOID, XapiStatementResource$storeStatements$slambda_0(this.rps_1, this.mps_1, this.ops_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_1 = this.rps_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver = element_0.xpt_1; var tmp_3; if (tmp0_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = Uuid_init_$Create$(tmp0_safe_receiver.yje_1, tmp0_safe_receiver.zje_1); } var tmp0_safe_receiver_0 = tmp_3; if (tmp0_safe_receiver_0 == null) null; else { destination_0.i1(tmp0_safe_receiver_0); } } return new StatementStoreResult(destination_0); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $postCOROUTINE$45(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dpv_1 = _this__u8e3s4; this.epv_1 = statements; this.fpv_1 = xapiSession; } protoOf($postCOROUTINE$45).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = storeStatements(this.dpv_1, this.epv_1, this.fpv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return ARGUMENT.dps_1; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function XapiStatementResource(db, repo, xxHasher, learningSpace, xapiJson, hasherFactory, storeActivitiesUseCase) { this.vok_1 = db; this.wok_1 = xxHasher; this.xok_1 = learningSpace; this.yok_1 = hasherFactory; this.zok_1 = storeActivitiesUseCase; var tmp = this; tmp.aol_1 = repo == null ? this.vok_1 : repo; this.bol_1 = xapiJson.cps_1; } protoOf(XapiStatementResource).col = function (statements, xapiSession, $completion) { var tmp = new $postCOROUTINE$45(this, statements, xapiSession, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function XapiGroupAndPersonUidMap(group, actorUidToPersonUidMap) { this.pom_1 = group; this.qom_1 = actorUidToPersonUidMap; } protoOf(XapiGroupAndPersonUidMap).toString = function () { return 'XapiGroupAndPersonUidMap(group=' + this.pom_1 + ', actorUidToPersonUidMap=' + this.qom_1 + ')'; }; protoOf(XapiGroupAndPersonUidMap).hashCode = function () { var result = this.pom_1.hashCode(); result = imul(result, 31) + hashCode(this.qom_1) | 0; return result; }; protoOf(XapiGroupAndPersonUidMap).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiGroupAndPersonUidMap)) return false; var tmp0_other_with_cast = other instanceof XapiGroupAndPersonUidMap ? other : THROW_CCE(); if (!this.pom_1.equals(tmp0_other_with_cast.pom_1)) return false; if (!equals(this.qom_1, tmp0_other_with_cast.qom_1)) return false; return true; }; function $invokeCOROUTINE$47(_this__u8e3s4, groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.opv_1 = _this__u8e3s4; this.ppv_1 = groupSetUid; this.qpv_1 = groupNum; this.rpv_1 = clazzUid; this.spv_1 = assignmentUid; this.tpv_1 = accountPersonUid; } protoOf($invokeCOROUTINE$47).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.opv_1.lom_1.t7d().wd3(this.ppv_1, this.qpv_1, this.rpv_1, this.spv_1, this.tpv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var groupMembers = suspendResult; var destination = ArrayList_init_$Create$(); var tmp0_iterator = groupMembers.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_safe_receiver = element.dd6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toXapiAgent(tmp0_safe_receiver, this.opv_1.mom_1); var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = element.cd6_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.td4_1; tmp_0 = new Pair(tmp1_safe_receiver, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs); } var tmp0_safe_receiver_1 = tmp_0; if (tmp0_safe_receiver_1 == null) null; else { destination.i1(tmp0_safe_receiver_1); } } var membersAndPersonUids = destination; var tmp_1 = new XapiAccount(this.opv_1.mom_1.cnu_1, 'cgs-' + this.ppv_1.toString() + '-' + this.qpv_1); var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(membersAndPersonUids, 10)); var tmp0_iterator_0 = membersAndPersonUids.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); destination_0.i1(item.w6_1); } var tmp_2 = new XapiGroup(VOID, VOID, VOID, VOID, VOID, tmp_1, destination_0); var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(membersAndPersonUids, 10)), 16); var destination_1 = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator_1 = membersAndPersonUids.w(); while (tmp0_iterator_1.f()) { var element_0 = tmp0_iterator_1.e(); var pair = to(identifierHash(element_0.w6_1, this.opv_1.nom_1), element_0.x6_1); destination_1.s(pair.w6_1, pair.x6_1); } return new XapiGroupAndPersonUidMap(tmp_2, destination_1); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function CreateXapiGroupForCourseGroupUseCase(repo, learningSpace, stringHasher) { this.lom_1 = repo; this.mom_1 = learningSpace; this.nom_1 = stringHasher; } protoOf(CreateXapiGroupForCourseGroupUseCase).oom = function (groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new $invokeCOROUTINE$47(this, groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function insertOrUpdateActorsIfNameChanged(_this__u8e3s4, actors, $completion) { var tmp = new $insertOrUpdateActorsIfNameChangedCOROUTINE$48(_this__u8e3s4, actors, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function $insertOrUpdateActorsIfNameChangedCOROUTINE$48(_this__u8e3s4, actors, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cpw_1 = _this__u8e3s4; this.dpw_1 = actors; } protoOf($insertOrUpdateActorsIfNameChangedCOROUTINE$48).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; suspendResult = this.cpw_1.zj2(this.dpw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.epw_1 = systemTimeInMillis(); var tmp_0 = this; tmp_0.fpw_1 = this.dpw_1; this.gpw_1 = this.fpw_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.gpw_1.f()) { this.id_1 = 4; continue $sm; } this.hpw_1 = this.gpw_1.e(); var tmp_1 = this; tmp_1.ipw_1 = this.hpw_1; this.id_1 = 3; suspendResult = this.cpw_1.bj3(this.ipw_1.wj3_1, this.ipw_1.yj3_1, this.epw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 2; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function insertOrUpdateIfLastModChanged(_this__u8e3s4, memberJoins, lastModTime, $completion) { var tmp = new $insertOrUpdateIfLastModChangedCOROUTINE$49(_this__u8e3s4, memberJoins, lastModTime, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function $insertOrUpdateIfLastModChangedCOROUTINE$49(_this__u8e3s4, memberJoins, lastModTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rpw_1 = _this__u8e3s4; this.spw_1 = memberJoins; this.tpw_1 = lastModTime; } protoOf($insertOrUpdateIfLastModChangedCOROUTINE$49).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; suspendResult = this.rpw_1.oj8(this.spw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this; tmp_0.upw_1 = this.spw_1; this.vpw_1 = this.upw_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.vpw_1.f()) { this.id_1 = 4; continue $sm; } this.wpw_1 = this.vpw_1.e(); var tmp_1 = this; tmp_1.xpw_1 = this.wpw_1; this.id_1 = 3; suspendResult = this.rpw_1.qj8(this.xpw_1.tj8_1, this.xpw_1.uj8_1, this.tpw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 2; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function agent(_this__u8e3s4, learningSpace) { var tmp0_account = new XapiAccount(learningSpace.cnu_1, _this__u8e3s4.rjz_1); var tmp1_objectType = XapiObjectType_Agent_getInstance(); return new XapiAgent(VOID, VOID, VOID, VOID, tmp1_objectType, tmp0_account); } function knownActorUidToPersonUidsMap(_this__u8e3s4, json) { var tmp; // Inline function 'kotlin.text.isNotEmpty' call var this_0 = _this__u8e3s4.ck0_1; if (charSequenceLength(this_0) > 0) { tmp = json.t45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), _this__u8e3s4.ck0_1); } else { tmp = emptyMap(); } return tmp; } function authorizationHeader(_this__u8e3s4) { return 'Basic ' + encodeBase64(_this__u8e3s4.kjz_1.toString() + ':' + _this__u8e3s4.ak0_1); } function get_registrationUuid(_this__u8e3s4) { return Uuid_init_$Create$(_this__u8e3s4.mjz_1, _this__u8e3s4.njz_1); } function get_resultProgressExtension(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.lpu_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dpx_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.ext..' call var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstNotNullOfOrNull' call var tmp0_iterator = get_XAPI_PROGRESSED_EXTENSIONS().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.ext...' call var tmp0_safe_receiver_0 = tmp1_safe_receiver.q(element); var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : get_jsonPrimitive(tmp0_safe_receiver_0); var result = tmp1_safe_receiver_0 == null ? null : get_intOrNull(tmp1_safe_receiver_0); if (!(result == null)) { tmp$ret$1 = result; break $l$block; } } tmp$ret$1 = null; } tmp = tmp$ret$1; } return tmp; } function FormattedStatementResponse(string, stringResource) { stringResource = stringResource === VOID ? null : stringResource; this.epx_1 = string; this.fpx_1 = stringResource; } protoOf(FormattedStatementResponse).gpx = function () { return !(this.epx_1 == null) ? true : !(this.fpx_1 == null); }; protoOf(FormattedStatementResponse).toString = function () { return 'FormattedStatementResponse(string=' + this.epx_1 + ', stringResource=' + this.fpx_1 + ')'; }; protoOf(FormattedStatementResponse).hashCode = function () { var result = this.epx_1 == null ? 0 : getStringHashCode(this.epx_1); result = imul(result, 31) + (this.fpx_1 == null ? 0 : this.fpx_1.hashCode()) | 0; return result; }; protoOf(FormattedStatementResponse).equals = function (other) { if (this === other) return true; if (!(other instanceof FormattedStatementResponse)) return false; var tmp0_other_with_cast = other instanceof FormattedStatementResponse ? other : THROW_CCE(); if (!(this.epx_1 == tmp0_other_with_cast.epx_1)) return false; if (!equals(this.fpx_1, tmp0_other_with_cast.fpx_1)) return false; return true; }; function Companion_58() { Companion_instance_106 = this; var tmp = this; tmp.hpx_1 = listOf([2, 7, 8, 5, 6]); } var Companion_instance_106; function Companion_getInstance_76() { if (Companion_instance_106 == null) new Companion_58(); return Companion_instance_106; } function FormatStatementResponseUseCase$invoke$slambda($activityEntity, $statement, this$0, resultContinuation) { this.qpx_1 = $activityEntity; this.rpx_1 = $statement; this.spx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(FormatStatementResponseUseCase$invoke$slambda).epy = function ($this$flow, $completion) { var tmp = this.fpy($this$flow, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).ie = function (p1, $completion) { return this.epy((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 11; var tmp_0 = this; var tmp0_safe_receiver = this.qpx_1; tmp_0.upx_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.aiq_1; this.vpx_1 = this.rpx_1.pjf_1; var tmp_1; if (this.vpx_1 == null ? true : this.upx_1 == null) { tmp_1 = true; } else { tmp_1 = this.upx_1 === 0; } if (tmp_1) { this.id_1 = 10; var tmp1_safe_receiver = this.vpx_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = toString(trim(isCharSequence(tmp1_safe_receiver) ? tmp1_safe_receiver : THROW_CCE())); } suspendResult = this.tpx_1.u1d(new FormattedStatementResponse(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; continue $sm; } case 1: this.wpx_1 = this.upx_1; if (Companion_getInstance_76().hpx_1.a1(this.wpx_1)) { var tmp_3 = this; tmp_3.xpx_1 = listOfNotNull([this.spx_1.gpy_1, this.spx_1.hpy_1]); this.ypx_1 = this.xpx_1.w(); this.id_1 = 5; continue $sm; } else { if (this.wpx_1 === 1) { this.zpx_1 = toBooleanStrictOrNull(this.vpx_1); this.id_1 = 4; var tmp_4; if (this.zpx_1 === true) { tmp_4 = strings_getInstance().gnr_1; } else if (this.zpx_1 === false) { tmp_4 = strings_getInstance().hnr_1; } else { tmp_4 = null; } suspendResult = this.tpx_1.u1d(new FormattedStatementResponse(null, tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_5; if (this.wpx_1 === 3) { tmp_5 = true; } else { tmp_5 = this.wpx_1 === 4; } if (tmp_5) { this.id_1 = 3; var this_0 = htmlToPlainText(replace(this.vpx_1, '[,]', ', ')); suspendResult = this.tpx_1.u1d(new FormattedStatementResponse(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; var this_1 = htmlToPlainText(this.vpx_1); suspendResult = this.tpx_1.u1d(new FormattedStatementResponse(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 2: this.id_1 = 9; continue $sm; case 3: this.id_1 = 9; continue $sm; case 4: this.id_1 = 9; continue $sm; case 5: if (!this.ypx_1.f()) { this.id_1 = 8; continue $sm; } this.apy_1 = this.ypx_1.e(); var tmp_6 = this; tmp_6.bpy_1 = this.apy_1; this.id_1 = 6; suspendResult = this.bpy_1.w7f().hix(this.rpx_1.djf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.cpy_1 = suspendResult; var tmp_7 = this; var tmp0_subject = this.upx_1; var tmp_8; var tmp_9; var tmp_10; if (tmp0_subject === 2) { tmp_10 = true; } else { tmp_10 = tmp0_subject === 7; } if (tmp_10) { tmp_9 = true; } else { tmp_9 = tmp0_subject === 8; } if (tmp_9) { var tmp_11; if (this.upx_1 === 8) { tmp_11 = 'scale'; } else { tmp_11 = 'choices'; } var propPrefix = tmp_11; var responseIds = split(this.vpx_1, ['[,]']); var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(responseIds, 10)); var tmp0_iterator = responseIds.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.cpy_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); if (element.nix_1 === propPrefix + '-' + item) { tmp$ret$0 = element; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp0_safe_receiver_0 = tmp$ret$0; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.oix_1; destination.i1(tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs); } tmp_8 = joinToString(destination, ', '); } else { if (tmp0_subject === 5) { var this_2 = split(this.vpx_1, ['[,]']); var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var item_0 = tmp0_iterator_1.e(); var pairStrList = split(item_0, ['[.]'], VOID, 2); var sourceId = first_0(pairStrList); var targetId = getOrNull(pairStrList, 1); var tmp$ret$2; l$ret$3: do { var tmp0_iterator_2 = this.cpy_1.w(); while (tmp0_iterator_2.f()) { var element_0 = tmp0_iterator_2.e(); if (element_0.nix_1 === 'source-' + sourceId) { tmp$ret$2 = element_0; break l$ret$3; } } tmp$ret$2 = null; } while (false); var tmp0_safe_receiver_1 = tmp$ret$2; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.oix_1; var sourceText = tmp1_elvis_lhs_0 == null ? sourceId : tmp1_elvis_lhs_0; var tmp$ret$4; l$ret$5: do { var tmp0_iterator_3 = this.cpy_1.w(); while (tmp0_iterator_3.f()) { var element_1 = tmp0_iterator_3.e(); if (element_1.nix_1 === 'target-' + targetId) { tmp$ret$4 = element_1; break l$ret$5; } } tmp$ret$4 = null; } while (false); var tmp2_safe_receiver = tmp$ret$4; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.oix_1; var targetText = tmp3_elvis_lhs == null ? targetId : tmp3_elvis_lhs; destination_0.i1(sourceText + ' - ' + targetText); } tmp_8 = joinToString(destination_0, ', '); } else { if (tmp0_subject === 6) { var this_3 = split(this.vpx_1, ['[,]']); var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10)); var tmp0_iterator_4 = this_3.w(); while (tmp0_iterator_4.f()) { var item_1 = tmp0_iterator_4.e(); var stepStrList = split(item_1, ['[.]'], VOID, 2); var stepId = first_0(stepStrList); var stepResponse = getOrNull(stepStrList, 1); var tmp$ret$6; l$ret$7: do { var tmp0_iterator_5 = this.cpy_1.w(); while (tmp0_iterator_5.f()) { var element_2 = tmp0_iterator_5.e(); if (element_2.nix_1 === 'steps-' + stepId) { tmp$ret$6 = element_2; break l$ret$7; } } tmp$ret$6 = null; } while (false); var tmp0_safe_receiver_2 = tmp$ret$6; var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.oix_1; var stepText = tmp1_elvis_lhs_1 == null ? stepId : tmp1_elvis_lhs_1; destination_1.i1(stepText + ': ' + (stepResponse == null ? '' : stepResponse)); } tmp_8 = joinToString(destination_1, ', '); } else { tmp_8 = null; } } } tmp_7.dpy_1 = tmp_8; this.id_1 = 7; var tmp1_elvis_lhs_2 = this.dpy_1; var this_4 = htmlToPlainText(tmp1_elvis_lhs_2 == null ? this.vpx_1 : tmp1_elvis_lhs_2); suspendResult = this.tpx_1.u1d(new FormattedStatementResponse(toString(trim(isCharSequence(this_4) ? this_4 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.id_1 = 5; continue $sm; case 8: this.id_1 = 9; continue $sm; case 9: return Unit_instance; case 10: return Unit_instance; case 11: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 11) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).fpy = function ($this$flow, completion) { var i = new FormatStatementResponseUseCase$invoke$slambda(this.qpx_1, this.rpx_1, this.spx_1, completion); i.tpx_1 = $this$flow; return i; }; function FormatStatementResponseUseCase$invoke$slambda_0($activityEntity, $statement, this$0, resultContinuation) { var i = new FormatStatementResponseUseCase$invoke$slambda($activityEntity, $statement, this$0, resultContinuation); var l = function ($this$flow, $completion) { return i.epy($this$flow, $completion); }; l.$arity = 1; return l; } function FormatStatementResponseUseCase(db, repo) { Companion_getInstance_76(); this.gpy_1 = db; this.hpy_1 = repo; } protoOf(FormatStatementResponseUseCase).ipy = function (statement, activityEntity) { return flow(FormatStatementResponseUseCase$invoke$slambda_0(activityEntity, statement, this, null)); }; function Companion_59() { Companion_instance_107 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.jpy_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null]; } var Companion_instance_107; function Companion_getInstance_77() { if (Companion_instance_107 == null) new Companion_59(); return Companion_instance_107; } function $serializer_44() { $serializer_instance_44 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.Attachment', this, 6); tmp0_serialDesc.u4f('usageType', true); tmp0_serialDesc.u4f('display', true); tmp0_serialDesc.u4f('description', true); tmp0_serialDesc.u4f('contentType', true); tmp0_serialDesc.u4f('length', true); tmp0_serialDesc.u4f('sha2', true); this.kpy_1 = tmp0_serialDesc; } protoOf($serializer_44).r44 = function () { return this.kpy_1; }; protoOf($serializer_44).l4g = function () { var tmp0_cached = Companion_getInstance_77().jpy_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1]), get_nullable(tmp0_cached[2]), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_44).t44 = function (decoder) { var tmp0_desc = this.kpy_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_input = decoder.j48(tmp0_desc); var tmp11_cached = Companion_getInstance_77().jpy_1; if (tmp10_input.y48()) { tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.p48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.p48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.k48(tmp0_desc); return Attachment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_44).lpy = function (encoder, value) { var tmp0_desc = this.kpy_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_77().jpy_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.mpy_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.mpy_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.npy_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, tmp2_cached[1], value.npy_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.opy_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, tmp2_cached[2], value.opy_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.ppy_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ppy_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !value.qpy_1.equals(new Long(0, 0))) { tmp1_output.t49(tmp0_desc, 4, value.qpy_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.rpy_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, StringSerializer_getInstance(), value.rpy_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_44).s44 = function (encoder, value) { return this.lpy(encoder, value instanceof Attachment ? value : THROW_CCE()); }; var $serializer_instance_44; function $serializer_getInstance_56() { if ($serializer_instance_44 == null) new $serializer_44(); return $serializer_instance_44; } function Attachment_init_$Init$(seen1, usageType, display, description, contentType, length, sha2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_56().kpy_1); } if (0 === (seen1 & 1)) $this.mpy_1 = null; else $this.mpy_1 = usageType; if (0 === (seen1 & 2)) $this.npy_1 = null; else $this.npy_1 = display; if (0 === (seen1 & 4)) $this.opy_1 = null; else $this.opy_1 = description; if (0 === (seen1 & 8)) $this.ppy_1 = null; else $this.ppy_1 = contentType; if (0 === (seen1 & 16)) $this.qpy_1 = new Long(0, 0); else $this.qpy_1 = length; if (0 === (seen1 & 32)) $this.rpy_1 = null; else $this.rpy_1 = sha2; return $this; } function Attachment_init_$Create$(seen1, usageType, display, description, contentType, length, sha2, serializationConstructorMarker) { return Attachment_init_$Init$(seen1, usageType, display, description, contentType, length, sha2, serializationConstructorMarker, objectCreate(protoOf(Attachment))); } function Attachment(usageType, display, description, contentType, length, sha2) { Companion_getInstance_77(); usageType = usageType === VOID ? null : usageType; display = display === VOID ? null : display; description = description === VOID ? null : description; contentType = contentType === VOID ? null : contentType; length = length === VOID ? new Long(0, 0) : length; sha2 = sha2 === VOID ? null : sha2; this.mpy_1 = usageType; this.npy_1 = display; this.opy_1 = description; this.ppy_1 = contentType; this.qpy_1 = length; this.rpy_1 = sha2; } protoOf(Attachment).toString = function () { return 'Attachment(usageType=' + this.mpy_1 + ', display=' + this.npy_1 + ', description=' + this.opy_1 + ', contentType=' + this.ppy_1 + ', length=' + this.qpy_1.toString() + ', sha2=' + this.rpy_1 + ')'; }; protoOf(Attachment).hashCode = function () { var result = this.mpy_1 == null ? 0 : getStringHashCode(this.mpy_1); result = imul(result, 31) + (this.npy_1 == null ? 0 : hashCode(this.npy_1)) | 0; result = imul(result, 31) + (this.opy_1 == null ? 0 : hashCode(this.opy_1)) | 0; result = imul(result, 31) + (this.ppy_1 == null ? 0 : getStringHashCode(this.ppy_1)) | 0; result = imul(result, 31) + this.qpy_1.hashCode() | 0; result = imul(result, 31) + (this.rpy_1 == null ? 0 : getStringHashCode(this.rpy_1)) | 0; return result; }; protoOf(Attachment).equals = function (other) { if (this === other) return true; if (!(other instanceof Attachment)) return false; var tmp0_other_with_cast = other instanceof Attachment ? other : THROW_CCE(); if (!(this.mpy_1 == tmp0_other_with_cast.mpy_1)) return false; if (!equals(this.npy_1, tmp0_other_with_cast.npy_1)) return false; if (!equals(this.opy_1, tmp0_other_with_cast.opy_1)) return false; if (!(this.ppy_1 == tmp0_other_with_cast.ppy_1)) return false; if (!this.qpy_1.equals(tmp0_other_with_cast.qpy_1)) return false; if (!(this.rpy_1 == tmp0_other_with_cast.rpy_1)) return false; return true; }; function Companion_60() { } var Companion_instance_108; function Companion_getInstance_78() { return Companion_instance_108; } function $serializer_45() { $serializer_instance_45 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAccount', this, 2); tmp0_serialDesc.u4f('homePage', false); tmp0_serialDesc.u4f('name', false); this.spy_1 = tmp0_serialDesc; } protoOf($serializer_45).r44 = function () { return this.spy_1; }; protoOf($serializer_45).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_45).t44 = function (decoder) { var tmp0_desc = this.spy_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.t48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return XapiAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_45).tpy = function (encoder, value) { var tmp0_desc = this.spy_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.x49(tmp0_desc, 0, value.upy_1); tmp1_output.x49(tmp0_desc, 1, value.vpy_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_45).s44 = function (encoder, value) { return this.tpy(encoder, value instanceof XapiAccount ? value : THROW_CCE()); }; var $serializer_instance_45; function $serializer_getInstance_57() { if ($serializer_instance_45 == null) new $serializer_45(); return $serializer_instance_45; } function XapiAccount_init_$Init$(seen1, homePage, name, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_57().spy_1); } $this.upy_1 = homePage; $this.vpy_1 = name; return $this; } function XapiAccount_init_$Create$(seen1, homePage, name, serializationConstructorMarker) { return XapiAccount_init_$Init$(seen1, homePage, name, serializationConstructorMarker, objectCreate(protoOf(XapiAccount))); } function XapiAccount(homePage, name) { this.upy_1 = homePage; this.vpy_1 = name; } protoOf(XapiAccount).toString = function () { return 'XapiAccount(homePage=' + this.upy_1 + ', name=' + this.vpy_1 + ')'; }; protoOf(XapiAccount).hashCode = function () { var result = getStringHashCode(this.upy_1); result = imul(result, 31) + getStringHashCode(this.vpy_1) | 0; return result; }; protoOf(XapiAccount).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiAccount)) return false; var tmp0_other_with_cast = other instanceof XapiAccount ? other : THROW_CCE(); if (!(this.upy_1 === tmp0_other_with_cast.upy_1)) return false; if (!(this.vpy_1 === tmp0_other_with_cast.vpy_1)) return false; return true; }; function Companion_61() { Companion_instance_109 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.wpy_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_109; function Companion_getInstance_79() { if (Companion_instance_109 == null) new Companion_61(); return Companion_instance_109; } function $serializer_46() { $serializer_instance_46 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivity.Interaction', this, 2); tmp0_serialDesc.u4f('id', true); tmp0_serialDesc.u4f('description', true); this.xpy_1 = tmp0_serialDesc; } protoOf($serializer_46).r44 = function () { return this.xpy_1; }; protoOf($serializer_46).l4g = function () { var tmp0_cached = Companion_getInstance_79().wpy_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1])]; }; protoOf($serializer_46).t44 = function (decoder) { var tmp0_desc = this.xpy_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); var tmp7_cached = Companion_getInstance_79().wpy_1; if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return Interaction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_46).ypy = function (encoder, value) { var tmp0_desc = this.xpy_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_79().wpy_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.zpy_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.zpy_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.apz_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, tmp2_cached[1], value.apz_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_46).s44 = function (encoder, value) { return this.ypy(encoder, value instanceof Interaction ? value : THROW_CCE()); }; var $serializer_instance_46; function $serializer_getInstance_58() { if ($serializer_instance_46 == null) new $serializer_46(); return $serializer_instance_46; } function Interaction_init_$Init$(seen1, id, description, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_58().xpy_1); } if (0 === (seen1 & 1)) $this.zpy_1 = null; else $this.zpy_1 = id; if (0 === (seen1 & 2)) $this.apz_1 = null; else $this.apz_1 = description; return $this; } function Interaction_init_$Create$(seen1, id, description, serializationConstructorMarker) { return Interaction_init_$Init$(seen1, id, description, serializationConstructorMarker, objectCreate(protoOf(Interaction))); } function Interaction(id, description) { Companion_getInstance_79(); id = id === VOID ? null : id; description = description === VOID ? null : description; this.zpy_1 = id; this.apz_1 = description; } protoOf(Interaction).toString = function () { return 'Interaction(id=' + this.zpy_1 + ', description=' + this.apz_1 + ')'; }; protoOf(Interaction).hashCode = function () { var result = this.zpy_1 == null ? 0 : getStringHashCode(this.zpy_1); result = imul(result, 31) + (this.apz_1 == null ? 0 : hashCode(this.apz_1)) | 0; return result; }; protoOf(Interaction).equals = function (other) { if (this === other) return true; if (!(other instanceof Interaction)) return false; var tmp0_other_with_cast = other instanceof Interaction ? other : THROW_CCE(); if (!(this.zpy_1 == tmp0_other_with_cast.zpy_1)) return false; if (!equals(this.apz_1, tmp0_other_with_cast.apz_1)) return false; return true; }; function Companion_62() { Companion_instance_110 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.bpz_1 = [new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance()), null, null, new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_58()), new ArrayListSerializer($serializer_getInstance_58()), new ArrayListSerializer($serializer_getInstance_58()), new ArrayListSerializer($serializer_getInstance_58()), new ArrayListSerializer($serializer_getInstance_58())]; } var Companion_instance_110; function Companion_getInstance_80() { if (Companion_instance_110 == null) new Companion_62(); return Companion_instance_110; } function $serializer_47() { $serializer_instance_47 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('Activity', this, 12); tmp0_serialDesc.u4f('name', true); tmp0_serialDesc.u4f('description', true); tmp0_serialDesc.u4f('type', true); tmp0_serialDesc.u4f('extensions', true); tmp0_serialDesc.u4f('moreInfo', true); tmp0_serialDesc.u4f('interactionType', true); tmp0_serialDesc.u4f('correctResponsePattern', true); tmp0_serialDesc.u4f('choices', true); tmp0_serialDesc.u4f('scale', true); tmp0_serialDesc.u4f('source', true); tmp0_serialDesc.u4f('target', true); tmp0_serialDesc.u4f('steps', true); this.cpz_1 = tmp0_serialDesc; } protoOf($serializer_47).r44 = function () { return this.cpz_1; }; protoOf($serializer_47).l4g = function () { var tmp0_cached = Companion_getInstance_80().bpz_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(tmp0_cached[0]), get_nullable(tmp0_cached[1]), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[3]), get_nullable(StringSerializer_getInstance()), get_nullable(XapiInteractionTypeSerializer_instance), get_nullable(tmp0_cached[6]), get_nullable(tmp0_cached[7]), get_nullable(tmp0_cached[8]), get_nullable(tmp0_cached[9]), get_nullable(tmp0_cached[10]), get_nullable(tmp0_cached[11])]; }; protoOf($serializer_47).t44 = function (decoder) { var tmp0_desc = this.cpz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = null; var tmp16_input = decoder.j48(tmp0_desc); var tmp17_cached = Companion_getInstance_80().bpz_1; if (tmp16_input.y48()) { tmp4_local0 = tmp16_input.x48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.x48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.x48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.x48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.x48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.x48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.x48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.x48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.x48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.x48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.x48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.x48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.x48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.x48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.x48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.x48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.x48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.x48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.x48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.x48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.k48(tmp0_desc); return XapiActivity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); }; protoOf($serializer_47).dpz = function (encoder, value) { var tmp0_desc = this.cpz_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_80().bpz_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.epz_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, tmp2_cached[0], value.epz_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.fpz_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, tmp2_cached[1], value.fpz_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.gpz_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.gpz_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.hpz_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, tmp2_cached[3], value.hpz_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.ipz_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, StringSerializer_getInstance(), value.ipz_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.jpz_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, value.jpz_1); } if (tmp1_output.f4a(tmp0_desc, 6) ? true : !(value.kpz_1 == null)) { tmp1_output.b4a(tmp0_desc, 6, tmp2_cached[6], value.kpz_1); } if (tmp1_output.f4a(tmp0_desc, 7) ? true : !(value.lpz_1 == null)) { tmp1_output.b4a(tmp0_desc, 7, tmp2_cached[7], value.lpz_1); } if (tmp1_output.f4a(tmp0_desc, 8) ? true : !(value.mpz_1 == null)) { tmp1_output.b4a(tmp0_desc, 8, tmp2_cached[8], value.mpz_1); } if (tmp1_output.f4a(tmp0_desc, 9) ? true : !(value.npz_1 == null)) { tmp1_output.b4a(tmp0_desc, 9, tmp2_cached[9], value.npz_1); } if (tmp1_output.f4a(tmp0_desc, 10) ? true : !(value.opz_1 == null)) { tmp1_output.b4a(tmp0_desc, 10, tmp2_cached[10], value.opz_1); } if (tmp1_output.f4a(tmp0_desc, 11) ? true : !(value.ppz_1 == null)) { tmp1_output.b4a(tmp0_desc, 11, tmp2_cached[11], value.ppz_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_47).s44 = function (encoder, value) { return this.dpz(encoder, value instanceof XapiActivity ? value : THROW_CCE()); }; var $serializer_instance_47; function $serializer_getInstance_59() { if ($serializer_instance_47 == null) new $serializer_47(); return $serializer_instance_47; } function XapiActivity_init_$Init$(seen1, name, description, type, extensions, moreInfo, interactionType, correctResponsePattern, choices, scale, source, target, steps, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_59().cpz_1); } if (0 === (seen1 & 1)) $this.epz_1 = null; else $this.epz_1 = name; if (0 === (seen1 & 2)) $this.fpz_1 = null; else $this.fpz_1 = description; if (0 === (seen1 & 4)) $this.gpz_1 = null; else $this.gpz_1 = type; if (0 === (seen1 & 8)) $this.hpz_1 = null; else $this.hpz_1 = extensions; if (0 === (seen1 & 16)) $this.ipz_1 = null; else $this.ipz_1 = moreInfo; if (0 === (seen1 & 32)) $this.jpz_1 = null; else $this.jpz_1 = interactionType; if (0 === (seen1 & 64)) $this.kpz_1 = null; else $this.kpz_1 = correctResponsePattern; if (0 === (seen1 & 128)) $this.lpz_1 = null; else $this.lpz_1 = choices; if (0 === (seen1 & 256)) $this.mpz_1 = null; else $this.mpz_1 = scale; if (0 === (seen1 & 512)) $this.npz_1 = null; else $this.npz_1 = source; if (0 === (seen1 & 1024)) $this.opz_1 = null; else $this.opz_1 = target; if (0 === (seen1 & 2048)) $this.ppz_1 = null; else $this.ppz_1 = steps; return $this; } function XapiActivity_init_$Create$(seen1, name, description, type, extensions, moreInfo, interactionType, correctResponsePattern, choices, scale, source, target, steps, serializationConstructorMarker) { return XapiActivity_init_$Init$(seen1, name, description, type, extensions, moreInfo, interactionType, correctResponsePattern, choices, scale, source, target, steps, serializationConstructorMarker, objectCreate(protoOf(XapiActivity))); } function XapiActivity(name, description, type, extensions, moreInfo, interactionType, correctResponsePattern, choices, scale, source, target, steps) { Companion_getInstance_80(); name = name === VOID ? null : name; description = description === VOID ? null : description; type = type === VOID ? null : type; extensions = extensions === VOID ? null : extensions; moreInfo = moreInfo === VOID ? null : moreInfo; interactionType = interactionType === VOID ? null : interactionType; correctResponsePattern = correctResponsePattern === VOID ? null : correctResponsePattern; choices = choices === VOID ? null : choices; scale = scale === VOID ? null : scale; source = source === VOID ? null : source; target = target === VOID ? null : target; steps = steps === VOID ? null : steps; this.epz_1 = name; this.fpz_1 = description; this.gpz_1 = type; this.hpz_1 = extensions; this.ipz_1 = moreInfo; this.jpz_1 = interactionType; this.kpz_1 = correctResponsePattern; this.lpz_1 = choices; this.mpz_1 = scale; this.npz_1 = source; this.opz_1 = target; this.ppz_1 = steps; } protoOf(XapiActivity).toString = function () { return 'XapiActivity(name=' + this.epz_1 + ', description=' + this.fpz_1 + ', type=' + this.gpz_1 + ', extensions=' + this.hpz_1 + ', moreInfo=' + this.ipz_1 + ', interactionType=' + this.jpz_1 + ', correctResponsePattern=' + this.kpz_1 + ', choices=' + this.lpz_1 + ', scale=' + this.mpz_1 + ', source=' + this.npz_1 + ', target=' + this.opz_1 + ', steps=' + this.ppz_1 + ')'; }; protoOf(XapiActivity).hashCode = function () { var result = this.epz_1 == null ? 0 : hashCode(this.epz_1); result = imul(result, 31) + (this.fpz_1 == null ? 0 : hashCode(this.fpz_1)) | 0; result = imul(result, 31) + (this.gpz_1 == null ? 0 : getStringHashCode(this.gpz_1)) | 0; result = imul(result, 31) + (this.hpz_1 == null ? 0 : hashCode(this.hpz_1)) | 0; result = imul(result, 31) + (this.ipz_1 == null ? 0 : getStringHashCode(this.ipz_1)) | 0; result = imul(result, 31) + (this.jpz_1 == null ? 0 : this.jpz_1.hashCode()) | 0; result = imul(result, 31) + (this.kpz_1 == null ? 0 : hashCode(this.kpz_1)) | 0; result = imul(result, 31) + (this.lpz_1 == null ? 0 : hashCode(this.lpz_1)) | 0; result = imul(result, 31) + (this.mpz_1 == null ? 0 : hashCode(this.mpz_1)) | 0; result = imul(result, 31) + (this.npz_1 == null ? 0 : hashCode(this.npz_1)) | 0; result = imul(result, 31) + (this.opz_1 == null ? 0 : hashCode(this.opz_1)) | 0; result = imul(result, 31) + (this.ppz_1 == null ? 0 : hashCode(this.ppz_1)) | 0; return result; }; protoOf(XapiActivity).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiActivity)) return false; var tmp0_other_with_cast = other instanceof XapiActivity ? other : THROW_CCE(); if (!equals(this.epz_1, tmp0_other_with_cast.epz_1)) return false; if (!equals(this.fpz_1, tmp0_other_with_cast.fpz_1)) return false; if (!(this.gpz_1 == tmp0_other_with_cast.gpz_1)) return false; if (!equals(this.hpz_1, tmp0_other_with_cast.hpz_1)) return false; if (!(this.ipz_1 == tmp0_other_with_cast.ipz_1)) return false; if (!equals(this.jpz_1, tmp0_other_with_cast.jpz_1)) return false; if (!equals(this.kpz_1, tmp0_other_with_cast.kpz_1)) return false; if (!equals(this.lpz_1, tmp0_other_with_cast.lpz_1)) return false; if (!equals(this.mpz_1, tmp0_other_with_cast.mpz_1)) return false; if (!equals(this.npz_1, tmp0_other_with_cast.npz_1)) return false; if (!equals(this.opz_1, tmp0_other_with_cast.opz_1)) return false; if (!equals(this.ppz_1, tmp0_other_with_cast.ppz_1)) return false; return true; }; function ActivityEntities(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) { activityLangMapEntries = activityLangMapEntries === VOID ? emptyList() : activityLangMapEntries; activityInteractionEntities = activityInteractionEntities === VOID ? emptyList() : activityInteractionEntities; activityExtensionEntities = activityExtensionEntities === VOID ? emptyList() : activityExtensionEntities; statementContextActivityJoin = statementContextActivityJoin === VOID ? null : statementContextActivityJoin; this.ipr_1 = activityEntity; this.jpr_1 = activityLangMapEntries; this.kpr_1 = activityInteractionEntities; this.lpr_1 = activityExtensionEntities; this.mpr_1 = statementContextActivityJoin; } protoOf(ActivityEntities).qpz = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) { return new ActivityEntities(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).rpz = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin, $super) { activityEntity = activityEntity === VOID ? this.ipr_1 : activityEntity; activityLangMapEntries = activityLangMapEntries === VOID ? this.jpr_1 : activityLangMapEntries; activityInteractionEntities = activityInteractionEntities === VOID ? this.kpr_1 : activityInteractionEntities; activityExtensionEntities = activityExtensionEntities === VOID ? this.lpr_1 : activityExtensionEntities; statementContextActivityJoin = statementContextActivityJoin === VOID ? this.mpr_1 : statementContextActivityJoin; return $super === VOID ? this.qpz(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) : $super.qpz.call(this, activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).toString = function () { return 'ActivityEntities(activityEntity=' + this.ipr_1 + ', activityLangMapEntries=' + this.jpr_1 + ', activityInteractionEntities=' + this.kpr_1 + ', activityExtensionEntities=' + this.lpr_1 + ', statementContextActivityJoin=' + this.mpr_1 + ')'; }; protoOf(ActivityEntities).hashCode = function () { var result = this.ipr_1.hashCode(); result = imul(result, 31) + hashCode(this.jpr_1) | 0; result = imul(result, 31) + hashCode(this.kpr_1) | 0; result = imul(result, 31) + hashCode(this.lpr_1) | 0; result = imul(result, 31) + (this.mpr_1 == null ? 0 : this.mpr_1.hashCode()) | 0; return result; }; protoOf(ActivityEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityEntities)) return false; var tmp0_other_with_cast = other instanceof ActivityEntities ? other : THROW_CCE(); if (!this.ipr_1.equals(tmp0_other_with_cast.ipr_1)) return false; if (!equals(this.jpr_1, tmp0_other_with_cast.jpr_1)) return false; if (!equals(this.kpr_1, tmp0_other_with_cast.kpr_1)) return false; if (!equals(this.lpr_1, tmp0_other_with_cast.lpr_1)) return false; if (!equals(this.mpr_1, tmp0_other_with_cast.mpr_1)) return false; return true; }; function toEntities(_this__u8e3s4, activityId, stringHasher, json) { xapiRequireValidIRI(activityId, 'Activity ID is not a valid IRI: ' + activityId); var activityUid = stringHasher.om7(activityId); var tmp9_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.lpz_1; var tmp; if (tmp9_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp9_safe_receiver, 10)); var tmp0_iterator = tmp9_safe_receiver.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var tmp$ret$0 = toEntities$toEntities(item, stringHasher, activityUid, 1, 'choices'); destination.i1(tmp$ret$0); } tmp = destination; } var tmp_0 = toEmptyIfNull(tmp); var tmp7_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.mpz_1; var tmp_1; if (tmp7_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp7_safe_receiver, 10)); var tmp0_iterator_0 = tmp7_safe_receiver.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var tmp$ret$3 = toEntities$toEntities(item_0, stringHasher, activityUid, 2, 'scale'); destination_0.i1(tmp$ret$3); } tmp_1 = destination_0; } var tmp_2 = plus(tmp_0, toEmptyIfNull(tmp_1)); var tmp5_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.npz_1; var tmp_3; if (tmp5_safe_receiver == null) { tmp_3 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_safe_receiver, 10)); var tmp0_iterator_1 = tmp5_safe_receiver.w(); while (tmp0_iterator_1.f()) { var item_1 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var tmp$ret$6 = toEntities$toEntities(item_1, stringHasher, activityUid, 3, 'source'); destination_1.i1(tmp$ret$6); } tmp_3 = destination_1; } var tmp_4 = plus(tmp_2, toEmptyIfNull(tmp_3)); var tmp3_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.opz_1; var tmp_5; if (tmp3_safe_receiver == null) { tmp_5 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_safe_receiver, 10)); var tmp0_iterator_2 = tmp3_safe_receiver.w(); while (tmp0_iterator_2.f()) { var item_2 = tmp0_iterator_2.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var tmp$ret$9 = toEntities$toEntities(item_2, stringHasher, activityUid, 4, 'target'); destination_2.i1(tmp$ret$9); } tmp_5 = destination_2; } var tmp_6 = plus(tmp_4, toEmptyIfNull(tmp_5)); var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.ppz_1; var tmp_7; if (tmp1_safe_receiver == null) { tmp_7 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10)); var tmp0_iterator_3 = tmp1_safe_receiver.w(); while (tmp0_iterator_3.f()) { var item_3 = tmp0_iterator_3.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var tmp$ret$12 = toEntities$toEntities(item_3, stringHasher, activityUid, 5, 'steps'); destination_3.i1(tmp$ret$12); } tmp_7 = destination_3; } var interactionEntitiesAndLangMaps = plus(tmp_6, toEmptyIfNull(tmp_7)); var tmp_8 = _this__u8e3s4 == null ? null : _this__u8e3s4.gpz_1; var tmp_9 = _this__u8e3s4 == null ? null : _this__u8e3s4.ipz_1; var tmp13_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.jpz_1; var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.vpz_1; var tmp_10; if (tmp14_elvis_lhs == null) { tmp_10 = 0; } else { tmp_10 = tmp14_elvis_lhs; } var tmp_11 = tmp_10; var tmp16_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.kpz_1; var tmp_12; if (tmp16_safe_receiver == null) { tmp_12 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call // Inline function 'kotlinx.serialization.encodeToString' call // Inline function 'kotlinx.serialization.serializer' call var this_0 = json.u45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_1 = serializer(this_0, createKType(getKClass(List), arrayOf([createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false))]), false)); var tmp$ret$16 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(); tmp_12 = json.s45(tmp$ret$16, tmp16_safe_receiver); } var tmp_13 = new ActivityEntity(activityUid, activityId, tmp_8, tmp_9, tmp_11, tmp_12); var tmp20_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.epz_1; var tmp_14; if (tmp20_safe_receiver == null) { tmp_14 = null; } else { tmp_14 = toEntities$toLangMapEntries(tmp20_safe_receiver, activityUid, stringHasher, 'name'); } var tmp_15 = toEmptyIfNull(tmp_14); var tmp18_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fpz_1; var tmp_16; if (tmp18_safe_receiver == null) { tmp_16 = null; } else { tmp_16 = toEntities$toLangMapEntries(tmp18_safe_receiver, activityUid, stringHasher, 'description'); } var tmp_17 = plus(tmp_15, toEmptyIfNull(tmp_16)); // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.flatMapTo' call var destination_4 = ArrayList_init_$Create$(); var tmp0_iterator_4 = interactionEntitiesAndLangMaps.w(); while (tmp0_iterator_4.f()) { var element = tmp0_iterator_4.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var list = element.x6_1; addAll(destination_4, list); } var tmp_18 = plus(tmp_17, destination_4); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_5 = ArrayList_init_$Create$_0(collectionSizeOrDefault(interactionEntitiesAndLangMaps, 10)); var tmp0_iterator_5 = interactionEntitiesAndLangMaps.w(); while (tmp0_iterator_5.f()) { var item_4 = tmp0_iterator_5.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var tmp$ret$23 = item_4.w6_1; destination_5.i1(tmp$ret$23); } var tmp_19 = destination_5; var tmp22_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.hpz_1; var tmp_20; if (tmp22_safe_receiver == null) { tmp_20 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_6 = ArrayList_init_$Create$_0(tmp22_safe_receiver.u()); // Inline function 'kotlin.collections.iterator' call var tmp0_iterator_6 = tmp22_safe_receiver.q2().w(); while (tmp0_iterator_6.f()) { var item_5 = tmp0_iterator_6.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call // Inline function 'kotlin.collections.component1' call var key = item_5.s2(); // Inline function 'kotlin.collections.component2' call var value = item_5.t2(); var tmp$ret$29 = new ActivityExtensionEntity(activityUid, stringHasher.om7(key), xapiRequireValidIRI(key, activityId + ' extension ' + key + ' is not a valid IRI'), json.s45(Companion_instance_23.o4r(), value)); destination_6.i1(tmp$ret$29); } tmp_20 = destination_6; } var tmp23_elvis_lhs = tmp_20; return new ActivityEntities(tmp_13, tmp_18, tmp_19, tmp23_elvis_lhs == null ? emptyList() : tmp23_elvis_lhs); } function toEntities$toLangMapEntries(_this__u8e3s4, activityUid, $stringHasher, propName, almeAieHash) { almeAieHash = almeAieHash === VOID ? new Long(0, 0) : almeAieHash; // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.q2(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.toLangMapEntries.' call // Inline function 'kotlin.collections.component1' call var lang = item.s2(); // Inline function 'kotlin.collections.component2' call var text = item.t2(); var tmp$ret$2 = new ActivityLangMapEntry(activityUid, $stringHasher.om7(propName + '-' + lang), lang, propName, text, almeAieHash); destination.i1(tmp$ret$2); } return destination; } function toEntities$toEntities(_this__u8e3s4, $stringHasher, activityUid, propId, propName) { var aieHash = $stringHasher.om7('' + propId + _this__u8e3s4.zpy_1); var tmp = new ActivityInteractionEntity(activityUid, aieHash, propId, _this__u8e3s4.zpy_1); var tmp0_safe_receiver = _this__u8e3s4.apz_1; return to(tmp, toEmptyIfNull(tmp0_safe_receiver == null ? null : toEntities$toLangMapEntries(tmp0_safe_receiver, activityUid, $stringHasher, propName + '-' + _this__u8e3s4.zpy_1, aieHash))); } function Companion_63() { } protoOf(Companion_63).o4r = function () { return XapiActorSerializer_getInstance(); }; protoOf(Companion_63).w4g = function (typeParamsSerializers) { return this.o4r(); }; var Companion_instance_111; function Companion_getInstance_81() { return Companion_instance_111; } function XapiActor() { } function XapiActorSerializer() { XapiActorSerializer_instance = this; JsonContentPolymorphicSerializer.call(this, getKClass(XapiActor)); } protoOf(XapiActorSerializer).m4r = function (element) { var tmp0_safe_receiver = get_jsonObject(element).ba('type'); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h3b(); var tmp; if (tmp2_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiActorSerializer.selectDeserializer.' call tmp = valueOf(tmp2_safe_receiver); } var tmp3_elvis_lhs = tmp; var objectType = tmp3_elvis_lhs == null ? XapiObjectType_Agent_getInstance() : tmp3_elvis_lhs; var tmp_0; switch (objectType.za_1) { case 3: tmp_0 = Companion_instance_112.o4r(); break; case 4: tmp_0 = Companion_getInstance_86().o4r(); break; default: throw new XapiException(400, 'Invalid object type for actor: must be Agent or Group'); } return tmp_0; }; var XapiActorSerializer_instance; function XapiActorSerializer_getInstance() { if (XapiActorSerializer_instance == null) new XapiActorSerializer(); return XapiActorSerializer_instance; } function identifierHash(_this__u8e3s4, xxHasher) { var tmp; if (!(_this__u8e3s4.zpz() == null)) { var tmp0_safe_receiver = _this__u8e3s4.zpz(); var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vpy_1; var tmp1_safe_receiver = _this__u8e3s4.zpz(); tmp = '' + tmp_0 + '@' + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.upy_1); } else if (!(_this__u8e3s4.wpz() == null)) { tmp = _this__u8e3s4.wpz(); } else if (!(_this__u8e3s4.xpz() == null)) { tmp = _this__u8e3s4.xpz(); } else if (!(_this__u8e3s4.ypz() == null)) { tmp = _this__u8e3s4.ypz(); } else { tmp = null; } var idStr = tmp; var tmp_1; if (idStr == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.identifierHash.' call tmp_1 = xxHasher.om7(idStr); } var tmp3_elvis_lhs = tmp_1; return tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; } function ActorEntities(actor, groupMemberAgents, groupMemberJoins) { groupMemberAgents = groupMemberAgents === VOID ? emptyList() : groupMemberAgents; groupMemberJoins = groupMemberJoins === VOID ? emptyList() : groupMemberJoins; this.cpu_1 = actor; this.dpu_1 = groupMemberAgents; this.epu_1 = groupMemberJoins; } protoOf(ActorEntities).toString = function () { return 'ActorEntities(actor=' + this.cpu_1 + ', groupMemberAgents=' + this.dpu_1 + ', groupMemberJoins=' + this.epu_1 + ')'; }; protoOf(ActorEntities).hashCode = function () { var result = this.cpu_1.hashCode(); result = imul(result, 31) + hashCode(this.dpu_1) | 0; result = imul(result, 31) + hashCode(this.epu_1) | 0; return result; }; protoOf(ActorEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof ActorEntities)) return false; var tmp0_other_with_cast = other instanceof ActorEntities ? other : THROW_CCE(); if (!this.cpu_1.equals(tmp0_other_with_cast.cpu_1)) return false; if (!equals(this.dpu_1, tmp0_other_with_cast.dpu_1)) return false; if (!equals(this.epu_1, tmp0_other_with_cast.epu_1)) return false; return true; }; function toEntities_0(_this__u8e3s4, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap) { knownActorUidToPersonUidMap = knownActorUidToPersonUidMap === VOID ? emptyMap() : knownActorUidToPersonUidMap; var tmp; if (_this__u8e3s4 instanceof XapiAgent) { tmp = new ActorEntities(toActorEntity(_this__u8e3s4, stringHasher, knownActorUidToPersonUidMap)); } else { if (_this__u8e3s4 instanceof XapiGroup) { tmp = toGroupEntities(_this__u8e3s4, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); } else { noWhenBranchMatchedException(); } } return tmp; } function Companion_64() { } protoOf(Companion_64).o4r = function () { return $serializer_getInstance_60(); }; var Companion_instance_112; function Companion_getInstance_82() { return Companion_instance_112; } function $serializer_48() { $serializer_instance_48 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAgent', this, 6); tmp0_serialDesc.u4f('name', true); tmp0_serialDesc.u4f('mbox', true); tmp0_serialDesc.u4f('mbox_sha1sum', true); tmp0_serialDesc.u4f('openid', true); tmp0_serialDesc.u4f('objectType', true); tmp0_serialDesc.u4f('account', true); this.dq0_1 = tmp0_serialDesc; } protoOf($serializer_48).r44 = function () { return this.dq0_1; }; protoOf($serializer_48).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(XapiObjectTypeSerializer_instance), get_nullable($serializer_getInstance_57())]; }; protoOf($serializer_48).t44 = function (decoder) { var tmp0_desc = this.dq0_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.j48(tmp0_desc); if (tmp10_input.y48()) { tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.k48(tmp0_desc); return XapiAgent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_48).eq0 = function (encoder, value) { var tmp0_desc = this.dq0_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.fq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.fq0_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.gq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, StringSerializer_getInstance(), value.gq0_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.hq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.hq0_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.iq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.iq0_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.jq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.jq0_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.kq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, $serializer_getInstance_57(), value.kq0_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_48).s44 = function (encoder, value) { return this.eq0(encoder, value instanceof XapiAgent ? value : THROW_CCE()); }; var $serializer_instance_48; function $serializer_getInstance_60() { if ($serializer_instance_48 == null) new $serializer_48(); return $serializer_instance_48; } function XapiAgent_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_60().dq0_1); } if (0 === (seen1 & 1)) $this.fq0_1 = null; else $this.fq0_1 = name; if (0 === (seen1 & 2)) $this.gq0_1 = null; else $this.gq0_1 = mbox; if (0 === (seen1 & 4)) $this.hq0_1 = null; else $this.hq0_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.iq0_1 = null; else $this.iq0_1 = openid; if (0 === (seen1 & 16)) $this.jq0_1 = null; else $this.jq0_1 = objectType; if (0 === (seen1 & 32)) $this.kq0_1 = null; else $this.kq0_1 = account; return $this; } function XapiAgent_init_$Create$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, serializationConstructorMarker) { return XapiAgent_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, serializationConstructorMarker, objectCreate(protoOf(XapiAgent))); } function XapiAgent(name, mbox, mbox_sha1sum, openid, objectType, account) { name = name === VOID ? null : name; mbox = mbox === VOID ? null : mbox; mbox_sha1sum = mbox_sha1sum === VOID ? null : mbox_sha1sum; openid = openid === VOID ? null : openid; objectType = objectType === VOID ? null : objectType; account = account === VOID ? null : account; this.fq0_1 = name; this.gq0_1 = mbox; this.hq0_1 = mbox_sha1sum; this.iq0_1 = openid; this.jq0_1 = objectType; this.kq0_1 = account; } protoOf(XapiAgent).wpz = function () { return this.gq0_1; }; protoOf(XapiAgent).xpz = function () { return this.hq0_1; }; protoOf(XapiAgent).ypz = function () { return this.iq0_1; }; protoOf(XapiAgent).lq0 = function () { return this.jq0_1; }; protoOf(XapiAgent).zpz = function () { return this.kq0_1; }; protoOf(XapiAgent).toString = function () { return 'XapiAgent(name=' + this.fq0_1 + ', mbox=' + this.gq0_1 + ', mbox_sha1sum=' + this.hq0_1 + ', openid=' + this.iq0_1 + ', objectType=' + this.jq0_1 + ', account=' + this.kq0_1 + ')'; }; protoOf(XapiAgent).hashCode = function () { var result = this.fq0_1 == null ? 0 : getStringHashCode(this.fq0_1); result = imul(result, 31) + (this.gq0_1 == null ? 0 : getStringHashCode(this.gq0_1)) | 0; result = imul(result, 31) + (this.hq0_1 == null ? 0 : getStringHashCode(this.hq0_1)) | 0; result = imul(result, 31) + (this.iq0_1 == null ? 0 : getStringHashCode(this.iq0_1)) | 0; result = imul(result, 31) + (this.jq0_1 == null ? 0 : this.jq0_1.hashCode()) | 0; result = imul(result, 31) + (this.kq0_1 == null ? 0 : this.kq0_1.hashCode()) | 0; return result; }; protoOf(XapiAgent).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiAgent)) return false; var tmp0_other_with_cast = other instanceof XapiAgent ? other : THROW_CCE(); if (!(this.fq0_1 == tmp0_other_with_cast.fq0_1)) return false; if (!(this.gq0_1 == tmp0_other_with_cast.gq0_1)) return false; if (!(this.hq0_1 == tmp0_other_with_cast.hq0_1)) return false; if (!(this.iq0_1 == tmp0_other_with_cast.iq0_1)) return false; if (!equals(this.jq0_1, tmp0_other_with_cast.jq0_1)) return false; if (!equals(this.kq0_1, tmp0_other_with_cast.kq0_1)) return false; return true; }; function toActorEntity(_this__u8e3s4, xxHasher, knownActorUidToPersonUidMap, lastModifiedTime) { lastModifiedTime = lastModifiedTime === VOID ? systemTimeInMillis() : lastModifiedTime; var uid = identifierHash(_this__u8e3s4, xxHasher); var tmp0_elvis_lhs = knownActorUidToPersonUidMap.q(uid); var tmp5_actorPersonUid = tmp0_elvis_lhs == null ? new Long(0, 0) : tmp0_elvis_lhs; var tmp6_actorMbox = _this__u8e3s4.gq0_1; var tmp7_actorMbox_sha1sum = _this__u8e3s4.hq0_1; var tmp8_actorOpenid = _this__u8e3s4.iq0_1; var tmp1_safe_receiver = _this__u8e3s4.kq0_1; var tmp9_actorAccountName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vpy_1; var tmp2_safe_receiver = _this__u8e3s4.kq0_1; var tmp10_actorAccountHomePage = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.upy_1; var tmp3_safe_receiver = _this__u8e3s4.fq0_1; var tmp; if (tmp3_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toActorEntity.' call tmp = xxHasher.om7(tmp3_safe_receiver); } var tmp4_elvis_lhs = tmp; var tmp11_actorEtag = tmp4_elvis_lhs == null ? new Long(0, 0) : tmp4_elvis_lhs; return new ActorEntity(uid, tmp5_actorPersonUid, VOID, tmp6_actorMbox, tmp7_actorMbox_sha1sum, tmp8_actorOpenid, tmp9_actorAccountName, tmp10_actorAccountHomePage, tmp11_actorEtag, lastModifiedTime, 1); } function Companion_65() { Companion_instance_113 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.mq0_1 = [null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_113; function Companion_getInstance_83() { if (Companion_instance_113 == null) new Companion_65(); return Companion_instance_113; } function $serializer_49() { $serializer_instance_49 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiContext', this, 9); tmp0_serialDesc.u4f('instructor', true); tmp0_serialDesc.u4f('registration', true); tmp0_serialDesc.u4f('language', true); tmp0_serialDesc.u4f('platform', true); tmp0_serialDesc.u4f('revision', true); tmp0_serialDesc.u4f('team', true); tmp0_serialDesc.u4f('statement', true); tmp0_serialDesc.u4f('contextActivities', true); tmp0_serialDesc.u4f('extensions', true); this.nq0_1 = tmp0_serialDesc; } protoOf($serializer_49).r44 = function () { return this.nq0_1; }; protoOf($serializer_49).l4g = function () { var tmp0_cached = Companion_getInstance_83().mq0_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(XapiActorSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(XapiActorSerializer_getInstance()), get_nullable($serializer_getInstance_67()), get_nullable(XapiContextActivitiesSerializer_getInstance()), get_nullable(tmp0_cached[8])]; }; protoOf($serializer_49).t44 = function (decoder) { var tmp0_desc = this.nq0_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_input = decoder.j48(tmp0_desc); var tmp14_cached = Companion_getInstance_83().mq0_1; if (tmp13_input.y48()) { tmp4_local0 = tmp13_input.x48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.x48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.x48(tmp0_desc, 6, $serializer_getInstance_67(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.x48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.x48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.x48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.x48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.x48(tmp0_desc, 6, $serializer_getInstance_67(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.x48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.x48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.k48(tmp0_desc); return XapiContext_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_49).oq0 = function (encoder, value) { var tmp0_desc = this.nq0_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_83().mq0_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.pq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, XapiActorSerializer_getInstance(), value.pq0_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.qq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, StringSerializer_getInstance(), value.qq0_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.rq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.rq0_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.sq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.sq0_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.tq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, StringSerializer_getInstance(), value.tq0_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.uq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, XapiActorSerializer_getInstance(), value.uq0_1); } if (tmp1_output.f4a(tmp0_desc, 6) ? true : !(value.vq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 6, $serializer_getInstance_67(), value.vq0_1); } if (tmp1_output.f4a(tmp0_desc, 7) ? true : !(value.wq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), value.wq0_1); } if (tmp1_output.f4a(tmp0_desc, 8) ? true : !(value.xq0_1 == null)) { tmp1_output.b4a(tmp0_desc, 8, tmp2_cached[8], value.xq0_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_49).s44 = function (encoder, value) { return this.oq0(encoder, value instanceof XapiContext ? value : THROW_CCE()); }; var $serializer_instance_49; function $serializer_getInstance_61() { if ($serializer_instance_49 == null) new $serializer_49(); return $serializer_instance_49; } function XapiContext_init_$Init$(seen1, instructor, registration, language, platform, revision, team, statement, contextActivities, extensions, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_61().nq0_1); } if (0 === (seen1 & 1)) $this.pq0_1 = null; else $this.pq0_1 = instructor; if (0 === (seen1 & 2)) $this.qq0_1 = null; else $this.qq0_1 = registration; if (0 === (seen1 & 4)) $this.rq0_1 = null; else $this.rq0_1 = language; if (0 === (seen1 & 8)) $this.sq0_1 = null; else $this.sq0_1 = platform; if (0 === (seen1 & 16)) $this.tq0_1 = null; else $this.tq0_1 = revision; if (0 === (seen1 & 32)) $this.uq0_1 = null; else $this.uq0_1 = team; if (0 === (seen1 & 64)) $this.vq0_1 = null; else $this.vq0_1 = statement; if (0 === (seen1 & 128)) $this.wq0_1 = null; else $this.wq0_1 = contextActivities; if (0 === (seen1 & 256)) $this.xq0_1 = null; else $this.xq0_1 = extensions; return $this; } function XapiContext_init_$Create$(seen1, instructor, registration, language, platform, revision, team, statement, contextActivities, extensions, serializationConstructorMarker) { return XapiContext_init_$Init$(seen1, instructor, registration, language, platform, revision, team, statement, contextActivities, extensions, serializationConstructorMarker, objectCreate(protoOf(XapiContext))); } function XapiContext(instructor, registration, language, platform, revision, team, statement, contextActivities, extensions) { Companion_getInstance_83(); instructor = instructor === VOID ? null : instructor; registration = registration === VOID ? null : registration; language = language === VOID ? null : language; platform = platform === VOID ? null : platform; revision = revision === VOID ? null : revision; team = team === VOID ? null : team; statement = statement === VOID ? null : statement; contextActivities = contextActivities === VOID ? null : contextActivities; extensions = extensions === VOID ? null : extensions; this.pq0_1 = instructor; this.qq0_1 = registration; this.rq0_1 = language; this.sq0_1 = platform; this.tq0_1 = revision; this.uq0_1 = team; this.vq0_1 = statement; this.wq0_1 = contextActivities; this.xq0_1 = extensions; } protoOf(XapiContext).toString = function () { return 'XapiContext(instructor=' + this.pq0_1 + ', registration=' + this.qq0_1 + ', language=' + this.rq0_1 + ', platform=' + this.sq0_1 + ', revision=' + this.tq0_1 + ', team=' + this.uq0_1 + ', statement=' + this.vq0_1 + ', contextActivities=' + this.wq0_1 + ', extensions=' + this.xq0_1 + ')'; }; protoOf(XapiContext).hashCode = function () { var result = this.pq0_1 == null ? 0 : hashCode(this.pq0_1); result = imul(result, 31) + (this.qq0_1 == null ? 0 : getStringHashCode(this.qq0_1)) | 0; result = imul(result, 31) + (this.rq0_1 == null ? 0 : getStringHashCode(this.rq0_1)) | 0; result = imul(result, 31) + (this.sq0_1 == null ? 0 : getStringHashCode(this.sq0_1)) | 0; result = imul(result, 31) + (this.tq0_1 == null ? 0 : getStringHashCode(this.tq0_1)) | 0; result = imul(result, 31) + (this.uq0_1 == null ? 0 : hashCode(this.uq0_1)) | 0; result = imul(result, 31) + (this.vq0_1 == null ? 0 : this.vq0_1.hashCode()) | 0; result = imul(result, 31) + (this.wq0_1 == null ? 0 : this.wq0_1.hashCode()) | 0; result = imul(result, 31) + (this.xq0_1 == null ? 0 : hashCode(this.xq0_1)) | 0; return result; }; protoOf(XapiContext).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiContext)) return false; var tmp0_other_with_cast = other instanceof XapiContext ? other : THROW_CCE(); if (!equals(this.pq0_1, tmp0_other_with_cast.pq0_1)) return false; if (!(this.qq0_1 == tmp0_other_with_cast.qq0_1)) return false; if (!(this.rq0_1 == tmp0_other_with_cast.rq0_1)) return false; if (!(this.sq0_1 == tmp0_other_with_cast.sq0_1)) return false; if (!(this.tq0_1 == tmp0_other_with_cast.tq0_1)) return false; if (!equals(this.uq0_1, tmp0_other_with_cast.uq0_1)) return false; if (!equals(this.vq0_1, tmp0_other_with_cast.vq0_1)) return false; if (!equals(this.wq0_1, tmp0_other_with_cast.wq0_1)) return false; if (!equals(this.xq0_1, tmp0_other_with_cast.xq0_1)) return false; return true; }; function Companion_66() { } var Companion_instance_114; function Companion_getInstance_84() { return Companion_instance_114; } function XapiContextActivities(parent, grouping, category, other) { parent = parent === VOID ? null : parent; grouping = grouping === VOID ? null : grouping; category = category === VOID ? null : category; other = other === VOID ? null : other; this.yq0_1 = parent; this.zq0_1 = grouping; this.aq1_1 = category; this.bq1_1 = other; } protoOf(XapiContextActivities).toString = function () { return 'XapiContextActivities(parent=' + this.yq0_1 + ', grouping=' + this.zq0_1 + ', category=' + this.aq1_1 + ', other=' + this.bq1_1 + ')'; }; protoOf(XapiContextActivities).hashCode = function () { var result = this.yq0_1 == null ? 0 : hashCode(this.yq0_1); result = imul(result, 31) + (this.zq0_1 == null ? 0 : hashCode(this.zq0_1)) | 0; result = imul(result, 31) + (this.aq1_1 == null ? 0 : hashCode(this.aq1_1)) | 0; result = imul(result, 31) + (this.bq1_1 == null ? 0 : hashCode(this.bq1_1)) | 0; return result; }; protoOf(XapiContextActivities).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiContextActivities)) return false; var tmp0_other_with_cast = other instanceof XapiContextActivities ? other : THROW_CCE(); if (!equals(this.yq0_1, tmp0_other_with_cast.yq0_1)) return false; if (!equals(this.zq0_1, tmp0_other_with_cast.zq0_1)) return false; if (!equals(this.aq1_1, tmp0_other_with_cast.aq1_1)) return false; if (!equals(this.bq1_1, tmp0_other_with_cast.bq1_1)) return false; return true; }; function deserialize$propertyToObjectList(jsonObject, jsonDecoder, propName) { var jsonElement = jsonObject.ba(propName); var tmp; if (!(jsonElement == null)) { tmp = decodeListOrSingleObjectAsList(jsonDecoder.n4r(), Companion_instance_122.o4r(), jsonElement); } else { tmp = null; } return tmp; } function XapiContextActivitiesSerializer() { XapiContextActivitiesSerializer_instance = this; this.cq1_1 = Companion_getInstance_85().o4r().r44(); } protoOf(XapiContextActivitiesSerializer).r44 = function () { return this.cq1_1; }; protoOf(XapiContextActivitiesSerializer).eq1 = function (encoder, value) { encoder.a4a(Companion_getInstance_85().o4r(), toSurrogate(value)); }; protoOf(XapiContextActivitiesSerializer).s44 = function (encoder, value) { return this.eq1(encoder, value instanceof XapiContextActivities ? value : THROW_CCE()); }; protoOf(XapiContextActivitiesSerializer).t44 = function (decoder) { var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null; var tmp; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$_0(); } else { tmp = tmp0_elvis_lhs; } var jsonDecoder = tmp; var tmp_0 = jsonDecoder.l4r(); var jsonObject = tmp_0 instanceof JsonObject ? tmp_0 : THROW_CCE(); return new XapiContextActivities(deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'parent'), deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'grouping'), deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'category'), deserialize$propertyToObjectList(jsonObject, jsonDecoder, 'other')); }; var XapiContextActivitiesSerializer_instance; function XapiContextActivitiesSerializer_getInstance() { if (XapiContextActivitiesSerializer_instance == null) new XapiContextActivitiesSerializer(); return XapiContextActivitiesSerializer_instance; } function Companion_67() { Companion_instance_115 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.dq1_1 = [new ArrayListSerializer($serializer_getInstance_67()), new ArrayListSerializer($serializer_getInstance_67()), new ArrayListSerializer($serializer_getInstance_67()), new ArrayListSerializer($serializer_getInstance_67())]; } protoOf(Companion_67).o4r = function () { return $serializer_getInstance_62(); }; var Companion_instance_115; function Companion_getInstance_85() { if (Companion_instance_115 == null) new Companion_67(); return Companion_instance_115; } function $serializer_50() { $serializer_instance_50 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('XapiContextActivities', this, 4); tmp0_serialDesc.u4f('parent', true); tmp0_serialDesc.u4f('grouping', true); tmp0_serialDesc.u4f('category', true); tmp0_serialDesc.u4f('other', true); this.fq1_1 = tmp0_serialDesc; } protoOf($serializer_50).r44 = function () { return this.fq1_1; }; protoOf($serializer_50).l4g = function () { var tmp0_cached = Companion_getInstance_85().dq1_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(tmp0_cached[0]), get_nullable(tmp0_cached[1]), get_nullable(tmp0_cached[2]), get_nullable(tmp0_cached[3])]; }; protoOf($serializer_50).t44 = function (decoder) { var tmp0_desc = this.fq1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); var tmp9_cached = Companion_getInstance_85().dq1_1; if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.x48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.x48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.x48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.x48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return XapiContextActivitiesSurrogate_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_50).gq1 = function (encoder, value) { var tmp0_desc = this.fq1_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_85().dq1_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.hq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, tmp2_cached[0], value.hq1_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.iq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, tmp2_cached[1], value.iq1_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.jq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, tmp2_cached[2], value.jq1_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.kq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, tmp2_cached[3], value.kq1_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_50).s44 = function (encoder, value) { return this.gq1(encoder, value instanceof XapiContextActivitiesSurrogate ? value : THROW_CCE()); }; var $serializer_instance_50; function $serializer_getInstance_62() { if ($serializer_instance_50 == null) new $serializer_50(); return $serializer_instance_50; } function XapiContextActivitiesSurrogate_init_$Init$(seen1, parent, grouping, category, other, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_62().fq1_1); } if (0 === (seen1 & 1)) $this.hq1_1 = null; else $this.hq1_1 = parent; if (0 === (seen1 & 2)) $this.iq1_1 = null; else $this.iq1_1 = grouping; if (0 === (seen1 & 4)) $this.jq1_1 = null; else $this.jq1_1 = category; if (0 === (seen1 & 8)) $this.kq1_1 = null; else $this.kq1_1 = other; return $this; } function XapiContextActivitiesSurrogate_init_$Create$(seen1, parent, grouping, category, other, serializationConstructorMarker) { return XapiContextActivitiesSurrogate_init_$Init$(seen1, parent, grouping, category, other, serializationConstructorMarker, objectCreate(protoOf(XapiContextActivitiesSurrogate))); } function XapiContextActivitiesSurrogate(parent, grouping, category, other) { Companion_getInstance_85(); parent = parent === VOID ? null : parent; grouping = grouping === VOID ? null : grouping; category = category === VOID ? null : category; other = other === VOID ? null : other; this.hq1_1 = parent; this.iq1_1 = grouping; this.jq1_1 = category; this.kq1_1 = other; } function toSurrogate(_this__u8e3s4) { return new XapiContextActivitiesSurrogate(_this__u8e3s4.yq0_1, _this__u8e3s4.zq0_1, _this__u8e3s4.aq1_1, _this__u8e3s4.bq1_1); } function toEntities_1(_this__u8e3s4, stringHasher, json, statementUuid) { var tmp = toEntities$toEntitiesInternal(_this__u8e3s4.yq0_1, stringHasher, json, statementUuid, 1); var tmp_0 = plus(tmp, toEntities$toEntitiesInternal(_this__u8e3s4.zq0_1, stringHasher, json, statementUuid, 2)); var tmp_1 = plus(tmp_0, toEntities$toEntitiesInternal(_this__u8e3s4.aq1_1, stringHasher, json, statementUuid, 3)); return plus(tmp_1, toEntities$toEntitiesInternal(_this__u8e3s4.bq1_1, stringHasher, json, statementUuid, 4)); } function toEntities_2(_this__u8e3s4, stringHasher, json, statementUuid, contextType) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10)); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call var activityUid = stringHasher.om7(item.mq1_1); var scajToHash = stringHasher.om7('' + contextType + '-' + item.mq1_1); var statementContextActivityJoin = new StatementContextActivityJoin(statementUuid.cme(), statementUuid.dme(), scajToHash, contextType, activityUid, item.mq1_1); var tmp0_safe_receiver = item.nq1_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toEntities(tmp0_safe_receiver, item.mq1_1, stringHasher, json); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.rpz(VOID, VOID, VOID, VOID, statementContextActivityJoin); var tmp$ret$0 = tmp2_elvis_lhs == null ? new ActivityEntities(new ActivityEntity(activityUid, item.mq1_1), VOID, VOID, VOID, statementContextActivityJoin) : tmp2_elvis_lhs; destination.i1(tmp$ret$0); } return destination; } function toEntities$toEntitiesInternal(_this__u8e3s4, $stringHasher, $json, $statementUuid, type) { return toEmptyIfNull(_this__u8e3s4 == null ? null : toEntities_2(_this__u8e3s4, $stringHasher, $json, $statementUuid, type)); } function Companion_68() { Companion_instance_116 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.cq0_1 = [null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_60())]; } protoOf(Companion_68).o4r = function () { return $serializer_getInstance_63(); }; var Companion_instance_116; function Companion_getInstance_86() { if (Companion_instance_116 == null) new Companion_68(); return Companion_instance_116; } function $serializer_51() { $serializer_instance_51 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiGroup', this, 7); tmp0_serialDesc.u4f('name', true); tmp0_serialDesc.u4f('mbox', true); tmp0_serialDesc.u4f('mbox_sha1sum', true); tmp0_serialDesc.u4f('openid', true); tmp0_serialDesc.u4f('objectType', true); tmp0_serialDesc.u4f('account', true); tmp0_serialDesc.u4f('member', true); this.oq1_1 = tmp0_serialDesc; } protoOf($serializer_51).r44 = function () { return this.oq1_1; }; protoOf($serializer_51).l4g = function () { var tmp0_cached = Companion_getInstance_86().cq0_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(XapiObjectTypeSerializer_instance), get_nullable($serializer_getInstance_57()), tmp0_cached[6]]; }; protoOf($serializer_51).t44 = function (decoder) { var tmp0_desc = this.oq1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.j48(tmp0_desc); var tmp12_cached = Companion_getInstance_86().cq0_1; if (tmp11_input.y48()) { tmp4_local0 = tmp11_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.x48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.x48(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.v48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.x48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.x48(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.v48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.k48(tmp0_desc); return XapiGroup_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_51).pq1 = function (encoder, value) { var tmp0_desc = this.oq1_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_86().cq0_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.qq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.qq1_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.rq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, StringSerializer_getInstance(), value.rq1_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.sq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.sq1_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.tq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.tq1_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.uq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.uq1_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.vq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, $serializer_getInstance_57(), value.vq1_1); } if (tmp1_output.f4a(tmp0_desc, 6) ? true : !equals(value.wq1_1, emptyList())) { tmp1_output.z49(tmp0_desc, 6, tmp2_cached[6], value.wq1_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_51).s44 = function (encoder, value) { return this.pq1(encoder, value instanceof XapiGroup ? value : THROW_CCE()); }; var $serializer_instance_51; function $serializer_getInstance_63() { if ($serializer_instance_51 == null) new $serializer_51(); return $serializer_instance_51; } function XapiGroup_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, member, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_63().oq1_1); } if (0 === (seen1 & 1)) $this.qq1_1 = null; else $this.qq1_1 = name; if (0 === (seen1 & 2)) $this.rq1_1 = null; else $this.rq1_1 = mbox; if (0 === (seen1 & 4)) $this.sq1_1 = null; else $this.sq1_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.tq1_1 = null; else $this.tq1_1 = openid; if (0 === (seen1 & 16)) $this.uq1_1 = null; else $this.uq1_1 = objectType; if (0 === (seen1 & 32)) $this.vq1_1 = null; else $this.vq1_1 = account; if (0 === (seen1 & 64)) $this.wq1_1 = emptyList(); else $this.wq1_1 = member; return $this; } function XapiGroup_init_$Create$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, member, serializationConstructorMarker) { return XapiGroup_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, member, serializationConstructorMarker, objectCreate(protoOf(XapiGroup))); } function XapiGroup(name, mbox, mbox_sha1sum, openid, objectType, account, member) { Companion_getInstance_86(); name = name === VOID ? null : name; mbox = mbox === VOID ? null : mbox; mbox_sha1sum = mbox_sha1sum === VOID ? null : mbox_sha1sum; openid = openid === VOID ? null : openid; objectType = objectType === VOID ? null : objectType; account = account === VOID ? null : account; member = member === VOID ? emptyList() : member; this.qq1_1 = name; this.rq1_1 = mbox; this.sq1_1 = mbox_sha1sum; this.tq1_1 = openid; this.uq1_1 = objectType; this.vq1_1 = account; this.wq1_1 = member; } protoOf(XapiGroup).wpz = function () { return this.rq1_1; }; protoOf(XapiGroup).xpz = function () { return this.sq1_1; }; protoOf(XapiGroup).ypz = function () { return this.tq1_1; }; protoOf(XapiGroup).lq0 = function () { return this.uq1_1; }; protoOf(XapiGroup).zpz = function () { return this.vq1_1; }; protoOf(XapiGroup).toString = function () { return 'XapiGroup(name=' + this.qq1_1 + ', mbox=' + this.rq1_1 + ', mbox_sha1sum=' + this.sq1_1 + ', openid=' + this.tq1_1 + ', objectType=' + this.uq1_1 + ', account=' + this.vq1_1 + ', member=' + this.wq1_1 + ')'; }; protoOf(XapiGroup).hashCode = function () { var result = this.qq1_1 == null ? 0 : getStringHashCode(this.qq1_1); result = imul(result, 31) + (this.rq1_1 == null ? 0 : getStringHashCode(this.rq1_1)) | 0; result = imul(result, 31) + (this.sq1_1 == null ? 0 : getStringHashCode(this.sq1_1)) | 0; result = imul(result, 31) + (this.tq1_1 == null ? 0 : getStringHashCode(this.tq1_1)) | 0; result = imul(result, 31) + (this.uq1_1 == null ? 0 : this.uq1_1.hashCode()) | 0; result = imul(result, 31) + (this.vq1_1 == null ? 0 : this.vq1_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.wq1_1) | 0; return result; }; protoOf(XapiGroup).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiGroup)) return false; var tmp0_other_with_cast = other instanceof XapiGroup ? other : THROW_CCE(); if (!(this.qq1_1 == tmp0_other_with_cast.qq1_1)) return false; if (!(this.rq1_1 == tmp0_other_with_cast.rq1_1)) return false; if (!(this.sq1_1 == tmp0_other_with_cast.sq1_1)) return false; if (!(this.tq1_1 == tmp0_other_with_cast.tq1_1)) return false; if (!equals(this.uq1_1, tmp0_other_with_cast.uq1_1)) return false; if (!equals(this.vq1_1, tmp0_other_with_cast.vq1_1)) return false; if (!equals(this.wq1_1, tmp0_other_with_cast.wq1_1)) return false; return true; }; function toGroupEntities(_this__u8e3s4, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap) { knownActorUidToPersonUidMap = knownActorUidToPersonUidMap === VOID ? emptyMap() : knownActorUidToPersonUidMap; var modTime = systemTimeInMillis(); // Inline function 'kotlin.collections.sortedBy' call // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.wq1_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toGroupEntities.' call var tmp$ret$0 = to(identifierHash(item, stringHasher), toActorEntity(item, stringHasher, knownActorUidToPersonUidMap)); destination.i1(tmp$ret$0); } // Inline function 'kotlin.comparisons.compareBy' call var tmp = toGroupEntities$lambda; var tmp$ret$3 = new sam$kotlin_Comparator$0_0(tmp); var memberActors = sortedWith(destination, tmp$ret$3); var hasher = hasherFactory.nm7(new Long(0, 0)); // Inline function 'kotlin.collections.forEach' call var tmp0_iterator_0 = memberActors.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toGroupEntities.' call hasher.qm7(toByteArray(element.w6_1)); } var memberHash = hasher.rm7(); var tmp_0; if (get_isAnonymous(_this__u8e3s4)) { tmp_0 = primaryKeyManager.o62(68); } else { tmp_0 = identifierHash(_this__u8e3s4, stringHasher); } var tmp2_actorUid = tmp_0; var tmp4_actorName = _this__u8e3s4.qq1_1; var tmp5_actorMbox = _this__u8e3s4.rq1_1; var tmp6_actorMbox_sha1sum = _this__u8e3s4.sq1_1; var tmp7_actorOpenid = _this__u8e3s4.tq1_1; var tmp0_safe_receiver = _this__u8e3s4.vq1_1; var tmp8_actorAccountName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vpy_1; var tmp1_safe_receiver = _this__u8e3s4.vq1_1; var tmp9_actorAccountHomePage = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.upy_1; var groupActor = new ActorEntity(tmp2_actorUid, VOID, tmp4_actorName, tmp5_actorMbox, tmp6_actorMbox_sha1sum, tmp7_actorOpenid, tmp8_actorAccountName, tmp9_actorAccountHomePage, memberHash, modTime, 2); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(memberActors, 10)); var tmp0_iterator_1 = memberActors.w(); while (tmp0_iterator_1.f()) { var item_0 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toGroupEntities.' call var tmp$ret$5 = item_0.x6_1; destination_0.i1(tmp$ret$5); } var tmp_1 = destination_0; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(memberActors, 10)); var tmp0_iterator_2 = memberActors.w(); while (tmp0_iterator_2.f()) { var item_1 = tmp0_iterator_2.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toGroupEntities.' call var tmp$ret$8 = new GroupMemberActorJoin(groupActor.wj3_1, item_1.x6_1.wj3_1, modTime); destination_1.i1(tmp$ret$8); } return new ActorEntities(groupActor, tmp_1, destination_1); } function get_isAnonymous(_this__u8e3s4) { return (_this__u8e3s4.rq1_1 == null ? _this__u8e3s4.tq1_1 == null : false) ? _this__u8e3s4.vq1_1 == null : false; } function sam$kotlin_Comparator$0_0(function_0) { this.xq1_1 = function_0; } protoOf(sam$kotlin_Comparator$0_0).pa = function (a, b) { return this.xq1_1(a, b); }; protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) { return this.pa(a, b); }; function toGroupEntities$lambda(a, b) { // Inline function 'kotlin.comparisons.compareValuesBy' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toGroupEntities.' call var tmp = a.w6_1; // Inline function 'com.ustadmobile.core.domain.xapi.model.toGroupEntities.' call var tmp$ret$1 = b.w6_1; return compareValues(tmp, tmp$ret$1); } function _get_$cachedSerializer__te6jhj_0($this) { return $this.yq1_1.t2(); } function XapiInteractionType$Companion$_anonymous__3zafad() { return XapiInteractionTypeSerializer_instance; } var XapiInteractionType_TrueFalse_instance; var XapiInteractionType_Choice_instance; var XapiInteractionType_FillIn_instance; var XapiInteractionType_LongFillIn_instance; var XapiInteractionType_Matching_instance; var XapiInteractionType_Performance_instance; var XapiInteractionType_Sequencing_instance; var XapiInteractionType_Likert_instance; var XapiInteractionType_Numeric_instance; var XapiInteractionType_Other_instance; function Companion_69() { Companion_instance_117 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.yq1_1 = lazy(tmp_0, XapiInteractionType$Companion$_anonymous__3zafad); } protoOf(Companion_69).zq1 = function (value) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = get_entries_0().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.Companion.fromJsonFieldValue.' call if (element.upz_1 === value) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_elvis_lhs = tmp$ret$1; return tmp0_elvis_lhs == null ? XapiInteractionType_Other_getInstance() : tmp0_elvis_lhs; }; protoOf(Companion_69).o4r = function () { return _get_$cachedSerializer__te6jhj_0(this); }; protoOf(Companion_69).w4g = function (typeParamsSerializers) { return this.o4r(); }; var Companion_instance_117; function Companion_getInstance_87() { XapiInteractionType_initEntries(); if (Companion_instance_117 == null) new Companion_69(); return Companion_instance_117; } function values_1() { return [XapiInteractionType_TrueFalse_getInstance(), XapiInteractionType_Choice_getInstance(), XapiInteractionType_FillIn_getInstance(), XapiInteractionType_LongFillIn_getInstance(), XapiInteractionType_Matching_getInstance(), XapiInteractionType_Performance_getInstance(), XapiInteractionType_Sequencing_getInstance(), XapiInteractionType_Likert_getInstance(), XapiInteractionType_Numeric_getInstance(), XapiInteractionType_Other_getInstance()]; } function get_entries_0() { if ($ENTRIES_0 == null) $ENTRIES_0 = enumEntries(values_1()); return $ENTRIES_0; } var XapiInteractionType_entriesInitialized; function XapiInteractionType_initEntries() { if (XapiInteractionType_entriesInitialized) return Unit_instance; XapiInteractionType_entriesInitialized = true; XapiInteractionType_TrueFalse_instance = new XapiInteractionType('TrueFalse', 0, 'true-false', 1); XapiInteractionType_Choice_instance = new XapiInteractionType('Choice', 1, 'choice', 2); XapiInteractionType_FillIn_instance = new XapiInteractionType('FillIn', 2, 'fill-in', 3); XapiInteractionType_LongFillIn_instance = new XapiInteractionType('LongFillIn', 3, 'long-fill-in', 4); XapiInteractionType_Matching_instance = new XapiInteractionType('Matching', 4, 'matching', 5); XapiInteractionType_Performance_instance = new XapiInteractionType('Performance', 5, 'performance', 6); XapiInteractionType_Sequencing_instance = new XapiInteractionType('Sequencing', 6, 'sequencing', 7); XapiInteractionType_Likert_instance = new XapiInteractionType('Likert', 7, 'likert', 8); XapiInteractionType_Numeric_instance = new XapiInteractionType('Numeric', 8, 'numeric', 9); XapiInteractionType_Other_instance = new XapiInteractionType('Other', 9, 'other', 10); Companion_getInstance_87(); } var $ENTRIES_0; function XapiInteractionType(name, ordinal, jsonFieldValue, dbFlag) { Enum.call(this, name, ordinal); this.upz_1 = jsonFieldValue; this.vpz_1 = dbFlag; } function XapiInteractionTypeSerializer() { } protoOf(XapiInteractionTypeSerializer).r44 = function () { // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer_2(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); return (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r44(); }; protoOf(XapiInteractionTypeSerializer).t44 = function (decoder) { return Companion_getInstance_87().zq1(decoder.e48()); }; protoOf(XapiInteractionTypeSerializer).aq2 = function (encoder, value) { encoder.m49(value.upz_1); }; protoOf(XapiInteractionTypeSerializer).s44 = function (encoder, value) { return this.aq2(encoder, value instanceof XapiInteractionType ? value : THROW_CCE()); }; var XapiInteractionTypeSerializer_instance; function XapiInteractionTypeSerializer_getInstance() { return XapiInteractionTypeSerializer_instance; } function XapiInteractionType_TrueFalse_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_TrueFalse_instance; } function XapiInteractionType_Choice_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_Choice_instance; } function XapiInteractionType_FillIn_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_FillIn_instance; } function XapiInteractionType_LongFillIn_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_LongFillIn_instance; } function XapiInteractionType_Matching_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_Matching_instance; } function XapiInteractionType_Performance_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_Performance_instance; } function XapiInteractionType_Sequencing_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_Sequencing_instance; } function XapiInteractionType_Likert_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_Likert_instance; } function XapiInteractionType_Numeric_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_Numeric_instance; } function XapiInteractionType_Other_getInstance() { XapiInteractionType_initEntries(); return XapiInteractionType_Other_instance; } function _get_$cachedSerializer__te6jhj_1($this) { return $this.bq2_1.t2(); } function XapiObjectType$Companion$_anonymous__v4av7w() { return XapiObjectTypeSerializer_instance; } var XapiObjectType_StatementRef_instance; var XapiObjectType_SubStatement_instance; var XapiObjectType_Activity_instance; var XapiObjectType_Agent_instance; var XapiObjectType_Group_instance; var XapiObjectType_Statement_instance; function Companion_70() { Companion_instance_118 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.bq2_1 = lazy(tmp_0, XapiObjectType$Companion$_anonymous__v4av7w); } protoOf(Companion_70).o4r = function () { return _get_$cachedSerializer__te6jhj_1(this); }; protoOf(Companion_70).w4g = function (typeParamsSerializers) { return this.o4r(); }; var Companion_instance_118; function Companion_getInstance_88() { XapiObjectType_initEntries(); if (Companion_instance_118 == null) new Companion_70(); return Companion_instance_118; } function valueOf(value) { switch (value) { case 'StatementRef': return XapiObjectType_StatementRef_getInstance(); case 'SubStatement': return XapiObjectType_SubStatement_getInstance(); case 'Activity': return XapiObjectType_Activity_getInstance(); case 'Agent': return XapiObjectType_Agent_getInstance(); case 'Group': return XapiObjectType_Group_getInstance(); case 'Statement': return XapiObjectType_Statement_getInstance(); default: XapiObjectType_initEntries(); THROW_IAE('No enum constant value.'); break; } } var XapiObjectType_entriesInitialized; function XapiObjectType_initEntries() { if (XapiObjectType_entriesInitialized) return Unit_instance; XapiObjectType_entriesInitialized = true; XapiObjectType_StatementRef_instance = new XapiObjectType('StatementRef', 0); XapiObjectType_SubStatement_instance = new XapiObjectType('SubStatement', 1); XapiObjectType_Activity_instance = new XapiObjectType('Activity', 2); XapiObjectType_Agent_instance = new XapiObjectType('Agent', 3); XapiObjectType_Group_instance = new XapiObjectType('Group', 4); XapiObjectType_Statement_instance = new XapiObjectType('Statement', 5); Companion_getInstance_88(); } function XapiObjectType(name, ordinal) { Enum.call(this, name, ordinal); } function XapiObjectTypeSerializer() { } protoOf(XapiObjectTypeSerializer).r44 = function () { // Inline function 'kotlinx.serialization.descriptors.serialDescriptor' call // Inline function 'kotlinx.serialization.serializer' call // Inline function 'kotlinx.serialization.internal.cast' call var this_0 = serializer_2(createKType(PrimitiveClasses_getInstance().g8(), arrayOf([]), false)); return (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r44(); }; protoOf(XapiObjectTypeSerializer).t44 = function (decoder) { var strValue = decoder.e48(); return valueOf(strValue); }; protoOf(XapiObjectTypeSerializer).cq2 = function (encoder, value) { encoder.m49(value.toString()); }; protoOf(XapiObjectTypeSerializer).s44 = function (encoder, value) { return this.cq2(encoder, value instanceof XapiObjectType ? value : THROW_CCE()); }; var XapiObjectTypeSerializer_instance; function XapiObjectTypeSerializer_getInstance() { return XapiObjectTypeSerializer_instance; } function get_typeFlag(_this__u8e3s4) { var tmp; switch (_this__u8e3s4.za_1) { case 0: tmp = 3; break; case 1: tmp = 4; break; case 2: tmp = 5; break; case 3: tmp = 1; break; case 4: tmp = 2; break; case 5: tmp = 6; break; default: noWhenBranchMatchedException(); break; } return tmp; } function XapiObjectType_StatementRef_getInstance() { XapiObjectType_initEntries(); return XapiObjectType_StatementRef_instance; } function XapiObjectType_SubStatement_getInstance() { XapiObjectType_initEntries(); return XapiObjectType_SubStatement_instance; } function XapiObjectType_Activity_getInstance() { XapiObjectType_initEntries(); return XapiObjectType_Activity_instance; } function XapiObjectType_Agent_getInstance() { XapiObjectType_initEntries(); return XapiObjectType_Agent_instance; } function XapiObjectType_Group_getInstance() { XapiObjectType_initEntries(); return XapiObjectType_Group_instance; } function XapiObjectType_Statement_getInstance() { XapiObjectType_initEntries(); return XapiObjectType_Statement_instance; } function Companion_71() { } var Companion_instance_119; function Companion_getInstance_89() { return Companion_instance_119; } function $serializer_52() { $serializer_instance_52 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult.Score', this, 4); tmp0_serialDesc.u4f('scaled', true); tmp0_serialDesc.u4f('raw', true); tmp0_serialDesc.u4f('min', true); tmp0_serialDesc.u4f('max', true); this.dq2_1 = tmp0_serialDesc; } protoOf($serializer_52).r44 = function () { return this.dq2_1; }; protoOf($serializer_52).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())]; }; protoOf($serializer_52).t44 = function (decoder) { var tmp0_desc = this.dq2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_input = decoder.j48(tmp0_desc); if (tmp8_input.y48()) { tmp4_local0 = tmp8_input.x48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.x48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.x48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.x48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.x48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.x48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.k48(tmp0_desc); return Score_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_52).eq2 = function (encoder, value) { var tmp0_desc = this.dq2_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.fq2_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, FloatSerializer_getInstance(), value.fq2_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.gq2_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, FloatSerializer_getInstance(), value.gq2_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.hq2_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, FloatSerializer_getInstance(), value.hq2_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.iq2_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, FloatSerializer_getInstance(), value.iq2_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_52).s44 = function (encoder, value) { return this.eq2(encoder, value instanceof Score ? value : THROW_CCE()); }; var $serializer_instance_52; function $serializer_getInstance_64() { if ($serializer_instance_52 == null) new $serializer_52(); return $serializer_instance_52; } function Score_init_$Init$(seen1, scaled, raw, min, max, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_64().dq2_1); } if (0 === (seen1 & 1)) $this.fq2_1 = null; else $this.fq2_1 = scaled; if (0 === (seen1 & 2)) $this.gq2_1 = null; else $this.gq2_1 = raw; if (0 === (seen1 & 4)) $this.hq2_1 = null; else $this.hq2_1 = min; if (0 === (seen1 & 8)) $this.iq2_1 = null; else $this.iq2_1 = max; return $this; } function Score_init_$Create$(seen1, scaled, raw, min, max, serializationConstructorMarker) { return Score_init_$Init$(seen1, scaled, raw, min, max, serializationConstructorMarker, objectCreate(protoOf(Score))); } function Score(scaled, raw, min, max) { scaled = scaled === VOID ? null : scaled; raw = raw === VOID ? null : raw; min = min === VOID ? null : min; max = max === VOID ? null : max; this.fq2_1 = scaled; this.gq2_1 = raw; this.hq2_1 = min; this.iq2_1 = max; } protoOf(Score).toString = function () { return 'Score(scaled=' + this.fq2_1 + ', raw=' + this.gq2_1 + ', min=' + this.hq2_1 + ', max=' + this.iq2_1 + ')'; }; protoOf(Score).hashCode = function () { var result = this.fq2_1 == null ? 0 : getNumberHashCode(this.fq2_1); result = imul(result, 31) + (this.gq2_1 == null ? 0 : getNumberHashCode(this.gq2_1)) | 0; result = imul(result, 31) + (this.hq2_1 == null ? 0 : getNumberHashCode(this.hq2_1)) | 0; result = imul(result, 31) + (this.iq2_1 == null ? 0 : getNumberHashCode(this.iq2_1)) | 0; return result; }; protoOf(Score).equals = function (other) { if (this === other) return true; if (!(other instanceof Score)) return false; var tmp0_other_with_cast = other instanceof Score ? other : THROW_CCE(); if (!equals(this.fq2_1, tmp0_other_with_cast.fq2_1)) return false; if (!equals(this.gq2_1, tmp0_other_with_cast.gq2_1)) return false; if (!equals(this.hq2_1, tmp0_other_with_cast.hq2_1)) return false; if (!equals(this.iq2_1, tmp0_other_with_cast.iq2_1)) return false; return true; }; function Companion_72() { Companion_instance_120 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.jq2_1 = [null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_120; function Companion_getInstance_90() { if (Companion_instance_120 == null) new Companion_72(); return Companion_instance_120; } function $serializer_53() { $serializer_instance_53 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult', this, 6); tmp0_serialDesc.u4f('completion', true); tmp0_serialDesc.u4f('success', true); tmp0_serialDesc.u4f('score', true); tmp0_serialDesc.u4f('duration', true); tmp0_serialDesc.u4f('response', true); tmp0_serialDesc.u4f('extensions', true); this.kq2_1 = tmp0_serialDesc; } protoOf($serializer_53).r44 = function () { return this.kq2_1; }; protoOf($serializer_53).l4g = function () { var tmp0_cached = Companion_getInstance_90().jq2_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable($serializer_getInstance_64()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5])]; }; protoOf($serializer_53).t44 = function (decoder) { var tmp0_desc = this.kq2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.j48(tmp0_desc); var tmp11_cached = Companion_getInstance_90().jq2_1; if (tmp10_input.y48()) { tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.x48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.k48(tmp0_desc); return XapiResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_53).lq2 = function (encoder, value) { var tmp0_desc = this.kq2_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_90().jq2_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.ypw_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, BooleanSerializer_getInstance(), value.ypw_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.zpw_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, BooleanSerializer_getInstance(), value.zpw_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.apx_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, $serializer_getInstance_64(), value.apx_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.bpx_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.bpx_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.cpx_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, StringSerializer_getInstance(), value.cpx_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.dpx_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, tmp2_cached[5], value.dpx_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_53).s44 = function (encoder, value) { return this.lq2(encoder, value instanceof XapiResult ? value : THROW_CCE()); }; var $serializer_instance_53; function $serializer_getInstance_65() { if ($serializer_instance_53 == null) new $serializer_53(); return $serializer_instance_53; } function XapiResult_init_$Init$(seen1, completion, success, score, duration, response, extensions, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_65().kq2_1); } if (0 === (seen1 & 1)) $this.ypw_1 = null; else $this.ypw_1 = completion; if (0 === (seen1 & 2)) $this.zpw_1 = null; else $this.zpw_1 = success; if (0 === (seen1 & 4)) $this.apx_1 = null; else $this.apx_1 = score; if (0 === (seen1 & 8)) $this.bpx_1 = null; else $this.bpx_1 = duration; if (0 === (seen1 & 16)) $this.cpx_1 = null; else $this.cpx_1 = response; if (0 === (seen1 & 32)) $this.dpx_1 = null; else $this.dpx_1 = extensions; return $this; } function XapiResult_init_$Create$(seen1, completion, success, score, duration, response, extensions, serializationConstructorMarker) { return XapiResult_init_$Init$(seen1, completion, success, score, duration, response, extensions, serializationConstructorMarker, objectCreate(protoOf(XapiResult))); } function XapiResult(completion, success, score, duration, response, extensions) { Companion_getInstance_90(); completion = completion === VOID ? null : completion; success = success === VOID ? null : success; score = score === VOID ? null : score; duration = duration === VOID ? null : duration; response = response === VOID ? null : response; extensions = extensions === VOID ? null : extensions; this.ypw_1 = completion; this.zpw_1 = success; this.apx_1 = score; this.bpx_1 = duration; this.cpx_1 = response; this.dpx_1 = extensions; } protoOf(XapiResult).toString = function () { return 'XapiResult(completion=' + this.ypw_1 + ', success=' + this.zpw_1 + ', score=' + this.apx_1 + ', duration=' + this.bpx_1 + ', response=' + this.cpx_1 + ', extensions=' + this.dpx_1 + ')'; }; protoOf(XapiResult).hashCode = function () { var result = this.ypw_1 == null ? 0 : getBooleanHashCode(this.ypw_1); result = imul(result, 31) + (this.zpw_1 == null ? 0 : getBooleanHashCode(this.zpw_1)) | 0; result = imul(result, 31) + (this.apx_1 == null ? 0 : this.apx_1.hashCode()) | 0; result = imul(result, 31) + (this.bpx_1 == null ? 0 : getStringHashCode(this.bpx_1)) | 0; result = imul(result, 31) + (this.cpx_1 == null ? 0 : getStringHashCode(this.cpx_1)) | 0; result = imul(result, 31) + (this.dpx_1 == null ? 0 : hashCode(this.dpx_1)) | 0; return result; }; protoOf(XapiResult).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiResult)) return false; var tmp0_other_with_cast = other instanceof XapiResult ? other : THROW_CCE(); if (!(this.ypw_1 == tmp0_other_with_cast.ypw_1)) return false; if (!(this.zpw_1 == tmp0_other_with_cast.zpw_1)) return false; if (!equals(this.apx_1, tmp0_other_with_cast.apx_1)) return false; if (!(this.bpx_1 == tmp0_other_with_cast.bpx_1)) return false; if (!(this.cpx_1 == tmp0_other_with_cast.cpx_1)) return false; if (!equals(this.dpx_1, tmp0_other_with_cast.dpx_1)) return false; return true; }; function get_XAPI_PROGRESSED_EXTENSIONS() { _init_properties_XapiStatement_kt__raho1n(); return XAPI_PROGRESSED_EXTENSIONS; } var XAPI_PROGRESSED_EXTENSIONS; function get_XAPI_RESULT_EXTENSION_PROGRESS() { return XAPI_RESULT_EXTENSION_PROGRESS; } var XAPI_RESULT_EXTENSION_PROGRESS; function Companion_73() { Companion_instance_121 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.upu_1 = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_56()), null]; } protoOf(Companion_73).o4r = function () { return $serializer_getInstance_66(); }; var Companion_instance_121; function Companion_getInstance_91() { if (Companion_instance_121 == null) new Companion_73(); return Companion_instance_121; } function $serializer_54() { $serializer_instance_54 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatement', this, 12); tmp0_serialDesc.u4f('id', true); tmp0_serialDesc.u4f('actor', false); tmp0_serialDesc.u4f('verb', false); tmp0_serialDesc.u4f('object', false); tmp0_serialDesc.u4f('result', true); tmp0_serialDesc.u4f('context', true); tmp0_serialDesc.u4f('timestamp', true); tmp0_serialDesc.u4f('stored', true); tmp0_serialDesc.u4f('authority', true); tmp0_serialDesc.u4f('version', true); tmp0_serialDesc.u4f('attachments', true); tmp0_serialDesc.u4f('objectType', true); this.mq2_1 = tmp0_serialDesc; } protoOf($serializer_54).r44 = function () { return this.mq2_1; }; protoOf($serializer_54).l4g = function () { var tmp0_cached = Companion_getInstance_91().upu_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), XapiActorSerializer_getInstance(), $serializer_getInstance_69(), XapiStatementObjectSerializer_getInstance(), get_nullable($serializer_getInstance_65()), get_nullable($serializer_getInstance_61()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(XapiActorSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[10]), get_nullable(XapiObjectTypeSerializer_instance)]; }; protoOf($serializer_54).t44 = function (decoder) { var tmp0_desc = this.mq2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = null; var tmp16_input = decoder.j48(tmp0_desc); var tmp17_cached = Companion_getInstance_91().upu_1; if (tmp16_input.y48()) { tmp4_local0 = tmp16_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.v48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.v48(tmp0_desc, 2, $serializer_getInstance_69(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.v48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.x48(tmp0_desc, 4, $serializer_getInstance_65(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.x48(tmp0_desc, 5, $serializer_getInstance_61(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.x48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.x48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.x48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.x48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.x48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.v48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.v48(tmp0_desc, 2, $serializer_getInstance_69(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.v48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.x48(tmp0_desc, 4, $serializer_getInstance_65(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.x48(tmp0_desc, 5, $serializer_getInstance_61(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.x48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.x48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.x48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.x48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.x48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.k48(tmp0_desc); return XapiStatement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, null); }; protoOf($serializer_54).nq2 = function (encoder, value) { var tmp0_desc = this.mq2_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_91().upu_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.hpu_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.hpu_1); } tmp1_output.z49(tmp0_desc, 1, XapiActorSerializer_getInstance(), value.ipu_1); tmp1_output.z49(tmp0_desc, 2, $serializer_getInstance_69(), value.jpu_1); tmp1_output.z49(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), value.kpu_1); if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.lpu_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, $serializer_getInstance_65(), value.lpu_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.mpu_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, $serializer_getInstance_61(), value.mpu_1); } if (tmp1_output.f4a(tmp0_desc, 6) ? true : !(value.npu_1 == null)) { tmp1_output.b4a(tmp0_desc, 6, StringSerializer_getInstance(), value.npu_1); } if (tmp1_output.f4a(tmp0_desc, 7) ? true : !(value.opu_1 == null)) { tmp1_output.b4a(tmp0_desc, 7, StringSerializer_getInstance(), value.opu_1); } if (tmp1_output.f4a(tmp0_desc, 8) ? true : !(value.ppu_1 == null)) { tmp1_output.b4a(tmp0_desc, 8, XapiActorSerializer_getInstance(), value.ppu_1); } if (tmp1_output.f4a(tmp0_desc, 9) ? true : !(value.qpu_1 == null)) { tmp1_output.b4a(tmp0_desc, 9, StringSerializer_getInstance(), value.qpu_1); } if (tmp1_output.f4a(tmp0_desc, 10) ? true : !(value.rpu_1 == null)) { tmp1_output.b4a(tmp0_desc, 10, tmp2_cached[10], value.rpu_1); } if (tmp1_output.f4a(tmp0_desc, 11) ? true : !(value.spu_1 == null)) { tmp1_output.b4a(tmp0_desc, 11, XapiObjectTypeSerializer_instance, value.spu_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_54).s44 = function (encoder, value) { return this.nq2(encoder, value instanceof XapiStatement ? value : THROW_CCE()); }; var $serializer_instance_54; function $serializer_getInstance_66() { if ($serializer_instance_54 == null) new $serializer_54(); return $serializer_instance_54; } function XapiStatement_init_$Init$(seen1, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, serializationConstructorMarker, $this) { if (!(14 === (14 & seen1))) { throwMissingFieldException(seen1, 14, $serializer_getInstance_66().mq2_1); } if (0 === (seen1 & 1)) $this.hpu_1 = null; else $this.hpu_1 = id; $this.ipu_1 = actor; $this.jpu_1 = verb; $this.kpu_1 = object; if (0 === (seen1 & 16)) $this.lpu_1 = null; else $this.lpu_1 = result; if (0 === (seen1 & 32)) $this.mpu_1 = null; else $this.mpu_1 = context; if (0 === (seen1 & 64)) $this.npu_1 = null; else $this.npu_1 = timestamp; if (0 === (seen1 & 128)) $this.opu_1 = null; else $this.opu_1 = stored; if (0 === (seen1 & 256)) $this.ppu_1 = null; else $this.ppu_1 = authority; if (0 === (seen1 & 512)) $this.qpu_1 = null; else $this.qpu_1 = version; if (0 === (seen1 & 1024)) $this.rpu_1 = null; else $this.rpu_1 = attachments; if (0 === (seen1 & 2048)) $this.spu_1 = null; else $this.spu_1 = objectType; return $this; } function XapiStatement_init_$Create$(seen1, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, serializationConstructorMarker) { return XapiStatement_init_$Init$(seen1, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, serializationConstructorMarker, objectCreate(protoOf(XapiStatement))); } function XapiStatement(id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType) { Companion_getInstance_91(); id = id === VOID ? null : id; result = result === VOID ? null : result; context = context === VOID ? null : context; timestamp = timestamp === VOID ? null : timestamp; stored = stored === VOID ? null : stored; authority = authority === VOID ? null : authority; version = version === VOID ? null : version; attachments = attachments === VOID ? null : attachments; objectType = objectType === VOID ? null : objectType; this.hpu_1 = id; this.ipu_1 = actor; this.jpu_1 = verb; this.kpu_1 = object; this.lpu_1 = result; this.mpu_1 = context; this.npu_1 = timestamp; this.opu_1 = stored; this.ppu_1 = authority; this.qpu_1 = version; this.rpu_1 = attachments; this.spu_1 = objectType; } protoOf(XapiStatement).lq0 = function () { return this.spu_1; }; protoOf(XapiStatement).oq2 = function (id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType) { return new XapiStatement(id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType); }; protoOf(XapiStatement).tpu = function (id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, $super) { id = id === VOID ? this.hpu_1 : id; actor = actor === VOID ? this.ipu_1 : actor; verb = verb === VOID ? this.jpu_1 : verb; object = object === VOID ? this.kpu_1 : object; result = result === VOID ? this.lpu_1 : result; context = context === VOID ? this.mpu_1 : context; timestamp = timestamp === VOID ? this.npu_1 : timestamp; stored = stored === VOID ? this.opu_1 : stored; authority = authority === VOID ? this.ppu_1 : authority; version = version === VOID ? this.qpu_1 : version; attachments = attachments === VOID ? this.rpu_1 : attachments; objectType = objectType === VOID ? this.spu_1 : objectType; return $super === VOID ? this.oq2(id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType) : $super.oq2.call(this, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType); }; protoOf(XapiStatement).toString = function () { return 'XapiStatement(id=' + this.hpu_1 + ', actor=' + this.ipu_1 + ', verb=' + this.jpu_1 + ', object=' + this.kpu_1 + ', result=' + this.lpu_1 + ', context=' + this.mpu_1 + ', timestamp=' + this.npu_1 + ', stored=' + this.opu_1 + ', authority=' + this.ppu_1 + ', version=' + this.qpu_1 + ', attachments=' + this.rpu_1 + ', objectType=' + this.spu_1 + ')'; }; protoOf(XapiStatement).hashCode = function () { var result = this.hpu_1 == null ? 0 : getStringHashCode(this.hpu_1); result = imul(result, 31) + hashCode(this.ipu_1) | 0; result = imul(result, 31) + this.jpu_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.kpu_1) | 0; result = imul(result, 31) + (this.lpu_1 == null ? 0 : this.lpu_1.hashCode()) | 0; result = imul(result, 31) + (this.mpu_1 == null ? 0 : this.mpu_1.hashCode()) | 0; result = imul(result, 31) + (this.npu_1 == null ? 0 : getStringHashCode(this.npu_1)) | 0; result = imul(result, 31) + (this.opu_1 == null ? 0 : getStringHashCode(this.opu_1)) | 0; result = imul(result, 31) + (this.ppu_1 == null ? 0 : hashCode(this.ppu_1)) | 0; result = imul(result, 31) + (this.qpu_1 == null ? 0 : getStringHashCode(this.qpu_1)) | 0; result = imul(result, 31) + (this.rpu_1 == null ? 0 : hashCode(this.rpu_1)) | 0; result = imul(result, 31) + (this.spu_1 == null ? 0 : this.spu_1.hashCode()) | 0; return result; }; protoOf(XapiStatement).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiStatement)) return false; var tmp0_other_with_cast = other instanceof XapiStatement ? other : THROW_CCE(); if (!(this.hpu_1 == tmp0_other_with_cast.hpu_1)) return false; if (!equals(this.ipu_1, tmp0_other_with_cast.ipu_1)) return false; if (!this.jpu_1.equals(tmp0_other_with_cast.jpu_1)) return false; if (!equals(this.kpu_1, tmp0_other_with_cast.kpu_1)) return false; if (!equals(this.lpu_1, tmp0_other_with_cast.lpu_1)) return false; if (!equals(this.mpu_1, tmp0_other_with_cast.mpu_1)) return false; if (!(this.npu_1 == tmp0_other_with_cast.npu_1)) return false; if (!(this.opu_1 == tmp0_other_with_cast.opu_1)) return false; if (!equals(this.ppu_1, tmp0_other_with_cast.ppu_1)) return false; if (!(this.qpu_1 == tmp0_other_with_cast.qpu_1)) return false; if (!equals(this.rpu_1, tmp0_other_with_cast.rpu_1)) return false; if (!equals(this.spu_1, tmp0_other_with_cast.spu_1)) return false; return true; }; function StatementEntities(statementEntity, statementEntityJson, actorEntities, verbEntities, activityEntities) { statementEntity = statementEntity === VOID ? null : statementEntity; statementEntityJson = statementEntityJson === VOID ? null : statementEntityJson; actorEntities = actorEntities === VOID ? null : actorEntities; verbEntities = verbEntities === VOID ? null : verbEntities; activityEntities = activityEntities === VOID ? null : activityEntities; this.xpt_1 = statementEntity; this.ypt_1 = statementEntityJson; this.zpt_1 = actorEntities; this.apu_1 = verbEntities; this.bpu_1 = activityEntities; } protoOf(StatementEntities).toString = function () { return 'StatementEntities(statementEntity=' + this.xpt_1 + ', statementEntityJson=' + this.ypt_1 + ', actorEntities=' + this.zpt_1 + ', verbEntities=' + this.apu_1 + ', activityEntities=' + this.bpu_1 + ')'; }; protoOf(StatementEntities).hashCode = function () { var result = this.xpt_1 == null ? 0 : this.xpt_1.hashCode(); result = imul(result, 31) + (this.ypt_1 == null ? 0 : this.ypt_1.hashCode()) | 0; result = imul(result, 31) + (this.zpt_1 == null ? 0 : hashCode(this.zpt_1)) | 0; result = imul(result, 31) + (this.apu_1 == null ? 0 : this.apu_1.hashCode()) | 0; result = imul(result, 31) + (this.bpu_1 == null ? 0 : hashCode(this.bpu_1)) | 0; return result; }; protoOf(StatementEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementEntities)) return false; var tmp0_other_with_cast = other instanceof StatementEntities ? other : THROW_CCE(); if (!equals(this.xpt_1, tmp0_other_with_cast.xpt_1)) return false; if (!equals(this.ypt_1, tmp0_other_with_cast.ypt_1)) return false; if (!equals(this.zpt_1, tmp0_other_with_cast.zpt_1)) return false; if (!equals(this.apu_1, tmp0_other_with_cast.apu_1)) return false; if (!equals(this.bpu_1, tmp0_other_with_cast.bpu_1)) return false; return true; }; function toEntities_3(_this__u8e3s4, stringHasher, primaryKeyManager, hasherFactory, json, xapiSession, knownActorUidToPersonUidMap, exactJson, isSubStatement, learningSpace) { isSubStatement = isSubStatement === VOID ? false : isSubStatement; _init_properties_XapiStatement_kt__raho1n(); var tmp0_safe_receiver = _this__u8e3s4.hpu_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call tmp = uuidFrom(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp; var tmp_0; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('id is null'); } else { tmp_0 = tmp1_elvis_lhs; } var statementUuid = tmp_0; var tmp_1; if (isSubStatement) { var tmp_2 = _this__u8e3s4.kpu_1; tmp_1 = tmp_2 instanceof XapiStatement; } else { tmp_1 = false; } if (tmp_1) throw new XapiException(400, 'SubStatement cannot have another nested subs== XapiObjectType.SubStatementtatement'); var tmp2_safe_receiver = _this__u8e3s4.mpu_1; var contextRegistration = xapiRequireValidUuidOrNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qq0_1, 'Invalid context registration uuid'); var statementActorEntities = toEntities_0(_this__u8e3s4.ipu_1, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp3_safe_receiver = _this__u8e3s4.ppu_1; var authorityActor = tmp3_safe_receiver == null ? null : toEntities_0(tmp3_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp4_safe_receiver = _this__u8e3s4.mpu_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.pq0_1; var contextInstructorActorEntities = tmp5_safe_receiver == null ? null : toEntities_0(tmp5_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var statementObjectForeignKeys = objectForeignKeys(_this__u8e3s4.kpu_1, stringHasher, statementUuid); var tmp34_statementIdHi = statementUuid.cme(); var tmp35_statementIdLo = statementUuid.dme(); var tmp_3; var tmp_4; var tmp6_safe_receiver = _this__u8e3s4.ipu_1.zpz(); if ((tmp6_safe_receiver == null ? null : tmp6_safe_receiver.upy_1) === learningSpace.cnu_1) { var tmp7_safe_receiver = _this__u8e3s4.ipu_1.zpz(); tmp_4 = (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.vpy_1) === xapiSession.rjz_1; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = xapiSession.pjz_1; } else { tmp_3 = new Long(0, 0); } var tmp36_statementActorPersonUid = tmp_3; var tmp37_statementActorUid = statementActorEntities.cpu_1.wj3_1; var tmp9_safe_receiver = authorityActor == null ? null : authorityActor.cpu_1; var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.wj3_1; var tmp38_authorityActorUid = tmp10_elvis_lhs == null ? new Long(0, 0) : tmp10_elvis_lhs; var tmp39_statementVerbUid = stringHasher.om7(xapiRequireValidIRI(_this__u8e3s4.jpu_1.pq2_1, 'Statement ' + statementUuid + ' VerbID ' + _this__u8e3s4.jpu_1.pq2_1 + ' is not a valid IRI')); var tmp11_safe_receiver = _this__u8e3s4.lpu_1; var tmp40_resultCompletion = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.ypw_1; var tmp12_safe_receiver = _this__u8e3s4.lpu_1; var tmp41_resultSuccess = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.zpw_1; var tmp13_safe_receiver = _this__u8e3s4.lpu_1; var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.apx_1; var tmp42_resultScoreScaled = tmp14_safe_receiver == null ? null : tmp14_safe_receiver.fq2_1; var tmp15_safe_receiver = _this__u8e3s4.lpu_1; var tmp16_safe_receiver = tmp15_safe_receiver == null ? null : tmp15_safe_receiver.apx_1; var tmp43_resultScoreRaw = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.gq2_1; var tmp17_safe_receiver = _this__u8e3s4.lpu_1; var tmp18_safe_receiver = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.apx_1; var tmp44_resultScoreMin = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.hq2_1; var tmp19_safe_receiver = _this__u8e3s4.lpu_1; var tmp20_safe_receiver = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.apx_1; var tmp45_resultScoreMax = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.iq2_1; var tmp21_safe_receiver = _this__u8e3s4.lpu_1; var tmp46_resultDuration = xapiRequireDurationOrNullAsLong(tmp21_safe_receiver == null ? null : tmp21_safe_receiver.bpx_1); var tmp22_safe_receiver = _this__u8e3s4.lpu_1; var tmp47_resultResponse = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.cpx_1; var tmp23_safe_receiver = _this__u8e3s4.npu_1; var tmp_5; if (tmp23_safe_receiver == null) { tmp_5 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call tmp_5 = xapiRequireTimestampAsLong(tmp23_safe_receiver); } var tmp24_elvis_lhs = tmp_5; var tmp48_timestamp = tmp24_elvis_lhs == null ? systemTimeInMillis() : tmp24_elvis_lhs; var tmp49_stored = systemTimeInMillis(); var tmp26_elvis_lhs = contextRegistration == null ? null : contextRegistration.cme(); var tmp50_contextRegistrationHi = tmp26_elvis_lhs == null ? new Long(0, 0) : tmp26_elvis_lhs; var tmp28_elvis_lhs = contextRegistration == null ? null : contextRegistration.dme(); var tmp51_contextRegistrationLo = tmp28_elvis_lhs == null ? new Long(0, 0) : tmp28_elvis_lhs; var tmp29_safe_receiver = _this__u8e3s4.mpu_1; var tmp52_contextPlatform = tmp29_safe_receiver == null ? null : tmp29_safe_receiver.sq0_1; var tmp31_safe_receiver = contextInstructorActorEntities == null ? null : contextInstructorActorEntities.cpu_1; var tmp32_elvis_lhs = tmp31_safe_receiver == null ? null : tmp31_safe_receiver.wj3_1; var tmp53_contextInstructorActorUid = tmp32_elvis_lhs == null ? new Long(0, 0) : tmp32_elvis_lhs; var tmp54_statementContentEntryUid = xapiSession.ujz_1; var tmp55_statementClazzUid = xapiSession.sjz_1; var tmp56_statementCbUid = xapiSession.tjz_1; var tmp_6; if (isCompletionOrProgress(_this__u8e3s4)) { var tmp_7; if (xapiSession.ujz_1.equals(new Long(0, 0))) { tmp_7 = true; } else { var tmp_8 = _this__u8e3s4.kpu_1; var tmp33_safe_receiver = tmp_8 instanceof XapiActivityStatementObject ? tmp_8 : null; tmp_7 = (tmp33_safe_receiver == null ? null : tmp33_safe_receiver.mq1_1) === xapiSession.wjz_1; } tmp_6 = tmp_7; } else { tmp_6 = false; } var tmp57_completionOrProgress = tmp_6; var tmp58_extensionProgress = get_resultProgressExtension(_this__u8e3s4); var tmp59_statementObjectType = get_objectTypeFlag(_this__u8e3s4.kpu_1); var tmp60_statementObjectUid1 = statementObjectForeignKeys.w6_1; var tmp61_statementObjectUid2 = statementObjectForeignKeys.x6_1; var tmp_9 = new StatementEntity(tmp34_statementIdHi, tmp35_statementIdLo, tmp36_statementActorPersonUid, tmp39_statementVerbUid, tmp59_statementObjectType, tmp60_statementObjectUid1, tmp61_statementObjectUid2, tmp37_statementActorUid, tmp38_authorityActorUid, VOID, tmp40_resultCompletion, tmp41_resultSuccess, tmp42_resultScoreScaled, tmp43_resultScoreRaw, tmp44_resultScoreMin, tmp45_resultScoreMax, tmp46_resultDuration, tmp47_resultResponse, tmp48_timestamp, tmp49_stored, tmp50_contextRegistrationHi, tmp51_contextRegistrationLo, tmp52_contextPlatform, VOID, VOID, tmp53_contextInstructorActorUid, VOID, tmp58_extensionProgress, tmp57_completionOrProgress, tmp54_statementContentEntryUid, VOID, tmp55_statementClazzUid, tmp56_statementCbUid, VOID, isSubStatement); var tmp_10 = new StatementEntityJson(statementUuid.cme(), statementUuid.dme(), VOID, exactJson); // Inline function 'kotlin.collections.buildList' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildListInternal' call // Inline function 'kotlin.apply' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities.' call this_0.i1(statementActorEntities); if (contextInstructorActorEntities == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.toEntities..' call this_0.i1(contextInstructorActorEntities); } var tmp_11 = this_0.f3(); var tmp_12 = toVerbEntities(_this__u8e3s4.jpu_1, stringHasher); var tmp62_safe_receiver = _this__u8e3s4.mpu_1; var tmp63_safe_receiver = tmp62_safe_receiver == null ? null : tmp62_safe_receiver.wq0_1; return plus(listOf_0(new StatementEntities(tmp_9, tmp_10, tmp_11, tmp_12, toEmptyIfNull(tmp63_safe_receiver == null ? null : toEntities_1(tmp63_safe_receiver, stringHasher, json, statementUuid)))), objectToEntities(_this__u8e3s4.kpu_1, stringHasher, primaryKeyManager, hasherFactory, json, xapiSession, knownActorUidToPersonUidMap, statementUuid, learningSpace)); } function isCompletionOrProgress(_this__u8e3s4) { _init_properties_XapiStatement_kt__raho1n(); var tmp; var tmp0_safe_receiver = _this__u8e3s4.lpu_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ypw_1) == null)) { tmp = true; } else { tmp = !(get_resultProgressExtension(_this__u8e3s4) == null); } return tmp; } var properties_initialized_XapiStatement_kt_2xltj7; function _init_properties_XapiStatement_kt__raho1n() { if (!properties_initialized_XapiStatement_kt_2xltj7) { properties_initialized_XapiStatement_kt_2xltj7 = true; XAPI_PROGRESSED_EXTENSIONS = listOf(['https://w3id.org/xapi/cmi5/result/extensions/progress', 'http://w3id.org/xapi/cmi5/result/extensions/progress']); } } function XapiStatementObject() { } function XapiStatementObjectSerializer() { XapiStatementObjectSerializer_instance = this; JsonContentPolymorphicSerializer.call(this, getKClass(XapiStatementObject)); } protoOf(XapiStatementObjectSerializer).m4r = function (element) { var tmp0_safe_receiver = get_jsonObject(element).ba('objectType'); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver); var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_0; // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiStatementObjectSerializer.selectDeserializer.' call if (!(tmp1_safe_receiver instanceof JsonNull)) { tmp_0 = tmp1_safe_receiver; } else { tmp_0 = null; } tmp = tmp_0; } var tmp2_safe_receiver = tmp; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h3b(); var tmp_1; if (tmp3_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiStatementObjectSerializer.selectDeserializer.' call tmp_1 = valueOf(tmp3_safe_receiver); } var tmp4_elvis_lhs = tmp_1; var objectType = tmp4_elvis_lhs == null ? XapiObjectType_Activity_getInstance() : tmp4_elvis_lhs; var tmp_2; switch (objectType.za_1) { case 2: tmp_2 = Companion_instance_122.o4r(); break; case 3: tmp_2 = Companion_instance_112.o4r(); break; case 4: tmp_2 = Companion_getInstance_86().o4r(); break; case 0: tmp_2 = Companion_instance_123.o4r(); break; case 1: tmp_2 = Companion_getInstance_91().o4r(); break; default: throw new XapiException(400, 'Statement object type invalid'); } return tmp_2; }; var XapiStatementObjectSerializer_instance; function XapiStatementObjectSerializer_getInstance() { if (XapiStatementObjectSerializer_instance == null) new XapiStatementObjectSerializer(); return XapiStatementObjectSerializer_instance; } function Companion_74() { } protoOf(Companion_74).o4r = function () { return $serializer_getInstance_67(); }; var Companion_instance_122; function Companion_getInstance_92() { return Companion_instance_122; } function $serializer_55() { $serializer_instance_55 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivityStatementObject', this, 3); tmp0_serialDesc.u4f('objectType', true); tmp0_serialDesc.u4f('id', false); tmp0_serialDesc.u4f('definition', true); this.tq2_1 = tmp0_serialDesc; } protoOf($serializer_55).r44 = function () { return this.tq2_1; }; protoOf($serializer_55).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(XapiObjectTypeSerializer_instance), StringSerializer_getInstance(), get_nullable($serializer_getInstance_59())]; }; protoOf($serializer_55).t44 = function (decoder) { var tmp0_desc = this.tq2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.j48(tmp0_desc); if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.x48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.x48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return XapiActivityStatementObject_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_55).uq2 = function (encoder, value) { var tmp0_desc = this.tq2_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.lq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.lq1_1); } tmp1_output.x49(tmp0_desc, 1, value.mq1_1); if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.nq1_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, $serializer_getInstance_59(), value.nq1_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_55).s44 = function (encoder, value) { return this.uq2(encoder, value instanceof XapiActivityStatementObject ? value : THROW_CCE()); }; var $serializer_instance_55; function $serializer_getInstance_67() { if ($serializer_instance_55 == null) new $serializer_55(); return $serializer_instance_55; } function XapiActivityStatementObject_init_$Init$(seen1, objectType, id, definition, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_67().tq2_1); } if (0 === (seen1 & 1)) $this.lq1_1 = null; else $this.lq1_1 = objectType; $this.mq1_1 = id; if (0 === (seen1 & 4)) $this.nq1_1 = null; else $this.nq1_1 = definition; return $this; } function XapiActivityStatementObject_init_$Create$(seen1, objectType, id, definition, serializationConstructorMarker) { return XapiActivityStatementObject_init_$Init$(seen1, objectType, id, definition, serializationConstructorMarker, objectCreate(protoOf(XapiActivityStatementObject))); } function XapiActivityStatementObject(objectType, id, definition) { objectType = objectType === VOID ? null : objectType; definition = definition === VOID ? null : definition; this.lq1_1 = objectType; this.mq1_1 = id; this.nq1_1 = definition; } protoOf(XapiActivityStatementObject).lq0 = function () { return this.lq1_1; }; protoOf(XapiActivityStatementObject).toString = function () { return 'XapiActivityStatementObject(objectType=' + this.lq1_1 + ', id=' + this.mq1_1 + ', definition=' + this.nq1_1 + ')'; }; protoOf(XapiActivityStatementObject).hashCode = function () { var result = this.lq1_1 == null ? 0 : this.lq1_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.mq1_1) | 0; result = imul(result, 31) + (this.nq1_1 == null ? 0 : this.nq1_1.hashCode()) | 0; return result; }; protoOf(XapiActivityStatementObject).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiActivityStatementObject)) return false; var tmp0_other_with_cast = other instanceof XapiActivityStatementObject ? other : THROW_CCE(); if (!equals(this.lq1_1, tmp0_other_with_cast.lq1_1)) return false; if (!(this.mq1_1 === tmp0_other_with_cast.mq1_1)) return false; if (!equals(this.nq1_1, tmp0_other_with_cast.nq1_1)) return false; return true; }; function objectForeignKeys(_this__u8e3s4, stringHasher, statementUuid) { var tmp; if (_this__u8e3s4 instanceof XapiActivityStatementObject) { tmp = new Pair(stringHasher.om7(_this__u8e3s4.mq1_1), new Long(0, 0)); } else { if (_this__u8e3s4 instanceof XapiAgent) { tmp = new Pair(identifierHash(_this__u8e3s4, stringHasher), new Long(0, 0)); } else { if (_this__u8e3s4 instanceof XapiGroup) { tmp = new Pair(identifierHash(_this__u8e3s4, stringHasher), new Long(0, 0)); } else { if (_this__u8e3s4 instanceof XapiStatementRef) { var uuid = uuidFrom(_this__u8e3s4.wq2_1); tmp = new Pair(uuid.cme(), uuid.dme()); } else { if (_this__u8e3s4 instanceof XapiStatement) { var tmp_0 = statementUuid.cme(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = statementUuid.dme().lc(toLong(1)); tmp = new Pair(tmp_0, tmp$ret$0); } else { noWhenBranchMatchedException(); } } } } } return tmp; } function objectToEntities(_this__u8e3s4, stringHasher, primaryKeyManager, hasherFactory, json, xapiSession, knownActorUidToPersonUidMap, parentStatementUuid, learningSpace) { var tmp; if (_this__u8e3s4 instanceof XapiActivityStatementObject) { tmp = listOf_0(new StatementEntities(VOID, VOID, VOID, VOID, listOf_0(toEntities(_this__u8e3s4.nq1_1, _this__u8e3s4.mq1_1, stringHasher, json)))); } else { if (isInterface(_this__u8e3s4, XapiActor)) { tmp = listOf_0(new StatementEntities(VOID, VOID, listOf_0(toEntities_0(_this__u8e3s4, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap)))); } else { if (_this__u8e3s4 instanceof XapiStatementRef) { tmp = emptyList(); } else { if (_this__u8e3s4 instanceof XapiStatement) { var tmp_0 = parentStatementUuid.cme(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = parentStatementUuid.dme().lc(toLong(1)); tmp = toEntities_3(_this__u8e3s4.tpu(Uuid_init_$Create$(tmp_0, tmp$ret$0).toString()), stringHasher, primaryKeyManager, hasherFactory, json, xapiSession, knownActorUidToPersonUidMap, null, true, learningSpace); } else { throw IllegalStateException_init_$Create$('This cant really happen. The compiler does not recognize XapiActor as covering XapiGroup and XapiAgent, but it does.'); } } } } return tmp; } function get_objectTypeFlag(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.lq0(); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_typeFlag(tmp0_safe_receiver); var tmp; if (tmp1_elvis_lhs == null) { tmp = 5; } else { tmp = tmp1_elvis_lhs; } return tmp; } function Companion_75() { } protoOf(Companion_75).o4r = function () { return $serializer_getInstance_68(); }; var Companion_instance_123; function Companion_getInstance_93() { return Companion_instance_123; } function $serializer_56() { $serializer_instance_56 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatementRef', this, 2); tmp0_serialDesc.u4f('objectType', false); tmp0_serialDesc.u4f('id', false); this.xq2_1 = tmp0_serialDesc; } protoOf($serializer_56).r44 = function () { return this.xq2_1; }; protoOf($serializer_56).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [XapiObjectTypeSerializer_instance, StringSerializer_getInstance()]; }; protoOf($serializer_56).t44 = function (decoder) { var tmp0_desc = this.xq2_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.t48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return XapiStatementRef_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_56).yq2 = function (encoder, value) { var tmp0_desc = this.xq2_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.z49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.vq2_1); tmp1_output.x49(tmp0_desc, 1, value.wq2_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_56).s44 = function (encoder, value) { return this.yq2(encoder, value instanceof XapiStatementRef ? value : THROW_CCE()); }; var $serializer_instance_56; function $serializer_getInstance_68() { if ($serializer_instance_56 == null) new $serializer_56(); return $serializer_instance_56; } function XapiStatementRef_init_$Init$(seen1, objectType, id, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_68().xq2_1); } $this.vq2_1 = objectType; $this.wq2_1 = id; return $this; } function XapiStatementRef_init_$Create$(seen1, objectType, id, serializationConstructorMarker) { return XapiStatementRef_init_$Init$(seen1, objectType, id, serializationConstructorMarker, objectCreate(protoOf(XapiStatementRef))); } function XapiStatementRef() { } protoOf(XapiStatementRef).lq0 = function () { return this.vq2_1; }; protoOf(XapiStatementRef).toString = function () { return 'XapiStatementRef(objectType=' + this.vq2_1 + ', id=' + this.wq2_1 + ')'; }; protoOf(XapiStatementRef).hashCode = function () { var result = this.vq2_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.wq2_1) | 0; return result; }; protoOf(XapiStatementRef).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiStatementRef)) return false; var tmp0_other_with_cast = other instanceof XapiStatementRef ? other : THROW_CCE(); if (!this.vq2_1.equals(tmp0_other_with_cast.vq2_1)) return false; if (!(this.wq2_1 === tmp0_other_with_cast.wq2_1)) return false; return true; }; function Companion_76() { Companion_instance_124 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.zq2_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_124; function Companion_getInstance_94() { if (Companion_instance_124 == null) new Companion_76(); return Companion_instance_124; } function $serializer_57() { $serializer_instance_57 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiVerb', this, 2); tmp0_serialDesc.u4f('id', true); tmp0_serialDesc.u4f('display', true); this.aq3_1 = tmp0_serialDesc; } protoOf($serializer_57).r44 = function () { return this.aq3_1; }; protoOf($serializer_57).l4g = function () { var tmp0_cached = Companion_getInstance_94().zq2_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[1])]; }; protoOf($serializer_57).t44 = function (decoder) { var tmp0_desc = this.aq3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); var tmp7_cached = Companion_getInstance_94().zq2_1; if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return XapiVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_57).bq3 = function (encoder, value) { var tmp0_desc = this.aq3_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_94().zq2_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.pq2_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, StringSerializer_getInstance(), value.pq2_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.qq2_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, tmp2_cached[1], value.qq2_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_57).s44 = function (encoder, value) { return this.bq3(encoder, value instanceof XapiVerb ? value : THROW_CCE()); }; var $serializer_instance_57; function $serializer_getInstance_69() { if ($serializer_instance_57 == null) new $serializer_57(); return $serializer_instance_57; } function XapiVerb_init_$Init$(seen1, id, display, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_69().aq3_1); } if (0 === (seen1 & 1)) $this.pq2_1 = null; else $this.pq2_1 = id; if (0 === (seen1 & 2)) $this.qq2_1 = null; else $this.qq2_1 = display; return $this; } function XapiVerb_init_$Create$(seen1, id, display, serializationConstructorMarker) { return XapiVerb_init_$Init$(seen1, id, display, serializationConstructorMarker, objectCreate(protoOf(XapiVerb))); } function XapiVerb(id, display) { Companion_getInstance_94(); id = id === VOID ? null : id; display = display === VOID ? null : display; this.pq2_1 = id; this.qq2_1 = display; } protoOf(XapiVerb).toString = function () { return 'XapiVerb(id=' + this.pq2_1 + ', display=' + this.qq2_1 + ')'; }; protoOf(XapiVerb).hashCode = function () { var result = this.pq2_1 == null ? 0 : getStringHashCode(this.pq2_1); result = imul(result, 31) + (this.qq2_1 == null ? 0 : hashCode(this.qq2_1)) | 0; return result; }; protoOf(XapiVerb).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiVerb)) return false; var tmp0_other_with_cast = other instanceof XapiVerb ? other : THROW_CCE(); if (!(this.pq2_1 == tmp0_other_with_cast.pq2_1)) return false; if (!equals(this.qq2_1, tmp0_other_with_cast.qq2_1)) return false; return true; }; function get_VERB_COMPLETED() { return VERB_COMPLETED; } var VERB_COMPLETED; function VerbEntities(verbEntity, verbLangMapEntries) { this.fpu_1 = verbEntity; this.gpu_1 = verbLangMapEntries; } protoOf(VerbEntities).toString = function () { return 'VerbEntities(verbEntity=' + this.fpu_1 + ', verbLangMapEntries=' + this.gpu_1 + ')'; }; protoOf(VerbEntities).hashCode = function () { var result = this.fpu_1.hashCode(); result = imul(result, 31) + hashCode(this.gpu_1) | 0; return result; }; protoOf(VerbEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof VerbEntities)) return false; var tmp0_other_with_cast = other instanceof VerbEntities ? other : THROW_CCE(); if (!this.fpu_1.equals(tmp0_other_with_cast.fpu_1)) return false; if (!equals(this.gpu_1, tmp0_other_with_cast.gpu_1)) return false; return true; }; function toVerbEntities(_this__u8e3s4, xxHasher) { var verbIri = xapiRequireValidIRI(_this__u8e3s4.pq2_1); var verbUid = xxHasher.om7(verbIri); var tmp = new VerbEntity(verbUid, _this__u8e3s4.pq2_1); var tmp0_safe_receiver = _this__u8e3s4.qq2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2(); var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10)); var tmp0_iterator = tmp1_safe_receiver.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.xapi.model.toVerbEntities.' call var tmp0_vlmeLangHash = xxHasher.om7(item.s2()); var tmp1_vlmeEntryString = item.t2(); var tmp2_vlmeLangCode = item.s2(); var tmp$ret$0 = new VerbLangMapEntry(verbUid, tmp0_vlmeLangHash, tmp2_vlmeLangCode, tmp1_vlmeEntryString); destination.i1(tmp$ret$0); } tmp_0 = destination; } var tmp2_elvis_lhs = tmp_0; return new VerbEntities(tmp, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs); } function get_VERB_PROGRESSED() { return VERB_PROGRESSED; } var VERB_PROGRESSED; function createXapiStatement($this, totalDuration, progress, isComplete) { var tmp = agent($this.fq3_1, $this.iq3_1); var tmp_0; if (isComplete === true) { tmp_0 = get_VERB_COMPLETED(); } else { tmp_0 = get_VERB_PROGRESSED(); } var tmp_1 = new XapiVerb(tmp_0); var tmp_2 = $this.hq3_1(); // Inline function 'kotlin.time.Companion.milliseconds' call Companion_getInstance_9(); var tmp$ret$0 = toDuration(totalDuration, DurationUnit_MILLISECONDS_getInstance()); return new XapiStatement(VOID, tmp, tmp_1, tmp_2, new XapiResult(isComplete, VOID, VOID, Duration__toIsoString_impl_9h6wsm(tmp$ret$0), VOID, mapOf_0(to(get_XAPI_RESULT_EXTENSION_PROGRESS(), JsonPrimitive(progress))))); } function createFinalStatement($this) { $this.nq3(false); var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = $this.jq3_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.createFinalStatement.' call var upd = new Long(0, 0); if (this_0.atomicfu$compareAndSet(cur, upd)) { tmp$ret$1 = cur; break $l$block; } } } var usageDurationVal = tmp$ret$1; var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_1 = $this.kq3_1; while (true) { var cur_0 = this_1.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.createFinalStatement.' call var upd_0 = 0; if (this_1.atomicfu$compareAndSet(cur_0, upd_0)) { tmp$ret$3 = cur_0; break $l$block_0; } } } var maxProgressVal = tmp$ret$3; return createXapiStatement($this, usageDurationVal, maxProgressVal, false); } function NonInteractiveContentXapiStatementRecorder$onActiveChanged$lambda($active) { return function () { return 'ContentUsageStatementRecorder: active=' + $active; }; } function NonInteractiveContentXapiStatementRecorder$onComplete$lambda() { return 'ContentUsageStatementRecorder: completed'; } function NonInteractiveContentXapiStatementRecorder$onComplete$slambda(this$0, $usageDurationVal, $timeSinceActive, resultContinuation) { this.wq3_1 = this$0; this.xq3_1 = $usageDurationVal; this.yq3_1 = $timeSinceActive; CoroutineImpl.call(this, resultContinuation); } protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.wq3_1.eq3_1.col(listOf_0(createXapiStatement(this.wq3_1, this.xq3_1.lc(this.yq3_1), 100, true)), this.wq3_1.fq3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).w1m = function ($this$launch, completion) { var i = new NonInteractiveContentXapiStatementRecorder$onComplete$slambda(this.wq3_1, this.xq3_1, this.yq3_1, completion); i.zq3_1 = $this$launch; return i; }; function NonInteractiveContentXapiStatementRecorder$onComplete$slambda_0(this$0, $usageDurationVal, $timeSinceActive, resultContinuation) { var i = new NonInteractiveContentXapiStatementRecorder$onComplete$slambda(this$0, $usageDurationVal, $timeSinceActive, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function NonInteractiveContentXapiStatementRecorder(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, xapiSession, scope, xapiActivityProvider, learningSpace) { this.cq3_1 = saveStatementOnClearUseCase; this.dq3_1 = saveStatementOnUnloadUseCase; this.eq3_1 = xapiStatementResource; this.fq3_1 = xapiSession; this.gq3_1 = scope; this.hq3_1 = xapiActivityProvider; this.iq3_1 = learningSpace; this.jq3_1 = atomic$long$1(new Long(0, 0)); this.kq3_1 = atomic$int$1(0); this.lq3_1 = atomic$long$1(new Long(0, 0)); this.mq3_1 = atomic$boolean$1(false); } protoOf(NonInteractiveContentXapiStatementRecorder).nq3 = function (active) { var tmp = Napier_getInstance(); tmp.f5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onActiveChanged$lambda(active)); if (active) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.lq3_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onActiveChanged.' call var upd = cur.equals(new Long(0, 0)) ? systemTimeInMillis() : cur; if (this_0.atomicfu$compareAndSet(cur, upd)) { break $l$block; } } } } else { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_1 = this.lq3_1; while (true) { var cur_0 = this_1.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onActiveChanged.' call var upd_0 = new Long(0, 0); if (this_1.atomicfu$compareAndSet(cur_0, upd_0)) { tmp$ret$3 = cur_0; break $l$block_0; } } } var activeStarted = tmp$ret$3; if (!activeStarted.equals(new Long(0, 0))) { $l$block_1: { // Inline function 'kotlinx.atomicfu.update' call var this_2 = this.jq3_1; while (true) { var cur_1 = this_2.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onActiveChanged.' call var upd_1 = cur_1.lc(systemTimeInMillis().mc(activeStarted)); if (this_2.atomicfu$compareAndSet(cur_1, upd_1)) { break $l$block_1; } } } } } }; protoOf(NonInteractiveContentXapiStatementRecorder).aq4 = function (progress) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.kq3_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onProgressed.' call // Inline function 'kotlin.comparisons.maxOf' call var upd = Math.max(cur, progress); if (this_0.atomicfu$compareAndSet(cur, upd)) { break $l$block; } } } }; protoOf(NonInteractiveContentXapiStatementRecorder).bq4 = function (oneCompletionStatementOnly) { var tmp = Napier_getInstance(); tmp.f5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$lambda); var tmp_0; var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = this.mq3_1; while (true) { var cur = this_0.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd = true; if (this_0.atomicfu$compareAndSet(cur, upd)) { tmp$ret$1 = cur; break $l$block; } } } if (!tmp$ret$1) { tmp_0 = true; } else { tmp_0 = !oneCompletionStatementOnly; } if (tmp_0) { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_1 = this.jq3_1; while (true) { var cur_0 = this_1.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd_0 = new Long(0, 0); if (this_1.atomicfu$compareAndSet(cur_0, upd_0)) { tmp$ret$3 = cur_0; break $l$block_0; } } } var usageDurationVal = tmp$ret$3; var tmp$ret$5; $l$block_1: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_2 = this.lq3_1; while (true) { var cur_1 = this_2.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd_1 = new Long(0, 0); if (this_2.atomicfu$compareAndSet(cur_1, upd_1)) { tmp$ret$5 = cur_1; break $l$block_1; } } } var activeStartTimeVal = tmp$ret$5; var tmp_1; if (!activeStartTimeVal.equals(new Long(0, 0))) { tmp_1 = systemTimeInMillis().mc(activeStartTimeVal); } else { tmp_1 = new Long(0, 0); } var timeSinceActive = tmp_1; $l$block_2: { // Inline function 'kotlinx.atomicfu.update' call var this_3 = this.kq3_1; while (true) { var cur_2 = this_3.kotlinx$atomicfu$value; // Inline function 'com.ustadmobile.core.domain.xapi.noninteractivecontentusagestatementrecorder.NonInteractiveContentXapiStatementRecorder.onComplete.' call var upd_2 = 0; if (this_3.atomicfu$compareAndSet(cur_2, upd_2)) { break $l$block_2; } } } launch(this.gq3_1, VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$slambda_0(this, usageDurationVal, timeSinceActive, null)); } }; protoOf(NonInteractiveContentXapiStatementRecorder).bm8 = function () { this.cq3_1.cq4(listOf_0(createFinalStatement(this)), this.fq3_1); }; protoOf(NonInteractiveContentXapiStatementRecorder).dq4 = function () { var tmp0_safe_receiver = this.dq3_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.cq4(listOf_0(createFinalStatement(this)), this.fq3_1); } }; function NonInteractiveContentXapiStatementRecorderFactory(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, learningSpace) { this.eq4_1 = saveStatementOnClearUseCase; this.fq4_1 = saveStatementOnUnloadUseCase; this.gq4_1 = xapiStatementResource; this.hq4_1 = learningSpace; } protoOf(NonInteractiveContentXapiStatementRecorderFactory).iq4 = function (xapiSession, scope, xapiActivityProvider) { return new NonInteractiveContentXapiStatementRecorder(this.eq4_1, this.fq4_1, this.gq4_1, xapiSession, scope, xapiActivityProvider, this.hq4_1); }; function SaveStatementOnClearUseCase() { } function SaveStatementOnUnloadUseCase() { } function Companion_77() { Companion_instance_125 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.jq4_1 = [new ArrayListSerializer($serializer_getInstance_66()), null]; } protoOf(Companion_77).o4r = function () { return $serializer_getInstance_70(); }; var Companion_instance_125; function Companion_getInstance_95() { if (Companion_instance_125 == null) new Companion_77(); return Companion_instance_125; } function $serializer_58() { $serializer_instance_58 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.savestatementonclear.XapiStatementsAndSession', this, 2); tmp0_serialDesc.u4f('statements', false); tmp0_serialDesc.u4f('session', false); this.kq4_1 = tmp0_serialDesc; } protoOf($serializer_58).r44 = function () { return this.kq4_1; }; protoOf($serializer_58).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_95().jq4_1[0], $serializer_getInstance_6()]; }; protoOf($serializer_58).t44 = function (decoder) { var tmp0_desc = this.kq4_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_input = decoder.j48(tmp0_desc); var tmp7_cached = Companion_getInstance_95().jq4_1; if (tmp6_input.y48()) { tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.k48(tmp0_desc); return XapiStatementsAndSession_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_58).lq4 = function (encoder, value) { var tmp0_desc = this.kq4_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_95().jq4_1; tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.mq4_1); tmp1_output.z49(tmp0_desc, 1, $serializer_getInstance_6(), value.nq4_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_58).s44 = function (encoder, value) { return this.lq4(encoder, value instanceof XapiStatementsAndSession ? value : THROW_CCE()); }; var $serializer_instance_58; function $serializer_getInstance_70() { if ($serializer_instance_58 == null) new $serializer_58(); return $serializer_instance_58; } function XapiStatementsAndSession_init_$Init$(seen1, statements, session, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_70().kq4_1); } $this.mq4_1 = statements; $this.nq4_1 = session; return $this; } function XapiStatementsAndSession_init_$Create$(seen1, statements, session, serializationConstructorMarker) { return XapiStatementsAndSession_init_$Init$(seen1, statements, session, serializationConstructorMarker, objectCreate(protoOf(XapiStatementsAndSession))); } function XapiStatementsAndSession(statements, session) { Companion_getInstance_95(); this.mq4_1 = statements; this.nq4_1 = session; } protoOf(XapiStatementsAndSession).toString = function () { return 'XapiStatementsAndSession(statements=' + this.mq4_1 + ', session=' + this.nq4_1 + ')'; }; protoOf(XapiStatementsAndSession).hashCode = function () { var result = hashCode(this.mq4_1); result = imul(result, 31) + this.nq4_1.hashCode() | 0; return result; }; protoOf(XapiStatementsAndSession).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiStatementsAndSession)) return false; var tmp0_other_with_cast = other instanceof XapiStatementsAndSession ? other : THROW_CCE(); if (!equals(this.mq4_1, tmp0_other_with_cast.mq4_1)) return false; if (!this.nq4_1.equals(tmp0_other_with_cast.nq4_1)) return false; return true; }; function ResumeOrStartXapiSessionUseCase() { } function UstadMobileConstants() { UstadMobileConstants_instance = this; this.oq4_1 = 'UTF-8'; this.pq4_1 = 0; this.qq4_1 = 'UTC'; this.rq4_1 = mapOf([to('en', 'English'), to('tg', '\u0422\u043E\u04B7\u0438\u043A\u04E3'), to('ps', '\u067E\u069A\u062A\u0648'), to('fa', '\u062F\u0631\u06CC'), to('ar', '\u0627\u0644\u0639\u0631\u0628\u064A\u0629'), to('bn', '\u09AC\u09BE\u0982\u09B2\u09BE'), to('ne', '\u0928\u0947\u092A\u093E\u0932\u0940'), to('my', '\u1019\u103C\u1014\u103A\u1019\u102C\u1005\u102C'), to('ru', '\u0420\u0443\u0441\u0441\u043A\u0438\u0439'), to('rw', 'Kinyarwanda')]); var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.sq4_1 = ['ar', 'arc', 'dv', 'fa', 'ha', 'he', 'khw', 'ks', 'ku', 'ps', 'ur', 'yi']; this.tq4_1 = 13; this.uq4_1 = 18; this.vq4_1 = 10000; this.wq4_1 = 512; } var UstadMobileConstants_instance; function UstadMobileConstants_getInstance() { if (UstadMobileConstants_instance == null) new UstadMobileConstants(); return UstadMobileConstants_instance; } function Companion_78() { Companion_instance_126 = this; this.xq4_1 = new UstadGoOptions(null, false); } var Companion_instance_126; function Companion_getInstance_96() { if (Companion_instance_126 == null) new Companion_78(); return Companion_instance_126; } function UstadGoOptions(popUpToViewName, popUpToInclusive, clearStack, serializer) { Companion_getInstance_96(); popUpToViewName = popUpToViewName === VOID ? null : popUpToViewName; popUpToInclusive = popUpToInclusive === VOID ? false : popUpToInclusive; clearStack = clearStack === VOID ? false : clearStack; serializer = serializer === VOID ? null : serializer; this.yq4_1 = popUpToViewName; this.zq4_1 = popUpToInclusive; this.aq5_1 = clearStack; this.bq5_1 = serializer; } protoOf(UstadGoOptions).toString = function () { return 'UstadGoOptions(popUpToViewName=' + this.yq4_1 + ', popUpToInclusive=' + this.zq4_1 + ', clearStack=' + this.aq5_1 + ', serializer=' + this.bq5_1 + ')'; }; protoOf(UstadGoOptions).hashCode = function () { var result = this.yq4_1 == null ? 0 : getStringHashCode(this.yq4_1); result = imul(result, 31) + getBooleanHashCode(this.zq4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.aq5_1) | 0; result = imul(result, 31) + (this.bq5_1 == null ? 0 : hashCode(this.bq5_1)) | 0; return result; }; protoOf(UstadGoOptions).equals = function (other) { if (this === other) return true; if (!(other instanceof UstadGoOptions)) return false; var tmp0_other_with_cast = other instanceof UstadGoOptions ? other : THROW_CCE(); if (!(this.yq4_1 == tmp0_other_with_cast.yq4_1)) return false; if (!(this.zq4_1 === tmp0_other_with_cast.zq4_1)) return false; if (!(this.aq5_1 === tmp0_other_with_cast.aq5_1)) return false; if (!equals(this.bq5_1, tmp0_other_with_cast.bq5_1)) return false; return true; }; function UiLanguage(langCode, langDisplay) { this.cq5_1 = langCode; this.dq5_1 = langDisplay; } protoOf(UiLanguage).toString = function () { return 'UiLanguage(langCode=' + this.cq5_1 + ', langDisplay=' + this.dq5_1 + ')'; }; protoOf(UiLanguage).hashCode = function () { var result = getStringHashCode(this.cq5_1); result = imul(result, 31) + getStringHashCode(this.dq5_1) | 0; return result; }; protoOf(UiLanguage).equals = function (other) { if (this === other) return true; if (!(other instanceof UiLanguage)) return false; var tmp0_other_with_cast = other instanceof UiLanguage ? other : THROW_CCE(); if (!(this.cq5_1 === tmp0_other_with_cast.cq5_1)) return false; if (!(this.dq5_1 === tmp0_other_with_cast.dq5_1)) return false; return true; }; function Companion_79() { Companion_instance_127 = this; this.eq5_1 = mapOf([to('image/jpg', 'jpg'), to('image/jpg', 'jpg'), to('image/jpeg', 'jpg'), to('image/png', 'png'), to('image/gif', 'gif'), to('image/svg', 'svg'), to('application/epub+zip', 'epub')]); var tmp = this; // Inline function 'kotlin.collections.associateBy' call var this_0 = this.eq5_1.q2(); var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16); // Inline function 'kotlin.collections.associateByTo' call var destination = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.Companion.MIME_TYPES_REVERSE.' call var tmp_0 = element.t2(); // Inline function 'com.ustadmobile.core.impl.Companion.MIME_TYPES_REVERSE.' call var tmp$ret$1 = element.s2(); destination.s(tmp_0, tmp$ret$1); } tmp.fq5_1 = destination; this.gq5_1 = 'ustadmobileContent'; this.hq5_1 = ''; this.PREFKEY_LOCALE = 'locale'; this.iq5_1 = 2; this.jq5_1 = 4; this.kq5_1 = 'ref'; this.lq5_1 = 67108864; this.mq5_1 = 'dlenabled'; this.nq5_1 = 16; this.oq5_1 = 32; this.pq5_1 = 64; this.qq5_1 = 'umclient'; this.rq5_1 = '/umapp/#/'; this.sq5_1 = 'sitedata'; this.tq5_1 = 'container'; this.uq5_1 = 'attachments'; this.vq5_1 = 'rootViewName'; this.wq5_1 = 'client_id'; } protoOf(Companion_79).xq5 = function () { return this.PREFKEY_LOCALE; }; var Companion_instance_127; function Companion_getInstance_97() { if (Companion_instance_127 == null) new Companion_79(); return Companion_instance_127; } function UstadMobileSystemCommon(settings, langConfig) { Companion_getInstance_97(); this.yq5_1 = settings; this.zq5_1 = langConfig; this.aq6_1 = null; } protoOf(UstadMobileSystemCommon).bq6 = function () { Companion_getInstance_141(); return 'CourseListHome'; }; protoOf(UstadMobileSystemCommon).cq6 = function () { // Inline function 'kotlin.collections.associateWith' call var this_0 = values(); var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(this_0.length), 16)); // Inline function 'kotlin.collections.associateWithTo' call var inductionVariable = 0; var last = this_0.length; while (inductionVariable < last) { var element = this_0[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.impl.UstadMobileSystemCommon.getDayOfWeekStrings.' call var tmp$ret$0 = this.soj(get_dayStringResource(element)); result.s(element, tmp$ret$0); } return result; }; function ActionBarButtonUiState$_init_$lambda_4nqccj() { return Unit_instance; } function ActionBarButtonUiState(visible, text, enabled, onClick) { visible = visible === VOID ? false : visible; text = text === VOID ? null : text; enabled = enabled === VOID ? true : enabled; var tmp; if (onClick === VOID) { tmp = ActionBarButtonUiState$_init_$lambda_4nqccj; } else { tmp = onClick; } onClick = tmp; this.dq6_1 = visible; this.eq6_1 = text; this.fq6_1 = enabled; this.gq6_1 = onClick; } protoOf(ActionBarButtonUiState).hq6 = function (visible, text, enabled, onClick) { return new ActionBarButtonUiState(visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).iq6 = function (visible, text, enabled, onClick, $super) { visible = visible === VOID ? this.dq6_1 : visible; text = text === VOID ? this.eq6_1 : text; enabled = enabled === VOID ? this.fq6_1 : enabled; onClick = onClick === VOID ? this.gq6_1 : onClick; return $super === VOID ? this.hq6(visible, text, enabled, onClick) : $super.hq6.call(this, visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).toString = function () { return 'ActionBarButtonUiState(visible=' + this.dq6_1 + ', text=' + this.eq6_1 + ', enabled=' + this.fq6_1 + ', onClick=' + this.gq6_1 + ')'; }; protoOf(ActionBarButtonUiState).hashCode = function () { var result = getBooleanHashCode(this.dq6_1); result = imul(result, 31) + (this.eq6_1 == null ? 0 : getStringHashCode(this.eq6_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fq6_1) | 0; result = imul(result, 31) + hashCode(this.gq6_1) | 0; return result; }; protoOf(ActionBarButtonUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ActionBarButtonUiState)) return false; var tmp0_other_with_cast = other instanceof ActionBarButtonUiState ? other : THROW_CCE(); if (!(this.dq6_1 === tmp0_other_with_cast.dq6_1)) return false; if (!(this.eq6_1 == tmp0_other_with_cast.eq6_1)) return false; if (!(this.fq6_1 === tmp0_other_with_cast.fq6_1)) return false; if (!equals(this.gq6_1, tmp0_other_with_cast.gq6_1)) return false; return true; }; function AppActionButton(icon, contentDescription, onClick, id) { this.jq6_1 = icon; this.kq6_1 = contentDescription; this.lq6_1 = onClick; this.mq6_1 = id; } protoOf(AppActionButton).toString = function () { return 'AppActionButton(icon=' + this.jq6_1 + ', contentDescription=' + this.kq6_1 + ', onClick=' + this.lq6_1 + ', id=' + this.mq6_1 + ')'; }; protoOf(AppActionButton).hashCode = function () { var result = this.jq6_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.kq6_1) | 0; result = imul(result, 31) + hashCode(this.lq6_1) | 0; result = imul(result, 31) + getStringHashCode(this.mq6_1) | 0; return result; }; protoOf(AppActionButton).equals = function (other) { if (this === other) return true; if (!(other instanceof AppActionButton)) return false; var tmp0_other_with_cast = other instanceof AppActionButton ? other : THROW_CCE(); if (!this.jq6_1.equals(tmp0_other_with_cast.jq6_1)) return false; if (!(this.kq6_1 === tmp0_other_with_cast.kq6_1)) return false; if (!equals(this.lq6_1, tmp0_other_with_cast.lq6_1)) return false; if (!(this.mq6_1 === tmp0_other_with_cast.mq6_1)) return false; return true; }; var AppBarColors_STANDARD_instance; var AppBarColors_SELECTION_MODE_instance; var AppBarColors_entriesInitialized; function AppBarColors_initEntries() { if (AppBarColors_entriesInitialized) return Unit_instance; AppBarColors_entriesInitialized = true; AppBarColors_STANDARD_instance = new AppBarColors('STANDARD', 0); AppBarColors_SELECTION_MODE_instance = new AppBarColors('SELECTION_MODE', 1); } function AppBarColors(name, ordinal) { Enum.call(this, name, ordinal); } function AppBarColors_STANDARD_getInstance() { AppBarColors_initEntries(); return AppBarColors_STANDARD_instance; } function AppBarColors_SELECTION_MODE_getInstance() { AppBarColors_initEntries(); return AppBarColors_SELECTION_MODE_instance; } function AppBarSearchUiState$_init_$lambda_rwjni0(it) { return Unit_instance; } function AppBarSearchUiState(visible, searchText, onSearchTextChanged) { visible = visible === VOID ? false : visible; searchText = searchText === VOID ? '' : searchText; var tmp; if (onSearchTextChanged === VOID) { tmp = AppBarSearchUiState$_init_$lambda_rwjni0; } else { tmp = onSearchTextChanged; } onSearchTextChanged = tmp; this.nq6_1 = visible; this.oq6_1 = searchText; this.pq6_1 = onSearchTextChanged; } protoOf(AppBarSearchUiState).qq6 = function (visible, searchText, onSearchTextChanged) { return new AppBarSearchUiState(visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).rq6 = function (visible, searchText, onSearchTextChanged, $super) { visible = visible === VOID ? this.nq6_1 : visible; searchText = searchText === VOID ? this.oq6_1 : searchText; onSearchTextChanged = onSearchTextChanged === VOID ? this.pq6_1 : onSearchTextChanged; return $super === VOID ? this.qq6(visible, searchText, onSearchTextChanged) : $super.qq6.call(this, visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).toString = function () { return 'AppBarSearchUiState(visible=' + this.nq6_1 + ', searchText=' + this.oq6_1 + ', onSearchTextChanged=' + this.pq6_1 + ')'; }; protoOf(AppBarSearchUiState).hashCode = function () { var result = getBooleanHashCode(this.nq6_1); result = imul(result, 31) + getStringHashCode(this.oq6_1) | 0; result = imul(result, 31) + hashCode(this.pq6_1) | 0; return result; }; protoOf(AppBarSearchUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof AppBarSearchUiState)) return false; var tmp0_other_with_cast = other instanceof AppBarSearchUiState ? other : THROW_CCE(); if (!(this.nq6_1 === tmp0_other_with_cast.nq6_1)) return false; if (!(this.oq6_1 === tmp0_other_with_cast.oq6_1)) return false; if (!equals(this.pq6_1, tmp0_other_with_cast.pq6_1)) return false; return true; }; var AppStateIcon_MOVE_instance; var AppStateIcon_CLOSE_instance; var AppStateIcon_DELETE_instance; var AppStateIcon_entriesInitialized; function AppStateIcon_initEntries() { if (AppStateIcon_entriesInitialized) return Unit_instance; AppStateIcon_entriesInitialized = true; AppStateIcon_MOVE_instance = new AppStateIcon('MOVE', 0); AppStateIcon_CLOSE_instance = new AppStateIcon('CLOSE', 1); AppStateIcon_DELETE_instance = new AppStateIcon('DELETE', 2); } function AppStateIcon(name, ordinal) { Enum.call(this, name, ordinal); } function AppStateIcon_MOVE_getInstance() { AppStateIcon_initEntries(); return AppStateIcon_MOVE_instance; } function AppStateIcon_CLOSE_getInstance() { AppStateIcon_initEntries(); return AppStateIcon_CLOSE_instance; } function AppStateIcon_DELETE_getInstance() { AppStateIcon_initEntries(); return AppStateIcon_DELETE_instance; } function AppUiState(fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors) { fabState = fabState === VOID ? new FabUiState() : fabState; loadingState = loadingState === VOID ? new LoadingUiState() : loadingState; title = title === VOID ? null : title; navigationVisible = navigationVisible === VOID ? true : navigationVisible; hideBottomNavigation = hideBottomNavigation === VOID ? false : hideBottomNavigation; hideSettingsIcon = hideSettingsIcon === VOID ? false : hideSettingsIcon; userAccountIconVisible = userAccountIconVisible === VOID ? true : userAccountIconVisible; searchState = searchState === VOID ? new AppBarSearchUiState() : searchState; actionBarButtonState = actionBarButtonState === VOID ? new ActionBarButtonUiState() : actionBarButtonState; overflowItems = overflowItems === VOID ? emptyList() : overflowItems; hideAppBar = hideAppBar === VOID ? false : hideAppBar; actionButtons = actionButtons === VOID ? emptyList() : actionButtons; leadingActionButton = leadingActionButton === VOID ? null : leadingActionButton; appBarColors = appBarColors === VOID ? AppBarColors_STANDARD_getInstance() : appBarColors; this.sq6_1 = fabState; this.tq6_1 = loadingState; this.uq6_1 = title; this.vq6_1 = navigationVisible; this.wq6_1 = hideBottomNavigation; this.xq6_1 = hideSettingsIcon; this.yq6_1 = userAccountIconVisible; this.zq6_1 = searchState; this.aq7_1 = actionBarButtonState; this.bq7_1 = overflowItems; this.cq7_1 = hideAppBar; this.dq7_1 = actionButtons; this.eq7_1 = leadingActionButton; this.fq7_1 = appBarColors; } protoOf(AppUiState).gq7 = function (fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors) { return new AppUiState(fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors); }; protoOf(AppUiState).hq7 = function (fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors, $super) { fabState = fabState === VOID ? this.sq6_1 : fabState; loadingState = loadingState === VOID ? this.tq6_1 : loadingState; title = title === VOID ? this.uq6_1 : title; navigationVisible = navigationVisible === VOID ? this.vq6_1 : navigationVisible; hideBottomNavigation = hideBottomNavigation === VOID ? this.wq6_1 : hideBottomNavigation; hideSettingsIcon = hideSettingsIcon === VOID ? this.xq6_1 : hideSettingsIcon; userAccountIconVisible = userAccountIconVisible === VOID ? this.yq6_1 : userAccountIconVisible; searchState = searchState === VOID ? this.zq6_1 : searchState; actionBarButtonState = actionBarButtonState === VOID ? this.aq7_1 : actionBarButtonState; overflowItems = overflowItems === VOID ? this.bq7_1 : overflowItems; hideAppBar = hideAppBar === VOID ? this.cq7_1 : hideAppBar; actionButtons = actionButtons === VOID ? this.dq7_1 : actionButtons; leadingActionButton = leadingActionButton === VOID ? this.eq7_1 : leadingActionButton; appBarColors = appBarColors === VOID ? this.fq7_1 : appBarColors; return $super === VOID ? this.gq7(fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors) : $super.gq7.call(this, fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors); }; protoOf(AppUiState).toString = function () { return 'AppUiState(fabState=' + this.sq6_1 + ', loadingState=' + this.tq6_1 + ', title=' + this.uq6_1 + ', navigationVisible=' + this.vq6_1 + ', hideBottomNavigation=' + this.wq6_1 + ', hideSettingsIcon=' + this.xq6_1 + ', userAccountIconVisible=' + this.yq6_1 + ', searchState=' + this.zq6_1 + ', actionBarButtonState=' + this.aq7_1 + ', overflowItems=' + this.bq7_1 + ', hideAppBar=' + this.cq7_1 + ', actionButtons=' + this.dq7_1 + ', leadingActionButton=' + this.eq7_1 + ', appBarColors=' + this.fq7_1 + ')'; }; protoOf(AppUiState).hashCode = function () { var result = this.sq6_1.hashCode(); result = imul(result, 31) + this.tq6_1.hashCode() | 0; result = imul(result, 31) + (this.uq6_1 == null ? 0 : getStringHashCode(this.uq6_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.vq6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wq6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xq6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yq6_1) | 0; result = imul(result, 31) + this.zq6_1.hashCode() | 0; result = imul(result, 31) + this.aq7_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.bq7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cq7_1) | 0; result = imul(result, 31) + hashCode(this.dq7_1) | 0; result = imul(result, 31) + (this.eq7_1 == null ? 0 : this.eq7_1.hashCode()) | 0; result = imul(result, 31) + this.fq7_1.hashCode() | 0; return result; }; protoOf(AppUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof AppUiState)) return false; var tmp0_other_with_cast = other instanceof AppUiState ? other : THROW_CCE(); if (!this.sq6_1.equals(tmp0_other_with_cast.sq6_1)) return false; if (!this.tq6_1.equals(tmp0_other_with_cast.tq6_1)) return false; if (!(this.uq6_1 == tmp0_other_with_cast.uq6_1)) return false; if (!(this.vq6_1 === tmp0_other_with_cast.vq6_1)) return false; if (!(this.wq6_1 === tmp0_other_with_cast.wq6_1)) return false; if (!(this.xq6_1 === tmp0_other_with_cast.xq6_1)) return false; if (!(this.yq6_1 === tmp0_other_with_cast.yq6_1)) return false; if (!this.zq6_1.equals(tmp0_other_with_cast.zq6_1)) return false; if (!this.aq7_1.equals(tmp0_other_with_cast.aq7_1)) return false; if (!equals(this.bq7_1, tmp0_other_with_cast.bq7_1)) return false; if (!(this.cq7_1 === tmp0_other_with_cast.cq7_1)) return false; if (!equals(this.dq7_1, tmp0_other_with_cast.dq7_1)) return false; if (!equals(this.eq7_1, tmp0_other_with_cast.eq7_1)) return false; if (!this.fq7_1.equals(tmp0_other_with_cast.fq7_1)) return false; return true; }; var FabIcon_NONE_instance; var FabIcon_ADD_instance; var FabIcon_EDIT_instance; var FabIcon_entriesInitialized; function FabIcon_initEntries() { if (FabIcon_entriesInitialized) return Unit_instance; FabIcon_entriesInitialized = true; FabIcon_NONE_instance = new FabIcon('NONE', 0); FabIcon_ADD_instance = new FabIcon('ADD', 1); FabIcon_EDIT_instance = new FabIcon('EDIT', 2); } function FabIcon(name, ordinal) { Enum.call(this, name, ordinal); } function FabUiState$_init_$lambda_e3ylcb() { return Unit_instance; } function FabIcon_NONE_getInstance() { FabIcon_initEntries(); return FabIcon_NONE_instance; } function FabIcon_ADD_getInstance() { FabIcon_initEntries(); return FabIcon_ADD_instance; } function FabIcon_EDIT_getInstance() { FabIcon_initEntries(); return FabIcon_EDIT_instance; } function FabUiState(visible, text, icon, onClick) { visible = visible === VOID ? false : visible; text = text === VOID ? null : text; icon = icon === VOID ? FabIcon_NONE_getInstance() : icon; var tmp; if (onClick === VOID) { tmp = FabUiState$_init_$lambda_e3ylcb; } else { tmp = onClick; } onClick = tmp; this.iq7_1 = visible; this.jq7_1 = text; this.kq7_1 = icon; this.lq7_1 = onClick; } protoOf(FabUiState).mq7 = function (visible, text, icon, onClick) { return new FabUiState(visible, text, icon, onClick); }; protoOf(FabUiState).nq7 = function (visible, text, icon, onClick, $super) { visible = visible === VOID ? this.iq7_1 : visible; text = text === VOID ? this.jq7_1 : text; icon = icon === VOID ? this.kq7_1 : icon; onClick = onClick === VOID ? this.lq7_1 : onClick; return $super === VOID ? this.mq7(visible, text, icon, onClick) : $super.mq7.call(this, visible, text, icon, onClick); }; protoOf(FabUiState).toString = function () { return 'FabUiState(visible=' + this.iq7_1 + ', text=' + this.jq7_1 + ', icon=' + this.kq7_1 + ', onClick=' + this.lq7_1 + ')'; }; protoOf(FabUiState).hashCode = function () { var result = getBooleanHashCode(this.iq7_1); result = imul(result, 31) + (this.jq7_1 == null ? 0 : getStringHashCode(this.jq7_1)) | 0; result = imul(result, 31) + this.kq7_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.lq7_1) | 0; return result; }; protoOf(FabUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof FabUiState)) return false; var tmp0_other_with_cast = other instanceof FabUiState ? other : THROW_CCE(); if (!(this.iq7_1 === tmp0_other_with_cast.iq7_1)) return false; if (!(this.jq7_1 == tmp0_other_with_cast.jq7_1)) return false; if (!this.kq7_1.equals(tmp0_other_with_cast.kq7_1)) return false; if (!equals(this.lq7_1, tmp0_other_with_cast.lq7_1)) return false; return true; }; var State_NOT_LOADING_instance; var State_INDETERMINATE_instance; var State_entriesInitialized; function State_initEntries() { if (State_entriesInitialized) return Unit_instance; State_entriesInitialized = true; State_NOT_LOADING_instance = new State('NOT_LOADING', 0); State_INDETERMINATE_instance = new State('INDETERMINATE', 1); } function State(name, ordinal) { Enum.call(this, name, ordinal); } function Companion_80() { Companion_instance_128 = this; this.oq7_1 = new LoadingUiState(State_INDETERMINATE_getInstance()); this.pq7_1 = new LoadingUiState(State_NOT_LOADING_getInstance()); } var Companion_instance_128; function Companion_getInstance_98() { if (Companion_instance_128 == null) new Companion_80(); return Companion_instance_128; } function State_NOT_LOADING_getInstance() { State_initEntries(); return State_NOT_LOADING_instance; } function State_INDETERMINATE_getInstance() { State_initEntries(); return State_INDETERMINATE_instance; } function LoadingUiState(loadingState) { Companion_getInstance_98(); loadingState = loadingState === VOID ? State_NOT_LOADING_getInstance() : loadingState; this.qq7_1 = loadingState; } protoOf(LoadingUiState).toString = function () { return 'LoadingUiState(loadingState=' + this.qq7_1 + ')'; }; protoOf(LoadingUiState).hashCode = function () { return this.qq7_1.hashCode(); }; protoOf(LoadingUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LoadingUiState)) return false; var tmp0_other_with_cast = other instanceof LoadingUiState ? other : THROW_CCE(); if (!this.qq7_1.equals(tmp0_other_with_cast.qq7_1)) return false; return true; }; function OverflowItem(label, onClick) { this.rq7_1 = label; this.sq7_1 = onClick; } protoOf(OverflowItem).toString = function () { return 'OverflowItem(label=' + this.rq7_1 + ', onClick=' + this.sq7_1 + ')'; }; protoOf(OverflowItem).hashCode = function () { var result = getStringHashCode(this.rq7_1); result = imul(result, 31) + hashCode(this.sq7_1) | 0; return result; }; protoOf(OverflowItem).equals = function (other) { if (this === other) return true; if (!(other instanceof OverflowItem)) return false; var tmp0_other_with_cast = other instanceof OverflowItem ? other : THROW_CCE(); if (!(this.rq7_1 === tmp0_other_with_cast.rq7_1)) return false; if (!equals(this.sq7_1, tmp0_other_with_cast.sq7_1)) return false; return true; }; function Snack(message, action, onAction) { action = action === VOID ? null : action; onAction = onAction === VOID ? null : onAction; this.tq7_1 = message; this.uq7_1 = action; this.vq7_1 = onAction; } protoOf(Snack).toString = function () { return 'Snack(message=' + this.tq7_1 + ', action=' + this.uq7_1 + ', onAction=' + this.vq7_1 + ')'; }; protoOf(Snack).hashCode = function () { var result = getStringHashCode(this.tq7_1); result = imul(result, 31) + (this.uq7_1 == null ? 0 : getStringHashCode(this.uq7_1)) | 0; result = imul(result, 31) + (this.vq7_1 == null ? 0 : hashCode(this.vq7_1)) | 0; return result; }; protoOf(Snack).equals = function (other) { if (this === other) return true; if (!(other instanceof Snack)) return false; var tmp0_other_with_cast = other instanceof Snack ? other : THROW_CCE(); if (!(this.tq7_1 === tmp0_other_with_cast.tq7_1)) return false; if (!(this.uq7_1 == tmp0_other_with_cast.uq7_1)) return false; if (!equals(this.vq7_1, tmp0_other_with_cast.vq7_1)) return false; return true; }; function SnackBarDispatcher() { } function TabItem(viewName, args, label) { this.xq7_1 = viewName; this.yq7_1 = args; this.zq7_1 = label; } protoOf(TabItem).toString = function () { return 'TabItem(viewName=' + this.xq7_1 + ', args=' + this.yq7_1 + ', label=' + this.zq7_1 + ')'; }; protoOf(TabItem).hashCode = function () { var result = getStringHashCode(this.xq7_1); result = imul(result, 31) + hashCode(this.yq7_1) | 0; result = imul(result, 31) + getStringHashCode(this.zq7_1) | 0; return result; }; protoOf(TabItem).equals = function (other) { if (this === other) return true; if (!(other instanceof TabItem)) return false; var tmp0_other_with_cast = other instanceof TabItem ? other : THROW_CCE(); if (!(this.xq7_1 === tmp0_other_with_cast.xq7_1)) return false; if (!equals(this.yq7_1, tmp0_other_with_cast.yq7_1)) return false; if (!(this.zq7_1 === tmp0_other_with_cast.zq7_1)) return false; return true; }; function UstadContextMenuItem(label, onClick) { this.aq8_1 = label; this.bq8_1 = onClick; } protoOf(UstadContextMenuItem).toString = function () { return 'UstadContextMenuItem(label=' + this.aq8_1 + ', onClick=' + this.bq8_1 + ')'; }; protoOf(UstadContextMenuItem).hashCode = function () { var result = getStringHashCode(this.aq8_1); result = imul(result, 31) + hashCode(this.bq8_1) | 0; return result; }; protoOf(UstadContextMenuItem).equals = function (other) { if (this === other) return true; if (!(other instanceof UstadContextMenuItem)) return false; var tmp0_other_with_cast = other instanceof UstadContextMenuItem ? other : THROW_CCE(); if (!(this.aq8_1 === tmp0_other_with_cast.aq8_1)) return false; if (!equals(this.bq8_1, tmp0_other_with_cast.bq8_1)) return false; return true; }; function BuildConfigMap(delegate) { this.cq8_1 = delegate; } protoOf(BuildConfigMap).ba = function (key) { return this.cq8_1.q(key); }; function Companion_81() { this.dq8_1 = '1,2,4'; } var Companion_instance_129; function Companion_getInstance_99() { return Companion_instance_129; } function GenderConfig(genderConfigStr) { genderConfigStr = genderConfigStr === VOID ? '1,2,4' : genderConfigStr; var tmp = this; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = split(genderConfigStr, [',']); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.GenderConfig.genderOptions.' call // Inline function 'kotlin.text.isNotBlank' call if (!isBlank(element)) { destination.i1(element); } } // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10)); var tmp0_iterator_0 = destination.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.impl.config.GenderConfig.genderOptions.' call var tmp$ret$4 = toInt(item); destination_0.i1(tmp$ret$4); } tmp.eq8_1 = destination_0; var tmp_0 = this; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_1 = PersonConstants_getInstance_0().hq8_1; var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = this_1.w(); while (tmp0_iterator_1.f()) { var element_0 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.impl.config.GenderConfig.genderMessageIds.' call if (this.eq8_1.a1(element_0.kq8_1)) { destination_1.i1(element_0); } } tmp_0.fq8_1 = destination_1; var tmp_1 = this; var tmp_2 = strings_getInstance().omi_1; tmp_1.gq8_1 = plus(this.fq8_1, listOf_0(new MessageIdOption2(tmp_2, 0))); } function SupportedLanguagesConfig_init_$Init$(systemLocales, settings, availableLanguagesConfig, fallbackLocaleCode, $this) { availableLanguagesConfig = availableLanguagesConfig === VOID ? 'en,fa,ps,ar,tg,bn,ne,my,rw,ru' : availableLanguagesConfig; fallbackLocaleCode = fallbackLocaleCode === VOID ? 'en' : fallbackLocaleCode; SupportedLanguagesConfig.call($this, systemLocales, new SettingsLocaleSettingDelegate(settings), availableLanguagesConfig, fallbackLocaleCode); return $this; } function SupportedLanguagesConfig_init_$Create$(systemLocales, settings, availableLanguagesConfig, fallbackLocaleCode) { return SupportedLanguagesConfig_init_$Init$(systemLocales, settings, availableLanguagesConfig, fallbackLocaleCode, objectCreate(protoOf(SupportedLanguagesConfig))); } function SettingsLocaleSettingDelegate(settings) { this.lq8_1 = settings; } protoOf(SettingsLocaleSettingDelegate).mq8 = function (value) { if (!(value == null)) { this.lq8_1.em8('locale', value); } else { this.lq8_1.b2o('locale'); } }; protoOf(SettingsLocaleSettingDelegate).nq8 = function () { return this.lq8_1.fm8('locale'); }; function displayLocaleForLangSetting($this, setting) { var tmp; // Inline function 'kotlin.text.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (setting == null ? true : charSequenceLength(setting) === 0) { tmp = $this.oq8().cq5_1; } else { tmp = setting; } return tmp; } function Companion_82() { this.pq8_1 = 'locale'; this.qq8_1 = 'com.ustadmobile.presetlocale'; this.rq8_1 = 'localePresetDone'; this.sq8_1 = 'en,fa,ps,ar,tg,bn,ne,my,rw,ru'; this.tq8_1 = ''; } var Companion_instance_130; function Companion_getInstance_100() { return Companion_instance_130; } function SupportedLanguagesConfig(systemLocales, localeSettingDelegate, availableLanguagesConfig, fallbackLocaleCode) { availableLanguagesConfig = availableLanguagesConfig === VOID ? 'en,fa,ps,ar,tg,bn,ne,my,rw,ru' : availableLanguagesConfig; fallbackLocaleCode = fallbackLocaleCode === VOID ? 'en' : fallbackLocaleCode; this.ypm_1 = systemLocales; this.zpm_1 = localeSettingDelegate; this.apn_1 = availableLanguagesConfig; this.bpn_1 = fallbackLocaleCode; var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = sorted(split(this.apn_1, [','])); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.supportedUiLanguages.' call var tmp0_elvis_lhs = UstadMobileConstants_getInstance().rq4_1.q(item); var tmp$ret$0 = new UiLanguage(item, tmp0_elvis_lhs == null ? item : tmp0_elvis_lhs); destination.i1(tmp$ret$0); } tmp.cpn_1 = destination; var tmp_0 = this; // Inline function 'kotlin.collections.associateBy' call var this_1 = this.cpn_1; var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16); // Inline function 'kotlin.collections.associateByTo' call var destination_0 = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.supportedLangMap.' call var tmp$ret$3 = element.cq5_1; destination_0.s(tmp$ret$3, element); } tmp_0.dpn_1 = destination_0; this.epn_1 = displayLocaleForLangSetting(this, this.nq8()); if (!this.dpn_1.r(this.bpn_1)) throw IllegalStateException_init_$Create$('available languages ' + this.apn_1 + ' does not ' + ("include fallback: '" + this.bpn_1 + "'")); } protoOf(SupportedLanguagesConfig).mq8 = function (value) { this.zpm_1.mq8(value); this.epn_1 = displayLocaleForLangSetting(this, value); }; protoOf(SupportedLanguagesConfig).nq8 = function () { return this.zpm_1.nq8(); }; protoOf(SupportedLanguagesConfig).uq8 = function (systemImpl) { var tmp0_elvis_lhs = this.nq8(); var currentLocaleSetting = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.first' call var tmp0_iterator = this.vq8(systemImpl).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.getCurrentLanguage.' call if (element.cq5_1 === currentLocaleSetting) { tmp$ret$1 = element; break $l$block; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } return tmp$ret$1; }; protoOf(SupportedLanguagesConfig).wq8 = function (useDeviceLangDisplay) { Companion_getInstance_97(); return plus(listOf_0(new UiLanguage('', useDeviceLangDisplay)), this.cpn_1); }; protoOf(SupportedLanguagesConfig).vq8 = function (systemImpl) { return this.wq8(systemImpl.soj(strings_getInstance().un4_1)); }; protoOf(SupportedLanguagesConfig).xq8 = function (preferredLocales) { // Inline function 'kotlin.collections.map' call var this_0 = this.cpn_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.selectFirstSupportedLocale.' call var tmp$ret$0 = item.cq5_1; destination.i1(tmp$ret$0); } var supportedLocaleCodes = destination; var tmp$ret$6; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator_0 = preferredLocales.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.selectFirstSupportedLocale.' call // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$4 = element.substring(0, 2); if (supportedLocaleCodes.a1(tmp$ret$4)) { tmp$ret$6 = element; break $l$block; } } tmp$ret$6 = null; } var tmp0_safe_receiver = tmp$ret$6; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.selectFirstSupportedLocale.' call // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$8 = tmp0_safe_receiver.substring(0, 2); tmp = ensureNotNull(this.dpn_1.q(tmp$ret$8)); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? ensureNotNull(this.dpn_1.q(this.bpn_1)) : tmp1_elvis_lhs; }; protoOf(SupportedLanguagesConfig).oq8 = function (preferredLocales, $super) { preferredLocales = preferredLocales === VOID ? this.ypm_1 : preferredLocales; return $super === VOID ? this.xq8(preferredLocales) : $super.xq8.call(this, preferredLocales); }; function Companion_83() { } protoOf(Companion_83).yq8 = function (buildConfig) { var tmp = ensureNotNull(buildConfig.ba('com.ustadmobile.system.systemBaseUrl')); var tmp0_safe_receiver = buildConfig.ba('com.ustadmobile.system.presetLsUrl'); var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_1; // Inline function 'com.ustadmobile.core.impl.config.Companion.fromUstadBuildConfig.' call // Inline function 'kotlin.text.isNotBlank' call if (!isBlank(tmp0_safe_receiver)) { tmp_1 = tmp0_safe_receiver; } else { tmp_1 = null; } tmp_0 = tmp_1; } var tmp_2 = tmp_0; var tmp1_safe_receiver = buildConfig.ba('com.ustadmobile.system.newPersonalAccountsLsUrl'); var tmp_3; if (tmp1_safe_receiver == null) { tmp_3 = null; } else { // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_4; // Inline function 'com.ustadmobile.core.impl.config.Companion.fromUstadBuildConfig.' call // Inline function 'kotlin.text.isNotBlank' call if (!isBlank(tmp1_safe_receiver)) { tmp_4 = tmp1_safe_receiver; } else { tmp_4 = null; } tmp_3 = tmp_4; } return new SystemUrlConfig(tmp, tmp_2, tmp_3); }; var Companion_instance_131; function Companion_getInstance_101() { return Companion_instance_131; } function SystemUrlConfig(systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? null : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? null : newPersonalAccountsLearningSpaceUrl; this.do6_1 = systemBaseUrl; this.eo6_1 = presetLearningSpaceUrl; this.fo6_1 = newPersonalAccountsLearningSpaceUrl; this.go6_1 = this.eo6_1 == null; } protoOf(SystemUrlConfig).zq8 = function (systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { return new SystemUrlConfig(systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).aq9 = function (systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl, $super) { systemBaseUrl = systemBaseUrl === VOID ? this.do6_1 : systemBaseUrl; presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? this.eo6_1 : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? this.fo6_1 : newPersonalAccountsLearningSpaceUrl; return $super === VOID ? this.zq8(systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) : $super.zq8.call(this, systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).toString = function () { return 'SystemUrlConfig(systemBaseUrl=' + this.do6_1 + ', presetLearningSpaceUrl=' + this.eo6_1 + ', newPersonalAccountsLearningSpaceUrl=' + this.fo6_1 + ')'; }; protoOf(SystemUrlConfig).hashCode = function () { var result = getStringHashCode(this.do6_1); result = imul(result, 31) + (this.eo6_1 == null ? 0 : getStringHashCode(this.eo6_1)) | 0; result = imul(result, 31) + (this.fo6_1 == null ? 0 : getStringHashCode(this.fo6_1)) | 0; return result; }; protoOf(SystemUrlConfig).equals = function (other) { if (this === other) return true; if (!(other instanceof SystemUrlConfig)) return false; var tmp0_other_with_cast = other instanceof SystemUrlConfig ? other : THROW_CCE(); if (!(this.do6_1 === tmp0_other_with_cast.do6_1)) return false; if (!(this.eo6_1 == tmp0_other_with_cast.eo6_1)) return false; if (!(this.fo6_1 == tmp0_other_with_cast.fo6_1)) return false; return true; }; function Companion_84() { this.bq9_1 = 'com.ustadmobile.gopts'; this.cq9_1 = 'com.ustadmobile.showpoweredbymsg'; this.dq9_1 = 'com.ustadmobile.system.systemBaseUrl'; this.eq9_1 = 'com.ustadmobile.system.presetLsUrl'; this.fq9_1 = 'com.ustadmobile.system.newPersonalAccountsLsUrl'; } var Companion_instance_132; function Companion_getInstance_102() { return Companion_instance_132; } function UstadBuildConfig() { } function commonClientDomainDiModule(learningSpaceScope) { return Module_init_$Create$('CommonDomainClient', VOID, VOID, commonClientDomainDiModule$lambda(learningSpaceScope)); } function commonClientDomainDiModule$lambda$lambda($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); var tmp_2 = $this$provider.pd(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.e58(tmp$ret$2, null); return new SendClazzInvitesUseCaseSendToServerImpl(tmp_1, tmp_2, tmp$ret$3); } function commonClientDomainDiModule$lambda$lambda_0($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new GetUsernameSuggestionUseCase(tmp$ret$1, $this$singleton.pd()); } function commonClientDomainDiModule$lambda($learningSpaceScope) { return function ($this$$receiver) { // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(SendClazzInvitesUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var tmp_0 = $this$$receiver.p56(tmp$ret$0, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var this_0 = new ImplWithScope(tmp$ret$2, scope); var creator = commonClientDomainDiModule$lambda$lambda; var tmp_2 = this_0.c56(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(SendClazzInvitesUseCaseSendToServerImpl), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$5 = new Provider(tmp_2, tmp$ret$4, creator); tmp_0.d5b(tmp$ret$5); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(GetUsernameSuggestionUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = $this$$receiver.p56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_0 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var this_1 = new ImplWithScope(tmp$ret$8, scope_0); var creator_0 = commonClientDomainDiModule$lambda$lambda_0; var tmp_7 = this_1.d56(); var tmp_8 = this_1.c56(); var tmp_9 = this_1.e56(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(GetUsernameSuggestionUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp$ret$11 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$10, null, true, creator_0); tmp_5.d5b(tmp$ret$11); return Unit_instance; }; } function commonDomainDiModule(learningSpaceScope) { return Module_init_$Create$('CommonDomain', VOID, VOID, commonDomainDiModule$lambda(learningSpaceScope)); } function commonDomainDiModule$lambda$lambda($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new EnrolIntoCourseUseCase(tmp_1, tmp$ret$3.vk2_1); } function commonDomainDiModule$lambda$lambda_0($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp0_repo = tmp.e58(tmp$ret$0, null).vk2_1; // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp1_db = tmp_1.e58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(EnrolIntoCourseUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp2_enrolIntoCourseUseCase = tmp_3.e58(tmp$ret$4, null); return new ApproveOrDeclinePendingEnrolmentUseCase(tmp1_db, tmp0_repo, tmp2_enrolIntoCourseUseCase); } function commonDomainDiModule$lambda$lambda_1($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.e58(tmp$ret$2, null).vk2_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$5 = tmp_5.e58(tmp$ret$4, null); return new SaveContentEntryUseCase(tmp_1, tmp_4, tmp$ret$5); } function commonDomainDiModule$lambda$lambda_2($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null).yk2(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new GetAssignmentSubmitterNameUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_3($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new GetLocaleForSiteTermsUseCase(tmp_1, tmp$ret$3.yk2()); } function commonDomainDiModule$lambda$lambda_4($this$provider) { return new DefaultLaunchContentEntryVersionUseCase(); } function commonDomainDiModule$lambda$lambda_5($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new RequestEnrolmentUseCase(tmp$ret$1.yk2()); } function commonDomainDiModule$lambda$lambda_6($this$singleton) { return new MakeLinkUseCase($this$singleton.pd()); } function commonDomainDiModule$lambda$lambda_7($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new CreateNewClazzUseCase(tmp$ret$1.yk2()); } function commonDomainDiModule$lambda$lambda_8($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(FilterUsernameUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, 1); return new UsernameSuggestionUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_9($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(PhoneNumValidatorUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(ValidateEmailUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new ParseInviteUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_10($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null).yk2(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new CopyCourseUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_11($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null).yk2(); var tmp_2 = $this$provider.pd(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.e58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp_8 = tmp_6.e58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp_11 = tmp_9.e58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp$ret$9 = tmp_12.e58(tmp$ret$8, null); return new SubmitMarkUseCase(tmp_1, tmp_2, tmp_5, tmp_8, tmp_11, tmp$ret$9); } function commonDomainDiModule$lambda$lambda_12($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null).yk2(); var tmp_2 = $this$provider.pd(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.e58(tmp$ret$2, null); return new CreateXapiGroupForCourseGroupUseCase(tmp_1, tmp_2, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_13($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instanceOrNull' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.f58(tmp$ret$2, 2); return new FormatStatementResponseUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_14($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp0_systemUrlConfig = tmp.e58(tmp$ret$0, null); var tmp1_learningSpace = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp2_repo = tmp_1.e58(tmp$ret$2, null).vk2_1; // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp3_db = tmp_3.e58(tmp$ret$4, 1); return new GetDefaultDestinationUseCase(tmp0_systemUrlConfig, tmp1_learningSpace, tmp3_db, tmp2_repo); } function commonDomainDiModule$lambda$lambda_15($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new CheckRegistrationAllowedUseCase(tmp$ret$1); } function commonDomainDiModule$lambda$lambda_16($this$singleton) { return new CreateCredentialUsernameUseCase($this$singleton.pd()); } function commonDomainDiModule$lambda$lambda_17($this$singleton) { return new ParseCredentialUsernameUseCase(); } function commonDomainDiModule$lambda($learningSpaceScope) { return function ($this$$receiver) { // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(EnrolIntoCourseUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var tmp_0 = $this$$receiver.p56(tmp$ret$0, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var this_0 = new ImplWithScope(tmp$ret$2, scope); var creator = commonDomainDiModule$lambda$lambda; var tmp_2 = this_0.c56(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(EnrolIntoCourseUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$5 = new Provider(tmp_2, tmp$ret$4, creator); tmp_0.d5b(tmp$ret$5); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(IApproveOrDeclinePendingEnrolmentRequestUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = $this$$receiver.p56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_0 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var this_1 = new ImplWithScope(tmp$ret$8, scope_0); var creator_0 = commonDomainDiModule$lambda$lambda_0; var tmp_7 = this_1.c56(); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(ApproveOrDeclinePendingEnrolmentUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp$ret$11 = new Provider(tmp_7, tmp$ret$10, creator_0); tmp_5.d5b(tmp$ret$11); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(SaveContentEntryUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var tmp_10 = $this$$receiver.p56(tmp$ret$12, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_1 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); var this_2 = new ImplWithScope(tmp$ret$14, scope_1); var creator_1 = commonDomainDiModule$lambda$lambda_1; var tmp_12 = this_2.c56(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(SaveContentEntryUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp$ret$17 = new Provider(tmp_12, tmp$ret$16, creator_1); tmp_10.d5b(tmp$ret$17); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(GetAssignmentSubmitterNameUseCase), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); var tmp_15 = $this$$receiver.p56(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_2 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); var this_3 = new ImplWithScope(tmp$ret$20, scope_2); var creator_2 = commonDomainDiModule$lambda$lambda_2; var tmp_17 = this_3.c56(); // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(GetAssignmentSubmitterNameUseCase), arrayOf([]), false)); var tmp$ret$22 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); var tmp$ret$23 = new Provider(tmp_17, tmp$ret$22, creator_2); tmp_15.d5b(tmp$ret$23); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$24 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); var tmp_20 = $this$$receiver.p56(tmp$ret$24, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_3 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_21 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$26 = isInterface(tmp_21, TypeToken) ? tmp_21 : THROW_CCE(); var this_4 = new ImplWithScope(tmp$ret$26, scope_3); var creator_3 = commonDomainDiModule$lambda$lambda_3; var tmp_22 = this_4.c56(); // Inline function 'org.kodein.type.generic' call var tmp_23 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$28 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(); var tmp$ret$29 = new Provider(tmp_22, tmp$ret$28, creator_3); tmp_20.d5b(tmp$ret$29); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(LaunchContentEntryVersionUseCase), arrayOf([]), false)); var tmp$ret$30 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); var tmp_25 = $this$$receiver.p56(tmp$ret$30, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_4 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_26 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$32 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE(); var this_5 = new ImplWithScope(tmp$ret$32, scope_4); var creator_4 = commonDomainDiModule$lambda$lambda_4; var tmp_27 = this_5.c56(); // Inline function 'org.kodein.type.generic' call var tmp_28 = typeToken(createKType(getKClass(DefaultLaunchContentEntryVersionUseCase), arrayOf([]), false)); var tmp$ret$34 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE(); var tmp$ret$35 = new Provider(tmp_27, tmp$ret$34, creator_4); tmp_25.d5b(tmp$ret$35); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_29 = typeToken(createKType(getKClass(RequestEnrolmentUseCase), arrayOf([]), false)); var tmp$ret$36 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE(); var tmp_30 = $this$$receiver.p56(tmp$ret$36, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_5 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_31 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$38 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE(); var this_6 = new ImplWithScope(tmp$ret$38, scope_5); var creator_5 = commonDomainDiModule$lambda$lambda_5; var tmp_32 = this_6.c56(); // Inline function 'org.kodein.type.generic' call var tmp_33 = typeToken(createKType(getKClass(RequestEnrolmentUseCase), arrayOf([]), false)); var tmp$ret$40 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE(); var tmp$ret$41 = new Provider(tmp_32, tmp$ret$40, creator_5); tmp_30.d5b(tmp$ret$41); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_34 = typeToken(createKType(getKClass(MakeLinkUseCase), arrayOf([]), false)); var tmp$ret$42 = isInterface(tmp_34, TypeToken) ? tmp_34 : THROW_CCE(); var tmp_35 = $this$$receiver.p56(tmp$ret$42, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_6 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_36 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$44 = isInterface(tmp_36, TypeToken) ? tmp_36 : THROW_CCE(); var this_7 = new ImplWithScope(tmp$ret$44, scope_6); var creator_6 = commonDomainDiModule$lambda$lambda_6; var tmp_37 = this_7.d56(); var tmp_38 = this_7.c56(); var tmp_39 = this_7.e56(); // Inline function 'org.kodein.type.generic' call var tmp_40 = typeToken(createKType(getKClass(MakeLinkUseCase), arrayOf([]), false)); var tmp$ret$46 = isInterface(tmp_40, TypeToken) ? tmp_40 : THROW_CCE(); var tmp$ret$47 = new Singleton(tmp_37, tmp_38, tmp_39, tmp$ret$46, null, true, creator_6); tmp_35.d5b(tmp$ret$47); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_41 = typeToken(createKType(getKClass(CreateNewClazzUseCase), arrayOf([]), false)); var tmp$ret$48 = isInterface(tmp_41, TypeToken) ? tmp_41 : THROW_CCE(); var tmp_42 = $this$$receiver.p56(tmp$ret$48, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_7 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_43 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$50 = isInterface(tmp_43, TypeToken) ? tmp_43 : THROW_CCE(); var this_8 = new ImplWithScope(tmp$ret$50, scope_7); var creator_7 = commonDomainDiModule$lambda$lambda_7; var tmp_44 = this_8.d56(); var tmp_45 = this_8.c56(); var tmp_46 = this_8.e56(); // Inline function 'org.kodein.type.generic' call var tmp_47 = typeToken(createKType(getKClass(CreateNewClazzUseCase), arrayOf([]), false)); var tmp$ret$52 = isInterface(tmp_47, TypeToken) ? tmp_47 : THROW_CCE(); var tmp$ret$53 = new Singleton(tmp_44, tmp_45, tmp_46, tmp$ret$52, null, true, creator_7); tmp_42.d5b(tmp$ret$53); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_48 = typeToken(createKType(getKClass(UsernameSuggestionUseCase), arrayOf([]), false)); var tmp$ret$54 = isInterface(tmp_48, TypeToken) ? tmp_48 : THROW_CCE(); var tmp_49 = $this$$receiver.p56(tmp$ret$54, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_50 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$56 = isInterface(tmp_50, TypeToken) ? tmp_50 : THROW_CCE(); var this_9 = new ImplWithScope(tmp$ret$56, scope_8); var creator_8 = commonDomainDiModule$lambda$lambda_8; var tmp_51 = this_9.c56(); // Inline function 'org.kodein.type.generic' call var tmp_52 = typeToken(createKType(getKClass(UsernameSuggestionUseCase), arrayOf([]), false)); var tmp$ret$58 = isInterface(tmp_52, TypeToken) ? tmp_52 : THROW_CCE(); var tmp$ret$59 = new Provider(tmp_51, tmp$ret$58, creator_8); tmp_49.d5b(tmp$ret$59); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_53 = typeToken(createKType(getKClass(ParseInviteUseCase), arrayOf([]), false)); var tmp$ret$60 = isInterface(tmp_53, TypeToken) ? tmp_53 : THROW_CCE(); var tmp_54 = $this$$receiver.p56(tmp$ret$60, null, null); // Inline function 'org.kodein.di.singleton' call var creator_9 = commonDomainDiModule$lambda$lambda_9; var tmp_55 = $this$$receiver.d56(); var tmp_56 = $this$$receiver.c56(); var tmp_57 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_58 = typeToken(createKType(getKClass(ParseInviteUseCase), arrayOf([]), false)); var tmp$ret$62 = isInterface(tmp_58, TypeToken) ? tmp_58 : THROW_CCE(); var tmp$ret$63 = new Singleton(tmp_55, tmp_56, tmp_57, tmp$ret$62, null, true, creator_9); tmp_54.d5b(tmp$ret$63); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_59 = typeToken(createKType(getKClass(CopyCourseUseCase), arrayOf([]), false)); var tmp$ret$64 = isInterface(tmp_59, TypeToken) ? tmp_59 : THROW_CCE(); var tmp_60 = $this$$receiver.p56(tmp$ret$64, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_9 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_61 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$66 = isInterface(tmp_61, TypeToken) ? tmp_61 : THROW_CCE(); var this_10 = new ImplWithScope(tmp$ret$66, scope_9); var creator_10 = commonDomainDiModule$lambda$lambda_10; var tmp_62 = this_10.d56(); var tmp_63 = this_10.c56(); var tmp_64 = this_10.e56(); // Inline function 'org.kodein.type.generic' call var tmp_65 = typeToken(createKType(getKClass(CopyCourseUseCase), arrayOf([]), false)); var tmp$ret$68 = isInterface(tmp_65, TypeToken) ? tmp_65 : THROW_CCE(); var tmp$ret$69 = new Singleton(tmp_62, tmp_63, tmp_64, tmp$ret$68, null, true, creator_10); tmp_60.d5b(tmp$ret$69); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_66 = typeToken(createKType(getKClass(SubmitMarkUseCase), arrayOf([]), false)); var tmp$ret$70 = isInterface(tmp_66, TypeToken) ? tmp_66 : THROW_CCE(); var tmp_67 = $this$$receiver.p56(tmp$ret$70, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_10 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_68 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$72 = isInterface(tmp_68, TypeToken) ? tmp_68 : THROW_CCE(); var this_11 = new ImplWithScope(tmp$ret$72, scope_10); var creator_11 = commonDomainDiModule$lambda$lambda_11; var tmp_69 = this_11.c56(); // Inline function 'org.kodein.type.generic' call var tmp_70 = typeToken(createKType(getKClass(SubmitMarkUseCase), arrayOf([]), false)); var tmp$ret$74 = isInterface(tmp_70, TypeToken) ? tmp_70 : THROW_CCE(); var tmp$ret$75 = new Provider(tmp_69, tmp$ret$74, creator_11); tmp_67.d5b(tmp$ret$75); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_71 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$76 = isInterface(tmp_71, TypeToken) ? tmp_71 : THROW_CCE(); var tmp_72 = $this$$receiver.p56(tmp$ret$76, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_11 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_73 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$78 = isInterface(tmp_73, TypeToken) ? tmp_73 : THROW_CCE(); var this_12 = new ImplWithScope(tmp$ret$78, scope_11); var creator_12 = commonDomainDiModule$lambda$lambda_12; var tmp_74 = this_12.c56(); // Inline function 'org.kodein.type.generic' call var tmp_75 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$80 = isInterface(tmp_75, TypeToken) ? tmp_75 : THROW_CCE(); var tmp$ret$81 = new Provider(tmp_74, tmp$ret$80, creator_12); tmp_72.d5b(tmp$ret$81); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_76 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$82 = isInterface(tmp_76, TypeToken) ? tmp_76 : THROW_CCE(); var tmp_77 = $this$$receiver.p56(tmp$ret$82, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_12 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_78 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$84 = isInterface(tmp_78, TypeToken) ? tmp_78 : THROW_CCE(); var this_13 = new ImplWithScope(tmp$ret$84, scope_12); var creator_13 = commonDomainDiModule$lambda$lambda_13; var tmp_79 = this_13.d56(); var tmp_80 = this_13.c56(); var tmp_81 = this_13.e56(); // Inline function 'org.kodein.type.generic' call var tmp_82 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$86 = isInterface(tmp_82, TypeToken) ? tmp_82 : THROW_CCE(); var tmp$ret$87 = new Singleton(tmp_79, tmp_80, tmp_81, tmp$ret$86, null, true, creator_13); tmp_77.d5b(tmp$ret$87); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_83 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$88 = isInterface(tmp_83, TypeToken) ? tmp_83 : THROW_CCE(); var tmp_84 = $this$$receiver.p56(tmp$ret$88, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_13 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_85 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$90 = isInterface(tmp_85, TypeToken) ? tmp_85 : THROW_CCE(); var this_14 = new ImplWithScope(tmp$ret$90, scope_13); var creator_14 = commonDomainDiModule$lambda$lambda_14; var tmp_86 = this_14.d56(); var tmp_87 = this_14.c56(); var tmp_88 = this_14.e56(); // Inline function 'org.kodein.type.generic' call var tmp_89 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$92 = isInterface(tmp_89, TypeToken) ? tmp_89 : THROW_CCE(); var tmp$ret$93 = new Singleton(tmp_86, tmp_87, tmp_88, tmp$ret$92, null, true, creator_14); tmp_84.d5b(tmp$ret$93); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_90 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), arrayOf([]), false)); var tmp$ret$94 = isInterface(tmp_90, TypeToken) ? tmp_90 : THROW_CCE(); var tmp_91 = $this$$receiver.p56(tmp$ret$94, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_14 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_92 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$96 = isInterface(tmp_92, TypeToken) ? tmp_92 : THROW_CCE(); var this_15 = new ImplWithScope(tmp$ret$96, scope_14); var creator_15 = commonDomainDiModule$lambda$lambda_15; var tmp_93 = this_15.d56(); var tmp_94 = this_15.c56(); var tmp_95 = this_15.e56(); // Inline function 'org.kodein.type.generic' call var tmp_96 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), arrayOf([]), false)); var tmp$ret$98 = isInterface(tmp_96, TypeToken) ? tmp_96 : THROW_CCE(); var tmp$ret$99 = new Singleton(tmp_93, tmp_94, tmp_95, tmp$ret$98, null, true, creator_15); tmp_91.d5b(tmp$ret$99); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_97 = typeToken(createKType(getKClass(CreateCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$100 = isInterface(tmp_97, TypeToken) ? tmp_97 : THROW_CCE(); var tmp_98 = $this$$receiver.p56(tmp$ret$100, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_15 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_99 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$102 = isInterface(tmp_99, TypeToken) ? tmp_99 : THROW_CCE(); var this_16 = new ImplWithScope(tmp$ret$102, scope_15); var creator_16 = commonDomainDiModule$lambda$lambda_16; var tmp_100 = this_16.d56(); var tmp_101 = this_16.c56(); var tmp_102 = this_16.e56(); // Inline function 'org.kodein.type.generic' call var tmp_103 = typeToken(createKType(getKClass(CreateCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$104 = isInterface(tmp_103, TypeToken) ? tmp_103 : THROW_CCE(); var tmp$ret$105 = new Singleton(tmp_100, tmp_101, tmp_102, tmp$ret$104, null, true, creator_16); tmp_98.d5b(tmp$ret$105); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_104 = typeToken(createKType(getKClass(ParseCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$106 = isInterface(tmp_104, TypeToken) ? tmp_104 : THROW_CCE(); var tmp_105 = $this$$receiver.p56(tmp$ret$106, null, null); // Inline function 'org.kodein.di.singleton' call var creator_17 = commonDomainDiModule$lambda$lambda_17; var tmp_106 = $this$$receiver.d56(); var tmp_107 = $this$$receiver.c56(); var tmp_108 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_109 = typeToken(createKType(getKClass(ParseCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$108 = isInterface(tmp_109, TypeToken) ? tmp_109 : THROW_CCE(); var tmp$ret$109 = new Singleton(tmp_106, tmp_107, tmp_108, tmp$ret$108, null, true, creator_17); tmp_105.d5b(tmp$ret$109); return Unit_instance; }; } function CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, $this) { CourseTerminologyStrings.call($this, toTerminologyEntries(courseTerminology, json, systemImpl), courseTerminology.q8g_1); return $this; } function CourseTerminologyStrings_init_$Create$(courseTerminology, systemImpl, json) { return CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, objectCreate(protoOf(CourseTerminologyStrings))); } function Companion_85() { Companion_instance_133 = this; this.gq9_1 = new CourseTerminologyStrings(emptyList()); } var Companion_instance_133; function Companion_getInstance_103() { if (Companion_instance_133 == null) new Companion_85(); return Companion_instance_133; } function CourseTerminologyStrings(terminologyEntries, terminologyKey) { Companion_getInstance_103(); terminologyKey = terminologyKey === VOID ? null : terminologyKey; this.hq9_1 = terminologyEntries; this.iq9_1 = terminologyKey; } protoOf(CourseTerminologyStrings).jq9 = function (messageId) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.hq9_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.locale.CourseTerminologyStrings.get.' call if (element.lq9_1.equals(messageId)) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_safe_receiver = tmp$ret$1; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mq9_1; }; protoOf(CourseTerminologyStrings).equals = function (other) { var tmp0_safe_receiver = other instanceof CourseTerminologyStrings ? other : null; return equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hq9_1, this.hq9_1); }; protoOf(CourseTerminologyStrings).hashCode = function () { return hashCode(this.hq9_1); }; function mapLookup(_this__u8e3s4, key, map, fallback) { var tmp; if (fallback === VOID) { tmp = mapLookup$lambda; } else { tmp = fallback; } fallback = tmp; var tmp0_safe_receiver = map.q(key); var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.impl.locale.mapLookup.' call tmp_0 = _this__u8e3s4.jq9(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp_0; return tmp1_elvis_lhs == null ? fallback(key) : tmp1_elvis_lhs; } function mapLookup$lambda(it) { return ''; } function TerminologyEntry(id, stringResource, term, errorMessage) { errorMessage = errorMessage === VOID ? null : errorMessage; this.kq9_1 = id; this.lq9_1 = stringResource; this.mq9_1 = term; this.nq9_1 = errorMessage; } protoOf(TerminologyEntry).oq9 = function (id, stringResource, term, errorMessage) { return new TerminologyEntry(id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).pq9 = function (id, stringResource, term, errorMessage, $super) { id = id === VOID ? this.kq9_1 : id; stringResource = stringResource === VOID ? this.lq9_1 : stringResource; term = term === VOID ? this.mq9_1 : term; errorMessage = errorMessage === VOID ? this.nq9_1 : errorMessage; return $super === VOID ? this.oq9(id, stringResource, term, errorMessage) : $super.oq9.call(this, id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).toString = function () { return 'TerminologyEntry(id=' + this.kq9_1 + ', stringResource=' + this.lq9_1 + ', term=' + this.mq9_1 + ', errorMessage=' + this.nq9_1 + ')'; }; protoOf(TerminologyEntry).hashCode = function () { var result = getStringHashCode(this.kq9_1); result = imul(result, 31) + this.lq9_1.hashCode() | 0; result = imul(result, 31) + (this.mq9_1 == null ? 0 : getStringHashCode(this.mq9_1)) | 0; result = imul(result, 31) + (this.nq9_1 == null ? 0 : getStringHashCode(this.nq9_1)) | 0; return result; }; protoOf(TerminologyEntry).equals = function (other) { if (this === other) return true; if (!(other instanceof TerminologyEntry)) return false; var tmp0_other_with_cast = other instanceof TerminologyEntry ? other : THROW_CCE(); if (!(this.kq9_1 === tmp0_other_with_cast.kq9_1)) return false; if (!this.lq9_1.equals(tmp0_other_with_cast.lq9_1)) return false; if (!(this.mq9_1 == tmp0_other_with_cast.mq9_1)) return false; if (!(this.nq9_1 == tmp0_other_with_cast.nq9_1)) return false; return true; }; function ClazzEnrolmentListConstants() { ClazzEnrolmentListConstants_instance = this; var tmp = this; var tmp_0 = to(1000, strings_getInstance().on5_1); var tmp_1 = to(1001, strings_getInstance().bmz_1); var tmp_2 = to(1003, strings_getInstance().bng_1); tmp.qq9_1 = mapOf([tmp_0, tmp_1, tmp_2, to(1002, strings_getInstance().yn8_1)]); var tmp_3 = this; var tmp_4 = to(202, strings_getInstance().qmy_1); var tmp_5 = to(201, strings_getInstance().amy_1); var tmp_6 = to(203, strings_getInstance().bmy_1); tmp_3.rq9_1 = mapOf([tmp_4, tmp_5, tmp_6, to(200, strings_getInstance().pmy_1)]); } var ClazzEnrolmentListConstants_instance; function ClazzEnrolmentListConstants_getInstance() { if (ClazzEnrolmentListConstants_instance == null) new ClazzEnrolmentListConstants(); return ClazzEnrolmentListConstants_instance; } function ConditionConstants() { ConditionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().hmt_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().imt_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().jmt_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().kmt_1; var tmp_7 = new MessageIdOption2(tmp_6, 203); var tmp_8 = strings_getInstance().nmt_1; var tmp_9 = new MessageIdOption2(tmp_8, 205); var tmp_10 = strings_getInstance().lmt_1; var tmp_11 = new MessageIdOption2(tmp_10, 206); var tmp_12 = strings_getInstance().mmt_1; tmp.sq9_1 = listOf([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, new MessageIdOption2(tmp_12, 207)]); } var ConditionConstants_instance; function ConditionConstants_getInstance() { if (ConditionConstants_instance == null) new ConditionConstants(); return ConditionConstants_instance; } function ContentCompletionStatusConstants() { ContentCompletionStatusConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().rmm_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().nmm_1; var tmp_3 = new MessageIdOption2(tmp_2, 102); var tmp_4 = strings_getInstance().mmm_1; tmp.tq9_1 = listOf([tmp_1, tmp_3, new MessageIdOption2(tmp_4, 103)]); } var ContentCompletionStatusConstants_instance; function ContentCompletionStatusConstants_getInstance() { if (ContentCompletionStatusConstants_instance == null) new ContentCompletionStatusConstants(); return ContentCompletionStatusConstants_instance; } function EnrolmentPolicyConstants() { EnrolmentPolicyConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().gni_1; Companion_getInstance_4(); var tmp_1 = new MessageIdOption2(tmp_0, 102); var tmp_2 = strings_getInstance().gnk_1; Companion_getInstance_4(); tmp.uq9_1 = listOf([tmp_1, new MessageIdOption2(tmp_2, 100)]); } var EnrolmentPolicyConstants_instance; function EnrolmentPolicyConstants_getInstance() { if (EnrolmentPolicyConstants_instance == null) new EnrolmentPolicyConstants(); return EnrolmentPolicyConstants_instance; } function FieldConstants() { FieldConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().bmt_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().cmt_1; var tmp_3 = new MessageIdOption2(tmp_2, 101); var tmp_4 = strings_getInstance().dmt_1; var tmp_5 = new MessageIdOption2(tmp_4, 102); var tmp_6 = strings_getInstance().emt_1; var tmp_7 = new MessageIdOption2(tmp_6, 103); var tmp_8 = strings_getInstance().fmt_1; var tmp_9 = new MessageIdOption2(tmp_8, 104); var tmp_10 = strings_getInstance().gmt_1; var tmp_11 = new MessageIdOption2(tmp_10, 105); var tmp_12 = strings_getInstance().nmy_1; var tmp_13 = new MessageIdOption2(tmp_12, 106); var tmp_14 = strings_getInstance().omy_1; tmp.vq9_1 = listOf([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, new MessageIdOption2(tmp_14, 107)]); } var FieldConstants_instance; function FieldConstants_getInstance() { if (FieldConstants_instance == null) new FieldConstants(); return FieldConstants_instance; } function LicenceConstants() { LicenceConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().smu_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().tmu_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().umu_1; var tmp_5 = new MessageIdOption2(tmp_4, 3); var tmp_6 = strings_getInstance().vmu_1; var tmp_7 = new MessageIdOption2(tmp_6, 4); var tmp_8 = strings_getInstance().ymu_1; var tmp_9 = new MessageIdOption2(tmp_8, 5); var tmp_10 = strings_getInstance().wmu_1; var tmp_11 = new MessageIdOption2(tmp_10, 6); var tmp_12 = strings_getInstance().xmu_1; var tmp_13 = new MessageIdOption2(tmp_12, 7); var tmp_14 = strings_getInstance().aml_1; var tmp_15 = new MessageIdOption2(tmp_14, 8); var tmp_16 = strings_getInstance().zmu_1; var tmp_17 = new MessageIdOption2(tmp_16, 9); var tmp_18 = strings_getInstance().bml_1; tmp.wq9_1 = listOf([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, tmp_15, tmp_17, new MessageIdOption2(tmp_18, 0)]); } var LicenceConstants_instance; function LicenceConstants_getInstance() { if (LicenceConstants_instance == null) new LicenceConstants(); return LicenceConstants_instance; } function OutcomeConstants() { OutcomeConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().pmy_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().amy_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().mmm_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().bmy_1; tmp.xq9_1 = listOf([tmp_1, tmp_3, tmp_5, new MessageIdOption2(tmp_6, 203)]); } var OutcomeConstants_instance; function OutcomeConstants_getInstance() { if (OutcomeConstants_instance == null) new OutcomeConstants(); return OutcomeConstants_instance; } function PersonConstants_0() { PersonConstants_instance_0 = this; var tmp = this; var tmp_0 = strings_getInstance().zmk_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().ymk_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().aml_1; tmp.hq8_1 = listOf([tmp_1, tmp_3, new MessageIdOption2(tmp_4, 4)]); var tmp_5 = this; var tmp_6 = strings_getInstance().bml_1; tmp_5.iq8_1 = plus(listOf_0(new MessageIdOption2(tmp_6, 0)), this.hq8_1); } var PersonConstants_instance_0; function PersonConstants_getInstance_0() { if (PersonConstants_instance_0 == null) new PersonConstants_0(); return PersonConstants_instance_0; } function PersonParentJoinConstants() { PersonParentJoinConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().umv_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().tmv_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().wnb_1; var tmp_5 = new MessageIdOption2(tmp_4, 4); var tmp_6 = strings_getInstance().aml_1; tmp.yq9_1 = listOf([tmp_1, tmp_3, tmp_5, new MessageIdOption2(tmp_6, 8)]); } var PersonParentJoinConstants_instance; function PersonParentJoinConstants_getInstance() { if (PersonParentJoinConstants_instance == null) new PersonParentJoinConstants(); return PersonParentJoinConstants_instance; } function RoleConstants() { RoleConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().on5_1; var tmp_1 = new MessageIdOption2(tmp_0, 1000); var tmp_2 = strings_getInstance().bmz_1; tmp.zq9_1 = listOf([tmp_1, new MessageIdOption2(tmp_2, 1001)]); } var RoleConstants_instance; function RoleConstants_getInstance() { if (RoleConstants_instance == null) new RoleConstants(); return RoleConstants_instance; } function ScheduleConstants() { ScheduleConstants_instance = this; this.aqa_1 = listOf([new MessageIdOption2(strings_getInstance().dmx_1, Companion_instance_29.jkw_1), new MessageIdOption2(strings_getInstance().emx_1, Companion_instance_29.dkw_1), new MessageIdOption2(strings_getInstance().fmx_1, Companion_instance_29.ekw_1), new MessageIdOption2(strings_getInstance().gmx_1, Companion_instance_29.fkw_1), new MessageIdOption2(strings_getInstance().hmx_1, Companion_instance_29.gkw_1), new MessageIdOption2(strings_getInstance().imx_1, Companion_instance_29.hkw_1), new MessageIdOption2(strings_getInstance().jmx_1, Companion_instance_29.ikw_1)]); var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = this.aqa_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.locale.entityconstants.ScheduleConstants.DAY_MESSAGE_ID_MAP.' call var tmp$ret$0 = to(item.kq8_1, item.jq8_1); destination.i1(tmp$ret$0); } tmp.bqa_1 = toMap(destination); this.cqa_1 = mapOf([to(Companion_instance_29.ykv_1, strings_getInstance().amx_1), to(Companion_instance_29.zkv_1, strings_getInstance().ymw_1)]); } var ScheduleConstants_instance; function ScheduleConstants_getInstance() { if (ScheduleConstants_instance == null) new ScheduleConstants(); return ScheduleConstants_instance; } function SubmissionPolicyConstants() { SubmissionPolicyConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().ink_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().jnk_1; tmp.dqa_1 = listOf([tmp_1, new MessageIdOption2(tmp_2, 2)]); } var SubmissionPolicyConstants_instance; function SubmissionPolicyConstants_getInstance() { if (SubmissionPolicyConstants_instance == null) new SubmissionPolicyConstants(); return SubmissionPolicyConstants_instance; } function CommandFlowUstadNavController() { this.eqa_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.fqa_1 = asSharedFlow(this.eqa_1); } protoOf(CommandFlowUstadNavController).gqa = function (viewName, args, goOptions) { this.eqa_1.j1h(new NavigateNavCommand(viewName, args, goOptions)); }; protoOf(CommandFlowUstadNavController).hqa = function (viewName, inclusive) { this.eqa_1.j1h(new PopNavCommand(viewName, inclusive)); }; function NavCommand(timestamp) { this.iqa_1 = timestamp; } function NavigateNavCommand(viewName, args, goOptions) { NavCommand.call(this, systemTimeInMillis()); this.kqa_1 = viewName; this.lqa_1 = args; this.mqa_1 = goOptions; } protoOf(NavigateNavCommand).toString = function () { return 'NavigateNavCommand(viewName=' + this.kqa_1 + ', args=' + this.lqa_1 + ', goOptions=' + this.mqa_1 + ')'; }; protoOf(NavigateNavCommand).hashCode = function () { var result = getStringHashCode(this.kqa_1); result = imul(result, 31) + hashCode(this.lqa_1) | 0; result = imul(result, 31) + this.mqa_1.hashCode() | 0; return result; }; protoOf(NavigateNavCommand).equals = function (other) { if (this === other) return true; if (!(other instanceof NavigateNavCommand)) return false; var tmp0_other_with_cast = other instanceof NavigateNavCommand ? other : THROW_CCE(); if (!(this.kqa_1 === tmp0_other_with_cast.kqa_1)) return false; if (!equals(this.lqa_1, tmp0_other_with_cast.lqa_1)) return false; if (!this.mqa_1.equals(tmp0_other_with_cast.mqa_1)) return false; return true; }; function PopNavCommand(viewName, inclusive) { NavCommand.call(this, systemTimeInMillis()); this.oqa_1 = viewName; this.pqa_1 = inclusive; } protoOf(PopNavCommand).toString = function () { return 'PopNavCommand(viewName=' + this.oqa_1 + ', inclusive=' + this.pqa_1 + ')'; }; protoOf(PopNavCommand).hashCode = function () { var result = getStringHashCode(this.oqa_1); result = imul(result, 31) + getBooleanHashCode(this.pqa_1) | 0; return result; }; protoOf(PopNavCommand).equals = function (other) { if (this === other) return true; if (!(other instanceof PopNavCommand)) return false; var tmp0_other_with_cast = other instanceof PopNavCommand ? other : THROW_CCE(); if (!(this.oqa_1 === tmp0_other_with_cast.oqa_1)) return false; if (!(this.pqa_1 === tmp0_other_with_cast.pqa_1)) return false; return true; }; function NavResult(key, timestamp, result) { this.qqa_1 = key; this.rqa_1 = timestamp; this.sqa_1 = result; } protoOf(NavResult).toString = function () { return 'NavResult(key=' + this.qqa_1 + ', timestamp=' + this.rqa_1.toString() + ', result=' + toString_0(this.sqa_1) + ')'; }; protoOf(NavResult).hashCode = function () { var result = getStringHashCode(this.qqa_1); result = imul(result, 31) + this.rqa_1.hashCode() | 0; result = imul(result, 31) + (this.sqa_1 == null ? 0 : hashCode(this.sqa_1)) | 0; return result; }; protoOf(NavResult).equals = function (other) { if (this === other) return true; if (!(other instanceof NavResult)) return false; var tmp0_other_with_cast = other instanceof NavResult ? other : THROW_CCE(); if (!(this.qqa_1 === tmp0_other_with_cast.qqa_1)) return false; if (!this.rqa_1.equals(tmp0_other_with_cast.rqa_1)) return false; if (!equals(this.sqa_1, tmp0_other_with_cast.sqa_1)) return false; return true; }; function NavResultDest(viewName, key) { this.tqa_1 = viewName; this.uqa_1 = key; } function NavResultReturner() { } function NavResultReturnerImpl$resultFlowForKey$o$collect$slambda($$this$unsafeFlow, $key, resultContinuation) { this.fqb_1 = $$this$unsafeFlow; this.gqb_1 = $key; CoroutineImpl.call(this, resultContinuation); } protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).lqb = function (value, $completion) { var tmp = this.mqb(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.jqb_1 = this.fqb_1; var tmp_1 = this; tmp_1.kqb_1 = this.hqb_1; if (this.kqb_1.qqa_1 === this.gqb_1) { this.id_1 = 3; suspendResult = this.jqb_1.u1d(this.kqb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 2: if (false) { this.id_1 = 1; continue $sm; } this.id_1 = 4; continue $sm; case 3: this.iqb_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).mqb = function (value, completion) { var i = new NavResultReturnerImpl$resultFlowForKey$o$collect$slambda(this.fqb_1, this.gqb_1, completion); i.hqb_1 = value; return i; }; function NavResultReturnerImpl$resultFlowForKey$o$collect$slambda_0($$this$unsafeFlow, $key, resultContinuation) { var i = new NavResultReturnerImpl$resultFlowForKey$o$collect$slambda($$this$unsafeFlow, $key, resultContinuation); var l = function (value, $completion) { return i.lqb(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$50(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vqb_1 = _this__u8e3s4; this.wqb_1 = collector; } protoOf($collectCOROUTINE$50).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.xqb_1 = this.wqb_1; this.id_1 = 1; var tmp_1 = NavResultReturnerImpl$resultFlowForKey$o$collect$slambda_0(this.xqb_1, this.vqb_1.zqb_1, null); suspendResult = this.vqb_1.yqb_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) { this.aqc_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).u1d = function (value, $completion) { return this.aqc_1(value, $completion); }; function _no_name_provided__qut3iv_0($this, $key) { this.yqb_1 = $this; this.zqb_1 = $key; } protoOf(_no_name_provided__qut3iv_0).bqc = function (collector, $completion) { var tmp = new $collectCOROUTINE$50(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_0).b1c = function (collector, $completion) { return this.bqc(collector, $completion); }; function NavResultReturnerImpl() { this.cqc_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); } protoOf(NavResultReturnerImpl).vqa = function (key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = this.cqc_1; // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_0(this_0, key); }; protoOf(NavResultReturnerImpl).wqa = function (result) { this.cqc_1.j1h(result); }; function UstadNavController() { } function BitmaskFlag(flagVal, stringResource, enabled) { enabled = enabled === VOID ? false : enabled; this.dqc_1 = flagVal; this.eqc_1 = stringResource; this.fqc_1 = enabled; } protoOf(BitmaskFlag).gqc = function (flagVal, stringResource, enabled) { return new BitmaskFlag(flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).hqc = function (flagVal, stringResource, enabled, $super) { flagVal = flagVal === VOID ? this.dqc_1 : flagVal; stringResource = stringResource === VOID ? this.eqc_1 : stringResource; enabled = enabled === VOID ? this.fqc_1 : enabled; return $super === VOID ? this.gqc(flagVal, stringResource, enabled) : $super.gqc.call(this, flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).toString = function () { return 'BitmaskFlag(flagVal=' + this.dqc_1.toString() + ', stringResource=' + this.eqc_1 + ', enabled=' + this.fqc_1 + ')'; }; protoOf(BitmaskFlag).hashCode = function () { var result = this.dqc_1.hashCode(); result = imul(result, 31) + this.eqc_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.fqc_1) | 0; return result; }; protoOf(BitmaskFlag).equals = function (other) { if (this === other) return true; if (!(other instanceof BitmaskFlag)) return false; var tmp0_other_with_cast = other instanceof BitmaskFlag ? other : THROW_CCE(); if (!this.dqc_1.equals(tmp0_other_with_cast.dqc_1)) return false; if (!this.eqc_1.equals(tmp0_other_with_cast.eqc_1)) return false; if (!(this.fqc_1 === tmp0_other_with_cast.fqc_1)) return false; return true; }; function ListPagingSource(list) { PagingSource.call(this); this.jqc_1 = list; } protoOf(ListPagingSource).d5s = function (params, $completion) { var tmp0_elvis_lhs = params.s2(); var startFrom = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; var loadSize = params.i54_1; var tmp1_elvis_lhs = params.s2(); var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; // Inline function 'kotlin.math.min' call var a = this.jqc_1.u(); var b = startFrom + loadSize | 0; var tmp$ret$0 = Math.min(a, b); var subList = this.jqc_1.z(tmp, tmp$ret$0); var tmp_0; if (startFrom > 0) { // Inline function 'kotlin.math.max' call var b_0 = startFrom - loadSize | 0; tmp_0 = Math.max(0, b_0); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; if ((startFrom + loadSize | 0) < this.jqc_1.u()) { tmp_2 = startFrom + loadSize | 0; } else { tmp_2 = null; } var tmp_3 = Page_init_$Create$(subList, tmp_1, tmp_2); return tmp_3 instanceof LoadResult ? tmp_3 : THROW_CCE(); }; protoOf(ListPagingSource).q54 = function (params, $completion) { return this.d5s(params, $completion); }; function RefreshCommand(time) { time = time === VOID ? systemTimeInMillis() : time; this.kqc_1 = time; } function generateUid(_this__u8e3s4) { return toLong(_this__u8e3s4.ia4_1.hashCode()).rc(32).vc(toLong(_this__u8e3s4.ja4_1.hashCode())); } function get_totalAttendeeStatusRecorded(_this__u8e3s4) { return (_this__u8e3s4.oa4_1 + _this__u8e3s4.qa4_1 | 0) + _this__u8e3s4.pa4_1 | 0; } function Activity(id, aType, lang) { lang = lang === VOID ? 'en' : lang; this.np9_1 = aType; this.op9_1 = lang; this.qp9_1 = null; this.rp9_1 = null; this.sp9_1 = null; this.tp9_1 = null; this.up9_1 = new JsonObject(mapOf_0(to('id', JsonPrimitive_0(id)))); this.pp9_1 = id; } protoOf(Activity).lqc = function (key, value) { // Inline function 'kotlin.collections.isNullOrEmpty' call var this_0 = this.tp9_1; // Inline function 'kotlin.contracts.contract' call if (this_0 == null ? true : this_0.c1()) { var tmp = this; // Inline function 'kotlin.collections.mutableMapOf' call tmp.tp9_1 = LinkedHashMap_init_$Create$(); } // Inline function 'kotlin.collections.set' call ensureNotNull(this.tp9_1).s(key, value); }; function Companion_86() { this.ip9_1 = 1; } protoOf(Companion_86).mqc = function (xpp, parseFlags) { var tcxml = new TinCanXML(); var activity = null; var evtType = xpp.m7d(); var storeActivities = (parseFlags & this.ip9_1) === this.ip9_1; var inExtensions = false; var tagName; var extKey; var extVal; $l$1: do { $l$0: do { var tmp; var tmp_0 = evtType; if (tmp_0 === 2) { tmp = !(xpp.l7d() == null); } else { tmp = false; } if (tmp) { tagName = ensureNotNull(xpp.l7d()); if (!inExtensions) { if (tagName === 'activity') { activity = new Activity(ensureNotNull(xpp.n7d(null, 'id')), ensureNotNull(xpp.n7d(null, 'type'))); } else { var tmp_1; if (tagName === 'launch') { var tmp_2 = xpp.e(); tmp_1 = tmp_2 === 4; } else { tmp_1 = false; } if (tmp_1) { ensureNotNull(activity).sp9_1 = xpp.k7d(); } else { var tmp_3; if (tagName === 'name') { var tmp_4 = xpp.e(); tmp_3 = tmp_4 === 4; } else { tmp_3 = false; } if (tmp_3) { ensureNotNull(activity).rp9_1 = xpp.k7d(); } else { var tmp_5; if (tagName === 'description') { var tmp_6 = xpp.e(); tmp_5 = tmp_6 === 4; } else { tmp_5 = false; } if (tmp_5) { ensureNotNull(activity).qp9_1 = xpp.k7d(); } else { if (xpp.l7d() === 'extensions') { inExtensions = true; } } } } } } else { if (tagName === 'extension') { extKey = ensureNotNull(xpp.n7d(null, 'key')); var tmp_7; var tmp_8 = xpp.e(); if (tmp_8 === 4) { var tmp0_elvis_lhs = xpp.k7d(); tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; } else { tmp_7 = ''; } extVal = tmp_7; ensureNotNull(activity).lqc(extKey, extVal); } } } else { var tmp_9 = evtType; if (tmp_9 === 3) { if (!(xpp.l7d() == null)) { if (xpp.l7d() === 'activity') { if (!(ensureNotNull(activity).sp9_1 == null)) { tcxml.kp9_1 = activity; if (!storeActivities) { break $l$1; } } } else if (xpp.l7d() === 'extensions') { inExtensions = false; } } } } evtType = xpp.e(); } while (false); var tmp_10 = evtType; } while (!(tmp_10 === 1)); return tcxml; }; protoOf(Companion_86).jp9 = function (xpp, parseFlags, $super) { parseFlags = parseFlags === VOID ? 0 : parseFlags; return $super === VOID ? this.mqc(xpp, parseFlags) : $super.mqc.call(this, xpp, parseFlags); }; var Companion_instance_134; function Companion_getInstance_104() { return Companion_instance_134; } function TinCanXML() { this.kp9_1 = null; this.lp9_1 = false; this.mp9_1 = null; } function Companion_87() { this.nqc_1 = 1000; } var Companion_instance_135; function Companion_getInstance_105() { return Companion_instance_135; } function UsernameSuggestionUseCase(filterUsernameUseCase, db) { this.oqc_1 = filterUsernameUseCase; this.pqc_1 = db; } function UsernameErrorException() { } function avatarColorForName(name) { var hash = 0; // Inline function 'kotlin.text.forEach' call var inductionVariable = 0; while (inductionVariable < charSequenceLength(name)) { var element = charSequenceGet(name, inductionVariable); inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.util.avatarColorForName.' call // Inline function 'kotlin.code' call hash = Char__toInt_impl_vasixd(element) + ((hash << 5) - hash | 0) | 0; } var colorInt = hash | 255; return colorInt; } function requireEntryByUri(_this__u8e3s4, uri) { var tmp0_elvis_lhs = entryByUri(_this__u8e3s4, uri); var tmp; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('Manifest has no entry for ' + uri); } else { tmp = tmp0_elvis_lhs; } return tmp; } function entryByUri(_this__u8e3s4, uri) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = _this__u8e3s4.eog_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.entryByUri.' call if (element.iog_1 === uri) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } return tmp$ret$1; } function bodyDataUrlForUri(_this__u8e3s4, uri) { var tmp0_safe_receiver = entryByUri(_this__u8e3s4, uri); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qog_1; } function requireBodyUrlForUri(_this__u8e3s4, uri) { return requireEntryByUri(_this__u8e3s4, uri).qog_1; } function DiTag() { this.qqc_1 = 13; this.rqc_1 = 81; this.sqc_1 = 1; this.tqc_1 = 0; this.uqc_1 = 32; this.vqc_1 = 42; } var DiTag_instance; function DiTag_getInstance() { return DiTag_instance; } function tryReceiveAll(_this__u8e3s4, $this) { var resultList = mutableLinkedListOf([]); while (true) { var result = _this__u8e3s4.b1a(); if (_ChannelResult___get_isSuccess__impl__odq1z9(result)) { // Inline function 'kotlin.collections.plusAssign' call var element = ChannelResult__getOrThrow_impl_od1axs(result); resultList.i1(element); } else return resultList; } } function EventCollator2$receiveEvent$slambda(this$0, resultContinuation) { this.eqd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EventCollator2$receiveEvent$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EventCollator2$receiveEvent$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EventCollator2$receiveEvent$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = delay(this.eqd_1.gqd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.eqd_1.kqd_1 = null; this.id_1 = 2; suspendResult = this.eqd_1.iqd_1(tryReceiveAll(this.eqd_1.jqd_1, this.eqd_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EventCollator2$receiveEvent$slambda).w1m = function ($this$launch, completion) { var i = new EventCollator2$receiveEvent$slambda(this.eqd_1, completion); i.fqd_1 = $this$launch; return i; }; function EventCollator2$receiveEvent$slambda_0(this$0, resultContinuation) { var i = new EventCollator2$receiveEvent$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function EventCollator2(maxWaitTime, coroutineScope, capacity, onBufferOverflow, onCollate) { this.gqd_1 = maxWaitTime; this.hqd_1 = coroutineScope; this.iqd_1 = onCollate; this.jqd_1 = Channel(capacity, onBufferOverflow); this.kqd_1 = null; } protoOf(EventCollator2).t6x = function (event) { this.jqd_1.x19(event); if (this.kqd_1 == null) { var tmp = this; tmp.kqd_1 = launch(this.hqd_1, VOID, VOID, EventCollator2$receiveEvent$slambda_0(this, null)); } }; function ExceptionWithStringResource() { } function Companion_88() { Companion_instance_136 = this; this.lqd_1 = -1; this.mqd_1 = new MessageIdOption2(strings_getInstance().bml_1, this.lqd_1); } var Companion_instance_136; function Companion_getInstance_106() { if (Companion_instance_136 == null) new Companion_88(); return Companion_instance_136; } function MessageIdOption2(stringResource, value) { Companion_getInstance_106(); this.jq8_1 = stringResource; this.kq8_1 = value; } protoOf(MessageIdOption2).toString = function () { return 'MessageIdOption2(stringResource=' + this.jq8_1 + ', value=' + this.kq8_1 + ')'; }; protoOf(MessageIdOption2).hashCode = function () { var result = this.jq8_1.hashCode(); result = imul(result, 31) + this.kq8_1 | 0; return result; }; protoOf(MessageIdOption2).equals = function (other) { if (this === other) return true; if (!(other instanceof MessageIdOption2)) return false; var tmp0_other_with_cast = other instanceof MessageIdOption2 ? other : THROW_CCE(); if (!this.jq8_1.equals(tmp0_other_with_cast.jq8_1)) return false; if (!(this.kq8_1 === tmp0_other_with_cast.kq8_1)) return false; return true; }; function get_MS_PER_HOUR() { return MS_PER_HOUR; } var MS_PER_HOUR; function get_MS_PER_MIN() { return MS_PER_MIN; } var MS_PER_MIN; function SortOrderOption(fieldMessageId, flag, order) { this.nqd_1 = fieldMessageId; this.oqd_1 = flag; this.pqd_1 = order; } protoOf(SortOrderOption).toString = function () { return 'SortOrderOption(fieldMessageId=' + this.nqd_1 + ', flag=' + this.oqd_1 + ', order=' + this.pqd_1 + ')'; }; protoOf(SortOrderOption).hashCode = function () { var result = this.nqd_1.hashCode(); result = imul(result, 31) + this.oqd_1 | 0; result = imul(result, 31) + (this.pqd_1 == null ? 0 : getBooleanHashCode(this.pqd_1)) | 0; return result; }; protoOf(SortOrderOption).equals = function (other) { if (this === other) return true; if (!(other instanceof SortOrderOption)) return false; var tmp0_other_with_cast = other instanceof SortOrderOption ? other : THROW_CCE(); if (!this.nqd_1.equals(tmp0_other_with_cast.nqd_1)) return false; if (!(this.oqd_1 === tmp0_other_with_cast.oqd_1)) return false; if (!(this.pqd_1 == tmp0_other_with_cast.pqd_1)) return false; return true; }; function splitString($this, str, splitChar) { var numParts = countChar($this, str, splitChar); // Inline function 'kotlin.arrayOfNulls' call var size = numParts + 1 | 0; var splitStr = fillArrayVal(Array(size), null); var buffer = StringBuilder_init_$Create$(); var partCounter = 0; var currentChar; var inductionVariable = 0; var last = str.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; currentChar = charSequenceGet(str, i); if (currentChar === splitChar) { splitStr[partCounter] = buffer.toString(); partCounter = partCounter + 1 | 0; buffer = StringBuilder_init_$Create$(); } else { buffer.z5(currentChar); } } while (inductionVariable < last); splitStr[partCounter] = buffer.toString(); return splitStr; } function countChar($this, str, c) { var count = 0; var strLen = str.length; var inductionVariable = 0; if (inductionVariable < strLen) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (charSequenceGet(str, i) === c) { count = count + 1 | 0; } } while (inductionVariable < strLen); return count; } function isWhiteSpace($this, c) { return ((c === _Char___init__impl__6a9atx(32) ? true : c === _Char___init__impl__6a9atx(10)) ? true : c === _Char___init__impl__6a9atx(9)) ? true : c === _Char___init__impl__6a9atx(13); } function UMFileUtil() { UMFileUtil_instance = this; this.xp9_1 = _Char___init__impl__6a9atx(47); this.yp9_1 = 'file:///'; this.zp9_1 = new Long(1073741824, 0); this.apa_1 = new Long(1048576, 0); this.bpa_1 = new Long(1024, 0); } protoOf(UMFileUtil).upi = function (paths) { // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.UMFileUtil.joinPaths.' call // Inline function 'kotlin.collections.forEachIndexed' call var index = 0; var inductionVariable = 0; var last = paths.length; while (inductionVariable < last) { var item = paths[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.util.UMFileUtil.joinPaths..' call var tmp1 = index; index = tmp1 + 1 | 0; var tmp; if (tmp1 > 0) { tmp = removePrefix(item, '/'); } else { tmp = item; } this_0.y5(tmp); if (tmp1 < (paths.length - 1 | 0) ? !endsWith(item, '/') : false) { this_0.z5(_Char___init__impl__6a9atx(47)); } } return this_0.toString(); }; protoOf(UMFileUtil).cpa = function (baseLink, link) { var base = baseLink; // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call var linkLower = link.toLowerCase(); var charFoundIndex; charFoundIndex = indexOf_0(linkLower, '://'); if (!(charFoundIndex === -1)) { var isAllChars = true; var cc; var inductionVariable = 0; var last = charFoundIndex; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; cc = charSequenceGet(linkLower, i); isAllChars = !!(isAllChars & (((((Char__compareTo_impl_ypi4mb(cc, _Char___init__impl__6a9atx(97)) > 0 ? Char__compareTo_impl_ypi4mb(cc, _Char___init__impl__6a9atx(122)) < 0 : false) ? true : Char__compareTo_impl_ypi4mb(cc, _Char___init__impl__6a9atx(48)) > 0 ? Char__compareTo_impl_ypi4mb(cc, _Char___init__impl__6a9atx(57)) < 0 : false) ? true : cc === _Char___init__impl__6a9atx(43)) ? true : cc === _Char___init__impl__6a9atx(46)) ? true : cc === _Char___init__impl__6a9atx(45))); } while (inductionVariable < last); if (isAllChars) { return link; } } if (startsWith(link, 'data:')) { return link; } if ((link.length > 2 ? charSequenceGet(link, 0) === _Char___init__impl__6a9atx(47) : false) ? charSequenceGet(link, 1) === _Char___init__impl__6a9atx(47) : false) { // Inline function 'kotlin.text.substring' call var this_0 = base; var endIndex = indexOf(base, _Char___init__impl__6a9atx(58)) + 1 | 0; // Inline function 'kotlin.js.asDynamic' call return this_0.substring(0, endIndex) + link; } if (link.length > 1 ? charSequenceGet(link, 0) === _Char___init__impl__6a9atx(47) : false) { var serverStartPos = indexOf_0(base, '://') + 3 | 0; var serverFinishPos = indexOf(base, _Char___init__impl__6a9atx(47), serverStartPos + 1 | 0); // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call return base.substring(0, serverFinishPos) + link; } charFoundIndex = indexOf(base, _Char___init__impl__6a9atx(63)); if (!(charFoundIndex === -1)) { // Inline function 'kotlin.text.substring' call var this_1 = base; var endIndex_0 = charFoundIndex; // Inline function 'kotlin.js.asDynamic' call base = this_1.substring(0, endIndex_0); } charFoundIndex = lastIndexOf(base, _Char___init__impl__6a9atx(47)); if (charFoundIndex === -1) { return link; } // Inline function 'kotlin.text.substring' call var this_2 = base; var endIndex_1 = charFoundIndex; // Inline function 'kotlin.js.asDynamic' call base = this_2.substring(0, endIndex_1); var baseParts = splitString(this, base, _Char___init__impl__6a9atx(47)); var linkParts = splitString(this, link, _Char___init__impl__6a9atx(47)); // Inline function 'kotlin.collections.mutableListOf' call var resultVector = ArrayList_init_$Create$(); var inductionVariable_0 = 0; var last_0 = baseParts.length - 1 | 0; if (inductionVariable_0 <= last_0) do { var i_0 = inductionVariable_0; inductionVariable_0 = inductionVariable_0 + 1 | 0; resultVector.i1(ensureNotNull(baseParts[i_0])); } while (inductionVariable_0 <= last_0); var inductionVariable_1 = 0; var last_1 = linkParts.length - 1 | 0; if (inductionVariable_1 <= last_1) $l$loop: do { var i_1 = inductionVariable_1; inductionVariable_1 = inductionVariable_1 + 1 | 0; if (linkParts[i_1] === '.') { continue $l$loop; } if (linkParts[i_1] === '..') { resultVector.s1(resultVector.u() - 1 | 0); } else { resultVector.i1(ensureNotNull(linkParts[i_1])); } } while (inductionVariable_1 <= last_1); var resultSB = StringBuilder_init_$Create$(); var numElements = resultVector.u(); var inductionVariable_2 = 0; if (inductionVariable_2 < numElements) do { var i_2 = inductionVariable_2; inductionVariable_2 = inductionVariable_2 + 1 | 0; // Inline function 'kotlin.collections.elementAt' call var tmp$ret$11 = resultVector.v(i_2); resultSB.y5(tmp$ret$11); if (i_2 < (numElements - 1 | 0)) { resultSB.z5(_Char___init__impl__6a9atx(47)); } } while (inductionVariable_2 < numElements); return resultSB.toString(); }; protoOf(UMFileUtil).qqd = function (str, deliminator) { var paramName = null; var params = HashMap_init_$Create$(); var inQuotes = false; var strLen = str.length; var sb = StringBuilder_init_$Create$(); var c; var lastChar = _Char___init__impl__6a9atx(0); var inductionVariable = 0; if (inductionVariable < strLen) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; c = charSequenceGet(str, i); if (c === _Char___init__impl__6a9atx(34)) { if (!inQuotes) { inQuotes = true; } else if (inQuotes ? !(lastChar === _Char___init__impl__6a9atx(92)) : false) { inQuotes = false; } } if (!((isWhiteSpace(this, c) ? !inQuotes : false) ? true : c === _Char___init__impl__6a9atx(34) ? i < (strLen - 1 | 0) : false)) if (c === deliminator ? true : i === (strLen - 1 | 0)) { if (i === (strLen - 1 | 0) ? !(c === _Char___init__impl__6a9atx(34)) : false) { sb.z5(c); } if (!(paramName == null)) { // Inline function 'kotlin.collections.set' call var key = paramName; var value = sb.toString(); params.s(key, value); } else { // Inline function 'kotlin.collections.set' call var key_0 = sb.toString(); params.s(key_0, ''); } sb = StringBuilder_init_$Create$(); paramName = null; } else if (c === _Char___init__impl__6a9atx(61)) { paramName = sb.toString(); sb = StringBuilder_init_$Create$(); } else { sb.z5(c); } lastChar = c; } while (inductionVariable < strLen); return params; }; protoOf(UMFileUtil).parseURLQueryString = function (urlQuery) { var retVal = urlQuery; var queryPos = indexOf(retVal, _Char___init__impl__6a9atx(63)); if (!(queryPos === -1)) { // Inline function 'kotlin.text.substring' call var this_0 = retVal; var startIndex = queryPos + 1 | 0; // Inline function 'kotlin.js.asDynamic' call retVal = this_0.substring(startIndex); } var parsedParams = this.qqd(retVal, _Char___init__impl__6a9atx(38)); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(parsedParams.u()); // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = parsedParams.q2().w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.UMFileUtil.parseURLQueryString.' call var tmp$ret$3 = to(Companion_instance_258.rqd(item.s2()), Companion_instance_258.rqd(item.t2())); destination.i1(tmp$ret$3); } return toMap(destination); }; protoOf(UMFileUtil).mapToQueryString = function (ht) { var sb = StringBuilder_init_$Create$(); if (ht.c1()) { return ''; } var keys = ht.o2().w(); var key; var firstEl = true; while (keys.f()) { if (!firstEl) { sb.z5(_Char___init__impl__6a9atx(38)); } else { firstEl = false; } key = keys.e(); sb.y5(Companion_instance_258.sqd(key)).z5(_Char___init__impl__6a9atx(61)); var tmp = Companion_instance_258; var tmp_0 = ht.q(key); sb.y5(tmp.sqd((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE())); } return sb.toString(); }; protoOf(UMFileUtil).tqd = function (fileSize) { var unit; var factor; if (fileSize.c7(new Long(1073741824, 0)) > 0) { factor = new Long(1073741824, 0); unit = 'GB'; } else if (fileSize.c7(new Long(1048576, 0)) > 0) { factor = new Long(1048576, 0); unit = 'MB'; } else if (fileSize.c7(new Long(1024, 0)) > 0) { factor = new Long(1024, 0); unit = 'kB'; } else { factor = new Long(1, 0); unit = 'bytes'; } var unitSize = fileSize.a7() / factor.a7(); unitSize = round(unitSize * 100) / 100.0; return '' + unitSize + ' ' + unit; }; protoOf(UMFileUtil).uqd = function (fileSize) { var fileSizeMb = roundTo(fileSize.ad() / 1048576, 2); return '' + fileSizeMb + ' MB'; }; var UMFileUtil_instance; function UMFileUtil_getInstance() { if (UMFileUtil_instance == null) new UMFileUtil(); return UMFileUtil_instance; } function Companion_89() { this.vqd_1 = '/#/'; } protoOf(Companion_89).wqd = function (url, divider) { var dividerIndex = indexOf_0(url, divider); if (dividerIndex === -1) throw IllegalArgumentException_init_$Create$('Not a valid UstadUrl: ' + url); // Inline function 'kotlin.text.substring' call var endIndex = dividerIndex + 1 | 0; // Inline function 'kotlin.js.asDynamic' call var tmp$ret$1 = url.substring(0, endIndex); var endpoint = removeSuffix(tmp$ret$1, 'umapp/'); var queryIndex = indexOf_0(url, '?', dividerIndex); var viewName; var queryString; if (queryIndex === -1 ? true : queryIndex === (url.length - 1 | 0)) { // Inline function 'kotlin.text.substring' call var startIndex = dividerIndex + divider.length | 0; // Inline function 'kotlin.js.asDynamic' call var tmp$ret$3 = url.substring(startIndex); viewName = removeSuffix(tmp$ret$3, '?'); queryString = ''; } else { // Inline function 'kotlin.text.substring' call var startIndex_0 = dividerIndex + divider.length | 0; // Inline function 'kotlin.js.asDynamic' call viewName = url.substring(startIndex_0, queryIndex); // Inline function 'kotlin.text.substring' call var startIndex_1 = queryIndex + 1 | 0; // Inline function 'kotlin.js.asDynamic' call queryString = url.substring(startIndex_1); } return new UstadUrlComponents(endpoint, viewName, queryString); }; protoOf(Companion_89).xqd = function (url, divider, $super) { divider = divider === VOID ? '/#/' : divider; return $super === VOID ? this.wqd(url, divider) : $super.wqd.call(this, url, divider); }; var Companion_instance_137; function Companion_getInstance_107() { return Companion_instance_137; } function UstadUrlComponents$arguments$delegate$lambda(this$0) { return function () { var parsedParams = UMFileUtil_getInstance().qqd(this$0.tom_1, _Char___init__impl__6a9atx(38)); // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(parsedParams.u()); // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = parsedParams.q2().w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.UstadUrlComponents.arguments$delegate..' call var tmp$ret$1 = to(Companion_instance_258.rqd(item.s2()), Companion_instance_258.rqd(item.t2())); destination.i1(tmp$ret$1); } return toMap(destination); }; } function UstadUrlComponents$viewUri$delegate$lambda(this$0) { return function () { var tmp; // Inline function 'kotlin.text.isEmpty' call var this_0 = this$0.tom_1; if (charSequenceLength(this_0) === 0) { tmp = this$0.som_1; } else { tmp = this$0.som_1 + '?' + this$0.tom_1; } return tmp; }; } function UstadUrlComponents(learningSpace, viewName, queryString) { this.rom_1 = learningSpace; this.som_1 = viewName; this.tom_1 = queryString; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.uom_1 = lazy(tmp_0, UstadUrlComponents$arguments$delegate$lambda(this)); var tmp_1 = this; tmp_1.vom_1 = lazy_0(UstadUrlComponents$viewUri$delegate$lambda(this)); } protoOf(UstadUrlComponents).yqd = function () { // Inline function 'kotlin.getValue' call var this_0 = this.vom_1; viewUri$factory(); return this_0.t2(); }; protoOf(UstadUrlComponents).zqd = function (divider) { return UMFileUtil_getInstance().upi([this.rom_1, divider, this.yqd()]); }; protoOf(UstadUrlComponents).wom = function (divider, $super) { var tmp; if (divider === VOID) { Companion_getInstance_97(); tmp = '/umapp/#/'; } else { tmp = divider; } divider = tmp; return $super === VOID ? this.zqd(divider) : $super.zqd.call(this, divider); }; protoOf(UstadUrlComponents).toString = function () { return 'UstadUrlComponents(learningSpace=' + this.rom_1 + ', viewName=' + this.som_1 + ', queryString=' + this.tom_1 + ')'; }; protoOf(UstadUrlComponents).hashCode = function () { var result = getStringHashCode(this.rom_1); result = imul(result, 31) + getStringHashCode(this.som_1) | 0; result = imul(result, 31) + getStringHashCode(this.tom_1) | 0; return result; }; protoOf(UstadUrlComponents).equals = function (other) { if (this === other) return true; if (!(other instanceof UstadUrlComponents)) return false; var tmp0_other_with_cast = other instanceof UstadUrlComponents ? other : THROW_CCE(); if (!(this.rom_1 === tmp0_other_with_cast.rom_1)) return false; if (!(this.som_1 === tmp0_other_with_cast.som_1)) return false; if (!(this.tom_1 === tmp0_other_with_cast.tom_1)) return false; return true; }; function viewUri$factory() { return getPropertyCallableRef('viewUri', 1, KProperty1, function (receiver) { return receiver.yqd(); }, null); } function roundTo(_this__u8e3s4, decimalPlaces) { decimalPlaces = decimalPlaces === VOID ? 0 : decimalPlaces; // Inline function 'kotlin.math.pow' call var factor = Math.pow(10.0, decimalPlaces); return roundToInt(_this__u8e3s4 * factor) / factor; } function toDisplayString(_this__u8e3s4, decimalPlaces) { decimalPlaces = decimalPlaces === VOID ? 2 : decimalPlaces; var strVal = _this__u8e3s4.toString(); var tmp; // Inline function 'kotlin.math.round' call if (round(_this__u8e3s4) === _this__u8e3s4) { tmp = substringBefore(strVal, _Char___init__impl__6a9atx(46)); } else { tmp = removeSuffix(roundTo(_this__u8e3s4, decimalPlaces).toString(), '0'); } return tmp; } function paramSubtitles(_this__u8e3s4, json) { var tmp0_safe_receiver = paramMap(_this__u8e3s4, json); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = tmp0_safe_receiver.q('subtitles'); } var tmp1_safe_receiver = tmp; var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.paramSubtitles.' call tmp_0 = json.t45(ListSerializer(Companion_instance_79.o4r()), tmp1_safe_receiver); } return tmp_0; } function paramMap(_this__u8e3s4, json) { var tmp0_safe_receiver = _this__u8e3s4.fbd_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.paramMap.' call tmp = json.t45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), tmp0_safe_receiver); } return tmp; } function penaltyPercentage(_this__u8e3s4) { // Inline function 'kotlin.math.roundToInt' call var this_0 = _this__u8e3s4.obw_1 * 100 / (_this__u8e3s4.mbw_1 + _this__u8e3s4.obw_1); return roundToInt(this_0); } function textLength(_this__u8e3s4, limitType) { var tmp; if (limitType === 1) { var tmp0_safe_receiver = _this__u8e3s4.pc2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : countWords(tmp1_safe_receiver); tmp = tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs; } else { if (limitType === 2) { var tmp3_safe_receiver = _this__u8e3s4.pc2_1; var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : htmlToPlainText(tmp3_safe_receiver); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.length; tmp = tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs; } else { tmp = null; } } return tmp; } function lastPossibleSubmissionTime(_this__u8e3s4) { if (isDateSet(_this__u8e3s4.e7y_1) ? _this__u8e3s4.e7y_1.c7(_this__u8e3s4.c7y_1) > 0 : false) return _this__u8e3s4.e7y_1; else return _this__u8e3s4.c7y_1; } function maxScoreSummedIfModule(_this__u8e3s4, allBlocks) { var tmp = _this__u8e3s4.v7x_1; if (!(tmp === 100)) return _this__u8e3s4.f7y_1; var totalModPoints = 0.0; var numModBlocks = 0; // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = allBlocks.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.maxScoreSummedIfModule.' call if (element.x7x_1.equals(_this__u8e3s4.u7x_1)) { numModBlocks = numModBlocks + 1 | 0; var tmp_0 = totalModPoints; var tmp1_elvis_lhs = element.f7y_1; totalModPoints = tmp_0 + (tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs); } } return (numModBlocks > 0 ? totalModPoints > 0.0 : false) ? totalModPoints : null; } function toTerminologyEntries(_this__u8e3s4, json, systemImpl) { var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.p8g_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.toTerminologyEntries.' call tmp = decodeStringMapFromString(json, tmp1_safe_receiver); } var tmp2_elvis_lhs = tmp; var tmp_0; if (tmp2_elvis_lhs == null) { // Inline function 'kotlin.collections.mapOf' call tmp_0 = emptyMap(); } else { tmp_0 = tmp2_elvis_lhs; } var termMap = tmp_0; // Inline function 'kotlin.collections.map' call var this_0 = TerminologyKeys_getInstance().zoh_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(this_0.u()); // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = this_0.q2().w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.toTerminologyEntries.' call var tmp_1 = item.s2(); var tmp_2 = item.t2(); var tmp1_elvis_lhs = termMap.q(item.s2()); var tmp_3; if (tmp1_elvis_lhs == null) { tmp_3 = systemImpl == null ? null : systemImpl.soj(item.t2()); } else { tmp_3 = tmp1_elvis_lhs; } var tmp$ret$4 = new TerminologyEntry(tmp_1, tmp_2, tmp_3); destination.i1(tmp$ret$4); } return destination; } function encodeToStringMap(_this__u8e3s4, json) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10)); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.encodeToStringMap.' call var tmp0_elvis_lhs = item.mq9_1; var tmp$ret$0 = to(item.kq9_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); destination.i1(tmp$ret$0); } return encodeStringMapToString(json, toMap(destination)); } function onActiveLearningSpace(_this__u8e3s4) { // Inline function 'org.kodein.di.on' call // Inline function 'org.kodein.di.instance' call var tmp = get_direct(_this__u8e3s4).g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var context = tmp.e58(tmp$ret$0, null).roa(); var trigger = _this__u8e3s4.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_1 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp$ret$3 = tmp_1.i57(tmp$ret$2, context); return On(_this__u8e3s4, tmp$ret$3, trigger); } function get_dayStringResource(_this__u8e3s4) { switch (_this__u8e3s4.za_1) { case 0: return strings_getInstance().emx_1; case 1: return strings_getInstance().fmx_1; case 2: return strings_getInstance().gmx_1; case 3: return strings_getInstance().hmx_1; case 4: return strings_getInstance().imx_1; case 5: return strings_getInstance().jmx_1; case 6: return strings_getInstance().dmx_1; default: return strings_getInstance().omi_1; } } function stringResourceOrMessage(_this__u8e3s4, systemImpl) { var tmp0_safe_receiver = isInterface(_this__u8e3s4, ExceptionWithStringResource) ? _this__u8e3s4 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kpf(); var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.stringResourceOrMessage.' call tmp = systemImpl.soj(tmp1_safe_receiver); } var tmp3_elvis_lhs = tmp; var tmp_0; if (tmp3_elvis_lhs == null) { var tmp_1 = systemImpl.soj(strings_getInstance().xmi_1); var tmp2_elvis_lhs = _this__u8e3s4.message; tmp_0 = tmp_1 + ': ' + (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); } else { tmp_0 = tmp3_elvis_lhs; } return tmp_0; } function verifySite(_this__u8e3s4, endpointUrl, timeout, json, $completion) { timeout = timeout === VOID ? new Long(30000, 0) : timeout; var tmp = new $verifySiteCOROUTINE$51(_this__u8e3s4, endpointUrl, timeout, json, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function verifySite$lambda($timeout) { return function ($this$timeout) { $this$timeout.z3s($timeout); return Unit_instance; }; } function $verifySiteCOROUTINE$51(_this__u8e3s4, endpointUrl, timeout, json, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.iqe_1 = _this__u8e3s4; this.jqe_1 = endpointUrl; this.kqe_1 = timeout; this.lqe_1 = json; } protoOf($verifySiteCOROUTINE$51).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.mqe_1 = UMFileUtil_getInstance().upi([this.jqe_1, 'Site', 'verify']); var tmp_0 = this; tmp_0.nqe_1 = this.iqe_1; var tmp_1 = this; tmp_1.oqe_1 = this.mqe_1; var tmp_2 = this; tmp_2.pqe_1 = this.nqe_1; var tmp_3 = this; tmp_3.qqe_1 = this.pqe_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.oqe_1); header(this_0, 'cache-control', 'no-cache'); timeout(this_0, verifySite$lambda(this.kqe_1)); tmp_4.rqe_1 = this_0; this.rqe_1.x38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.sqe_1 = this.qqe_1; var tmp_6 = this; tmp_6.tqe_1 = this.rqe_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.tqe_1, this.sqe_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uqe_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsText(this.uqe_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var responseStr = suspendResult; return this.lqe_1.t45(Companion_getInstance_7().o4r(), responseStr); case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function toMap_1(_this__u8e3s4) { var tmp; if (_this__u8e3s4 instanceof MapStringValues) { tmp = _this__u8e3s4.vqe_1; } else { // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.p2n(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.toMap.' call var tmp$ret$0 = to(item, _this__u8e3s4.o2n(item)); destination.i1(tmp$ret$0); } tmp = toMap(destination); } return tmp; } function toLocalMidnight(_this__u8e3s4, timeZoneId) { return toLocalMidnight_0(_this__u8e3s4, Companion_getInstance_10().cmh(timeZoneId)); } function toLocalEndOfDay(_this__u8e3s4, timeZoneId) { return toLocalEndOfDay_0(_this__u8e3s4, Companion_getInstance_10().cmh(timeZoneId)); } function isDateOfBirthAnAdult(_this__u8e3s4) { return ageInYears(_this__u8e3s4) >= UstadMobileConstants_getInstance().uq4_1; } function isDateOfBirthAMinor(_this__u8e3s4) { return ageInYears(_this__u8e3s4) < UstadMobileConstants_getInstance().tq4_1; } function toLocalMidnight_0(_this__u8e3s4, timeZone) { return toInstant(toLocalMidnight_1(toLocalDateTime(_this__u8e3s4, timeZone)), timeZone); } function toLocalEndOfDay_0(_this__u8e3s4, timeZone) { return toInstant(toLocalEndOfDay_1(toLocalDateTime(_this__u8e3s4, timeZone)), timeZone); } function ageInYears(_this__u8e3s4) { return periodUntil(_this__u8e3s4, System_instance.fme(), Companion_getInstance_10().bmh_1).nme(); } function hasFlag(_this__u8e3s4, flag) { return (_this__u8e3s4 & flag) === flag; } function decodeStringMapFromString(_this__u8e3s4, string) { return _this__u8e3s4.t45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), string); } function encodeStringMapToString(_this__u8e3s4, stringMap) { return _this__u8e3s4.s45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), stringMap); } function decodeListOrSingleObjectAsList(_this__u8e3s4, serializer, element) { var tmp; if (element instanceof JsonArray) { tmp = _this__u8e3s4.p4p(ListSerializer(serializer), element); } else { if (element instanceof JsonObject) { tmp = listOf_0(_this__u8e3s4.p4p(serializer, element)); } else { tmp = null; } } return tmp; } function replaceOrAppend(_this__u8e3s4, element, replacePredicate) { var tmp$ret$0; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); if (replacePredicate(item)) { tmp$ret$0 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$0 = -1; } var replaceIndex = tmp$ret$0; var tmp; if (replaceIndex >= 0) { // Inline function 'kotlin.also' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.replaceOrAppend.' call this_0.f1(replaceIndex, element); tmp = toList(this_0); } else { tmp = plus_1(_this__u8e3s4, element); } return tmp; } function findKeysNotInOtherList(_this__u8e3s4, otherList, key) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(otherList, 10)); var tmp0_iterator = otherList.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(key(item)); } var otherListKeys = destination; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10)); var tmp0_iterator_0 = _this__u8e3s4.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); destination_0.i1(key(item_0)); } var thisListKeys = destination_0; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = thisListKeys.w(); while (tmp0_iterator_1.f()) { var element = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.util.ext.findKeysNotInOtherList.' call if (!otherListKeys.a1(element)) { destination_1.i1(element); } } return destination_1; } function replace_0(_this__u8e3s4, element, replacePredicate) { var tmp$ret$0; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); if (replacePredicate(item)) { tmp$ret$0 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$0 = -1; } var replaceIndex = tmp$ret$0; if (replaceIndex === -1) throw IllegalArgumentException_init_$Create$('element to replace not found'); // Inline function 'kotlin.also' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.replace.' call this_0.f1(replaceIndex, element); return toList(this_0); } function trimToSize(_this__u8e3s4, maxSize) { var tmp; if (_this__u8e3s4.u() > maxSize) { tmp = _this__u8e3s4.z(0, maxSize); } else { tmp = _this__u8e3s4; } return tmp; } function toggle(_this__u8e3s4, item) { var indexOfItem = _this__u8e3s4.x(item); var tmp; if (indexOfItem < 0) { tmp = plus_1(_this__u8e3s4, item); } else { // Inline function 'kotlin.also' call var this_0 = toMutableList(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.toggle.' call this_0.s1(indexOfItem); tmp = toList(this_0); } return tmp; } function toEmptyIfNull(_this__u8e3s4) { return _this__u8e3s4 == null ? emptyList() : _this__u8e3s4; } function filterByFlags(_this__u8e3s4, value) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.filterByFlags.' call if (hasFlag_0(value, element.x6_1)) { destination.i1(element); } } return destination; } function toLocalMidnight_1(_this__u8e3s4) { return LocalDateTime_init_$Create$(_this__u8e3s4.zmh(), LocalTime_init_$Create$(0, 0, 0)); } function toLocalEndOfDay_1(_this__u8e3s4) { return LocalDateTime_init_$Create$(_this__u8e3s4.zmh(), LocalTime_init_$Create$(23, 59, 59)); } function chopOffSeconds(_this__u8e3s4) { if (_this__u8e3s4.xmh() > 0 ? true : _this__u8e3s4.ymh() > 0) { return LocalDateTime_init_$Create$(_this__u8e3s4.zmh(), LocalTime_init_$Create$(_this__u8e3s4.vmh(), _this__u8e3s4.wmh())); } else { return _this__u8e3s4; } } function chopOffSeconds_0(_this__u8e3s4) { if (_this__u8e3s4.xmh() > 0 ? true : _this__u8e3s4.ymh() > 0) return LocalTime_init_$Create$(_this__u8e3s4.vmh(), _this__u8e3s4.wmh()); else return _this__u8e3s4; } function hasFlag_0(_this__u8e3s4, flag) { return _this__u8e3s4.uc(flag).equals(flag); } function toggleFlag(_this__u8e3s4, flag) { var tmp; if (hasFlag_0(_this__u8e3s4, flag)) { tmp = _this__u8e3s4.uc(flag.qc()); } else { tmp = _this__u8e3s4.vc(flag); } return tmp; } function isDateSet(_this__u8e3s4) { return (!(_this__u8e3s4 == null) ? _this__u8e3s4.c7(new Long(0, 0)) > 0 : false) ? _this__u8e3s4.c7(new Long(-376330240, 1689)) < 0 : false; } function get_UNSET_DISTANT_FUTURE() { return UNSET_DISTANT_FUTURE; } var UNSET_DISTANT_FUTURE; function toByteArray(_this__u8e3s4) { var buffer = new Int8Array(8); var temp = _this__u8e3s4; var inductionVariable = 0; if (inductionVariable < 8) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; buffer[7 - i | 0] = temp.uc(new Long(255, 0)).xc(); temp = temp.sc(8); } while (inductionVariable < 8); return buffer; } function hasOnlyOneBitSet(_this__u8e3s4) { var tmp; if (!_this__u8e3s4.equals(new Long(0, 0))) { // Inline function 'kotlin.Long.minus' call var tmp$ret$0 = _this__u8e3s4.mc(toLong(1)); tmp = _this__u8e3s4.uc(tmp$ret$0).equals(new Long(0, 0)); } else { tmp = false; } return tmp; } function putFromSavedStateIfPresent(_this__u8e3s4, savedState, key) { var tmp0_safe_receiver = savedState.ba(key); if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.putFromSavedStateIfPresent.' call _this__u8e3s4.s(key, tmp0_safe_receiver); } } function toQueryString(_this__u8e3s4) { // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.q2(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.toQueryString.' call var tmp$ret$0 = Companion_instance_258.sqd(item.s2()) + '=' + Companion_instance_258.sqd(item.t2()); destination.i1(tmp$ret$0); } return joinToString(destination, '&'); } function whenSubscribed(_this__u8e3s4, block, $completion) { // Inline function 'kotlinx.coroutines.flow.map' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = _this__u8e3s4.o1h(); // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call var tmp$ret$2 = new _no_name_provided__qut3iv_1(this_0); var tmp = distinctUntilChanged(tmp$ret$2); return collectLatest(tmp, whenSubscribed$slambda_0(block, null), $completion); } function sam$kotlinx_coroutines_flow_FlowCollector$0_2(function_0) { this.wqe_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).u1d = function (value, $completion) { return this.wqe_1(value, $completion); }; function whenSubscribed$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.fqf_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$o$collect$slambda).j1i = function (value, $completion) { var tmp = this.k1i(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(whenSubscribed$o$collect$slambda).ie = function (p1, $completion) { return this.j1i((!(p1 == null) ? typeof p1 === 'number' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(whenSubscribed$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.hqf_1 = this.fqf_1; var tmp_1 = this; tmp_1.iqf_1 = this.gqf_1; this.id_1 = 1; var it = this.iqf_1; suspendResult = this.hqf_1.u1d(it > 0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(whenSubscribed$o$collect$slambda).k1i = function (value, completion) { var i = new whenSubscribed$o$collect$slambda(this.fqf_1, completion); i.gqf_1 = value; return i; }; function whenSubscribed$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) { var i = new whenSubscribed$o$collect$slambda($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.j1i(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$52(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rqf_1 = _this__u8e3s4; this.sqf_1 = collector; } protoOf($collectCOROUTINE$52).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.tqf_1 = this.sqf_1; this.id_1 = 1; var tmp_1 = whenSubscribed$o$collect$slambda_0(this.tqf_1, null); suspendResult = this.rqf_1.uqf_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function _no_name_provided__qut3iv_1($this) { this.uqf_1 = $this; } protoOf(_no_name_provided__qut3iv_1).vqf = function (collector, $completion) { var tmp = new $collectCOROUTINE$52(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_1).b1c = function (collector, $completion) { return this.vqf(collector, $completion); }; function whenSubscribed$slambda($block, resultContinuation) { this.eqg_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$slambda).gqg = function (active, $completion) { var tmp = this.hqg(active, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(whenSubscribed$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(whenSubscribed$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (this.fqg_1) { this.id_1 = 1; suspendResult = this.eqg_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(whenSubscribed$slambda).hqg = function (active, completion) { var i = new whenSubscribed$slambda(this.eqg_1, completion); i.fqg_1 = active; return i; }; function whenSubscribed$slambda_0($block, resultContinuation) { var i = new whenSubscribed$slambda($block, resultContinuation); var l = function (active, $completion) { return i.gqg(active, $completion); }; l.$arity = 1; return l; } function navigateToLink(_this__u8e3s4, link, accountManager, openExternalLinkUseCase, goOptions, forceAccountSelection, userCanSelectServer, accountName, scope, linkTarget, dontSetCurrentSession, presetLearningSpaceUrl, checkRegistrationAllowedUseCase) { goOptions = goOptions === VOID ? Companion_getInstance_96().xq4_1 : goOptions; forceAccountSelection = forceAccountSelection === VOID ? false : forceAccountSelection; userCanSelectServer = userCanSelectServer === VOID ? true : userCanSelectServer; accountName = accountName === VOID ? null : accountName; scope = scope === VOID ? GlobalScope_instance : scope; linkTarget = linkTarget === VOID ? LinkTarget_DEFAULT_getInstance() : linkTarget; dontSetCurrentSession = dontSetCurrentSession === VOID ? false : dontSetCurrentSession; presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? null : presetLearningSpaceUrl; checkRegistrationAllowedUseCase = checkRegistrationAllowedUseCase === VOID ? null : checkRegistrationAllowedUseCase; var learningSpaceUrl = {_v: null}; var viewUri = {_v: null}; var tmp; if (startsWithHttpProtocol(link)) { tmp = contains(link, '/#/'); } else { tmp = false; } if (tmp) { var urlComponents = Companion_instance_137.xqd(link); learningSpaceUrl._v = urlComponents.rom_1; viewUri._v = urlComponents.yqd(); } else { if (!startsWithHttpProtocol(link)) { viewUri._v = link; } } if (presetLearningSpaceUrl == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.navigateToLink.' call learningSpaceUrl._v = presetLearningSpaceUrl; } var tmp_0; var tmp1_safe_receiver = viewUri._v; var tmp_1; if (tmp1_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = startsWith(tmp1_safe_receiver, 'ParentalConsentManagement'); } if (tmp_1 === true) { tmp_0 = minus(System_instance.fme(), UstadMobileConstants_getInstance().uq4_1, Companion_getInstance_11().qmf_1, Companion_getInstance_10().bmh_1).lmh(); } else { tmp_0 = new Long(0, 0); } var maxDateOfBirth = tmp_0; var tmp_2; if (viewUri._v == null ? true : (!userCanSelectServer ? !(learningSpaceUrl._v == null) : false) ? !(learningSpaceUrl._v === accountManager.roa().cnu_1) : false) { openExternalLinkUseCase.qpj(link, linkTarget); tmp_2 = null; } else { tmp_2 = launch(scope, VOID, VOID, navigateToLink$slambda_0(accountName, learningSpaceUrl, accountManager, dontSetCurrentSession, _this__u8e3s4, viewUri, goOptions, forceAccountSelection, maxDateOfBirth, checkRegistrationAllowedUseCase, null)); } return tmp_2; } function navigateToViewUri(_this__u8e3s4, viewUri, goOptions) { var questionIndex = indexOf(viewUri, _Char___init__impl__6a9atx(63)); var tmp; if (!(questionIndex === -1)) { // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call tmp = viewUri.substring(0, questionIndex); } else { tmp = viewUri; } var viewName = tmp; var tmp_0; if (questionIndex > 0) { var tmp_1 = UMFileUtil_getInstance(); // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$3 = viewUri.substring(questionIndex); tmp_0 = tmp_1.parseURLQueryString(tmp$ret$3); } else { tmp_0 = emptyMap(); } var args = tmp_0; _this__u8e3s4.gqa(viewName, args, goOptions); } function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(function_0) { this.iqg_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1).ao1 = function (endpointUrl) { return this.iqg_1(endpointUrl); }; function navigateToLink$slambda$lambda($learningSpaceUrl) { return function (filterUrl) { return filterUrl === $learningSpaceUrl._v; }; } function navigateToLink$slambda$lambda_0($learningSpaceUrl) { return function (it) { return it === $learningSpaceUrl._v; }; } function navigateToLink$slambda($accountName, $learningSpaceUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $checkRegistrationAllowedUseCase, resultContinuation) { this.rqg_1 = $accountName; this.sqg_1 = $learningSpaceUrl; this.tqg_1 = $accountManager; this.uqg_1 = $dontSetCurrentSession; this.vqg_1 = $this_navigateToLink; this.wqg_1 = $viewUri; this.xqg_1 = $goOptions; this.yqg_1 = $forceAccountSelection; this.zqg_1 = $maxDateOfBirth; this.aqh_1 = $checkRegistrationAllowedUseCase; CoroutineImpl.call(this, resultContinuation); } protoOf(navigateToLink$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(navigateToLink$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(navigateToLink$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 16; if (!(this.rqg_1 == null) ? !(this.sqg_1._v == null) : false) { this.id_1 = 9; continue $sm; } else { if ((!this.yqg_1 ? !isTemporary(this.tqg_1.aoa().tnu_1) : false) ? this.sqg_1._v == null ? true : this.tqg_1.roa().cnu_1 === this.sqg_1._v : false) { navigateToViewUri(this.vqg_1, this.wqg_1._v, this.xqg_1); this.id_1 = 15; continue $sm; } else { if (!(this.sqg_1._v == null)) { this.id_1 = 1; var tmp_0 = navigateToLink$slambda$lambda_0(this.sqg_1); suspendResult = this.tqg_1.soa(this.zqg_1, new sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.eqh_1 = false; this.id_1 = 2; continue $sm; } } } case 1: this.fqh_1 = suspendResult; this.eqh_1 = this.fqh_1 === 0; this.id_1 = 2; continue $sm; case 2: if (this.eqh_1) { this.dqh_1 = true; this.id_1 = 5; continue $sm; } else { if (this.sqg_1._v == null) { this.id_1 = 3; suspendResult = this.tqg_1.toa(this.zqg_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.gqh_1 = false; this.id_1 = 4; continue $sm; } } case 3: this.hqh_1 = suspendResult; this.gqh_1 = this.hqh_1 === 0; this.id_1 = 4; continue $sm; case 4: this.dqh_1 = this.gqh_1; this.id_1 = 5; continue $sm; case 5: if (this.dqh_1) { var tmp_1 = this; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_117(); this_0.s('next', this.wqg_1._v); Companion_getInstance_126(); this_0.s('noSessionChange', this.uqg_1.toString()); var tmp0_safe_receiver = this.sqg_1._v; if (tmp0_safe_receiver == null) null; else { Companion_getInstance_117(); this_0.s('learningSpaceUrl', tmp0_safe_receiver); } tmp_1.iqh_1 = this_0.f3(); this.jqh_1 = this.sqg_1._v; if (this.jqh_1 == null) { this.kqh_1 = null; this.id_1 = 8; continue $sm; } else { var tmp_2 = this; tmp_2.lqh_1 = this.jqh_1; var tmp_3 = this; tmp_3.mqh_1 = this.lqh_1; var tmp_4 = this; var tmp0_safe_receiver_0 = this.aqh_1; tmp_4.nqh_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0(new LearningSpace(this.mqh_1)); if (this.nqh_1 == null) { this.oqh_1 = null; this.id_1 = 7; continue $sm; } else { this.id_1 = 6; suspendResult = this.nqh_1.poi(this.wqg_1._v, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } else { var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_117(); this_1.s('next', this.wqg_1._v); Companion_getInstance_126(); this_1.s('noSessionChange', this.uqg_1.toString()); var tmp0_safe_receiver_1 = this.sqg_1._v; if (tmp0_safe_receiver_1 == null) null; else { this_1.s('filterByLearningSpace', tmp0_safe_receiver_1); } this_1.s('activeAccountMode', 'inlist'); Companion_getInstance_117(); this_1.s('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_117(); this_1.s('maxDob', this.zqg_1.toString()); var args = this_1.f3(); this.vqg_1.gqa('AccountList', toMap_0(args), this.xqg_1); this.id_1 = 15; continue $sm; } case 6: this.oqh_1 = suspendResult; this.id_1 = 7; continue $sm; case 7: this.kqh_1 = this.oqh_1; this.id_1 = 8; continue $sm; case 8: this.pqh_1 = this.kqh_1; var tmp_5; if (this.pqh_1 === false) { tmp_5 = 'Login'; } else { tmp_5 = 'AddAccountSelectNewOrExisting'; } this.vqg_1.tp6(tmp_5, this.iqh_1); this.id_1 = 15; continue $sm; case 9: this.id_1 = 10; var tmp_6 = navigateToLink$slambda$lambda(this.sqg_1); suspendResult = this.tqg_1.boa(new sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(tmp_6), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp0_iterator = suspendResult.w(); this.id_1 = 11; continue $sm; case 11: if (!tmp0_iterator.f()) { this.id_1 = 13; continue $sm; } var element = tmp0_iterator.e(); if (element.unu_1.h96_1 === substringBefore_0(this.rqg_1, '@')) { this.cqh_1 = element; this.id_1 = 14; continue $sm; } else { this.id_1 = 12; continue $sm; } case 12: this.id_1 = 11; continue $sm; case 13: this.cqh_1 = null; if (false) { this.id_1 = 9; continue $sm; } this.id_1 = 14; continue $sm; case 14: var session = this.cqh_1; if (!(session == null)) { var this_2 = this.tqg_1; var tmp_7; if (!this.uqg_1) { tmp_7 = this_2; } else { tmp_7 = null; } var tmp0_safe_receiver_2 = tmp_7; if (tmp0_safe_receiver_2 != null) { tmp0_safe_receiver_2.unx(session); } navigateToViewUri(this.vqg_1, this.wqg_1._v, this.xqg_1); } this.id_1 = 15; continue $sm; case 15: return Unit_instance; case 16: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 16) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(navigateToLink$slambda).w1m = function ($this$launch, completion) { var i = new navigateToLink$slambda(this.rqg_1, this.sqg_1, this.tqg_1, this.uqg_1, this.vqg_1, this.wqg_1, this.xqg_1, this.yqg_1, this.zqg_1, this.aqh_1, completion); i.bqh_1 = $this$launch; return i; }; function navigateToLink$slambda_0($accountName, $learningSpaceUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $checkRegistrationAllowedUseCase, resultContinuation) { var i = new navigateToLink$slambda($accountName, $learningSpaceUrl, $accountManager, $dontSetCurrentSession, $this_navigateToLink, $viewUri, $goOptions, $forceAccountSelection, $maxDateOfBirth, $checkRegistrationAllowedUseCase, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function isGuestUser(_this__u8e3s4) { return _this__u8e3s4.h96_1 == null; } function personFullName(_this__u8e3s4) { var tmp0_elvis_lhs = _this__u8e3s4.i96_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.j96_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); } function toUmAccount(_this__u8e3s4, endpointUrl) { return new UmAccount(_this__u8e3s4.g96_1, _this__u8e3s4.h96_1, '', endpointUrl, _this__u8e3s4.i96_1, _this__u8e3s4.j96_1); } function toXapiAgent(_this__u8e3s4, learningSpace) { var tmp = personFullName(_this__u8e3s4); var tmp0_elvis_lhs = _this__u8e3s4.h96_1; var tmp1_name = tmp0_elvis_lhs == null ? _this__u8e3s4.g96_1.toString() : tmp0_elvis_lhs; var tmp2_homePage = learningSpace.cnu_1; return new XapiAgent(tmp, VOID, VOID, VOID, VOID, new XapiAccount(tmp2_homePage, tmp1_name)); } function toggle_0(_this__u8e3s4, item) { var tmp; if (_this__u8e3s4.a1(item)) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.ext.toggle.' call if (!equals(element, item)) { destination.i1(element); } } tmp = toSet(destination); } else { // Inline function 'kotlin.apply' call var this_0 = toMutableSet(_this__u8e3s4); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.toggle.' call this_0.i1(item); tmp = toSet(this_0); } return tmp; } function toQueryLikeParam(_this__u8e3s4) { var tmp; // Inline function 'kotlin.text.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (_this__u8e3s4 == null ? true : charSequenceLength(_this__u8e3s4) === 0) { tmp = '%'; } else { tmp = '%' + _this__u8e3s4 + '%'; } return tmp; } function capitalizeFirstLetter(_this__u8e3s4) { // Inline function 'kotlin.text.replaceFirstChar' call var tmp; // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(_this__u8e3s4) > 0) { // Inline function 'com.ustadmobile.core.util.ext.capitalizeFirstLetter.' call var it = charSequenceGet(_this__u8e3s4, 0); var tmp$ret$1 = isLowerCase(it) ? titlecase(it) : toString_1(it); var tmp_0 = toString(tmp$ret$1); // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call tmp = tmp_0 + _this__u8e3s4.substring(1); } else { tmp = _this__u8e3s4; } return tmp; } function appendSelectedAccount(_this__u8e3s4, personUid, learningSpace) { Companion_getInstance_126(); var tmp = to('selectedAccountPersonUid', personUid.toString()); Companion_getInstance_126(); return appendQueryArgs(_this__u8e3s4, mapOf([tmp, to('selectedAccountEndpointUrl', learningSpace.cnu_1)])); } function appendQueryArgs(_this__u8e3s4, args) { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!args.c1()) { tmp = appendQueryArgs_0(_this__u8e3s4, toQueryString(args)); } else { tmp = _this__u8e3s4; } return tmp; } function appendQueryArgs_0(_this__u8e3s4, queryArgs) { var retVal = _this__u8e3s4; if (contains(_this__u8e3s4, '?')) retVal = retVal + '&'; else retVal = retVal + '?'; retVal = retVal + queryArgs; return retVal; } function countWords(_this__u8e3s4) { var lastCharWasWhitespace = true; var wordCount = 0; var inductionVariable = 0; var last = _this__u8e3s4.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; var thisCharWhitespace = isWhitespace(charSequenceGet(_this__u8e3s4, i)); if (!thisCharWhitespace ? lastCharWasWhitespace : false) { wordCount = wordCount + 1 | 0; } lastCharWasWhitespace = thisCharWhitespace; } while (inductionVariable < last); return wordCount; } function startsWithHttpProtocol(_this__u8e3s4) { // Inline function 'kotlin.let' call // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.startsWithHttpProtocol.' call var it = _this__u8e3s4.toLowerCase(); return startsWith(it, 'http://') ? true : startsWith(it, 'https://'); } function toNullIfBlank(_this__u8e3s4) { // Inline function 'kotlin.text.ifBlank' call var tmp; if (isBlank(_this__u8e3s4)) { // Inline function 'com.ustadmobile.core.util.ext.toNullIfBlank.' call tmp = null; } else { tmp = _this__u8e3s4; } return tmp; } function requirePostfix(_this__u8e3s4, postFix, ignoreCase) { ignoreCase = ignoreCase === VOID ? false : ignoreCase; return endsWith(_this__u8e3s4, postFix, ignoreCase) ? _this__u8e3s4 : _this__u8e3s4 + postFix; } function requireHttpPrefix(_this__u8e3s4, defaultProtocol) { defaultProtocol = defaultProtocol === VOID ? 'https' : defaultProtocol; return startsWithHttpProtocol(_this__u8e3s4) ? _this__u8e3s4 : defaultProtocol + '://' + _this__u8e3s4; } function trimExcessWhiteSpace(_this__u8e3s4) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.text.indexOfFirst' call var inductionVariable = 0; var last = charSequenceLength(_this__u8e3s4) - 1 | 0; if (inductionVariable <= last) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.util.ext.trimExcessWhiteSpace.' call var it = charSequenceGet(_this__u8e3s4, index); if (!isWhitespace(it)) { tmp$ret$1 = index; break $l$block; } } while (inductionVariable <= last); tmp$ret$1 = -1; } var firstNonWhiteSpace = tmp$ret$1; var tmp$ret$3; $l$block_0: { // Inline function 'kotlin.text.indexOfLast' call var inductionVariable_0 = charSequenceLength(_this__u8e3s4) - 1 | 0; if (0 <= inductionVariable_0) do { var index_0 = inductionVariable_0; inductionVariable_0 = inductionVariable_0 + -1 | 0; // Inline function 'com.ustadmobile.core.util.ext.trimExcessWhiteSpace.' call var it_0 = charSequenceGet(_this__u8e3s4, index_0); if (!isWhitespace(it_0)) { tmp$ret$3 = index_0; break $l$block_0; } } while (0 <= inductionVariable_0); tmp$ret$3 = -1; } var lastNonWhiteSpace = tmp$ret$3; // Inline function 'kotlin.math.max' call var b = firstNonWhiteSpace - 1 | 0; var startPos = Math.max(0, b); // Inline function 'kotlin.math.min' call var a = _this__u8e3s4.length; var b_0 = lastNonWhiteSpace + 2 | 0; var endPos = Math.min(a, b_0); var tmp; if (!(startPos === 0) ? true : !(endPos === _this__u8e3s4.length)) { // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call tmp = _this__u8e3s4.substring(startPos, endPos); } else { tmp = _this__u8e3s4; } return tmp; } function initial(_this__u8e3s4) { var tmp0_safe_receiver = firstNonWhiteSpaceChar(_this__u8e3s4); var tmp; var tmp_0 = tmp0_safe_receiver; if ((tmp_0 == null ? null : new Char(tmp_0)) == null) { tmp = null; } else { // Inline function 'kotlin.text.uppercase' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp = toString_1(tmp0_safe_receiver).toUpperCase(); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; } function firstNonWhiteSpaceChar(_this__u8e3s4) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.text.indexOfFirst' call var inductionVariable = 0; var last = charSequenceLength(_this__u8e3s4) - 1 | 0; if (inductionVariable <= last) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.util.ext.firstNonWhiteSpaceChar.' call var it = charSequenceGet(_this__u8e3s4, index); if (!isWhitespace(it)) { tmp$ret$1 = index; break $l$block; } } while (inductionVariable <= last); tmp$ret$1 = -1; } var index_0 = tmp$ret$1; return !(index_0 === -1) ? charSequenceGet(_this__u8e3s4, index_0) : null; } function formattedString(_this__u8e3s4, instant) { instant = instant === VOID ? System_instance.fme() : instant; return gmtOffsetString(offsetAt(_this__u8e3s4, instant)) + ' ' + _this__u8e3s4.fmh(); } function get_progressAsFloat(_this__u8e3s4) { var tmp = _this__u8e3s4.ccc_1.ad(); // Inline function 'kotlin.takeIf' call var this_0 = _this__u8e3s4.bcc_1.ad(); // Inline function 'kotlin.contracts.contract' call var tmp_0; // Inline function 'com.ustadmobile.core.util.ext..' call if (!(this_0 === 0.0)) { tmp_0 = this_0; } else { tmp_0 = null; } var tmp0_elvis_lhs = tmp_0; return tmp / (tmp0_elvis_lhs == null ? 1.0 : tmp0_elvis_lhs); } function insertPersonAndGroup(_this__u8e3s4, entity, groupFlag, $completion) { var tmp; if (groupFlag === VOID) { tmp = 1; } else { tmp = groupFlag; } groupFlag = tmp; var tmp_0 = new $insertPersonAndGroupCOROUTINE$53(_this__u8e3s4, entity, groupFlag, $completion); tmp_0.kd_1 = Unit_instance; tmp_0.ld_1 = null; return tmp_0.vd(); } function localFirstThenRepoIfFalse(_this__u8e3s4, block, $completion) { var tmp = new $localFirstThenRepoIfFalseCOROUTINE$54(_this__u8e3s4, block, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function ScopedGrantResult(sgUid) { this.uqi_1 = sgUid; } protoOf(ScopedGrantResult).toString = function () { return 'ScopedGrantResult(sgUid=' + this.uqi_1.toString() + ')'; }; protoOf(ScopedGrantResult).hashCode = function () { return this.uqi_1.hashCode(); }; protoOf(ScopedGrantResult).equals = function (other) { if (this === other) return true; if (!(other instanceof ScopedGrantResult)) return false; var tmp0_other_with_cast = other instanceof ScopedGrantResult ? other : THROW_CCE(); if (!this.uqi_1.equals(tmp0_other_with_cast.uqi_1)) return false; return true; }; function grantScopedPermission(_this__u8e3s4, toPerson, permissions, scopeTableId, scopeEntityUid, $completion) { return grantScopedPermission_0(_this__u8e3s4, toPerson.s96_1, permissions, scopeTableId, scopeEntityUid, $completion); } function grantScopedPermission_0(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion) { var tmp = new $grantScopedPermissionCOROUTINE$55(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function localFirstThenRepoIfNull(_this__u8e3s4, block, $completion) { var tmp = new $localFirstThenRepoIfNullCOROUTINE$56(_this__u8e3s4, block, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function $insertPersonAndGroupCOROUTINE$53(_this__u8e3s4, entity, groupFlag, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yqh_1 = _this__u8e3s4; this.zqh_1 = entity; this.aqi_1 = groupFlag; } protoOf($insertPersonAndGroupCOROUTINE$53).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; var tmp_0 = this; var this_0 = new PersonGroup(); this_0.iga_1 = 'Person individual group'; this_0.kga_1 = this.aqi_1; tmp_0.bqi_1 = this_0; this.id_1 = 1; suspendResult = this.yqh_1.e7e().insertAsync(this.bqi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cqi_1 = suspendResult; this.bqi_1.dga_1 = this.cqi_1; this.zqh_1.s96_1 = this.bqi_1.dga_1; this.id_1 = 2; suspendResult = this.yqh_1.o7d().insertAsync(this.zqh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.dqi_1 = suspendResult; this.zqh_1.g96_1 = this.dqi_1; this.id_1 = 3; suspendResult = this.yqh_1.f7e().insertAsync(PersonGroupMember_init_$Create$(this.zqh_1.g96_1, this.zqh_1.s96_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 4; Companion_getInstance_2(); var tmp_1 = new Long(-1, 2147483647); suspendResult = grantScopedPermission(this.yqh_1, this.zqh_1, tmp_1, 9, this.zqh_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return this.zqh_1; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $localFirstThenRepoIfFalseCOROUTINE$54(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mqi_1 = _this__u8e3s4; this.nqi_1 = block; } protoOf($localFirstThenRepoIfFalseCOROUTINE$54).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var tmp_1 = this.mqi_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y5i(); tmp_0.oqi_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.pqi_1 = this.oqi_1; if (this.pqi_1 == null) { this.qqi_1 = null; this.id_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.rqi_1 = this.pqi_1; var tmp_4 = this; tmp_4.sqi_1 = this.rqi_1; this.id_1 = 1; suspendResult = this.nqi_1(this.sqi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.qqi_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.tqi_1 = this.qqi_1; if (this.tqi_1 === true) return this.tqi_1; this.id_1 = 3; suspendResult = this.nqi_1(this.mqi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return suspendResult; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $grantScopedPermissionCOROUTINE$55(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dqj_1 = _this__u8e3s4; this.eqj_1 = toGroupUid; this.fqj_1 = permissions; this.gqj_1 = scopeTableId; this.hqj_1 = scopeEntityUid; } protoOf($grantScopedPermissionCOROUTINE$55).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.dqj_1.z7e(); var this_0 = new ScopedGrant(); this_0.uhl_1 = this.eqj_1; this_0.thl_1 = this.fqj_1; this_0.rhl_1 = this.gqj_1; this_0.shl_1 = this.hqj_1; suspendResult = tmp_0.xhk(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var sgUid = suspendResult; return new ScopedGrantResult(sgUid); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $localFirstThenRepoIfNullCOROUTINE$56(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qqj_1 = _this__u8e3s4; this.rqj_1 = block; } protoOf($localFirstThenRepoIfNullCOROUTINE$56).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var tmp_1 = this.qqj_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y5i(); tmp_0.sqj_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.tqj_1 = this.sqj_1; if (this.tqj_1 == null) { this.uqj_1 = null; this.id_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.vqj_1 = this.tqj_1; var tmp_4 = this; tmp_4.wqj_1 = this.vqj_1; this.id_1 = 1; suspendResult = this.rqj_1(this.wqj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.uqj_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.xqj_1 = this.uqj_1; if (!(this.xqj_1 == null)) return this.xqj_1; this.id_1 = 3; suspendResult = this.rqj_1(this.qqj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return suspendResult; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function withLearningSpace(_this__u8e3s4, learningSpace) { var tmp0_elvis_lhs = _this__u8e3s4.iik_1; var tmp; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('session withendpoint : usersession must not be null'); } else { tmp = tmp0_elvis_lhs; } var tmp_0 = tmp; var tmp1_elvis_lhs = _this__u8e3s4.gik_1; var tmp_1; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('session withendpoint: person msut not be null'); } else { tmp_1 = tmp1_elvis_lhs; } return new UserSessionWithPersonAndLearningSpace(tmp_0, tmp_1, learningSpace); } function isTemporary(_this__u8e3s4) { var tmp = _this__u8e3s4.fik_1; var tmp_0 = tmp & 8; return tmp_0 === 8; } function setIfNoValueSetYet(_this__u8e3s4, key, value) { if (_this__u8e3s4.ba(key) == null) { _this__u8e3s4.yqj(key, value); } } function require_0(_this__u8e3s4, key) { var tmp0_elvis_lhs = _this__u8e3s4.ba(key); var tmp; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('SavedStateHandle: required key not found: ' + key); } else { tmp = tmp0_elvis_lhs; } return tmp; } function gmtOffsetString(_this__u8e3s4) { var hours = _this__u8e3s4.jmi() / 3600 | 0; // Inline function 'kotlin.mod' call var r = _this__u8e3s4.jmi() % 3600 | 0; var minutes = r + (3600 & ((r ^ 3600) & (r | (-r | 0))) >> 31) | 0; // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.gmtOffsetString.' call this_0.y5('GMT'); if (hours >= 0) { this_0.y5('+'); } else { this_0.y5('-'); } // Inline function 'kotlin.math.absoluteValue' call var tmp$ret$1 = abs(hours); this_0.y5(padStart(tmp$ret$1.toString(), 2, _Char___init__impl__6a9atx(48))); this_0.y5(':'); // Inline function 'kotlin.math.absoluteValue' call var tmp$ret$2 = abs(minutes); this_0.y5(padStart(tmp$ret$2.toString(), 2, _Char___init__impl__6a9atx(48))); return this_0.toString(); } function displayName(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.qjl_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cjk_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.pjl_1.wjj_1; tmp = tmp1_safe_receiver == null ? null : substringAfterLast(tmp1_safe_receiver, '/'); } else { tmp = tmp2_elvis_lhs; } var tmp3_elvis_lhs = tmp; return tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; } function xhtmlContentToText(_this__u8e3s4) { // Inline function 'kotlin.text.buildString' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.apply' call var this_0 = StringBuilder_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.xhtmlContentToText.' call var initTagName = _this__u8e3s4.dc(); var initDepth = _this__u8e3s4.wl5(); while (!((_this__u8e3s4.e().equals(EventType_END_ELEMENT_getInstance()) ? _this__u8e3s4.wl5() === (initDepth - 1 | 0) : false) ? _this__u8e3s4.dc().equals(initTagName) : false)) { switch (_this__u8e3s4.bl6().za_1) { case 1: if (_this__u8e3s4.dc().sl9() === 'img') { var tmp1_elvis_lhs = _this__u8e3s4.n7d(null, 'alt'); var textVal = tmp1_elvis_lhs == null ? _this__u8e3s4.n7d(null, 'title') : tmp1_elvis_lhs; if (textVal == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.xhtmlContentToText..' call this_0.y5(textVal); } } break; case 4: this_0.y5(trimExcessWhiteSpace(_this__u8e3s4.zl5())); break; default: break; } } return this_0.toString(); } function emptyStringValues() { return new MapStringValues(emptyMap()); } function Companion_90() { } protoOf(Companion_90).c4e = function () { return new MapStringValues(emptyMap()); }; protoOf(Companion_90).o4r = function () { return new StringValuesSerializer(); }; protoOf(Companion_90).w4g = function (typeParamsSerializers) { return this.o4r(); }; var Companion_instance_138; function Companion_getInstance_108() { return Companion_instance_138; } function IStringValues() { } function MapStringValues(map) { this.vqe_1 = map; } protoOf(MapStringValues).o2n = function (key) { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.vqe_1.q2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.stringvalues.MapStringValues.getAll.' call if (equals_0(element.s2(), key, true)) { destination.i1(element); } } // Inline function 'kotlin.collections.flatMapTo' call var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = destination.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.util.stringvalues.MapStringValues.getAll.' call var list = element_0.t2(); addAll(destination_0, list); } return destination_0; }; protoOf(MapStringValues).p2n = function () { return this.vqe_1.o2(); }; function asIStringValues(_this__u8e3s4) { return new MapStringValues(_this__u8e3s4); } function StringValuesSerializer() { this.zqj_1 = MapSerializer(serializer_0(StringCompanionObject_instance), ListSerializer(serializer_0(StringCompanionObject_instance))); this.aqk_1 = SerialDescriptor('StringValuesSerializer', this.zqj_1.r44()); } protoOf(StringValuesSerializer).r44 = function () { return this.aqk_1; }; protoOf(StringValuesSerializer).t44 = function (decoder) { var stringMap = decoder.i48(this.zqj_1); return new MapStringValues(stringMap); }; protoOf(StringValuesSerializer).bqk = function (encoder, value) { encoder.a4a(this.zqj_1, toMap_1(value)); }; protoOf(StringValuesSerializer).s44 = function (encoder, value) { return this.bqk(encoder, (!(value == null) ? isInterface(value, IStringValues) : false) ? value : THROW_CCE()); }; function Companion_91() { this.cqk_1 = 'errCode'; this.dqk_1 = 'msg'; this.eqk_1 = 'stacktraceKey'; this.fqk_1 = 'fromUri'; this.gqk_1 = 'ErrorReport'; } var Companion_instance_139; function Companion_getInstance_109() { return Companion_instance_139; } function Companion_92() { this.hqk_1 = 'HolidayCalendarDetail'; } var Companion_instance_140; function Companion_getInstance_110() { return Companion_instance_140; } function Companion_93() { this.iqk_1 = 'InviteViaLink'; } var Companion_instance_141; function Companion_getInstance_111() { return Companion_instance_141; } function Companion_94() { this.jqk_1 = 'LanguageDetailView'; } var Companion_instance_142; function Companion_getInstance_112() { return Companion_instance_142; } function Companion_95() { this.kqk_1 = 'LanguageEditEditView'; } var Companion_instance_143; function Companion_getInstance_113() { return Companion_instance_143; } function Companion_96() { this.lqk_1 = 'ScopedGrantDetail'; } var Companion_instance_144; function Companion_getInstance_114() { return Companion_instance_144; } function Companion_97() { this.mqk_1 = 'SiteTermsDetailView'; this.nqk_1 = 'SiteTermsDetailAcceptTerms'; this.oqk_1 = 'useDisplayLocale'; this.pqk_1 = 'showAccept'; } var Companion_instance_145; function Companion_getInstance_115() { return Companion_instance_145; } function Companion_98() { Companion_instance_146 = this; this.qqk_1 = 'entity'; this.rqk_1 = new Long(200, 0); } var Companion_instance_146; function Companion_getInstance_116() { if (Companion_instance_146 == null) new Companion_98(); return Companion_instance_146; } var ListViewMode_BROWSER_instance; var ListViewMode_PICKER_instance; var ListViewMode_entriesInitialized; function ListViewMode_initEntries() { if (ListViewMode_entriesInitialized) return Unit_instance; ListViewMode_entriesInitialized = true; ListViewMode_BROWSER_instance = new ListViewMode('BROWSER', 0, 'BROWSER'); ListViewMode_PICKER_instance = new ListViewMode('PICKER', 1, 'PICKER'); } function ListViewMode(name, ordinal, mode) { Enum.call(this, name, ordinal); this.uqk_1 = mode; } function ListViewMode_BROWSER_getInstance() { ListViewMode_initEntries(); return ListViewMode_BROWSER_instance; } function ListViewMode_PICKER_getInstance() { ListViewMode_initEntries(); return ListViewMode_PICKER_instance; } function Companion_99() { Companion_instance_147 = this; this.vqk_1 = 'clazzAction'; this.wqk_1 = 'entityUid'; this.xqk_1 = 'containerUid'; this.yqk_1 = 'parentUid'; this.zqk_1 = 'parentTitle'; this.aql_1 = 'entryid'; this.bql_1 = 'statementVerUid'; this.cql_1 = 'contextRegistrationIdHi'; this.dql_1 = 'contextRegistrationIdLo'; this.eql_1 = 'learnerGroupUid'; this.fql_1 = 'noiframe'; this.gql_1 = 'schoolUid'; this.hql_1 = 'content_type'; this.iql_1 = 'filterBySchoolUid'; this.jql_1 = 'filterByRole'; this.kql_1 = 'listMode'; this.lql_1 = 'getResultMode'; this.mql_1 = 'listAddMode'; this.nql_1 = 'filterByPermission'; this.oql_1 = 'clazzUid'; this.pql_1 = 'filterByPersonGroupUid'; this.qql_1 = 'filterByEnrolmentRole'; this.rql_1 = 'clazzAssignmentUid'; this.sql_1 = 'clazzAssignmentSubmitterUid'; this.tql_1 = 'personUid'; this.uql_1 = 'next'; this.vql_1 = 'site'; this.wql_1 = 'learningSpaceUrl'; this.xql_1 = 'openLink'; this.yql_1 = 'account'; this.zql_1 = 'accountEndpoint'; this.aqm_1 = 'snack_message'; this.bqm_1 = 'argCode'; this.cqm_1 = 'argCodeTable'; this.dqm_1 = 'argEntityName'; this.eqm_1 = ''; this.fqm_1 = 'root'; this.gqm_1 = 'current'; this.hqm_1 = 'goToComplete'; this.iqm_1 = 'saveDb'; this.jqm_1 = 'popUpToOnFinish'; this.kqm_1 = 'result_dest'; this.lqm_1 = 'result_viewname'; this.mqm_1 = 'registration_allowed'; this.nqm_1 = 'result_key'; this.oqm_1 = 'intMsg'; this.pqm_1 = 'title'; this.qqm_1 = 'navChild'; this.rqm_1 = 'activeTabIndex'; this.sqm_1 = 'maxDob'; this.tqm_1 = new Long(1, -955361223); } var Companion_instance_147; function Companion_getInstance_117() { if (Companion_instance_147 == null) new Companion_99(); return Companion_instance_147; } function DetailViewModel(di, savedStateHandle, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.pqn_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } function ErrorReportUiState(errorReport, fieldsEnabled) { errorReport = errorReport === VOID ? null : errorReport; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; this.oqp_1 = errorReport; this.pqp_1 = fieldsEnabled; } protoOf(ErrorReportUiState).toString = function () { return 'ErrorReportUiState(errorReport=' + this.oqp_1 + ', fieldsEnabled=' + this.pqp_1 + ')'; }; protoOf(ErrorReportUiState).hashCode = function () { var result = this.oqp_1 == null ? 0 : hashCode(this.oqp_1); result = imul(result, 31) + getBooleanHashCode(this.pqp_1) | 0; return result; }; protoOf(ErrorReportUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ErrorReportUiState)) return false; var tmp0_other_with_cast = other instanceof ErrorReportUiState ? other : THROW_CCE(); if (!equals(this.oqp_1, tmp0_other_with_cast.oqp_1)) return false; if (!(this.pqp_1 === tmp0_other_with_cast.pqp_1)) return false; return true; }; function HolidayCalendarDetailUIState(holidayCalendar, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; holidayList = holidayList === VOID ? emptyList() : holidayList; this.qqp_1 = holidayCalendar; this.rqp_1 = holidayList; } protoOf(HolidayCalendarDetailUIState).toString = function () { return 'HolidayCalendarDetailUIState(holidayCalendar=' + this.qqp_1 + ', holidayList=' + this.rqp_1 + ')'; }; protoOf(HolidayCalendarDetailUIState).hashCode = function () { var result = this.qqp_1 == null ? 0 : hashCode(this.qqp_1); result = imul(result, 31) + hashCode(this.rqp_1) | 0; return result; }; protoOf(HolidayCalendarDetailUIState).equals = function (other) { if (this === other) return true; if (!(other instanceof HolidayCalendarDetailUIState)) return false; var tmp0_other_with_cast = other instanceof HolidayCalendarDetailUIState ? other : THROW_CCE(); if (!equals(this.qqp_1, tmp0_other_with_cast.qqp_1)) return false; if (!equals(this.rqp_1, tmp0_other_with_cast.rqp_1)) return false; return true; }; function Companion_100() { this.sqp_1 = 'HolidayCalendarEdit'; } var Companion_instance_148; function Companion_getInstance_118() { return Companion_instance_148; } function HolidayCalendarEditUiState(holidayCalendar, fieldsEnabled, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; holidayList = holidayList === VOID ? emptyList() : holidayList; this.tqp_1 = holidayCalendar; this.uqp_1 = fieldsEnabled; this.vqp_1 = holidayList; } protoOf(HolidayCalendarEditUiState).toString = function () { return 'HolidayCalendarEditUiState(holidayCalendar=' + this.tqp_1 + ', fieldsEnabled=' + this.uqp_1 + ', holidayList=' + this.vqp_1 + ')'; }; protoOf(HolidayCalendarEditUiState).hashCode = function () { var result = this.tqp_1 == null ? 0 : hashCode(this.tqp_1); result = imul(result, 31) + getBooleanHashCode(this.uqp_1) | 0; result = imul(result, 31) + (this.vqp_1 == null ? 0 : hashCode(this.vqp_1)) | 0; return result; }; protoOf(HolidayCalendarEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof HolidayCalendarEditUiState)) return false; var tmp0_other_with_cast = other instanceof HolidayCalendarEditUiState ? other : THROW_CCE(); if (!equals(this.tqp_1, tmp0_other_with_cast.tqp_1)) return false; if (!(this.uqp_1 === tmp0_other_with_cast.uqp_1)) return false; if (!equals(this.vqp_1, tmp0_other_with_cast.vqp_1)) return false; return true; }; function Companion_101() { this.wqp_1 = 'HolidayCalendarList'; } var Companion_instance_149; function Companion_getInstance_119() { return Companion_instance_149; } function HolidayCalendarListUiState(holidayCalendarList) { var tmp; if (holidayCalendarList === VOID) { // Inline function 'kotlin.collections.listOf' call tmp = emptyList(); } else { tmp = holidayCalendarList; } holidayCalendarList = tmp; this.xqp_1 = holidayCalendarList; } protoOf(HolidayCalendarListUiState).toString = function () { return 'HolidayCalendarListUiState(holidayCalendarList=' + this.xqp_1 + ')'; }; protoOf(HolidayCalendarListUiState).hashCode = function () { return hashCode(this.xqp_1); }; protoOf(HolidayCalendarListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof HolidayCalendarListUiState)) return false; var tmp0_other_with_cast = other instanceof HolidayCalendarListUiState ? other : THROW_CCE(); if (!equals(this.xqp_1, tmp0_other_with_cast.xqp_1)) return false; return true; }; function LanguageDetailUiState(language) { language = language === VOID ? null : language; this.yqp_1 = language; } protoOf(LanguageDetailUiState).toString = function () { return 'LanguageDetailUiState(language=' + this.yqp_1 + ')'; }; protoOf(LanguageDetailUiState).hashCode = function () { return this.yqp_1 == null ? 0 : this.yqp_1.hashCode(); }; protoOf(LanguageDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LanguageDetailUiState)) return false; var tmp0_other_with_cast = other instanceof LanguageDetailUiState ? other : THROW_CCE(); if (!equals(this.yqp_1, tmp0_other_with_cast.yqp_1)) return false; return true; }; function LanguageEditUiState(language, fieldsEnabled, languageNameError, twoLettersCodeError, threeLettersCodeError) { language = language === VOID ? null : language; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; languageNameError = languageNameError === VOID ? null : languageNameError; twoLettersCodeError = twoLettersCodeError === VOID ? null : twoLettersCodeError; threeLettersCodeError = threeLettersCodeError === VOID ? null : threeLettersCodeError; this.zqp_1 = language; this.aqq_1 = fieldsEnabled; this.bqq_1 = languageNameError; this.cqq_1 = twoLettersCodeError; this.dqq_1 = threeLettersCodeError; } protoOf(LanguageEditUiState).toString = function () { return 'LanguageEditUiState(language=' + this.zqp_1 + ', fieldsEnabled=' + this.aqq_1 + ', languageNameError=' + this.bqq_1 + ', twoLettersCodeError=' + this.cqq_1 + ', threeLettersCodeError=' + this.dqq_1 + ')'; }; protoOf(LanguageEditUiState).hashCode = function () { var result = this.zqp_1 == null ? 0 : this.zqp_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.aqq_1) | 0; result = imul(result, 31) + (this.bqq_1 == null ? 0 : getStringHashCode(this.bqq_1)) | 0; result = imul(result, 31) + (this.cqq_1 == null ? 0 : getStringHashCode(this.cqq_1)) | 0; result = imul(result, 31) + (this.dqq_1 == null ? 0 : getStringHashCode(this.dqq_1)) | 0; return result; }; protoOf(LanguageEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LanguageEditUiState)) return false; var tmp0_other_with_cast = other instanceof LanguageEditUiState ? other : THROW_CCE(); if (!equals(this.zqp_1, tmp0_other_with_cast.zqp_1)) return false; if (!(this.aqq_1 === tmp0_other_with_cast.aqq_1)) return false; if (!(this.bqq_1 == tmp0_other_with_cast.bqq_1)) return false; if (!(this.cqq_1 == tmp0_other_with_cast.cqq_1)) return false; if (!(this.dqq_1 == tmp0_other_with_cast.dqq_1)) return false; return true; }; function Companion_102() { this.eqq_1 = 'LanguageList'; } var Companion_instance_150; function Companion_getInstance_120() { return Companion_instance_150; } function LanguageListUiState(languageList, sortOptions, sortOrder) { languageList = languageList === VOID ? emptyList() : languageList; var tmp; if (sortOptions === VOID) { var tmp_0 = strings_getInstance().wmk_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().wmk_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().jml_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().jml_1; var tmp_7 = new SortOrderOption(tmp_6, 4, false); var tmp_8 = strings_getInstance().kml_1; var tmp_9 = new SortOrderOption(tmp_8, 5, true); var tmp_10 = strings_getInstance().kml_1; tmp = listOf([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, new SortOrderOption(tmp_10, 6, false)]); } else { tmp = sortOptions; } sortOptions = tmp; sortOrder = sortOrder === VOID ? first_0(sortOptions) : sortOrder; this.fqq_1 = languageList; this.gqq_1 = sortOptions; this.hqq_1 = sortOrder; } protoOf(LanguageListUiState).toString = function () { return 'LanguageListUiState(languageList=' + this.fqq_1 + ', sortOptions=' + this.gqq_1 + ', sortOrder=' + this.hqq_1 + ')'; }; protoOf(LanguageListUiState).hashCode = function () { var result = hashCode(this.fqq_1); result = imul(result, 31) + hashCode(this.gqq_1) | 0; result = imul(result, 31) + this.hqq_1.hashCode() | 0; return result; }; protoOf(LanguageListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LanguageListUiState)) return false; var tmp0_other_with_cast = other instanceof LanguageListUiState ? other : THROW_CCE(); if (!equals(this.fqq_1, tmp0_other_with_cast.fqq_1)) return false; if (!equals(this.gqq_1, tmp0_other_with_cast.gqq_1)) return false; if (!this.hqq_1.equals(tmp0_other_with_cast.hqq_1)) return false; return true; }; function LeavingReasonEditViewModel$slambda$slambda($savedStateHandle, resultContinuation) { this.qqq_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda).sqq = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.sqq(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.rqq_1.v7d(); Companion_getInstance_117(); var tmp0_safe_receiver = this.qqq_1.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.yfh(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).enz = function (it, completion) { var i = new LeavingReasonEditViewModel$slambda$slambda(this.qqq_1, completion); i.rqq_1 = it; return i; }; function LeavingReasonEditViewModel$slambda$slambda_0($savedStateHandle, resultContinuation) { var i = new LeavingReasonEditViewModel$slambda$slambda($savedStateHandle, resultContinuation); var l = function (it, $completion) { return i.sqq(it, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda_1).bqr = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.bqr($completion); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = new LeavingReason(); this_0.v94_1 = ''; return this_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).m78 = function (completion) { return new LeavingReasonEditViewModel$slambda$slambda_1(completion); }; function LeavingReasonEditViewModel$slambda$slambda_2(resultContinuation) { var i = new LeavingReasonEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.bqr($completion); }; l.$arity = 0; return l; } function LeavingReasonEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel...' call var nextValue = prevValue.eqs(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_103() { this.fqs_1 = 'LeavingReasonEdit'; } var Companion_instance_151; function Companion_getInstance_121() { return Companion_instance_151; } function LeavingReasonEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.oqs_1 = this$0; this.pqs_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LeavingReasonEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.rqs_1 = Companion_getInstance_12().o4r(); this.id_1 = 1; var tmp_0 = LeavingReasonEditViewModel$slambda$slambda_0(this.pqs_1, null); var tmp_1 = LeavingReasonEditViewModel$slambda$slambda_2(null); suspendResult = this.oqs_1.fqp(this.rqs_1, VOID, VOID, tmp_0, tmp_1, LeavingReasonEditViewModel$slambda$lambda(this.oqs_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.oqs_1.zqr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.eqs(VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LeavingReasonEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new LeavingReasonEditViewModel$slambda(this.oqs_1, this.pqs_1, completion); i.qqs_1 = $this$launch; return i; }; function LeavingReasonEditViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new LeavingReasonEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.aqt_1 = $commitDelay; this.bqt_1 = $entity; this.cqt_1 = $this; this.dqt_1 = $key; this.eqt_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.aqt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.bqt_1 == null)) { this.id_1 = 2; suspendResult = this.cqt_1.bqp(this.cqt_1.vqn_1, this.dqt_1, this.eqt_1, this.bqt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new LeavingReasonEditViewModel$onEntityChanged$slambda(this.aqt_1, this.bqt_1, this.cqt_1, this.dqt_1, this.eqt_1, completion); i.fqt_1 = $this$launch; return i; }; function LeavingReasonEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new LeavingReasonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'LeavingReasonEdit'); this.zqr_1 = MutableStateFlow(new LeavingReasonEditUiState(VOID, VOID, false)); this.aqs_1 = asStateFlow(this.zqr_1); var tmp = this.mqo(); launch(tmp, VOID, VOID, LeavingReasonEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(LeavingReasonEditViewModel).gqt = function (leavingReason) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel.onEntityChanged.' call var nextValue = prevValue.eqs(leavingReason); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_12().o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.cqu_1 = launch(tmp_0, VOID, VOID, LeavingReasonEditViewModel$onEntityChanged$slambda_0(commitDelay, leavingReason, this, key, serializer, null)); }; function LeavingReasonEditUiState(leavingReason, reasonTitleError, fieldsEnabled) { leavingReason = leavingReason === VOID ? null : leavingReason; reasonTitleError = reasonTitleError === VOID ? null : reasonTitleError; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; this.bqs_1 = leavingReason; this.cqs_1 = reasonTitleError; this.dqs_1 = fieldsEnabled; } protoOf(LeavingReasonEditUiState).hqu = function (leavingReason, reasonTitleError, fieldsEnabled) { return new LeavingReasonEditUiState(leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).eqs = function (leavingReason, reasonTitleError, fieldsEnabled, $super) { leavingReason = leavingReason === VOID ? this.bqs_1 : leavingReason; reasonTitleError = reasonTitleError === VOID ? this.cqs_1 : reasonTitleError; fieldsEnabled = fieldsEnabled === VOID ? this.dqs_1 : fieldsEnabled; return $super === VOID ? this.hqu(leavingReason, reasonTitleError, fieldsEnabled) : $super.hqu.call(this, leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).toString = function () { return 'LeavingReasonEditUiState(leavingReason=' + this.bqs_1 + ', reasonTitleError=' + this.cqs_1 + ', fieldsEnabled=' + this.dqs_1 + ')'; }; protoOf(LeavingReasonEditUiState).hashCode = function () { var result = this.bqs_1 == null ? 0 : hashCode(this.bqs_1); result = imul(result, 31) + (this.cqs_1 == null ? 0 : getStringHashCode(this.cqs_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.dqs_1) | 0; return result; }; protoOf(LeavingReasonEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LeavingReasonEditUiState)) return false; var tmp0_other_with_cast = other instanceof LeavingReasonEditUiState ? other : THROW_CCE(); if (!equals(this.bqs_1, tmp0_other_with_cast.bqs_1)) return false; if (!(this.cqs_1 == tmp0_other_with_cast.cqs_1)) return false; if (!(this.dqs_1 === tmp0_other_with_cast.dqs_1)) return false; return true; }; function Companion_104() { this.iqu_1 = 'ReportFilterEdit'; } var Companion_instance_152; function Companion_getInstance_122() { return Companion_instance_152; } function ReportFilterEditUiState(fieldError, conditionsError, valuesError, fieldsEnabled, reportFilter, uidAndLabelList, createNewFilter, reportFilterValueVisible, reportFilterBetweenValueVisible, reportFilterUidAndLabelListVisible) { fieldError = fieldError === VOID ? null : fieldError; conditionsError = conditionsError === VOID ? null : conditionsError; valuesError = valuesError === VOID ? null : valuesError; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; reportFilter = reportFilter === VOID ? null : reportFilter; uidAndLabelList = uidAndLabelList === VOID ? emptyList() : uidAndLabelList; createNewFilter = createNewFilter === VOID ? '' : createNewFilter; reportFilterValueVisible = reportFilterValueVisible === VOID ? true : reportFilterValueVisible; reportFilterBetweenValueVisible = reportFilterBetweenValueVisible === VOID ? true : reportFilterBetweenValueVisible; reportFilterUidAndLabelListVisible = reportFilterUidAndLabelListVisible === VOID ? true : reportFilterUidAndLabelListVisible; this.jqu_1 = fieldError; this.kqu_1 = conditionsError; this.lqu_1 = valuesError; this.mqu_1 = fieldsEnabled; this.nqu_1 = reportFilter; this.oqu_1 = uidAndLabelList; this.pqu_1 = createNewFilter; this.qqu_1 = reportFilterValueVisible; this.rqu_1 = reportFilterBetweenValueVisible; this.squ_1 = reportFilterUidAndLabelListVisible; } protoOf(ReportFilterEditUiState).toString = function () { return 'ReportFilterEditUiState(fieldError=' + this.jqu_1 + ', conditionsError=' + this.kqu_1 + ', valuesError=' + this.lqu_1 + ', fieldsEnabled=' + this.mqu_1 + ', reportFilter=' + this.nqu_1 + ', uidAndLabelList=' + this.oqu_1 + ', createNewFilter=' + this.pqu_1 + ', reportFilterValueVisible=' + this.qqu_1 + ', reportFilterBetweenValueVisible=' + this.rqu_1 + ', reportFilterUidAndLabelListVisible=' + this.squ_1 + ')'; }; protoOf(ReportFilterEditUiState).hashCode = function () { var result = this.jqu_1 == null ? 0 : getStringHashCode(this.jqu_1); result = imul(result, 31) + (this.kqu_1 == null ? 0 : getStringHashCode(this.kqu_1)) | 0; result = imul(result, 31) + (this.lqu_1 == null ? 0 : getStringHashCode(this.lqu_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.mqu_1) | 0; result = imul(result, 31) + (this.nqu_1 == null ? 0 : this.nqu_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.oqu_1) | 0; result = imul(result, 31) + getStringHashCode(this.pqu_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qqu_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rqu_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.squ_1) | 0; return result; }; protoOf(ReportFilterEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ReportFilterEditUiState)) return false; var tmp0_other_with_cast = other instanceof ReportFilterEditUiState ? other : THROW_CCE(); if (!(this.jqu_1 == tmp0_other_with_cast.jqu_1)) return false; if (!(this.kqu_1 == tmp0_other_with_cast.kqu_1)) return false; if (!(this.lqu_1 == tmp0_other_with_cast.lqu_1)) return false; if (!(this.mqu_1 === tmp0_other_with_cast.mqu_1)) return false; if (!equals(this.nqu_1, tmp0_other_with_cast.nqu_1)) return false; if (!equals(this.oqu_1, tmp0_other_with_cast.oqu_1)) return false; if (!(this.pqu_1 === tmp0_other_with_cast.pqu_1)) return false; if (!(this.qqu_1 === tmp0_other_with_cast.qqu_1)) return false; if (!(this.rqu_1 === tmp0_other_with_cast.rqu_1)) return false; if (!(this.squ_1 === tmp0_other_with_cast.squ_1)) return false; return true; }; function ScopedGrantDetailUiState(entity, bitmaskList) { entity = entity === VOID ? null : entity; bitmaskList = bitmaskList === VOID ? emptyList() : bitmaskList; this.tqu_1 = entity; this.uqu_1 = bitmaskList; } protoOf(ScopedGrantDetailUiState).toString = function () { return 'ScopedGrantDetailUiState(entity=' + this.tqu_1 + ', bitmaskList=' + this.uqu_1 + ')'; }; protoOf(ScopedGrantDetailUiState).hashCode = function () { var result = this.tqu_1 == null ? 0 : hashCode(this.tqu_1); result = imul(result, 31) + hashCode(this.uqu_1) | 0; return result; }; protoOf(ScopedGrantDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ScopedGrantDetailUiState)) return false; var tmp0_other_with_cast = other instanceof ScopedGrantDetailUiState ? other : THROW_CCE(); if (!equals(this.tqu_1, tmp0_other_with_cast.tqu_1)) return false; if (!equals(this.uqu_1, tmp0_other_with_cast.uqu_1)) return false; return true; }; function Companion_105() { this.vqu_1 = 'ScopedGrantEdit'; this.wqu_1 = 'grantToGroup'; this.xqu_1 = 'grantToName'; this.yqu_1 = 'grantTableId'; this.zqu_1 = 'grantEntityUid'; this.aqv_1 = 'permissionList'; } var Companion_instance_153; function Companion_getInstance_123() { return Companion_instance_153; } function ScopedGrantEditUiState(entity, bitmaskList) { entity = entity === VOID ? null : entity; var tmp; if (bitmaskList === VOID) { // Inline function 'kotlin.collections.listOf' call tmp = emptyList(); } else { tmp = bitmaskList; } bitmaskList = tmp; this.bqv_1 = entity; this.cqv_1 = bitmaskList; } protoOf(ScopedGrantEditUiState).toString = function () { return 'ScopedGrantEditUiState(entity=' + this.bqv_1 + ', bitmaskList=' + this.cqv_1 + ')'; }; protoOf(ScopedGrantEditUiState).hashCode = function () { var result = this.bqv_1 == null ? 0 : hashCode(this.bqv_1); result = imul(result, 31) + hashCode(this.cqv_1) | 0; return result; }; protoOf(ScopedGrantEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ScopedGrantEditUiState)) return false; var tmp0_other_with_cast = other instanceof ScopedGrantEditUiState ? other : THROW_CCE(); if (!equals(this.bqv_1, tmp0_other_with_cast.bqv_1)) return false; if (!equals(this.cqv_1, tmp0_other_with_cast.cqv_1)) return false; return true; }; function Companion_106() { Companion_instance_154 = this; this.dqv_1 = new Long(200, 0); this.eqv_1 = 'initPicUri'; } var Companion_instance_154; function Companion_getInstance_124() { if (Companion_instance_154 == null) new Companion_106(); return Companion_instance_154; } function UstadEditViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_124(); UstadViewModel.call(this, di, savedStateHandle, destinationName); this.cqu_1 = null; var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.dqu_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } protoOf(UstadEditViewModel).equ = function (detailViewName, entityUid, result, detailViewExtraArgs) { Companion_getInstance_117(); var popUpToViewName = this.vqn_1.ba('result_viewname'); Companion_getInstance_117(); var saveToKey = this.vqn_1.ba('result_key'); Companion_getInstance_126(); var createdNewEntity = this.vqn_1.ba('entityUid') == null; var returnResultExpected = !(popUpToViewName == null) ? !(saveToKey == null) : false; if (createdNewEntity ? !returnResultExpected : false) { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.finishWithResult.' call this_0.r2(detailViewExtraArgs); Companion_getInstance_126(); this_0.s('entityUid', entityUid.toString()); var tmp = this_0.f3(); Companion_getInstance_117(); this.xqn_1.gqa(detailViewName, tmp, new UstadGoOptions('', true)); } else { this.gqu(result); } }; protoOf(UstadEditViewModel).fqu = function (detailViewName, entityUid, result, detailViewExtraArgs, $super) { detailViewExtraArgs = detailViewExtraArgs === VOID ? emptyMap() : detailViewExtraArgs; var tmp; if ($super === VOID) { this.equ(detailViewName, entityUid, result, detailViewExtraArgs); tmp = Unit_instance; } else { tmp = $super.equ.call(this, detailViewName, entityUid, result, detailViewExtraArgs); } return tmp; }; protoOf(UstadEditViewModel).fqv = function (newEntityStringResource, editEntityStringResource) { var tmp; if (!this.dqu_1.equals(new Long(0, 0))) { tmp = true; } else { Companion_getInstance_116(); tmp = !(this.vqn_1.ba('entity') == null); } var isEditing = tmp; var tmp_0 = this.vqo(); var tmp_1; if (isEditing) { tmp_1 = editEntityStringResource; } else { tmp_1 = newEntityStringResource; } return tmp_0.soj(tmp_1); }; protoOf(UstadEditViewModel).gqv = function (prevFieldValue, currentFieldValue, currentErrorMessage) { return currentErrorMessage == null ? null : !equals(prevFieldValue, currentFieldValue) ? null : currentErrorMessage; }; function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.rqv_1 = this$0; this.sqv_1 = $fabStringResource; this.tqv_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).gqg = function (hasAddPermission, $completion) { var tmp = this.hqg(hasAddPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; setAddNewItemUiState(this.rqv_1, this.uqv_1, this.sqv_1, this.tqv_1); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).hqg = function (hasAddPermission, completion) { var i = new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this.rqv_1, this.sqv_1, this.tqv_1, completion); i.uqv_1 = hasAddPermission; return i; }; function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda_0(this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { var i = new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation); var l = function (hasAddPermission, $completion) { return i.gqg(hasAddPermission, $completion); }; l.$arity = 1; return l; } function setAddNewItemUiState($this, hasAddPermission, fabStringResource, onSetAddItemVisibility) { var tmp; if (hasAddPermission ? $this.vqw().equals(ListViewMode_BROWSER_getInstance()) : false) { var tmp_0 = $this.vqo().soj(fabStringResource); var tmp_1 = FabIcon_ADD_getInstance(); tmp = new FabUiState(true, tmp_0, tmp_1, UstadListViewModel$onClickAdd$ref($this)); } else { tmp = new FabUiState(false); } var fabState = tmp; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.setAddNewItemUiState.' call var nextValue = prevValue.hq7(fabState); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } onSetAddItemVisibility(hasAddPermission ? $this.vqw().equals(ListViewMode_PICKER_getInstance()) : false); } function Companion_107() { this.wqw_1 = 'listMode'; } var Companion_instance_155; function Companion_getInstance_125() { return Companion_instance_155; } function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) { this.xqw_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).u1d = function (value, $completion) { return this.xqw_1(value, $completion); }; function UstadListViewModel$searchEvtCollator$slambda(this$0, resultContinuation) { this.gqx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$searchEvtCollator$slambda).iqx = function (it, $completion) { var tmp = this.jqx(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).ie = function (p1, $completion) { return this.iqx((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_elvis_lhs = lastOrNull(this.hqx_1); this.gqx_1.kqx(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).jqx = function (it, completion) { var i = new UstadListViewModel$searchEvtCollator$slambda(this.gqx_1, completion); i.hqx_1 = it; return i; }; function UstadListViewModel$searchEvtCollator$slambda_0(this$0, resultContinuation) { var i = new UstadListViewModel$searchEvtCollator$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.iqx(it, $completion); }; l.$arity = 1; return l; } function UstadListViewModel$createSearchEnabledState$lambda(this$0) { return function (searchText) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.createSearchEnabledState..' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.zq6_1.rq6(VOID, searchText)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this$0.uqw_1.t6x(searchText); return Unit_instance; }; } function UstadListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.lqx(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda($hasPermissionFlow, this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.uqx_1 = $hasPermissionFlow; this.vqx_1 = this$0; this.wqx_1 = $fabStringResource; this.xqx_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.uqx_1()); var tmp_1 = UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda_0(this.vqx_1, this.wqx_1, this.xqx_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).m78 = function (completion) { return new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda(this.uqx_1, this.vqx_1, this.wqx_1, this.xqx_1, completion); }; function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda_0($hasPermissionFlow, this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { var i = new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda($hasPermissionFlow, this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function UstadListViewModel$onClickAdd$ref_0($boundThis) { var l = function () { $boundThis.lqx(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel(di, savedStateHandle, initialState, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); this.qqw_1 = MutableStateFlow(initialState); this.rqw_1 = asStateFlow(this.qqw_1); this.sqw_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.tqw_1 = asSharedFlow(this.sqw_1); var tmp = this; var tmp_0 = new Long(200, 0); var tmp_1 = this.mqo(); var tmp_2 = BufferOverflow_DROP_OLDEST_getInstance(); tmp.uqw_1 = new EventCollator2(tmp_0, tmp_1, 1, tmp_2, UstadListViewModel$searchEvtCollator$slambda_0(this, null)); } protoOf(UstadListViewModel).vqw = function () { var tmp; var tmp_0; Companion_getInstance_117(); if (this.vqn_1.ba('listMode') === ListViewMode_PICKER_getInstance().uqk_1) { tmp_0 = true; } else { var tmp_1; Companion_getInstance_117(); if (!(this.vqn_1.ba('result_viewname') == null)) { Companion_getInstance_117(); tmp_1 = !(this.vqn_1.ba('result_key') == null); } else { tmp_1 = false; } tmp_0 = tmp_1; } if (tmp_0) { tmp = ListViewMode_PICKER_getInstance(); } else { tmp = ListViewMode_BROWSER_getInstance(); } return tmp; }; protoOf(UstadListViewModel).yqx = function (visible) { return new AppBarSearchUiState(visible, VOID, UstadListViewModel$createSearchEnabledState$lambda(this)); }; protoOf(UstadListViewModel).zqx = function (visible, $super) { visible = visible === VOID ? true : visible; return $super === VOID ? this.yqx(visible) : $super.yqx.call(this, visible); }; protoOf(UstadListViewModel).aqy = function (hasPermissionFlow, fabStringResource, onSetAddListItemVisibility, $completion) { return whenSubscribed(this.qqw_1, UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda_0(hasPermissionFlow, this, fabStringResource, onSetAddListItemVisibility, null), $completion); }; protoOf(UstadListViewModel).bqy = function (hasAddPermission, stringResource, onClick) { var tmp; if (hasAddPermission ? this.vqw().equals(ListViewMode_BROWSER_getInstance()) : false) { tmp = new FabUiState(true, this.vqo().soj(stringResource), FabIcon_ADD_getInstance(), onClick); } else { tmp = new FabUiState(false); } return tmp; }; protoOf(UstadListViewModel).cqy = function (hasAddPermission, stringResource, onClick, $super) { var tmp; if (onClick === VOID) { tmp = UstadListViewModel$onClickAdd$ref_0(this); } else { tmp = onClick; } onClick = tmp; return $super === VOID ? this.bqy(hasAddPermission, stringResource, onClick) : $super.bqy.call(this, hasAddPermission, stringResource, onClick); }; protoOf(UstadListViewModel).dqy = function (editViewName, extraArgs) { var resultDest = this.wqo(); var tmp; if (!(resultDest == null)) { Companion_getInstance_117(); var tmp_0 = to('result_viewname', resultDest.tqa_1); Companion_getInstance_117(); tmp = plus_0(mapOf([tmp_0, to('result_key', resultDest.uqa_1)]), extraArgs); } else { tmp = extraArgs; } var args = tmp; this.xqn_1.tp6(editViewName, args); }; protoOf(UstadListViewModel).eqy = function (editViewName, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.dqy(editViewName, extraArgs); tmp = Unit_instance; } else { tmp = $super.dqy.call(this, editViewName, extraArgs); } return tmp; }; protoOf(UstadListViewModel).fqy = function (detailViewName, entityUid, result, extraArgs) { var resultDest = this.wqo(); if (!(resultDest == null)) { this.gqu(result); } else { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.navigateOnItemClicked.' call this_0.r2(extraArgs); Companion_getInstance_126(); this_0.s('entityUid', entityUid.toString()); var tmp$ret$2 = this_0.f3(); this.xqn_1.tp6(detailViewName, tmp$ret$2); } }; protoOf(UstadListViewModel).gqy = function (detailViewName, entityUid, result, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.fqy(detailViewName, entityUid, result, extraArgs); tmp = Unit_instance; } else { tmp = $super.fqy.call(this, detailViewName, entityUid, result, extraArgs); } return tmp; }; protoOf(UstadListViewModel).hqy = function (browseStringResource, selectStringResource) { var tmp = this.vqo(); var tmp_0; if (this.vqw().equals(ListViewMode_BROWSER_getInstance())) { tmp_0 = browseStringResource; } else { tmp_0 = selectStringResource; } return tmp.soj(tmp_0); }; function UstadViewModel$filteredResultFlowForKey$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) { this.qqy_1 = $$this$unsafeFlow; this.rqy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).lqb = function (value, $completion) { var tmp = this.mqb(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.uqy_1 = this.qqy_1; var tmp_1 = this; tmp_1.vqy_1 = this.sqy_1; var it = this.vqy_1; var isNew = it.rqa_1.c7(this.rqy_1.kqo_1) > 0; if (isNew) { _set_lastNavResultTimestampCollected__txfbew(this.rqy_1, it.rqa_1); } if (isNew) { this.id_1 = 3; suspendResult = this.uqy_1.u1d(this.vqy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 2: if (false) { this.id_1 = 1; continue $sm; } this.id_1 = 4; continue $sm; case 3: this.tqy_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).mqb = function (value, completion) { var i = new UstadViewModel$filteredResultFlowForKey$o$collect$slambda(this.qqy_1, this.rqy_1, completion); i.sqy_1 = value; return i; }; function UstadViewModel$filteredResultFlowForKey$o$collect$slambda_0($$this$unsafeFlow, this$0, resultContinuation) { var i = new UstadViewModel$filteredResultFlowForKey$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation); var l = function (value, $completion) { return i.lqb(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$60(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eqz_1 = _this__u8e3s4; this.fqz_1 = collector; } protoOf($collectCOROUTINE$60).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.gqz_1 = this.fqz_1; this.id_1 = 1; var tmp_1 = UstadViewModel$filteredResultFlowForKey$o$collect$slambda_0(this.gqz_1, this.eqz_1.iqz_1, null); suspendResult = this.eqz_1.hqz_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_4(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function _set_lastNavResultTimestampCollected__txfbew($this, value) { $this.kqo_1 = value; $this.vqn_1.yqj('collectedTs', value.toString()); } function Companion_108() { Companion_instance_156 = this; this.jqz_1 = 'entityState'; this.kqz_1 = 'collectedTs'; this.lqz_1 = 'initState'; this.mqz_1 = 'timeZone'; this.nqz_1 = 'parentUid'; this.oqz_1 = 'courseBlockUid'; this.pqz_1 = 'entityUid'; this.qqz_1 = 'serverUrl'; this.rqz_1 = 'next'; this.sqz_1 = 'maxDob'; var tmp = this; Companion_getInstance_141(); Companion_getInstance_170(); Companion_getInstance_191(); Companion_getInstance_205(); tmp.tqz_1 = listOf(['CourseListHome', 'ContentEntryListHome', 'ConversationListHome', 'PersonListHome']); this.uqz_1 = 'openLink'; this.vqz_1 = 'account'; this.wqz_1 = 'popUpToOnFinish'; this.xqz_1 = 'inviteCode'; this.yqz_1 = 'clazzUid'; this.zqz_1 = 'entryid'; this.ar0_1 = 'personUid'; this.br0_1 = 't'; this.cr0_1 = 'noSessionChange'; this.dr0_1 = 'selectedAccountPersonUid'; this.er0_1 = 'selectedAccountEndpointUrl'; this.fr0_1 = 'result_viewname'; this.gr0_1 = 'result_key'; } var Companion_instance_156; function Companion_getInstance_126() { if (Companion_instance_156 == null) new Companion_108(); return Companion_instance_156; } function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) { this.hr0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).u1d = function (value, $completion) { return this.hr0_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(function_0) { this.ir0_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0).qpj = function (url, target) { return this.ir0_1(url, target); }; function ifLoggedInElseNavigateToLoginWithNextDestSet$lambda($apiUrlConfig$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('apiUrlConfig', KProperty0, false, function () { return THROW_ISE(); }); return $apiUrlConfig$delegate.t2(); } function UstadViewModel$onClickLinkUseCase$delegate$lambda(this$0) { return function () { var tmp = this$0.lqo(); // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(this$0.b57()).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(this$0.b57()).g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.e58(tmp$ret$2, null); return OnClickLinkUseCase_init_$Create$(this$0.xqn_1, tmp, tmp_2, tmp$ret$3); }; } function _no_name_provided__qut3iv_2($this, this$0) { this.hqz_1 = $this; this.iqz_1 = this$0; } protoOf(_no_name_provided__qut3iv_2).bqc = function (collector, $completion) { var tmp = new $collectCOROUTINE$60(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_2).b1c = function (collector, $completion) { return this.bqc(collector, $completion); }; function UstadViewModel$getJson$slambda(this$0, $deserializer, $jsonStr, resultContinuation) { this.rr0_1 = this$0; this.sr0_1 = $deserializer; this.tr0_1 = $jsonStr; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$getJson$slambda).vr0 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel$getJson$slambda).ie = function (p1, $completion) { return this.vr0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$getJson$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return this.rr0_1.n4r().t45(this.sr0_1, this.tr0_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadViewModel$getJson$slambda).w1m = function ($this$withContext, completion) { var i = new UstadViewModel$getJson$slambda(this.rr0_1, this.sr0_1, this.tr0_1, completion); i.ur0_1 = $this$withContext; return i; }; function UstadViewModel$getJson$slambda_0(this$0, $deserializer, $jsonStr, resultContinuation) { var i = new UstadViewModel$getJson$slambda(this$0, $deserializer, $jsonStr, resultContinuation); var l = function ($this$withContext, $completion) { return i.vr0($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$setJson$slambda(this$0, $serializer, $value, resultContinuation) { this.er1_1 = this$0; this.fr1_1 = $serializer; this.gr1_1 = $value; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$setJson$slambda).ir1 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel$setJson$slambda).ie = function (p1, $completion) { return this.ir1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$setJson$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return this.er1_1.n4r().s45(this.fr1_1, this.gr1_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadViewModel$setJson$slambda).w1m = function ($this$withContext, completion) { var i = new UstadViewModel$setJson$slambda(this.er1_1, this.fr1_1, this.gr1_1, completion); i.hr1_1 = $this$withContext; return i; }; function UstadViewModel$setJson$slambda_0(this$0, $serializer, $value, resultContinuation) { var i = new UstadViewModel$setJson$slambda(this$0, $serializer, $value, resultContinuation); var l = function ($this$withContext, $completion) { return i.ir1($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchIfHasPermission$slambda(this$0, $permissionCheck, $block, $onSetFieldsEnabled, resultContinuation) { this.rr1_1 = this$0; this.sr1_1 = $permissionCheck; this.tr1_1 = $block; this.ur1_1 = $onSetFieldsEnabled; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$launchIfHasPermission$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel$launchIfHasPermission$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$launchIfHasPermission$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 8; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 7; this.xr1_1 = this.rr1_1.qqo(); if (this.xr1_1 == null) { this.yr1_1 = null; this.id_1 = 3; continue $sm; } else { this.id_1 = 2; suspendResult = localFirstThenRepoIfFalse(this.xr1_1, this.sr1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.yr1_1 = suspendResult; this.id_1 = 3; continue $sm; case 3: this.zr1_1 = this.yr1_1; if (this.zr1_1 === false) { this.rr1_1.xqn_1.gqa('Error', emptyMap(), new UstadGoOptions(this.rr1_1.wqn_1, true)); this.id_1 = 5; continue $sm; } else { this.id_1 = 4; suspendResult = this.tr1_1(this.vr1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.id_1 = 5; continue $sm; case 5: this.wr1_1 = Unit_instance; this.jd_1 = 8; this.id_1 = 6; continue $sm; case 6: this.jd_1 = 8; l$ret$5: do { var this_0 = this.rr1_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(VOID, Companion_getInstance_98().pq7_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$5; } } } while (false); var tmp1_safe_receiver = this.ur1_1; if (tmp1_safe_receiver == null) null; else tmp1_safe_receiver(true); return Unit_instance; case 7: this.jd_1 = 8; var t = this.ld_1; l$ret$3: do { var this_1 = this.rr1_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(VOID, Companion_getInstance_98().pq7_1); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp1_safe_receiver_0 = this.ur1_1; if (tmp1_safe_receiver_0 == null) null; else tmp1_safe_receiver_0(true); throw t; case 8: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 8) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadViewModel$launchIfHasPermission$slambda).w1m = function ($this$launch, completion) { var i = new UstadViewModel$launchIfHasPermission$slambda(this.rr1_1, this.sr1_1, this.tr1_1, this.ur1_1, completion); i.vr1_1 = $this$launch; return i; }; function UstadViewModel$launchIfHasPermission$slambda_0(this$0, $permissionCheck, $block, $onSetFieldsEnabled, resultContinuation) { var i = new UstadViewModel$launchIfHasPermission$slambda(this$0, $permissionCheck, $block, $onSetFieldsEnabled, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchWithLoadingIndicator$slambda($onSetFieldsEnabled, this$0, $block, resultContinuation) { this.ir2_1 = $onSetFieldsEnabled; this.jr2_1 = this$0; this.kr2_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 4; this.ir2_1(false); l$ret$1: do { var this_0 = this.jr2_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(VOID, Companion_getInstance_98().oq7_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.aq7_1.iq6(VOID, VOID, false)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 2; suspendResult = this.kr2_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.mr2_1 = suspendResult; this.jd_1 = 5; this.id_1 = 3; continue $sm; case 3: this.jd_1 = 5; this.ir2_1(true); l$ret$7: do { var this_1 = this.jr2_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(VOID, Companion_getInstance_98().pq7_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.aq7_1.iq6(VOID, VOID, true)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$7; } } } while (false); return Unit_instance; case 4: this.jd_1 = 5; var t = this.ld_1; this.ir2_1(true); l$ret$5: do { var this_2 = this.jr2_1.zqn_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.hq7(VOID, Companion_getInstance_98().pq7_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.aq7_1.iq6(VOID, VOID, true)); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); throw t; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).w1m = function ($this$launch, completion) { var i = new UstadViewModel$launchWithLoadingIndicator$slambda(this.ir2_1, this.jr2_1, this.kr2_1, completion); i.lr2_1 = $this$launch; return i; }; function UstadViewModel$launchWithLoadingIndicator$slambda_0($onSetFieldsEnabled, this$0, $block, resultContinuation) { var i = new UstadViewModel$launchWithLoadingIndicator$slambda($onSetFieldsEnabled, this$0, $block, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadViewModel$ifLoggedInElseNavigateToLoginWithNextDestSet$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function $getJsonCOROUTINE$57(_this__u8e3s4, _this__u8e3s4_0, key, deserializer, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vr2_1 = _this__u8e3s4; this.wr2_1 = _this__u8e3s4_0; this.xr2_1 = key; this.yr2_1 = deserializer; } protoOf($getJsonCOROUTINE$57).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.zr2_1 = this.wr2_1.ba(this.xr2_1); if (!(this.zr2_1 == null)) { this.id_1 = 1; var tmp_0 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_0, UstadViewModel$getJson$slambda_0(this.vr2_1, this.yr2_1, this.zr2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.ar3_1 = null; this.id_1 = 2; continue $sm; } case 1: this.ar3_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.ar3_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $setJsonCOROUTINE$58(_this__u8e3s4, _this__u8e3s4_0, key, serializer, value, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jr3_1 = _this__u8e3s4; this.kr3_1 = _this__u8e3s4_0; this.lr3_1 = key; this.mr3_1 = serializer; this.nr3_1 = value; } protoOf($setJsonCOROUTINE$58).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_0, UstadViewModel$setJson$slambda_0(this.jr3_1, this.mr3_1, this.nr3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var jsonStr = suspendResult; this.kr3_1.yqj(this.lr3_1, jsonStr); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $loadEntityCOROUTINE$59(_this__u8e3s4, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wr3_1 = _this__u8e3s4; this.xr3_1 = serializer; this.yr3_1 = loadFromStateKeys; this.zr3_1 = savedStateKey; this.ar4_1 = onLoadFromDb; this.br4_1 = makeDefault; this.cr4_1 = uiUpdate; } protoOf($loadEntityCOROUTINE$59).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 19; var tmp_0 = this; tmp_0.dr4_1 = this.yr3_1; this.er4_1 = this.dr4_1.w(); this.id_1 = 1; continue $sm; case 1: if (!this.er4_1.f()) { this.id_1 = 3; continue $sm; } this.fr4_1 = this.er4_1.e(); var tmp_1 = this; tmp_1.gr4_1 = this.fr4_1; this.id_1 = 2; suspendResult = this.wr3_1.aqp(this.wr3_1.vqn_1, this.gr4_1, this.xr3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hr4_1 = suspendResult; if (!(this.hr4_1 == null)) { this.cr4_1(this.hr4_1); return this.hr4_1; } this.id_1 = 1; continue $sm; case 3: this.ir4_1 = this.ar4_1; if (this.ir4_1 == null) { this.jr4_1 = null; this.id_1 = 5; continue $sm; } else { this.id_1 = 4; suspendResult = this.ir4_1(this.wr3_1.pqo(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.jr4_1 = suspendResult; this.id_1 = 5; continue $sm; case 5: this.kr4_1 = this.jr4_1; if (!(this.kr4_1 == null)) { this.cr4_1(this.kr4_1); } this.jd_1 = 13; this.mr4_1 = this.wr3_1.qqo(); if (this.mr4_1 == null) { this.nr4_1 = null; this.id_1 = 8; continue $sm; } else { var tmp_2 = this; tmp_2.or4_1 = this.mr4_1; var tmp_3 = this; tmp_3.pr4_1 = this.or4_1; this.qr4_1 = this.ar4_1; if (this.qr4_1 == null) { this.rr4_1 = null; this.id_1 = 7; continue $sm; } else { this.id_1 = 6; suspendResult = this.qr4_1(this.pr4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 6: this.rr4_1 = suspendResult; this.id_1 = 7; continue $sm; case 7: this.nr4_1 = this.rr4_1; this.id_1 = 8; continue $sm; case 8: this.sr4_1 = this.nr4_1; if (this.sr4_1 == null) { this.id_1 = 9; suspendResult = this.br4_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.tr4_1 = this.sr4_1; this.id_1 = 10; continue $sm; } case 9: this.tr4_1 = suspendResult; this.id_1 = 10; continue $sm; case 10: this.ur4_1 = this.tr4_1; if (!(this.ur4_1 == null)) { this.id_1 = 11; suspendResult = this.wr3_1.bqp(this.wr3_1.vqn_1, this.zr3_1, this.xr3_1, this.ur4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 12; continue $sm; } case 11: this.id_1 = 12; continue $sm; case 12: this.cr4_1(this.ur4_1); this.lr4_1 = this.ur4_1; this.jd_1 = 19; this.id_1 = 18; continue $sm; case 13: this.jd_1 = 19; var tmp_4 = this.ld_1; if (tmp_4 instanceof Exception) { this.vr4_1 = this.ld_1; if (!(this.kr4_1 == null)) { this.id_1 = 14; suspendResult = this.wr3_1.bqp(this.wr3_1.vqn_1, this.zr3_1, this.xr3_1, this.kr4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 15; continue $sm; } } else { throw this.ld_1; } case 14: this.id_1 = 15; continue $sm; case 15: this.wr4_1 = this.kr4_1; if (this.wr4_1 == null) { this.id_1 = 16; suspendResult = this.br4_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.xr4_1 = this.wr4_1; this.id_1 = 17; continue $sm; } case 16: var this_0 = suspendResult; this.cr4_1(this_0); this.xr4_1 = this_0; this.id_1 = 17; continue $sm; case 17: this.lr4_1 = this.xr4_1; this.id_1 = 18; continue $sm; case 18: this.jd_1 = 19; return this.lr4_1; case 19: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 19) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function UstadViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_126(); ViewModel_init_$Init$(this); this.uqn_1 = di; this.vqn_1 = savedStateHandle; this.wqn_1 = destinationName; this.xqn_1 = new CommandFlowUstadNavController(); this.yqn_1 = this.xqn_1.fqa_1; this.zqn_1 = MutableStateFlow(new AppUiState()); this.aqo_1 = asStateFlow(this.zqn_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.bqo_1 = Instance(this, tmp$ret$0, null).b5d(this, accountManager$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().roa(); var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_2 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.i57(tmp$ret$2, context); var this_0 = On(this, tmp$ret$3, trigger); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_1.cqo_1 = Instance(this_0, tmp$ret$5, null).b5d(this, activeDataLayer$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = this.lqo().roa(); var trigger_0 = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_6 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$8 = tmp_6.i57(tmp$ret$7, context_0); var this_1 = On(this, tmp$ret$8, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_5.dqo_1 = Instance(this_1, tmp$ret$10, 1).b5d(this, activeDb$factory()); var tmp_9 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(NavResultReturner), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_9.eqo_1 = Instance(this, tmp$ret$12, null).b5d(this, navResultReturner$factory()); var tmp_11 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.fqo_1 = Instance(this, tmp$ret$14, null).b5d(this, json$factory_1()); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(SnackBarDispatcher), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.gqo_1 = Instance(this, tmp$ret$16, null).b5d(this, snackDispatcher$factory()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(NavResultReturner), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.hqo_1 = Instance(this, tmp$ret$18, null).b5d(this, resultReturner$factory()); var tmp_17 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.iqo_1 = Instance(this, tmp$ret$20, null).b5d(this, systemImpl$factory()); var tmp_19 = this; tmp_19.jqo_1 = lazy_0(UstadViewModel$onClickLinkUseCase$delegate$lambda(this)); var tmp_20 = this; var tmp0_safe_receiver = this.vqn_1.ba('collectedTs'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_20.kqo_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; if (this.kqo_1.equals(new Long(0, 0))) { _set_lastNavResultTimestampCollected__txfbew(this, systemTimeInMillis()); } } protoOf(UstadViewModel).b57 = function () { return this.uqn_1; }; protoOf(UstadViewModel).lqo = function () { // Inline function 'kotlin.getValue' call var this_0 = this.bqo_1; accountManager$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).mqo = function () { return get_viewModelScope(this); }; protoOf(UstadViewModel).nqo = function () { return this.lqo().aoa().unu_1.g96_1; }; protoOf(UstadViewModel).oqo = function () { // Inline function 'kotlin.getValue' call var this_0 = this.cqo_1; activeDataLayer$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).pqo = function () { // Inline function 'kotlin.getValue' call var this_0 = this.dqo_1; activeDb$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).qqo = function () { return this.oqo().vk2_1; }; protoOf(UstadViewModel).rqo = function () { return this.oqo().yk2(); }; protoOf(UstadViewModel).sqo = function () { // Inline function 'kotlin.getValue' call var this_0 = this.eqo_1; navResultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).n4r = function () { // Inline function 'kotlin.getValue' call var this_0 = this.fqo_1; json$factory_2(); return this_0.t2(); }; protoOf(UstadViewModel).tqo = function () { // Inline function 'kotlin.getValue' call var this_0 = this.gqo_1; snackDispatcher$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).uqo = function () { // Inline function 'kotlin.getValue' call var this_0 = this.hqo_1; resultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).vqo = function () { // Inline function 'kotlin.getValue' call var this_0 = this.iqo_1; systemImpl$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).wqo = function () { var popUpToViewName = this.vqn_1.ba('result_viewname'); var saveToKey = this.vqn_1.ba('result_key'); var tmp; if (!(popUpToViewName == null) ? !(saveToKey == null) : false) { tmp = new NavResultDest(popUpToViewName, saveToKey); } else { tmp = null; } return tmp; }; protoOf(UstadViewModel).xqo = function (value) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel..' call var nextValue = prevValue.hq7(VOID, value); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(UstadViewModel).yqo = function () { return this.zqn_1.t2().tq6_1; }; protoOf(UstadViewModel).zqo = function (_this__u8e3s4, key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = _this__u8e3s4.vqa(key); // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_2(this_0, this); }; protoOf(UstadViewModel).aqp = function (_this__u8e3s4, key, deserializer, $completion) { var tmp = new $getJsonCOROUTINE$57(this, _this__u8e3s4, key, deserializer, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel).bqp = function (_this__u8e3s4, key, serializer, value, $completion) { var tmp = new $setJsonCOROUTINE$58(this, _this__u8e3s4, key, serializer, value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel).hqv = function (_this__u8e3s4, viewUri, goOptions) { var viewName = substringBefore_0(viewUri, '?'); var tmp; if (contains(viewUri, '?')) { tmp = UMFileUtil_getInstance().parseURLQueryString(viewUri); } else { // Inline function 'kotlin.collections.mapOf' call tmp = emptyMap(); } var args = tmp; _this__u8e3s4.gqa(viewName, args, goOptions); }; protoOf(UstadViewModel).gqu = function (result) { var resultDest = this.wqo(); if (!(resultDest == null)) { this.sqo().wqa(new NavResult(resultDest.uqa_1, systemTimeInMillis(), result)); this.xqn_1.hqa(resultDest.tqa_1, false); } else { Companion_getInstance_117(); this.xqn_1.hqa('', true); } }; protoOf(UstadViewModel).cqp = function (nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination) { var navArgs = toMutableMap(args); // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.navigateForResult.' call if (!overwriteDestination) { tmp = navArgs; } else { tmp = null; } var tmp0_safe_receiver = tmp; if (tmp0_safe_receiver == null) null; else { this.iqp(tmp0_safe_receiver, 'result_key'); } if (!navArgs.r('result_key') ? true : overwriteDestination) { // Inline function 'kotlin.collections.set' call var key_0 = 'result_key'; navArgs.s(key_0, key); } // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_0; // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.navigateForResult.' call if (!overwriteDestination) { tmp_0 = navArgs; } else { tmp_0 = null; } var tmp1_safe_receiver = tmp_0; if (tmp1_safe_receiver == null) null; else { this.iqp(tmp1_safe_receiver, 'result_viewname'); } if (!navArgs.r('result_viewname') ? true : overwriteDestination) { // Inline function 'kotlin.collections.set' call var key_1 = 'result_viewname'; var value = this.wqn_1; navArgs.s(key_1, value); } if (!(currentValue == null)) { // Inline function 'kotlin.collections.set' call Companion_getInstance_116(); var value_0 = this.n4r().s45(serializer, currentValue); navArgs.s('entity', value_0); } this.xqn_1.gqa(nextViewName, toMap_0(navArgs), goOptions); }; protoOf(UstadViewModel).dqp = function (nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination, $super) { args = args === VOID ? emptyMap() : args; goOptions = goOptions === VOID ? Companion_getInstance_96().xq4_1 : goOptions; var tmp; if (overwriteDestination === VOID) { tmp = this instanceof UstadEditViewModel; } else { tmp = overwriteDestination; } overwriteDestination = tmp; var tmp_0; if ($super === VOID) { this.cqp(nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); tmp_0 = Unit_instance; } else { tmp_0 = $super.cqp.call(this, nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); } return tmp_0; }; protoOf(UstadViewModel).eqp = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) { var tmp = new $loadEntityCOROUTINE$59(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(UstadViewModel).fqp = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion, $super) { var tmp; if (loadFromStateKeys === VOID) { Companion_getInstance_116(); tmp = listOf(['entityState', 'entity']); } else { tmp = loadFromStateKeys; } loadFromStateKeys = tmp; savedStateKey = savedStateKey === VOID ? first_0(loadFromStateKeys) : savedStateKey; return $super === VOID ? this.eqp(serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) : $super.eqp.call(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); }; protoOf(UstadViewModel).gqp = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block) { if (setLoadingState) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.launchIfHasPermission.' call var nextValue = prevValue.hq7(VOID, Companion_getInstance_98().oq7_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } if (onSetFieldsEnabled == null) null; else onSetFieldsEnabled(false); var tmp = this.mqo(); launch(tmp, VOID, VOID, UstadViewModel$launchIfHasPermission$slambda_0(this, permissionCheck, block, onSetFieldsEnabled, null)); }; protoOf(UstadViewModel).hqp = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block, $super) { setLoadingState = setLoadingState === VOID ? false : setLoadingState; onSetFieldsEnabled = onSetFieldsEnabled === VOID ? null : onSetFieldsEnabled; var tmp; if ($super === VOID) { this.gqp(permissionCheck, setLoadingState, onSetFieldsEnabled, block); tmp = Unit_instance; } else { tmp = $super.gqp.call(this, permissionCheck, setLoadingState, onSetFieldsEnabled, block); } return tmp; }; protoOf(UstadViewModel).iqp = function (_this__u8e3s4, key) { putFromSavedStateIfPresent(_this__u8e3s4, this.vqn_1, key); }; protoOf(UstadViewModel).jqp = function (_this__u8e3s4, keys) { // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = keys.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.putAllFromSavedStateIfPresent.' call this.iqp(_this__u8e3s4, element); } }; protoOf(UstadViewModel).iqv = function (onSetFieldsEnabled, block) { var tmp = this.mqo(); launch(tmp, VOID, VOID, UstadViewModel$launchWithLoadingIndicator$slambda_0(onSetFieldsEnabled, this, block, null)); }; protoOf(UstadViewModel).kqp = function (requireAdultAccount, args, block) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var apiUrlConfig$delegate = Instance(this, tmp$ret$0, null).b5d(null, getLocalDelegateReference('apiUrlConfig', KProperty0, false, function () { return THROW_ISE(); })); // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.ifLoggedInElseNavigateToLoginWithNextDestSet.' call var it = this.lqo().aoa().unu_1; if (isGuestUser(it) ? true : requireAdultAccount ? !isDateOfBirthAnAdult(Companion_getInstance_6().mmh(it.p96_1)) : false) { var tmp_0 = this.wqn_1 + '?' + toQueryString(args); var tmp_1 = this.lqo(); var tmp_2 = UstadViewModel$ifLoggedInElseNavigateToLoginWithNextDestSet$lambda; navigateToLink(this.xqn_1, tmp_0, tmp_1, new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(tmp_2), new UstadGoOptions(this.wqn_1, true), VOID, ifLoggedInElseNavigateToLoginWithNextDestSet$lambda(apiUrlConfig$delegate).go6_1); } else { block(); } }; protoOf(UstadViewModel).lqp = function (requireAdultAccount, args, block, $super) { requireAdultAccount = requireAdultAccount === VOID ? false : requireAdultAccount; var tmp; if ($super === VOID) { this.kqp(requireAdultAccount, args, block); tmp = Unit_instance; } else { tmp = $super.kqp.call(this, requireAdultAccount, args, block); } return tmp; }; protoOf(UstadViewModel).mqp = function (contentEntryUid, clazzUid, cbUid) { var registrationUuid = uuid4(); var activityId = this.lqo().roa().cnu_1 + 'ns/xapi/contentEntry/' + contentEntryUid.toString(); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this.b57()).g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var xxStringHasher = tmp.e58(tmp$ret$0, null); var tmp_1 = get_doorPrimaryKeyManager(this.pqo()); var tmp1_xseUid = tmp_1.o62(400122); var tmp2_xseAccountPersonUid = this.nqo(); var tmp0_elvis_lhs = this.lqo().aoa().unu_1.h96_1; var tmp3_xseAccountUsername = tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs; var tmp4_xseRootActivityUid = xxStringHasher.om7(activityId); var tmp5_xseRegistrationHi = registrationUuid.cme(); var tmp6_xseRegistrationLo = registrationUuid.dme(); return new XapiSessionEntity(tmp1_xseUid, VOID, tmp5_xseRegistrationHi, tmp6_xseRegistrationLo, VOID, tmp2_xseAccountPersonUid, VOID, tmp3_xseAccountUsername, clazzUid, cbUid, contentEntryUid, VOID, activityId, tmp4_xseRootActivityUid); }; protoOf(UstadViewModel).nqp = function (contentEntryUid, clazzUid, cbUid, $super) { contentEntryUid = contentEntryUid === VOID ? new Long(0, 0) : contentEntryUid; var tmp; if (clazzUid === VOID) { var tmp0_safe_receiver = this.vqn_1.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } else { tmp = clazzUid; } clazzUid = tmp; var tmp_0; if (cbUid === VOID) { var tmp2_safe_receiver = this.vqn_1.ba('courseBlockUid'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); tmp_0 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; } else { tmp_0 = cbUid; } cbUid = tmp_0; return $super === VOID ? this.mqp(contentEntryUid, clazzUid, cbUid) : $super.mqp.call(this, contentEntryUid, clazzUid, cbUid); }; function accountManager$factory() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.lqo(); }, null); } function activeDataLayer$factory() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.oqo(); }, null); } function activeDb$factory() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.pqo(); }, null); } function navResultReturner$factory() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.sqo(); }, null); } function json$factory_1() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.n4r(); }, null); } function snackDispatcher$factory() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.tqo(); }, null); } function resultReturner$factory() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.uqo(); }, null); } function systemImpl$factory() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.vqo(); }, null); } function accountManager$factory_0() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.lqo(); }, null); } function activeDataLayer$factory_0() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.oqo(); }, null); } function activeDb$factory_0() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.pqo(); }, null); } function navResultReturner$factory_0() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.sqo(); }, null); } function json$factory_2() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.n4r(); }, null); } function snackDispatcher$factory_0() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.tqo(); }, null); } function resultReturner$factory_0() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.uqo(); }, null); } function systemImpl$factory_0() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.vqo(); }, null); } function Companion_109() { this.yr4_1 = 'OpenLicenses'; } var Companion_instance_157; function Companion_getInstance_127() { return Companion_instance_157; } function OpenLicensesViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'EpubContent'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.about.OpenLicensesViewModel.' call var tmp0_title = this.vqo().soj(strings_getInstance().cnn_1); var nextValue = prevValue.hq7(VOID, VOID, tmp0_title, false, true, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } function AddAccountSelectNewOrExistingViewModel$getCredentials$slambda$lambda($credentialResult) { return function () { return 'Error occurred: ' + $credentialResult.zr4_1; }; } function _get_supportLangConfig__jc22wi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wr5_1; supportLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xr5_1; setLanguageUseCase$factory_0(); return this_0.t2(); } function _get_decodeUserHandleUseCase__wbsil7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yr5_1; decodeUserHandleUseCase$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zr5_1; apiUrlConfig$factory_2(); return this_0.t2(); } function _get_impl__d88w17($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ar6_1; impl$factory_0(); return this_0.t2(); } function _get_getCredentialUseCase__qofq9r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cr6_1; getCredentialUseCase$factory_0(); return this_0.t2(); } function _get_parseCredentialUsernameUseCase__8m48wk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.er6_1; parseCredentialUsernameUseCase$factory_0(); return this_0.t2(); } function getCredentials($this) { var tmp = $this.mqo(); launch(tmp, VOID, VOID, AddAccountSelectNewOrExistingViewModel$getCredentials$slambda_0($this, null)); } function onLoginWithUsernameAndPasswordFromCredentialManager($this, credentialUsername, password) { var tmp = $this.mqo(); launch(tmp, VOID, VOID, AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda_0($this, credentialUsername, password, null)); } function goToNextDestAfterSignIn($this, person, serverUrl, $completion) { var tmp = new $goToNextDestAfterSignInCOROUTINE$61($this, person, serverUrl, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_110() { this.tr6_1 = 'AddAccountSelectNewOrExisting'; } var Companion_instance_158; function Companion_getInstance_128() { return Companion_instance_158; } function AddAccountSelectNewOrExistingViewModel$getCredentials$slambda(this$0, resultContinuation) { this.cr7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 7; this.jd_1 = 6; this.er7_1 = _get_getCredentialUseCase__qofq9r(this.cr7_1); if (this.er7_1 == null) { this.fr7_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.er7_1.spb(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fr7_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.gr7_1 = this.fr7_1; var tmp_0 = this.gr7_1; if (tmp_0 instanceof PasskeyCredentialResult) { var tmp_1 = this; var tmp1_elvis_lhs = this.gr7_1.tr7_1.dpc_1.zpb_1; var tmp_2; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('userHandle not found'); } else { tmp_2 = tmp1_elvis_lhs; } tmp_1.hr7_1 = tmp_2; this.ir7_1 = _get_decodeUserHandleUseCase__wbsil7(this.cr7_1).wp9(this.hr7_1); this.jr7_1 = this.ir7_1.y6(); this.id_1 = 3; suspendResult = this.cr7_1.lqo().zoa(this.gr7_1.tr7_1, this.jr7_1.cnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_3 = this.gr7_1; if (tmp_3 instanceof PasswordCredentialResult) { onLoginWithUsernameAndPasswordFromCredentialManager(this.cr7_1, this.gr7_1.rr7_1, this.gr7_1.sr7_1); this.id_1 = 5; continue $sm; } else { var tmp_4 = this.gr7_1; if (tmp_4 instanceof Error_2) { var tmp_5 = Napier_getInstance(); tmp_5.t5e(VOID, VOID, AddAccountSelectNewOrExistingViewModel$getCredentials$slambda$lambda(this.gr7_1)); l$ret$1: do { var this_0 = this.cr7_1.vr5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qr7(VOID, VOID, VOID, this.gr7_1.zr4_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 5; continue $sm; } else { var tmp_6; var tmp_7; var tmp_8 = this.gr7_1; if (tmp_8 instanceof NoCredentialAvailableResult) { tmp_7 = true; } else { var tmp_9 = this.gr7_1; tmp_7 = tmp_9 instanceof UserCanceledResult_0; } if (tmp_7) { tmp_6 = true; } else { tmp_6 = this.gr7_1 == null; } if (tmp_6) { this.id_1 = 5; continue $sm; } else { this.id_1 = 5; continue $sm; } } } } case 3: this.kr7_1 = suspendResult; this.id_1 = 4; suspendResult = goToNextDestAfterSignIn(this.cr7_1, this.kr7_1.kkz(), this.jr7_1.cnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.id_1 = 5; continue $sm; case 5: this.jd_1 = 7; this.id_1 = 8; continue $sm; case 6: this.jd_1 = 7; var tmp_10 = this.ld_1; if (tmp_10 instanceof Exception) { var e = this.ld_1; Napier_getInstance().r5e('AddAccountSelectNewOrExistingViewModel: getCredentials: Error occurred', e); this.id_1 = 8; continue $sm; } else { throw this.ld_1; } case 7: throw this.ld_1; case 8: this.jd_1 = 7; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 7) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).w1m = function ($this$launch, completion) { var i = new AddAccountSelectNewOrExistingViewModel$getCredentials$slambda(this.cr7_1, completion); i.dr7_1 = $this$launch; return i; }; function AddAccountSelectNewOrExistingViewModel$getCredentials$slambda_0(this$0, resultContinuation) { var i = new AddAccountSelectNewOrExistingViewModel$getCredentials$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda(this$0, $credentialUsername, $password, resultContinuation) { this.cr8_1 = this$0; this.dr8_1 = $credentialUsername; this.er8_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.gr8_1 = null; this.hr8_1 = _get_parseCredentialUsernameUseCase__8m48wk(this.cr8_1).wp9(this.dr8_1); this.ir8_1 = this.hr8_1.y6(); this.jr8_1 = this.hr8_1.z6(); this.id_1 = 1; continue $sm; case 1: this.jd_1 = 5; this.jd_1 = 4; this.id_1 = 2; var tmp_0 = this.cr8_1.lqo(); var this_0 = this.jr8_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.er8_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); Companion_getInstance_117(); var tmp1_safe_receiver = this.cr8_1.vqn_1.ba('maxDob'); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toLong_0(tmp1_safe_receiver); suspendResult = tmp_0.aob(tmp_1, tmp_2, this.ir8_1.cnu_1, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.cr8_1.br6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.lr8_1 = suspendResult; this.id_1 = 3; suspendResult = goToNextDestAfterSignIn(this.cr8_1, this.lr8_1.kkz(), this.ir8_1.cnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.kr8_1 = suspendResult; this.jd_1 = 6; this.id_1 = 7; continue $sm; case 4: this.jd_1 = 5; var tmp_3 = this.ld_1; if (tmp_3 instanceof AdultAccountRequiredException) { var e = this.ld_1; var tmp_4 = this; this.gr8_1 = _get_impl__d88w17(this.cr8_1).soj(strings_getInstance().pnf_1); tmp_4.kr8_1 = Unit_instance; this.jd_1 = 6; this.id_1 = 7; continue $sm; } else { var tmp_5 = this.ld_1; if (tmp_5 instanceof UnauthorizedException) { var e_0 = this.ld_1; var tmp_6 = this; this.gr8_1 = _get_impl__d88w17(this.cr8_1).soj(strings_getInstance().gmj_1); tmp_6.kr8_1 = Unit_instance; this.jd_1 = 6; this.id_1 = 7; continue $sm; } else { var tmp_7 = this.ld_1; if (tmp_7 instanceof ConsentNotGrantedException) { var e_1 = this.ld_1; var tmp_8 = this; this.gr8_1 = _get_impl__d88w17(this.cr8_1).soj(strings_getInstance().onf_1); tmp_8.kr8_1 = Unit_instance; this.jd_1 = 6; this.id_1 = 7; continue $sm; } else { var tmp_9 = this.ld_1; if (tmp_9 instanceof Exception) { var e_2 = this.ld_1; var tmp_10 = this; this.gr8_1 = _get_impl__d88w17(this.cr8_1).soj(strings_getInstance().hmj_1); tmp_10.kr8_1 = Unit_instance; this.jd_1 = 6; this.id_1 = 7; continue $sm; } else { throw this.ld_1; } } } } case 5: this.jd_1 = 6; var t = this.ld_1; this.cr8_1.xqo(Companion_getInstance_98().pq7_1); if (!(this.gr8_1 == null)) { this.cr8_1.tqo().wq7(new Snack(toString(this.gr8_1))); } throw t; case 6: throw this.ld_1; case 7: this.jd_1 = 6; this.cr8_1.xqo(Companion_getInstance_98().pq7_1); if (!(this.gr8_1 == null)) { this.cr8_1.tqo().wq7(new Snack(toString(this.gr8_1))); } return Unit_instance; } } catch ($p) { var e_3 = $p; if (this.jd_1 === 6) { throw e_3; } else { this.id_1 = this.jd_1; this.ld_1 = e_3; } } while (true); }; protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).w1m = function ($this$launch, completion) { var i = new AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda(this.cr8_1, this.dr8_1, this.er8_1, completion); i.fr8_1 = $this$launch; return i; }; function AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda_0(this$0, $credentialUsername, $password, resultContinuation) { var i = new AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda(this$0, $credentialUsername, $password, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AddAccountSelectNewOrExistingViewModel$goToNextDestAfterSignIn$lambda($nextDestVal) { return function () { return 'AddAccountSelectNewOrExistingViewModel: go to next destination: ' + $nextDestVal; }; } function $goToNextDestAfterSignInCOROUTINE$61(_this__u8e3s4, person, serverUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nr6_1 = _this__u8e3s4; this.or6_1 = person; this.pr6_1 = serverUrl; } protoOf($goToNextDestAfterSignInCOROUTINE$61).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.nr6_1.b57(); var context = new LearningSpace(this.pr6_1); var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); tmp_0.qr6_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); var tmp_5 = this; Companion_getInstance_117(); tmp_5.rr6_1 = this.nr6_1.vqn_1.ba('next'); if (this.rr6_1 == null) { this.id_1 = 1; suspendResult = this.qr6_1.w8q(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.sr6_1 = this.rr6_1; this.id_1 = 2; continue $sm; } case 1: this.sr6_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.sr6_1; var tmp_6; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('destination can not be null'); } else { tmp_6 = tmp1_elvis_lhs; } var nextDestVal = tmp_6; var tmp_7 = Napier_getInstance(); tmp_7.l5e(VOID, VOID, AddAccountSelectNewOrExistingViewModel$goToNextDestAfterSignIn$lambda(nextDestVal)); this.nr6_1.hqv(this.nr6_1.xqn_1, appendSelectedAccount(nextDestVal, this.or6_1.g96_1, new LearningSpace(this.pr6_1)), new UstadGoOptions(VOID, VOID, true)); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function AddAccountSelectNewOrExistingViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'AddAccountSelectNewOrExisting'); this.vr5_1 = MutableStateFlow(new AddAccountSelectNewOrExistingUiState()); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.wr5_1 = Instance(this, tmp$ret$0, null).b5d(this, supportLangConfig$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(SetLanguageUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.xr5_1 = Instance(this, tmp$ret$2, null).b5d(this, setLanguageUseCase$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(DecodeUserHandleUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.yr5_1 = Instance(this, tmp$ret$4, null).b5d(this, decodeUserHandleUseCase$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.zr5_1 = Instance(this, tmp$ret$6, null).b5d(this, apiUrlConfig$factory_1()); var tmp_7 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_7.ar6_1 = Instance(this, tmp$ret$8, null).b5d(this, impl$factory()); var tmp_9 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_9.br6_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; var tmp_10 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(GetCredentialUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_10.cr6_1 = InstanceOrNull(this, tmp$ret$10, null).b5d(this, getCredentialUseCase$factory()); this.dr6_1 = asStateFlow(this.vr5_1); var tmp_12 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(ParseCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_12.er6_1 = Instance(this, tmp$ret$12, null).b5d(this, parseCredentialUsernameUseCase$factory()); this.zqn_1.y1k(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, false, VOID, VOID, VOID, true)); var allLanguages = _get_supportLangConfig__jc22wi(this).vq8(this.vqo()); var currentLanguage = _get_supportLangConfig__jc22wi(this).uq8(this.vqo()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vr5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectneworexisting.AddAccountSelectNewOrExistingViewModel.' call var nextValue = new AddAccountSelectNewOrExistingUiState(currentLanguage, allLanguages); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } getCredentials(this); } protoOf(AddAccountSelectNewOrExistingViewModel).mr8 = function () { this.nr8(true); }; protoOf(AddAccountSelectNewOrExistingViewModel).or8 = function () { this.nr8(false); }; protoOf(AddAccountSelectNewOrExistingViewModel).nr8 = function (isNewUser) { var tmp; if (isNewUser) { Companion_getInstance_214(); tmp = 'new'; } else { Companion_getInstance_214(); tmp = 'existing'; } var userType = tmp; // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectneworexisting.AddAccountSelectNewOrExistingViewModel.navigateUser.' call this.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_126(); this.iqp(this_0, 'next'); Companion_getInstance_214(); this_0.s('newOrExisting', userType); var tmp0_safe_receiver = _get_apiUrlConfig__mldllg_0(this).eo6_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call Companion_getInstance_117(); this_0.s('learningSpaceUrl', tmp0_safe_receiver); } var args = this_0.f3(); var tmp_0; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = _get_apiUrlConfig__mldllg_0(this).eo6_1; // Inline function 'kotlin.contracts.contract' call if (!(this_1 == null ? true : charSequenceLength(this_1) === 0)) { var tmp_1; if (isNewUser) { tmp_1 = 'RegisterAgeRedirect'; } else { tmp_1 = 'Login'; } tmp_0 = tmp_1; } else { // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = _get_apiUrlConfig__mldllg_0(this).fo6_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_0 = 'LearningSpaceList'; } else { tmp_0 = 'AddAccountSelectUserType'; } } var destination = tmp_0; this.xqn_1.tp6(destination, args); }; protoOf(AddAccountSelectNewOrExistingViewModel).yr8 = function (uiLanguage) { if (!uiLanguage.equals(this.vr5_1.t2().lr7_1)) { var result = _get_setLanguageUseCase__st7nci(this).ppi(uiLanguage, 'AddAccountSelectNewOrExisting', this.xqn_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vr5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectneworexisting.AddAccountSelectNewOrExistingViewModel.onLanguageSelected.' call var nextValue = prevValue.qr7(uiLanguage, VOID, result.npi_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } }; function AddAccountSelectNewOrExistingUiState(currentLanguage, languageList, showWaitForRestart, errorText, fieldsEnabled) { currentLanguage = currentLanguage === VOID ? new UiLanguage('en', 'English') : currentLanguage; languageList = languageList === VOID ? listOf_0(currentLanguage) : languageList; showWaitForRestart = showWaitForRestart === VOID ? false : showWaitForRestart; errorText = errorText === VOID ? null : errorText; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; this.lr7_1 = currentLanguage; this.mr7_1 = languageList; this.nr7_1 = showWaitForRestart; this.or7_1 = errorText; this.pr7_1 = fieldsEnabled; } protoOf(AddAccountSelectNewOrExistingUiState).zr8 = function (currentLanguage, languageList, showWaitForRestart, errorText, fieldsEnabled) { return new AddAccountSelectNewOrExistingUiState(currentLanguage, languageList, showWaitForRestart, errorText, fieldsEnabled); }; protoOf(AddAccountSelectNewOrExistingUiState).qr7 = function (currentLanguage, languageList, showWaitForRestart, errorText, fieldsEnabled, $super) { currentLanguage = currentLanguage === VOID ? this.lr7_1 : currentLanguage; languageList = languageList === VOID ? this.mr7_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.nr7_1 : showWaitForRestart; errorText = errorText === VOID ? this.or7_1 : errorText; fieldsEnabled = fieldsEnabled === VOID ? this.pr7_1 : fieldsEnabled; return $super === VOID ? this.zr8(currentLanguage, languageList, showWaitForRestart, errorText, fieldsEnabled) : $super.zr8.call(this, currentLanguage, languageList, showWaitForRestart, errorText, fieldsEnabled); }; protoOf(AddAccountSelectNewOrExistingUiState).toString = function () { return 'AddAccountSelectNewOrExistingUiState(currentLanguage=' + this.lr7_1 + ', languageList=' + this.mr7_1 + ', showWaitForRestart=' + this.nr7_1 + ', errorText=' + this.or7_1 + ', fieldsEnabled=' + this.pr7_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUiState).hashCode = function () { var result = this.lr7_1.hashCode(); result = imul(result, 31) + hashCode(this.mr7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nr7_1) | 0; result = imul(result, 31) + (this.or7_1 == null ? 0 : getStringHashCode(this.or7_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.pr7_1) | 0; return result; }; protoOf(AddAccountSelectNewOrExistingUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof AddAccountSelectNewOrExistingUiState)) return false; var tmp0_other_with_cast = other instanceof AddAccountSelectNewOrExistingUiState ? other : THROW_CCE(); if (!this.lr7_1.equals(tmp0_other_with_cast.lr7_1)) return false; if (!equals(this.mr7_1, tmp0_other_with_cast.mr7_1)) return false; if (!(this.nr7_1 === tmp0_other_with_cast.nr7_1)) return false; if (!(this.or7_1 == tmp0_other_with_cast.or7_1)) return false; if (!(this.pr7_1 === tmp0_other_with_cast.pr7_1)) return false; return true; }; function supportLangConfig$factory() { return getPropertyCallableRef('supportLangConfig', 1, KProperty1, function (receiver) { return _get_supportLangConfig__jc22wi(receiver); }, null); } function setLanguageUseCase$factory() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci(receiver); }, null); } function decodeUserHandleUseCase$factory() { return getPropertyCallableRef('decodeUserHandleUseCase', 1, KProperty1, function (receiver) { return _get_decodeUserHandleUseCase__wbsil7(receiver); }, null); } function apiUrlConfig$factory_1() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_0(receiver); }, null); } function impl$factory() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17(receiver); }, null); } function getCredentialUseCase$factory() { return getPropertyCallableRef('getCredentialUseCase', 1, KProperty1, function (receiver) { return _get_getCredentialUseCase__qofq9r(receiver); }, null); } function parseCredentialUsernameUseCase$factory() { return getPropertyCallableRef('parseCredentialUsernameUseCase', 1, KProperty1, function (receiver) { return _get_parseCredentialUsernameUseCase__8m48wk(receiver); }, null); } function supportLangConfig$factory_0() { return getPropertyCallableRef('supportLangConfig', 1, KProperty1, function (receiver) { return _get_supportLangConfig__jc22wi(receiver); }, null); } function setLanguageUseCase$factory_0() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci(receiver); }, null); } function decodeUserHandleUseCase$factory_0() { return getPropertyCallableRef('decodeUserHandleUseCase', 1, KProperty1, function (receiver) { return _get_decodeUserHandleUseCase__wbsil7(receiver); }, null); } function apiUrlConfig$factory_2() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_0(receiver); }, null); } function impl$factory_0() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17(receiver); }, null); } function getCredentialUseCase$factory_0() { return getPropertyCallableRef('getCredentialUseCase', 1, KProperty1, function (receiver) { return _get_getCredentialUseCase__qofq9r(receiver); }, null); } function parseCredentialUsernameUseCase$factory_0() { return getPropertyCallableRef('parseCredentialUsernameUseCase', 1, KProperty1, function (receiver) { return _get_parseCredentialUsernameUseCase__8m48wk(receiver); }, null); } function _get_apiUrlConfig__mldllg_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vr9_1; apiUrlConfig$factory_4(); return this_0.t2(); } function Companion_111() { this.zr9_1 = 'AddAccountSelectUserType'; } var Companion_instance_159; function Companion_getInstance_129() { return Companion_instance_159; } function AddAccountSelectNewOrExistingUserTypeViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'AddAccountSelectUserType'); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.vr9_1 = Instance(this, tmp$ret$0, null).b5d(this, apiUrlConfig$factory_3()); this.wr9_1 = MutableStateFlow(new AddAccountSelectNewOrExistingUserTypeUiState()); var tmp_1 = this; Companion_getInstance_214(); var tmp_2 = savedStateHandle.ba('newOrExisting'); Companion_getInstance_214(); tmp_1.xr9_1 = tmp_2 === 'new'; this.yr9_1 = _get_apiUrlConfig__mldllg_1(this).fo6_1; var tmp_3; if (this.xr9_1) { tmp_3 = this.vqo().soj(strings_getInstance().knq_1); } else { tmp_3 = this.vqo().soj(strings_getInstance().lnq_1); } var tmp0_title = tmp_3; this.zqn_1.y1k(new AppUiState(VOID, VOID, tmp0_title, false, VOID, VOID, false, VOID, VOID, VOID, false)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.wr9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectusertype.AddAccountSelectNewOrExistingUserTypeViewModel.' call var nextValue = prevValue.q6s(!(this.yr9_1 == null)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).bra = function () { return asStateFlow(this.wr9_1); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).cra = function () { var tmp; Companion_getInstance_214(); var tmp_0 = this.vqn_1.ba('newOrExisting'); Companion_getInstance_214(); if (tmp_0 === 'new') { tmp = 'RegisterAgeRedirect'; } else { tmp = 'Login'; } var tmp_1 = tmp; // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectusertype.AddAccountSelectNewOrExistingUserTypeViewModel.onClickPersonalAccount.' call this.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_214(); this_0.s('personalAccount', 'true'); Companion_getInstance_117(); var tmp0_elvis_lhs = this.yr9_1; var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Personal account button should not have been there...'); } else { tmp_2 = tmp0_elvis_lhs; } this_0.s('learningSpaceUrl', tmp_2); var tmp$ret$2 = this_0.f3(); this.xqn_1.tp6(tmp_1, tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).dra = function () { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectusertype.AddAccountSelectNewOrExistingUserTypeViewModel.onClickJoinLearningSpace.' call this.jqp(this_0, Companion_getInstance_214().wr8_1); var tmp$ret$2 = this_0.f3(); this.xqn_1.tp6('LearningSpaceList', tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).era = function () { }; function AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount) { showAddPersonalAccount = showAddPersonalAccount === VOID ? false : showAddPersonalAccount; this.ara_1 = showAddPersonalAccount; } protoOf(AddAccountSelectNewOrExistingUserTypeUiState).q6s = function (showAddPersonalAccount) { return new AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount); }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).toString = function () { return 'AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount=' + this.ara_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).hashCode = function () { return getBooleanHashCode(this.ara_1); }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof AddAccountSelectNewOrExistingUserTypeUiState)) return false; var tmp0_other_with_cast = other instanceof AddAccountSelectNewOrExistingUserTypeUiState ? other : THROW_CCE(); if (!(this.ara_1 === tmp0_other_with_cast.ara_1)) return false; return true; }; function apiUrlConfig$factory_3() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_1(receiver); }, null); } function apiUrlConfig$factory_4() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_1(receiver); }, null); } function AccountListViewModel$slambda$slambda(this$0, resultContinuation) { this.nra_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda).gny = function (it, $completion) { var tmp = this.hny(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$slambda$slambda).ie = function (p1, $completion) { return this.gny(p1 instanceof UserSessionWithPersonAndLearningSpace ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.nra_1.qrb_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.frc(this.ora_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AccountListViewModel$slambda$slambda).hny = function (it, completion) { var i = new AccountListViewModel$slambda$slambda(this.nra_1, completion); i.ora_1 = it; return i; }; function AccountListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new AccountListViewModel$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.gny(it, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.orc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda$slambda).qrc = function (accountList, $completion) { var tmp = this.rrc(accountList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.qrc((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var currentUserSessionUid = this.orc_1.lqo().aoa().tnu_1.tij_1; var this_0 = this.prc_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var isFilteredOutActiveAccount = this.orc_1.mrb_1 === 'header' ? element.tnu_1.tij_1.equals(currentUserSessionUid) : false; var isFilteredOutByEndpoint = !(this.orc_1.lrb_1 == null) ? !(element.vnu_1.cnu_1 === this.orc_1.lrb_1) : false; var isFilteredOutByDateOfBirth = this.orc_1.nrb_1.c7(new Long(0, 0)) > 0 ? element.unu_1.p96_1.c7(this.orc_1.nrb_1) > 0 : false; if (!(((isFilteredOutActiveAccount ? true : isFilteredOutByEndpoint) ? true : isFilteredOutByDateOfBirth) ? true : isTemporary(element.tnu_1))) { destination.i1(element); } } var accountsToDisplay = destination; l$ret$1: do { var this_1 = this.orc_1.qrb_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.frc(VOID, accountsToDisplay); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AccountListViewModel$slambda$slambda$slambda).rrc = function (accountList, completion) { var i = new AccountListViewModel$slambda$slambda$slambda(this.orc_1, completion); i.prc_1 = accountList; return i; }; function AccountListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new AccountListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (accountList, $completion) { return i.qrc(accountList, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.ard_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda_1).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$slambda$slambda_1).n78 = function ($completion) { return this.k87($completion); }; protoOf(AccountListViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ard_1.lqo().qoa(); var tmp_1 = AccountListViewModel$slambda$slambda$slambda_0(this.ard_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_5(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda$slambda_1).m78 = function (completion) { return new AccountListViewModel$slambda$slambda_1(this.ard_1, completion); }; function AccountListViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new AccountListViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function AccountListViewModel$onClickLogout$slambda$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function AccountListViewModel$onClickLogout$slambda$lambda_0(this$0) { return function (it) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = this$0.b57(); var trigger = this_0.e57(); // Inline function 'org.kodein.di.diContext' call var tmp = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.i57(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).g58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); return tmp_1.e58(tmp$ret$3, null); }; } function _get_apiUrlConfig__mldllg_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.orb_1; apiUrlConfig$factory_6(); return this_0.t2(); } function _get_shareAppUseCase__louoas($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.prb_1; shareAppUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.srb_1; getVersionUseCase$factory_0(); return this_0.t2(); } function _get_launchOpenLicensesUseCase__f5qz1z($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.trb_1; launchOpenLicensesUseCase$factory_0(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.urb_1; getShowPoweredByUseCase$factory_0(); return this_0.t2(); } function Companion_112() { this.brd_1 = 'AccountList'; this.crd_1 = 'filterByLearningSpace'; this.drd_1 = 'activeAccountMode'; this.erd_1 = 'header'; this.frd_1 = 'inlist'; } var Companion_instance_160; function Companion_getInstance_130() { return Companion_instance_160; } function sam$kotlinx_coroutines_flow_FlowCollector$0_5(function_0) { this.grd_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_5).u1d = function (value, $completion) { return this.grd_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0(function_0) { this.hrd_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0).qpj = function (url, target) { return this.hrd_1(url, target); }; function AccountListViewModel$slambda(this$0, resultContinuation) { this.qrd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.qrd_1.lqo().ooa(); var tmp_1 = AccountListViewModel$slambda$slambda_0(this.qrd_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_5(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new AccountListViewModel$slambda(this.qrd_1, completion); i.rrd_1 = $this$launch; return i; }; function AccountListViewModel$slambda_0(this$0, resultContinuation) { var i = new AccountListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda_1(this$0, resultContinuation) { this.are_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.are_1.qrb_1, AccountListViewModel$slambda$slambda_2(this.are_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new AccountListViewModel$slambda_1(this.are_1, completion); i.bre_1 = $this$launch; return i; }; function AccountListViewModel$slambda_2(this$0, resultContinuation) { var i = new AccountListViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickLogout$slambda(this$0, $currentSession, resultContinuation) { this.kre_1 = this$0; this.lre_1 = $currentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickLogout$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$onClickLogout$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickLogout$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.kre_1.lqo().yoa(this.lre_1, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_$receiver = this.kre_1.xqn_1; Companion_getInstance_141(); var tmp1_link = 'CourseListHome'; var tmp2_accountManager = this.kre_1.lqo(); var tmp_0 = AccountListViewModel$onClickLogout$slambda$lambda; var tmp3_openExternalLinkUseCase = new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0(tmp_0); var tmp4_userCanSelectServer = _get_apiUrlConfig__mldllg_2(this.kre_1).go6_1; var tmp5_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp6_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_2(this.kre_1).eo6_1; navigateToLink(tmp0_$receiver, tmp1_link, tmp2_accountManager, tmp3_openExternalLinkUseCase, tmp5_goOptions, VOID, tmp4_userCanSelectServer, VOID, VOID, VOID, VOID, tmp6_presetLearningSpaceUrl, AccountListViewModel$onClickLogout$slambda$lambda_0(this.kre_1)); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickLogout$slambda).w1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickLogout$slambda(this.kre_1, this.lre_1, completion); i.mre_1 = $this$launch; return i; }; function AccountListViewModel$onClickLogout$slambda_0(this$0, $currentSession, resultContinuation) { var i = new AccountListViewModel$onClickLogout$slambda(this$0, $currentSession, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickAddAccount$slambda(this$0, $args, resultContinuation) { this.vre_1 = this$0; this.wre_1 = $args; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickAddAccount$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$onClickAddAccount$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickAddAccount$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; if (!(this.vre_1.vrb_1 == null)) { this.id_1 = 1; suspendResult = this.vre_1.vrb_1.w7e().mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.yre_1 = false; this.id_1 = 2; continue $sm; } case 1: var tmp0_safe_receiver = suspendResult; var ARGUMENT = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yhn_1; this.yre_1 = ARGUMENT === false; this.id_1 = 2; continue $sm; case 2: if (this.yre_1) { var this_0 = LinkedHashMap_init_$Create$(); this.vre_1.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_214(); this_0.s('newOrExisting', 'existing'); Companion_getInstance_117(); this_0.s('learningSpaceUrl', toString_0(_get_apiUrlConfig__mldllg_2(this.vre_1).eo6_1)); var arg = this_0.f3(); this.vre_1.xqn_1.tp6('Login', arg); this.id_1 = 3; continue $sm; } else { this.vre_1.xqn_1.tp6('AddAccountSelectNewOrExisting', this.wre_1); this.id_1 = 3; continue $sm; } case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickAddAccount$slambda).w1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickAddAccount$slambda(this.vre_1, this.wre_1, completion); i.xre_1 = $this$launch; return i; }; function AccountListViewModel$onClickAddAccount$slambda_0(this$0, $args, resultContinuation) { var i = new AccountListViewModel$onClickAddAccount$slambda(this$0, $args, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickAccount$slambda(this$0, $sessionWithPersonAndLearningSpace, resultContinuation) { this.hrf_1 = this$0; this.irf_1 = $sessionWithPersonAndLearningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickAccount$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$onClickAccount$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickAccount$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.hrf_1.wrb_1.w8q(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_elvis_lhs = suspendResult; var tmp_0; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$('destination can not be null'); } else { tmp_0 = tmp0_elvis_lhs; } var viewName = tmp_0; var tmp2_$this = this.hrf_1.krb_1; var tmp3_navController = this.hrf_1.xqn_1; Companion_getInstance_126(); var tmp1_elvis_lhs = this.hrf_1.vqn_1.ba('next'); var tmp4_nextDest = tmp1_elvis_lhs == null ? viewName : tmp1_elvis_lhs; var tmp5_dontSetCurrentSession = this.hrf_1.xrb_1; tmp2_$this.ipp(this.irf_1, tmp4_nextDest, tmp3_navController, VOID, tmp5_dontSetCurrentSession); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickAccount$slambda).w1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickAccount$slambda(this.hrf_1, this.irf_1, completion); i.jrf_1 = $this$launch; return i; }; function AccountListViewModel$onClickAccount$slambda_0(this$0, $sessionWithPersonAndLearningSpace, resultContinuation) { var i = new AccountListViewModel$onClickAccount$slambda(this$0, $sessionWithPersonAndLearningSpace, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickDeleteAccount$slambda(this$0, $session, resultContinuation) { this.srf_1 = this$0; this.trf_1 = $session; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickDeleteAccount$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$onClickDeleteAccount$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickDeleteAccount$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.srf_1.lqo().yoa(this.trf_1, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickDeleteAccount$slambda).w1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickDeleteAccount$slambda(this.srf_1, this.trf_1, completion); i.urf_1 = $this$launch; return i; }; function AccountListViewModel$onClickDeleteAccount$slambda_0(this$0, $session, resultContinuation) { var i = new AccountListViewModel$onClickDeleteAccount$slambda(this$0, $session, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickOpenLicenses$slambda($launchUseCaseVal, resultContinuation) { this.drg_1 = $launchUseCaseVal; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickOpenLicenses$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AccountListViewModel$onClickOpenLicenses$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickOpenLicenses$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.drg_1.k87(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickOpenLicenses$slambda).w1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickOpenLicenses$slambda(this.drg_1, completion); i.erg_1 = $this$launch; return i; }; function AccountListViewModel$onClickOpenLicenses$slambda_0($launchUseCaseVal, resultContinuation) { var i = new AccountListViewModel$onClickOpenLicenses$slambda($launchUseCaseVal, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel(di, savedStateHandle, startUserSessionUseCase) { var tmp; if (startUserSessionUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(di).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.e58(tmp$ret$0, null); tmp = new StartUserSessionUseCase(tmp$ret$1); } else { tmp = startUserSessionUseCase; } startUserSessionUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'AccountList'); this.krb_1 = startUserSessionUseCase; this.lrb_1 = savedStateHandle.ba('filterByLearningSpace'); var tmp_2 = this; var tmp0_elvis_lhs = savedStateHandle.ba('activeAccountMode'); tmp_2.mrb_1 = tmp0_elvis_lhs == null ? 'header' : tmp0_elvis_lhs; var tmp_3 = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.nrb_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_4 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.orb_1 = Instance(this, tmp$ret$2, null).b5d(this, apiUrlConfig$factory_5()); var tmp_6 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(ShareAppUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.prb_1 = InstanceOrNull(this, tmp$ret$4, null).b5d(this, shareAppUseCase$factory()); this.qrb_1 = MutableStateFlow(new AccountListUiState(VOID, VOID, _get_apiUrlConfig__mldllg_2(this).go6_1, VOID, VOID, !(_get_shareAppUseCase__louoas(this) == null))); this.rrb_1 = asStateFlow(this.qrb_1); var tmp_8 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(GetVersionUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); tmp_8.srb_1 = InstanceOrNull(this, tmp$ret$6, null).b5d(this, getVersionUseCase$factory()); var tmp_10 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(LaunchOpenLicensesUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_10.trb_1 = InstanceOrNull(this, tmp$ret$8, null).b5d(this, launchOpenLicensesUseCase$factory()); var tmp_12 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(GetShowPoweredByUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_12.urb_1 = InstanceOrNull(this, tmp$ret$10, null).b5d(this, getShowPoweredByUseCase$factory()); var tmp_14 = this; var tmp0_safe_receiver_0 = _get_apiUrlConfig__mldllg_2(this).eo6_1; var tmp_15; if (tmp0_safe_receiver_0 == null) { tmp_15 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.account.list.AccountListViewModel.presetRepo.' call // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(tmp0_safe_receiver_0); var trigger = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_16 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); var tmp$ret$13 = tmp_16.i57(tmp$ret$12, context); var tmp$ret$14 = On(di, tmp$ret$13, trigger); var tmp_18 = get_direct(tmp$ret$14).g58(); // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$15 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); tmp_15 = tmp_18.e58(tmp$ret$15, null).vk2_1; } tmp_14.vrb_1 = tmp_15; var tmp_20 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = this.lqo().aoa().vnu_1; var trigger_0 = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_21 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_22 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$19 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE(); var tmp$ret$20 = tmp_21.i57(tmp$ret$19, context_0); var tmp$ret$21 = On(di, tmp$ret$20, trigger_0); var tmp_23 = get_direct(tmp$ret$21).g58(); // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$22 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); tmp_20.wrb_1 = tmp_23.e58(tmp$ret$22, null); var tmp_25 = this; Companion_getInstance_126(); var tmp0_safe_receiver_1 = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : toBoolean(tmp0_safe_receiver_1); tmp_25.xrb_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_26; if (savedStateHandle.ba('listMode') === ListViewMode_PICKER_getInstance().uqk_1) { tmp_26 = this.vqo().soj(strings_getInstance().anb_1); } else { tmp_26 = this.vqo().soj(strings_getInstance().emm_1); } var tmp0_title = tmp_26; this.zqn_1.y1k(new AppUiState(VOID, VOID, tmp0_title, false, VOID, VOID, false)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qrb_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.list.AccountListViewModel.' call var tmp0_safe_receiver_2 = _get_getVersionUseCase__n7x57g(this); var tmp1_safe_receiver = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.zpe(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xpe_1; var tmp_27 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp3_safe_receiver = _get_getShowPoweredByUseCase__5l0p0e(this); var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.zpe(); var nextValue = prevValue.frc(VOID, VOID, VOID, tmp_27, tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'kotlin.takeIf' call var this_1 = this.mqo(); // Inline function 'kotlin.contracts.contract' call var tmp_28; // Inline function 'com.ustadmobile.core.viewmodel.account.list.AccountListViewModel.' call if (this.mrb_1 === 'header') { tmp_28 = this_1; } else { tmp_28 = null; } var tmp1_safe_receiver_0 = tmp_28; if (tmp1_safe_receiver_0 == null) null; else { launch(tmp1_safe_receiver_0, VOID, VOID, AccountListViewModel$slambda_0(this, null)); } var tmp_29 = this.mqo(); launch(tmp_29, VOID, VOID, AccountListViewModel$slambda_2(this, null)); } protoOf(AccountListViewModel).frg = function () { var tmp0_elvis_lhs = this.qrb_1.t2().yrb_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var currentSession = tmp; var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, AccountListViewModel$onClickLogout$slambda_0(this, currentSession, null)); }; protoOf(AccountListViewModel).grg = function () { var tmp0_safe_receiver = this.qrb_1.t2().yrb_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.unu_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g96_1; var tmp; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp2_elvis_lhs; } var personUid = tmp; Companion_getInstance_126(); this.xqn_1.tp6('PersonDetailView', mapOf_0(to('entityUid', personUid.toString()))); }; protoOf(AccountListViewModel).hrg = function () { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.account.list.AccountListViewModel.onClickAddAccount.' call if (!(this.lrb_1 == null)) { Companion_getInstance_126(); this_0.s('serverUrl', this.lrb_1); } Companion_getInstance_126(); Companion_getInstance_126(); this.jqp(this_0, listOf(['next', 'noSessionChange'])); Companion_getInstance_126(); Companion_getInstance_126(); var tmp0_elvis_lhs = this.vqn_1.ba('maxDob'); this_0.s('maxDob', tmp0_elvis_lhs == null ? '0' : tmp0_elvis_lhs); var args = this_0.f3(); var tmp = this.mqo(); launch(tmp, VOID, VOID, AccountListViewModel$onClickAddAccount$slambda_0(this, args, null)); }; protoOf(AccountListViewModel).irg = function (sessionWithPersonAndLearningSpace) { var tmp = this.mqo(); launch(tmp, VOID, VOID, AccountListViewModel$onClickAccount$slambda_0(this, sessionWithPersonAndLearningSpace, null)); }; protoOf(AccountListViewModel).jrg = function (session) { var tmp = this.mqo(); launch(tmp, VOID, VOID, AccountListViewModel$onClickDeleteAccount$slambda_0(this, session, null)); }; protoOf(AccountListViewModel).krg = function () { var launchUseCaseVal = _get_launchOpenLicensesUseCase__f5qz1z(this); if (!(launchUseCaseVal == null)) { var tmp = this.mqo(); launch(tmp, VOID, VOID, AccountListViewModel$onClickOpenLicenses$slambda_0(launchUseCaseVal, null)); } else { this.xqn_1.tp6('OpenLicenses', emptyMap()); } }; function AccountListUiState(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) { headerAccount = headerAccount === VOID ? null : headerAccount; accountsList = accountsList === VOID ? emptyList() : accountsList; showAccountEndpoint = showAccountEndpoint === VOID ? false : showAccountEndpoint; version = version === VOID ? '' : version; showPoweredBy = showPoweredBy === VOID ? false : showPoweredBy; shareAppOptionVisible = shareAppOptionVisible === VOID ? false : shareAppOptionVisible; shareAppBottomSheetVisible = shareAppBottomSheetVisible === VOID ? false : shareAppBottomSheetVisible; this.yrb_1 = headerAccount; this.zrb_1 = accountsList; this.arc_1 = showAccountEndpoint; this.brc_1 = version; this.crc_1 = showPoweredBy; this.drc_1 = shareAppOptionVisible; this.erc_1 = shareAppBottomSheetVisible; } protoOf(AccountListUiState).lrg = function () { return !(this.yrb_1 == null) ? !this.yrb_1.unu_1.g96_1.equals(new Long(0, 0)) : false; }; protoOf(AccountListUiState).mrg = function () { return !(this.yrb_1 == null) ? !isGuestUser(this.yrb_1.unu_1) : false; }; protoOf(AccountListUiState).nrg = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) { return new AccountListUiState(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).frc = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible, $super) { headerAccount = headerAccount === VOID ? this.yrb_1 : headerAccount; accountsList = accountsList === VOID ? this.zrb_1 : accountsList; showAccountEndpoint = showAccountEndpoint === VOID ? this.arc_1 : showAccountEndpoint; version = version === VOID ? this.brc_1 : version; showPoweredBy = showPoweredBy === VOID ? this.crc_1 : showPoweredBy; shareAppOptionVisible = shareAppOptionVisible === VOID ? this.drc_1 : shareAppOptionVisible; shareAppBottomSheetVisible = shareAppBottomSheetVisible === VOID ? this.erc_1 : shareAppBottomSheetVisible; return $super === VOID ? this.nrg(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) : $super.nrg.call(this, headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).toString = function () { return 'AccountListUiState(headerAccount=' + this.yrb_1 + ', accountsList=' + this.zrb_1 + ', showAccountEndpoint=' + this.arc_1 + ', version=' + this.brc_1 + ', showPoweredBy=' + this.crc_1 + ', shareAppOptionVisible=' + this.drc_1 + ', shareAppBottomSheetVisible=' + this.erc_1 + ')'; }; protoOf(AccountListUiState).hashCode = function () { var result = this.yrb_1 == null ? 0 : this.yrb_1.hashCode(); result = imul(result, 31) + hashCode(this.zrb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.arc_1) | 0; result = imul(result, 31) + getStringHashCode(this.brc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.crc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.drc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.erc_1) | 0; return result; }; protoOf(AccountListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof AccountListUiState)) return false; var tmp0_other_with_cast = other instanceof AccountListUiState ? other : THROW_CCE(); if (!equals(this.yrb_1, tmp0_other_with_cast.yrb_1)) return false; if (!equals(this.zrb_1, tmp0_other_with_cast.zrb_1)) return false; if (!(this.arc_1 === tmp0_other_with_cast.arc_1)) return false; if (!(this.brc_1 === tmp0_other_with_cast.brc_1)) return false; if (!(this.crc_1 === tmp0_other_with_cast.crc_1)) return false; if (!(this.drc_1 === tmp0_other_with_cast.drc_1)) return false; if (!(this.erc_1 === tmp0_other_with_cast.erc_1)) return false; return true; }; function apiUrlConfig$factory_5() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_2(receiver); }, null); } function shareAppUseCase$factory() { return getPropertyCallableRef('shareAppUseCase', 1, KProperty1, function (receiver) { return _get_shareAppUseCase__louoas(receiver); }, null); } function getVersionUseCase$factory() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g(receiver); }, null); } function launchOpenLicensesUseCase$factory() { return getPropertyCallableRef('launchOpenLicensesUseCase', 1, KProperty1, function (receiver) { return _get_launchOpenLicensesUseCase__f5qz1z(receiver); }, null); } function getShowPoweredByUseCase$factory() { return getPropertyCallableRef('getShowPoweredByUseCase', 1, KProperty1, function (receiver) { return _get_getShowPoweredByUseCase__5l0p0e(receiver); }, null); } function apiUrlConfig$factory_6() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_2(receiver); }, null); } function shareAppUseCase$factory_0() { return getPropertyCallableRef('shareAppUseCase', 1, KProperty1, function (receiver) { return _get_shareAppUseCase__louoas(receiver); }, null); } function getVersionUseCase$factory_0() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g(receiver); }, null); } function launchOpenLicensesUseCase$factory_0() { return getPropertyCallableRef('launchOpenLicensesUseCase', 1, KProperty1, function (receiver) { return _get_launchOpenLicensesUseCase__f5qz1z(receiver); }, null); } function getShowPoweredByUseCase$factory_0() { return getPropertyCallableRef('getShowPoweredByUseCase', 1, KProperty1, function (receiver) { return _get_getShowPoweredByUseCase__5l0p0e(receiver); }, null); } function launchSetTitleFromClazzUid(_this__u8e3s4, clazzUid, updateUi) { // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(_this__u8e3s4.b57()); // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var dataLayer$delegate = Instance(this_0, tmp$ret$0, null).b5d(null, getLocalDelegateReference('dataLayer', KProperty0, false, function () { return THROW_ISE(); })); // Inline function 'kotlin.takeIf' call var this_1 = _this__u8e3s4.mqo(); // Inline function 'kotlin.contracts.contract' call var tmp_0; // Inline function 'com.ustadmobile.core.viewmodel.clazz.launchSetTitleFromClazzUid.' call if (!clazzUid.equals(new Long(0, 0))) { tmp_0 = this_1; } else { tmp_0 = null; } var tmp0_safe_receiver = tmp_0; if (tmp0_safe_receiver == null) null; else { launch(tmp0_safe_receiver, VOID, VOID, launchSetTitleFromClazzUid$slambda_0(clazzUid, dataLayer$delegate, updateUi, null)); } } function launchSetTitleFromClazzUid$lambda($dataLayer$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('dataLayer', KProperty0, false, function () { return THROW_ISE(); }); return $dataLayer$delegate.t2(); } function sam$kotlinx_coroutines_flow_FlowCollector$0_6(function_0) { this.org_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_6).u1d = function (value, $completion) { return this.org_1(value, $completion); }; function launchSetTitleFromClazzUid$slambda$slambda($updateUi, resultContinuation) { this.xrg_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda$slambda).zrg = function (it, $completion) { var tmp = this.arh(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).ie = function (p1, $completion) { return this.zrg((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; this.xrg_1(this.yrg_1); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).arh = function (it, completion) { var i = new launchSetTitleFromClazzUid$slambda$slambda(this.xrg_1, completion); i.yrg_1 = it; return i; }; function launchSetTitleFromClazzUid$slambda$slambda_0($updateUi, resultContinuation) { var i = new launchSetTitleFromClazzUid$slambda$slambda($updateUi, resultContinuation); var l = function (it, $completion) { return i.zrg(it, $completion); }; l.$arity = 1; return l; } function launchSetTitleFromClazzUid$slambda($clazzUid, $dataLayer$delegate, $updateUi, resultContinuation) { this.jrh_1 = $clazzUid; this.krh_1 = $dataLayer$delegate; this.lrh_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(launchSetTitleFromClazzUid$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(launchSetTitleFromClazzUid$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = launchSetTitleFromClazzUid$lambda(this.krh_1).yk2().p7d().a8d(this.jrh_1); var tmp_1 = launchSetTitleFromClazzUid$slambda$slambda_0(this.lrh_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_6(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(launchSetTitleFromClazzUid$slambda).w1m = function ($this$launch, completion) { var i = new launchSetTitleFromClazzUid$slambda(this.jrh_1, this.krh_1, this.lrh_1, completion); i.mrh_1 = $this$launch; return i; }; function launchSetTitleFromClazzUid$slambda_0($clazzUid, $dataLayer$delegate, $updateUi, resultContinuation) { var i = new launchSetTitleFromClazzUid$slambda($clazzUid, $dataLayer$delegate, $updateUi, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function parseAndUpdateTerminologyStringsIfNeeded(currentTerminologyStrings, terminology, systemImpl, json, onUpdate) { var tmp = currentTerminologyStrings == null ? null : currentTerminologyStrings.iq9_1; if (!equals(tmp, terminology == null ? null : terminology.q8g_1)) { var tmp_0; if (terminology == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.parseAndUpdateTerminologyStringsIfNeeded.' call tmp_0 = CourseTerminologyStrings_init_$Create$(terminology, systemImpl, json); } var courseTerminologyStrings = tmp_0; onUpdate(courseTerminologyStrings); } } function collectClazzNameAndUpdateTitle(clazzUid, activeDb, appUiState, $completion) { var tmp = activeDb.p7d().a8d(clazzUid); var tmp_0 = collectClazzNameAndUpdateTitle$slambda_0(appUiState, null); return tmp.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_7(tmp_0), $completion); } function sam$kotlinx_coroutines_flow_FlowCollector$0_7(function_0) { this.nrh_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_7).u1d = function (value, $completion) { return this.nrh_1(value, $completion); }; function collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation) { this.wrh_1 = $appUiState; CoroutineImpl.call(this, resultContinuation); } protoOf(collectClazzNameAndUpdateTitle$slambda).zrg = function (clazzTitle, $completion) { var tmp = this.arh(clazzTitle, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(collectClazzNameAndUpdateTitle$slambda).ie = function (p1, $completion) { return this.zrg((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(collectClazzNameAndUpdateTitle$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.wrh_1; var tmp_0; if (!(this.wrh_1.t2().uq6_1 == this.xrh_1)) { tmp_0 = this_0; } else { tmp_0 = null; } var tmp0_safe_receiver = tmp_0; if (tmp0_safe_receiver == null) null; else { l$ret$1: do { while (true) { var prevValue = tmp0_safe_receiver.t2(); var nextValue = prevValue.hq7(VOID, VOID, this.xrh_1); if (tmp0_safe_receiver.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(collectClazzNameAndUpdateTitle$slambda).arh = function (clazzTitle, completion) { var i = new collectClazzNameAndUpdateTitle$slambda(this.wrh_1, completion); i.xrh_1 = clazzTitle; return i; }; function collectClazzNameAndUpdateTitle$slambda_0($appUiState, resultContinuation) { var i = new collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation); var l = function (clazzTitle, $completion) { return i.zrg(clazzTitle, $completion); }; l.$arity = 1; return l; } function get_blockTypeStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.v7x_1; var tmp; if (tmp0_subject === 102) { tmp = strings_getInstance().cn3_1; } else { if (tmp0_subject === 104) { tmp = strings_getInstance().pn4_1; } else { if (tmp0_subject === 100) { tmp = strings_getInstance().snh_1; } else { if (tmp0_subject === 103) { tmp = strings_getInstance().cn4_1; } else { if (tmp0_subject === 105) { tmp = strings_getInstance().xnh_1; } else { tmp = strings_getInstance().omi_1; } } } } } return tmp; } function CoursePermissionConstants() { CoursePermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().vnn_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1, 0)); var tmp_2 = strings_getInstance().bno_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().snj_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(2, 0)); var tmp_6 = strings_getInstance().wnn_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(4, 0)); var tmp_8 = strings_getInstance().xnn_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(8, 0)); var tmp_10 = strings_getInstance().ynn_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(16, 0)); var tmp_12 = strings_getInstance().nn2_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(32, 0)); var tmp_14 = strings_getInstance().pn2_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(64, 0)); var tmp_16 = strings_getInstance().znn_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(128, 0)); var tmp_18 = strings_getInstance().ano_1; PermissionFlags_getInstance(); tmp.yrh_1 = listOf([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, tmp_15, tmp_17, to(tmp_18, new Long(256, 0))]); } var CoursePermissionConstants_instance; function CoursePermissionConstants_getInstance() { if (CoursePermissionConstants_instance == null) new CoursePermissionConstants(); return CoursePermissionConstants_instance; } function getTitleForCoursePermission(_this__u8e3s4, entity, $completion) { var tmp = new $getTitleForCoursePermissionCOROUTINE$62(_this__u8e3s4, entity, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function titleStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.ddl_1; var tmp; if (tmp0_subject === 1000) { tmp = strings_getInstance().zml_1; } else { if (tmp0_subject === 1001) { tmp = strings_getInstance().emz_1; } else { tmp = null; } } return tmp; } function getTitleForCoursePermission$slambda($entity, resultContinuation) { this.uri_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda).wri = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(getTitleForCoursePermission$slambda).ie = function (p1, $completion) { return this.wri(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(getTitleForCoursePermission$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.vri_1.r7d().he7(this.uri_1.cdl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(getTitleForCoursePermission$slambda).enz = function (it, completion) { var i = new getTitleForCoursePermission$slambda(this.uri_1, completion); i.vri_1 = it; return i; }; function getTitleForCoursePermission$slambda_0($entity, resultContinuation) { var i = new getTitleForCoursePermission$slambda($entity, resultContinuation); var l = function (it, $completion) { return i.wri(it, $completion); }; l.$arity = 1; return l; } function getTitleForCoursePermission$slambda_1($entity, resultContinuation) { this.frj_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda_1).hrj = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(getTitleForCoursePermission$slambda_1).ie = function (p1, $completion) { return this.hrj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(getTitleForCoursePermission$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.grj_1.o7d(); var tmp0_safe_receiver = this.frj_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.edl_1; suspendResult = tmp_0.ng4(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp2_safe_receiver = suspendResult; return tmp2_safe_receiver == null ? null : personFullName(tmp2_safe_receiver); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(getTitleForCoursePermission$slambda_1).enz = function (it, completion) { var i = new getTitleForCoursePermission$slambda_1(this.frj_1, completion); i.grj_1 = it; return i; }; function getTitleForCoursePermission$slambda_2($entity, resultContinuation) { var i = new getTitleForCoursePermission$slambda_1($entity, resultContinuation); var l = function (it, $completion) { return i.hrj(it, $completion); }; l.$arity = 1; return l; } function $getTitleForCoursePermissionCOROUTINE$62(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hri_1 = _this__u8e3s4; this.iri_1 = entity; } protoOf($getTitleForCoursePermissionCOROUTINE$62).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var tmp_1 = get_direct(this.hri_1.b57()).g58(); var tmp_2 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); tmp_0.jri_1 = tmp_1.e58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; var tmp0_safe_receiver = this.iri_1; tmp_3.kri_1 = tmp0_safe_receiver == null ? null : titleStringResource(tmp0_safe_receiver); if (!(this.kri_1 == null)) { this.id_1 = 2; var tmp_4 = this.hri_1.rqo(); suspendResult = localFirstThenRepoIfNull(tmp_4, getTitleForCoursePermission$slambda_0(this.iri_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; var tmp_5 = this.hri_1.rqo(); suspendResult = localFirstThenRepoIfNull(tmp_5, getTitleForCoursePermission$slambda_2(this.iri_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp5_elvis_lhs = suspendResult; this.lri_1 = tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs; this.id_1 = 3; continue $sm; case 2: var terminology = suspendResult; var tmp2_elvis_lhs = terminology == null ? null : toTerminologyEntries(terminology, this.jri_1, this.hri_1.vqo()); var terminologyEntries = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs; var tmp_6 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = terminologyEntries.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.lq9_1.equals(this.kri_1)) { tmp$ret$0 = element; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp3_safe_receiver = tmp$ret$0; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.mq9_1; tmp_6.lri_1 = tmp4_elvis_lhs == null ? this.hri_1.vqo().soj(this.kri_1) : tmp4_elvis_lhs; this.id_1 = 3; continue $sm; case 3: return this.lri_1; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function defaultCourseBannerImageIndex(courseName) { // Inline function 'kotlin.mod' call var r = avatarColorForName(courseName == null ? '' : courseName) % 5 | 0; return r + (5 & ((r ^ 5) & (r | (-r | 0))) >> 31) | 0; } function ClazzDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.qrj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).srj = function (it, $completion) { var tmp = this.trj(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.srj((p1 == null ? true : p1 instanceof ClazzAndDetailPermissions) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_safe_receiver = this.rrj_1; var clazz = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a8k_1; var tmp_0; if (clazz == null) { tmp_0 = emptyList(); } else { var tmp_1; var tmp_2 = clazz.c8e_1; Companion_getInstance_4(); if (hasFlag_0(tmp_2, new Long(1, 0))) { tmp_1 = this.rrj_1.b8k_1; } else { tmp_1 = false; } tmp_0 = createTabList(this.qrj_1, tmp_1, this.rrj_1.c8k_1, this.rrj_1.d8k_1); } var tabList = tmp_0; l$ret$1: do { var this_0 = this.qrj_1.qrk_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.trk(tabList); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).trj = function (it, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda$slambda(this.qrj_1, completion); i.rrj_1 = it; return i; }; function ClazzDetailViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.srj(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.crl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.crl_1.pqo().p7d().y8c(this.crl_1.nqo(), this.crl_1.pqn_1); var tmp_1 = ClazzDetailViewModel$slambda$slambda$slambda$slambda_0(this.crl_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_8(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda(this.crl_1, completion); i.drl_1 = $this$launch; return i; }; function ClazzDetailViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.mrl_1 = $this_launch; this.nrl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.mrl_1, VOID, VOID, ClazzDetailViewModel$slambda$slambda$slambda_0(this.nrl_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda).m78 = function (completion) { return new ClazzDetailViewModel$slambda$slambda(this.mrl_1, this.nrl_1, completion); }; function ClazzDetailViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new ClazzDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function createTabList($this, showAttendance, showMembers, showProgressReport) { Companion_getInstance_117(); var tabs = mutableListOf([new TabItem('CourseDetailOverviewView', mapOf_0(to('entityUid', $this.pqn_1.toString())), $this.vqo().soj(strings_getInstance().enj_1))]); if (showMembers) { Companion_getInstance_117(); tabs.i1(new TabItem('CourseMembers', mapOf_0(to('clazzUid', $this.pqn_1.toString())), capitalizeFirstLetter($this.vqo().soj(strings_getInstance().un1_1)))); } if (showProgressReport) { Companion_getInstance_117(); tabs.i1(new TabItem('Gradebook', mapOf_0(to('clazzUid', $this.pqn_1.toString())), $this.vqo().soj(strings_getInstance().unp_1))); } if (showAttendance) { Companion_getInstance_117(); tabs.i1(new TabItem('CourseLogListAttendanceView', mapOf_0(to('clazzUid', $this.pqn_1.toString())), $this.vqo().soj(strings_getInstance().sml_1))); } Companion_getInstance_117(); tabs.i1(new TabItem('CourseGroups', mapOf_0(to('clazzUid', $this.pqn_1.toString())), $this.vqo().soj(strings_getInstance().en1_1))); return toList(tabs); } function Companion_113() { this.orl_1 = 'Course'; } var Companion_instance_161; function Companion_getInstance_131() { return Companion_instance_161; } function sam$kotlinx_coroutines_flow_FlowCollector$0_8(function_0) { this.prl_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_8).u1d = function (value, $completion) { return this.prl_1(value, $completion); }; function ClazzDetailViewModel$slambda(this$0, resultContinuation) { this.yrl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.yrl_1.qrk_1, ClazzDetailViewModel$slambda$slambda_0(this.zrl_1, this.yrl_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzDetailViewModel$slambda(this.yrl_1, completion); i.zrl_1 = $this$launch; return i; }; function ClazzDetailViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Course'); this.qrk_1 = MutableStateFlow(new ClazzDetailUiState()); this.rrk_1 = asStateFlow(this.qrk_1); var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzDetailViewModel$slambda_0(this, null)); } function ClazzDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.srk_1 = tabs; } protoOf(ClazzDetailUiState).trk = function (tabs) { return new ClazzDetailUiState(tabs); }; protoOf(ClazzDetailUiState).toString = function () { return 'ClazzDetailUiState(tabs=' + this.srk_1 + ')'; }; protoOf(ClazzDetailUiState).hashCode = function () { return hashCode(this.srk_1); }; protoOf(ClazzDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzDetailUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzDetailUiState ? other : THROW_CCE(); if (!equals(this.srk_1, tmp0_other_with_cast.srk_1)) return false; return true; }; var ClazzAction_EDIT_instance; var ClazzAction_COPY_instance; function valueOf_0(value) { switch (value) { case 'EDIT': return ClazzAction_EDIT_getInstance(); case 'COPY': return ClazzAction_COPY_getInstance(); default: ClazzAction_initEntries(); THROW_IAE('No enum constant value.'); break; } } var ClazzAction_entriesInitialized; function ClazzAction_initEntries() { if (ClazzAction_entriesInitialized) return Unit_instance; ClazzAction_entriesInitialized = true; ClazzAction_EDIT_instance = new ClazzAction('EDIT', 0); ClazzAction_COPY_instance = new ClazzAction('COPY', 1); } function ClazzDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.irm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).gqg = function (hasPermission, $completion) { var tmp = this.hqg(hasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.irm_1.grn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wrn(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.jrm_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).hqg = function (hasPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda(this.irm_1, completion); i.jrm_1 = hasPermission; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (hasPermission, $completion) { return i.gqg(hasPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation) { this.fro_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.fro_1.rqo().q7f(); var tmp_1 = this.fro_1.lqo().poa().ckz_1; PermissionFlags_getInstance(); var tmp_2 = distinctUntilChanged(tmp_0.wi0(tmp_1, new Long(512, 0))); var tmp_3 = ClazzDetailOverviewViewModel$slambda$slambda$slambda_0(this.fro_1, null); suspendResult = tmp_2.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).m78 = function (completion) { return new ClazzDetailOverviewViewModel$slambda$slambda(this.fro_1, completion); }; function ClazzDetailOverviewViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.oro_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).sro = function (value, $completion) { var tmp = this.tro(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).ie = function (p1, $completion) { return this.sro(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.qro_1 = this.oro_1; var tmp_1 = this; tmp_1.rro_1 = this.pro_1; this.id_1 = 1; var it = this.rro_1; suspendResult = this.qro_1.u1d(it.ydn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).tro = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.oro_1, completion); i.pro_1 = value; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.sro(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$63(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.crp_1 = _this__u8e3s4; this.drp_1 = collector; } protoOf($collectCOROUTINE$63).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.erp_1 = this.drp_1; this.id_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.erp_1, null); suspendResult = this.crp_1.frp_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.orp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).qrp = function (courseBlockList, $completion) { var tmp = this.rrp(courseBlockList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.qrp((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.orp_1.grn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wrn(VOID, VOID, this.prp_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).rrp = function (courseBlockList, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.orp_1, completion); i.prp_1 = courseBlockList; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (courseBlockList, $completion) { return i.qrp(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.arq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).crq = function (blockStatuses, $completion) { var tmp = this.drq(blockStatuses, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.crq((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.arq_1.grn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wrn(VOID, VOID, VOID, this.brq_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).drq = function (blockStatuses, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this.arq_1, completion); i.brq_1 = blockStatuses; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (blockStatuses, $completion) { return i.crq(blockStatuses, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.mrq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).orq = function (scheduleList, $completion) { var tmp = this.prq(scheduleList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.orq((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.mrq_1.grn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wrn(VOID, this.nrq_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).prq = function (scheduleList, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this.mrq_1, completion); i.nrq_1 = scheduleList; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (scheduleList, $completion) { return i.orq(scheduleList, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.yrq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.yrq_1.rqo().q7d().jcl(this.yrq_1.pqn_1, false, false, systemTimeInMillis(), this.yrq_1.nqo()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.yrq_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.yrq_1, completion); i.zrq_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.irr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.irr_1.rqo().k7e().qje(this.irr_1.pqn_1, listOf_0(this.irr_1.nqo()), this.irr_1.nqo()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(this.irr_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this.irr_1, completion); i.jrr_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.srr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.srr_1.rqo().o7e().ahe(this.srr_1.pqn_1); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this.srr_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3(this.srr_1, completion); i.trr_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_3($this) { this.frp_1 = $this; } protoOf(_no_name_provided__qut3iv_3).vqf = function (collector, $completion) { var tmp = new $collectCOROUTINE$63(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_3).b1c = function (collector, $completion) { return this.vqf(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda($this_launch, this$0, resultContinuation) { this.crs_1 = $this_launch; this.drs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).gqg = function (hasViewPermission, $completion) { var tmp = this.hqg(hasViewPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; if (this.ers_1) { launch(this.crs_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.drs_1, null)); launch(this.crs_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_2(this.drs_1, null)); launch(this.crs_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_4(this.drs_1, null)); } else { l$ret$1: do { var this_0 = this.drs_1.grn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wrn(VOID, VOID, emptyList()); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).hqg = function (hasViewPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.crs_1, this.drs_1, completion); i.ers_1 = hasViewPermission; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda($this_launch, this$0, resultContinuation); var l = function (hasViewPermission, $completion) { return i.gqg(hasViewPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.grn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel......' call var nextValue = prevValue.wrn(VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).prs = function (clazzWithDisplayDetails, permissions, $completion) { var tmp = this.qrs(clazzWithDisplayDetails, permissions, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).vm = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof ClazzAndDisplayDetails) ? p1 : THROW_CCE(); return this.prs(tmp, p2 instanceof PermissionTriple ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.nrs_1; var tmp_0; if (this.ors_1.ydn_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).qrs = function (clazzWithDisplayDetails, permissions, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.nrs_1 = clazzWithDisplayDetails; i.ors_1 = permissions; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(resultContinuation); var l = function (clazzWithDisplayDetails, permissions, $completion) { return i.prs(clazzWithDisplayDetails, permissions, $completion); }; l.$arity = 2; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.zrs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).brt = function (it, $completion) { var tmp = this.crt(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.brt((p1 == null ? true : p1 instanceof ClazzAndDisplayDetails) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.zrs_1.grn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wrn(this.art_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_currentTerminologyStrings = this.zrs_1.grn_1.t2().srn_1; var tmp0_safe_receiver = this.art_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r8k_1; var tmp3_json = this.zrs_1.n4r(); var tmp4_systemImpl = this.zrs_1.vqo(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$lambda(this.zrs_1)); l$ret$3: do { var this_1 = this.zrs_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.art_1; var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.q8k_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t8d_1; var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).crt = function (it, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.zrs_1, completion); i.art_1 = it; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.brt(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) { this.lrt_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).sro = function (value, $completion) { var tmp = this.tro(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).ie = function (p1, $completion) { return this.sro(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.nrt_1 = this.lrt_1; var tmp_1 = this; tmp_1.ort_1 = this.mrt_1; this.id_1 = 1; var it = this.ort_1; suspendResult = this.nrt_1.u1d(it.zdn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).tro = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1(this.lrt_1, completion); i.mrt_1 = value; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_2($$this$unsafeFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.sro(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$64(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xrt_1 = _this__u8e3s4; this.yrt_1 = collector; } protoOf($collectCOROUTINE$64).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.zrt_1 = this.yrt_1; this.id_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_2(this.zrt_1, null); suspendResult = this.xrt_1.aru_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function _no_name_provided__qut3iv_4($this) { this.aru_1 = $this; } protoOf(_no_name_provided__qut3iv_4).vqf = function (collector, $completion) { var tmp = new $collectCOROUTINE$64(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_4).b1c = function (collector, $completion) { return this.vqf(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.jru_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).gqg = function (hasEditPermission, $completion) { var tmp = this.hqg(hasEditPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.jru_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(prevValue.sq6_1.nq7(this.kru_1)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.jru_1.grn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.wrn(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.kru_1); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).hqg = function (hasEditPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.jru_1, completion); i.kru_1 = hasEditPermission; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function (hasEditPermission, $completion) { return i.gqg(hasEditPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) { this.tru_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).sro = function (value, $completion) { var tmp = this.tro(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).ie = function (p1, $completion) { return this.sro(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.vru_1 = this.tru_1; var tmp_1 = this; tmp_1.wru_1 = this.uru_1; this.id_1 = 1; var it = this.wru_1; suspendResult = this.vru_1.u1d(it.ado_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).tro = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3(this.tru_1, completion); i.uru_1 = value; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_4($$this$unsafeFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.sro(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$65(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.frv_1 = _this__u8e3s4; this.grv_1 = collector; } protoOf($collectCOROUTINE$65).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.hrv_1 = this.grv_1; this.id_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_4(this.hrv_1, null); suspendResult = this.frv_1.irv_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function _no_name_provided__qut3iv_5($this) { this.irv_1 = $this; } protoOf(_no_name_provided__qut3iv_5).vqf = function (collector, $completion) { var tmp = new $collectCOROUTINE$65(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_5).b1c = function (collector, $completion) { return this.vqf(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.rrv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).gqg = function (canAddStudent, $completion) { var tmp = this.hqg(canAddStudent, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.rrv_1.grn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wrn(VOID, VOID, VOID, VOID, this.srv_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).hqg = function (canAddStudent, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.rrv_1, completion); i.srv_1 = canAddStudent; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation); var l = function (canAddStudent, $completion) { return i.gqg(canAddStudent, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation) { this.brw_1 = $permissionFlow; this.crw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = this.brw_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_3(this_0)); suspendResult = collectLatest(tmp_0, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.drw_1, this.crw_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_1(this.brw_1, this.crw_1, completion); i.drw_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_2($permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, $permissionFlow, resultContinuation) { this.mrw_1 = this$0; this.nrw_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.mrw_1.rqo().p7d().z8c(this.mrw_1.pqn_1, systemTimeInMillis(), this.mrw_1.nqo()); var tmp_1 = combine(tmp_0, this.nrw_1, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_2 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.mrw_1, null); suspendResult = tmp_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this.mrw_1, this.nrw_1, completion); i.orw_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_4(this$0, $permissionFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_5($permissionFlow, this$0, resultContinuation) { this.xrw_1 = $permissionFlow; this.yrw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = this.xrw_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_4(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.yrw_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_5(this.xrw_1, this.yrw_1, completion); i.zrw_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_6($permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_5($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_7($permissionFlow, this$0, resultContinuation) { this.irx_1 = $permissionFlow; this.jrx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = this.irx_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_5(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.jrx_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_7).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_7(this.irx_1, this.jrx_1, completion); i.krx_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_8($permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_7($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda_1($this_launch, $permissionFlow, this$0, resultContinuation) { this.trx_1 = $this_launch; this.urx_1 = $permissionFlow; this.vrx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda_1).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda_1).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.trx_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_2(this.urx_1, this.vrx_1, null)); launch(this.trx_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_4(this.vrx_1, this.urx_1, null)); launch(this.trx_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_6(this.urx_1, this.vrx_1, null)); launch(this.trx_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_8(this.urx_1, this.vrx_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzDetailOverviewViewModel$slambda$slambda_1(this.trx_1, this.urx_1, this.vrx_1, completion); }; function ClazzDetailOverviewViewModel$slambda$slambda_2($this_launch, $permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda_1($this_launch, $permissionFlow, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function _get_setClipboardStringUseCase__31i1s1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.irn_1; setClipboardStringUseCase$factory_0(); return this_0.t2(); } function _get_copyCourseUseCase__jeltyi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lrn_1; copyCourseUseCase$factory_0(); return this_0.t2(); } function onClickEdit($this) { Companion_getInstance_117(); var tmp = to('entityUid', $this.pqn_1.toString()); Companion_getInstance_117(); $this.xqn_1.tp6('CourseEdit', mapOf([tmp, to('clazzAction', 'EDIT')])); } function Companion_114() { this.wrx_1 = 'CourseDetailOverviewView'; } var Companion_instance_162; function Companion_getInstance_132() { return Companion_instance_162; } function ClazzAction(name, ordinal) { Enum.call(this, name, ordinal); } function sam$kotlinx_coroutines_flow_FlowCollector$0_9(function_0) { this.xrx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_9).u1d = function (value, $completion) { return this.xrx_1(value, $completion); }; function ClazzDetailOverviewViewModel$onClickEdit$ref($boundThis) { var l = function () { onClickEdit($boundThis); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function ClazzDetailOverviewViewModel$slambda(this$0, resultContinuation) { this.gry_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.gry_1.grn_1, ClazzDetailOverviewViewModel$slambda$slambda_0(this.gry_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda(this.gry_1, completion); i.hry_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda_1(this$0, $permissionFlow, resultContinuation) { this.qry_1 = this$0; this.rry_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.qry_1.grn_1, ClazzDetailOverviewViewModel$slambda$slambda_2(this.sry_1, this.rry_1, this.qry_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda_1(this.qry_1, this.rry_1, completion); i.sry_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda_2(this$0, $permissionFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda_1(this$0, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$onClickCopyCourse$slambda(this$0, resultContinuation) { this.brz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$onClickCopyCourse$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzDetailOverviewViewModel$onClickCopyCourse$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$onClickCopyCourse$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.brz_1.grn_1.t2().frz(); var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.drz_1 = tmp_1; this.erz_1 = this.brz_1.grn_1.t2().nrn_1; this.id_1 = 1; suspendResult = _get_copyCourseUseCase__jeltyi(this.brz_1).irz(this.drz_1, this.erz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; this_0.jrz_1.t8d_1 = this.brz_1.vqo().soj(strings_getInstance().knr_1) + ' ' + this_0.jrz_1.t8d_1; var copyResult = this_0; Companion_getInstance_117(); var tmp_2 = to('clazzAction', 'COPY'); Companion_getInstance_116(); var this_1 = this.brz_1.n4r(); var value = copyResult.jrz_1; var this_2 = this_1.u45(); var this_3 = serializer(this_2, createKType(getKClass(ClazzWithHolidayCalendarAndAndTerminology), arrayOf([]), false)); var tmp_3 = to('entity', this_1.s45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), value)); var this_4 = this.brz_1.n4r(); var value_0 = copyResult.krz_1; var this_5 = this_4.u45(); var this_6 = serializer(this_5, createKType(getKClass(List), arrayOf([createInvariantKTypeProjection(createKType(getKClass(CourseBlockAndEditEntities), arrayOf([]), false))]), false)); var tmp_4 = to('courseblocks', this_4.s45(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), value_0)); var this_7 = this.brz_1.n4r(); var value_1 = copyResult.lrz_1; var this_8 = this_7.u45(); var this_9 = serializer(this_8, createKType(getKClass(List), arrayOf([createInvariantKTypeProjection(createKType(getKClass(Schedule), arrayOf([]), false))]), false)); this.brz_1.xqn_1.tp6('CourseEdit', mapOf([tmp_2, tmp_3, tmp_4, to('schedule', this_7.s45(isInterface(this_9, KSerializer) ? this_9 : THROW_CCE(), value_1))])); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$onClickCopyCourse$slambda).w1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$onClickCopyCourse$slambda(this.brz_1, completion); i.crz_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$onClickCopyCourse$slambda_0(this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$onClickCopyCourse$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAction_EDIT_getInstance() { ClazzAction_initEntries(); return ClazzAction_EDIT_instance; } function ClazzAction_COPY_getInstance() { ClazzAction_initEntries(); return ClazzAction_COPY_instance; } function ClazzDetailOverviewViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'CourseDetailOverviewView' : destinationName; DetailViewModel.call(this, di, savedStateHandle, destinationName); this.grn_1 = MutableStateFlow(new ClazzDetailOverviewUiState()); this.hrn_1 = asStateFlow(this.grn_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.irn_1 = Instance(this, tmp$ret$0, null).b5d(this, setClipboardStringUseCase$factory()); this.jrn_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.krn_1 = asSharedFlow(this.jrn_1); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(CopyCourseUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.lrn_1 = Instance(this_0, tmp$ret$2, null).b5d(this, copyCourseUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.' call var tmp_3 = this.vqo().soj(strings_getInstance().amw_1); var tmp_4 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.hq7(new FabUiState(false, tmp_3, tmp_4, ClazzDetailOverviewViewModel$onClickEdit$ref(this))); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_5 = this.mqo(); launch(tmp_5, VOID, VOID, ClazzDetailOverviewViewModel$slambda_0(this, null)); var tmp_6 = this.rqo().p7f(); var tmp_7 = this.nqo(); PermissionFlags_getInstance(); var tmp_8 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_9 = new Long(2, 0); PermissionFlags_getInstance(); var permissionFlow = shareIn(tmp_6.jdk(tmp_7, this.pqn_1, tmp_8, tmp_9, new Long(8, 0)), this.mqo(), Companion_getInstance_13().w1h()); var tmp_10 = this.mqo(); launch(tmp_10, VOID, VOID, ClazzDetailOverviewViewModel$slambda_2(this, permissionFlow, null)); } protoOf(ClazzDetailOverviewViewModel).mrz = function (code) { _get_setClipboardStringUseCase__31i1s1(this).yp1(code); this.tqo().wq7(new Snack(this.vqo().soj(strings_getInstance().cn9_1))); }; protoOf(ClazzDetailOverviewViewModel).nrz = function (courseBlock) { Companion_getInstance_126(); var tmp = to('entityUid', courseBlock.u7x_1.toString()); Companion_getInstance_126(); var navArgs = mapOf([tmp, to('clazzUid', this.pqn_1.toString())]); var tmp0_subject = courseBlock.v7x_1; if (tmp0_subject === 100) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.grn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.onClickCourseBlock.' call var nextValue = prevValue.wrn(VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.rrn_1, courseBlock.u7x_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.jrn_1.j1h(new RefreshCommand()); } else { if (tmp0_subject === 102) { this.xqn_1.tp6('CourseText', navArgs); } else { if (tmp0_subject === 103) { this.xqn_1.tp6('CourseAssignment', navArgs); } else { if (tmp0_subject === 105) { this.xqn_1.tp6('CourseDiscussion', navArgs); } else { if (tmp0_subject === 104) { Companion_getInstance_161(); Companion_getInstance_126(); var tmp_0 = to('entityUid', courseBlock.m7y_1.toString()); Companion_getInstance_126(); var tmp_1 = to('clazzUid', this.pqn_1.toString()); Companion_getInstance_126(); this.xqn_1.tp6('ContentEntry', mapOf([tmp_0, tmp_1, to('courseBlockUid', courseBlock.u7x_1.toString())])); } } } } } }; protoOf(ClazzDetailOverviewViewModel).orz = function () { Companion_getInstance_126(); this.xqn_1.tp6('CoursePermissionList', mapOf_0(to('clazzUid', this.pqn_1.toString()))); }; protoOf(ClazzDetailOverviewViewModel).prz = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzDetailOverviewViewModel$onClickCopyCourse$slambda_0(this, null)); }; function ClazzDetailOverviewUiState$displayBlockList$delegate$lambda(this$0) { return function () { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this$0.orn_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewUiState.displayBlockList$delegate..' call var tmp0_safe_receiver = element.aco_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x7x_1; if (!this$0.rrn_1.a1(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)) { destination.i1(element); } } return destination; }; } function ClazzDetailOverviewUiState(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse) { clazzAndDetail = clazzAndDetail === VOID ? null : clazzAndDetail; scheduleList = scheduleList === VOID ? emptyList() : scheduleList; courseBlockList = courseBlockList === VOID ? emptyList() : courseBlockList; blockStatusesForActiveUser = blockStatusesForActiveUser === VOID ? emptyList() : blockStatusesForActiveUser; clazzCodeVisible = clazzCodeVisible === VOID ? false : clazzCodeVisible; collapsedBlockUids = collapsedBlockUids === VOID ? emptySet() : collapsedBlockUids; terminologyStrings = terminologyStrings === VOID ? null : terminologyStrings; managePermissionVisible = managePermissionVisible === VOID ? false : managePermissionVisible; canAddNewCourse = canAddNewCourse === VOID ? false : canAddNewCourse; this.mrn_1 = clazzAndDetail; this.nrn_1 = scheduleList; this.orn_1 = courseBlockList; this.prn_1 = blockStatusesForActiveUser; this.qrn_1 = clazzCodeVisible; this.rrn_1 = collapsedBlockUids; this.srn_1 = terminologyStrings; this.trn_1 = managePermissionVisible; this.urn_1 = canAddNewCourse; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.vrn_1 = lazy(tmp_0, ClazzDetailOverviewUiState$displayBlockList$delegate$lambda(this)); } protoOf(ClazzDetailOverviewUiState).frz = function () { var tmp0_safe_receiver = this.mrn_1; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8k_1; }; protoOf(ClazzDetailOverviewUiState).qrz = function () { var tmp; var tmp0_safe_receiver = this.mrn_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8k_1; if (isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a8e_1)) { tmp = true; } else { var tmp2_safe_receiver = this.mrn_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.q8k_1; tmp = isDateSet(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.b8e_1); } return tmp; }; protoOf(ClazzDetailOverviewUiState).rrz = function () { var tmp0_safe_receiver = this.mrn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).srz = function () { var tmp0_safe_receiver = this.mrn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).trz = function () { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.orn_1; var tmp; if (isInterface(this_0, Collection)) { tmp = this_0.c1(); } else { tmp = false; } if (tmp) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewUiState..' call var tmp0_safe_receiver = element.aco_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7x_1; if (tmp_0 === 100) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } return tmp$ret$0; }; protoOf(ClazzDetailOverviewUiState).urz = function () { var tmp2_safe_receiver = this.srn_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jq9(strings_getInstance().emz_1); var tmp = (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs) + ': ' + this.srz() + ', '; var tmp0_safe_receiver = this.srn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jq9(strings_getInstance().zml_1); return tmp + ((tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ': ' + this.rrz()); }; protoOf(ClazzDetailOverviewUiState).vrz = function () { return this.trn_1; }; protoOf(ClazzDetailOverviewUiState).wrz = function () { // Inline function 'kotlin.getValue' call var this_0 = this.vrn_1; displayBlockList$factory(); return this_0.t2(); }; protoOf(ClazzDetailOverviewUiState).xrz = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse) { return new ClazzDetailOverviewUiState(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse); }; protoOf(ClazzDetailOverviewUiState).wrn = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse, $super) { clazzAndDetail = clazzAndDetail === VOID ? this.mrn_1 : clazzAndDetail; scheduleList = scheduleList === VOID ? this.nrn_1 : scheduleList; courseBlockList = courseBlockList === VOID ? this.orn_1 : courseBlockList; blockStatusesForActiveUser = blockStatusesForActiveUser === VOID ? this.prn_1 : blockStatusesForActiveUser; clazzCodeVisible = clazzCodeVisible === VOID ? this.qrn_1 : clazzCodeVisible; collapsedBlockUids = collapsedBlockUids === VOID ? this.rrn_1 : collapsedBlockUids; terminologyStrings = terminologyStrings === VOID ? this.srn_1 : terminologyStrings; managePermissionVisible = managePermissionVisible === VOID ? this.trn_1 : managePermissionVisible; canAddNewCourse = canAddNewCourse === VOID ? this.urn_1 : canAddNewCourse; return $super === VOID ? this.xrz(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse) : $super.xrz.call(this, clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, canAddNewCourse); }; protoOf(ClazzDetailOverviewUiState).toString = function () { return 'ClazzDetailOverviewUiState(clazzAndDetail=' + this.mrn_1 + ', scheduleList=' + this.nrn_1 + ', courseBlockList=' + this.orn_1 + ', blockStatusesForActiveUser=' + this.prn_1 + ', clazzCodeVisible=' + this.qrn_1 + ', collapsedBlockUids=' + this.rrn_1 + ', terminologyStrings=' + this.srn_1 + ', managePermissionVisible=' + this.trn_1 + ', canAddNewCourse=' + this.urn_1 + ')'; }; protoOf(ClazzDetailOverviewUiState).hashCode = function () { var result = this.mrn_1 == null ? 0 : this.mrn_1.hashCode(); result = imul(result, 31) + hashCode(this.nrn_1) | 0; result = imul(result, 31) + hashCode(this.orn_1) | 0; result = imul(result, 31) + hashCode(this.prn_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qrn_1) | 0; result = imul(result, 31) + hashCode(this.rrn_1) | 0; result = imul(result, 31) + (this.srn_1 == null ? 0 : this.srn_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.trn_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.urn_1) | 0; return result; }; protoOf(ClazzDetailOverviewUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzDetailOverviewUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzDetailOverviewUiState ? other : THROW_CCE(); if (!equals(this.mrn_1, tmp0_other_with_cast.mrn_1)) return false; if (!equals(this.nrn_1, tmp0_other_with_cast.nrn_1)) return false; if (!equals(this.orn_1, tmp0_other_with_cast.orn_1)) return false; if (!equals(this.prn_1, tmp0_other_with_cast.prn_1)) return false; if (!(this.qrn_1 === tmp0_other_with_cast.qrn_1)) return false; if (!equals(this.rrn_1, tmp0_other_with_cast.rrn_1)) return false; if (!equals(this.srn_1, tmp0_other_with_cast.srn_1)) return false; if (!(this.trn_1 === tmp0_other_with_cast.trn_1)) return false; if (!(this.urn_1 === tmp0_other_with_cast.urn_1)) return false; return true; }; function setClipboardStringUseCase$factory() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1(receiver); }, null); } function copyCourseUseCase$factory() { return getPropertyCallableRef('copyCourseUseCase', 1, KProperty1, function (receiver) { return _get_copyCourseUseCase__jeltyi(receiver); }, null); } function setClipboardStringUseCase$factory_0() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1(receiver); }, null); } function copyCourseUseCase$factory_0() { return getPropertyCallableRef('copyCourseUseCase', 1, KProperty1, function (receiver) { return _get_copyCourseUseCase__jeltyi(receiver); }, null); } function displayBlockList$factory() { return getPropertyCallableRef('displayBlockList', 1, KProperty1, function (receiver) { return receiver.wrz(); }, null); } function Companion_115() { Companion_instance_163 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.yrz_1 = [null, new ArrayListSerializer($serializer_getInstance_7()), new ArrayListSerializer($serializer_getInstance_8())]; } var Companion_instance_163; function Companion_getInstance_133() { if (Companion_instance_163 == null) new Companion_115(); return Companion_instance_163; } function $serializer_59() { $serializer_instance_59 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.detailoverview.CopyCourseUseCase.CopyCourseResult', this, 3); tmp0_serialDesc.u4f('clazz', false); tmp0_serialDesc.u4f('courseBlocks', false); tmp0_serialDesc.u4f('schedules', false); this.zrz_1 = tmp0_serialDesc; } protoOf($serializer_59).r44 = function () { return this.zrz_1; }; protoOf($serializer_59).l4g = function () { var tmp0_cached = Companion_getInstance_133().yrz_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_9(), tmp0_cached[1], tmp0_cached[2]]; }; protoOf($serializer_59).t44 = function (decoder) { var tmp0_desc = this.zrz_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.j48(tmp0_desc); var tmp8_cached = Companion_getInstance_133().yrz_1; if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.v48(tmp0_desc, 0, $serializer_getInstance_9(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.v48(tmp0_desc, 0, $serializer_getInstance_9(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return CopyCourseResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_59).as0 = function (encoder, value) { var tmp0_desc = this.zrz_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_133().yrz_1; tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance_9(), value.jrz_1); tmp1_output.z49(tmp0_desc, 1, tmp2_cached[1], value.krz_1); tmp1_output.z49(tmp0_desc, 2, tmp2_cached[2], value.lrz_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_59).s44 = function (encoder, value) { return this.as0(encoder, value instanceof CopyCourseResult ? value : THROW_CCE()); }; var $serializer_instance_59; function $serializer_getInstance_71() { if ($serializer_instance_59 == null) new $serializer_59(); return $serializer_instance_59; } function CopyCourseResult_init_$Init$(seen1, clazz, courseBlocks, schedules, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_71().zrz_1); } $this.jrz_1 = clazz; $this.krz_1 = courseBlocks; $this.lrz_1 = schedules; return $this; } function CopyCourseResult_init_$Create$(seen1, clazz, courseBlocks, schedules, serializationConstructorMarker) { return CopyCourseResult_init_$Init$(seen1, clazz, courseBlocks, schedules, serializationConstructorMarker, objectCreate(protoOf(CopyCourseResult))); } function CopyCourseResult(clazz, courseBlocks, schedules) { Companion_getInstance_133(); this.jrz_1 = clazz; this.krz_1 = courseBlocks; this.lrz_1 = schedules; } protoOf(CopyCourseResult).toString = function () { return 'CopyCourseResult(clazz=' + this.jrz_1 + ', courseBlocks=' + this.krz_1 + ', schedules=' + this.lrz_1 + ')'; }; protoOf(CopyCourseResult).hashCode = function () { var result = this.jrz_1.hashCode(); result = imul(result, 31) + hashCode(this.krz_1) | 0; result = imul(result, 31) + hashCode(this.lrz_1) | 0; return result; }; protoOf(CopyCourseResult).equals = function (other) { if (this === other) return true; if (!(other instanceof CopyCourseResult)) return false; var tmp0_other_with_cast = other instanceof CopyCourseResult ? other : THROW_CCE(); if (!this.jrz_1.equals(tmp0_other_with_cast.jrz_1)) return false; if (!equals(this.krz_1, tmp0_other_with_cast.krz_1)) return false; if (!equals(this.lrz_1, tmp0_other_with_cast.lrz_1)) return false; return true; }; function shallowCopyTo(_this__u8e3s4, $this, target) { target.t8d_1 = _this__u8e3s4.t8d_1; target.u8d_1 = _this__u8e3s4.u8d_1; target.v8d_1 = _this__u8e3s4.v8d_1; target.w8d_1 = _this__u8e3s4.w8d_1; target.x8d_1 = _this__u8e3s4.x8d_1; target.y8d_1 = _this__u8e3s4.y8d_1; target.z8d_1 = _this__u8e3s4.z8d_1; target.a8e_1 = _this__u8e3s4.a8e_1; target.b8e_1 = _this__u8e3s4.b8e_1; target.c8e_1 = _this__u8e3s4.c8e_1; target.d8e_1 = _this__u8e3s4.d8e_1; target.e8e_1 = _this__u8e3s4.e8e_1; target.f8e_1 = _this__u8e3s4.f8e_1; target.g8e_1 = _this__u8e3s4.g8e_1; target.h8e_1 = _this__u8e3s4.h8e_1; target.i8e_1 = _this__u8e3s4.i8e_1; target.j8e_1 = _this__u8e3s4.j8e_1; target.k8e_1 = _this__u8e3s4.k8e_1; target.l8e_1 = _this__u8e3s4.l8e_1; target.m8e_1 = _this__u8e3s4.m8e_1; target.n8e_1 = _this__u8e3s4.n8e_1; target.o8e_1 = _this__u8e3s4.o8e_1; target.p8e_1 = _this__u8e3s4.p8e_1; } function CopyCourseUseCase$invoke$lambda($newScheduleUid, $clazz) { return function ($this$shallowCopy) { $this$shallowCopy.vhe_1 = $newScheduleUid; $this$shallowCopy.chf_1 = $clazz.s8d_1; return Unit_instance; }; } function $invokeCOROUTINE$66(_this__u8e3s4, clazz, scheduleListVal, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.js0_1 = _this__u8e3s4; this.ks0_1 = clazz; this.ls0_1 = scheduleListVal; } protoOf($invokeCOROUTINE$66).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 11; this.id_1 = 1; suspendResult = this.js0_1.grz_1.q7d().icl(this.ks0_1.s8d_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ms0_1 = suspendResult; this.id_1 = 2; suspendResult = this.js0_1.grz_1.h7f().tft(this.ks0_1.s8d_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ns0_1 = suspendResult; this.id_1 = 3; suspendResult = this.js0_1.grz_1.p7d().v8c(this.ks0_1.s8d_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.os0_1 = suspendResult; this.ps0_1 = this.os0_1 == null ? new ClazzWithHolidayCalendarAndAndTerminology() : this.os0_1; var tmp_0 = this; var this_0 = this.ms0_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); var tmp_1 = ensureNotNull(item.jcn_1); var tmp0_elvis_lhs = item.kcn_1; var tmp_2 = tmp0_elvis_lhs == null ? new CourseBlockPicture(ensureNotNull(item.jcn_1).u7x_1) : tmp0_elvis_lhs; var tmp_3 = item.lcn_1; var tmp_4 = item.mcn_1; var tmp_5 = item.ncn_1; var tmp_6 = item.ocn_1; var this_1 = this.ns0_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); var tmp_7 = element.rfu_1; var tmp0_safe_receiver = item.ncn_1; if (tmp_7.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7t_1)) { destination_0.i1(element); } } destination.i1(new CourseBlockAndEditEntities(tmp_1, tmp_2, tmp_3, VOID, VOID, VOID, tmp_4, tmp_5, tmp_6, destination_0)); } tmp_0.qs0_1 = destination; this.rs0_1 = get_doorPrimaryKeyManager(this.js0_1.grz_1); this.id_1 = 4; Companion_getInstance_4(); suspendResult = this.rs0_1.p62(6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.ss0_1 = suspendResult; this.ts0_1 = this.js0_1.hrz_1.poa().ckz_1; this.id_1 = 5; suspendResult = this.rs0_1.p62(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.us0_1 = suspendResult; var tmp_8 = this; tmp_8.vs0_1 = this.qs0_1; var tmp_9 = this; tmp_9.ws0_1 = this.vs0_1; var tmp_10 = this; tmp_10.xs0_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.vs0_1, 10)); this.ys0_1 = this.ws0_1.w(); this.id_1 = 6; continue $sm; case 6: if (!this.ys0_1.f()) { this.id_1 = 10; continue $sm; } this.zs0_1 = this.ys0_1.e(); var tmp_11 = this; tmp_11.as1_1 = this.zs0_1; this.id_1 = 7; suspendResult = this.rs0_1.p62(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.bs1_1 = suspendResult; this.cs1_1 = this.as1_1.wk8_1; if (this.cs1_1 == null) { this.ds1_1 = null; this.id_1 = 9; continue $sm; } else { this.id_1 = 8; suspendResult = this.rs0_1.p62(520, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 8: var tmp1_caUid = suspendResult; this.ds1_1 = this.cs1_1.zkd(tmp1_caUid, VOID, VOID, new Long(0, 0), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, 1, VOID, VOID, VOID, VOID, this.ss0_1); this.id_1 = 9; continue $sm; case 9: var copiedAssignment = this.ds1_1; var tmp4_elvis_lhs = copiedAssignment == null ? null : copiedAssignment.o7t_1; var ARGUMENT = this.as1_1.bk9(this.as1_1.pk8_1.jkm(this.bs1_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ss0_1, VOID, VOID, VOID, tmp4_elvis_lhs == null ? new Long(0, 0) : tmp4_elvis_lhs), VOID, VOID, VOID, VOID, VOID, VOID, copiedAssignment); this.xs0_1.i1(ARGUMENT); this.id_1 = 6; continue $sm; case 10: var courseBlocks = this.xs0_1; shallowCopyTo(this.ks0_1, this.js0_1, this.ps0_1); var tmp_12 = this.ps0_1; var tmp1_safe_receiver = this.ps0_1.m8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jkn(this.ss0_1); tmp_12.m8g_1 = tmp2_elvis_lhs == null ? new CoursePicture(this.ss0_1) : tmp2_elvis_lhs; this.ps0_1.s8d_1 = this.ss0_1; this.ps0_1.q8e_1 = this.ts0_1; this.ps0_1.s8d_1 = this.ss0_1; this.ps0_1.q8e_1 = this.ts0_1; var this_2 = this.ls0_1; var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var item_0 = tmp0_iterator_1.e(); destination_1.i1(shallowCopy_3(item_0, CopyCourseUseCase$invoke$lambda(this.us0_1, this.ks0_1))); } var schedules = destination_1; return new CopyCourseResult(this.ps0_1, courseBlocks, schedules); case 11: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 11) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function CopyCourseUseCase(repoOrDb, accountManager) { this.grz_1 = repoOrDb; this.hrz_1 = accountManager; } protoOf(CopyCourseUseCase).irz = function (clazz, scheduleListVal, $completion) { var tmp = new $invokeCOROUTINE$66(this, clazz, scheduleListVal, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function ClazzEditViewModel$slambda$slambda$slambda$lambda(this$0) { return function ($this$shallowCopy) { $this$shallowCopy.m8g_1 = new CoursePicture(this$0.dqu_1); return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ms1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda).qs1 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.qs1(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.ns1_1.p7d(); var tmp_1; if (!this.ms1_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.os1_1 = tmp_1; if (this.os1_1 == null) { this.ps1_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.os1_1.v8c(this.ms1_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ps1_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var tmp1_safe_receiver = this.ps1_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { var updatedClazz = tmp1_safe_receiver; if (tmp1_safe_receiver.m8g_1 == null) { var tmp_3 = updatedClazz; updatedClazz = shallowCopy_4(tmp_3, ClazzEditViewModel$slambda$slambda$slambda$lambda(this.ms1_1)); } tmp_2 = updatedClazz; } return tmp_2; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda).enz = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda(this.ms1_1, completion); i.ns1_1 = it; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.qs1(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.zs1_1 = this$0; this.as2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).fs2 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).n78 = function ($completion) { return this.fs2($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; tmp_0.bs2_1 = new ClazzWithHolidayCalendarAndAndTerminology(); var tmp_1 = this; tmp_1.cs2_1 = this.bs2_1; this.cs2_1.s8d_1 = this.zs1_1.ks3_1; this.cs2_1.t8d_1 = ''; this.cs2_1.y8d_1 = true; this.cs2_1.a8e_1 = systemTimeInMillis(); this.cs2_1.k8e_1 = getDefaultTimeZoneId(); var tmp_2 = this.cs2_1; Companion_getInstance_117(); var tmp0_safe_receiver = this.as2_1.ba('schoolUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.d8e_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_3 = this; var this_0 = this.zs1_1.rqo().r7d(); var tmp_4; if (!this.cs2_1.f8e_1.equals(new Long(0, 0))) { tmp_4 = this_0; } else { tmp_4 = null; } tmp_3.ds2_1 = tmp_4; if (this.ds2_1 == null) { this.es2_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.ds2_1.he7(this.cs2_1.f8e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.es2_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var ARGUMENT = this.es2_1; this.cs2_1.l8g_1 = ARGUMENT; this.cs2_1.m8g_1 = new CoursePicture(this.zs1_1.ks3_1); this.cs2_1.q8e_1 = this.zs1_1.nqo(); return this.bs2_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).m78 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_1(this.zs1_1, this.as2_1, completion); }; function ClazzEditViewModel$slambda$slambda$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($completion) { return i.fs2($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$slambda$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.is3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.vs3(VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.es4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).is4 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.is4(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.fs4_1.o7e(); var tmp_1; if (!this.es4_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.gs4_1 = tmp_1; if (this.gs4_1 == null) { this.hs4_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.gs4_1.bhe(this.es4_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.hs4_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.hs4_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).enz = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_3(this.es4_1, completion); i.fs4_1 = it; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.is4(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).rs4 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).n78 = function ($completion) { return this.rs4($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).m78 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_5(completion); }; function ClazzEditViewModel$slambda$slambda$slambda_6(resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_5(resultContinuation); var l = function ($completion) { return i.rs4($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$slambda$slambda$lambda_0(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.is3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.vs3(VOID, VOID, VOID, VOID, VOID, it == null ? emptyList() : it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.as5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).is5 = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.is5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; var tmp_0 = this; var this_0 = this.bs5_1.q7d(); var tmp_1; if (!this.as5_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.cs5_1 = tmp_1; if (this.cs5_1 == null) { this.ds5_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.cs5_1.icl(this.as5_1.dqu_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ds5_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.es5_1 = this.ds5_1; this.fs5_1 = this.es5_1 == null ? emptyList() : this.es5_1; var tmp_2 = this; var this_1 = this.bs5_1.h7f(); var tmp_3; if (!this.as5_1.dqu_1.equals(new Long(0, 0))) { tmp_3 = this_1; } else { tmp_3 = null; } tmp_2.gs5_1 = tmp_3; if (this.gs5_1 == null) { this.hs5_1 = null; this.id_1 = 4; continue $sm; } else { this.id_1 = 3; suspendResult = this.gs5_1.tft(this.as5_1.dqu_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 3: this.hs5_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: var tmp3_elvis_lhs = this.hs5_1; var assignmentPeerAllocations = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs; var this_2 = this.fs5_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator = this_2.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); var tmp_4 = ensureNotNull(item.jcn_1); var tmp0_elvis_lhs = item.kcn_1; var tmp_5 = tmp0_elvis_lhs == null ? new CourseBlockPicture(ensureNotNull(item.jcn_1).u7x_1) : tmp0_elvis_lhs; var tmp_6 = item.lcn_1; var tmp_7 = item.mcn_1; var tmp_8 = item.ncn_1; var tmp_9 = item.ocn_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = assignmentPeerAllocations.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); var tmp_10 = element.rfu_1; var tmp0_safe_receiver = item.ncn_1; if (tmp_10.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7t_1)) { destination_0.i1(element); } } destination.i1(new CourseBlockAndEditEntities(tmp_4, tmp_5, tmp_6, VOID, VOID, VOID, tmp_7, tmp_8, tmp_9, destination_0)); } return destination; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).enz = function (db, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_7(this.as5_1, completion); i.bs5_1 = db; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_8(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_7(this$0, resultContinuation); var l = function (db, $completion) { return i.is5(db, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_9(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).rs5 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).n78 = function ($completion) { return this.rs5($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).m78 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_9(completion); }; function ClazzEditViewModel$slambda$slambda$slambda_10(resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_9(resultContinuation); var l = function ($completion) { return i.rs5($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$slambda$slambda$lambda_1(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.is3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.vs3(VOID, VOID, VOID, VOID, VOID, VOID, it == null ? emptyList() : it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_0($returnedSchedule) { return function (it) { return it.vhe_1.equals($returnedSchedule.vhe_1); }; } function ClazzEditViewModel$slambda$slambda$slambda$slambda(this$0, $newSchedules, resultContinuation) { this.as6_1 = this$0; this.bs6_1 = $newSchedules; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).ir1 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.ir1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return this.as6_1.n4r().s45(ListSerializer(Companion_instance_29.o4r()), this.bs6_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).w1m = function ($this$withContext, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda$slambda(this.as6_1, this.bs6_1, completion); i.cs6_1 = $this$withContext; return i; }; function ClazzEditViewModel$slambda$slambda$slambda$slambda_0(this$0, $newSchedules, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda$slambda(this$0, $newSchedules, resultContinuation); var l = function ($this$withContext, $completion) { return i.ir1($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_11(this$0, $savedStateHandle, resultContinuation) { this.ls6_1 = this$0; this.ms6_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.ns6_1.sqa_1; var tmp0_elvis_lhs = tmp_1 instanceof Schedule ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.os6_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.ls6_1.is3_1.t2().ss3_1; tmp_3.ps6_1 = replaceOrAppend(tmp_4, this.os6_1, ClazzEditViewModel$slambda$slambda$slambda$lambda_0(this.os6_1)); l$ret$1: do { var this_0 = this.ls6_1.is3_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vs3(VOID, VOID, VOID, VOID, VOID, this.ps6_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 1; var tmp_5 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_5, ClazzEditViewModel$slambda$slambda$slambda$slambda_0(this.ls6_1, this.ps6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.ms6_1.yqj('schedule', ARGUMENT); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).mqb = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_11(this.ls6_1, this.ms6_1, completion); i.ns6_1 = result; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_12(this$0, $savedStateHandle, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_11(this$0, $savedStateHandle, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_13(this$0, resultContinuation) { this.ys6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.zs6_1.sqa_1; var tmp0_elvis_lhs = tmp_1 instanceof CourseBlockAndEditEntities ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.as7_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.ys6_1.is3_1.t2().ts3_1; var tmp1_safe_receiver = this.ys6_1.is3_1.t2().os3_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s8d_1; tmp_3.bs7_1 = this.ys6_1.ds3_1.opb(tmp_4, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.as7_1); this.id_1 = 1; suspendResult = updateCourseBlockList(this.ys6_1, this.bs7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).mqb = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_13(this.ys6_1, completion); i.zs6_1 = result; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_14(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_13(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_1($timeZoneId) { return function ($this$shallowCopy) { $this$shallowCopy.k8e_1 = $timeZoneId; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_15(this$0, resultContinuation) { this.ks7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.ls7_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var timeZoneId = tmp_1; var tmp1_safe_receiver = this.ks7_1.is3_1.t2().os3_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_4(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_1(timeZoneId)); } this.ks7_1.ms7(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).mqb = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_15(this.ks7_1, completion); i.ls7_1 = result; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_16(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_15(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_2($newTerminology) { return function ($this$shallowCopy) { $this$shallowCopy.f8e_1 = $newTerminology.n8g_1; $this$shallowCopy.l8g_1 = $newTerminology; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_17(this$0, resultContinuation) { this.vs7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.ws7_1.sqa_1; var tmp0_elvis_lhs = tmp_0 instanceof CourseTerminology ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var newTerminology = tmp_1; var tmp1_safe_receiver = this.vs7_1.is3_1.t2().os3_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_4(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_2(newTerminology)); } this.vs7_1.ms7(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).mqb = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_17(this.vs7_1, completion); i.ws7_1 = result; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_18(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_17(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_3($newDescription) { return function ($this$shallowCopy) { $this$shallowCopy.u8d_1 = $newDescription; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_19(this$0, resultContinuation) { this.fs8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.gs8_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var newDescription = tmp_1; var tmp1_safe_receiver = this.fs8_1.is3_1.t2().os3_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_4(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_3(newDescription)); } this.fs8_1.ms7(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).mqb = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_19(this.fs8_1, completion); i.gs8_1 = result; return i; }; function ClazzEditViewModel$slambda$slambda$slambda_20(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda$slambda_19(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.ps8_1 = this$0; this.qs8_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda).ss8 = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.ss8((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_32.o4r(); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_0(this.ps8_1, null); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_2(this.ps8_1, this.qs8_1, null); suspendResult = this.ps8_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEditViewModel$slambda$slambda$lambda(this.ps8_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_124(); var tmp1_safe_receiver = this_0 == null ? null : this_0.m8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t8g_1; setIfNoValueSetYet(this.qs8_1, 'initPicUri', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); return this_0; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda).w1m = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda(this.ps8_1, this.qs8_1, completion); i.rs8_1 = $this$async; return i; }; function ClazzEditViewModel$slambda$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$async, $completion) { return i.ss8($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.bs9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_1).ds9 = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.ds9((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = ListSerializer(Companion_instance_29.o4r()); var tmp_1 = listOf_0('schedule'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_4(this.bs9_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.bs9_1.fqp(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_0(this.bs9_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_1).w1m = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda_1(this.bs9_1, completion); i.cs9_1 = $this$async; return i; }; function ClazzEditViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.ds9($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.ms9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_3).os9 = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.os9((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_14().o4r()); var tmp_1 = listOf_0('courseblocks'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_8(this.ms9_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_10(null); suspendResult = this.ms9_1.fqp(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_1(this.ms9_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_3).w1m = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda_3(this.ms9_1, completion); i.ns9_1 = $this$async; return i; }; function ClazzEditViewModel$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.os9($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.xs9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_5).ir1 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_5).ie = function (p1, $completion) { return this.ir1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.xs9_1.n4r(); var value = this.xs9_1.is3_1.t2(); var this_1 = this_0.u45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzEditUiState), arrayOf([]), false)); return this_0.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), value); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_5).w1m = function ($this$withContext, completion) { var i = new ClazzEditViewModel$slambda$slambda_5(this.xs9_1, completion); i.ys9_1 = $this$withContext; return i; }; function ClazzEditViewModel$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_5(this$0, resultContinuation); var l = function ($this$withContext, $completion) { return i.ir1($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_7(this$0, $savedStateHandle, resultContinuation) { this.hsa_1 = this$0; this.isa_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_7).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_7).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.hsa_1.zqo(this.hsa_1.uqo(), 'Schedule'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_12(this.hsa_1, this.isa_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_7).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_7(this.hsa_1, this.isa_1, completion); i.jsa_1 = $this$launch; return i; }; function ClazzEditViewModel$slambda$slambda_8(this$0, $savedStateHandle, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_7(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_9(this$0, resultContinuation) { this.ssa_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_9).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_9).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_9).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ssa_1.zqo(this.ssa_1.uqo(), 'courseblock'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_14(this.ssa_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_9).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_9(this.ssa_1, completion); i.tsa_1 = $this$launch; return i; }; function ClazzEditViewModel$slambda$slambda_10(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_9(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_11(this$0, resultContinuation) { this.csb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_11).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_11).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_11).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.csb_1.zqo(this.csb_1.uqo(), 'timeZone'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_16(this.csb_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_11).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_11(this.csb_1, completion); i.dsb_1 = $this$launch; return i; }; function ClazzEditViewModel$slambda$slambda_12(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_11(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_13(this$0, resultContinuation) { this.msb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_13).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_13).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_13).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.msb_1.zqo(this.msb_1.uqo(), 'terminology'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_18(this.msb_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_13).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_13(this.msb_1, completion); i.nsb_1 = $this$launch; return i; }; function ClazzEditViewModel$slambda$slambda_14(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_13(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_15(this$0, resultContinuation) { this.wsb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_15).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda$slambda_15).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_15).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.wsb_1.zqo(this.wsb_1.uqo(), 'clazzDescriptionHtml'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_20(this.wsb_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_15).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_15(this.wsb_1, completion); i.xsb_1 = $this$launch; return i; }; function ClazzEditViewModel$slambda$slambda_16(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda$slambda_15(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda($clazzUid) { return function ($this$shallowCopy) { $this$shallowCopy.chf_1 = $clazzUid; return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0(it) { return it.vhe_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_1(it) { return it.pk8_1.u7x_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2(it) { return it.o7t_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_3(it) { return it.ofu_1; } function ClazzEditViewModel$onClickSave$slambda$slambda(this$0, $initEntity, $updateImage, $coursePictureVal, $entity, $initState, $courseBlockListVal, $updatedCourseBlockPictures, resultContinuation) { this.hsc_1 = this$0; this.isc_1 = $initEntity; this.jsc_1 = $updateImage; this.ksc_1 = $coursePictureVal; this.lsc_1 = $entity; this.msc_1 = $initState; this.nsc_1 = $courseBlockListVal; this.osc_1 = $updatedCourseBlockPictures; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 20; if (this.hsc_1.dqu_1.equals(new Long(0, 0))) { this.id_1 = 2; suspendResult = _get_createNewClazzUseCase__mo489e(this.hsc_1).zoy(this.isc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; suspendResult = this.hsc_1.rqo().p7d().w8c(this.isc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.id_1 = 3; continue $sm; case 2: this.id_1 = 3; continue $sm; case 3: if (this.jsc_1 ? !(this.ksc_1 == null) : false) { this.ksc_1.s8g_1 = systemTimeInMillis(); this.ksc_1.r8g_1 = this.lsc_1.s8d_1; this.id_1 = 4; suspendResult = this.hsc_1.pqo().e7f().he4(this.ksc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 5; continue $sm; } case 4: this.id_1 = 5; continue $sm; case 5: this.qsc_1 = this.lsc_1.s8d_1; var tmp_0 = this; var this_0 = this.hsc_1.is3_1.t2().ss3_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(shallowCopy_3(item, ClazzEditViewModel$onClickSave$slambda$slambda$lambda(this.qsc_1))); } tmp_0.rsc_1 = destination; this.id_1 = 6; suspendResult = this.hsc_1.rqo().o7e().yhd(this.rsc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.id_1 = 7; var tmp_1 = this.hsc_1.rqo().o7e(); suspendResult = deactivateByUids(tmp_1, findKeysNotInOtherList(this.msc_1.ss3_1, this.rsc_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.ssc_1 = this.hsc_1.es3_1.qpb(this.nsc_1); this.id_1 = 8; var tmp_2 = this.hsc_1.rqo().q7d(); var this_1 = this.ssc_1; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10)); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); destination_0.i1(item_0.pk8_1); } suspendResult = tmp_2.lcl(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.id_1 = 9; var tmp_3 = this.hsc_1.rqo().q7d(); suspendResult = deactivateByUids_0(tmp_3, findKeysNotInOtherList(this.msc_1.ts3_1, this.ssc_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_1), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: var tmp_4 = this; var this_2 = this.nsc_1; var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var element = tmp0_iterator_1.e(); var tmp0_safe_receiver = element.wk8_1; if (tmp0_safe_receiver == null) null; else { destination_1.i1(tmp0_safe_receiver); } } tmp_4.tsc_1 = destination_1; this.id_1 = 10; suspendResult = this.hsc_1.rqo().r7e().s7s(this.tsc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp_5 = this; var this_3 = this.msc_1.ts3_1; var destination_2 = ArrayList_init_$Create$(); var tmp0_iterator_2 = this_3.w(); while (tmp0_iterator_2.f()) { var element_0 = tmp0_iterator_2.e(); var tmp0_safe_receiver_0 = element_0.wk8_1; if (tmp0_safe_receiver_0 == null) null; else { destination_2.i1(tmp0_safe_receiver_0); } } tmp_5.usc_1 = findKeysNotInOtherList(destination_2, this.tsc_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2); var tmp_6 = this; var this_4 = this.hsc_1.rqo().r7e(); var tmp_7; if (!this.usc_1.c1()) { tmp_7 = this_4; } else { tmp_7 = null; } tmp_6.vsc_1 = tmp_7; if (this.vsc_1 == null) { this.wsc_1 = null; this.id_1 = 12; continue $sm; } else { this.id_1 = 11; suspendResult = this.vsc_1.t7s(this.usc_1, false, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 11: var tmp_8 = this; tmp_8.wsc_1 = Unit_instance; this.id_1 = 12; continue $sm; case 12: var tmp_9 = this; var this_5 = this.nsc_1; var destination_3 = ArrayList_init_$Create$(); var tmp0_iterator_3 = this_5.w(); while (tmp0_iterator_3.f()) { var element_1 = tmp0_iterator_3.e(); var list = element_1.yk8_1; addAll(destination_3, list); } tmp_9.xsc_1 = destination_3; var tmp_10 = this; var this_6 = this.msc_1.ts3_1; var destination_4 = ArrayList_init_$Create$(); var tmp0_iterator_4 = this_6.w(); while (tmp0_iterator_4.f()) { var element_2 = tmp0_iterator_4.e(); var list_0 = element_2.yk8_1; addAll(destination_4, list_0); } tmp_10.ysc_1 = destination_4; this.id_1 = 13; var tmp_11 = this.hsc_1.rqo().h7f(); suspendResult = deactivateByUids_1(tmp_11, findKeysNotInOtherList(this.ysc_1, this.xsc_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_3), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 13: this.id_1 = 14; suspendResult = this.hsc_1.rqo().h7f().uft(this.xsc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 14: var tmp_12 = this; var this_7 = this.nsc_1; var destination_5 = ArrayList_init_$Create$(); var tmp0_iterator_5 = this_7.w(); while (tmp0_iterator_5.f()) { var element_3 = tmp0_iterator_5.e(); var tmp0_safe_receiver_1 = element_3.tk8_1; if (tmp0_safe_receiver_1 == null) null; else { destination_5.i1(tmp0_safe_receiver_1); } } tmp_12.zsc_1 = destination_5; this.asd_1 = this.zsc_1.w(); this.id_1 = 15; continue $sm; case 15: if (!this.asd_1.f()) { this.id_1 = 17; continue $sm; } this.bsd_1 = this.asd_1.e(); var tmp_13 = this; tmp_13.csd_1 = this.bsd_1; this.id_1 = 16; suspendResult = this.hsc_1.gs3_1.up5(this.csd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 16: this.id_1 = 15; continue $sm; case 17: var tmp_14 = this; var this_8 = this.hsc_1.pqo().r7f(); var tmp_15; if (!this.osc_1.c1()) { tmp_15 = this_8; } else { tmp_15 = null; } tmp_14.dsd_1 = tmp_15; if (this.dsd_1 == null) { this.esd_1 = null; this.id_1 = 19; continue $sm; } else { this.id_1 = 18; suspendResult = this.dsd_1.id1(this.osc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 18: var tmp_16 = this; tmp_16.esd_1 = Unit_instance; this.id_1 = 19; continue $sm; case 19: Napier_getInstance().j5e('onClickSave: transaction block done'); return Unit_instance; case 20: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 20) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new ClazzEditViewModel$onClickSave$slambda$slambda(this.hsc_1, this.isc_1, this.jsc_1, this.ksc_1, this.lsc_1, this.msc_1, this.nsc_1, this.osc_1, completion); i.psc_1 = it; return i; }; function ClazzEditViewModel$onClickSave$slambda$slambda_0(this$0, $initEntity, $updateImage, $coursePictureVal, $entity, $initState, $courseBlockListVal, $updatedCourseBlockPictures, resultContinuation) { var i = new ClazzEditViewModel$onClickSave$slambda$slambda(this$0, $initEntity, $updateImage, $coursePictureVal, $entity, $initState, $courseBlockListVal, $updatedCourseBlockPictures, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda$lambda($updatedBlock) { return function (it) { return it.pk8_1.u7x_1.equals($updatedBlock.pk8_1.u7x_1); }; } function _get_createNewClazzUseCase__mo489e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ls3_1; createNewClazzUseCase$factory_0(); return this_0.t2(); } function updateCourseBlockList($this, newCourseBlockList, $completion) { var tmp = new $updateCourseBlockListCOROUTINE$67($this, newCourseBlockList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function hasErrors(_this__u8e3s4, $this) { return (!(_this__u8e3s4.ps3_1 == null) ? true : !(_this__u8e3s4.qs3_1 == null)) ? true : !(_this__u8e3s4.rs3_1 == null); } function updateCourseBlock($this, updatedBlock) { var tmp = $this.mqo(); launch(tmp, VOID, VOID, ClazzEditViewModel$updateCourseBlock$slambda_0($this, updatedBlock, null)); } function Companion_116() { this.qsd_1 = 'CourseEdit'; this.rsd_1 = 'Schedule'; this.ssd_1 = 'schedule'; this.tsd_1 = 'courseblock'; this.usd_1 = 'timeZone'; this.vsd_1 = 'terminology'; this.wsd_1 = 'courseblocks'; this.xsd_1 = 'clazzDescriptionHtml'; } var Companion_instance_164; function Companion_getInstance_134() { return Companion_instance_164; } function sam$kotlinx_coroutines_flow_FlowCollector$0_10(function_0) { this.ysd_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_10).u1d = function (value, $completion) { return this.ysd_1(value, $completion); }; function ClazzEditViewModel$slambda(this$0, resultContinuation) { this.hse_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda).kse = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; if (!this.hse_1.dqu_1.equals(new Long(0, 0))) { this.id_1 = 2; var tmp_0 = this.ise_1.p7f(); var tmp_1 = this.hse_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.kdk(tmp_1, this.hse_1.dqu_1, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; var tmp_2 = this.ise_1.q7f(); var tmp_3 = this.hse_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_2.vi0(tmp_3, new Long(512, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.jse_1 = suspendResult; this.id_1 = 3; continue $sm; case 2: this.jse_1 = suspendResult; this.id_1 = 3; continue $sm; case 3: return this.jse_1; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda).enz = function (it, completion) { var i = new ClazzEditViewModel$slambda(this.hse_1, completion); i.ise_1 = it; return i; }; function ClazzEditViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.kse(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda_1($savedStateHandle, this$0, resultContinuation) { this.tse_1 = $savedStateHandle; this.use_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; var tmp_0 = async(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_0(this.use_1, this.tse_1, null)); var tmp_1 = async(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_2(this.use_1, null)); suspendResult = awaitAll([tmp_0, tmp_1, async(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_4(this.use_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_126(); if (this.tse_1.ba('initState') == null) { var tmp_2 = this; Companion_getInstance_126(); tmp_2.wse_1 = 'initState'; this.id_1 = 2; var tmp_3 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_3, ClazzEditViewModel$slambda$slambda_6(this.use_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: var ARGUMENT = suspendResult; this.tse_1.yqj(this.wse_1, ARGUMENT); this.id_1 = 3; continue $sm; case 3: launch(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_8(this.use_1, this.tse_1, null)); launch(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_10(this.use_1, null)); launch(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_12(this.use_1, null)); launch(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_14(this.use_1, null)); launch(this.vse_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_16(this.use_1, null)); l$ret$1: do { var this_0 = this.use_1.is3_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vs3(true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.use_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_4 = Companion_getInstance_98().pq7_1; var tmp_5 = this.use_1.vqo().soj(strings_getInstance().on3_1); var nextValue_0 = prevValue_0.hq7(VOID, tmp_4, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_5, VOID, ClazzEditViewModel$onClickSave$ref(this.use_1))); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new ClazzEditViewModel$slambda_1(this.tse_1, this.use_1, completion); i.vse_1 = $this$launchIfHasPermission; return i; }; function ClazzEditViewModel$slambda_2($savedStateHandle, this$0, resultContinuation) { var i = new ClazzEditViewModel$slambda_1($savedStateHandle, this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlockList$slambda(this$0, $newCourseBlockList, resultContinuation) { this.fsf_1 = this$0; this.gsf_1 = $newCourseBlockList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).ir1 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).ie = function (p1, $completion) { return this.ir1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return this.fsf_1.n4r().s45(ListSerializer(Companion_getInstance_14().o4r()), this.gsf_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).w1m = function ($this$withContext, completion) { var i = new ClazzEditViewModel$updateCourseBlockList$slambda(this.fsf_1, this.gsf_1, completion); i.hsf_1 = $this$withContext; return i; }; function ClazzEditViewModel$updateCourseBlockList$slambda_0(this$0, $newCourseBlockList, resultContinuation) { var i = new ClazzEditViewModel$updateCourseBlockList$slambda(this$0, $newCourseBlockList, resultContinuation); var l = function ($this$withContext, $completion) { return i.ir1($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.qsf_1 = $commitDelay; this.rsf_1 = $entity; this.ssf_1 = $this; this.tsf_1 = $key; this.usf_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.qsf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rsf_1 == null)) { this.id_1 = 2; suspendResult = this.ssf_1.bqp(this.ssf_1.vqn_1, this.tsf_1, this.usf_1, this.rsf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$onEntityChanged$slambda(this.qsf_1, this.rsf_1, this.ssf_1, this.tsf_1, this.usf_1, completion); i.vsf_1 = $this$launch; return i; }; function ClazzEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onCheckedAttendanceChanged$lambda($checked) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp_0; if ($checked) { Companion_getInstance_4(); tmp_0 = new Long(1, 0); } else { tmp_0 = new Long(0, 0); } tmp.c8e_1 = tmp_0; return Unit_instance; }; } function ClazzEditViewModel$onClickSave$lambda($initEntity) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_safe_receiver = $this$shallowCopy.t8d_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.text.trim' call tmp_0 = toString(trim(isCharSequence(tmp0_safe_receiver) ? tmp0_safe_receiver : THROW_CCE())); } tmp.t8d_1 = tmp_0; var tmp_1 = $this$shallowCopy; var tmp_2 = Companion_getInstance_6().mmh($initEntity.a8e_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs = $initEntity.k8e_1; var tmp$ret$1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; tmp_1.a8e_1 = toLocalMidnight(tmp_2, tmp$ret$1).lmh(); var tmp_3; var tmp_4 = $this$shallowCopy.b8e_1; Companion_getInstance_2(); if (!tmp_4.equals(new Long(-1, 2147483647))) { var tmp_5 = $this$shallowCopy; var tmp_6 = Companion_getInstance_6().mmh($initEntity.b8e_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs_0 = $initEntity.k8e_1; var tmp$ret$2 = tmp0_elvis_lhs_0 == null ? 'UTC' : tmp0_elvis_lhs_0; tmp_5.b8e_1 = toLocalEndOfDay(tmp_6, tmp$ret$2).lmh(); tmp_3 = Unit_instance; } return Unit_instance; }; } function ClazzEditViewModel$onClickSave$lambda_0(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.is3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave..' call var nextValue = prevValue.vs3(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda(this$0, $entity, $initEntity, resultContinuation) { this.esg_1 = this$0; this.fsg_1 = $entity; this.gsg_1 = $initEntity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$onClickSave$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 12; this.id_1 = 1; Companion_getInstance_126(); suspendResult = this.esg_1.aqp(this.esg_1.vqn_1, 'initState', Companion_getInstance_135().o4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hsg_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.hsg_1 == null) { return Unit_instance; } else { tmp_1 = this.hsg_1; } tmp_0.isg_1 = tmp_1; Napier_getInstance().j5e('onClickSave: start transaction'); this.jsg_1 = this.esg_1.is3_1.t2().ts3_1; this.ksg_1 = this.fsg_1.m8g_1; var tmp_2 = this; var tmp_3; if (!(this.ksg_1 == null)) { Companion_getInstance_124(); var tmp_4 = this.esg_1.vqn_1.ba('initPicUri'); var tmp1_safe_receiver = this.fsg_1.m8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t8g_1; tmp_3 = !(tmp_4 === (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs)); } else { tmp_3 = false; } tmp_2.lsg_1 = tmp_3; var tmp_5 = this; var this_0 = this.jsg_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_safe_receiver = element.qk8_1; var imageUriNow = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z7y_1; var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.isg_1.ts3_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = element_0.qk8_1; var tmp_6 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.x7y_1; var tmp1_safe_receiver_0 = element.qk8_1; if (equals(tmp_6, tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.x7y_1)) { tmp$ret$0 = element_0; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp1_safe_receiver_1 = tmp$ret$0; var tmp2_safe_receiver = tmp1_safe_receiver_1 == null ? null : tmp1_safe_receiver_1.qk8_1; var initImageUri = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.z7y_1; var tmp3_safe_receiver = element.qk8_1; var tmp_7; if (tmp3_safe_receiver == null) { tmp_7 = null; } else { var tmp_8; if (!(imageUriNow == initImageUri)) { tmp_8 = tmp3_safe_receiver; } else { tmp_8 = null; } tmp_7 = tmp_8; } var tmp0_safe_receiver_1 = tmp_7; if (tmp0_safe_receiver_1 == null) null; else { destination.i1(tmp0_safe_receiver_1); } } tmp_5.msg_1 = destination; this.id_1 = 2; var tmp_9 = this.esg_1.pqo(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzEditViewModel$onClickSave$slambda$slambda_0(this.esg_1, this.gsg_1, this.lsg_1, this.ksg_1, this.fsg_1, this.isg_1, this.jsg_1, this.msg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Napier_getInstance().j5e('onClickSave: transaction done'); var tmp_10 = this; tmp_10.nsg_1 = this.jsg_1; this.osg_1 = this.nsg_1.w(); this.id_1 = 3; continue $sm; case 3: if (!this.osg_1.f()) { this.id_1 = 6; continue $sm; } this.psg_1 = this.osg_1.e(); var tmp_11 = this; tmp_11.qsg_1 = this.psg_1; this.rsg_1 = this.qsg_1.rk8_1; if (this.rsg_1 == null) { this.ssg_1 = null; this.id_1 = 5; continue $sm; } else { var tmp_12 = this; tmp_12.tsg_1 = this.rsg_1; var tmp_13 = this; tmp_13.usg_1 = this.tsg_1; this.id_1 = 4; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_1 = this.isg_1.ts3_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_2 = element_1.qk8_1; var tmp_14 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.x7y_1; var tmp1_safe_receiver_2 = this.qsg_1.qk8_1; if (equals(tmp_14, tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.x7y_1)) { tmp$ret$2 = element_1; break l$ret$3; } } tmp$ret$2 = null; } while (false); var tmp0_safe_receiver_3 = tmp$ret$2; var tmp1_safe_receiver_3 = tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.qk8_1; suspendResult = this.esg_1.fs3_1.npb(this.usg_1, null, this.qsg_1.sk8_1, tmp1_safe_receiver_3 == null ? null : tmp1_safe_receiver_3.z7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.ssg_1 = this.tsg_1; this.id_1 = 5; continue $sm; case 5: this.id_1 = 3; continue $sm; case 6: var tmp_15 = this; var this_1 = this.esg_1.hs3_1; var tmp_16; if (this.lsg_1) { tmp_16 = this_1; } else { tmp_16 = null; } tmp_15.vsg_1 = tmp_16; if (this.vsg_1 == null) { this.wsg_1 = null; this.id_1 = 8; continue $sm; } else { this.id_1 = 7; var tmp_17 = this.fsg_1.s8d_1; var tmp3_safe_receiver_0 = this.ksg_1; suspendResult = this.vsg_1.dos(tmp_17, 125, tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.t8g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 7: var tmp_18 = this; tmp_18.wsg_1 = Unit_instance; this.id_1 = 8; continue $sm; case 8: var tmp_19 = this; tmp_19.xsg_1 = this.msg_1; this.ysg_1 = this.xsg_1.w(); this.id_1 = 9; continue $sm; case 9: if (!this.ysg_1.f()) { this.id_1 = 11; continue $sm; } this.zsg_1 = this.ysg_1.e(); var tmp_20 = this; tmp_20.ash_1 = this.zsg_1; this.id_1 = 10; var tmp_21 = this.ash_1.x7y_1; suspendResult = this.esg_1.hs3_1.dos(tmp_21, 6677, this.ash_1.z7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: this.id_1 = 9; continue $sm; case 11: Napier_getInstance().j5e('onClickSave: done'); this.esg_1.fqu('Course', this.fsg_1.s8d_1, this.fsg_1); return Unit_instance; case 12: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 12) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickSave$slambda).m78 = function (completion) { return new ClazzEditViewModel$onClickSave$slambda(this.esg_1, this.fsg_1, this.gsg_1, completion); }; function ClazzEditViewModel$onClickSave$slambda_0(this$0, $entity, $initEntity, resultContinuation) { var i = new ClazzEditViewModel$onClickSave$slambda(this$0, $entity, $initEntity, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$onCourseBlockMoved$slambda(this$0, $newList, resultContinuation) { this.lsh_1 = this$0; this.msh_1 = $newList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = updateCourseBlockList(this.lsh_1, this.msh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$onCourseBlockMoved$slambda(this.lsh_1, this.msh_1, completion); i.nsh_1 = $this$launch; return i; }; function ClazzEditViewModel$onCourseBlockMoved$slambda_0(this$0, $newList, resultContinuation) { var i = new ClazzEditViewModel$onCourseBlockMoved$slambda(this$0, $newList, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda(this$0, $updatedBlock, resultContinuation) { this.wsh_1 = this$0; this.xsh_1 = $updatedBlock; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlock$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$updateCourseBlock$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$updateCourseBlock$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.wsh_1.is3_1.t2().ts3_1; suspendResult = updateCourseBlockList(this.wsh_1, replace_0(tmp_0, this.xsh_1, ClazzEditViewModel$updateCourseBlock$slambda$lambda(this.xsh_1)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$updateCourseBlock$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$updateCourseBlock$slambda(this.wsh_1, this.xsh_1, completion); i.ysh_1 = $this$launch; return i; }; function ClazzEditViewModel$updateCourseBlock$slambda_0(this$0, $updatedBlock, resultContinuation) { var i = new ClazzEditViewModel$updateCourseBlock$slambda(this$0, $updatedBlock, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onClickDeleteCourseBlock$slambda(this$0, $block, resultContinuation) { this.hsi_1 = this$0; this.isi_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = this.hsi_1.is3_1.t2().ts3_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.pk8_1.u7x_1.equals(this.isi_1.pk8_1.u7x_1)) { destination.i1(element); } } suspendResult = updateCourseBlockList(this.hsi_1, destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$onClickDeleteCourseBlock$slambda(this.hsi_1, this.isi_1, completion); i.jsi_1 = $this$launch; return i; }; function ClazzEditViewModel$onClickDeleteCourseBlock$slambda_0(this$0, $block, resultContinuation) { var i = new ClazzEditViewModel$onClickDeleteCourseBlock$slambda(this$0, $block, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function $updateCourseBlockListCOROUTINE$67(_this__u8e3s4, newCourseBlockList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nsd_1 = _this__u8e3s4; this.osd_1 = newCourseBlockList; } protoOf($updateCourseBlockListCOROUTINE$67).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; l$ret$1: do { var this_0 = this.nsd_1.is3_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vs3(VOID, VOID, VOID, VOID, VOID, VOID, this.osd_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.psd_1 = this.nsd_1.vqn_1; this.id_1 = 1; var tmp_0 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_0, ClazzEditViewModel$updateCourseBlockList$slambda_0(this.nsd_1, this.osd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.psd_1.yqj('courseblocks', ARGUMENT); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ClazzEditViewModel(di, savedStateHandle, addOrUpdateCourseBlockUseCase, updateCourseBlocksOnReorderOrCommitUseCase, saveContentEntryUseCase, importContentUseCase, enqueueSavePictureUseCase) { addOrUpdateCourseBlockUseCase = addOrUpdateCourseBlockUseCase === VOID ? new AddOrUpdateCourseBlockUseCase() : addOrUpdateCourseBlockUseCase; updateCourseBlocksOnReorderOrCommitUseCase = updateCourseBlocksOnReorderOrCommitUseCase === VOID ? new UpdateCourseBlocksOnReorderOrCommitUseCase() : updateCourseBlocksOnReorderOrCommitUseCase; var tmp; if (saveContentEntryUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.e58(tmp$ret$2, null).vk2_1; // Inline function 'org.kodein.di.instance' call var tmp_6 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.e58(tmp$ret$4, null); tmp = new SaveContentEntryUseCase(tmp_2, tmp_5, tmp$ret$5); } else { tmp = saveContentEntryUseCase; } saveContentEntryUseCase = tmp; var tmp_8; if (importContentUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_9 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(EnqueueContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$0_0 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_8 = tmp_9.e58(tmp$ret$0_0, null); } else { tmp_8 = importContentUseCase; } importContentUseCase = tmp_8; var tmp_11; if (enqueueSavePictureUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_12 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$0_1 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_11 = tmp_12.e58(tmp$ret$0_1, null); } else { tmp_11 = enqueueSavePictureUseCase; } enqueueSavePictureUseCase = tmp_11; UstadEditViewModel.call(this, di, savedStateHandle, 'CourseEdit'); this.ds3_1 = addOrUpdateCourseBlockUseCase; this.es3_1 = updateCourseBlocksOnReorderOrCommitUseCase; this.fs3_1 = saveContentEntryUseCase; this.gs3_1 = importContentUseCase; this.hs3_1 = enqueueSavePictureUseCase; this.is3_1 = MutableStateFlow(new ClazzEditUiState()); this.js3_1 = asStateFlow(this.is3_1); var tmp_14 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_15; if (tmp1_elvis_lhs == null) { var tmp_16 = get_doorPrimaryKeyManager(this.pqo()); Companion_getInstance_4(); tmp_15 = tmp_16.o62(6); } else { tmp_15 = tmp1_elvis_lhs; } tmp_14.ks3_1 = tmp_15; var tmp_17 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(CreateNewClazzUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.ls3_1 = Instance(this_0, tmp$ret$10, null).b5d(this, createNewClazzUseCase$factory()); var tmp_19 = this; Companion_getInstance_117(); var tmp0_safe_receiver_0 = savedStateHandle.ba('clazzAction'); var tmp_20; if (tmp0_safe_receiver_0 == null) { tmp_20 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.clazzAction.' call tmp_20 = valueOf_0(tmp0_safe_receiver_0); } var tmp1_elvis_lhs_0 = tmp_20; tmp_19.ms3_1 = tmp1_elvis_lhs_0 == null ? ClazzAction_EDIT_getInstance() : tmp1_elvis_lhs_0; var title = this.fqv(strings_getInstance().qnj_1, this.ms3_1.equals(ClazzAction_COPY_getInstance()) ? strings_getInstance().jnr_1 : strings_getInstance().snj_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.' call var tmp0_loadingState = Companion_getInstance_98().oq7_1; var nextValue = new AppUiState(VOID, tmp0_loadingState, title, VOID, true); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_21 = ClazzEditViewModel$slambda_0(this, null); this.hqp(tmp_21, VOID, VOID, ClazzEditViewModel$slambda_2(savedStateHandle, this, null)); } protoOf(ClazzEditViewModel).ms7 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.is3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.os3_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.b8e_1; var tmp6_clazzEndDateError = this.gqv(tmp, entity == null ? null : entity.b8e_1, prevValue.qs3_1); var tmp0_safe_receiver = prevValue.os3_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a8e_1; var tmp7_clazzStartDateError = this.gqv(tmp_0, entity == null ? null : entity.a8e_1, prevValue.ps3_1); var tmp4_safe_receiver = prevValue.os3_1; var tmp_1 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.t8d_1; var tmp8_clazzNameError = this.gqv(tmp_1, entity == null ? null : entity.t8d_1, prevValue.rs3_1); var nextValue = prevValue.vs3(VOID, entity, tmp7_clazzStartDateError, tmp6_clazzEndDateError, tmp8_clazzNameError); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_32.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_2 = this; var tmp_3 = this.mqo(); tmp_2.cqu_1 = launch(tmp_3, VOID, VOID, ClazzEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEditViewModel).ksi = function (checked) { var tmp0_safe_receiver = this.is3_1.t2().os3_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_4(tmp0_safe_receiver, ClazzEditViewModel$onCheckedAttendanceChanged$lambda(checked)); } this.ms7(tmp); }; protoOf(ClazzEditViewModel).lsi = function () { this.dqp('ScheduleEdit', 'Schedule', null, Companion_instance_29.o4r()); }; protoOf(ClazzEditViewModel).msi = function (schedule) { this.dqp('ScheduleEdit', 'Schedule', schedule, Companion_instance_29.o4r()); }; protoOf(ClazzEditViewModel).nsi = function (schedule) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.is3_1.t2().ss3_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickDeleteSchedule.' call if (!element.vhe_1.equals(schedule.vhe_1)) { destination.i1(element); } } var newSchedules = destination; this.vqn_1.yqj('schedule', this.n4r().s45(ListSerializer(Companion_instance_29.o4r()), newSchedules)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.is3_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickDeleteSchedule.' call var nextValue = prevValue.vs3(VOID, VOID, VOID, VOID, VOID, newSchedules); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzEditViewModel).osi = function (blockType) { if (blockType === 104) { Companion_getInstance_170(); var tmp = Companion_getInstance_14().o4r(); Companion_getInstance_117(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_117(); var tmp_1 = to('clazzUid', this.ks3_1.toString()); Companion_getInstance_175(); var tmp_2 = to('blockType', (104).toString()); this.dqp('ContentEntries', 'courseblock', null, tmp, mapOf([tmp_0, tmp_1, tmp_2, to('goToOnContentEntryDone', (1).toString())])); return Unit_instance; } var tmp_3; var tmp_4; var tmp_5; if (blockType === 105) { tmp_5 = true; } else { tmp_5 = blockType === 102; } if (tmp_5) { tmp_4 = true; } else { tmp_4 = blockType === 100; } if (tmp_4) { Companion_getInstance_175(); tmp_3 = to('CourseBlockEdit', 'courseblock'); } else { if (blockType === 103) { tmp_3 = to('CourseAssignmentEdit', 'courseblock'); } else { return Unit_instance; } } var tmp1_container = tmp_3; var viewName = tmp1_container.y6(); var keyName = tmp1_container.z6(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onAddCourseBlock.' call Companion_getInstance_175(); this_0.s('blockType', blockType.toString()); Companion_getInstance_117(); this_0.s('clazzUid', this.ks3_1.toString()); if (blockType === 103) { var tmp0_safe_receiver = this.is3_1.t2().os3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l8g_1; if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onAddCourseBlock..' call this_0.s('terminology', this.n4r().s45(Companion_instance_33.o4r(), tmp1_safe_receiver)); } } var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_getInstance_14().o4r(); this.dqp(viewName, keyName, null, tmp3_serializer, tmp2_args); }; protoOf(ClazzEditViewModel).ysb = function () { var tmp0_elvis_lhs = this.is3_1.t2().os3_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var initEntity = tmp; if (this.yqo().equals(Companion_getInstance_98().oq7_1)) { Napier_getInstance().j5e('onClickSave: indeterminate'); return Unit_instance; } if (initEntity.a8e_1.equals(new Long(0, 0))) { Napier_getInstance().j5e('onClickSave: clazzstarttime = 0'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.is3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue = prevValue.vs3(VOID, VOID, this.vqo().soj(strings_getInstance().cmo_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } if (initEntity.b8e_1.c7(initEntity.a8e_1) <= 0) { Napier_getInstance().j5e('onClickSave: endbeforestart'); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.is3_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue_0 = prevValue_0.vs3(VOID, VOID, VOID, this.vqo().soj(strings_getInstance().wnl_1)); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } // Inline function 'kotlin.text.isNullOrBlank' call var this_2 = initEntity.t8d_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : isBlank(this_2)) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.is3_1; while (true) { var prevValue_1 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue_1 = prevValue_1.vs3(VOID, VOID, VOID, VOID, this.vqo().soj(strings_getInstance().gnm_1)); if (this_3.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (hasErrors(this.is3_1.t2(), this)) { Napier_getInstance().j5e('onClickSave: hasErrors'); return Unit_instance; } var entity = shallowCopy_4(initEntity, ClazzEditViewModel$onClickSave$lambda(initEntity)); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.is3_1; while (true) { var prevValue_2 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue_2 = prevValue_2.vs3(VOID, entity); if (this_4.z1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_0 = ClazzEditViewModel$onClickSave$lambda_0(this); this.iqv(tmp_0, ClazzEditViewModel$onClickSave$slambda_0(this, entity, initEntity, null)); }; protoOf(ClazzEditViewModel).psi = function (from, to) { // Inline function 'kotlin.apply' call var this_0 = toMutableList(this.is3_1.t2().ts3_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onCourseBlockMoved.' call this_0.c2(to, this_0.s1(from)); var reorderedList = toList(this_0); var newList = this.es3_1.ppb(reorderedList, to); var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzEditViewModel$onCourseBlockMoved$slambda_0(this, newList, null)); }; protoOf(ClazzEditViewModel).qsi = function () { Companion_getInstance_117(); var tmp = to('result_key', 'timeZone'); Companion_getInstance_117(); this.xqn_1.tp6('TimeZoneList', mapOf([tmp, to('result_viewname', this.wqn_1)])); }; protoOf(ClazzEditViewModel).rsi = function () { }; protoOf(ClazzEditViewModel).ssi = function () { this.dqp('CourseTerminologyList', 'terminology', null, Companion_instance_33.o4r()); }; protoOf(ClazzEditViewModel).tsi = function (block) { updateCourseBlock(this, block.bk9(block.pk8_1.jkm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true))); }; protoOf(ClazzEditViewModel).usi = function (block) { updateCourseBlock(this, block.bk9(block.pk8_1.jkm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false))); }; protoOf(ClazzEditViewModel).vsi = function (block) { updateCourseBlock(this, block.bk9(block.pk8_1.jkm(VOID, VOID, block.pk8_1.w7x_1 + 1 | 0))); }; protoOf(ClazzEditViewModel).wsi = function (block) { updateCourseBlock(this, block.bk9(block.pk8_1.jkm(VOID, VOID, block.pk8_1.w7x_1 - 1 | 0))); }; protoOf(ClazzEditViewModel).xsi = function (block) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzEditViewModel$onClickDeleteCourseBlock$slambda_0(this, block, null)); }; protoOf(ClazzEditViewModel).ysi = function (block) { var tmp0_subject = block.pk8_1.v7x_1; var tmp; var tmp_0; var tmp_1; if (tmp0_subject === 104) { tmp_1 = true; } else { tmp_1 = tmp0_subject === 105; } if (tmp_1) { tmp_0 = true; } else { tmp_0 = tmp0_subject === 102; } if (tmp_0) { tmp = true; } else { tmp = tmp0_subject === 100; } if (tmp) { Companion_getInstance_175(); var tmp1_nextViewName = 'CourseBlockEdit'; var tmp2_key = 'courseblock'; var tmp3_serializer = Companion_getInstance_14().o4r(); this.dqp(tmp1_nextViewName, tmp2_key, block, tmp3_serializer); } else { if (tmp0_subject === 103) { var tmp4_nextViewName = 'CourseAssignmentEdit'; var tmp5_key = 'courseblock'; var tmp6_serializer = Companion_getInstance_14().o4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickEditCourseBlock.' call Companion_getInstance_117(); this_0.s('clazzUid', this.ks3_1.toString()); var tmp0_safe_receiver = this.is3_1.t2().os3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l8g_1; if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickEditCourseBlock..' call this_0.s('terminology', this.n4r().s45(Companion_instance_33.o4r(), tmp1_safe_receiver)); } var tmp7_args = this_0.f3(); this.dqp(tmp4_nextViewName, tmp5_key, block, tmp6_serializer, tmp7_args); } } }; function CourseBlockUiState(block) { this.zsi_1 = block; } protoOf(CourseBlockUiState).asj = function () { var tmp; var tmp_0 = this.zsi_1.pk8_1.v7x_1; if (!(tmp_0 === 100)) { tmp = this.zsi_1.pk8_1.w7x_1 < 3; } else { tmp = false; } return tmp; }; protoOf(CourseBlockUiState).bsj = function () { return this.zsi_1.pk8_1.w7x_1 > 0; }; protoOf(CourseBlockUiState).csj = function () { return !this.zsi_1.pk8_1.l7y_1; }; protoOf(CourseBlockUiState).dsj = function () { return this.zsi_1.pk8_1.l7y_1; }; function Companion_117() { Companion_instance_165 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.bsh_1 = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_8()), new ArrayListSerializer($serializer_getInstance_7()), null]; this.csh_1 = 3; } protoOf(Companion_117).o4r = function () { return $serializer_getInstance_72(); }; var Companion_instance_165; function Companion_getInstance_135() { if (Companion_instance_165 == null) new Companion_117(); return Companion_instance_165; } function $serializer_60() { $serializer_instance_60 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditUiState', this, 8); tmp0_serialDesc.u4f('fieldsEnabled', true); tmp0_serialDesc.u4f('entity', true); tmp0_serialDesc.u4f('clazzStartDateError', true); tmp0_serialDesc.u4f('clazzEndDateError', true); tmp0_serialDesc.u4f('clazzNameError', true); tmp0_serialDesc.u4f('clazzSchedules', true); tmp0_serialDesc.u4f('courseBlockList', true); tmp0_serialDesc.u4f('timeZone', true); this.esj_1 = tmp0_serialDesc; } protoOf($serializer_60).r44 = function () { return this.esj_1; }; protoOf($serializer_60).l4g = function () { var tmp0_cached = Companion_getInstance_135().bsh_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), get_nullable($serializer_getInstance_9()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), tmp0_cached[5], tmp0_cached[6], StringSerializer_getInstance()]; }; protoOf($serializer_60).t44 = function (decoder) { var tmp0_desc = this.esj_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_input = decoder.j48(tmp0_desc); var tmp13_cached = Companion_getInstance_135().bsh_1; if (tmp12_input.y48()) { tmp4_local0 = tmp12_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.x48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.v48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.v48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.t48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.x48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.v48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.v48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.t48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.k48(tmp0_desc); return ClazzEditUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_60).fsj = function (encoder, value) { var tmp0_desc = this.esj_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_135().bsh_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.ns3_1 === false)) { tmp1_output.p49(tmp0_desc, 0, value.ns3_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.os3_1 == null)) { tmp1_output.b4a(tmp0_desc, 1, $serializer_getInstance_9(), value.os3_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.ps3_1 == null)) { tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.ps3_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.qs3_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qs3_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.rs3_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, StringSerializer_getInstance(), value.rs3_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !equals(value.ss3_1, emptyList())) { tmp1_output.z49(tmp0_desc, 5, tmp2_cached[5], value.ss3_1); } if (tmp1_output.f4a(tmp0_desc, 6) ? true : !equals(value.ts3_1, emptyList())) { tmp1_output.z49(tmp0_desc, 6, tmp2_cached[6], value.ts3_1); } if (tmp1_output.f4a(tmp0_desc, 7) ? true : !(value.us3_1 === 'UTC')) { tmp1_output.x49(tmp0_desc, 7, value.us3_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_60).s44 = function (encoder, value) { return this.fsj(encoder, value instanceof ClazzEditUiState ? value : THROW_CCE()); }; var $serializer_instance_60; function $serializer_getInstance_72() { if ($serializer_instance_60 == null) new $serializer_60(); return $serializer_instance_60; } function ClazzEditUiState_init_$Init$(seen1, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_72().esj_1); } if (0 === (seen1 & 1)) $this.ns3_1 = false; else $this.ns3_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.os3_1 = null; else $this.os3_1 = entity; if (0 === (seen1 & 4)) $this.ps3_1 = null; else $this.ps3_1 = clazzStartDateError; if (0 === (seen1 & 8)) $this.qs3_1 = null; else $this.qs3_1 = clazzEndDateError; if (0 === (seen1 & 16)) $this.rs3_1 = null; else $this.rs3_1 = clazzNameError; if (0 === (seen1 & 32)) $this.ss3_1 = emptyList(); else $this.ss3_1 = clazzSchedules; if (0 === (seen1 & 64)) $this.ts3_1 = emptyList(); else $this.ts3_1 = courseBlockList; if (0 === (seen1 & 128)) $this.us3_1 = 'UTC'; else $this.us3_1 = timeZone; return $this; } function ClazzEditUiState_init_$Create$(seen1, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, serializationConstructorMarker) { return ClazzEditUiState_init_$Init$(seen1, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, serializationConstructorMarker, objectCreate(protoOf(ClazzEditUiState))); } function ClazzEditUiState(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) { Companion_getInstance_135(); fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; entity = entity === VOID ? null : entity; clazzStartDateError = clazzStartDateError === VOID ? null : clazzStartDateError; clazzEndDateError = clazzEndDateError === VOID ? null : clazzEndDateError; clazzNameError = clazzNameError === VOID ? null : clazzNameError; clazzSchedules = clazzSchedules === VOID ? emptyList() : clazzSchedules; courseBlockList = courseBlockList === VOID ? emptyList() : courseBlockList; timeZone = timeZone === VOID ? 'UTC' : timeZone; this.ns3_1 = fieldsEnabled; this.os3_1 = entity; this.ps3_1 = clazzStartDateError; this.qs3_1 = clazzEndDateError; this.rs3_1 = clazzNameError; this.ss3_1 = clazzSchedules; this.ts3_1 = courseBlockList; this.us3_1 = timeZone; } protoOf(ClazzEditUiState).gsj = function () { var tmp; var tmp0_safe_receiver = this.os3_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c8e_1; Companion_getInstance_4(); if (equals(tmp_0, new Long(1, 0))) { Companion_getInstance_4(); var tmp_1 = new Long(1, 0); Companion_getInstance_4(); tmp = tmp_1.equals(new Long(1, 0)); } else { tmp = false; } return tmp; }; protoOf(ClazzEditUiState).hsj = function (courseBlockAndEditEntities) { return new CourseBlockUiState(courseBlockAndEditEntities); }; protoOf(ClazzEditUiState).isj = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) { return new ClazzEditUiState(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).vs3 = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.ns3_1 : fieldsEnabled; entity = entity === VOID ? this.os3_1 : entity; clazzStartDateError = clazzStartDateError === VOID ? this.ps3_1 : clazzStartDateError; clazzEndDateError = clazzEndDateError === VOID ? this.qs3_1 : clazzEndDateError; clazzNameError = clazzNameError === VOID ? this.rs3_1 : clazzNameError; clazzSchedules = clazzSchedules === VOID ? this.ss3_1 : clazzSchedules; courseBlockList = courseBlockList === VOID ? this.ts3_1 : courseBlockList; timeZone = timeZone === VOID ? this.us3_1 : timeZone; return $super === VOID ? this.isj(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) : $super.isj.call(this, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).toString = function () { return 'ClazzEditUiState(fieldsEnabled=' + this.ns3_1 + ', entity=' + this.os3_1 + ', clazzStartDateError=' + this.ps3_1 + ', clazzEndDateError=' + this.qs3_1 + ', clazzNameError=' + this.rs3_1 + ', clazzSchedules=' + this.ss3_1 + ', courseBlockList=' + this.ts3_1 + ', timeZone=' + this.us3_1 + ')'; }; protoOf(ClazzEditUiState).hashCode = function () { var result = getBooleanHashCode(this.ns3_1); result = imul(result, 31) + (this.os3_1 == null ? 0 : this.os3_1.hashCode()) | 0; result = imul(result, 31) + (this.ps3_1 == null ? 0 : getStringHashCode(this.ps3_1)) | 0; result = imul(result, 31) + (this.qs3_1 == null ? 0 : getStringHashCode(this.qs3_1)) | 0; result = imul(result, 31) + (this.rs3_1 == null ? 0 : getStringHashCode(this.rs3_1)) | 0; result = imul(result, 31) + hashCode(this.ss3_1) | 0; result = imul(result, 31) + hashCode(this.ts3_1) | 0; result = imul(result, 31) + getStringHashCode(this.us3_1) | 0; return result; }; protoOf(ClazzEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzEditUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzEditUiState ? other : THROW_CCE(); if (!(this.ns3_1 === tmp0_other_with_cast.ns3_1)) return false; if (!equals(this.os3_1, tmp0_other_with_cast.os3_1)) return false; if (!(this.ps3_1 == tmp0_other_with_cast.ps3_1)) return false; if (!(this.qs3_1 == tmp0_other_with_cast.qs3_1)) return false; if (!(this.rs3_1 == tmp0_other_with_cast.rs3_1)) return false; if (!equals(this.ss3_1, tmp0_other_with_cast.ss3_1)) return false; if (!equals(this.ts3_1, tmp0_other_with_cast.ts3_1)) return false; if (!(this.us3_1 === tmp0_other_with_cast.us3_1)) return false; return true; }; function createNewClazzUseCase$factory() { return getPropertyCallableRef('createNewClazzUseCase', 1, KProperty1, function (receiver) { return _get_createNewClazzUseCase__mo489e(receiver); }, null); } function createNewClazzUseCase$factory_0() { return getPropertyCallableRef('createNewClazzUseCase', 1, KProperty1, function (receiver) { return _get_createNewClazzUseCase__mo489e(receiver); }, null); } function get_COMPLETABLE_BLOCK_TYPES() { _init_properties_BlockStatusExt_kt__pb774u(); return COMPLETABLE_BLOCK_TYPES; } var COMPLETABLE_BLOCK_TYPES; function aggregateIfModule(_this__u8e3s4, blockUid, blocks) { _init_properties_BlockStatusExt_kt__pb774u(); var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = blocks.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule.' call if (element.u7x_1.equals(blockUid)) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_elvis_lhs = tmp$ret$1; var tmp; if (tmp0_elvis_lhs == null) { return null; } else { tmp = tmp0_elvis_lhs; } var block = tmp; var tmp_0; var tmp_1 = block.v7x_1; if (tmp_1 === 100) { var tmp$ret$2; $l$block_0: { // Inline function 'kotlin.collections.count' call var tmp_2; if (isInterface(blocks, Collection)) { tmp_2 = blocks.c1(); } else { tmp_2 = false; } if (tmp_2) { tmp$ret$2 = 0; break $l$block_0; } var count = 0; var tmp0_iterator_0 = blocks.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule.' call if (element_0.x7x_1.equals(blockUid)) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$2 = count; } var moduleBlockCount = tmp$ret$2; if (moduleBlockCount === 0) return null; // Inline function 'kotlin.collections.associateBy' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator_1 = blocks.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule.' call if (element_1.x7x_1.equals(blockUid)) { destination.i1(element_1); } } var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination, 10)), 16); // Inline function 'kotlin.collections.associateByTo' call var destination_0 = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator_2 = destination.w(); while (tmp0_iterator_2.f()) { var element_2 = tmp0_iterator_2.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule.' call var tmp$ret$7 = element_2.u7x_1; destination_0.s(tmp$ret$7, element_2); } var moduleBlockUids = destination_0; var numBlocksWithScoreResult = 0; var numBlocksWithScore = 0; var numModsComplete = 0; var numBlocksSuccessSet = 0; var numBlocksSuccess = 0; var numBlocksFailed = 0; var totalPointsScored = 0.0; var maxPointsInModule = 0.0; var numCompleteableBlocksInModule = 0; // Inline function 'kotlin.collections.forEach' call var tmp0_iterator_3 = _this__u8e3s4.w(); while (tmp0_iterator_3.f()) { var element_3 = tmp0_iterator_3.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule.' call if (moduleBlockUids.o2().a1(element_3.yax_1)) { var blockForStatus = moduleBlockUids.q(element_3.yax_1); if ((blockForStatus == null ? null : isCompleteable(blockForStatus)) === true) { numCompleteableBlocksInModule = numCompleteableBlocksInModule + 1 | 0; } var tmp3_safe_receiver = blockForStatus == null ? null : blockForStatus.f7y_1; if (tmp3_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule..' call maxPointsInModule = maxPointsInModule + tmp3_safe_receiver; numBlocksWithScore = numBlocksWithScore + 1 | 0; } var tmp4_safe_receiver = element_3.cay_1; if (tmp4_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule..' call var tmp_3 = totalPointsScored; var tmp1_elvis_lhs = blockForStatus == null ? null : blockForStatus.f7y_1; totalPointsScored = tmp_3 + tmp4_safe_receiver * (tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs); numBlocksWithScoreResult = numBlocksWithScoreResult + 1 | 0; } if (element_3.aay_1) { numModsComplete = numModsComplete + 1 | 0; } var tmp6_safe_receiver = element_3.bay_1; if (tmp6_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule..' call numBlocksSuccessSet = numBlocksSuccessSet + 1 | 0; if (tmp6_safe_receiver) { numBlocksSuccess = numBlocksSuccess + 1 | 0; } else { numBlocksFailed = numBlocksFailed + 1 | 0; } } } } var isModuleComplete = numCompleteableBlocksInModule > 0 ? numCompleteableBlocksInModule === numModsComplete : false; var tmp1_safe_receiver = firstOrNull(_this__u8e3s4); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xax_1; var tmp3_sPersonUid = tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs; var tmp_4; if (!(maxPointsInModule === 0.0)) { tmp_4 = totalPointsScored / maxPointsInModule; } else { tmp_4 = null; } var tmp4_sScoreScaled = tmp_4; var tmp5_sIsSuccess = (isModuleComplete ? numBlocksSuccess === numBlocksSuccessSet : false) ? true : (isModuleComplete ? numBlocksFailed > 0 : false) ? false : null; tmp_0 = new BlockStatus(tmp3_sPersonUid, blockUid, VOID, isModuleComplete, tmp5_sIsSuccess, tmp4_sScoreScaled); } else { var tmp$ret$14; $l$block_1: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator_4 = _this__u8e3s4.w(); while (tmp0_iterator_4.f()) { var element_4 = tmp0_iterator_4.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.aggregateIfModule.' call if (element_4.yax_1.equals(blockUid)) { tmp$ret$14 = element_4; break $l$block_1; } } tmp$ret$14 = null; } tmp_0 = tmp$ret$14; } return tmp_0; } function displayMarkFor(_this__u8e3s4, maxPoints) { _init_properties_BlockStatusExt_kt__pb774u(); var tmp0_safe_receiver = markFor(_this__u8e3s4, maxPoints); return tmp0_safe_receiver == null ? null : toDisplayString(tmp0_safe_receiver); } function isCompleteable(_this__u8e3s4) { _init_properties_BlockStatusExt_kt__pb774u(); return get_COMPLETABLE_BLOCK_TYPES().a1(_this__u8e3s4.v7x_1); } function markFor(_this__u8e3s4, maxPoints) { _init_properties_BlockStatusExt_kt__pb774u(); var scaledMarkVal = _this__u8e3s4.cay_1; var tmp; if (!(scaledMarkVal == null) ? !(maxPoints == null) : false) { tmp = scaledMarkVal * maxPoints; } else { tmp = null; } return tmp; } var properties_initialized_BlockStatusExt_kt_h05ldo; function _init_properties_BlockStatusExt_kt__pb774u() { if (!properties_initialized_BlockStatusExt_kt_h05ldo) { properties_initialized_BlockStatusExt_kt_h05ldo = true; COMPLETABLE_BLOCK_TYPES = listOf([104, 103]); } } function $loadCOROUTINE$68(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rsj_1 = _this__u8e3s4; this.ssj_1 = params; } protoOf($loadCOROUTINE$68).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.rsj_1.k6c(); this.id_1 = 1; suspendResult = this.rsj_1.zsj_1.q54(this.ssj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tsj_1 = suspendResult; this.id_1 = 2; var tmp_0 = this.rsj_1.ask_1.k7e(); var tmp_1 = this.tsj_1; var tmp0_safe_receiver = tmp_1 instanceof Page ? tmp_1 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d54_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { var destination = ArrayList_init_$Create$(); var tmp0_iterator = tmp1_safe_receiver.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_safe_receiver_0 = element.b96_1; var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.g96_1; if (tmp0_safe_receiver_1 == null) null; else { destination.i1(tmp0_safe_receiver_1); } } tmp_2 = destination; } var tmp2_elvis_lhs = tmp_2; suspendResult = tmp_0.pje(this.rsj_1.bsk_1, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs, this.rsj_1.csk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var blockResults = suspendResult; var tmp3_subject = this.tsj_1; var tmp_3; if (tmp3_subject instanceof Page) { var tmp_4 = this.tsj_1; var studentListResultCasted = tmp_4 instanceof Page ? tmp_4 : THROW_CCE(); var this_0 = studentListResultCasted.d54_1; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator_0 = this_0.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = blockResults.w(); while (tmp0_iterator_1.f()) { var element_0 = tmp0_iterator_1.e(); var tmp_5 = element_0.xax_1; var tmp0_safe_receiver_2 = item.b96_1; if (tmp_5.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.g96_1)) { destination_1.i1(element_0); } } destination_0.i1(new StudentAndBlockStatuses(item, destination_1)); } tmp_3 = new Page(destination_0, studentListResultCasted.e54_1, studentListResultCasted.f54_1, studentListResultCasted.g54_1, studentListResultCasted.h54_1); } else { if (tmp3_subject instanceof Error_0) { tmp_3 = new Error_0(this.tsj_1.c54_1); } else { if (tmp3_subject instanceof Invalid) { tmp_3 = new Invalid(); } else { throw IllegalStateException_init_$Create$("Cant get here really, but compiler doesn't know that"); } } } var tmp_6 = tmp_3; return tmp_6 instanceof LoadResult ? tmp_6 : THROW_CCE(); case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $loadHttpCOROUTINE$69(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lsk_1 = _this__u8e3s4; this.msk_1 = params; } protoOf($loadHttpCOROUTINE$69).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var tmp_1 = this.lsk_1.zsj_1; tmp_0.nsk_1 = isInterface(tmp_1, PagingSourceWithHttpLoader) ? tmp_1 : null; if (this.nsk_1 == null) { this.osk_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.nsk_1.z6e(this.msk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.osk_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.osk_1; return tmp1_elvis_lhs == null ? true : tmp1_elvis_lhs; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ClazzGradebookPagingSource(studentListPagingSource, db, clazzUid, accountPersonUid) { DelegatedInvalidationPagingSource.call(this, studentListPagingSource); this.zsj_1 = studentListPagingSource; this.ask_1 = db; this.bsk_1 = clazzUid; this.csk_1 = accountPersonUid; } protoOf(ClazzGradebookPagingSource).psk = function (params, $completion) { var tmp = new $loadCOROUTINE$68(this, params, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookPagingSource).q54 = function (params, $completion) { return this.psk(params, $completion); }; protoOf(ClazzGradebookPagingSource).y6e = function (params, $completion) { var tmp = new $loadHttpCOROUTINE$69(this, params, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookPagingSource).z6e = function (params, $completion) { return this.y6e(params, $completion); }; function ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ysk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).asl = function (courseBlockList, $completion) { var tmp = this.bsl(courseBlockList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.asl((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.ysk_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ism(this.zsk_1, this.ysk_1.dsm_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).bsl = function (courseBlockList, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this.ysk_1, completion); i.zsk_1 = courseBlockList; return i; }; function ClazzGradebookViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (courseBlockList, $completion) { return i.asl(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.rsm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).zrg = function (it, $completion) { var tmp = this.arh(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.zrg((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.rsm_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(VOID, VOID, this.ssm_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).arh = function (it, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this.rsm_1, completion); i.ssm_1 = it; return i; }; function ClazzGradebookViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.zrg(it, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.bsn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.bsn_1.rqo().q7d().pcl(this.bsn_1.csm_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_0(this.bsn_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_11(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda(this.bsn_1, completion); i.csn_1 = $this$launch; return i; }; function ClazzGradebookViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.lsn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.lsn_1.rqo().p7d().c8d(this.lsn_1.csm_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_2(this.lsn_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_11(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda_1(this.lsn_1, completion); i.msn_1 = $this$launch; return i; }; function ClazzGradebookViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.vsn_1 = $this_launch; this.wsn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.vsn_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_0(this.wsn_1, null)); launch(this.vsn_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_2(this.wsn_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda).m78 = function (completion) { return new ClazzGradebookViewModel$slambda$slambda(this.vsn_1, this.wsn_1, completion); }; function ClazzGradebookViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new ClazzGradebookViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_118() { this.xsn_1 = 'Gradebook'; } var Companion_instance_166; function Companion_getInstance_136() { return Companion_instance_166; } function sam$kotlinx_coroutines_flow_FlowCollector$0_11(function_0) { this.ysn_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_11).u1d = function (value, $completion) { return this.ysn_1(value, $completion); }; function ClazzGradebookViewModel$studentPagingSource$lambda(this$0) { return function () { var tmp = this$0.rqo().u7d(); return new ClazzGradebookPagingSource(tmp.l93(this$0.csm_1, 1000, 1, '%', 0, this$0.nqo(), systemTimeInMillis()), this$0.pqo(), this$0.csm_1, this$0.nqo()); }; } function ClazzGradebookViewModel$slambda(this$0, resultContinuation) { this.hso_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzGradebookViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.hso_1.qqw_1, ClazzGradebookViewModel$slambda$slambda_0(this.iso_1, this.hso_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda(this.hso_1, completion); i.iso_1 = $this$launch; return i; }; function ClazzGradebookViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzGradebookViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new ClazzGradebookUiState(), 'Gradebook'); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_0; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No clazzuid'); } else { tmp_0 = tmp1_elvis_lhs; } tmp.csm_1 = tmp_0; var tmp_1 = this; tmp_1.dsm_1 = ClazzGradebookViewModel$studentPagingSource$lambda(this); var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, ClazzGradebookViewModel$slambda_0(this, null)); } protoOf(ClazzGradebookViewModel).kqx = function (searchText) { }; protoOf(ClazzGradebookViewModel).lqx = function () { }; function ClazzGradebookUiState$_init_$lambda_aseg4q() { return new EmptyPagingSource(); } function ClazzGradebookUiState(courseBlocks, results, isFullScreen, scale) { courseBlocks = courseBlocks === VOID ? emptyList() : courseBlocks; var tmp; if (results === VOID) { tmp = ClazzGradebookUiState$_init_$lambda_aseg4q; } else { tmp = results; } results = tmp; isFullScreen = isFullScreen === VOID ? false : isFullScreen; scale = scale === VOID ? 1.0 : scale; this.esm_1 = courseBlocks; this.fsm_1 = results; this.gsm_1 = isFullScreen; this.hsm_1 = scale; } protoOf(ClazzGradebookUiState).jso = function (courseBlocks, results, isFullScreen, scale) { return new ClazzGradebookUiState(courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).ism = function (courseBlocks, results, isFullScreen, scale, $super) { courseBlocks = courseBlocks === VOID ? this.esm_1 : courseBlocks; results = results === VOID ? this.fsm_1 : results; isFullScreen = isFullScreen === VOID ? this.gsm_1 : isFullScreen; scale = scale === VOID ? this.hsm_1 : scale; return $super === VOID ? this.jso(courseBlocks, results, isFullScreen, scale) : $super.jso.call(this, courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).toString = function () { return 'ClazzGradebookUiState(courseBlocks=' + this.esm_1 + ', results=' + this.fsm_1 + ', isFullScreen=' + this.gsm_1 + ', scale=' + this.hsm_1 + ')'; }; protoOf(ClazzGradebookUiState).hashCode = function () { var result = hashCode(this.esm_1); result = imul(result, 31) + hashCode(this.fsm_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gsm_1) | 0; result = imul(result, 31) + getNumberHashCode(this.hsm_1) | 0; return result; }; protoOf(ClazzGradebookUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzGradebookUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzGradebookUiState ? other : THROW_CCE(); if (!equals(this.esm_1, tmp0_other_with_cast.esm_1)) return false; if (!equals(this.fsm_1, tmp0_other_with_cast.fsm_1)) return false; if (!(this.gsm_1 === tmp0_other_with_cast.gsm_1)) return false; if (!equals(this.hsm_1, tmp0_other_with_cast.hsm_1)) return false; return true; }; function get_thumbnailUri(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.jcp_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a7z_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.lcp_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hax_1; } else { tmp = tmp2_elvis_lhs; } return tmp; } function maxScoreForBlock(_this__u8e3s4, block) { var blockVal = block.icp_1; var tmp; var tmp_0 = blockVal == null ? null : blockVal.v7x_1; if (tmp_0 === 100) { var tmp$ret$0; $l$block: { // Inline function 'kotlin.collections.count' call var tmp_1; if (isInterface(_this__u8e3s4, Collection)) { tmp_1 = _this__u8e3s4.c1(); } else { tmp_1 = false; } if (tmp_1) { tmp$ret$0 = 0; break $l$block; } var count = 0; var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.maxScoreForBlock.' call var tmp_2; var tmp0_safe_receiver = element.icp_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x7x_1, blockVal.u7x_1)) { var tmp1_safe_receiver = element.icp_1; tmp_2 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f7y_1) == null); } else { tmp_2 = false; } if (tmp_2) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$0 = count; } var numBlocksWithScore = tmp$ret$0; var tmp_3; if (numBlocksWithScore === 0) { tmp_3 = null; } else { // Inline function 'kotlin.collections.sumOf' call var sum = 0.0; var tmp0_iterator_0 = _this__u8e3s4.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp_4 = sum; // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.maxScoreForBlock.' call var tmp0_safe_receiver_0 = element_0.icp_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.f7y_1; var tmp_5; if (tmp1_safe_receiver_0 == null) { tmp_5 = null; } else { // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_6; // Inline function 'com.ustadmobile.core.viewmodel.clazz.gradebook.maxScoreForBlock..' call var tmp0_safe_receiver_1 = element_0.icp_1; if (equals(tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.x7x_1, blockVal.u7x_1)) { tmp_6 = tmp1_safe_receiver_0; } else { tmp_6 = null; } tmp_5 = tmp_6; } var tmp2_safe_receiver = tmp_5; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver; sum = tmp_4 + (tmp3_elvis_lhs == null ? 0.0 : tmp3_elvis_lhs); } tmp_3 = sum; } tmp = tmp_3; } else { tmp = blockVal == null ? null : blockVal.f7y_1; } return tmp; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this$0, resultContinuation) { this.sso_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).uso = function (inviteAndClazz, $completion) { var tmp = this.vso(inviteAndClazz, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.uso((p1 == null ? true : p1 instanceof ClazzInviteAndClazz) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.sso_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_0; var tmp0_safe_receiver = this.tso_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q9n_1) == null)) { tmp_0 = Companion_getInstance_98().pq7_1; } else { tmp_0 = Companion_getInstance_98().oq7_1; } var nextValue = prevValue.hq7(VOID, tmp_0); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.sso_1.rsp_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.tso_1; var nextValue_0 = prevValue_0.ysp(this.tso_1, !((tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.q9n_1) == null)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).vso = function (inviteAndClazz, completion) { var i = new ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this.sso_1, completion); i.tso_1 = inviteAndClazz; return i; }; function ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (inviteAndClazz, $completion) { return i.uso(inviteAndClazz, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.hsq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.hsq_1.rqo().f7g().l9m(this.hsq_1.usp_1); var tmp_1 = ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda_0(this.hsq_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_12(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).m78 = function (completion) { return new ClazzInviteRedeemViewModel$lambda$slambda$slambda(this.hsq_1, completion); }; function ClazzInviteRedeemViewModel$lambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzInviteRedeemViewModel$lambda$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function _get_clazzInviteRedeemUseCase__c3cagh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tsp_1; clazzInviteRedeemUseCase$factory_0(); return this_0.t2(); } function Companion_119() { this.isq_1 = 'ClazzInviteRedeem'; } var Companion_instance_167; function Companion_getInstance_137() { return Companion_instance_167; } function sam$kotlinx_coroutines_flow_FlowCollector$0_12(function_0) { this.jsq_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_12).u1d = function (value, $completion) { return this.jsq_1(value, $completion); }; function ClazzInviteRedeemViewModel$lambda$slambda(this$0, resultContinuation) { this.ssq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.ssq_1.rsp_1, ClazzInviteRedeemViewModel$lambda$slambda$slambda_0(this.ssq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzInviteRedeemViewModel$lambda$slambda(this.ssq_1, completion); i.tsq_1 = $this$launch; return i; }; function ClazzInviteRedeemViewModel$lambda$slambda_0(this$0, resultContinuation) { var i = new ClazzInviteRedeemViewModel$lambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel..' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.mqo(); launch(tmp, VOID, VOID, ClazzInviteRedeemViewModel$lambda$slambda_0(this$0, null)); return Unit_instance; }; } function ClazzInviteRedeemViewModel$processDecision$slambda(this$0, $isAccepting, resultContinuation) { this.csr_1 = this$0; this.dsr_1 = $isAccepting; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; l$ret$1: do { var this_0 = this.csr_1.rsp_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ysp(VOID, false); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_clazzInviteRedeemUseCase__c3cagh(this.csr_1).rpg(this.csr_1.usp_1, this.dsr_1, this.csr_1.lqo().poa().ckz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; this.csr_1.tqo().wq7(new Snack(result.spg_1)); Companion_getInstance_141(); this.csr_1.xqn_1.gqa('CourseListHome', emptyMap(), new UstadGoOptions(VOID, VOID, true)); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { var e = this.ld_1; l$ret$3: do { var this_1 = this.csr_1.rsp_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_errorText = stringResourceOrMessage(e, this.csr_1.vqo()); var nextValue_0 = prevValue_0.ysp(VOID, true, tmp0_errorText); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).w1m = function ($this$launch, completion) { var i = new ClazzInviteRedeemViewModel$processDecision$slambda(this.csr_1, this.dsr_1, completion); i.esr_1 = $this$launch; return i; }; function ClazzInviteRedeemViewModel$processDecision$slambda_0(this$0, $isAccepting, resultContinuation) { var i = new ClazzInviteRedeemViewModel$processDecision$slambda(this$0, $isAccepting, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ClazzInviteRedeem'); this.rsp_1 = MutableStateFlow(new ClazzInviteRedeemUiState()); this.ssp_1 = asStateFlow(this.rsp_1); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(ClazzInviteRedeemUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.tsp_1 = Instance(this_0, tmp$ret$0, null).b5d(this, clazzInviteRedeemUseCase$factory()); var tmp_1 = this; Companion_getInstance_126(); var tmp0_elvis_lhs = savedStateHandle.ba('inviteCode'); var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('no invite code'); } else { tmp_2 = tmp0_elvis_lhs; } tmp_1.usp_1 = tmp_2; Companion_getInstance_126(); var tmp_3 = mapOf_0(to('inviteCode', this.usp_1)); this.kqp(false, tmp_3, ClazzInviteRedeemViewModel$lambda(this)); } protoOf(ClazzInviteRedeemViewModel).fsr = function (isAccepting) { // Inline function 'kotlin.takeIf' call var this_0 = this.mqo(); // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel.processDecision.' call if (this.rsp_1.t2().wsp_1) { tmp = this_0; } else { tmp = null; } var tmp0_safe_receiver = tmp; if (tmp0_safe_receiver == null) null; else { launch(tmp0_safe_receiver, VOID, VOID, ClazzInviteRedeemViewModel$processDecision$slambda_0(this, isAccepting, null)); } }; function ClazzInviteRedeemUiState(clazzInvite, enabled, errorText) { clazzInvite = clazzInvite === VOID ? null : clazzInvite; enabled = enabled === VOID ? false : enabled; errorText = errorText === VOID ? null : errorText; this.vsp_1 = clazzInvite; this.wsp_1 = enabled; this.xsp_1 = errorText; } protoOf(ClazzInviteRedeemUiState).gsr = function () { var tmp0_safe_receiver = this.vsp_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q9n_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k9n_1; return tmp === 0; }; protoOf(ClazzInviteRedeemUiState).hsr = function () { var tmp; if (this.wsp_1) { var tmp0_safe_receiver = this.vsp_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q9n_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k9n_1; tmp = tmp_0 === 0; } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).isr = function () { var tmp; var tmp0_safe_receiver = this.vsp_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q9n_1) == null)) { var tmp1_safe_receiver = this.vsp_1.q9n_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k9n_1; tmp = !(tmp_0 === 0); } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).jsr = function (clazzInvite, enabled, errorText) { return new ClazzInviteRedeemUiState(clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).ysp = function (clazzInvite, enabled, errorText, $super) { clazzInvite = clazzInvite === VOID ? this.vsp_1 : clazzInvite; enabled = enabled === VOID ? this.wsp_1 : enabled; errorText = errorText === VOID ? this.xsp_1 : errorText; return $super === VOID ? this.jsr(clazzInvite, enabled, errorText) : $super.jsr.call(this, clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).toString = function () { return 'ClazzInviteRedeemUiState(clazzInvite=' + this.vsp_1 + ', enabled=' + this.wsp_1 + ', errorText=' + this.xsp_1 + ')'; }; protoOf(ClazzInviteRedeemUiState).hashCode = function () { var result = this.vsp_1 == null ? 0 : this.vsp_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.wsp_1) | 0; result = imul(result, 31) + (this.xsp_1 == null ? 0 : getStringHashCode(this.xsp_1)) | 0; return result; }; protoOf(ClazzInviteRedeemUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzInviteRedeemUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzInviteRedeemUiState ? other : THROW_CCE(); if (!equals(this.vsp_1, tmp0_other_with_cast.vsp_1)) return false; if (!(this.wsp_1 === tmp0_other_with_cast.wsp_1)) return false; if (!(this.xsp_1 == tmp0_other_with_cast.xsp_1)) return false; return true; }; function clazzInviteRedeemUseCase$factory() { return getPropertyCallableRef('clazzInviteRedeemUseCase', 1, KProperty1, function (receiver) { return _get_clazzInviteRedeemUseCase__c3cagh(receiver); }, null); } function clazzInviteRedeemUseCase$factory_0() { return getPropertyCallableRef('clazzInviteRedeemUseCase', 1, KProperty1, function (receiver) { return _get_clazzInviteRedeemUseCase__c3cagh(receiver); }, null); } function _get_parseInviteUseCase__fcfumo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fss_1; parseInviteUseCase$factory_0(); return this_0.t2(); } function _get_sendClazzInvitesUseCase__utu0z8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gss_1; sendClazzInvitesUseCase$factory_0(); return this_0.t2(); } function _get_hideKeyboardUseCase__8r7d6l($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lss_1; hideKeyboardUseCase$factory_0(); return this_0.t2(); } function sendContactsToServer($this, contacts, $completion) { var tmp = new $sendContactsToServerCOROUTINE$70($this, contacts, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_120() { this.xss_1 = 'invite_via_contact'; this.yss_1 = 'person_role'; this.zss_1 = 'clazz_uid'; } var Companion_instance_168; function Companion_getInstance_138() { return Companion_instance_168; } function ClazzInviteViaContactViewModel$onClickSend$ref($boundThis) { var l = function () { $boundThis.ast(); return Unit_instance; }; l.callableName = 'onClickSend'; return l; } function ClazzInviteViaContactViewModel$onClickSend$slambda(this$0, resultContinuation) { this.jst_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; var tmp0_safe_receiver = _get_hideKeyboardUseCase__8r7d6l(this.jst_1); if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.apf(); } this.lst_1 = this.jst_1.jss_1.t2().pst_1; if (this.lst_1.c1()) { this.mst_1 = this.jst_1.jss_1.t2().qst_1; var this_0 = this.mst_1; if (!(this_0 == null ? true : isBlank(this_0))) { this.nst_1 = _get_parseInviteUseCase__fcfumo(this.jst_1).wp9(this.mst_1); this.id_1 = 4; suspendResult = sendContactsToServer(this.jst_1, this.nst_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } } else { this.id_1 = 1; continue $sm; } case 1: this.id_1 = 2; suspendResult = sendContactsToServer(this.jst_1, this.lst_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: var noContactFoundMessage = this.jst_1.vqo().soj(strings_getInstance().rnr_1); l$ret$1: do { var this_1 = this.jst_1.jss_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.rst(noContactFoundMessage); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.jst_1.sst(noContactFoundMessage); return Unit_instance; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).w1m = function ($this$launch, completion) { var i = new ClazzInviteViaContactViewModel$onClickSend$slambda(this.jst_1, completion); i.kst_1 = $this$launch; return i; }; function ClazzInviteViaContactViewModel$onClickSend$slambda_0(this$0, resultContinuation) { var i = new ClazzInviteViaContactViewModel$onClickSend$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function $sendContactsToServerCOROUTINE$70(_this__u8e3s4, contacts, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uss_1 = _this__u8e3s4; this.vss_1 = contacts; } protoOf($sendContactsToServerCOROUTINE$70).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.vss_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.ust_1) { destination.i1(element); } } tmp_0.wss_1 = destination; if (this.wss_1.c1()) { var noValidContactFoundMessage = this.uss_1.vqo().soj(strings_getInstance().qnr_1); l$ret$1: do { var this_1 = this.uss_1.jss_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.rst(noValidContactFoundMessage); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.uss_1.sst(noValidContactFoundMessage); return Unit_instance; } this.jd_1 = 2; this.id_1 = 1; var tmp_1 = _get_sendClazzInvitesUseCase__utu0z8(this.uss_1); var this_2 = this.wss_1; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_0 = this_2.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); destination_0.i1(item.tst_1); } suspendResult = tmp_1.sph(new SendClazzInvitesRequest(destination_0, this.uss_1.hss_1, this.uss_1.iss_1, this.uss_1.lqo().aoa().unu_1.g96_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uss_1.tqo().wq7(new Snack(this.uss_1.vqo().soj(strings_getInstance().rns_1))); Companion_getInstance_205(); this.uss_1.xqn_1.hqa('People', true); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_2 = this.ld_1; if (tmp_2 instanceof Error) { var e = this.ld_1; var tmp_3 = this.uss_1.tqo(); var tmp_4 = this.uss_1.vqo().soj(strings_getInstance().xmi_1); var tmp0_elvis_lhs = e.message; tmp_3.wq7(new Snack(tmp_4 + ': ' + (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function ClazzInviteViaContactViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'invite_via_contact'); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(ParseInviteUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.fss_1 = Instance(this, tmp$ret$0, null).b5d(this, parseInviteUseCase$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(SendClazzInvitesUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.gss_1 = Instance(this_0, tmp$ret$2, null).b5d(this, sendClazzInvitesUseCase$factory()); var tmp_3 = this; var tmp0_safe_receiver = savedStateHandle.ba('clazz_uid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.hss_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_4 = this; var tmp0_safe_receiver_0 = savedStateHandle.ba('person_role'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_4.iss_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; this.jss_1 = MutableStateFlow(new ClazzInviteViaContactUiState()); this.kss_1 = asStateFlow(this.jss_1); var tmp_5 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(HideKeyboardUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.lss_1 = InstanceOrNull(this, tmp$ret$4, null).b5d(this, hideKeyboardUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.' call var nextValue = new AppUiState(VOID, VOID, this.vqo().soj(strings_getInstance().mnr_1), VOID, true); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.' call var tmp_7 = this.vqo().soj(strings_getInstance().gmm_1); var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, ClazzInviteViaContactViewModel$onClickSend$ref(this))); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzInviteViaContactViewModel).ast = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzInviteViaContactViewModel$onClickSend$slambda_0(this, null)); }; protoOf(ClazzInviteViaContactViewModel).sst = function (error) { this.tqo().wq7(new Snack(error)); }; protoOf(ClazzInviteViaContactViewModel).wst = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.jss_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onClickChipSubmit.' call var nextValue = prevValue.rst(VOID, plus(prevValue.pst_1, _get_parseInviteUseCase__fcfumo(this).wp9(text))); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } return last(tmp$ret$1.pst_1); }; protoOf(ClazzInviteViaContactViewModel).xst = function (removedChipTexts) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.jss_1.t2().pst_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onChipsRemoved.' call if (!removedChipTexts.a1(element.tst_1)) { destination.i1(element); } } var newChips = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.jss_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onChipsRemoved.' call var nextValue = prevValue.rst(VOID, newChips); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzInviteViaContactViewModel).yst = function (newValue) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jss_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onTextFieldValueChanged.' call var nextValue = prevValue.rst(VOID, VOID, newValue); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; function ClazzInviteViaContactUiState(contactError, chips, textFieldValue) { contactError = contactError === VOID ? null : contactError; chips = chips === VOID ? emptyList() : chips; textFieldValue = textFieldValue === VOID ? null : textFieldValue; this.ost_1 = contactError; this.pst_1 = chips; this.qst_1 = textFieldValue; } protoOf(ClazzInviteViaContactUiState).zst = function (contactError, chips, textFieldValue) { return new ClazzInviteViaContactUiState(contactError, chips, textFieldValue); }; protoOf(ClazzInviteViaContactUiState).rst = function (contactError, chips, textFieldValue, $super) { contactError = contactError === VOID ? this.ost_1 : contactError; chips = chips === VOID ? this.pst_1 : chips; textFieldValue = textFieldValue === VOID ? this.qst_1 : textFieldValue; return $super === VOID ? this.zst(contactError, chips, textFieldValue) : $super.zst.call(this, contactError, chips, textFieldValue); }; protoOf(ClazzInviteViaContactUiState).toString = function () { return 'ClazzInviteViaContactUiState(contactError=' + this.ost_1 + ', chips=' + this.pst_1 + ', textFieldValue=' + this.qst_1 + ')'; }; protoOf(ClazzInviteViaContactUiState).hashCode = function () { var result = this.ost_1 == null ? 0 : getStringHashCode(this.ost_1); result = imul(result, 31) + hashCode(this.pst_1) | 0; result = imul(result, 31) + (this.qst_1 == null ? 0 : getStringHashCode(this.qst_1)) | 0; return result; }; protoOf(ClazzInviteViaContactUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzInviteViaContactUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzInviteViaContactUiState ? other : THROW_CCE(); if (!(this.ost_1 == tmp0_other_with_cast.ost_1)) return false; if (!equals(this.pst_1, tmp0_other_with_cast.pst_1)) return false; if (!(this.qst_1 == tmp0_other_with_cast.qst_1)) return false; return true; }; function InviteViaContactChip(text, isValid, inviteType) { this.tst_1 = text; this.ust_1 = isValid; this.vst_1 = inviteType; } protoOf(InviteViaContactChip).toString = function () { return 'InviteViaContactChip(text=' + this.tst_1 + ', isValid=' + this.ust_1 + ', inviteType=' + this.vst_1 + ')'; }; protoOf(InviteViaContactChip).hashCode = function () { var result = getStringHashCode(this.tst_1); result = imul(result, 31) + getBooleanHashCode(this.ust_1) | 0; result = imul(result, 31) + this.vst_1 | 0; return result; }; protoOf(InviteViaContactChip).equals = function (other) { if (this === other) return true; if (!(other instanceof InviteViaContactChip)) return false; var tmp0_other_with_cast = other instanceof InviteViaContactChip ? other : THROW_CCE(); if (!(this.tst_1 === tmp0_other_with_cast.tst_1)) return false; if (!(this.ust_1 === tmp0_other_with_cast.ust_1)) return false; if (!(this.vst_1 === tmp0_other_with_cast.vst_1)) return false; return true; }; function parseInviteUseCase$factory() { return getPropertyCallableRef('parseInviteUseCase', 1, KProperty1, function (receiver) { return _get_parseInviteUseCase__fcfumo(receiver); }, null); } function sendClazzInvitesUseCase$factory() { return getPropertyCallableRef('sendClazzInvitesUseCase', 1, KProperty1, function (receiver) { return _get_sendClazzInvitesUseCase__utu0z8(receiver); }, null); } function hideKeyboardUseCase$factory() { return getPropertyCallableRef('hideKeyboardUseCase', 1, KProperty1, function (receiver) { return _get_hideKeyboardUseCase__8r7d6l(receiver); }, null); } function parseInviteUseCase$factory_0() { return getPropertyCallableRef('parseInviteUseCase', 1, KProperty1, function (receiver) { return _get_parseInviteUseCase__fcfumo(receiver); }, null); } function sendClazzInvitesUseCase$factory_0() { return getPropertyCallableRef('sendClazzInvitesUseCase', 1, KProperty1, function (receiver) { return _get_sendClazzInvitesUseCase__utu0z8(receiver); }, null); } function hideKeyboardUseCase$factory_0() { return getPropertyCallableRef('hideKeyboardUseCase', 1, KProperty1, function (receiver) { return _get_hideKeyboardUseCase__8r7d6l(receiver); }, null); } function _get_makeLinkUseCase__qbv742($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xsu_1; makeLinkUseCase$factory_0(); return this_0.t2(); } function _get_setClipboardStringUseCase__31i1s1_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zsu_1; setClipboardStringUseCase$factory_2(); return this_0.t2(); } function _get_shareTextUseCase__god44g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.asv_1; shareTextUseCase$factory_0(); return this_0.t2(); } function Companion_121() { this.csv_1 = 'InviteWithLink'; } var Companion_instance_169; function Companion_getInstance_139() { return Companion_instance_169; } function ClazzInviteViaLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'InviteWithLink'); this.vsu_1 = MutableStateFlow(new ClazzInviteViaLinkUiState()); this.wsu_1 = asStateFlow(this.vsu_1); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(MakeLinkUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.xsu_1 = Instance(this_0, tmp$ret$0, null).b5d(this, makeLinkUseCase$factory()); var tmp_1 = this; Companion_getInstance_126(); var tmp0_elvis_lhs = savedStateHandle.ba('inviteCode'); var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('no invite code'); } else { tmp_2 = tmp0_elvis_lhs; } tmp_1.ysu_1 = tmp_2; var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.zsu_1 = Instance(this, tmp$ret$2, null).b5d(this, setClipboardStringUseCase$factory_1()); var tmp_5 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(ShareTextUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.asv_1 = InstanceOrNull(this, tmp$ret$4, null).b5d(this, shareTextUseCase$factory()); var tmp_7 = this; var tmp_8 = _get_makeLinkUseCase__qbv742(this); Companion_getInstance_126(); tmp_7.bsv_1 = tmp_8.tpi('JoinWithCode', mapOf_0(to('inviteCode', this.ysu_1))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.ClazzInviteViaLinkViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().hn9_1)); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.vsu_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.ClazzInviteViaLinkViewModel.' call var nextValue_0 = prevValue_0.fsv(this.bsv_1, !(_get_shareTextUseCase__god44g(this) == null)); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzInviteViaLinkViewModel).gsv = function () { _get_setClipboardStringUseCase__31i1s1_0(this).yp1(this.bsv_1); this.tqo().wq7(new Snack(this.vqo().soj(strings_getInstance().cn9_1))); }; function ClazzInviteViaLinkUiState(inviteLink, showShareLinkButton) { inviteLink = inviteLink === VOID ? null : inviteLink; showShareLinkButton = showShareLinkButton === VOID ? false : showShareLinkButton; this.dsv_1 = inviteLink; this.esv_1 = showShareLinkButton; } protoOf(ClazzInviteViaLinkUiState).fsv = function (inviteLink, showShareLinkButton) { return new ClazzInviteViaLinkUiState(inviteLink, showShareLinkButton); }; protoOf(ClazzInviteViaLinkUiState).toString = function () { return 'ClazzInviteViaLinkUiState(inviteLink=' + this.dsv_1 + ', showShareLinkButton=' + this.esv_1 + ')'; }; protoOf(ClazzInviteViaLinkUiState).hashCode = function () { var result = this.dsv_1 == null ? 0 : getStringHashCode(this.dsv_1); result = imul(result, 31) + getBooleanHashCode(this.esv_1) | 0; return result; }; protoOf(ClazzInviteViaLinkUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzInviteViaLinkUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzInviteViaLinkUiState ? other : THROW_CCE(); if (!(this.dsv_1 == tmp0_other_with_cast.dsv_1)) return false; if (!(this.esv_1 === tmp0_other_with_cast.esv_1)) return false; return true; }; function makeLinkUseCase$factory() { return getPropertyCallableRef('makeLinkUseCase', 1, KProperty1, function (receiver) { return _get_makeLinkUseCase__qbv742(receiver); }, null); } function setClipboardStringUseCase$factory_1() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1_0(receiver); }, null); } function shareTextUseCase$factory() { return getPropertyCallableRef('shareTextUseCase', 1, KProperty1, function (receiver) { return _get_shareTextUseCase__god44g(receiver); }, null); } function makeLinkUseCase$factory_0() { return getPropertyCallableRef('makeLinkUseCase', 1, KProperty1, function (receiver) { return _get_makeLinkUseCase__qbv742(receiver); }, null); } function setClipboardStringUseCase$factory_2() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1_0(receiver); }, null); } function shareTextUseCase$factory_0() { return getPropertyCallableRef('shareTextUseCase', 1, KProperty1, function (receiver) { return _get_shareTextUseCase__god44g(receiver); }, null); } function _get_requestEnrolmentUseCase__62wq8f($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.esw_1; requestEnrolmentUseCase$factory_0(); return this_0.t2(); } function Companion_122() { this.fsw_1 = 'JoinWithCode'; } var Companion_instance_170; function Companion_getInstance_140() { return Companion_instance_170; } function JoinWithCodeViewModel$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel..' call var nextValue = prevValue.hq7(VOID, VOID, this$0.vqo().soj(strings_getInstance().rnj_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function JoinWithCodeViewModel$onClickJoin$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.csw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onClickJoin..' call var nextValue = prevValue.jsw(VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function JoinWithCodeViewModel$onClickJoin$slambda(this$0, resultContinuation) { this.ssw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(JoinWithCodeViewModel$onClickJoin$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; var tmp_0 = _get_requestEnrolmentUseCase__62wq8f(this.ssw_1); var tmp_1 = this.ssw_1.csw_1.t2().hsw_1; var tmp_2 = this.ssw_1.lqo().aoa().unu_1; suspendResult = tmp_0.xp1(tmp_1, tmp_2, 1000, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ssw_1.tqo().wq7(new Snack(this.ssw_1.vqo().soj(strings_getInstance().rnn_1))); if (!(this.ssw_1.wqo() == null)) { this.ssw_1.gqu(null); } else { Companion_getInstance_141(); this.ssw_1.xqn_1.gqa('CourseListHome', emptyMap(), new UstadGoOptions(VOID, VOID, true)); } this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_3 = this.ld_1; if (tmp_3 instanceof Error) { var e = this.ld_1; var tmp_4; if (e instanceof IllegalArgumentException) { tmp_4 = strings_getInstance().xno_1; } else { if (e instanceof AlreadyHasPendingRequestException) { tmp_4 = strings_getInstance().qnn_1; } else { if (e instanceof AlreadyEnroledInClassException) { tmp_4 = strings_getInstance().dnb_1; } else { tmp_4 = strings_getInstance().xmi_1; } } } var errorMessage = tmp_4; l$ret$1: do { var this_0 = this.ssw_1.csw_1; while (true) { var prevValue = this_0.t2(); var tmp_5 = this.ssw_1.vqo().soj(errorMessage); var tmp0_safe_receiver = e.message; var tmp_6; if (tmp0_safe_receiver == null) { tmp_6 = null; } else { tmp_6 = ' :' + tmp0_safe_receiver; } var tmp1_elvis_lhs = tmp_6; var nextValue = prevValue.jsw(tmp_5 + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).m78 = function (completion) { return new JoinWithCodeViewModel$onClickJoin$slambda(this.ssw_1, completion); }; function JoinWithCodeViewModel$onClickJoin$slambda_0(this$0, resultContinuation) { var i = new JoinWithCodeViewModel$onClickJoin$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function JoinWithCodeViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'JoinWithCode'); var tmp = this; Companion_getInstance_126(); var tmp0_elvis_lhs = savedStateHandle.ba('inviteCode'); tmp.csw_1 = MutableStateFlow(new JoinWithCodeUiState(VOID, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)); this.dsw_1 = asStateFlow(this.csw_1); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(RequestEnrolmentUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.esw_1 = Instance(this_0, tmp$ret$0, null).b5d(this, requestEnrolmentUseCase$factory()); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_1 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.' call Companion_getInstance_126(); this.iqp(this_1, 'inviteCode'); var tmp_2 = this_1.f3(); this.lqp(VOID, tmp_2, JoinWithCodeViewModel$lambda(this)); } protoOf(JoinWithCodeViewModel).tsw = function (codeVal) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.csw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onCodeValueChange.' call var nextValue = prevValue.jsw(null, codeVal); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(JoinWithCodeViewModel).usw = function () { var tmp = JoinWithCodeViewModel$onClickJoin$lambda(this); this.iqv(tmp, JoinWithCodeViewModel$onClickJoin$slambda_0(this, null)); }; function JoinWithCodeUiState(codeError, code, fieldsEnabled) { codeError = codeError === VOID ? null : codeError; code = code === VOID ? '' : code; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; this.gsw_1 = codeError; this.hsw_1 = code; this.isw_1 = fieldsEnabled; } protoOf(JoinWithCodeUiState).vsw = function (codeError, code, fieldsEnabled) { return new JoinWithCodeUiState(codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).jsw = function (codeError, code, fieldsEnabled, $super) { codeError = codeError === VOID ? this.gsw_1 : codeError; code = code === VOID ? this.hsw_1 : code; fieldsEnabled = fieldsEnabled === VOID ? this.isw_1 : fieldsEnabled; return $super === VOID ? this.vsw(codeError, code, fieldsEnabled) : $super.vsw.call(this, codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).toString = function () { return 'JoinWithCodeUiState(codeError=' + this.gsw_1 + ', code=' + this.hsw_1 + ', fieldsEnabled=' + this.isw_1 + ')'; }; protoOf(JoinWithCodeUiState).hashCode = function () { var result = this.gsw_1 == null ? 0 : getStringHashCode(this.gsw_1); result = imul(result, 31) + getStringHashCode(this.hsw_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.isw_1) | 0; return result; }; protoOf(JoinWithCodeUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof JoinWithCodeUiState)) return false; var tmp0_other_with_cast = other instanceof JoinWithCodeUiState ? other : THROW_CCE(); if (!(this.gsw_1 == tmp0_other_with_cast.gsw_1)) return false; if (!(this.hsw_1 === tmp0_other_with_cast.hsw_1)) return false; if (!(this.isw_1 === tmp0_other_with_cast.isw_1)) return false; return true; }; function requestEnrolmentUseCase$factory() { return getPropertyCallableRef('requestEnrolmentUseCase', 1, KProperty1, function (receiver) { return _get_requestEnrolmentUseCase__62wq8f(receiver); }, null); } function requestEnrolmentUseCase$factory_0() { return getPropertyCallableRef('requestEnrolmentUseCase', 1, KProperty1, function (receiver) { return _get_requestEnrolmentUseCase__62wq8f(receiver); }, null); } function ClazzListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.esx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda).gqg = function (hasPermission, $completion) { var tmp = this.hqg(hasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.esx_1.qqw_1; while (true) { var prevValue = this_0.t2(); var tmp0_newClazzListOptionVisible = this.fsx_1 ? this.esx_1.vqw().equals(ListViewMode_PICKER_getInstance()) : false; var nextValue = prevValue.rsx(tmp0_newClazzListOptionVisible, VOID, VOID, VOID, VOID, VOID, this.fsx_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzListViewModel$slambda$slambda$slambda).hqg = function (hasPermission, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda(this.esx_1, completion); i.fsx_1 = hasPermission; return i; }; function ClazzListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (hasPermission, $completion) { return i.gqg(hasPermission, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda(this$0, resultContinuation) { this.asy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.asy_1.rqo().q7f(); var tmp_1 = this.asy_1.lqo().poa().ckz_1; PermissionFlags_getInstance(); var tmp_2 = distinctUntilChanged(tmp_0.wi0(tmp_1, new Long(512, 0))); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_0(this.asy_1, null); suspendResult = tmp_2.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_13(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda$slambda).m78 = function (completion) { return new ClazzListViewModel$slambda$slambda(this.asy_1, completion); }; function ClazzListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.jsy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda_1).lsy = function (it, $completion) { var tmp = this.msy(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzListViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.lsy((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.jsy_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rsx(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ksy_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzListViewModel$slambda$slambda$slambda_1).msy = function (it, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda_1(this.jsy_1, completion); i.ksy_1 = it; return i; }; function ClazzListViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.lsy(it, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.vsy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda_1).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzListViewModel$slambda$slambda_1).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzListViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.vsy_1.rqo().o7f(); var tmp_1 = this.vsy_1.nqo(); var tmp_2 = tmp_0.uex(tmp_1, 1); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_2(this.vsy_1, null); suspendResult = tmp_2.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_13(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzListViewModel$slambda$slambda_1(this.vsy_1, completion); }; function ClazzListViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzListViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_123() { Companion_instance_171 = this; this.wsy_1 = 'CourseList'; this.xsy_1 = 'CourseListHome'; this.ysy_1 = listOf(['CourseList', 'CourseListHome']); this.zsy_1 = 'excludeAlreadySelectedClazzList'; } var Companion_instance_171; function Companion_getInstance_141() { if (Companion_instance_171 == null) new Companion_123(); return Companion_instance_171; } function sam$kotlinx_coroutines_flow_FlowCollector$0_13(function_0) { this.asz_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_13).u1d = function (value, $completion) { return this.asz_1(value, $completion); }; function ClazzListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().p7d().x8c(toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1), this$0.lqo().poa().ckz_1, this$0.bt0_1, this$0.qqw_1.t2().jsx_1.oqd_1, this$0.qqw_1.t2().lsx_1, systemTimeInMillis(), this$0.ct0_1); }; } function ClazzListViewModel$slambda(this$0, resultContinuation) { this.mt0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.mt0_1.qqw_1, ClazzListViewModel$slambda$slambda_0(this.mt0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzListViewModel$slambda(this.mt0_1, completion); i.nt0_1 = $this$launch; return i; }; function ClazzListViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda_1(this$0, resultContinuation) { this.wt0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzListViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.wt0_1.qqw_1, ClazzListViewModel$slambda$slambda_2(this.wt0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzListViewModel$slambda_1(this.wt0_1, completion); i.xt0_1 = $this$launch; return i; }; function ClazzListViewModel$slambda_2(this$0, resultContinuation) { var i = new ClazzListViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$onClickCancelEnrolmentRequest$slambda(this$0, $enrolmentRequest, resultContinuation) { this.gt1_1 = this$0; this.ht1_1 = $enrolmentRequest; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.gt1_1.rqo().o7f(); var tmp_1 = this.ht1_1.ley_1; suspendResult = tmp_0.vex(tmp_1, 4, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gt1_1.tqo().wq7(new Snack(this.gt1_1.vqo().soj(strings_getInstance().snn_1))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).w1m = function ($this$launch, completion) { var i = new ClazzListViewModel$onClickCancelEnrolmentRequest$slambda(this.gt1_1, this.ht1_1, completion); i.it1_1 = $this$launch; return i; }; function ClazzListViewModel$onClickCancelEnrolmentRequest$slambda_0(this$0, $enrolmentRequest, resultContinuation) { var i = new ClazzListViewModel$onClickCancelEnrolmentRequest$slambda(this$0, $enrolmentRequest, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_141(); destinationName = destinationName === VOID ? 'CourseList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ClazzListUiState(), destinationName); var tmp = this; var tmp0_safe_receiver = savedStateHandle.ba('excludeAlreadySelectedClazzList'); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, [',']); var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = tmp1_safe_receiver.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.filterAlreadySelectedList.' call // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(element) > 0) { destination.i1(element); } } tmp_0 = destination; } var tmp2_safe_receiver = tmp_0; var tmp_1; if (tmp2_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10)); var tmp0_iterator_0 = tmp2_safe_receiver.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.filterAlreadySelectedList.' call // Inline function 'kotlin.text.trim' call var tmp$ret$4 = toString(trim(isCharSequence(item) ? item : THROW_CCE())); var tmp$ret$5 = toLong_0(tmp$ret$4); destination_0.i1(tmp$ret$5); } tmp_1 = destination_0; } var tmp3_elvis_lhs = tmp_1; var tmp_2; if (tmp3_elvis_lhs == null) { // Inline function 'kotlin.collections.listOf' call tmp_2 = emptyList(); } else { tmp_2 = tmp3_elvis_lhs; } tmp.bt0_1 = tmp_2; var tmp_3 = this; Companion_getInstance_117(); var tmp0_safe_receiver_0 = savedStateHandle.ba('filterByPermission'); var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); var tmp_4; if (tmp1_elvis_lhs == null) { PermissionFlags_getInstance(); tmp_4 = new Long(1, 0); } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.ct0_1 = tmp_4; var tmp_5 = this; tmp_5.dt0_1 = ClazzListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.' call var tmp0_searchState = this.zqx(); var tmp1_title = this.hqy(strings_getInstance().dnj_1, strings_getInstance().dnj_1); var tmp2_fabState = this.cqy(!this.nqo().equals(new Long(0, 0)), strings_getInstance().enj_1); var nextValue = prevValue.hq7(tmp2_fabState, VOID, tmp1_title, true, VOID, VOID, VOID, tmp0_searchState); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqw_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.' call // Inline function 'kotlin.collections.associateWith' call var this_2 = values(); var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(this_2.length), 16)); // Inline function 'kotlin.collections.associateWithTo' call var inductionVariable = 0; var last = this_2.length; while (inductionVariable < last) { var element_0 = this_2[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel..' call var tmp$ret$11 = this.vqo().soj(get_dayStringResource(element_0)); result.s(element_0, tmp$ret$11); } var tmp1_clazzList = this.dt0_1; var nextValue_0 = prevValue_0.rsx(VOID, tmp1_clazzList, VOID, VOID, VOID, VOID, VOID, VOID, VOID, result); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.mqo(); launch(tmp_6, VOID, VOID, ClazzListViewModel$slambda_0(this, null)); var tmp_7 = this.mqo(); launch(tmp_7, VOID, VOID, ClazzListViewModel$slambda_2(this, null)); } protoOf(ClazzListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).lqx = function () { this.eqy('CourseEdit'); }; protoOf(ClazzListViewModel).jt1 = function () { Companion_getInstance_117(); Companion_getInstance_4(); this.xqn_1.tp6('JoinWithCode', mapOf_0(to('argCodeTable', (6).toString()))); }; protoOf(ClazzListViewModel).kt1 = function (entry) { this.gqy('Course', entry.s8d_1, entry); }; protoOf(ClazzListViewModel).lt1 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onSortOrderChanged.' call var nextValue = prevValue.rsx(VOID, VOID, VOID, sortOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).mt1 = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onClickFilterChip.' call var nextValue = prevValue.rsx(VOID, VOID, VOID, VOID, VOID, filterOption.kq8_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).nt1 = function (enrolmentRequest) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzListViewModel$onClickCancelEnrolmentRequest$slambda_0(this, enrolmentRequest, null)); }; function Companion_124() { Companion_instance_172 = this; var tmp = this; var tmp_0 = strings_getInstance().wmk_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().wmk_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().sml_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().sml_1; tmp.ot1_1 = listOf([tmp_1, tmp_3, tmp_5, new SortOrderOption(tmp_6, 4, false)]); } var Companion_instance_172; function Companion_getInstance_142() { if (Companion_instance_172 == null) new Companion_124(); return Companion_instance_172; } function ClazzListUiState$_init_$lambda_r0y0x0() { return new EmptyPagingSource(); } function ClazzListUiState(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) { Companion_getInstance_142(); newClazzListOptionVisible = newClazzListOptionVisible === VOID ? true : newClazzListOptionVisible; var tmp; if (clazzList === VOID) { tmp = ClazzListUiState$_init_$lambda_r0y0x0; } else { tmp = clazzList; } clazzList = tmp; sortOptions = sortOptions === VOID ? Companion_getInstance_142().ot1_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? first_0(sortOptions) : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; var tmp_0; if (selectedChipId === VOID) { tmp_0 = 5; } else { tmp_0 = selectedChipId; } selectedChipId = tmp_0; canAddNewCourse = canAddNewCourse === VOID ? false : canAddNewCourse; pendingEnrolments = pendingEnrolments === VOID ? emptyList() : pendingEnrolments; var tmp_1; if (filterOptions === VOID) { var tmp_2 = strings_getInstance().tnj_1; tmp_1 = listOf([new MessageIdOption2(tmp_2, 5), new MessageIdOption2(strings_getInstance().gn0_1, 0)]); } else { tmp_1 = filterOptions; } filterOptions = tmp_1; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; this.gsx_1 = newClazzListOptionVisible; this.hsx_1 = clazzList; this.isx_1 = sortOptions; this.jsx_1 = activeSortOrderOption; this.ksx_1 = fieldsEnabled; this.lsx_1 = selectedChipId; this.msx_1 = canAddNewCourse; this.nsx_1 = pendingEnrolments; this.osx_1 = filterOptions; this.psx_1 = dayOfWeekStrings; this.qsx_1 = localDateTimeNow; } protoOf(ClazzListUiState).pt1 = function (newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) { return new ClazzListUiState(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow); }; protoOf(ClazzListUiState).rsx = function (newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow, $super) { newClazzListOptionVisible = newClazzListOptionVisible === VOID ? this.gsx_1 : newClazzListOptionVisible; clazzList = clazzList === VOID ? this.hsx_1 : clazzList; sortOptions = sortOptions === VOID ? this.isx_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.jsx_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.ksx_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.lsx_1 : selectedChipId; canAddNewCourse = canAddNewCourse === VOID ? this.msx_1 : canAddNewCourse; pendingEnrolments = pendingEnrolments === VOID ? this.nsx_1 : pendingEnrolments; filterOptions = filterOptions === VOID ? this.osx_1 : filterOptions; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.psx_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.qsx_1 : localDateTimeNow; return $super === VOID ? this.pt1(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) : $super.pt1.call(this, newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow); }; protoOf(ClazzListUiState).toString = function () { return 'ClazzListUiState(newClazzListOptionVisible=' + this.gsx_1 + ', clazzList=' + this.hsx_1 + ', sortOptions=' + this.isx_1 + ', activeSortOrderOption=' + this.jsx_1 + ', fieldsEnabled=' + this.ksx_1 + ', selectedChipId=' + this.lsx_1 + ', canAddNewCourse=' + this.msx_1 + ', pendingEnrolments=' + this.nsx_1 + ', filterOptions=' + this.osx_1 + ', dayOfWeekStrings=' + this.psx_1 + ', localDateTimeNow=' + this.qsx_1 + ')'; }; protoOf(ClazzListUiState).hashCode = function () { var result = getBooleanHashCode(this.gsx_1); result = imul(result, 31) + hashCode(this.hsx_1) | 0; result = imul(result, 31) + hashCode(this.isx_1) | 0; result = imul(result, 31) + this.jsx_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ksx_1) | 0; result = imul(result, 31) + this.lsx_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.msx_1) | 0; result = imul(result, 31) + hashCode(this.nsx_1) | 0; result = imul(result, 31) + hashCode(this.osx_1) | 0; result = imul(result, 31) + hashCode(this.psx_1) | 0; result = imul(result, 31) + this.qsx_1.hashCode() | 0; return result; }; protoOf(ClazzListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzListUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzListUiState ? other : THROW_CCE(); if (!(this.gsx_1 === tmp0_other_with_cast.gsx_1)) return false; if (!equals(this.hsx_1, tmp0_other_with_cast.hsx_1)) return false; if (!equals(this.isx_1, tmp0_other_with_cast.isx_1)) return false; if (!this.jsx_1.equals(tmp0_other_with_cast.jsx_1)) return false; if (!(this.ksx_1 === tmp0_other_with_cast.ksx_1)) return false; if (!(this.lsx_1 === tmp0_other_with_cast.lsx_1)) return false; if (!(this.msx_1 === tmp0_other_with_cast.msx_1)) return false; if (!equals(this.nsx_1, tmp0_other_with_cast.nsx_1)) return false; if (!equals(this.osx_1, tmp0_other_with_cast.osx_1)) return false; if (!equals(this.psx_1, tmp0_other_with_cast.psx_1)) return false; if (!this.qsx_1.equals(tmp0_other_with_cast.qsx_1)) return false; return true; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).at2 = function (entity, permissions, $completion) { var tmp = this.bt2(entity, permissions, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).vm = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof CoursePermission) ? p1 : THROW_CCE(); return this.at2(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.yt1_1; var tmp_0; if (this.zt1_1.idn_1) { tmp_0 = this_0; } else { tmp_0 = null; } return new Pair(tmp_0, this.zt1_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).bt2 = function (entity, permissions, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.yt1_1 = entity; i.zt1_1 = permissions; return i; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_0(resultContinuation) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation); var l = function (entity, permissions, $completion) { return i.at2(entity, permissions, $completion); }; l.$arity = 2; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.kt2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).rt2 = function (it, $completion) { var tmp = this.st2(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.rt2(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.mt2_1 = this.lt2_1; this.nt2_1 = this.mt2_1.y6(); this.ot2_1 = this.mt2_1.z6(); this.pt2_1 = this.ot2_1; this.qt2_1 = this.pt2_1.z6(); l$ret$1: do { var this_0 = this.kt2_1.pt3_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.nt2_1 == null)) { tmp_0 = CoursePermissionConstants_getInstance().yrh_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.ut3(this.nt2_1, tmp_0); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.kt2_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(prevValue_0.sq6_1.nq7(this.qt2_1)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.nt2_1 == null)) { this.id_1 = 1; suspendResult = getTitleForCoursePermission(this.kt2_1, this.nt2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: var title = suspendResult; l$ret$5: do { var this_2 = this.kt2_1.zqn_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.hq7(VOID, VOID, title); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).st2 = function (it, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.kt2_1, completion); i.lt2_1 = it; return i; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.rt2(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $permissionFlow, this$0, resultContinuation) { this.dt4_1 = $entityFlow; this.et4_1 = $permissionFlow; this.ft4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.dt4_1, this.et4_1, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null))); suspendResult = collectLatest(tmp_0, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.ft4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda(this.dt4_1, this.et4_1, this.ft4_1, completion); i.gt4_1 = $this$launch; return i; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda_0($entityFlow, $permissionFlow, this$0, resultContinuation) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $permissionFlow, this$0, resultContinuation) { this.pt4_1 = $this_launch; this.qt4_1 = $entityFlow; this.rt4_1 = $permissionFlow; this.st4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.pt4_1, VOID, VOID, CoursePermissionDetailViewModel$slambda$slambda$slambda_0(this.qt4_1, this.rt4_1, this.st4_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).m78 = function (completion) { return new CoursePermissionDetailViewModel$slambda$slambda(this.pt4_1, this.qt4_1, this.rt4_1, this.st4_1, completion); }; function CoursePermissionDetailViewModel$slambda$slambda_0($this_launch, $entityFlow, $permissionFlow, this$0, resultContinuation) { var i = new CoursePermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $permissionFlow, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function onClickEdit_0($this) { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissiondetail.CoursePermissionDetailViewModel.onClickEdit.' call Companion_getInstance_126(); var tmp0_safe_receiver = $this.pt3_1.t2().st3_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.adl_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); this_0.s('entityUid', tmp2_elvis_lhs == null ? '0' : tmp2_elvis_lhs); Companion_getInstance_126(); $this.iqp(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); $this.xqn_1.tp6('CoursePermissionEdit', tmp$ret$2); } function Companion_125() { this.tt4_1 = 'CoursePermissionDetail'; } var Companion_instance_173; function Companion_getInstance_143() { return Companion_instance_173; } function CoursePermissionDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { onClickEdit_0($boundThis); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function CoursePermissionDetailViewModel$slambda(this$0, $entityFlow, $permissionFlow, resultContinuation) { this.ct5_1 = this$0; this.dt5_1 = $entityFlow; this.et5_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.ct5_1.pt3_1, CoursePermissionDetailViewModel$slambda$slambda_0(this.ft5_1, this.dt5_1, this.et5_1, this.ct5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CoursePermissionDetailViewModel$slambda(this.ct5_1, this.dt5_1, this.et5_1, completion); i.ft5_1 = $this$launch; return i; }; function CoursePermissionDetailViewModel$slambda_0(this$0, $entityFlow, $permissionFlow, resultContinuation) { var i = new CoursePermissionDetailViewModel$slambda(this$0, $entityFlow, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CoursePermissionDetail'); this.pt3_1 = MutableStateFlow(new CoursePermissionDetailUiState()); this.qt3_1 = asStateFlow(this.pt3_1); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.rt3_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var entityFlow = this.rqo().p7f().q7s(this.pqn_1, this.rt3_1); var tmp_0 = this.rqo().p7f(); var tmp_1 = this.nqo(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = tmp_0.hdk(tmp_1, this.rt3_1, tmp_2, new Long(2, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissiondetail.CoursePermissionDetailViewModel.' call var tmp_3 = this.vqo().soj(strings_getInstance().amw_1); var tmp_4 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.hq7(new FabUiState(VOID, tmp_3, tmp_4, CoursePermissionDetailViewModel$onClickEdit$ref(this))); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_5 = this.mqo(); launch(tmp_5, VOID, VOID, CoursePermissionDetailViewModel$slambda_0(this, entityFlow, permissionFlow, null)); } function CoursePermissionDetailUiState(coursePermission, permissionLabels) { coursePermission = coursePermission === VOID ? null : coursePermission; permissionLabels = permissionLabels === VOID ? emptyList() : permissionLabels; this.st3_1 = coursePermission; this.tt3_1 = permissionLabels; } protoOf(CoursePermissionDetailUiState).ut3 = function (coursePermission, permissionLabels) { return new CoursePermissionDetailUiState(coursePermission, permissionLabels); }; protoOf(CoursePermissionDetailUiState).toString = function () { return 'CoursePermissionDetailUiState(coursePermission=' + this.st3_1 + ', permissionLabels=' + this.tt3_1 + ')'; }; protoOf(CoursePermissionDetailUiState).hashCode = function () { var result = this.st3_1 == null ? 0 : this.st3_1.hashCode(); result = imul(result, 31) + hashCode(this.tt3_1) | 0; return result; }; protoOf(CoursePermissionDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermissionDetailUiState)) return false; var tmp0_other_with_cast = other instanceof CoursePermissionDetailUiState ? other : THROW_CCE(); if (!equals(this.st3_1, tmp0_other_with_cast.st3_1)) return false; if (!equals(this.tt3_1, tmp0_other_with_cast.tt3_1)) return false; return true; }; function CoursePermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.ot5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda).qt5 = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.qt5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.pt5_1.p7f().ddk(this.ot5_1.dqu_1, this.ot5_1.qt6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new CoursePermissionEditViewModel$slambda$slambda(this.ot5_1, completion); i.pt5_1 = db; return i; }; function CoursePermissionEditViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new CoursePermissionEditViewModel$slambda$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.qt5(db, $completion); }; l.$arity = 1; return l; } function CoursePermissionEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.zt6_1 = this$0; this.at7_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda_1).tdq = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.tdq($completion); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.zt6_1.pqo()); Companion_getInstance_5(); suspendResult = tmp_0.p62(10012, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; Companion_getInstance_126(); var tmp0_safe_receiver = this.at7_1.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp2_safe_receiver = this.at7_1.ba('grantToRole'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toInt(tmp2_safe_receiver); var tmp_2 = tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs; Companion_getInstance_126(); var tmp4_safe_receiver = this.at7_1.ba('personUid'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toLong_0(tmp4_safe_receiver); return new CoursePermission(ARGUMENT, VOID, tmp_1, tmp_2, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).m78 = function (completion) { return new CoursePermissionEditViewModel$slambda$slambda_1(this.zt6_1, this.at7_1, completion); }; function CoursePermissionEditViewModel$slambda$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new CoursePermissionEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($completion) { return i.tdq($completion); }; l.$arity = 0; return l; } function CoursePermissionEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.ot6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel...' call var nextValue = prevValue.et7(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CoursePermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.nt7_1 = this$0; this.ot7_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.nt7_1.rqo().p7f().edk(this.ot7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new CoursePermissionEditViewModel$onClickSave$slambda$slambda(this.nt7_1, this.ot7_1, completion); i.pt7_1 = it; return i; }; function CoursePermissionEditViewModel$onClickSave$slambda$slambda_0(this$0, $entity, resultContinuation) { var i = new CoursePermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function Companion_126() { this.qt7_1 = 'CoursePermissionEdit'; this.rt7_1 = 'grantToRole'; } var Companion_instance_174; function Companion_getInstance_144() { return Companion_instance_174; } function CoursePermissionEditViewModel$slambda(this$0, resultContinuation) { this.at8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda).kse = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.bt8_1.p7f(); var tmp_1 = this.at8_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.kdk(tmp_1, this.at8_1.qt6_1, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda).enz = function (it, completion) { var i = new CoursePermissionEditViewModel$slambda(this.at8_1, completion); i.bt8_1 = it; return i; }; function CoursePermissionEditViewModel$slambda_0(this$0, resultContinuation) { var i = new CoursePermissionEditViewModel$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.kse(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionEditViewModel$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.ot6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel..' call var nextValue = prevValue.et7(VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.kt8_1 = this$0; this.lt8_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; var tmp_0 = Companion_getInstance_5().o4r(); var tmp_1 = CoursePermissionEditViewModel$slambda$slambda_0(this.kt8_1, null); var tmp_2 = CoursePermissionEditViewModel$slambda$slambda_2(this.kt8_1, this.lt8_1, null); suspendResult = this.kt8_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, CoursePermissionEditViewModel$slambda$lambda(this.kt8_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nt8_1 = suspendResult; this.id_1 = 2; suspendResult = getTitleForCoursePermission(this.kt8_1, this.nt8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$1: do { var this_0 = this.kt8_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.kt8_1.vqo().soj(strings_getInstance().on3_1); var nextValue = prevValue.hq7(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, CoursePermissionEditViewModel$onClickSave$ref(this.kt8_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.kt8_1.ot6_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.et7(VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new CoursePermissionEditViewModel$slambda_1(this.kt8_1, this.lt8_1, completion); i.mt8_1 = $this$launchIfHasPermission; return i; }; function CoursePermissionEditViewModel$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new CoursePermissionEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function CoursePermissionEditViewModel$onClickSave$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.ot6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onClickSave..' call var nextValue = prevValue.et7(VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.wt8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.wt8_1.ot6_1.t2().bt7_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.xt8_1 = tmp_1; this.id_1 = 1; var tmp_2 = this.wt8_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, CoursePermissionEditViewModel$onClickSave$slambda$slambda_0(this.wt8_1, this.xt8_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_117(); var popUpToOnFinish = this.wt8_1.vqn_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.wt8_1.xqn_1.hqa(popUpToOnFinish, false); } else { this.wt8_1.fqu('CoursePermissionDetail', this.xt8_1.adl_1, this.xt8_1); } return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).m78 = function (completion) { return new CoursePermissionEditViewModel$onClickSave$slambda(this.wt8_1, completion); }; function CoursePermissionEditViewModel$onClickSave$slambda_0(this$0, resultContinuation) { var i = new CoursePermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function CoursePermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CoursePermissionEdit'); this.ot6_1 = MutableStateFlow(new CoursePermissionEditUiState()); this.pt6_1 = asStateFlow(this.ot6_1); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.qt6_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ot6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue = prevValue.et7(VOID, VOID, CoursePermissionConstants_getInstance().yrh_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = CoursePermissionEditViewModel$slambda_0(this, null); var tmp_1 = CoursePermissionEditViewModel$lambda(this); this.hqp(tmp_0, VOID, tmp_1, CoursePermissionEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(CoursePermissionEditViewModel).yt8 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ot6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onTogglePermission.' call var entityVal = prevValue.bt7_1; var tmp; if (!(entityVal == null)) { tmp = prevValue.et7(entityVal.ekn(VOID, VOID, VOID, VOID, VOID, VOID, toggleFlag(entityVal.gdl_1, flag))); } else { tmp = prevValue; } var nextValue = tmp; if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(CoursePermissionEditViewModel).ysb = function () { var tmp = CoursePermissionEditViewModel$onClickSave$lambda(this); this.iqv(tmp, CoursePermissionEditViewModel$onClickSave$slambda_0(this, null)); }; function CoursePermissionEditUiState(entity, fieldsEnabled, permissionLabels) { entity = entity === VOID ? null : entity; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; permissionLabels = permissionLabels === VOID ? emptyList() : permissionLabels; this.bt7_1 = entity; this.ct7_1 = fieldsEnabled; this.dt7_1 = permissionLabels; } protoOf(CoursePermissionEditUiState).zt8 = function (entity, fieldsEnabled, permissionLabels) { return new CoursePermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).et7 = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.bt7_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.ct7_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.dt7_1 : permissionLabels; return $super === VOID ? this.zt8(entity, fieldsEnabled, permissionLabels) : $super.zt8.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).toString = function () { return 'CoursePermissionEditUiState(entity=' + this.bt7_1 + ', fieldsEnabled=' + this.ct7_1 + ', permissionLabels=' + this.dt7_1 + ')'; }; protoOf(CoursePermissionEditUiState).hashCode = function () { var result = this.bt7_1 == null ? 0 : this.bt7_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.ct7_1) | 0; result = imul(result, 31) + hashCode(this.dt7_1) | 0; return result; }; protoOf(CoursePermissionEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermissionEditUiState)) return false; var tmp0_other_with_cast = other instanceof CoursePermissionEditUiState ? other : THROW_CCE(); if (!equals(this.bt7_1, tmp0_other_with_cast.bt7_1)) return false; if (!(this.ct7_1 === tmp0_other_with_cast.ct7_1)) return false; if (!equals(this.dt7_1, tmp0_other_with_cast.dt7_1)) return false; return true; }; function CoursePermissionListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function CoursePermissionListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.it9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).kt9 = function (it, $completion) { var tmp = this.lt9(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.kt9(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_container = this.jt9_1; var hasViewPermission = tmp0_container.y6(); var hasEditPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.it9_1.qqw_1; while (true) { var prevValue = this_0.t2(); var tmp1_permissionLabels = CoursePermissionConstants_getInstance().yrh_1; var this_1 = this.it9_1.nta_1; var tmp_0; if (hasViewPermission) { tmp_0 = this_1; } else { tmp_0 = null; } var tmp0_elvis_lhs = tmp_0; var tmp_1; if (tmp0_elvis_lhs == null) { tmp_1 = CoursePermissionListViewModel$slambda$slambda$slambda$lambda; } else { tmp_1 = tmp0_elvis_lhs; } var tmp2_permissionsList = tmp_1; var nextValue = prevValue.sta(tmp2_permissionsList, tmp1_permissionLabels, VOID, hasEditPermission); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.it9_1.zqn_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.hq7(prevValue_0.sq6_1.nq7(hasEditPermission)); if (this_2.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).lt9 = function (it, completion) { var i = new CoursePermissionListViewModel$slambda$slambda$slambda(this.it9_1, completion); i.jt9_1 = it; return i; }; function CoursePermissionListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new CoursePermissionListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.kt9(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$slambda$slambda(this$0, resultContinuation) { this.btb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(CoursePermissionListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.btb_1.rqo().p7f(); var tmp_1 = this.btb_1.nqo(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.hdk(tmp_1, this.btb_1.mta_1, tmp_2, new Long(2, 0))); var tmp_4 = CoursePermissionListViewModel$slambda$slambda$slambda_0(this.btb_1, null); suspendResult = tmp_3.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_14(tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionListViewModel$slambda$slambda).m78 = function (completion) { return new CoursePermissionListViewModel$slambda$slambda(this.btb_1, completion); }; function CoursePermissionListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new CoursePermissionListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_127() { this.ctb_1 = 'CoursePermissionList'; this.dtb_1 = 'permissionResult'; } var Companion_instance_175; function Companion_getInstance_145() { return Companion_instance_175; } function sam$kotlinx_coroutines_flow_FlowCollector$0_14(function_0) { this.etb_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_14).u1d = function (value, $completion) { return this.etb_1(value, $completion); }; function CoursePermissionListViewModel$pagingSource$lambda(this$0) { return function () { return this$0.rqo().p7f().cdk(this$0.mta_1, false); }; } function CoursePermissionListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.lqx(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CoursePermissionListViewModel$slambda(this$0, resultContinuation) { this.ntb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.ntb_1.qqw_1, CoursePermissionListViewModel$slambda$slambda_0(this.ntb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CoursePermissionListViewModel$slambda(this.ntb_1, completion); i.otb_1 = $this$launch; return i; }; function CoursePermissionListViewModel$slambda_0(this$0, resultContinuation) { var i = new CoursePermissionListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$onClickDeleteEntry$slambda(this$0, $coursePermission, resultContinuation) { this.xtb_1 = this$0; this.ytb_1 = $coursePermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.xtb_1.rqo().p7f().fca(this.ytb_1.adl_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).w1m = function ($this$launch, completion) { var i = new CoursePermissionListViewModel$onClickDeleteEntry$slambda(this.xtb_1, this.ytb_1, completion); i.ztb_1 = $this$launch; return i; }; function CoursePermissionListViewModel$onClickDeleteEntry$slambda_0(this$0, $coursePermission, resultContinuation) { var i = new CoursePermissionListViewModel$onClickDeleteEntry$slambda(this$0, $coursePermission, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new CoursePermissionListUiState(), 'CoursePermissionList'); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_0; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No clazzuid'); } else { tmp_0 = tmp1_elvis_lhs; } tmp.mta_1 = tmp_0; var tmp_1 = this; tmp_1.nta_1 = CoursePermissionListViewModel$pagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.' call var tmp3_title = this.vqo().soj(strings_getInstance().sn1_1); var tmp0_text = this.vqo().soj(strings_getInstance().sn1_1); var tmp1_icon = FabIcon_ADD_getInstance(); var tmp2_onClick = CoursePermissionListViewModel$onClickAdd$ref(this); var tmp4_fabState = new FabUiState(false, tmp0_text, tmp1_icon, tmp2_onClick); var nextValue = prevValue.hq7(tmp4_fabState, VOID, tmp3_title); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, CoursePermissionListViewModel$slambda_0(this, null)); } protoOf(CoursePermissionListViewModel).kqx = function (searchText) { }; protoOf(CoursePermissionListViewModel).lqx = function () { Companion_getInstance_117(); var tmp = to('clazzUid', this.mta_1.toString()); Companion_getInstance_117(); var goToOnPersonSelectedArg = appendQueryArgs('CoursePermissionEdit', mapOf([tmp, to('popUpToOnFinish', this.wqn_1)])); Companion_getInstance_205(); var tmp_0 = Companion_getInstance_5().o4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.onClickAdd.' call Companion_getInstance_117(); this_0.s('listMode', ListViewMode_PICKER_getInstance().uqk_1); this_0.s('goToOnPersonSelected', goToOnPersonSelectedArg); var tmp$ret$2 = this_0.f3(); this.dqp('People', 'permissionResult', null, tmp_0, tmp$ret$2); }; protoOf(CoursePermissionListViewModel).atc = function (coursePermission) { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.onClickEntry.' call Companion_getInstance_126(); this_0.s('entityUid', coursePermission.adl_1.toString()); Companion_getInstance_126(); this.iqp(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); this.xqn_1.tp6('CoursePermissionDetail', tmp$ret$2); }; protoOf(CoursePermissionListViewModel).btc = function (coursePermission) { var tmp = this.mqo(); launch(tmp, VOID, VOID, CoursePermissionListViewModel$onClickDeleteEntry$slambda_0(this, coursePermission, null)); }; function CoursePermissionListUiState$_init_$lambda_czupre() { return new EmptyPagingSource(); } function CoursePermissionListUiState(permissionsList, permissionLabels, courseTerminology, showDeleteOption) { var tmp; if (permissionsList === VOID) { tmp = CoursePermissionListUiState$_init_$lambda_czupre; } else { tmp = permissionsList; } permissionsList = tmp; permissionLabels = permissionLabels === VOID ? emptyList() : permissionLabels; courseTerminology = courseTerminology === VOID ? null : courseTerminology; showDeleteOption = showDeleteOption === VOID ? false : showDeleteOption; this.ota_1 = permissionsList; this.pta_1 = permissionLabels; this.qta_1 = courseTerminology; this.rta_1 = showDeleteOption; } protoOf(CoursePermissionListUiState).ctc = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption) { return new CoursePermissionListUiState(permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).sta = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption, $super) { permissionsList = permissionsList === VOID ? this.ota_1 : permissionsList; permissionLabels = permissionLabels === VOID ? this.pta_1 : permissionLabels; courseTerminology = courseTerminology === VOID ? this.qta_1 : courseTerminology; showDeleteOption = showDeleteOption === VOID ? this.rta_1 : showDeleteOption; return $super === VOID ? this.ctc(permissionsList, permissionLabels, courseTerminology, showDeleteOption) : $super.ctc.call(this, permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).toString = function () { return 'CoursePermissionListUiState(permissionsList=' + this.ota_1 + ', permissionLabels=' + this.pta_1 + ', courseTerminology=' + this.qta_1 + ', showDeleteOption=' + this.rta_1 + ')'; }; protoOf(CoursePermissionListUiState).hashCode = function () { var result = hashCode(this.ota_1); result = imul(result, 31) + hashCode(this.pta_1) | 0; result = imul(result, 31) + (this.qta_1 == null ? 0 : hashCode(this.qta_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.rta_1) | 0; return result; }; protoOf(CoursePermissionListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermissionListUiState)) return false; var tmp0_other_with_cast = other instanceof CoursePermissionListUiState ? other : THROW_CCE(); if (!equals(this.ota_1, tmp0_other_with_cast.ota_1)) return false; if (!equals(this.pta_1, tmp0_other_with_cast.pta_1)) return false; if (!equals(this.qta_1, tmp0_other_with_cast.qta_1)) return false; if (!(this.rta_1 === tmp0_other_with_cast.rta_1)) return false; return true; }; function avatarName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.s7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.t7v_1; } else { tmp = _this__u8e3s4.s7v_1.toString(); } return tmp; } function avatarColorName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.s7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.t7v_1; } else { tmp = _this__u8e3s4.s7v_1.rc(16).toString(); } return tmp; } var TextLimitType_LIMIT_WORDS_instance; var TextLimitType_LIMIT_CHARS_instance; function values_2() { return [TextLimitType_LIMIT_WORDS_getInstance(), TextLimitType_LIMIT_CHARS_getInstance()]; } var TextLimitType_entriesInitialized; function TextLimitType_initEntries() { if (TextLimitType_entriesInitialized) return Unit_instance; TextLimitType_entriesInitialized = true; var tmp = strings_getInstance().inh_1; TextLimitType_LIMIT_WORDS_instance = new TextLimitType('LIMIT_WORDS', 0, tmp, 1); var tmp_0 = strings_getInstance().jnh_1; TextLimitType_LIMIT_CHARS_instance = new TextLimitType('LIMIT_CHARS', 1, tmp_0, 2); } var MarkingType_TEACHER_instance; var MarkingType_PEERS_instance; function Companion_128() { } protoOf(Companion_128).pkb = function (value) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var indexedObject = values_3(); var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.Companion.valueOf.' call if (element.ftc_1 === value) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_elvis_lhs = tmp$ret$1; return tmp0_elvis_lhs == null ? first_2(values_3()) : tmp0_elvis_lhs; }; var Companion_instance_176; function Companion_getInstance_146() { return Companion_instance_176; } function values_3() { return [MarkingType_TEACHER_getInstance(), MarkingType_PEERS_getInstance()]; } function get_entries_1() { if ($ENTRIES_1 == null) $ENTRIES_1 = enumEntries(values_3()); return $ENTRIES_1; } var MarkingType_entriesInitialized; function MarkingType_initEntries() { if (MarkingType_entriesInitialized) return Unit_instance; MarkingType_entriesInitialized = true; MarkingType_TEACHER_instance = new MarkingType('TEACHER', 0, 1); MarkingType_PEERS_instance = new MarkingType('PEERS', 1, 2); } var $ENTRIES_1; function TextLimitType(name, ordinal, stringResource, value) { Enum.call(this, name, ordinal); this.itc_1 = stringResource; this.jtc_1 = value; } function MarkingType(name, ordinal, value) { Enum.call(this, name, ordinal); this.ftc_1 = value; } function TextLimitType_LIMIT_WORDS_getInstance() { TextLimitType_initEntries(); return TextLimitType_LIMIT_WORDS_instance; } function TextLimitType_LIMIT_CHARS_getInstance() { TextLimitType_initEntries(); return TextLimitType_LIMIT_CHARS_instance; } function MarkingType_TEACHER_getInstance() { MarkingType_initEntries(); return MarkingType_TEACHER_instance; } function MarkingType_PEERS_getInstance() { MarkingType_initEntries(); return MarkingType_PEERS_instance; } function ClazzAssignmentViewModelConstants() { ClazzAssignmentViewModelConstants_instance = this; var tmp = this; Companion_getInstance_1(); var tmp_0 = to(1, strings_getInstance().wn6_1); Companion_getInstance_1(); var tmp_1 = to(2, strings_getInstance().vn6_1); Companion_getInstance_1(); tmp.ktc_1 = mapOf([tmp_0, tmp_1, to(0, strings_getInstance().xn6_1)]); } var ClazzAssignmentViewModelConstants_instance; function ClazzAssignmentViewModelConstants_getInstance() { if (ClazzAssignmentViewModelConstants_instance == null) new ClazzAssignmentViewModelConstants(); return ClazzAssignmentViewModelConstants_instance; } function get_isFromSubmitterGroup(_this__u8e3s4) { var tmp; if (_this__u8e3s4.mad_1.c7(new Long(0, 0)) > 0) { var tmp_0 = _this__u8e3s4.mad_1; Companion_getInstance_1(); tmp = tmp_0.c7(toLong(10000)) < 0; } else { tmp = false; } return tmp; } function asBlobOpenItem(_this__u8e3s4) { var tmp0_elvis_lhs = _this__u8e3s4.gcb_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.ecb_1; var tmp_0 = tmp1_elvis_lhs == null ? 'application/octet-stream' : tmp1_elvis_lhs; var tmp2_elvis_lhs = _this__u8e3s4.fcb_1; return new OpenBlobItem(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs, toLong(_this__u8e3s4.hcb_1)); } function submissionStatusFor(markList, submissionList) { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!markList.c1()) { Companion_getInstance_1(); tmp = 2; } else { // Inline function 'kotlin.collections.isNotEmpty' call if (!submissionList.c1()) { Companion_getInstance_1(); tmp = 1; } else { Companion_getInstance_1(); tmp = 0; } } return tmp; } function latestUniqueMarksByMarker(_this__u8e3s4) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.latestUniqueMarksByMarker.' call // Inline function 'kotlin.collections.maxOf' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = _this__u8e3s4.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.latestUniqueMarksByMarker..' call var tmp0_safe_receiver = element_0.sbw_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jbw_1; var tmp1_safe_receiver = element.sbw_1; if (equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jbw_1)) { destination_0.i1(element_0); } } var iterator = destination_0.w(); if (!iterator.f()) throw NoSuchElementException_init_$Create$(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.latestUniqueMarksByMarker..' call var tmp0_safe_receiver_0 = iterator.e().sbw_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.pbw_1; var maxValue = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; while (iterator.f()) { // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.latestUniqueMarksByMarker..' call var tmp0_safe_receiver_1 = iterator.e().sbw_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.pbw_1; var v = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; if (compareTo(maxValue, v) < 0) { maxValue = v; } } var mostRecentTsForSubmitterUid = maxValue; var tmp0_safe_receiver_2 = element.sbw_1; if (equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.pbw_1, mostRecentTsForSubmitterUid)) { destination.i1(element); } } return destination; } function hasUpdatedMarks(_this__u8e3s4) { var tmp$ret$1; $l$block_0: { // Inline function 'kotlin.collections.any' call // Inline function 'kotlin.collections.groupingBy' call var tmp$ret$0 = new _no_name_provided__qut3iv_6(_this__u8e3s4); var this_0 = eachCount(tmp$ret$0); if (this_0.c1()) { tmp$ret$1 = false; break $l$block_0; } // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = this_0.q2().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.hasUpdatedMarks.' call if (element.t2() > 1) { tmp$ret$1 = true; break $l$block_0; } } tmp$ret$1 = false; } return tmp$ret$1; } function averageMark(_this__u8e3s4) { var latestUnique = latestUniqueMarksByMarker(_this__u8e3s4); if (latestUnique.c1()) return null; // Inline function 'kotlin.apply' call var this_0 = new AverageCourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.averageMark.' call var tmp = this_0; // Inline function 'kotlin.collections.sumOf' call var sum = 0.0; var tmp0_iterator = latestUnique.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp_0 = sum; // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.averageMark..' call var tmp0_safe_receiver = element.sbw_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mbw_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver; sum = tmp_0 + (tmp2_elvis_lhs == null ? 0.0 : tmp2_elvis_lhs); } tmp.ykc_1 = sum / latestUnique.u(); var tmp_1 = this_0; // Inline function 'kotlin.collections.sumOf' call var sum_0 = 0.0; var tmp0_iterator_0 = latestUnique.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp_2 = sum_0; // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.averageMark..' call var tmp0_safe_receiver_0 = element_0.sbw_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.obw_1; var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0; sum_0 = tmp_2 + (tmp2_elvis_lhs_0 == null ? 0.0 : tmp2_elvis_lhs_0); } var tmp$ret$3 = sum_0; tmp_1.zkc_1 = roundToInt(tmp$ret$3 / latestUnique.u()); return this_0; } function _no_name_provided__qut3iv_6($this) { this.ltc_1 = $this; } protoOf(_no_name_provided__qut3iv_6).o = function () { return this.ltc_1.w(); }; protoOf(_no_name_provided__qut3iv_6).mtc = function (element) { // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.hasUpdatedMarks.' call var tmp0_safe_receiver = element.sbw_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jbw_1; return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; }; protoOf(_no_name_provided__qut3iv_6).p = function (element) { return this.mtc(element instanceof CourseAssignmentMarkAndMarkerName ? element : THROW_CCE()); }; function combineWithSubmissionFiles(_this__u8e3s4, submissionFiles) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10)); var tmp0_iterator = _this__u8e3s4.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.combineWithSubmissionFiles.' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = submissionFiles.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.combineWithSubmissionFiles..' call var tmp0_safe_receiver = element.xcb_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.acb_1, item.lc2_1)) { destination_0.i1(element); } } var tmp$ret$3 = new SubmissionAndFiles(item, destination_0); destination.i1(tmp$ret$3); } return destination; } function UstadAssignmentSubmissionHeaderUiState(block, assignmentMark, assignmentStatus) { block = block === VOID ? null : block; assignmentMark = assignmentMark === VOID ? null : assignmentMark; assignmentStatus = assignmentStatus === VOID ? null : assignmentStatus; this.ntc_1 = block; this.otc_1 = assignmentMark; this.ptc_1 = assignmentStatus; } protoOf(UstadAssignmentSubmissionHeaderUiState).toString = function () { return 'UstadAssignmentSubmissionHeaderUiState(block=' + this.ntc_1 + ', assignmentMark=' + this.otc_1 + ', assignmentStatus=' + this.ptc_1 + ')'; }; protoOf(UstadAssignmentSubmissionHeaderUiState).hashCode = function () { var result = this.ntc_1 == null ? 0 : this.ntc_1.hashCode(); result = imul(result, 31) + (this.otc_1 == null ? 0 : this.otc_1.hashCode()) | 0; result = imul(result, 31) + (this.ptc_1 == null ? 0 : this.ptc_1) | 0; return result; }; protoOf(UstadAssignmentSubmissionHeaderUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof UstadAssignmentSubmissionHeaderUiState)) return false; var tmp0_other_with_cast = other instanceof UstadAssignmentSubmissionHeaderUiState ? other : THROW_CCE(); if (!equals(this.ntc_1, tmp0_other_with_cast.ntc_1)) return false; if (!equals(this.otc_1, tmp0_other_with_cast.otc_1)) return false; if (!(this.ptc_1 == tmp0_other_with_cast.ptc_1)) return false; return true; }; function UstadCourseAssignmentMarkListItemUiState(mark, localDateTimeNow, dayOfWeekStrings) { mark = mark === VOID ? new CourseAssignmentMarkAndMarkerName() : mark; this.qtc_1 = mark; this.rtc_1 = localDateTimeNow; this.stc_1 = dayOfWeekStrings; } protoOf(UstadCourseAssignmentMarkListItemUiState).ttc = function () { var tmp0_safe_receiver = this.qtc_1.sbw_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jbw_1; var tmp; if (tmp1_elvis_lhs == null) { Companion_getInstance_2(); tmp = new Long(-1, 2147483647); } else { tmp = tmp1_elvis_lhs; } var markerSubmitterUid = tmp; var tmp_0; Companion_getInstance_1(); if (markerSubmitterUid.c7(toLong(10000)) < 0) { tmp_0 = markerSubmitterUid.mb(); } else { tmp_0 = 0; } return tmp_0; }; protoOf(UstadCourseAssignmentMarkListItemUiState).utc = function () { var tmp0_elvis_lhs = this.qtc_1.tbw_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.qtc_1.ubw_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); }; protoOf(UstadCourseAssignmentMarkListItemUiState).vtc = function () { return !(this.ttc() === 0); }; protoOf(UstadCourseAssignmentMarkListItemUiState).wtc = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.qtc_1.sbw_1; // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.UstadCourseAssignmentMarkListItemUiState..' call var it = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.obw_1; return !(it == null) ? !(it === 0.0) : false; }; protoOf(UstadCourseAssignmentMarkListItemUiState).toString = function () { return 'UstadCourseAssignmentMarkListItemUiState(mark=' + this.qtc_1 + ', localDateTimeNow=' + this.rtc_1 + ', dayOfWeekStrings=' + this.stc_1 + ')'; }; protoOf(UstadCourseAssignmentMarkListItemUiState).hashCode = function () { var result = this.qtc_1.hashCode(); result = imul(result, 31) + this.rtc_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.stc_1) | 0; return result; }; protoOf(UstadCourseAssignmentMarkListItemUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof UstadCourseAssignmentMarkListItemUiState)) return false; var tmp0_other_with_cast = other instanceof UstadCourseAssignmentMarkListItemUiState ? other : THROW_CCE(); if (!this.qtc_1.equals(tmp0_other_with_cast.qtc_1)) return false; if (!this.rtc_1.equals(tmp0_other_with_cast.rtc_1)) return false; if (!equals(this.stc_1, tmp0_other_with_cast.stc_1)) return false; return true; }; function Companion_129() { this.xtc_1 = 'CourseAssignment'; } var Companion_instance_177; function Companion_getInstance_147() { return Companion_instance_177; } function ClazzAssignmentDetailViewModel$slambda(this$0, resultContinuation) { this.gtd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailViewModel$slambda).jtd = function (clazzAssignment, permissionPair, $completion) { var tmp = this.ktd(clazzAssignment, permissionPair, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailViewModel$slambda).vm = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof ClazzAssignment) ? p1 : THROW_CCE(); return this.jtd(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_container = this.itd_1; var hasCourseViewPermission = tmp0_container.y6(); var hasLearnerRecordPermission = tmp0_container.z6(); var tmp_0; if (hasCourseViewPermission) { var tmp_1; var tmp1_safe_receiver = this.htd_1; var tmp_2 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b7u_1; if (tmp_2 === 2) { tmp_1 = true; } else { tmp_1 = hasLearnerRecordPermission; } var hasSubmissionsTab = tmp_1; Companion_getInstance_126(); var tmp_3 = to('entityUid', this.gtd_1.pqn_1.toString()); Companion_getInstance_126(); var tabArgs = mapOf([tmp_3, to('clazzUid', this.gtd_1.ite_1.toString())]); var tabs = mutableListOf([new TabItem('CourseAssignmentDetailOverviewView', tabArgs, this.gtd_1.vqo().soj(strings_getInstance().en6_1))]); if (hasSubmissionsTab) { var tmp_4; var tmp_5; if (!hasLearnerRecordPermission) { var tmp2_safe_receiver = this.htd_1; var tmp_6 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.b7u_1; tmp_5 = tmp_6 === 2; } else { tmp_5 = false; } if (tmp_5) { tmp_4 = this.gtd_1.vqo().soj(strings_getInstance().yng_1); } else { tmp_4 = this.gtd_1.vqo().soj(strings_getInstance().nnh_1); } var tabName = tmp_4; tabs.i1(new TabItem('CourseAssignmentSubmissionsTab', tabArgs, tabName)); } tmp_0 = new ClazzAssignmentDetailUiState(toList(tabs)); } else { tmp_0 = new ClazzAssignmentDetailUiState(emptyList()); } return tmp_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailViewModel$slambda).ktd = function (clazzAssignment, permissionPair, completion) { var i = new ClazzAssignmentDetailViewModel$slambda(this.gtd_1, completion); i.htd_1 = clazzAssignment; i.itd_1 = permissionPair; return i; }; function ClazzAssignmentDetailViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailViewModel$slambda(this$0, resultContinuation); var l = function (clazzAssignment, permissionPair, $completion) { return i.jtd(clazzAssignment, permissionPair, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ite_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var assignmentFlow = this.rqo().r7e().q7s(this.pqn_1, this.ite_1); var tmp_0 = this.rqo().p7f(); var tmp_1 = this.lqo().poa().ckz_1; PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = distinctUntilChanged(tmp_0.hdk(tmp_1, this.ite_1, tmp_2, new Long(128, 0))); var tmp_3 = this; tmp_3.hte_1 = combine(assignmentFlow, permissionFlow, ClazzAssignmentDetailViewModel$slambda_0(this, null)); } function ClazzAssignmentDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.jte_1 = tabs; } protoOf(ClazzAssignmentDetailUiState).toString = function () { return 'ClazzAssignmentDetailUiState(tabs=' + this.jte_1 + ')'; }; protoOf(ClazzAssignmentDetailUiState).hashCode = function () { return hashCode(this.jte_1); }; protoOf(ClazzAssignmentDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentDetailUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentDetailUiState ? other : THROW_CCE(); if (!equals(this.jte_1, tmp0_other_with_cast.jte_1)) return false; return true; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ste_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).ute = function (it, $completion) { var tmp = this.vte(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.ute((p1 == null ? true : p1 instanceof AssignmentProgressSummary) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.ste_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.btf(this.tte_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).vte = function (it, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this.ste_1, completion); i.tte_1 = it; return i; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.ute(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ktf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ktf_1.rqo().r7e().l7s(this.ktf_1.mtg_1, this.ktf_1.ntg_1, this.ktf_1.nqo(), this.ktf_1.vqo().soj(strings_getInstance().ing_1)); var tmp_1 = ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda_0(this.ktf_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this.ktf_1, completion); i.ltf_1 = $this$launch; return i; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$lambda(this$0) { return function (title) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel....' call var nextValue = prevValue.hq7(VOID, VOID, title); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this$0, resultContinuation) { this.xtg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.xtg_1.rqo().r7d().ge7(this.xtg_1.mtg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.xtg_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.btf(VOID, VOID, VOID, VOID, terminology); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this.xtg_1, completion); i.ytg_1 = $this$launch; return i; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1($this_launch, this$0, resultContinuation) { this.hth_1 = $this_launch; this.ith_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.hth_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda_0(this.ith_1, null)); launchSetTitleFromClazzUid(this.ith_1, this.ith_1.ntg_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$lambda(this.ith_1)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1(this.hth_1, this.ith_1, completion); }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_2($this_launch, this$0, resultContinuation) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_130() { this.jth_1 = 'CourseAssignmentSubmissionsTab'; } var Companion_instance_178; function Companion_getInstance_148() { return Companion_instance_178; } function sam$kotlinx_coroutines_flow_FlowCollector$0_15(function_0) { this.kth_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_15).u1d = function (value, $completion) { return this.kth_1(value, $completion); }; function ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().r7e().m7s(this$0.mtg_1, this$0.ntg_1, this$0.nqo(), this$0.vqo().soj(strings_getInstance().ing_1), toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1), this$0.qqw_1.t2().zte_1.oqd_1); }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this$0, resultContinuation) { this.tth_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; launch(this.uth_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_0(this.tth_1, null)); this.id_1 = 1; suspendResult = whenSubscribed(this.tth_1.qqw_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_2(this.uth_1, this.tth_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this.tth_1, completion); i.uth_1 = $this$launch; return i; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel(di, savedStateHandle) { var tmp = new ClazzAssignmentDetailSubmissionsTabUiState(); UstadListViewModel.call(this, di, savedStateHandle, tmp, 'CourseAssignment'); var tmp_0 = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.mtg_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this; Companion_getInstance_126(); var tmp0_safe_receiver_0 = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); var tmp_2; if (tmp1_elvis_lhs_0 == null) { throw IllegalArgumentException_init_$Create$('No ClazzUid provided'); } else { tmp_2 = tmp1_elvis_lhs_0; } tmp_1.ntg_1 = tmp_2; var tmp_3 = this; tmp_3.otg_1 = ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.' call var nextValue = prevValue.btf(VOID, this.otg_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.' call var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.zqx()); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = this.mqo(); launch(tmp_4, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda_0(this, null)); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).vth = function (assignmentSubmitter) { var tmp = to('assignmentUid', this.mtg_1.toString()); var tmp_0 = to('submitterUid', assignmentSubmitter.s7v_1.toString()); Companion_getInstance_126(); this.xqn_1.tp6('CourseAssignmentSubmitter', mapOf([tmp, tmp_0, to('clazzUid', this.ntg_1.toString())])); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).wth = function (sortOrderOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.onChangeSortOption.' call var nextValue = prevValue.btf(VOID, VOID, VOID, sortOrderOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).lqx = function () { }; function Companion_131() { Companion_instance_179 = this; var tmp = this; var tmp_0 = strings_getInstance().wmk_1; var tmp_1 = new SortOrderOption(tmp_0, 5, true); var tmp_2 = strings_getInstance().wmk_1; tmp.xth_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 6, false)]); } var Companion_instance_179; function Companion_getInstance_149() { if (Companion_instance_179 == null) new Companion_131(); return Companion_instance_179; } function ClazzAssignmentDetailSubmissionsTabUiState$_init_$lambda_ecu5q() { return new EmptyPagingSource(); } function ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { Companion_getInstance_149(); progressSummary = progressSummary === VOID ? null : progressSummary; var tmp; if (assignmentSubmitterList === VOID) { tmp = ClazzAssignmentDetailSubmissionsTabUiState$_init_$lambda_ecu5q; } else { tmp = assignmentSubmitterList; } assignmentSubmitterList = tmp; sortOptions = sortOptions === VOID ? Companion_getInstance_149().xth_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; courseTerminology = courseTerminology === VOID ? null : courseTerminology; this.wte_1 = progressSummary; this.xte_1 = assignmentSubmitterList; this.yte_1 = sortOptions; this.zte_1 = sortOption; this.atf_1 = courseTerminology; } protoOf(ClazzAssignmentDetailSubmissionsTabUiState).yth = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { return new ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).btf = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology, $super) { progressSummary = progressSummary === VOID ? this.wte_1 : progressSummary; assignmentSubmitterList = assignmentSubmitterList === VOID ? this.xte_1 : assignmentSubmitterList; sortOptions = sortOptions === VOID ? this.yte_1 : sortOptions; sortOption = sortOption === VOID ? this.zte_1 : sortOption; courseTerminology = courseTerminology === VOID ? this.atf_1 : courseTerminology; return $super === VOID ? this.yth(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) : $super.yth.call(this, progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).toString = function () { return 'ClazzAssignmentDetailSubmissionsTabUiState(progressSummary=' + this.wte_1 + ', assignmentSubmitterList=' + this.xte_1 + ', sortOptions=' + this.yte_1 + ', sortOption=' + this.zte_1 + ', courseTerminology=' + this.atf_1 + ')'; }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).hashCode = function () { var result = this.wte_1 == null ? 0 : hashCode(this.wte_1); result = imul(result, 31) + hashCode(this.xte_1) | 0; result = imul(result, 31) + hashCode(this.yte_1) | 0; result = imul(result, 31) + this.zte_1.hashCode() | 0; result = imul(result, 31) + (this.atf_1 == null ? 0 : hashCode(this.atf_1)) | 0; return result; }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentDetailSubmissionsTabUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentDetailSubmissionsTabUiState ? other : THROW_CCE(); if (!equals(this.wte_1, tmp0_other_with_cast.wte_1)) return false; if (!equals(this.xte_1, tmp0_other_with_cast.xte_1)) return false; if (!equals(this.yte_1, tmp0_other_with_cast.yte_1)) return false; if (!this.zte_1.equals(tmp0_other_with_cast.zte_1)) return false; if (!equals(this.atf_1, tmp0_other_with_cast.atf_1)) return false; return true; }; function _AssignmentSubmitterSummaryUiState___init__impl__s3rgxm(person) { return person; } function _AssignmentSubmitterSummaryUiState___get_person__impl__o629k2($this) { return $this; } function _AssignmentSubmitterSummaryUiState___get_fileSubmissionStatusIconVisible__impl__so25h0($this) { var tmp = _AssignmentSubmitterSummaryUiState___get_person__impl__o629k2($this).w7v_1; Companion_getInstance_1(); return !(tmp === 0); } function _AssignmentSubmitterSummaryUiState___get_latestPrivateCommentVisible__impl__bdq0p0($this) { // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = _AssignmentSubmitterSummaryUiState___get_person__impl__o629k2($this).v7v_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); } function AssignmentSubmitterSummaryUiState__toString_impl_fdil8u($this) { return 'AssignmentSubmitterSummaryUiState(person=' + $this + ')'; } function AssignmentSubmitterSummaryUiState__hashCode_impl_6dnbk1($this) { return $this.hashCode(); } function AssignmentSubmitterSummaryUiState__equals_impl_zhk063($this, other) { if (!(other instanceof AssignmentSubmitterSummaryUiState)) return false; var tmp0_other_with_cast = other instanceof AssignmentSubmitterSummaryUiState ? other.zth_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function AssignmentSubmitterSummaryUiState(person) { this.zth_1 = person; } protoOf(AssignmentSubmitterSummaryUiState).toString = function () { return AssignmentSubmitterSummaryUiState__toString_impl_fdil8u(this.zth_1); }; protoOf(AssignmentSubmitterSummaryUiState).hashCode = function () { return AssignmentSubmitterSummaryUiState__hashCode_impl_6dnbk1(this.zth_1); }; protoOf(AssignmentSubmitterSummaryUiState).equals = function (other) { return AssignmentSubmitterSummaryUiState__equals_impl_zhk063(this.zth_1, other); }; function get_listItemUiState(_this__u8e3s4) { return _AssignmentSubmitterSummaryUiState___init__impl__s3rgxm(_this__u8e3s4); } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.iti_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).lqb = function (it, $completion) { var tmp = this.mqb(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.jti_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var newSubmissionHtml = tmp_1; this.iti_1.btk(newSubmissionHtml); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).mqb = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this.iti_1, completion); i.jti_1 = it; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.lqb(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ktk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).mtk = function (assignmentData, $completion) { var tmp = this.ntk(assignmentData, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.mtk((p1 == null ? true : p1 instanceof ClazzAssignmentCourseBlockAndSubmitterUid) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.ktk_1.htj_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.ltk_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7y_1; Companion_getInstance_1(); var isEnrolledButNotInGroup = equals(tmp_0, new Long(-1, -1)); var tmp1_safe_receiver = this.ltk_1; var tmp9_assignment = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r7y_1; var tmp2_safe_receiver = this.ltk_1; var tmp10_courseBlock = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s7y_1; var tmp3_safe_receiver = this.ltk_1; var tmp11_courseBlockPicture = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.t7y_1; var tmp5_safe_receiver = this.ltk_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.v7y_1; var tmp12_submitterUid = tmp6_elvis_lhs == null ? new Long(0, 0) : tmp6_elvis_lhs; var tmp4_safe_receiver = this.ltk_1; var tmp13_courseGroupSet = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.u7y_1; var tmp_1; if (isEnrolledButNotInGroup) { tmp_1 = this.ktk_1.vqo().soj(strings_getInstance().xnk_1); } else { tmp_1 = null; } var tmp14_unassignedError = tmp_1; var tmp7_safe_receiver = this.ltk_1; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.w7y_1; var tmp15_showModerateOptions = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs; var nextValue = prevValue.ptl(tmp9_assignment, tmp10_courseBlock, tmp11_courseBlockPicture, tmp13_courseGroupSet, tmp12_submitterUid, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp14_unassignedError, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp15_showModerateOptions); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).ntk = function (assignmentData, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.ktk_1, completion); i.ltk_1 = assignmentData; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (assignmentData, $completion) { return i.mtk(assignmentData, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).atm = function (submissions, submissionFiles, $completion) { var tmp = this.btm(submissions, submissionFiles, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).vm = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.atm(tmp, (!(p2 == null) ? isInterface(p2, List) : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return combineWithSubmissionFiles(this.ytl_1, this.ztl_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).btm = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.ytl_1 = submissions; i.ztl_1 = submissionFiles; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(resultContinuation); var l = function (submissions, submissionFiles, $completion) { return i.atm(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ktm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).mtm = function (it, $completion) { var tmp = this.ntm(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.mtm((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.ktm_1.htj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ltm_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ntm = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.ktm_1, completion); i.ltm_1 = it; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.mtm(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.wtm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ytm = function (it, $completion) { var tmp = this.ztm(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.ytm((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.wtm_1.htj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.xtm_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ztm = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.wtm_1, completion); i.xtm_1 = it; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function (it, $completion) { return i.ytm(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.itn_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).mtn = function (value, $completion) { var tmp = this.ntn(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).ie = function (p1, $completion) { return this.mtn(p1 instanceof ClazzAssignmentDetailoverviewSubmissionUiState ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.ktn_1 = this.itn_1; var tmp_1 = this; tmp_1.ltn_1 = this.jtn_1; this.id_1 = 1; var tmp0_safe_receiver = this.ltn_1.otn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lc2_1; suspendResult = this.ktn_1.u1d(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).ntn = function (value, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.itn_1, completion); i.jtn_1 = value; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.mtn(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$71(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xtn_1 = _this__u8e3s4; this.ytn_1 = collector; } protoOf($collectCOROUTINE$71).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.ztn_1 = this.ytn_1; this.id_1 = 1; var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.ztn_1, null); suspendResult = this.xtn_1.ato_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.jto_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).lto = function (it, $completion) { var tmp = this.mto(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lto((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.jto_1.htj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, this.kto_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).mto = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.jto_1, completion); i.kto_1 = it; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.lto(it, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_7($this) { this.ato_1 = $this; } protoOf(_no_name_provided__qut3iv_7).nto = function (collector, $completion) { var tmp = new $collectCOROUTINE$71(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_7).b1c = function (collector, $completion) { return this.nto(collector, $completion); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.wto_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).yto = function (submissionUid, $completion) { var tmp = this.zto(submissionUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.yto(p1 instanceof Long ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.wto_1.pqo().t7e().bca(this.xto_1)); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.wto_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).zto = function (submissionUid, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.wto_1, completion); i.xto_1 = submissionUid; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation); var l = function (submissionUid, $completion) { return i.yto(submissionUid, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1($entityFlow, this$0, resultContinuation) { this.itp_1 = $entityFlow; this.jtp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.jtp_1, null); suspendResult = this.itp_1.i1h(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: throwKotlinNothingValueException(); break; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1(this.itp_1, this.jtp_1, completion); i.ktp_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_2($entityFlow, this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1($entityFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$lambda(this$0) { return function (title) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel....' call var nextValue = prevValue.hq7(VOID, VOID, title); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ttp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.vtp_1 = this.ttp_1.rqo().s7e().wc1(this.ttp_1.nqo(), this.ttp_1.pqn_1); this.wtp_1 = this.ttp_1.rqo().t7e().cca(this.ttp_1.nqo(), this.ttp_1.pqn_1); this.id_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.vtp_1, this.wtp_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.ttp_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this.ttp_1, completion); i.utp_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.ftq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ftq_1.rqo().u7e().qbv(this.ftq_1.nqo(), this.ftq_1.pqn_1); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.ftq_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this.ftq_1, completion); i.gtq_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.ptq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = this.ptq_1.jtj_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_7(this_0)); suspendResult = collectLatest(tmp_0, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.ptq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7(this.ptq_1, completion); i.qtq_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_8(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation) { this.ztq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ztq_1.zqo(this.ztq_1.sqo(), 'submissionHtml'); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_0(this.ztq_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this.ztq_1, completion); i.atr_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1($this_launch, this$0, $entityFlow, resultContinuation) { this.jtr_1 = $this_launch; this.ktr_1 = this$0; this.ltr_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.jtr_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_2(this.ltr_1, this.ktr_1, null)); launchSetTitleFromClazzUid(this.ktr_1, this.ktr_1.stj_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$lambda(this.ktr_1)); launch(this.jtr_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_4(this.ktr_1, null)); launch(this.jtr_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_6(this.ktr_1, null)); launch(this.jtr_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_8(this.ktr_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1(this.jtr_1, this.ktr_1, this.ltr_1, completion); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda_2($this_launch, this$0, $entityFlow, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1($this_launch, this$0, $entityFlow, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this$0, $file, resultContinuation) { this.utr_1 = this$0; this.vtr_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.utr_1.rqo().t7e(); var tmp0_safe_receiver = this.vtr_1.xcb_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zca_1; suspendResult = tmp_0.fca(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).enz = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this.utr_1, this.vtr_1, completion); i.wtr_1 = it; return i; }; function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda_0(this$0, $file, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this$0, $file, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.htj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_saveAndUploadUseCase__bjy5rj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ttj_1; saveAndUploadUseCase$factory_0(); return this_0.t2(); } function _get_cancelTransferJobUseCase__o6e2y4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.utj_1; cancelTransferJobUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vtj_1; openBlobUiUseCase$factory_0(); return this_0.t2(); } function _get_ustadAccountManager__el9prc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xtj_1; ustadAccountManager$factory_0(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ytj_1; showSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ztj_1; dismissSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.atk_1; openExternalLinkUseCase$factory_0(); return this_0.t2(); } function newCourseAssignmentSubmission($this) { var tmp = get_doorPrimaryKeyManager($this.pqo()); Companion_getInstance_1(); var tmp0_casUid = tmp.o62(522); var tmp1_casAssignmentUid = $this.pqn_1; var tmp2_casClazzUid = $this.stj_1; var tmp3_casSubmitterPersonUid = $this.lqo().aoa().unu_1.g96_1; return new CourseAssignmentSubmission(tmp0_casUid, tmp1_casAssignmentUid, VOID, tmp3_casSubmitterPersonUid, '', VOID, VOID, tmp2_casClazzUid); } function openSubmissionFileAsBlob($this, file, intent) { var tmp0_elvis_lhs = file.xcb_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.wtj_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.nr(); } var tmp_0 = $this; var tmp_1 = $this.mqo(); tmp_0.wtj_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_132() { this.xtr_1 = 'latestSubmission'; this.ytr_1 = 'submissionHtml'; this.ztr_1 = 'CourseAssignmentDetailOverviewView'; } var Companion_instance_180; function Companion_getInstance_150() { return Companion_instance_180; } function sam$kotlinx_coroutines_flow_FlowCollector$0_16(function_0) { this.ats_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_16).u1d = function (value, $completion) { return this.ats_1(value, $completion); }; function ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().v7e().pac(this$0.nqo(), this$0.pqn_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().v7e().rac(this$0.pqn_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$slambda(this$0, $savedStateHandle, $entityFlow, resultContinuation) { this.jts_1 = this$0; this.kts_1 = $savedStateHandle; this.lts_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.jts_1.aqp(this.kts_1, 'latestSubmission', Companion_getInstance_1().o4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nts_1 = suspendResult; this.ots_1 = this.nts_1 == null ? newCourseAssignmentSubmission(this.jts_1) : this.nts_1; l$ret$1: do { var this_0 = this.jts_1.jtj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pts(this.ots_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.mts_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_0(this.jts_1, null)); this.id_1 = 2; suspendResult = whenSubscribed(this.jts_1.htj_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_2(this.mts_1, this.jts_1, this.lts_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda(this.jts_1, this.kts_1, this.lts_1, completion); i.mts_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$slambda_0(this$0, $savedStateHandle, $entityFlow, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda(this$0, $savedStateHandle, $entityFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda(this$0, resultContinuation) { this.yts_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; _get_dismissSocialWarningUseCase__st8mv5(this.yts_1).yp1(toString_0(_get_ustadAccountManager__el9prc(this.yts_1).aoa().unu_1.h96_1)); l$ret$1: do { var this_0 = this.yts_1.htj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda(this.yts_1, completion); i.zts_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda($text) { return function ($this$shallowCopy) { $this$shallowCopy.pc2_1 = $text; return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda($submissionToSave, this$0, resultContinuation) { this.itt_1 = $submissionToSave; this.jtt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.itt_1 == null)) { this.id_1 = 2; suspendResult = this.jtt_1.bqp(this.jtt_1.vqn_1, 'latestSubmission', Companion_getInstance_1().o4r(), this.itt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda(this.itt_1, this.jtt_1, completion); i.ktt_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda_0($submissionToSave, this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda($submissionToSave, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda(this$0, $submitterUid, resultContinuation) { this.ttt_1 = this$0; this.utt_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 4; this.id_1 = 2; var tmp_0 = this.ttt_1.rqo().v7e(); var this_0 = new Comments(); this_0.lad_1 = this.utt_1; this_0.kad_1 = this.ttt_1.nqo(); this_0.mad_1 = this.ttt_1.htj_1.t2().stk_1; this_0.iad_1 = this.ttt_1.pqn_1; this_0.had_1 = this.ttt_1.ltj_1.t2(); this_0.pad_1 = systemTimeInMillis(); suspendResult = tmp_0.nac(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.ttt_1.ltj_1.y1k(''); tmp_1.wtt_1 = Unit_instance; this.jd_1 = 5; this.id_1 = 3; continue $sm; case 3: this.jd_1 = 5; this.ttt_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; case 4: this.jd_1 = 5; var t = this.ld_1; this.ttt_1.xqo(Companion_getInstance_98().pq7_1); throw t; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda(this.ttt_1, this.utt_1, completion); i.vtt_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda_0(this$0, $submitterUid, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda(this$0, $submitterUid, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda(this$0, resultContinuation) { this.ftu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 4; this.id_1 = 2; var tmp_0 = this.ftu_1.rqo().v7e(); var this_0 = new Comments(); this_0.lad_1 = new Long(0, 0); this_0.kad_1 = this.ftu_1.nqo(); this_0.iad_1 = this.ftu_1.pqn_1; this_0.had_1 = this.ftu_1.ntj_1.t2(); this_0.pad_1 = systemTimeInMillis(); suspendResult = tmp_0.nac(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.ftu_1.ntj_1.y1k(''); tmp_1.htu_1 = Unit_instance; this.jd_1 = 5; this.id_1 = 3; continue $sm; case 3: this.jd_1 = 5; this.ftu_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; case 4: this.jd_1 = 5; var t = this.ld_1; this.ftu_1.xqo(Companion_getInstance_98().pq7_1); throw t; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda(this.ftu_1, completion); i.gtu_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this$0, $size, $mimeType, $fileName, $uri, resultContinuation) { this.qtu_1 = this$0; this.rtu_1 = $size; this.stu_1 = $mimeType; this.ttu_1 = $fileName; this.utu_1 = $uri; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.id_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.qtu_1.pqo()); suspendResult = tmp_0.p62(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wtu_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.qtu_1.jtj_1.t2().otn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lc2_1; tmp_1.xtu_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.ytu_1 = this.qtu_1.htj_1.t2().stk_1; this.ztu_1 = this.rtu_1.mb(); this.atv_1 = this.qtu_1.pqn_1; this.btv_1 = this.qtu_1.stj_1; this.ctv_1 = new CourseAssignmentSubmissionFile(this.wtu_1, this.xtu_1, this.ytu_1, this.atv_1, this.btv_1, this.stu_1, this.ttu_1, this.utu_1, this.ztu_1); this.id_1 = 2; suspendResult = this.qtu_1.pqo().t7e().aca(listOf_0(this.ctv_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jd_1 = 4; this.id_1 = 3; var tmp_2 = _get_saveAndUploadUseCase__bjy5rj(this.qtu_1); var tmp_3 = this.ctv_1.zca_1; suspendResult = tmp_2.qor(listOf_0(new SaveLocalUriAsBlobItem(this.utu_1, tmp_3, 90, this.stu_1, VOID, true)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.jd_1 = 6; this.id_1 = 5; continue $sm; case 4: this.jd_1 = 6; var tmp_4 = this.ld_1; if (tmp_4 instanceof Error) { var e = this.ld_1; Napier_getInstance().n5e('WARNING: Exception attempting to save/enqueue submission file', e); this.id_1 = 5; continue $sm; } else { throw this.ld_1; } case 5: this.jd_1 = 6; return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 6) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this.qtu_1, this.rtu_1, this.stu_1, this.ttu_1, this.utu_1, completion); i.vtu_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda_0(this$0, $size, $mimeType, $fileName, $uri, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this$0, $size, $mimeType, $fileName, $uri, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda(this$0, $submission, resultContinuation) { this.ltv_1 = this$0; this.mtv_1 = $submission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 7; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 6; this.jd_1 = 5; this.id_1 = 2; suspendResult = this.ltv_1.gtj_1.uoj(this.ltv_1.rqo(), this.ltv_1.htj_1.t2().stk_1, this.ltv_1.pqn_1, this.ltv_1.lqo().aoa().unu_1.g96_1, this.mtv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_0 = this; var tmp$ret$0; l$ret$1: do { var this_0 = this.ltv_1.jtj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pts(newCourseAssignmentSubmission(this.ltv_1)); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.ptv_1 = tmp$ret$0.otn_1; l$ret$3: do { var this_1 = this.ltv_1.htj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.ptv_1 == null)) { this.id_1 = 3; suspendResult = this.ltv_1.bqp(this.ltv_1.vqn_1, 'latestSubmission', Companion_getInstance_1().o4r(), this.ptv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 4; continue $sm; } case 3: this.id_1 = 4; continue $sm; case 4: var tmp_1 = this; this.ltv_1.tqo().wq7(new Snack(this.ltv_1.vqo().soj(strings_getInstance().wn6_1))); tmp_1.otv_1 = Unit_instance; this.jd_1 = 7; this.id_1 = 8; continue $sm; case 5: this.jd_1 = 6; var tmp_2 = this.ld_1; if (tmp_2 instanceof Exception) { var e = this.ld_1; var tmp_3 = this; Napier_getInstance().r5e('Exception submitting assignment: ' + e, e); l$ret$7: do { var this_2 = this.ltv_1.htj_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, e.message); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); tmp_3.otv_1 = Unit_instance; this.jd_1 = 7; this.id_1 = 8; continue $sm; } else { throw this.ld_1; } case 6: this.jd_1 = 7; var t = this.ld_1; l$ret$9: do { var this_3 = this.ltv_1.htj_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.z1k(prevValue_2, nextValue_2)) { break l$ret$9; } } } while (false); this.ltv_1.xqo(Companion_getInstance_98().pq7_1); throw t; case 7: throw this.ld_1; case 8: this.jd_1 = 7; l$ret$11: do { var this_4 = this.ltv_1.htj_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_4.z1k(prevValue_3, nextValue_3)) { break l$ret$11; } } } while (false); this.ltv_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 7) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda(this.ltv_1, this.mtv_1, completion); i.ntv_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda_0(this$0, $submission, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda(this$0, $submission, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda(this$0, $file, resultContinuation) { this.ytv_1 = this$0; this.ztv_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; var tmp_0 = this.ytv_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda_0(this.ytv_1, this.ztv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var tmp0_safe_receiver = this.ztv_1.ycb_1; tmp_1.btw_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.acc_1; if (this.btw_1 == null) { this.ctw_1 = null; this.id_1 = 4; continue $sm; } else { var tmp_2 = this; tmp_2.dtw_1 = this.btw_1; var tmp_3 = this; tmp_3.etw_1 = this.dtw_1; this.ftw_1 = _get_cancelTransferJobUseCase__o6e2y4(this.ytv_1); if (this.ftw_1 == null) { this.gtw_1 = null; this.id_1 = 3; continue $sm; } else { this.id_1 = 2; suspendResult = this.ftw_1.j1i(this.etw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 2: var tmp_4 = this; tmp_4.gtw_1 = Unit_instance; this.id_1 = 3; continue $sm; case 3: this.ctw_1 = this.dtw_1; this.id_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda(this.ytv_1, this.ztv_1, completion); i.atw_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda_0(this$0, $file, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda(this$0, $file, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation) { this.ptw_1 = this$0; this.qtw_1 = $submissionFile; this.rtw_1 = $intent; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.ttw_1 = _get_openBlobUiUseCase__fzusqz(this.ptw_1); if (this.ttw_1 == null) { this.utw_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var tmp_0 = asBlobOpenItem(this.qtw_1); suspendResult = this.ttw_1.uop(tmp_0, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda$lambda(this.ptw_1), this.rtw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.utw_1 = Unit_instance; this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda(this.ptw_1, this.qtw_1, this.rtw_1, completion); i.stw_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda_0(this$0, $submissionFile, $intent, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation) { this.dtx_1 = this$0; this.etx_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.dtx_1.rqo().v7e().oac(this.etx_1.gad_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dtx_1.tqo().wq7(new Snack(this.dtx_1.vqo().soj(strings_getInstance().smj_1))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this.dtx_1, this.etx_1, completion); i.ftx_1 = $this$launch; return i; }; function ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda_0(this$0, $comments, resultContinuation) { var i = new ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel(di, savedStateHandle, submitAssignmentUseCase) { var tmp; if (submitAssignmentUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(di).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.e58(tmp$ret$0, null); tmp = new SubmitAssignmentUseCase(tmp$ret$1); } else { tmp = submitAssignmentUseCase; } submitAssignmentUseCase = tmp; DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); this.gtj_1 = submitAssignmentUseCase; this.htj_1 = MutableStateFlow(new ClazzAssignmentDetailOverviewUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.vqo().cq6())); this.itj_1 = asStateFlow(this.htj_1); this.jtj_1 = MutableStateFlow(new ClazzAssignmentDetailoverviewSubmissionUiState()); this.ktj_1 = asStateFlow(this.jtj_1); this.ltj_1 = MutableStateFlow(''); this.mtj_1 = asStateFlow(this.ltj_1); this.ntj_1 = MutableStateFlow(''); this.otj_1 = asStateFlow(this.ntj_1); var tmp_2 = this; tmp_2.ptj_1 = ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this); var tmp_3 = this; tmp_3.qtj_1 = ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this); this.rtj_1 = null; var tmp_4 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_5; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('clazzUid arg is required'); } else { tmp_5 = tmp1_elvis_lhs; } tmp_4.stj_1 = tmp_5; var tmp_6 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.ttj_1 = Instance(this_0, tmp$ret$2, null).b5d(this, saveAndUploadUseCase$factory()); var tmp_8 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_1 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(CancelBlobUploadClientUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); tmp_8.utj_1 = InstanceOrNull(this_1, tmp$ret$4, null).b5d(this, cancelTransferJobUseCase$factory()); var tmp_10 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_2 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_10.vtj_1 = InstanceOrNull(this_2, tmp$ret$6, null).b5d(this, openBlobUiUseCase$factory()); this.wtj_1 = null; var tmp_12 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_12.xtj_1 = Instance(di, tmp$ret$8, null).b5d(this, ustadAccountManager$factory()); var tmp_14 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_15 = typeToken(createKType(getKClass(ShowSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_15, TypeToken) ? tmp_15 : THROW_CCE(); tmp_14.ytj_1 = Instance(di, tmp$ret$10, null).b5d(this, showSocialWarningUseCase$factory()); var tmp_16 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(DismissSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); tmp_16.ztj_1 = Instance(di, tmp$ret$12, null).b5d(this, dismissSocialWarningUseCase$factory()); var tmp_18 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); tmp_18.atk_1 = Instance(di, tmp$ret$14, null).b5d(this, openExternalLinkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.htj_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp_20 = this.nqo(); var tmp_21 = this.lqo().aoa().unu_1.ekr(); var tmp0_safe_receiver_0 = this.lqo().aoa().wnu_1; var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_20, tmp_21, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h97_1, VOID, VOID, VOID, VOID, VOID, VOID, _get_showSocialWarningUseCase__ft8jc6(this).wp9(toString_0(_get_ustadAccountManager__el9prc(this).aoa().unu_1.h96_1))); if (this_3.z1k(prevValue, nextValue)) { break $l$block; } } } var entityFlow = shareIn(this.rqo().r7e().u7s(this.pqn_1, this.stj_1, this.lqo().poa().ckz_1), this.mqo(), Companion_getInstance_13().w1h()); var tmp_22 = this.mqo(); launch(tmp_22, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda_0(this, savedStateHandle, entityFlow, null)); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.htj_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp0_privateComments = this.ptj_1; var tmp1_courseComments = this.qtj_1; var nextValue_0 = prevValue_0.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_courseComments, tmp0_privateComments); if (this_4.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzAssignmentDetailOverviewViewModel).gtx = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).htx = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.htj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickMarksFilterChip.' call var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.kq8_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).btk = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.jtj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onChangeSubmissionText.' call var tmp0_safe_receiver = prevValue.otn_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_0(tmp0_safe_receiver, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda(text)); } var nextValue = prevValue.pts(tmp); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var submissionToSave = tmp$ret$1.otn_1; var tmp0_safe_receiver_0 = this.rtj_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_0 = this; var tmp_1 = this.mqo(); tmp_0.rtj_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda_0(submissionToSave, this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).itx = function (text) { this.ltj_1.y1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).jtx = function () { var submitterUid = this.htj_1.t2().stk_1; if (submitterUid.c7(new Long(0, 0)) <= 0) return Unit_instance; if (this.yqo().equals(Companion_getInstance_98().oq7_1)) return Unit_instance; this.xqo(Companion_getInstance_98().oq7_1); var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda_0(this, submitterUid, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ktx = function (text) { this.ntj_1.y1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ltx = function () { if (this.yqo().equals(Companion_getInstance_98().oq7_1)) return Unit_instance; this.xqo(Companion_getInstance_98().oq7_1); var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).mtx = function (uri, fileName, mimeType, size) { var tmp0_safe_receiver = this.htj_1.t2().otk_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y7t_1; var assignmentSizeLimit = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; if (size.c7(toLong(imul(imul(assignmentSizeLimit, 1024), 1024))) > 0) { this.tqo().wq7(new Snack(this.vqo().soj(strings_getInstance().imu_1))); return Unit_instance; } var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda_0(this, size, mimeType, fileName, uri, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ntx = function () { if (!this.htj_1.t2().ztk_1) return Unit_instance; var tmp0_elvis_lhs = this.jtj_1.t2().otn_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submission = tmp; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.htj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickSubmit.' call var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.xqo(Companion_getInstance_98().oq7_1); var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda_0(this, submission, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).otx = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.htj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.ptl(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.ltl_1, submission.lc2_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).ptx = function () { Companion_getInstance_126(); var tmp0_safe_receiver = this.htj_1.t2().rtk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b7z_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); var tmp = to('entityUid', tmp2_elvis_lhs == null ? '0' : tmp2_elvis_lhs); Companion_getInstance_126(); this.xqn_1.tp6('CourseGroupSet', mapOf([tmp, to('clazzUid', this.stj_1.toString())])); }; protoOf(ClazzAssignmentDetailOverviewViewModel).qtx = function (file) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda_0(this, file, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).rtx = function (file) { openSubmissionFileAsBlob(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentDetailOverviewViewModel).stx = function (comments) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq($this) { return latestUniqueMarksByMarker($this.wtk_1); } function ClazzAssignmentDetailOverviewUiState$_init_$lambda_bkogzn() { return new EmptyPagingSource(); } function ClazzAssignmentDetailOverviewUiState$_init_$lambda_bkogzn_0() { return new EmptyPagingSource(); } function ClazzAssignmentDetailOverviewUiState(assignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, editableSubmissionFiles, submissionTooLong, submissions, markList, courseComments, privateComments, fieldsEnabled, selectedChipId, gradeFilterChips, submissionHeaderUiState, unassignedError, submissionError, activeUserPersonUid, activeUserPersonName, activeUserPictureUri, courseTerminology, localDateTimeNow, dayOfWeekStringMap, collapsedSubmissions, openingFileSubmissionState, showModerateOptions, showSocialWarning) { assignment = assignment === VOID ? null : assignment; courseBlock = courseBlock === VOID ? null : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid; editableSubmissionFiles = editableSubmissionFiles === VOID ? emptyList() : editableSubmissionFiles; submissionTooLong = submissionTooLong === VOID ? false : submissionTooLong; submissions = submissions === VOID ? emptyList() : submissions; markList = markList === VOID ? emptyList() : markList; var tmp; if (courseComments === VOID) { tmp = ClazzAssignmentDetailOverviewUiState$_init_$lambda_bkogzn; } else { tmp = courseComments; } courseComments = tmp; var tmp_0; if (privateComments === VOID) { tmp_0 = ClazzAssignmentDetailOverviewUiState$_init_$lambda_bkogzn_0; } else { tmp_0 = privateComments; } privateComments = tmp_0; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; var tmp_1; if (selectedChipId === VOID) { tmp_1 = 1; } else { tmp_1 = selectedChipId; } selectedChipId = tmp_1; var tmp_2; if (gradeFilterChips === VOID) { var tmp_3 = strings_getInstance().qnl_1; var tmp_4 = new MessageIdOption2(tmp_3, 1); var tmp_5 = strings_getInstance().gn0_1; tmp_2 = listOf([tmp_4, new MessageIdOption2(tmp_5, 0)]); } else { tmp_2 = gradeFilterChips; } gradeFilterChips = tmp_2; submissionHeaderUiState = submissionHeaderUiState === VOID ? new UstadAssignmentSubmissionHeaderUiState() : submissionHeaderUiState; unassignedError = unassignedError === VOID ? null : unassignedError; submissionError = submissionError === VOID ? null : submissionError; activeUserPersonUid = activeUserPersonUid === VOID ? new Long(0, 0) : activeUserPersonUid; activeUserPersonName = activeUserPersonName === VOID ? '' : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? null : activeUserPictureUri; courseTerminology = courseTerminology === VOID ? null : courseTerminology; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; dayOfWeekStringMap = dayOfWeekStringMap === VOID ? emptyMap() : dayOfWeekStringMap; collapsedSubmissions = collapsedSubmissions === VOID ? emptySet() : collapsedSubmissions; openingFileSubmissionState = openingFileSubmissionState === VOID ? null : openingFileSubmissionState; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; showSocialWarning = showSocialWarning === VOID ? true : showSocialWarning; this.otk_1 = assignment; this.ptk_1 = courseBlock; this.qtk_1 = courseBlockPicture; this.rtk_1 = courseGroupSet; this.stk_1 = submitterUid; this.ttk_1 = editableSubmissionFiles; this.utk_1 = submissionTooLong; this.vtk_1 = submissions; this.wtk_1 = markList; this.xtk_1 = courseComments; this.ytk_1 = privateComments; this.ztk_1 = fieldsEnabled; this.atl_1 = selectedChipId; this.btl_1 = gradeFilterChips; this.ctl_1 = submissionHeaderUiState; this.dtl_1 = unassignedError; this.etl_1 = submissionError; this.ftl_1 = activeUserPersonUid; this.gtl_1 = activeUserPersonName; this.htl_1 = activeUserPictureUri; this.itl_1 = courseTerminology; this.jtl_1 = localDateTimeNow; this.ktl_1 = dayOfWeekStringMap; this.ltl_1 = collapsedSubmissions; this.mtl_1 = openingFileSubmissionState; this.ntl_1 = showModerateOptions; this.otl_1 = showSocialWarning; } protoOf(ClazzAssignmentDetailOverviewUiState).ttx = function () { var tmp0_safe_receiver = this.ptk_1; return isDateSet(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c7y_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).utx = function () { return this.vtx(); }; protoOf(ClazzAssignmentDetailOverviewUiState).wtx = function () { // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = this.dtl_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ClazzAssignmentDetailOverviewUiState).xtx = function () { var tmp0_safe_receiver = this.otk_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t7t_1) === true; }; protoOf(ClazzAssignmentDetailOverviewUiState).ytx = function () { return this.stk_1.c7(new Long(0, 0)) > 0; }; protoOf(ClazzAssignmentDetailOverviewUiState).ztx = function () { var tmp; if (this.ytx()) { var tmp0_safe_receiver = this.otk_1; tmp = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u7t_1) === true; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).aty = function () { var timeNow = systemTimeInMillis(); var tmp0_safe_receiver = this.ptk_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c7y_1; if (timeNow.c7(tmp1_elvis_lhs == null ? get_UNSET_DISTANT_FUTURE() : tmp1_elvis_lhs) < 0) { return true; } var tmp; var tmp2_safe_receiver = this.ptk_1; if (isDateSet(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.e7y_1)) { var tmp3_safe_receiver = this.ptk_1; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.e7y_1; tmp = timeNow.c7(tmp4_elvis_lhs == null ? new Long(0, 0) : tmp4_elvis_lhs) <= 0; } else { tmp = false; } if (tmp) { return true; } return false; }; protoOf(ClazzAssignmentDetailOverviewUiState).vtx = function () { if (!this.ytx()) return false; if (!this.aty()) return false; var tmp; var tmp0_safe_receiver = this.otk_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a7u_1; if (tmp_0 === 1) { // Inline function 'kotlin.collections.isNotEmpty' call tmp = !this.vtk_1.c1(); } else { tmp = false; } if (tmp) { return false; } return true; }; protoOf(ClazzAssignmentDetailOverviewUiState).bty = function () { var tmp; var tmp_0; if (this.vtx()) { var tmp0_safe_receiver = this.otk_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w7t_1) === true; } else { tmp_0 = false; } if (tmp_0) { tmp = this.ttk_1.u() < this.otk_1.z7t_1; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).cty = function () { return this.ytx() ? submissionStatusFor(this.wtk_1, this.vtk_1) : null; }; protoOf(ClazzAssignmentDetailOverviewUiState).dty = function () { return !(this.ety() == null); }; protoOf(ClazzAssignmentDetailOverviewUiState).fty = function () { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewUiState..' call var it = this.ety(); return !(it == null) ? !(it.zkc_1 === 0) : false; }; protoOf(ClazzAssignmentDetailOverviewUiState).gty = function () { var tmp; var tmp0_safe_receiver = this.otk_1; if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c7u_1) === true) { tmp = this.vtx(); } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).hty = function () { var tmp; if (this.atl_1 === 1) { tmp = _get_latestUniqueMarksByMarker__e0a3pq(this); } else { tmp = this.wtk_1; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).ety = function () { return averageMark(this.wtk_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).ity = function () { var tmp0_safe_receiver = this.otk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7t_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewUiState..' call tmp = !tmp1_safe_receiver.equals(new Long(0, 0)); } var tmp2_elvis_lhs = tmp; return tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs; }; protoOf(ClazzAssignmentDetailOverviewUiState).jty = function (assignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, editableSubmissionFiles, submissionTooLong, submissions, markList, courseComments, privateComments, fieldsEnabled, selectedChipId, gradeFilterChips, submissionHeaderUiState, unassignedError, submissionError, activeUserPersonUid, activeUserPersonName, activeUserPictureUri, courseTerminology, localDateTimeNow, dayOfWeekStringMap, collapsedSubmissions, openingFileSubmissionState, showModerateOptions, showSocialWarning) { return new ClazzAssignmentDetailOverviewUiState(assignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, editableSubmissionFiles, submissionTooLong, submissions, markList, courseComments, privateComments, fieldsEnabled, selectedChipId, gradeFilterChips, submissionHeaderUiState, unassignedError, submissionError, activeUserPersonUid, activeUserPersonName, activeUserPictureUri, courseTerminology, localDateTimeNow, dayOfWeekStringMap, collapsedSubmissions, openingFileSubmissionState, showModerateOptions, showSocialWarning); }; protoOf(ClazzAssignmentDetailOverviewUiState).ptl = function (assignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, editableSubmissionFiles, submissionTooLong, submissions, markList, courseComments, privateComments, fieldsEnabled, selectedChipId, gradeFilterChips, submissionHeaderUiState, unassignedError, submissionError, activeUserPersonUid, activeUserPersonName, activeUserPictureUri, courseTerminology, localDateTimeNow, dayOfWeekStringMap, collapsedSubmissions, openingFileSubmissionState, showModerateOptions, showSocialWarning, $super) { assignment = assignment === VOID ? this.otk_1 : assignment; courseBlock = courseBlock === VOID ? this.ptk_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.qtk_1 : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? this.rtk_1 : courseGroupSet; submitterUid = submitterUid === VOID ? this.stk_1 : submitterUid; editableSubmissionFiles = editableSubmissionFiles === VOID ? this.ttk_1 : editableSubmissionFiles; submissionTooLong = submissionTooLong === VOID ? this.utk_1 : submissionTooLong; submissions = submissions === VOID ? this.vtk_1 : submissions; markList = markList === VOID ? this.wtk_1 : markList; courseComments = courseComments === VOID ? this.xtk_1 : courseComments; privateComments = privateComments === VOID ? this.ytk_1 : privateComments; fieldsEnabled = fieldsEnabled === VOID ? this.ztk_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.atl_1 : selectedChipId; gradeFilterChips = gradeFilterChips === VOID ? this.btl_1 : gradeFilterChips; submissionHeaderUiState = submissionHeaderUiState === VOID ? this.ctl_1 : submissionHeaderUiState; unassignedError = unassignedError === VOID ? this.dtl_1 : unassignedError; submissionError = submissionError === VOID ? this.etl_1 : submissionError; activeUserPersonUid = activeUserPersonUid === VOID ? this.ftl_1 : activeUserPersonUid; activeUserPersonName = activeUserPersonName === VOID ? this.gtl_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.htl_1 : activeUserPictureUri; courseTerminology = courseTerminology === VOID ? this.itl_1 : courseTerminology; localDateTimeNow = localDateTimeNow === VOID ? this.jtl_1 : localDateTimeNow; dayOfWeekStringMap = dayOfWeekStringMap === VOID ? this.ktl_1 : dayOfWeekStringMap; collapsedSubmissions = collapsedSubmissions === VOID ? this.ltl_1 : collapsedSubmissions; openingFileSubmissionState = openingFileSubmissionState === VOID ? this.mtl_1 : openingFileSubmissionState; showModerateOptions = showModerateOptions === VOID ? this.ntl_1 : showModerateOptions; showSocialWarning = showSocialWarning === VOID ? this.otl_1 : showSocialWarning; return $super === VOID ? this.jty(assignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, editableSubmissionFiles, submissionTooLong, submissions, markList, courseComments, privateComments, fieldsEnabled, selectedChipId, gradeFilterChips, submissionHeaderUiState, unassignedError, submissionError, activeUserPersonUid, activeUserPersonName, activeUserPictureUri, courseTerminology, localDateTimeNow, dayOfWeekStringMap, collapsedSubmissions, openingFileSubmissionState, showModerateOptions, showSocialWarning) : $super.jty.call(this, assignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, editableSubmissionFiles, submissionTooLong, submissions, markList, courseComments, privateComments, fieldsEnabled, selectedChipId, gradeFilterChips, submissionHeaderUiState, unassignedError, submissionError, activeUserPersonUid, activeUserPersonName, activeUserPictureUri, courseTerminology, localDateTimeNow, dayOfWeekStringMap, collapsedSubmissions, openingFileSubmissionState, showModerateOptions, showSocialWarning); }; protoOf(ClazzAssignmentDetailOverviewUiState).toString = function () { return 'ClazzAssignmentDetailOverviewUiState(assignment=' + this.otk_1 + ', courseBlock=' + this.ptk_1 + ', courseBlockPicture=' + this.qtk_1 + ', courseGroupSet=' + this.rtk_1 + ', submitterUid=' + this.stk_1.toString() + ', editableSubmissionFiles=' + this.ttk_1 + ', submissionTooLong=' + this.utk_1 + ', submissions=' + this.vtk_1 + ', markList=' + this.wtk_1 + ', courseComments=' + this.xtk_1 + ', privateComments=' + this.ytk_1 + ', fieldsEnabled=' + this.ztk_1 + ', selectedChipId=' + this.atl_1 + ', gradeFilterChips=' + this.btl_1 + ', submissionHeaderUiState=' + this.ctl_1 + ', unassignedError=' + this.dtl_1 + ', submissionError=' + this.etl_1 + ', activeUserPersonUid=' + this.ftl_1.toString() + ', activeUserPersonName=' + this.gtl_1 + ', activeUserPictureUri=' + this.htl_1 + ', courseTerminology=' + this.itl_1 + ', localDateTimeNow=' + this.jtl_1 + ', dayOfWeekStringMap=' + this.ktl_1 + ', collapsedSubmissions=' + this.ltl_1 + ', openingFileSubmissionState=' + this.mtl_1 + ', showModerateOptions=' + this.ntl_1 + ', showSocialWarning=' + this.otl_1 + ')'; }; protoOf(ClazzAssignmentDetailOverviewUiState).hashCode = function () { var result = this.otk_1 == null ? 0 : this.otk_1.hashCode(); result = imul(result, 31) + (this.ptk_1 == null ? 0 : this.ptk_1.hashCode()) | 0; result = imul(result, 31) + (this.qtk_1 == null ? 0 : this.qtk_1.hashCode()) | 0; result = imul(result, 31) + (this.rtk_1 == null ? 0 : hashCode(this.rtk_1)) | 0; result = imul(result, 31) + this.stk_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.ttk_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.utk_1) | 0; result = imul(result, 31) + hashCode(this.vtk_1) | 0; result = imul(result, 31) + hashCode(this.wtk_1) | 0; result = imul(result, 31) + hashCode(this.xtk_1) | 0; result = imul(result, 31) + hashCode(this.ytk_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ztk_1) | 0; result = imul(result, 31) + this.atl_1 | 0; result = imul(result, 31) + hashCode(this.btl_1) | 0; result = imul(result, 31) + this.ctl_1.hashCode() | 0; result = imul(result, 31) + (this.dtl_1 == null ? 0 : getStringHashCode(this.dtl_1)) | 0; result = imul(result, 31) + (this.etl_1 == null ? 0 : getStringHashCode(this.etl_1)) | 0; result = imul(result, 31) + this.ftl_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.gtl_1) | 0; result = imul(result, 31) + (this.htl_1 == null ? 0 : getStringHashCode(this.htl_1)) | 0; result = imul(result, 31) + (this.itl_1 == null ? 0 : hashCode(this.itl_1)) | 0; result = imul(result, 31) + this.jtl_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.ktl_1) | 0; result = imul(result, 31) + hashCode(this.ltl_1) | 0; result = imul(result, 31) + (this.mtl_1 == null ? 0 : this.mtl_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.ntl_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.otl_1) | 0; return result; }; protoOf(ClazzAssignmentDetailOverviewUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentDetailOverviewUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentDetailOverviewUiState ? other : THROW_CCE(); if (!equals(this.otk_1, tmp0_other_with_cast.otk_1)) return false; if (!equals(this.ptk_1, tmp0_other_with_cast.ptk_1)) return false; if (!equals(this.qtk_1, tmp0_other_with_cast.qtk_1)) return false; if (!equals(this.rtk_1, tmp0_other_with_cast.rtk_1)) return false; if (!this.stk_1.equals(tmp0_other_with_cast.stk_1)) return false; if (!equals(this.ttk_1, tmp0_other_with_cast.ttk_1)) return false; if (!(this.utk_1 === tmp0_other_with_cast.utk_1)) return false; if (!equals(this.vtk_1, tmp0_other_with_cast.vtk_1)) return false; if (!equals(this.wtk_1, tmp0_other_with_cast.wtk_1)) return false; if (!equals(this.xtk_1, tmp0_other_with_cast.xtk_1)) return false; if (!equals(this.ytk_1, tmp0_other_with_cast.ytk_1)) return false; if (!(this.ztk_1 === tmp0_other_with_cast.ztk_1)) return false; if (!(this.atl_1 === tmp0_other_with_cast.atl_1)) return false; if (!equals(this.btl_1, tmp0_other_with_cast.btl_1)) return false; if (!this.ctl_1.equals(tmp0_other_with_cast.ctl_1)) return false; if (!(this.dtl_1 == tmp0_other_with_cast.dtl_1)) return false; if (!(this.etl_1 == tmp0_other_with_cast.etl_1)) return false; if (!this.ftl_1.equals(tmp0_other_with_cast.ftl_1)) return false; if (!(this.gtl_1 === tmp0_other_with_cast.gtl_1)) return false; if (!(this.htl_1 == tmp0_other_with_cast.htl_1)) return false; if (!equals(this.itl_1, tmp0_other_with_cast.itl_1)) return false; if (!this.jtl_1.equals(tmp0_other_with_cast.jtl_1)) return false; if (!equals(this.ktl_1, tmp0_other_with_cast.ktl_1)) return false; if (!equals(this.ltl_1, tmp0_other_with_cast.ltl_1)) return false; if (!equals(this.mtl_1, tmp0_other_with_cast.mtl_1)) return false; if (!(this.ntl_1 === tmp0_other_with_cast.ntl_1)) return false; if (!(this.otl_1 === tmp0_other_with_cast.otl_1)) return false; return true; }; function ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission) { editableSubmission = editableSubmission === VOID ? null : editableSubmission; this.otn_1 = editableSubmission; } protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).pts = function (editableSubmission) { return new ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission); }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).toString = function () { return 'ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission=' + this.otn_1 + ')'; }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).hashCode = function () { return this.otn_1 == null ? 0 : this.otn_1.hashCode(); }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentDetailoverviewSubmissionUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentDetailoverviewSubmissionUiState ? other : THROW_CCE(); if (!equals(this.otn_1, tmp0_other_with_cast.otn_1)) return false; return true; }; function saveAndUploadUseCase$factory() { return getPropertyCallableRef('saveAndUploadUseCase', 1, KProperty1, function (receiver) { return _get_saveAndUploadUseCase__bjy5rj(receiver); }, null); } function cancelTransferJobUseCase$factory() { return getPropertyCallableRef('cancelTransferJobUseCase', 1, KProperty1, function (receiver) { return _get_cancelTransferJobUseCase__o6e2y4(receiver); }, null); } function openBlobUiUseCase$factory() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz(receiver); }, null); } function ustadAccountManager$factory() { return getPropertyCallableRef('ustadAccountManager', 1, KProperty1, function (receiver) { return _get_ustadAccountManager__el9prc(receiver); }, null); } function showSocialWarningUseCase$factory() { return getPropertyCallableRef('showSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_showSocialWarningUseCase__ft8jc6(receiver); }, null); } function dismissSocialWarningUseCase$factory() { return getPropertyCallableRef('dismissSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_dismissSocialWarningUseCase__st8mv5(receiver); }, null); } function openExternalLinkUseCase$factory() { return getPropertyCallableRef('openExternalLinkUseCase', 1, KProperty1, function (receiver) { return _get_openExternalLinkUseCase__ku5z07(receiver); }, null); } function saveAndUploadUseCase$factory_0() { return getPropertyCallableRef('saveAndUploadUseCase', 1, KProperty1, function (receiver) { return _get_saveAndUploadUseCase__bjy5rj(receiver); }, null); } function cancelTransferJobUseCase$factory_0() { return getPropertyCallableRef('cancelTransferJobUseCase', 1, KProperty1, function (receiver) { return _get_cancelTransferJobUseCase__o6e2y4(receiver); }, null); } function openBlobUiUseCase$factory_0() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz(receiver); }, null); } function ustadAccountManager$factory_0() { return getPropertyCallableRef('ustadAccountManager', 1, KProperty1, function (receiver) { return _get_ustadAccountManager__el9prc(receiver); }, null); } function showSocialWarningUseCase$factory_0() { return getPropertyCallableRef('showSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_showSocialWarningUseCase__ft8jc6(receiver); }, null); } function dismissSocialWarningUseCase$factory_0() { return getPropertyCallableRef('dismissSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_dismissSocialWarningUseCase__st8mv5(receiver); }, null); } function openExternalLinkUseCase$factory_0() { return getPropertyCallableRef('openExternalLinkUseCase', 1, KProperty1, function (receiver) { return _get_openExternalLinkUseCase__ku5z07(receiver); }, null); } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.sty_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).gqg = function (noSubmissions, $completion) { var tmp = this.hqg(noSubmissions, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; if (!this.tty_1 ? this.sty_1.stz_1.t2().ytz_1 : false) { l$ret$1: do { var this_0 = this.sty_1.stz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gu0(VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).hqg = function (noSubmissions, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda(this.sty_1, completion); i.tty_1 = noSubmissions; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (noSubmissions, $completion) { return i.gqg(noSubmissions, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.pu0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.pu0_1.pqo().s7e(); var tmp0_safe_receiver = this.pu0_1.stz_1.t2().qu0(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o7t_1; var tmp_1 = tmp_0.vc1(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_0(this.pu0_1, null); suspendResult = tmp_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).m78 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda$slambda(this.pu0_1, completion); }; function ClazzAssignmentEditViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.zu0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.au1_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var descriptionHtml = tmp_1; var tmp1_safe_receiver = this.zu0_1.stz_1.t2().qu0(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pk8_1; this.zu0_1.bu1(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jkm(VOID, VOID, VOID, VOID, VOID, descriptionHtml)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).mqb = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this.zu0_1, completion); i.au1_1 = result; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$lambda($groupSet) { return function ($this$shallowCopy) { $this$shallowCopy.r7t_1 = $groupSet.b7z_1; return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.ku1_1 = $commitDelay; this.lu1_1 = $entity; this.mu1_1 = $this; this.nu1_1 = $key; this.ou1_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.ku1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.lu1_1 == null)) { this.id_1 = 2; suspendResult = this.mu1_1.bqp(this.mu1_1.vqn_1, this.nu1_1, this.ou1_1, this.lu1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1(this.ku1_1, this.lu1_1, this.mu1_1, this.nu1_1, this.ou1_1, completion); i.pu1_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_2($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.yu1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.zu1_1.sqa_1; var tmp0_elvis_lhs = tmp_0 instanceof CourseGroupSet ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var groupSet = tmp_1; var tmp$ret$0; l$ret$1: do { var this_0 = this.yu1_1.stz_1; while (true) { var prevValue = this_0.t2(); var tmp3_safe_receiver = prevValue.qu0(); var tmp_2; if (tmp3_safe_receiver == null) { tmp_2 = null; } else { var tmp0_safe_receiver = prevValue.qu0(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; var tmp_3; if (tmp1_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = shallowCopy_5(tmp1_safe_receiver, ClazzAssignmentEditViewModel$slambda$slambda$slambda$lambda(groupSet)); } var tmp_4 = tmp_3; var tmp_5; if (!groupSet.b7z_1.equals(new Long(0, 0))) { tmp_5 = groupSet; } else { tmp_5 = null; } var tmp2_safe_receiver = tmp_5; tmp_2 = tmp3_safe_receiver.bk9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_4, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c7z_1); } var nextValue = prevValue.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.du0_1.lu2(tmp_2), VOID, null); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var newState = tmp$ret$0; var this_1 = this.yu1_1; var entity = newState.qu0(); var serializer = Companion_getInstance_14().o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_6 = this_1; var tmp_7 = this_1.mqo(); tmp_6.cqu_1 = launch(tmp_7, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_2(commitDelay, entity, this_1, key, serializer, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).mqb = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this.yu1_1, completion); i.zu1_1 = result; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.uu2_1 = $commitDelay; this.vu2_1 = $entity; this.wu2_1 = $this; this.xu2_1 = $key; this.yu2_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.uu2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vu2_1 == null)) { this.id_1 = 2; suspendResult = this.wu2_1.bqp(this.wu2_1.vqn_1, this.xu2_1, this.yu2_1, this.vu2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3(this.uu2_1, this.vu2_1, this.wu2_1, this.xu2_1, this.yu2_1, completion); i.zu2_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_4($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.iu3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.ju3_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? isInterface(tmp_0, List) : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var allocations = tmp_1; var tmp$ret$0; l$ret$1: do { var this_0 = this.iu3_1.stz_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.du0_1.au2_1; var nextValue = prevValue.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.du0_1.lu2(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bk9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, allocations))); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var newState = tmp$ret$0; var this_1 = this.iu3_1; var entity = newState.qu0(); var serializer = Companion_getInstance_14().o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_2 = this_1; var tmp_3 = this_1.mqo(); tmp_2.cqu_1 = launch(tmp_3, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_4(commitDelay, entity, this_1, key, serializer, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).mqb = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this.iu3_1, completion); i.ju3_1 = result; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda).tu3 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.tu3(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).enz = function (it, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(completion); i.su3_1 = it; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.tu3(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.cu4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).du4 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.du4($completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.cu4_1.pqo()); var assignmentUid = tmp_0.o62(520); var this_0 = new CourseBlock(); var tmp_1 = this_0; var tmp_2 = get_doorPrimaryKeyManager(this.cu4_1.pqo()); tmp_1.u7x_1 = tmp_2.o62(124); var tmp_3 = this_0; tmp_3.v7x_1 = 103; this_0.m7y_1 = assignmentUid; var tmp_4 = this_0; tmp_4.a7y_1 = 102; this_0.f7y_1 = 10.0; this_0.g7y_1 = 0.0; var this_1 = new ClazzAssignment(); this_1.o7t_1 = assignmentUid; this_1.g7u_1 = this.cu4_1.vtz_1; return new CourseBlockAndEditEntities(this_0, VOID, VOID, VOID, VOID, VOID, VOID, this_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda_1(this.cu4_1, completion); }; function ClazzAssignmentEditViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.du4($completion); }; l.$arity = 0; return l; } function ClazzAssignmentEditViewModel$slambda$lambda($savedStateHandle, this$0, $courseTerminology) { return function (it) { var groupSubmissionOn = $savedStateHandle.ba('groupSubmissionOn'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.stz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel...' call var tmp = prevValue.du0_1.lu2(it); var tmp4_elvis_lhs = groupSubmissionOn == null ? null : toBoolean(groupSubmissionOn); var tmp_0; if (tmp4_elvis_lhs == null) { var tmp2_safe_receiver = it == null ? null : it.wk8_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r7t_1; var tmp_1; if (tmp3_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel....' call tmp_1 = !tmp3_safe_receiver.equals(new Long(0, 0)); } tmp_0 = tmp_1; } else { tmp_0 = tmp4_elvis_lhs; } var tmp5_elvis_lhs = tmp_0; var nextValue = prevValue.gu0(VOID, VOID, VOID, VOID, $courseTerminology, VOID, VOID, tmp, tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.mu4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).ir1 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.ir1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.mu4_1.n4r(); var value = this.mu4_1.stz_1.t2(); var this_1 = this_0.u45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzAssignmentEditUiState), arrayOf([]), false)); return this_0.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), value); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).w1m = function ($this$withContext, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_3(this.mu4_1, completion); i.nu4_1 = $this$withContext; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$withContext, $completion) { return i.ir1($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.wu4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.wu4_1.stz_1, ClazzAssignmentEditViewModel$slambda$slambda$slambda_0(this.wu4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_5(this.wu4_1, completion); i.xu4_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_5(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.gu5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.gu5_1.sqo(); Companion_getInstance_175(); var tmp_1 = this.gu5_1.zqo(tmp_0, 'courseBlockDesc'); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_2(this.gu5_1, null); suspendResult = tmp_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_7(this.gu5_1, completion); i.hu5_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_8(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_7(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_9(this$0, resultContinuation) { this.qu5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.qu5_1.zqo(this.qu5_1.sqo(), 'groupSet'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_4(this.qu5_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_9(this.qu5_1, completion); i.ru5_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_10(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_9(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_11(this$0, resultContinuation) { this.au6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.au6_1.zqo(this.au6_1.sqo(), 'peerAllocationsResult'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_6(this.au6_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_11(this.au6_1, completion); i.bu6_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_12(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_11(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$slambda(this$0, $initStateJson, resultContinuation) { this.ku6_1 = this$0; this.lu6_1 = $initStateJson; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).nu6 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.nu6((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return this.ku6_1.n4r().t45(Companion_getInstance_152().o4r(), this.lu6_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).w1m = function ($this$withContext, completion) { var i = new ClazzAssignmentEditViewModel$onClickSave$slambda$slambda(this.ku6_1, this.lu6_1, completion); i.mu6_1 = $this$withContext; return i; }; function ClazzAssignmentEditViewModel$onClickSave$slambda$slambda_0(this$0, $initStateJson, resultContinuation) { var i = new ClazzAssignmentEditViewModel$onClickSave$slambda$slambda(this$0, $initStateJson, resultContinuation); var l = function ($this$withContext, $completion) { return i.nu6($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$lambda($this$shallowCopy) { $this$shallowCopy.r7t_1 = new Long(0, 0); return Unit_instance; } function _get_snackDisaptcher__bp310a($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.utz_1; snackDisaptcher$factory_0(); return this_0.t2(); } function hasErrors_0(_this__u8e3s4, $this) { return ((((((!(_this__u8e3s4.bu0_1 == null) ? true : !(_this__u8e3s4.du0_1.hu2_1 == null)) ? true : !(_this__u8e3s4.du0_1.gu2_1 == null)) ? true : !(_this__u8e3s4.du0_1.ju2_1 == null)) ? true : !(_this__u8e3s4.ztz_1 == null)) ? true : !(_this__u8e3s4.cu0_1 == null)) ? true : !(_this__u8e3s4.fu0_1 == null)) ? true : _this__u8e3s4.du0_1.pu6(); } function checkNoSubmissionsMade($this, $completion) { var tmp = $this.pqo().s7e(); var tmp0_safe_receiver = $this.stz_1.t2().qu0(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o7t_1; return tmp.uc1(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, $completion); } function Companion_133() { this.qu6_1 = 'groupSet'; this.ru6_1 = 'peerAllocationsResult'; this.su6_1 = 'terminology'; this.tu6_1 = 'CourseAssignmentEdit'; this.uu6_1 = 5; this.vu6_1 = 100; this.wu6_1 = 'groupSubmissionOn'; } var Companion_instance_181; function Companion_getInstance_151() { return Companion_instance_181; } function sam$kotlinx_coroutines_flow_FlowCollector$0_17(function_0) { this.xu6_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_17).u1d = function (value, $completion) { return this.xu6_1(value, $completion); }; function ClazzAssignmentEditViewModel$_init_$lambda_wdhfey(db, systemImpl) { return new UpdatePeerReviewAllocationUseCase(db, systemImpl); } function ClazzAssignmentEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.gu7_1 = this$0; this.hu7_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; suspendResult = this.gu7_1.aqp(this.hu7_1, 'terminology', Companion_instance_33.o4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ju7_1 = suspendResult; this.id_1 = 2; var tmp_0 = Companion_getInstance_14().o4r(); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda_2(this.gu7_1, null); suspendResult = this.gu7_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzAssignmentEditViewModel$slambda$lambda(this.hu7_1, this.gu7_1, this.ju7_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Companion_getInstance_126(); if (this.hu7_1.ba('initState') == null) { var tmp_3 = this; Companion_getInstance_126(); tmp_3.ku7_1 = 'initState'; this.id_1 = 3; var tmp_4 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_4, ClazzAssignmentEditViewModel$slambda$slambda_4(this.gu7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 4; continue $sm; } case 3: var ARGUMENT = suspendResult; this.hu7_1.yqj(this.ku7_1, ARGUMENT); this.id_1 = 4; continue $sm; case 4: l$ret$1: do { var this_0 = this.gu7_1.stz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lu7(true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.gu7_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_5 = Companion_getInstance_98().pq7_1; var tmp_6 = this.gu7_1.vqo().soj(strings_getInstance().ams_1); var nextValue_0 = prevValue_0.hq7(VOID, tmp_5, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_6, VOID, ClazzAssignmentEditViewModel$onClickSave$ref(this.gu7_1))); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.iu7_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_6(this.gu7_1, null)); launch(this.iu7_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_8(this.gu7_1, null)); launch(this.iu7_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_10(this.gu7_1, null)); launch(this.iu7_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_12(this.gu7_1, null)); return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda(this.gu7_1, this.hu7_1, completion); i.iu7_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onAssignmentChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.uu7_1 = $commitDelay; this.vu7_1 = $entity; this.wu7_1 = $this; this.xu7_1 = $key; this.yu7_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.uu7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vu7_1 == null)) { this.id_1 = 2; suspendResult = this.wu7_1.bqp(this.wu7_1.vqn_1, this.xu7_1, this.yu7_1, this.vu7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onAssignmentChanged$slambda(this.uu7_1, this.vu7_1, this.wu7_1, this.xu7_1, this.yu7_1, completion); i.zu7_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$onAssignmentChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzAssignmentEditViewModel$onAssignmentChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.iu8_1 = $commitDelay; this.ju8_1 = $entity; this.ku8_1 = $this; this.lu8_1 = $key; this.mu8_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.iu8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.ju8_1 == null)) { this.id_1 = 2; suspendResult = this.ku8_1.bqp(this.ku8_1.vqn_1, this.lu8_1, this.mu8_1, this.ju8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda(this.iu8_1, this.ju8_1, this.ku8_1, this.lu8_1, this.mu8_1, completion); i.nu8_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.wu8_1 = $commitDelay; this.xu8_1 = $entity; this.yu8_1 = $this; this.zu8_1 = $key; this.au9_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.wu8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.xu8_1 == null)) { this.id_1 = 2; suspendResult = this.yu8_1.bqp(this.yu8_1.vqn_1, this.zu8_1, this.au9_1, this.xu8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onPictureChanged$slambda(this.wu8_1, this.xu8_1, this.yu8_1, this.zu8_1, this.au9_1, completion); i.bu9_1 = $this$launch; return i; }; function ClazzAssignmentEditViewModel$onPictureChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzAssignmentEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.stz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onClickSave..' call var nextValue = prevValue.lu7(true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.ku9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 11; var tmp_0 = this; Companion_getInstance_126(); tmp_0.lu9_1 = this.ku9_1.vqn_1.ba('initState'); if (this.lu9_1 == null) { this.mu9_1 = null; this.id_1 = 2; continue $sm; } else { var tmp_1 = this; tmp_1.nu9_1 = this.lu9_1; var tmp_2 = this; tmp_2.ou9_1 = this.nu9_1; this.id_1 = 1; var tmp_3 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_3, ClazzAssignmentEditViewModel$onClickSave$slambda$slambda_0(this.ku9_1, this.ou9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.mu9_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.pu9_1 = this.mu9_1; var tmp_4 = this; var tmp_5; if (this.pu9_1 == null) { return Unit_instance; } else { tmp_5 = this.pu9_1; } tmp_4.qu9_1 = tmp_5; var tmp_6 = this; var tmp2_safe_receiver = this.ku9_1.stz_1.t2().qu0(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.wk8_1; var tmp_7; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_7 = tmp3_elvis_lhs; } tmp_6.ru9_1 = tmp_7; var tmp_8 = this; var tmp4_safe_receiver = this.ku9_1.stz_1.t2().qu0(); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.pk8_1; var tmp_9; if (tmp5_elvis_lhs == null) { return Unit_instance; } else { tmp_9 = tmp5_elvis_lhs; } tmp_8.su9_1 = tmp_9; if (!this.ru9_1.w7t_1 ? !this.ru9_1.c7u_1 : false) { l$ret$1: do { var this_0 = this.ku9_1.stz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gu0(VOID, VOID, VOID, VOID, VOID, this.ku9_1.vqo().soj(strings_getInstance().hnk_1)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var it = this.su9_1.f7y_1; if (it == null ? true : it <= 0.0) { l$ret$3: do { var this_1 = this.ku9_1.stz_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.du0_1.lu2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ku9_1.vqo().soj(strings_getInstance().cmo_1))); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.su9_1.c7y_1.c7(this.su9_1.b7y_1) <= 0) { l$ret$5: do { var this_2 = this.ku9_1.stz_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.du0_1.lu2(VOID, VOID, VOID, VOID, VOID, VOID, this.ku9_1.vqo().soj(strings_getInstance().zn9_1))); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); } if (this.su9_1.e7y_1.c7(this.su9_1.c7y_1) < 0) { l$ret$7: do { var this_3 = this.ku9_1.stz_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_2.du0_1.lu2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ku9_1.vqo().soj(strings_getInstance().nn6_1))); if (this_3.z1k(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); } var containsArg = this.ru9_1.y7t_1; if (!(5 <= containsArg ? containsArg <= 100 : false)) { l$ret$9: do { var this_4 = this.ku9_1.stz_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.gu0(VOID, VOID, VOID, VOID, VOID, VOID, this.ku9_1.vqo().toj(strings_getInstance().png_1, ['5', '100'])); if (this_4.z1k(prevValue_3, nextValue_3)) { break l$ret$9; } } } while (false); } var this_5 = this.su9_1.y7x_1; if (this_5 == null ? true : isBlank(this_5)) { l$ret$11: do { var this_6 = this.ku9_1.stz_1; while (true) { var prevValue_4 = this_6.t2(); var nextValue_4 = prevValue_4.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_4.du0_1.lu2(VOID, VOID, VOID, VOID, VOID, this.ku9_1.vqo().soj(strings_getInstance().gnm_1))); if (this_6.z1k(prevValue_4, nextValue_4)) { break l$ret$11; } } } while (false); } if (this.ku9_1.stz_1.t2().eu0_1 ? this.ru9_1.r7t_1.equals(new Long(0, 0)) : false) { l$ret$13: do { var this_7 = this.ku9_1.stz_1; while (true) { var prevValue_5 = this_7.t2(); var nextValue_5 = prevValue_5.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ku9_1.vqo().soj(strings_getInstance().cmo_1)); if (this_7.z1k(prevValue_5, nextValue_5)) { break l$ret$13; } } } while (false); } this.tu9_1 = null; var tmp6_safe_receiver = this.qu9_1.qu0(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.wk8_1; if (!equals(tmp7_safe_receiver == null ? null : tmp7_safe_receiver.r7t_1, this.ru9_1.r7t_1)) { this.id_1 = 3; suspendResult = checkNoSubmissionsMade(this.ku9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.uu9_1 = false; this.id_1 = 4; continue $sm; } case 3: this.vu9_1 = suspendResult; this.uu9_1 = !this.vu9_1; this.id_1 = 4; continue $sm; case 4: if (this.uu9_1) { this.tu9_1 = this.ku9_1.vqo().soj(strings_getInstance().xmi_1) + 'Cannot change groups after submissions made'; this.id_1 = 5; continue $sm; } else { this.id_1 = 5; continue $sm; } case 5: var tmp_10; var tmp8_safe_receiver = this.qu9_1.qu0(); var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.wk8_1; if (!((tmp9_safe_receiver == null ? null : tmp9_safe_receiver.b7u_1) === this.ru9_1.b7u_1)) { tmp_10 = this.tu9_1 == null; } else { tmp_10 = false; } if (tmp_10) { this.id_1 = 6; suspendResult = checkNoSubmissionsMade(this.ku9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.wu9_1 = false; this.id_1 = 7; continue $sm; } case 6: this.xu9_1 = suspendResult; this.wu9_1 = !this.xu9_1; this.id_1 = 7; continue $sm; case 7: if (this.wu9_1) { this.tu9_1 = this.ku9_1.vqo().soj(strings_getInstance().xmi_1) + 'Cannot change marking type after submissions made'; this.id_1 = 8; continue $sm; } else { this.id_1 = 8; continue $sm; } case 8: var tmp_11; var tmp_12 = this.ru9_1.b7u_1; if (tmp_12 === 2) { tmp_11 = this.ru9_1.h7u_1 < 1; } else { tmp_11 = false; } if (tmp_11) { l$ret$15: do { var this_8 = this.ku9_1.stz_1; while (true) { var prevValue_6 = this_8.t2(); var nextValue_6 = prevValue_6.gu0(VOID, VOID, VOID, this.ku9_1.vqo().soj(strings_getInstance().hnh_1)); if (this_8.z1k(prevValue_6, nextValue_6)) { break l$ret$15; } } } while (false); } this.yu9_1 = this.tu9_1; if (hasErrors_0(this.ku9_1.stz_1.t2(), this.ku9_1) ? true : !(this.yu9_1 == null)) { var tmp10_safe_receiver = this.yu9_1; if (tmp10_safe_receiver == null) null; else { _get_snackDisaptcher__bp310a(this.ku9_1).wq7(new Snack(tmp10_safe_receiver)); } return Unit_instance; } var tmp_13; var tmp_14 = this.ru9_1.b7u_1; if (tmp_14 === 2) { var tmp11_safe_receiver = this.qu9_1.qu0(); var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.wk8_1; tmp_13 = !((tmp12_safe_receiver == null ? null : tmp12_safe_receiver.h7u_1) === this.ru9_1.h7u_1); } else { tmp_13 = false; } if (tmp_13) { this.id_1 = 9; var tmp_15 = this.ku9_1.rtz_1(this.ku9_1.pqo(), this.ku9_1.vqo()); var tmp13_safe_receiver = this.ku9_1.stz_1.t2().qu0(); var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.yk8_1; suspendResult = tmp_15.epl(tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs, this.ru9_1.r7t_1, this.ru9_1.g7u_1, this.ru9_1.o7t_1, this.ru9_1.h7u_1, true, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 10; continue $sm; } case 9: var newAllocations = suspendResult; l$ret$17: do { var this_9 = this.ku9_1.stz_1; while (true) { var prevValue_7 = this_9.t2(); var tmp0_safe_receiver = prevValue_7.du0_1.au2_1; var nextValue_7 = prevValue_7.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_7.du0_1.lu2(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bk9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newAllocations))); if (this_9.z1k(prevValue_7, nextValue_7)) { break l$ret$17; } } } while (false); this.id_1 = 10; continue $sm; case 10: var this_10 = this.ku9_1.stz_1; var tmp_16; var tmp_17; var tmp0_safe_receiver_0 = this_10.t2().qu0(); var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.wk8_1; if (!equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r7t_1, new Long(0, 0))) { tmp_17 = !this_10.t2().eu0_1; } else { tmp_17 = false; } if (tmp_17) { tmp_16 = this_10; } else { tmp_16 = null; } var tmp15_safe_receiver = tmp_16; if (tmp15_safe_receiver == null) null; else { l$ret$19: do { while (true) { var prevValue_8 = tmp15_safe_receiver.t2(); var tmp1_safe_receiver_0 = prevValue_8.du0_1.au2_1; var tmp_18; if (tmp1_safe_receiver_0 == null) { tmp_18 = null; } else { var tmp0_safe_receiver_1 = prevValue_8.du0_1.au2_1.wk8_1; var tmp_19; if (tmp0_safe_receiver_1 == null) { tmp_19 = null; } else { tmp_19 = shallowCopy_5(tmp0_safe_receiver_1, ClazzAssignmentEditViewModel$onClickSave$slambda$lambda); } tmp_18 = tmp1_safe_receiver_0.bk9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_19, null); } var nextValue_8 = prevValue_8.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_8.du0_1.lu2(tmp_18)); if (tmp15_safe_receiver.z1k(prevValue_8, nextValue_8)) { break l$ret$19; } } } while (false); } this.ku9_1.gqu(this.ku9_1.stz_1.t2().qu0()); return Unit_instance; case 11: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 11) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).m78 = function (completion) { return new ClazzAssignmentEditViewModel$onClickSave$slambda(this.ku9_1, completion); }; function ClazzAssignmentEditViewModel$onClickSave$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentEditViewModel$onClickSave$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzAssignmentEditViewModel(di, savedStateHandle, peerReviewAllocationUseCaseFactory) { var tmp; if (peerReviewAllocationUseCaseFactory === VOID) { tmp = ClazzAssignmentEditViewModel$_init_$lambda_wdhfey; } else { tmp = peerReviewAllocationUseCaseFactory; } peerReviewAllocationUseCaseFactory = tmp; UstadEditViewModel.call(this, di, savedStateHandle, 'CourseAssignmentEdit'); this.rtz_1 = peerReviewAllocationUseCaseFactory; var tmp_0 = this; var tmp0_completionCriteriaOptions = Companion_getInstance_152().ou6_1; var tmp1_timeZone = Companion_getInstance_10().emi().fmh(); tmp_0.stz_1 = MutableStateFlow(new ClazzAssignmentEditUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, new CourseBlockEditUiState(VOID, VOID, tmp0_completionCriteriaOptions, VOID, VOID, VOID, VOID, VOID, true, VOID, tmp1_timeZone))); this.ttz_1 = asStateFlow(this.stz_1); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(SnackBarDispatcher), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.utz_1 = Instance(this, tmp$ret$0, null).b5d(this, snackDisaptcher$factory()); var tmp_3 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.vtz_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.' call var tmp0_loadingState = Companion_getInstance_98().oq7_1; var tmp1_title = this.fqv(strings_getInstance().fn6_1, strings_getInstance().gn6_1); var nextValue = prevValue.hq7(VOID, tmp0_loadingState, tmp1_title, VOID, true, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_4 = this.mqo(); launch(tmp_4, VOID, VOID, ClazzAssignmentEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ClazzAssignmentEditViewModel).zu9 = function (groupSubmissionOn) { this.vqn_1.yqj('groupSubmissionOn', groupSubmissionOn.toString()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.stz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onGroupSubmissionOnChanged.' call var tmp; if (!(prevValue.fu0_1 == null) ? groupSubmissionOn : false) { tmp = prevValue.fu0_1; } else { tmp = null; } var nextValue = prevValue.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, groupSubmissionOn, tmp); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentEditViewModel).aua = function (assignment) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.stz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onAssignmentChanged.' call var tmp8_safe_receiver = prevValue.du0_1.au2_1; var tmp9_courseBlockEditUiState = prevValue.du0_1.lu2(tmp8_safe_receiver == null ? null : tmp8_safe_receiver.bk9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, assignment)); var tmp; var tmp_0; if (!(prevValue.cu0_1 == null)) { var tmp_1 = assignment == null ? null : assignment.y7t_1; var tmp6_safe_receiver = prevValue.qu0(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.wk8_1; tmp_0 = tmp_1 == (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.y7t_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.cu0_1; } else { tmp = null; } var tmp10_sizeLimitError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.bu0_1 == null)) { tmp_4 = (assignment == null ? null : assignment.w7t_1) === false; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = !assignment.c7u_1; } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.bu0_1; } else { tmp_2 = null; } var tmp11_submissionRequiredError = tmp_2; var tmp_5; var tmp_6; var tmp_7; if (!(prevValue.ztz_1 == null)) { var tmp_8 = assignment == null ? null : assignment.h7u_1; var tmp1_safe_receiver = prevValue.qu0(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.wk8_1; tmp_7 = tmp_8 == (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h7u_1); } else { tmp_7 = false; } if (tmp_7) { var tmp_9 = assignment == null ? null : assignment.b7u_1; tmp_6 = tmp_9 === 2; } else { tmp_6 = false; } if (tmp_6) { tmp_5 = prevValue.ztz_1; } else { tmp_5 = null; } var tmp12_reviewerCountError = tmp_5; var nextValue = prevValue.gu0(VOID, VOID, VOID, tmp12_reviewerCountError, VOID, tmp11_submissionRequiredError, tmp10_sizeLimitError, tmp9_courseBlockEditUiState); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newState = tmp$ret$1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var entity = newState.qu0(); var serializer = Companion_getInstance_14().o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp_10 = this; var tmp_11 = this.mqo(); tmp_10.cqu_1 = launch(tmp_11, VOID, VOID, ClazzAssignmentEditViewModel$onAssignmentChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).bu1 = function (courseBlock) { if (courseBlock == null) { Napier_getInstance().n5e('Change courseblock shoudl not really be null'); return Unit_instance; } var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.stz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onCourseBlockChanged.' call var tmp0_safe_receiver = prevValue.qu0(); var prevBlock = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk8_1; var tmp8_$this = prevValue.du0_1; var tmp1_safe_receiver = prevValue.qu0(); var tmp9_block = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bk9(courseBlock); var tmp5_safe_receiver = prevValue.du0_1.au2_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.pk8_1; var tmp10_caMaxPointsError = this.gqv(tmp6_safe_receiver == null ? null : tmp6_safe_receiver.f7y_1, courseBlock.f7y_1, prevValue.du0_1.hu2_1); var tmp; var tmp_0; var tmp_1; if (!(prevValue.du0_1.gu2_1 == null)) { tmp_1 = equals(prevBlock == null ? null : prevBlock.c7y_1, courseBlock.c7y_1); } else { tmp_1 = false; } if (tmp_1) { tmp_0 = prevBlock.b7y_1.equals(courseBlock.b7y_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.du0_1.gu2_1; } else { tmp = null; } var tmp11_caDeadlineError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.du0_1.ju2_1 == null)) { tmp_4 = equals(prevBlock == null ? null : prevBlock.c7y_1, courseBlock.c7y_1); } else { tmp_4 = false; } if (tmp_4) { tmp_3 = prevBlock.e7y_1.equals(courseBlock.e7y_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.du0_1.ju2_1; } else { tmp_2 = null; } var tmp12_caGracePeriodError = tmp_2; var tmp2_safe_receiver = prevValue.du0_1.au2_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.pk8_1; var tmp13_caTitleError = this.gqv(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.y7x_1, courseBlock.y7x_1, prevValue.du0_1.fu2_1); var nextValue = prevValue.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp8_$this.lu2(tmp9_block, VOID, VOID, VOID, VOID, tmp13_caTitleError, tmp11_caDeadlineError, tmp10_caMaxPointsError, VOID, tmp12_caGracePeriodError)); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newState = tmp$ret$1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var entity = newState.qu0(); var serializer = Companion_getInstance_14().o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_5 = this; var tmp_6 = this.mqo(); tmp_5.cqu_1 = launch(tmp_6, VOID, VOID, ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).bua = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.stz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.du0_1.au2_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.du0_1.au2_1.qk8_1; tmp = tmp1_safe_receiver.bk9(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nkm(VOID, VOID, pictureUri)); } var nextValue = prevValue.gu0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.du0_1.lu2(tmp)); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newState = tmp$ret$1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var entity = newState.qu0(); var serializer = Companion_getInstance_14().o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_0 = this; var tmp_1 = this.mqo(); tmp_0.cqu_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentEditViewModel$onPictureChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).cua = function () { var tmp = serializer_0(StringCompanionObject_instance); Companion_getInstance_126(); var tmp0_safe_receiver = this.stz_1.t2().qu0(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g7u_1; this.dqp('CourseGroups', 'groupSet', null, tmp, mapOf_0(to('clazzUid', (tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs).toString()))); }; protoOf(ClazzAssignmentEditViewModel).dua = function () { var tmp0_safe_receiver = this.stz_1.t2().qu0(); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; var tmp; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp1_elvis_lhs; } var assignmentVal = tmp; var tmp_0 = ListSerializer(Companion_instance_18.o4r()); var tmp_1 = this.n4r(); var tmp_2 = ListSerializer(Companion_instance_18.o4r()); var tmp2_safe_receiver = this.stz_1.t2().qu0(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.yk8_1; var tmp_3 = to('allocations', tmp_1.s45(tmp_2, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs)); var tmp_4 = to('groupSetUid', assignmentVal.r7t_1.toString()); Companion_getInstance_126(); var tmp_5 = to('clazzUid', assignmentVal.g7u_1.toString()); var tmp_6 = to('numReviewers', assignmentVal.h7u_1.toString()); Companion_getInstance_117(); this.dqp('PeerReviewerAllocationEdit', 'peerAllocationsResult', null, tmp_0, mapOf([tmp_3, tmp_4, tmp_5, tmp_6, to('clazzAssignmentUid', assignmentVal.o7t_1.toString())])); }; protoOf(ClazzAssignmentEditViewModel).ysb = function () { if (!this.stz_1.t2().wtz_1) return Unit_instance; var tmp = ClazzAssignmentEditViewModel$onClickSave$lambda(this); this.iqv(tmp, ClazzAssignmentEditViewModel$onClickSave$slambda_0(this, null)); }; function Companion_134() { Companion_instance_182 = this; this.ou6_1 = listOf([CompletionCriteria_ASSIGNMENT_SUBMITTED_getInstance(), CompletionCriteria_ASSIGNMENT_GRADED_getInstance()]); } protoOf(Companion_134).o4r = function () { return $serializer_getInstance_73(); }; var Companion_instance_182; function Companion_getInstance_152() { if (Companion_instance_182 == null) new Companion_134(); return Companion_instance_182; } function $serializer_61() { $serializer_instance_61 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditUiState', this, 10); tmp0_serialDesc.u4f('fieldsEnabled', true); tmp0_serialDesc.u4f('markingTypeEnabled', true); tmp0_serialDesc.u4f('groupSetEnabled', true); tmp0_serialDesc.u4f('reviewerCountError', true); tmp0_serialDesc.u4f('courseTerminology', true); tmp0_serialDesc.u4f('submissionRequiredError', true); tmp0_serialDesc.u4f('sizeLimitError', true); tmp0_serialDesc.u4f('courseBlockEditUiState', true); tmp0_serialDesc.u4f('groupSubmissionOn', true); tmp0_serialDesc.u4f('groupSetError', true); this.eua_1 = tmp0_serialDesc; } protoOf($serializer_61).r44 = function () { return this.eua_1; }; protoOf($serializer_61).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_10()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), $serializer_getInstance_75(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_61).t44 = function (decoder) { var tmp0_desc = this.eua_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_local2 = false; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = false; var tmp13_local9 = null; var tmp14_input = decoder.j48(tmp0_desc); if (tmp14_input.y48()) { tmp4_local0 = tmp14_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.l48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.l48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.x48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.v48(tmp0_desc, 7, $serializer_getInstance_75(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.l48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.x48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.l48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.l48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.x48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.x48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.v48(tmp0_desc, 7, $serializer_getInstance_75(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.l48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.x48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.k48(tmp0_desc); return ClazzAssignmentEditUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null); }; protoOf($serializer_61).fua = function (encoder, value) { var tmp0_desc = this.eua_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.wtz_1 === false)) { tmp1_output.p49(tmp0_desc, 0, value.wtz_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.xtz_1 === true)) { tmp1_output.p49(tmp0_desc, 1, value.xtz_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.ytz_1 === true)) { tmp1_output.p49(tmp0_desc, 2, value.ytz_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.ztz_1 == null)) { tmp1_output.b4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ztz_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.au0_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, $serializer_getInstance_10(), value.au0_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.bu0_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, StringSerializer_getInstance(), value.bu0_1); } if (tmp1_output.f4a(tmp0_desc, 6) ? true : !(value.cu0_1 == null)) { tmp1_output.b4a(tmp0_desc, 6, StringSerializer_getInstance(), value.cu0_1); } if (tmp1_output.f4a(tmp0_desc, 7) ? true : !value.du0_1.equals(new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_152().ou6_1))) { tmp1_output.z49(tmp0_desc, 7, $serializer_getInstance_75(), value.du0_1); } if (tmp1_output.f4a(tmp0_desc, 8) ? true : !(value.eu0_1 === false)) { tmp1_output.p49(tmp0_desc, 8, value.eu0_1); } if (tmp1_output.f4a(tmp0_desc, 9) ? true : !(value.fu0_1 == null)) { tmp1_output.b4a(tmp0_desc, 9, StringSerializer_getInstance(), value.fu0_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_61).s44 = function (encoder, value) { return this.fua(encoder, value instanceof ClazzAssignmentEditUiState ? value : THROW_CCE()); }; var $serializer_instance_61; function $serializer_getInstance_73() { if ($serializer_instance_61 == null) new $serializer_61(); return $serializer_instance_61; } function ClazzAssignmentEditUiState_init_$Init$(seen1, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_73().eua_1); } if (0 === (seen1 & 1)) $this.wtz_1 = false; else $this.wtz_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.xtz_1 = true; else $this.xtz_1 = markingTypeEnabled; if (0 === (seen1 & 4)) $this.ytz_1 = true; else $this.ytz_1 = groupSetEnabled; if (0 === (seen1 & 8)) $this.ztz_1 = null; else $this.ztz_1 = reviewerCountError; if (0 === (seen1 & 16)) $this.au0_1 = null; else $this.au0_1 = courseTerminology; if (0 === (seen1 & 32)) $this.bu0_1 = null; else $this.bu0_1 = submissionRequiredError; if (0 === (seen1 & 64)) $this.cu0_1 = null; else $this.cu0_1 = sizeLimitError; if (0 === (seen1 & 128)) $this.du0_1 = new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_152().ou6_1); else $this.du0_1 = courseBlockEditUiState; if (0 === (seen1 & 256)) $this.eu0_1 = false; else $this.eu0_1 = groupSubmissionOn; if (0 === (seen1 & 512)) $this.fu0_1 = null; else $this.fu0_1 = groupSetError; return $this; } function ClazzAssignmentEditUiState_init_$Create$(seen1, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, serializationConstructorMarker) { return ClazzAssignmentEditUiState_init_$Init$(seen1, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignmentEditUiState))); } function ClazzAssignmentEditUiState(fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError) { Companion_getInstance_152(); fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; markingTypeEnabled = markingTypeEnabled === VOID ? true : markingTypeEnabled; groupSetEnabled = groupSetEnabled === VOID ? true : groupSetEnabled; reviewerCountError = reviewerCountError === VOID ? null : reviewerCountError; courseTerminology = courseTerminology === VOID ? null : courseTerminology; submissionRequiredError = submissionRequiredError === VOID ? null : submissionRequiredError; sizeLimitError = sizeLimitError === VOID ? null : sizeLimitError; courseBlockEditUiState = courseBlockEditUiState === VOID ? new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_152().ou6_1) : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? false : groupSubmissionOn; groupSetError = groupSetError === VOID ? null : groupSetError; this.wtz_1 = fieldsEnabled; this.xtz_1 = markingTypeEnabled; this.ytz_1 = groupSetEnabled; this.ztz_1 = reviewerCountError; this.au0_1 = courseTerminology; this.bu0_1 = submissionRequiredError; this.cu0_1 = sizeLimitError; this.du0_1 = courseBlockEditUiState; this.eu0_1 = groupSubmissionOn; this.fu0_1 = groupSetError; } protoOf(ClazzAssignmentEditUiState).qu0 = function () { return this.du0_1.au2_1; }; protoOf(ClazzAssignmentEditUiState).gua = function () { var tmp0_safe_receiver = this.qu0(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b7u_1; return tmp === 2; }; protoOf(ClazzAssignmentEditUiState).hua = function () { var tmp0_safe_receiver = this.qu0(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c7u_1) === true; }; protoOf(ClazzAssignmentEditUiState).iua = function () { var tmp0_safe_receiver = this.qu0(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wk8_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w7t_1) === true; }; protoOf(ClazzAssignmentEditUiState).lu7 = function (fieldsEnabled) { return this.gu0(fieldsEnabled, VOID, VOID, VOID, VOID, VOID, VOID, this.du0_1.lu2(VOID, VOID, VOID, fieldsEnabled)); }; protoOf(ClazzAssignmentEditUiState).jua = function (fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError) { return new ClazzAssignmentEditUiState(fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError); }; protoOf(ClazzAssignmentEditUiState).gu0 = function (fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.wtz_1 : fieldsEnabled; markingTypeEnabled = markingTypeEnabled === VOID ? this.xtz_1 : markingTypeEnabled; groupSetEnabled = groupSetEnabled === VOID ? this.ytz_1 : groupSetEnabled; reviewerCountError = reviewerCountError === VOID ? this.ztz_1 : reviewerCountError; courseTerminology = courseTerminology === VOID ? this.au0_1 : courseTerminology; submissionRequiredError = submissionRequiredError === VOID ? this.bu0_1 : submissionRequiredError; sizeLimitError = sizeLimitError === VOID ? this.cu0_1 : sizeLimitError; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.du0_1 : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? this.eu0_1 : groupSubmissionOn; groupSetError = groupSetError === VOID ? this.fu0_1 : groupSetError; return $super === VOID ? this.jua(fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError) : $super.jua.call(this, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError); }; protoOf(ClazzAssignmentEditUiState).toString = function () { return 'ClazzAssignmentEditUiState(fieldsEnabled=' + this.wtz_1 + ', markingTypeEnabled=' + this.xtz_1 + ', groupSetEnabled=' + this.ytz_1 + ', reviewerCountError=' + this.ztz_1 + ', courseTerminology=' + this.au0_1 + ', submissionRequiredError=' + this.bu0_1 + ', sizeLimitError=' + this.cu0_1 + ', courseBlockEditUiState=' + this.du0_1 + ', groupSubmissionOn=' + this.eu0_1 + ', groupSetError=' + this.fu0_1 + ')'; }; protoOf(ClazzAssignmentEditUiState).hashCode = function () { var result = getBooleanHashCode(this.wtz_1); result = imul(result, 31) + getBooleanHashCode(this.xtz_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ytz_1) | 0; result = imul(result, 31) + (this.ztz_1 == null ? 0 : getStringHashCode(this.ztz_1)) | 0; result = imul(result, 31) + (this.au0_1 == null ? 0 : hashCode(this.au0_1)) | 0; result = imul(result, 31) + (this.bu0_1 == null ? 0 : getStringHashCode(this.bu0_1)) | 0; result = imul(result, 31) + (this.cu0_1 == null ? 0 : getStringHashCode(this.cu0_1)) | 0; result = imul(result, 31) + this.du0_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.eu0_1) | 0; result = imul(result, 31) + (this.fu0_1 == null ? 0 : getStringHashCode(this.fu0_1)) | 0; return result; }; protoOf(ClazzAssignmentEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentEditUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentEditUiState ? other : THROW_CCE(); if (!(this.wtz_1 === tmp0_other_with_cast.wtz_1)) return false; if (!(this.xtz_1 === tmp0_other_with_cast.xtz_1)) return false; if (!(this.ytz_1 === tmp0_other_with_cast.ytz_1)) return false; if (!(this.ztz_1 == tmp0_other_with_cast.ztz_1)) return false; if (!equals(this.au0_1, tmp0_other_with_cast.au0_1)) return false; if (!(this.bu0_1 == tmp0_other_with_cast.bu0_1)) return false; if (!(this.cu0_1 == tmp0_other_with_cast.cu0_1)) return false; if (!this.du0_1.equals(tmp0_other_with_cast.du0_1)) return false; if (!(this.eu0_1 === tmp0_other_with_cast.eu0_1)) return false; if (!(this.fu0_1 == tmp0_other_with_cast.fu0_1)) return false; return true; }; function snackDisaptcher$factory() { return getPropertyCallableRef('snackDisaptcher', 1, KProperty1, function (receiver) { return _get_snackDisaptcher__bp310a(receiver); }, null); } function snackDisaptcher$factory_0() { return getPropertyCallableRef('snackDisaptcher', 1, KProperty1, function (receiver) { return _get_snackDisaptcher__bp310a(receiver); }, null); } function PeerReviewerAllocationEditViewModel$slambda$slambda(this$0, $savedStateHandle, $primaryKeyManager, resultContinuation) { this.sua_1 = this$0; this.tua_1 = $savedStateHandle; this.uua_1 = $primaryKeyManager; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).oub = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.oub(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 9; this.id_1 = 1; suspendResult = this.sua_1.aqp(this.tua_1, 'allocations', ListSerializer(Companion_instance_18.o4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wua_1 = suspendResult; this.id_1 = 2; suspendResult = this.vua_1.r7e().o7s(this.sua_1.puc_1, this.sua_1.suc_1, systemTimeInMillis(), this.sua_1.vqo().soj(strings_getInstance().ing_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.xua_1 = suspendResult; Napier_getInstance().j5e('Number of submitters: ' + this.xua_1.u()); var tmp_0 = this; tmp_0.yua_1 = this.xua_1; var tmp_1 = this; tmp_1.zua_1 = this.yua_1; var tmp_2 = this; tmp_2.aub_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.yua_1, 10)); this.bub_1 = this.zua_1.w(); this.id_1 = 3; continue $sm; case 3: if (!this.bub_1.f()) { this.id_1 = 8; continue $sm; } this.cub_1 = this.bub_1.e(); var tmp_3 = this; tmp_3.dub_1 = this.cub_1; this.eub_1 = new AssignmentSubmitterSummary(this.dub_1.f7x_1, this.dub_1.e7x_1); var tmp_4 = this; var tmp0_safe_receiver = this.wua_1; var tmp_5; if (tmp0_safe_receiver == null) { tmp_5 = null; } else { var destination = ArrayList_init_$Create$(); var tmp0_iterator = tmp0_safe_receiver.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.qfu_1.equals(this.dub_1.f7x_1)) { destination.i1(element); } } tmp_5 = destination; } var tmp1_elvis_lhs = tmp_5; tmp_4.fub_1 = trimToSize(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.sua_1.quc_1); var tmp_6 = this; tmp_6.gub_1 = this.sua_1.quc_1; if (this.fub_1.u() < this.gub_1) { var tmp_7 = this; tmp_7.iub_1 = until(this.fub_1.u(), this.gub_1); var tmp_8 = this; tmp_8.jub_1 = this.iub_1; var tmp_9 = this; tmp_9.kub_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.iub_1, 10)); this.lub_1 = this.jub_1.w(); this.id_1 = 4; continue $sm; } else { var tmp_10 = this; tmp_10.hub_1 = this.fub_1; this.id_1 = 7; continue $sm; } case 4: if (!this.lub_1.f()) { this.id_1 = 6; continue $sm; } this.mub_1 = this.lub_1.e(); var tmp_11 = this; tmp_11.nub_1 = this.mub_1; this.id_1 = 5; suspendResult = this.uua_1.p62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var ARGUMENT = suspendResult; var ARGUMENT_0 = new PeerReviewerAllocation(ARGUMENT, VOID, this.dub_1.f7x_1, this.sua_1.ruc_1); this.kub_1.i1(ARGUMENT_0); this.id_1 = 4; continue $sm; case 6: var ARGUMENT_1 = this.kub_1; this.hub_1 = plus(this.fub_1, ARGUMENT_1); this.id_1 = 7; continue $sm; case 7: var ARGUMENT_2 = this.hub_1; var ARGUMENT_3 = new AssignmentSubmitterAndAllocations(this.eub_1, ARGUMENT_2); this.aub_1.i1(ARGUMENT_3); this.id_1 = 3; continue $sm; case 8: return this.aub_1; case 9: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 9) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda(this.sua_1, this.tua_1, this.uua_1, completion); i.vua_1 = db; return i; }; function PeerReviewerAllocationEditViewModel$slambda$slambda_0(this$0, $savedStateHandle, $primaryKeyManager, resultContinuation) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda(this$0, $savedStateHandle, $primaryKeyManager, resultContinuation); var l = function (db, $completion) { return i.oub(db, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).bud = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.bud($completion); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).m78 = function (completion) { return new PeerReviewerAllocationEditViewModel$slambda$slambda_1(completion); }; function PeerReviewerAllocationEditViewModel$slambda$slambda_2(resultContinuation) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.bud($completion); }; l.$arity = 0; return l; } function PeerReviewerAllocationEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.nuc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel...' call var nextValue = prevValue.dud(it == null ? emptyList() : it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PeerReviewerAllocationEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_135() { this.eud_1 = 'allocations'; this.fud_1 = 'groupSetUid'; this.gud_1 = 'numReviewers'; this.hud_1 = 'PeerReviewerAllocationEdit'; } var Companion_instance_183; function Companion_getInstance_153() { return Companion_instance_183; } function PeerReviewerAllocationEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.qud_1 = this$0; this.rud_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.tud_1 = get_doorPrimaryKeyManager(this.qud_1.pqo()); this.id_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_15().o4r()); var tmp_1 = PeerReviewerAllocationEditViewModel$slambda$slambda_0(this.qud_1, this.rud_1, this.tud_1, null); var tmp_2 = PeerReviewerAllocationEditViewModel$slambda$slambda_2(null); suspendResult = this.qud_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, PeerReviewerAllocationEditViewModel$slambda$lambda(this.qud_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.qud_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.qud_1.vqo().soj(strings_getInstance().ams_1); var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, true, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, PeerReviewerAllocationEditViewModel$onClickSave$ref(this.qud_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda(this.qud_1, this.rud_1, completion); i.sud_1 = $this$launch; return i; }; function PeerReviewerAllocationEditViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new PeerReviewerAllocationEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda($allocation) { return function (it) { return it.ofu_1.equals($allocation.ofu_1); }; } function PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this$0, resultContinuation) { this.cue_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = this.cue_1.nuc_1.t2().cud_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var list = element.rkc_1; addAll(destination, list); } suspendResult = this.cue_1.muc_1.dpl(destination, this.cue_1.suc_1, this.cue_1.puc_1, this.cue_1.ruc_1, this.cue_1.quc_1, true, true, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var newAllocations = suspendResult; l$ret$1: do { var this_1 = this.cue_1.nuc_1; while (true) { var prevValue = this_1.t2(); var this_2 = prevValue.cud_1; var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator_0 = this_2.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = newAllocations.w(); while (tmp0_iterator_1.f()) { var element_0 = tmp0_iterator_1.e(); if (element_0.qfu_1.equals(item.qkc_1.s7v_1)) { destination_1.i1(element_0); } } destination_0.i1(new AssignmentSubmitterAndAllocations(item.qkc_1, destination_1)); } var nextValue = prevValue.dud(destination_0); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).w1m = function ($this$launch, completion) { var i = new PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this.cue_1, completion); i.due_1 = $this$launch; return i; }; function PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda_0(this$0, resultContinuation) { var i = new PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel(di, savedStateHandle, updatePeerReviewAllocationUseCase) { var tmp; if (updatePeerReviewAllocationUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(di).g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.e58(tmp$ret$2, null); tmp = new UpdatePeerReviewAllocationUseCase(tmp_2, tmp$ret$3); } else { tmp = updatePeerReviewAllocationUseCase; } updatePeerReviewAllocationUseCase = tmp; UstadEditViewModel.call(this, di, savedStateHandle, 'PeerReviewerAllocationEdit'); this.muc_1 = updatePeerReviewAllocationUseCase; this.nuc_1 = MutableStateFlow(new PeerReviewerAllocationEditUIState()); this.ouc_1 = asStateFlow(this.nuc_1); var tmp_5 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_5.puc_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_6 = this; var tmp0_safe_receiver_0 = savedStateHandle.ba('numReviewers'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toInt(tmp0_safe_receiver_0); tmp_6.quc_1 = tmp1_elvis_lhs_0 == null ? 1 : tmp1_elvis_lhs_0; var tmp_7 = this; Companion_getInstance_117(); var tmp0_safe_receiver_1 = savedStateHandle.ba('clazzAssignmentUid'); var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : toLong_0(tmp0_safe_receiver_1); tmp_7.ruc_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_8 = this; var tmp0_safe_receiver_2 = savedStateHandle.ba('groupSetUid'); var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : toLong_0(tmp0_safe_receiver_2); tmp_8.suc_1 = tmp1_elvis_lhs_2 == null ? new Long(0, 0) : tmp1_elvis_lhs_2; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().bnl_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.mqo(); launch(tmp_9, VOID, VOID, PeerReviewerAllocationEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(PeerReviewerAllocationEditViewModel).eue = function (allocation) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.nuc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.onAllocationChanged.' call // Inline function 'kotlin.collections.map' call var this_1 = prevValue.cud_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10)); var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.onAllocationChanged..' call var tmp; if (item.qkc_1.s7v_1.equals(allocation.qfu_1)) { tmp = item.tkc(VOID, replace_0(item.rkc_1, allocation, PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda(allocation))); } else { tmp = item; } var tmp$ret$0 = tmp; destination.i1(tmp$ret$0); } var nextValue = prevValue.dud(destination); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PeerReviewerAllocationEditViewModel).fue = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda_0(this, null)); }; protoOf(PeerReviewerAllocationEditViewModel).ysb = function () { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.flatMapTo' call var this_0 = this.nuc_1.t2().cud_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.onClickSave.' call var list = element.rkc_1; addAll(destination, list); } this.gqu(destination); }; function PeerReviewerAllocationEditUIState(submitterListWithAllocations) { submitterListWithAllocations = submitterListWithAllocations === VOID ? emptyList() : submitterListWithAllocations; this.cud_1 = submitterListWithAllocations; } protoOf(PeerReviewerAllocationEditUIState).gue = function (allocation) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.cud_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call if (element.qkc_1.s7v_1.equals(allocation.qfu_1)) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_safe_receiver = tmp$ret$1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rkc_1; var existingAllocationsForSubmitter = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator_0 = existingAllocationsForSubmitter.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call if (!element_0.ofu_1.equals(allocation.ofu_1)) { destination.i1(element_0); } } // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10)); var tmp0_iterator_1 = destination.w(); while (tmp0_iterator_1.f()) { var item = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call var tmp$ret$5 = item.pfu_1; destination_0.i1(tmp$ret$5); } var otherMarkersAlreadySelected = destination_0; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.cud_1; var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_2 = this_0.w(); while (tmp0_iterator_2.f()) { var element_1 = tmp0_iterator_2.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call if (!element_1.qkc_1.s7v_1.equals(allocation.qfu_1) ? !otherMarkersAlreadySelected.a1(element_1.qkc_1.s7v_1) : false) { destination_1.i1(element_1); } } return destination_1; }; protoOf(PeerReviewerAllocationEditUIState).dud = function (submitterListWithAllocations) { return new PeerReviewerAllocationEditUIState(submitterListWithAllocations); }; protoOf(PeerReviewerAllocationEditUIState).toString = function () { return 'PeerReviewerAllocationEditUIState(submitterListWithAllocations=' + this.cud_1 + ')'; }; protoOf(PeerReviewerAllocationEditUIState).hashCode = function () { return hashCode(this.cud_1); }; protoOf(PeerReviewerAllocationEditUIState).equals = function (other) { if (this === other) return true; if (!(other instanceof PeerReviewerAllocationEditUIState)) return false; var tmp0_other_with_cast = other instanceof PeerReviewerAllocationEditUIState ? other : THROW_CCE(); if (!equals(this.cud_1, tmp0_other_with_cast.cud_1)) return false; return true; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.pue_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).rue = function (it, $completion) { var tmp = this.sue(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.rue((p1 == null ? true : p1 instanceof CourseBlockAndAssignment) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.pue_1.puf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yug(VOID, this.que_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).sue = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this.pue_1, completion); i.que_1 = it; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.rue(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.huh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.huh_1.rqo().q7d().ocl(this.huh_1.tuf_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda_0(this.huh_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_18(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.huh_1, completion); i.iuh_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).atm = function (submissions, submissionFiles, $completion) { var tmp = this.btm(submissions, submissionFiles, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).vm = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.atm(tmp, (!(p2 == null) ? isInterface(p2, List) : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return combineWithSubmissionFiles(this.ruh_1, this.suh_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).btm = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(completion); i.ruh_1 = submissions; i.suh_1 = submissionFiles; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(resultContinuation); var l = function (submissions, submissionFiles, $completion) { return i.atm(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.bui_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).mtm = function (it, $completion) { var tmp = this.ntm(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.mtm((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.bui_1.puf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yug(VOID, VOID, VOID, this.cui_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).ntm = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this.bui_1, completion); i.cui_1 = it; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.mtm(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.lui_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).ytm = function (it, $completion) { var tmp = this.ztm(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.ytm((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.lui_1.puf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yug(VOID, VOID, VOID, VOID, VOID, this.mui_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).ztm = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this.lui_1, completion); i.mui_1 = it; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function (it, $completion) { return i.ytm(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.vui_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_assignmentSubmitterNameUseCase__ts4wyt(this.vui_1).ooo(this.vui_1.uuf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var submitterName = suspendResult; l$ret$1: do { var this_0 = this.vui_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(VOID, VOID, submitterName); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.vui_1, completion); i.wui_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.fuj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.guj_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.fuj_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.fuj_1, completion); i.guj_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.puj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.ruj_1 = this.puj_1.rqo().s7e().sc1(this.puj_1.uuf_1, this.puj_1.tuf_1); this.suj_1 = this.puj_1.rqo().t7e().dca(this.puj_1.uuf_1, this.puj_1.tuf_1); this.id_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.ruj_1, this.suj_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this.puj_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_18(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this.puj_1, completion); i.quj_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.buk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.buk_1.rqo().u7e().rbv(this.buk_1.uuf_1, this.buk_1.tuf_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_6(this.buk_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_18(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this.buk_1, completion); i.cuk_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda(this$0, $this_launch, resultContinuation) { this.luk_1 = this$0; this.muk_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).ouk = function (permissionPair, $completion) { var tmp = this.puk(permissionPair, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.ouk(p1 instanceof AssignmentPermissionAndActiveUserSubmitterUid ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; if (this.nuk_1.rdo_1) { l$ret$1: do { var this_0 = this.luk_1.puf_1; while (true) { var prevValue = this_0.t2(); var tmp0_privateCommentsList = this.luk_1.wuf_1; var tmp1_activeUserPersonUid = this.luk_1.nqo(); var tmp2_activeUserSubmitterId = this.nuk_1.tdo_1; var tmp_0; if (this.nuk_1.qdo_1) { var this_1 = new CourseAssignmentMark(); this_1.mbw_1 = -1.0; tmp_0 = this_1; } else { tmp_0 = null; } var tmp3_draftMark = tmp_0; var tmp4_showModerateOptions = this.nuk_1.sdo_1; var nextValue = prevValue.yug(VOID, VOID, VOID, VOID, VOID, VOID, tmp3_draftMark, VOID, VOID, VOID, VOID, VOID, tmp0_privateCommentsList, true, tmp1_activeUserPersonUid, tmp2_activeUserSubmitterId, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_showModerateOptions); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.muk_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.luk_1, null)); launch(this.muk_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.luk_1, null)); launch(this.muk_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_4(this.luk_1, null)); launch(this.muk_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_6(this.luk_1, null)); } else { l$ret$3: do { var this_2 = this.luk_1.puf_1; while (true) { var prevValue_0 = this_2.t2(); var tmp0_submissionList = emptyList(); var tmp1_marks = emptyList(); var nextValue_0 = prevValue_0.yug(VOID, null, VOID, tmp0_submissionList, VOID, tmp1_marks, VOID, VOID, VOID, VOID, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$lambda, false, VOID, new Long(0, 0)); if (this_2.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).puk = function (permissionPair, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda(this.luk_1, this.muk_1, completion); i.nuk_1 = permissionPair; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda_0(this$0, $this_launch, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda(this$0, $this_launch, resultContinuation); var l = function (permissionPair, $completion) { return i.ouk(permissionPair, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.yuk_1 = $permissionFlow; this.zuk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.yuk_1); suspendResult = collectLatest(tmp_0, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda_0(this.zuk_1, this.aul_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda(this.yuk_1, this.zuk_1, completion); i.aul_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda_0($permissionFlow, this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda($this_launch, $permissionFlow, this$0, resultContinuation) { this.jul_1 = $this_launch; this.kul_1 = $permissionFlow; this.lul_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.jul_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda_0(this.kul_1, this.lul_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).m78 = function (completion) { return new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda(this.jul_1, this.kul_1, this.lul_1, completion); }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda_0($this_launch, $permissionFlow, this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda($this_launch, $permissionFlow, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.puf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.yug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_assignmentSubmitterNameUseCase__ts4wyt($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xuf_1; assignmentSubmitterNameUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zuf_1; openBlobUiUseCase$factory_2(); return this_0.t2(); } function _get_submitMarkUseCase__y8b5kx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.aug_1; submitMarkUseCase$factory_0(); return this_0.t2(); } function openSubmissionFileAsBlob_0($this, file, intent) { var tmp0_elvis_lhs = file.xcb_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.yuf_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.nr(); } var tmp_0 = $this; var tmp_1 = $this.mqo(); tmp_0.yuf_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_136() { this.mul_1 = 'assignmentUid'; this.nul_1 = 'submitterUid'; this.oul_1 = 'CourseAssignmentSubmitter'; } var Companion_instance_184; function Companion_getInstance_154() { return Companion_instance_184; } function sam$kotlinx_coroutines_flow_FlowCollector$0_18(function_0) { this.pul_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_18).u1d = function (value, $completion) { return this.pul_1(value, $completion); }; function ClazzAssignmentSubmitterDetailViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().v7e().qac(this$0.uuf_1, this$0.tuf_1, false); }; } function ClazzAssignmentSubmitterDetailViewModel$slambda(this$0, $permissionFlow, resultContinuation) { this.yul_1 = this$0; this.zul_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.yul_1.puf_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda_0(this.aum_1, this.zul_1, this.yul_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda(this.yul_1, this.zul_1, completion); i.aum_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$slambda_0(this$0, $permissionFlow, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda(this$0, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda(this$0, resultContinuation) { this.jum_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 4; this.id_1 = 2; var tmp_0 = this.jum_1.rqo().v7e(); var this_0 = new Comments(); this_0.lad_1 = this.jum_1.uuf_1; this_0.mad_1 = this.jum_1.puf_1.t2().qug_1; this_0.kad_1 = this.jum_1.nqo(); this_0.iad_1 = this.jum_1.tuf_1; this_0.had_1 = this.jum_1.ruf_1.t2(); this_0.pad_1 = systemTimeInMillis(); suspendResult = tmp_0.nac(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.jum_1.ruf_1.y1k(''); tmp_1.lum_1 = Unit_instance; this.jd_1 = 5; this.id_1 = 3; continue $sm; case 3: this.jd_1 = 5; this.jum_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; case 4: this.jd_1 = 5; var t = this.ld_1; this.jum_1.xqo(Companion_getInstance_98().pq7_1); throw t; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda(this.jum_1, completion); i.kum_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda_0(this$0, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda(this$0, $assignment, $draftMark, $submissions, $courseBlock, resultContinuation) { this.uum_1 = this$0; this.vum_1 = $assignment; this.wum_1 = $draftMark; this.xum_1 = $submissions; this.yum_1 = $courseBlock; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 4; this.jd_1 = 3; this.id_1 = 2; var tmp_0 = _get_submitMarkUseCase__y8b5kx(this.uum_1); var tmp_1 = this.uum_1.lqo().aoa().unu_1; var this_0 = this.xum_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); destination.i1(item.gkb_1); } suspendResult = tmp_0.xom(tmp_1, this.vum_1, this.uum_1.vuf_1, this.uum_1.uuf_1, this.wum_1, destination, this.yum_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_2 = this; l$ret$1: do { var this_1 = this.uum_1.puf_1; while (true) { var prevValue = this_1.t2(); var this_2 = new CourseAssignmentMark(); this_2.mbw_1 = -1.0; var nextValue = prevValue.yug(VOID, VOID, VOID, VOID, VOID, VOID, this_2); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); tmp_2.aun_1 = Unit_instance; this.jd_1 = 5; this.id_1 = 6; continue $sm; case 3: this.jd_1 = 4; var tmp_3 = this.ld_1; if (tmp_3 instanceof Exception) { var e = this.ld_1; var tmp_4 = this; this.uum_1.tqo().wq7(new Snack('Error: ' + e.message)); Napier_getInstance().n5e('Exception submitting mark:', e); tmp_4.aun_1 = Unit_instance; this.jd_1 = 5; this.id_1 = 6; continue $sm; } else { throw this.ld_1; } case 4: this.jd_1 = 5; var t = this.ld_1; l$ret$5: do { var this_3 = this.uum_1.puf_1; while (true) { var prevValue_0 = this_3.t2(); var nextValue_0 = prevValue_0.yug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_3.z1k(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); throw t; case 5: throw this.ld_1; case 6: this.jd_1 = 5; l$ret$7: do { var this_4 = this.uum_1.puf_1; while (true) { var prevValue_1 = this_4.t2(); var nextValue_1 = prevValue_1.yug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_4.z1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 5) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda(this.uum_1, this.vum_1, this.wum_1, this.xum_1, this.yum_1, completion); i.zum_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda_0(this$0, $assignment, $draftMark, $submissions, $courseBlock, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda(this$0, $assignment, $draftMark, $submissions, $courseBlock, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation) { this.jun_1 = this$0; this.kun_1 = $submissionFile; this.lun_1 = $intent; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.nun_1 = _get_openBlobUiUseCase__fzusqz_0(this.jun_1); if (this.nun_1 == null) { this.oun_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var tmp_0 = asBlobOpenItem(this.kun_1); suspendResult = this.nun_1.uop(tmp_0, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda$lambda(this.jun_1), this.lun_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.oun_1 = Unit_instance; this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda(this.jun_1, this.kun_1, this.lun_1, completion); i.mun_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda_0(this$0, $submissionFile, $intent, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation) { this.xun_1 = this$0; this.yun_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.xun_1.rqo().v7e().oac(this.yun_1.gad_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xun_1.tqo().wq7(new Snack(this.xun_1.vqo().soj(strings_getInstance().smj_1))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).w1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda(this.xun_1, this.yun_1, completion); i.zun_1 = $this$launch; return i; }; function ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda_0(this$0, $comments, resultContinuation) { var i = new ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignmentSubmitter'); this.puf_1 = MutableStateFlow(new ClazzAssignmentSubmitterDetailUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.vqo().cq6())); this.quf_1 = asStateFlow(this.puf_1); this.ruf_1 = MutableStateFlow(''); this.suf_1 = asStateFlow(this.ruf_1); var tmp = this; var tmp0_safe_receiver = savedStateHandle.ba('assignmentUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_0; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No assignmentUid'); } else { tmp_0 = tmp1_elvis_lhs; } tmp.tuf_1 = tmp_0; var tmp_1 = this; var tmp0_safe_receiver_0 = savedStateHandle.ba('submitterUid'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); var tmp_2; if (tmp1_elvis_lhs_0 == null) { throw IllegalArgumentException_init_$Create$('No submitter uid'); } else { tmp_2 = tmp1_elvis_lhs_0; } tmp_1.uuf_1 = tmp_2; var tmp_3 = this; Companion_getInstance_126(); var tmp0_safe_receiver_1 = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : toLong_0(tmp0_safe_receiver_1); var tmp_4; if (tmp1_elvis_lhs_1 == null) { throw IllegalArgumentException_init_$Create$('No clazzUid'); } else { tmp_4 = tmp1_elvis_lhs_1; } tmp_3.vuf_1 = tmp_4; var tmp_5 = this; tmp_5.wuf_1 = ClazzAssignmentSubmitterDetailViewModel$privateCommentsPagingSourceFactory$lambda(this); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().roa(); var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_7 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp$ret$1 = tmp_7.i57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(GetAssignmentSubmitterNameUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); tmp_6.xuf_1 = Instance(this_0, tmp$ret$3, null).b5d(this, assignmentSubmitterNameUseCase$factory()); this.yuf_1 = null; var tmp_10 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_1 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_10.zuf_1 = InstanceOrNull(this_1, tmp$ret$5, null).b5d(this, openBlobUiUseCase$factory_1()); var tmp_12 = this; // Inline function 'org.kodein.di.instance' call var this_2 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(SubmitMarkUseCase), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_12.aug_1 = Instance(this_2, tmp$ret$7, null).b5d(this, submitMarkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.puf_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.' call var tmp_14 = this.lqo().aoa().unu_1.ekr(); var tmp0_safe_receiver_2 = this.lqo().aoa().wnu_1; var nextValue = prevValue.yug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_14, tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.i97_1); if (this_3.z1k(prevValue, nextValue)) { break $l$block; } } } var permissionFlow = this.rqo().p7f().ldk(this.nqo(), this.tuf_1, this.vuf_1, this.uuf_1); var tmp_15 = this.mqo(); launch(tmp_15, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzAssignmentSubmitterDetailViewModel).auo = function (text) { this.ruf_1.y1k(text); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).buo = function () { if (this.yqo().equals(Companion_getInstance_98().oq7_1)) return Unit_instance; this.xqo(Companion_getInstance_98().oq7_1); var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).cuo = function (draftMark) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.puf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onChangeDraftMark.' call var tmp; var tmp0_safe_receiver = prevValue.hug_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mbw_1; if (tmp_0 == (draftMark == null ? null : draftMark.mbw_1)) { tmp = prevValue.bug_1; } else { tmp = null; } var tmp2_submitMarkError = tmp; var nextValue = prevValue.yug(tmp2_submitMarkError, VOID, VOID, VOID, VOID, VOID, draftMark); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).duo = function () { if (!this.puf_1.t2().euo()) return Unit_instance; var tmp0_elvis_lhs = this.puf_1.t2().hug_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var draftMark = tmp; var submissions = this.puf_1.t2().eug_1; var tmp1_elvis_lhs = this.puf_1.t2().cug_1; var tmp_0; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp1_elvis_lhs; } var block = tmp_0; var tmp2_elvis_lhs = block.vco_1; var tmp_1; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp2_elvis_lhs; } var courseBlock = tmp_1; var tmp3_elvis_lhs = block.wco_1; var tmp_2; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp3_elvis_lhs; } var assignment = tmp_2; if (draftMark.mbw_1 === -1.0) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.puf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue = prevValue.yug(this.vqo().soj(strings_getInstance().cmo_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } else { if (draftMark.mbw_1 < 0.0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.puf_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue_0 = prevValue_0.yug(this.vqo().soj(strings_getInstance().hnh_1)); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } else { var tmp_3 = draftMark.mbw_1; var tmp4_elvis_lhs = courseBlock.f7y_1; if (tmp_3 > (tmp4_elvis_lhs == null ? 0.0 : tmp4_elvis_lhs)) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.puf_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue_1 = prevValue_1.yug(this.vqo().soj(strings_getInstance().fnm_1)); if (this_2.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } return Unit_instance; } } } $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.puf_1; while (true) { var prevValue_2 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue_2 = prevValue_2.yug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.z1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_4 = this.mqo(); launch(tmp_4, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda_0(this, assignment, draftMark, submissions, courseBlock, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).fuo = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.puf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickGradeFilterChip.' call var nextValue = prevValue.yug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.kq8_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).otx = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.puf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.yug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.vug_1, submission.lc2_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).rtx = function (file) { openSubmissionFileAsBlob_0(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).stx = function (comments) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq_0($this) { return latestUniqueMarksByMarker($this.gug_1); } function sam$kotlin_Comparator$0_1(function_0) { this.guo_1 = function_0; } protoOf(sam$kotlin_Comparator$0_1).pa = function (a, b) { return this.guo_1(a, b); }; protoOf(sam$kotlin_Comparator$0_1).compare = function (a, b) { return this.pa(a, b); }; function ClazzAssignmentSubmitterDetailUiState$_init_$lambda_l9iher() { return new EmptyPagingSource(); } function ClazzAssignmentSubmitterDetailUiState$_get_visibleMarks_$lambda_u07plk(a, b) { // Inline function 'kotlin.comparisons.compareValuesBy' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailUiState..' call var tmp0_safe_receiver = b.sbw_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pbw_1; var tmp = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailUiState..' call var tmp0_safe_receiver_0 = a.sbw_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.pbw_1; var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; return compareValues(tmp, tmp$ret$1); } function ClazzAssignmentSubmitterDetailUiState(submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions) { submitMarkError = submitMarkError === VOID ? null : submitMarkError; block = block === VOID ? null : block; gradeFilterChips = gradeFilterChips === VOID ? emptyList() : gradeFilterChips; submissionList = submissionList === VOID ? emptyList() : submissionList; submissionAttachments = submissionAttachments === VOID ? emptyList() : submissionAttachments; marks = marks === VOID ? emptyList() : marks; draftMark = draftMark === VOID ? null : draftMark; markSubmissionInProgress = markSubmissionInProgress === VOID ? false : markSubmissionInProgress; markNextStudentVisible = markNextStudentVisible === VOID ? true : markNextStudentVisible; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; var tmp; if (markListSelectedChipId === VOID) { tmp = 1; } else { tmp = markListSelectedChipId; } markListSelectedChipId = tmp; var tmp_0; if (markListFilterOptions === VOID) { var tmp_1 = strings_getInstance().qnl_1; var tmp_2 = new MessageIdOption2(tmp_1, 1); var tmp_3 = strings_getInstance().gn0_1; tmp_0 = listOf([tmp_2, new MessageIdOption2(tmp_3, 0)]); } else { tmp_0 = markListFilterOptions; } markListFilterOptions = tmp_0; var tmp_4; if (privateCommentsList === VOID) { tmp_4 = ClazzAssignmentSubmitterDetailUiState$_init_$lambda_l9iher; } else { tmp_4 = privateCommentsList; } privateCommentsList = tmp_4; newPrivateCommentTextVisible = newPrivateCommentTextVisible === VOID ? false : newPrivateCommentTextVisible; activeUserPersonUid = activeUserPersonUid === VOID ? new Long(0, 0) : activeUserPersonUid; activeUserSubmitterId = activeUserSubmitterId === VOID ? new Long(0, 0) : activeUserSubmitterId; activeUserPersonName = activeUserPersonName === VOID ? '' : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? null : activeUserPictureUri; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? emptySet() : collapsedSubmissions; openingFileState = openingFileState === VOID ? null : openingFileState; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; this.bug_1 = submitMarkError; this.cug_1 = block; this.dug_1 = gradeFilterChips; this.eug_1 = submissionList; this.fug_1 = submissionAttachments; this.gug_1 = marks; this.hug_1 = draftMark; this.iug_1 = markSubmissionInProgress; this.jug_1 = markNextStudentVisible; this.kug_1 = fieldsEnabled; this.lug_1 = markListSelectedChipId; this.mug_1 = markListFilterOptions; this.nug_1 = privateCommentsList; this.oug_1 = newPrivateCommentTextVisible; this.pug_1 = activeUserPersonUid; this.qug_1 = activeUserSubmitterId; this.rug_1 = activeUserPersonName; this.sug_1 = activeUserPictureUri; this.tug_1 = localDateTimeNow; this.uug_1 = dayOfWeekStrings; this.vug_1 = collapsedSubmissions; this.wug_1 = openingFileState; this.xug_1 = showModerateOptions; } protoOf(ClazzAssignmentSubmitterDetailUiState).euo = function () { var tmp; if (!this.iug_1) { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailUiState..' call var it = this.cug_1; var tmp_0; if (!((it == null ? null : it.wco_1) == null)) { tmp_0 = !(it.vco_1 == null); } else { tmp_0 = false; } tmp = tmp_0; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).cty = function () { return submissionStatusFor(this.gug_1, this.eug_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).huo = function () { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailUiState..' call var latestUniqueMarks = _get_latestUniqueMarksByMarker__e0a3pq_0(this); // Inline function 'kotlin.collections.sumOf' call var sum = 0.0; var tmp0_iterator = latestUniqueMarks.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp = sum; // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailUiState...' call var tmp0_safe_receiver = element.sbw_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mbw_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver; sum = tmp + (tmp2_elvis_lhs == null ? 0.0 : tmp2_elvis_lhs); } var tmp_0 = sum; // Inline function 'kotlin.math.max' call var a = latestUniqueMarks.u(); return tmp_0 / Math.max(a, 1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).iuo = function (mark) { return new UstadCourseAssignmentMarkListItemUiState(mark, this.tug_1, this.uug_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).juo = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.gug_1; var tmp_0; if (isInterface(this_0, Collection)) { tmp_0 = this_0.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailUiState..' call var tmp0_safe_receiver = element.sbw_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jbw_1, this.qug_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().onk_1; } else { tmp = strings_getInstance().enh_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).kuo = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.gug_1; var tmp_0; if (isInterface(this_0, Collection)) { tmp_0 = this_0.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailUiState..' call var tmp0_safe_receiver = element.sbw_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jbw_1, this.qug_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().pnk_1; } else { tmp = strings_getInstance().fnh_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).hty = function () { var tmp; if (this.lug_1 === 1) { // Inline function 'kotlin.collections.sortedByDescending' call var this_0 = _get_latestUniqueMarksByMarker__e0a3pq_0(this); // Inline function 'kotlin.comparisons.compareByDescending' call var tmp_0 = ClazzAssignmentSubmitterDetailUiState$_get_visibleMarks_$lambda_u07plk; var tmp$ret$0 = new sam$kotlin_Comparator$0_1(tmp_0); tmp = sortedWith(this_0, tmp$ret$0); } else { tmp = this.gug_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).luo = function () { return hasUpdatedMarks(this.gug_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).muo = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.gug_1.c1(); }; protoOf(ClazzAssignmentSubmitterDetailUiState).nuo = function (submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions) { return new ClazzAssignmentSubmitterDetailUiState(submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions); }; protoOf(ClazzAssignmentSubmitterDetailUiState).yug = function (submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions, $super) { submitMarkError = submitMarkError === VOID ? this.bug_1 : submitMarkError; block = block === VOID ? this.cug_1 : block; gradeFilterChips = gradeFilterChips === VOID ? this.dug_1 : gradeFilterChips; submissionList = submissionList === VOID ? this.eug_1 : submissionList; submissionAttachments = submissionAttachments === VOID ? this.fug_1 : submissionAttachments; marks = marks === VOID ? this.gug_1 : marks; draftMark = draftMark === VOID ? this.hug_1 : draftMark; markSubmissionInProgress = markSubmissionInProgress === VOID ? this.iug_1 : markSubmissionInProgress; markNextStudentVisible = markNextStudentVisible === VOID ? this.jug_1 : markNextStudentVisible; fieldsEnabled = fieldsEnabled === VOID ? this.kug_1 : fieldsEnabled; markListSelectedChipId = markListSelectedChipId === VOID ? this.lug_1 : markListSelectedChipId; markListFilterOptions = markListFilterOptions === VOID ? this.mug_1 : markListFilterOptions; privateCommentsList = privateCommentsList === VOID ? this.nug_1 : privateCommentsList; newPrivateCommentTextVisible = newPrivateCommentTextVisible === VOID ? this.oug_1 : newPrivateCommentTextVisible; activeUserPersonUid = activeUserPersonUid === VOID ? this.pug_1 : activeUserPersonUid; activeUserSubmitterId = activeUserSubmitterId === VOID ? this.qug_1 : activeUserSubmitterId; activeUserPersonName = activeUserPersonName === VOID ? this.rug_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.sug_1 : activeUserPictureUri; localDateTimeNow = localDateTimeNow === VOID ? this.tug_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.uug_1 : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? this.vug_1 : collapsedSubmissions; openingFileState = openingFileState === VOID ? this.wug_1 : openingFileState; showModerateOptions = showModerateOptions === VOID ? this.xug_1 : showModerateOptions; return $super === VOID ? this.nuo(submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions) : $super.nuo.call(this, submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions); }; protoOf(ClazzAssignmentSubmitterDetailUiState).toString = function () { return 'ClazzAssignmentSubmitterDetailUiState(submitMarkError=' + this.bug_1 + ', block=' + this.cug_1 + ', gradeFilterChips=' + this.dug_1 + ', submissionList=' + this.eug_1 + ', submissionAttachments=' + this.fug_1 + ', marks=' + this.gug_1 + ', draftMark=' + this.hug_1 + ', markSubmissionInProgress=' + this.iug_1 + ', markNextStudentVisible=' + this.jug_1 + ', fieldsEnabled=' + this.kug_1 + ', markListSelectedChipId=' + this.lug_1 + ', markListFilterOptions=' + this.mug_1 + ', privateCommentsList=' + this.nug_1 + ', newPrivateCommentTextVisible=' + this.oug_1 + ', activeUserPersonUid=' + this.pug_1.toString() + ', activeUserSubmitterId=' + this.qug_1.toString() + ', activeUserPersonName=' + this.rug_1 + ', activeUserPictureUri=' + this.sug_1 + ', localDateTimeNow=' + this.tug_1 + ', dayOfWeekStrings=' + this.uug_1 + ', collapsedSubmissions=' + this.vug_1 + ', openingFileState=' + this.wug_1 + ', showModerateOptions=' + this.xug_1 + ')'; }; protoOf(ClazzAssignmentSubmitterDetailUiState).hashCode = function () { var result = this.bug_1 == null ? 0 : getStringHashCode(this.bug_1); result = imul(result, 31) + (this.cug_1 == null ? 0 : this.cug_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.dug_1) | 0; result = imul(result, 31) + hashCode(this.eug_1) | 0; result = imul(result, 31) + hashCode(this.fug_1) | 0; result = imul(result, 31) + hashCode(this.gug_1) | 0; result = imul(result, 31) + (this.hug_1 == null ? 0 : hashCode(this.hug_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.iug_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jug_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kug_1) | 0; result = imul(result, 31) + this.lug_1 | 0; result = imul(result, 31) + hashCode(this.mug_1) | 0; result = imul(result, 31) + hashCode(this.nug_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.oug_1) | 0; result = imul(result, 31) + this.pug_1.hashCode() | 0; result = imul(result, 31) + this.qug_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.rug_1) | 0; result = imul(result, 31) + (this.sug_1 == null ? 0 : getStringHashCode(this.sug_1)) | 0; result = imul(result, 31) + this.tug_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.uug_1) | 0; result = imul(result, 31) + hashCode(this.vug_1) | 0; result = imul(result, 31) + (this.wug_1 == null ? 0 : this.wug_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.xug_1) | 0; return result; }; protoOf(ClazzAssignmentSubmitterDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentSubmitterDetailUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentSubmitterDetailUiState ? other : THROW_CCE(); if (!(this.bug_1 == tmp0_other_with_cast.bug_1)) return false; if (!equals(this.cug_1, tmp0_other_with_cast.cug_1)) return false; if (!equals(this.dug_1, tmp0_other_with_cast.dug_1)) return false; if (!equals(this.eug_1, tmp0_other_with_cast.eug_1)) return false; if (!equals(this.fug_1, tmp0_other_with_cast.fug_1)) return false; if (!equals(this.gug_1, tmp0_other_with_cast.gug_1)) return false; if (!equals(this.hug_1, tmp0_other_with_cast.hug_1)) return false; if (!(this.iug_1 === tmp0_other_with_cast.iug_1)) return false; if (!(this.jug_1 === tmp0_other_with_cast.jug_1)) return false; if (!(this.kug_1 === tmp0_other_with_cast.kug_1)) return false; if (!(this.lug_1 === tmp0_other_with_cast.lug_1)) return false; if (!equals(this.mug_1, tmp0_other_with_cast.mug_1)) return false; if (!equals(this.nug_1, tmp0_other_with_cast.nug_1)) return false; if (!(this.oug_1 === tmp0_other_with_cast.oug_1)) return false; if (!this.pug_1.equals(tmp0_other_with_cast.pug_1)) return false; if (!this.qug_1.equals(tmp0_other_with_cast.qug_1)) return false; if (!(this.rug_1 === tmp0_other_with_cast.rug_1)) return false; if (!(this.sug_1 == tmp0_other_with_cast.sug_1)) return false; if (!this.tug_1.equals(tmp0_other_with_cast.tug_1)) return false; if (!equals(this.uug_1, tmp0_other_with_cast.uug_1)) return false; if (!equals(this.vug_1, tmp0_other_with_cast.vug_1)) return false; if (!equals(this.wug_1, tmp0_other_with_cast.wug_1)) return false; if (!(this.xug_1 === tmp0_other_with_cast.xug_1)) return false; return true; }; function assignmentSubmitterNameUseCase$factory() { return getPropertyCallableRef('assignmentSubmitterNameUseCase', 1, KProperty1, function (receiver) { return _get_assignmentSubmitterNameUseCase__ts4wyt(receiver); }, null); } function openBlobUiUseCase$factory_1() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz_0(receiver); }, null); } function submitMarkUseCase$factory() { return getPropertyCallableRef('submitMarkUseCase', 1, KProperty1, function (receiver) { return _get_submitMarkUseCase__y8b5kx(receiver); }, null); } function assignmentSubmitterNameUseCase$factory_0() { return getPropertyCallableRef('assignmentSubmitterNameUseCase', 1, KProperty1, function (receiver) { return _get_assignmentSubmitterNameUseCase__ts4wyt(receiver); }, null); } function openBlobUiUseCase$factory_2() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz_0(receiver); }, null); } function submitMarkUseCase$factory_0() { return getPropertyCallableRef('submitMarkUseCase', 1, KProperty1, function (receiver) { return _get_submitMarkUseCase__y8b5kx(receiver); }, null); } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel......' call var nextValue = prevValue.dup(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.mup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).oup = function (nameAndTerminology, $completion) { var tmp = this.pup(nameAndTerminology, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.oup((p1 == null ? true : p1 instanceof ClazzNameAndTerminology) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp1_currentTerminologyStrings = this.mup_1.qqw_1.t2().aup_1; var tmp0_safe_receiver = this.nup_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v8l_1; var tmp3_json = this.mup_1.n4r(); var tmp4_systemImpl = this.mup_1.vqo(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzMemberListViewModel$slambda$slambda$slambda$slambda$lambda(this.mup_1)); l$ret$1: do { var this_0 = this.mup_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver_0 = this.nup_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.u8l_1; var nextValue = prevValue.hq7(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).pup = function (nameAndTerminology, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this.mup_1, completion); i.nup_1 = nameAndTerminology; return i; }; function ClazzMemberListViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (nameAndTerminology, $completion) { return i.oup(nameAndTerminology, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.yup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).kt9 = function (it, $completion) { var tmp = this.lt9(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.kt9(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.yup_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dup(VOID, VOID, VOID, VOID, this.zup_1.idn_1, this.zup_1.jdn_1, this.zup_1.jdn_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).lt9 = function (it, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this.yup_1, completion); i.zup_1 = it; return i; }; function ClazzMemberListViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.kt9(it, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.iuq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.iuq_1.rqo().p7d().b8d(this.iuq_1.mur_1); var tmp_1 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_0(this.iuq_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_19(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda(this.iuq_1, completion); i.juq_1 = $this$launch; return i; }; function ClazzMemberListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.zur_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.zur_1.pqo().p7f(); var tmp_1 = this.zur_1.nqo(); PermissionFlags_getInstance(); var tmp_2 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.hdk(tmp_1, this.zur_1.mur_1, tmp_2, new Long(8, 0))); var tmp_4 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_2(this.zur_1, null); suspendResult = tmp_3.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_19(tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda_1(this.zur_1, completion); i.aus_1 = $this$launch; return i; }; function ClazzMemberListViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda(this$0, $this_launch, resultContinuation) { this.jus_1 = this$0; this.kus_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.jus_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dup(VOID, VOID, VOID, this.jus_1.pur_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.kus_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_0(this.jus_1, null)); launch(this.kus_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_2(this.jus_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda).m78 = function (completion) { return new ClazzMemberListViewModel$slambda$slambda(this.jus_1, this.kus_1, completion); }; function ClazzMemberListViewModel$slambda$slambda_0(this$0, $this_launch, resultContinuation) { var i = new ClazzMemberListViewModel$slambda$slambda(this$0, $this_launch, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this$0, resultContinuation) { this.tus_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).hrj = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).ie = function (p1, $completion) { return this.hrj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.uus_1.p7d().t8c(this.tus_1.mur_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_safe_receiver = suspendResult; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p8e_1; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).enz = function (it, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this.tus_1, completion); i.uus_1 = it; return i; }; function ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.hrj(it, $completion); }; l.$arity = 1; return l; } function _get_sendClazzInvitesUseCase__utu0z8_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kur_1; sendClazzInvitesUseCase$factory_2(); return this_0.t2(); } function _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lur_1; approveOrDeclinePendingEnrolmentUseCase$factory_0(); return this_0.t2(); } function getMembersAsPagingSource($this, roleId) { var tmp0_$this = $this.rqo().u7d(); var tmp1_clazzUid = $this.mur_1; var tmp2_sortOrder = $this.qqw_1.t2().wuo_1.oqd_1; var tmp3_filter = $this.qqw_1.t2().yuo_1; var tmp4_searchText = toQueryLikeParam($this.zqn_1.t2().zq6_1.oq6_1); var tmp5_accountPersonUid = $this.nqo(); var tmp6_currentTime = systemTimeInMillis(); PermissionFlags_getInstance(); var tmp7_permission = new Long(8192, 0); return tmp0_$this.k93(tmp1_clazzUid, roleId, tmp2_sortOrder, tmp4_searchText, tmp3_filter, tmp5_accountPersonUid, tmp6_currentTime, tmp7_permission); } function Companion_137() { this.vus_1 = 'CourseMembers'; } var Companion_instance_185; function Companion_getInstance_155() { return Companion_instance_185; } function sam$kotlinx_coroutines_flow_FlowCollector$0_19(function_0) { this.wus_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_19).u1d = function (value, $completion) { return this.wus_1(value, $completion); }; function ClazzMemberListViewModel$teacherListPagingSource$lambda(this$0) { return function () { return getMembersAsPagingSource(this$0, 1001); }; } function ClazzMemberListViewModel$studentListPagingSource$lambda(this$0) { return function () { return getMembersAsPagingSource(this$0, 1000); }; } function ClazzMemberListViewModel$pendingInvitesPagingSource$lambda(this$0) { return function () { return this$0.rqo().f7g().n9m(this$0.lqo().aoa().tnu_1.yij_1, this$0.mur_1, systemTimeInMillis()); }; } function ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this$0) { return function () { var tmp0_$this = this$0.rqo().o7f(); var tmp1_clazzUid = this$0.mur_1; var tmp2_searchText = toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1); var tmp4_sortOrder = this$0.qqw_1.t2().wuo_1.oqd_1; return tmp0_$this.wex(tmp1_clazzUid, false, 1, tmp2_searchText, tmp4_sortOrder); }; } function ClazzMemberListViewModel$slambda(this$0, resultContinuation) { this.fut_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.fut_1.qqw_1, ClazzMemberListViewModel$slambda$slambda_0(this.fut_1, this.gut_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda(this.fut_1, completion); i.gut_1 = $this$launch; return i; }; function ClazzMemberListViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzMemberListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda(this$0, $enrolmentDetails, $approved, resultContinuation) { this.put_1 = this$0; this.qut_1 = $enrolmentDetails; this.rut_1 = $approved; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d(this.put_1).ip0(this.qut_1, this.rut_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this.put_1.tqo(); var tmp_1 = this.put_1.vqo(); var tmp_2 = this.rut_1 ? strings_getInstance().tnn_1 : strings_getInstance().unn_1; var tmp0_elvis_lhs = this.qut_1.pey_1; tmp_0.wq7(new Snack(tmp_1.toj(tmp_2, [tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs]))); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_3 = this.ld_1; if (tmp_3 instanceof Error) { var e = this.ld_1; var tmp_4 = this.put_1.tqo(); var tmp_5 = this.put_1.vqo().soj(strings_getInstance().xmi_1); var tmp1_elvis_lhs = e.message; tmp_4.wq7(new Snack(tmp_5 + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs))); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).w1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda(this.put_1, this.qut_1, this.rut_1, completion); i.sut_1 = $this$launch; return i; }; function ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda_0(this$0, $enrolmentDetails, $approved, resultContinuation) { var i = new ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda(this$0, $enrolmentDetails, $approved, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda(this$0, $role, resultContinuation) { this.buu_1 = this$0; this.cuu_1 = $role; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.buu_1.qqo(); var tmp_1; if (this.cuu_1 === 1000) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.euu_1 = tmp_1; if (this.euu_1 == null) { this.fuu_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = localFirstThenRepoIfNull(this.euu_1, ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda_0(this.buu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fuu_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var clazzCode = this.fuu_1; var tmp_2; if (this.cuu_1 === 1000) { tmp_2 = strings_getInstance().amm_1; } else { tmp_2 = strings_getInstance().cmz_1; } var titleStringResource = tmp_2; var tmp1_safe_receiver = this.buu_1.qqw_1.t2().aup_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jq9(titleStringResource); var title = tmp2_elvis_lhs == null ? this.buu_1.vqo().soj(titleStringResource) : tmp2_elvis_lhs; Companion_getInstance_117(); var tmp_3 = to('clazzUid', this.buu_1.mur_1.toString()); Companion_getInstance_117(); var tmp_4 = to('popUpToOnFinish', this.buu_1.wqn_1); var goToOnPersonSelectedArg = appendQueryArgs('EnrolmentEdit', mapOf([tmp_3, tmp_4, to('role', this.cuu_1.toString())])); var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_205(); this_1.s('exlcudeFromClazz', this.buu_1.mur_1.toString()); Companion_getInstance_117(); this_1.s('listMode', ListViewMode_PICKER_getInstance().uqk_1); this_1.s('goToOnPersonSelected', goToOnPersonSelectedArg); Companion_getInstance_205(); this_1.s('showAddViaContact', 'true'); Companion_getInstance_205(); this_1.s('role', this.cuu_1.toString()); Companion_getInstance_126(); this_1.s('t', title); Companion_getInstance_205(); PermissionFlags_getInstance(); this_1.s('rptsl', (new Long(2048, 0)).toString()); if (!(clazzCode == null)) { Companion_getInstance_205(); this_1.s('showAddViaInviteLink', clazzCode); } var args = this_1.f3(); Companion_getInstance_205(); this.buu_1.xqn_1.tp6('People', args); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).w1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda(this.buu_1, this.cuu_1, completion); i.duu_1 = $this$launch; return i; }; function ClazzMemberListViewModel$onClickAddNewMember$slambda_0(this$0, $role, resultContinuation) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda(this$0, $role, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickRevokeInvite$slambda(this$0, $contact, resultContinuation) { this.ouu_1 = this$0; this.puu_1 = $contact; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.ouu_1.rqo().f7g().o9m(this.puu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).w1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickRevokeInvite$slambda(this.ouu_1, this.puu_1, completion); i.quu_1 = $this$launch; return i; }; function ClazzMemberListViewModel$onClickRevokeInvite$slambda_0(this$0, $contact, resultContinuation) { var i = new ClazzMemberListViewModel$onClickRevokeInvite$slambda(this$0, $contact, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickResendInvite$slambda(this$0, $clazzInvite, resultContinuation) { this.zuu_1 = this$0; this.auv_1 = $clazzInvite; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_sendClazzInvitesUseCase__utu0z8_0(this.zuu_1).sph(new SendClazzInvitesRequest(listOf_0(this.auv_1.i9n_1), this.auv_1.g9n_1, this.auv_1.f9n_1, this.zuu_1.lqo().aoa().unu_1.g96_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zuu_1.tqo().wq7(new Snack(this.zuu_1.vqo().soj(strings_getInstance().sns_1))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).w1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickResendInvite$slambda(this.zuu_1, this.auv_1, completion); i.buv_1 = $this$launch; return i; }; function ClazzMemberListViewModel$onClickResendInvite$slambda_0(this$0, $clazzInvite, resultContinuation) { var i = new ClazzMemberListViewModel$onClickResendInvite$slambda(this$0, $clazzInvite, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel(di, savedStateHandle) { var tmp = new ClazzMemberListUiState(); UstadListViewModel.call(this, di, savedStateHandle, tmp, 'Course'); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(SendClazzInvitesUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.kur_1 = Instance(this_0, tmp$ret$0, null).b5d(this, sendClazzInvitesUseCase$factory_1()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().roa(); var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_3 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.i57(tmp$ret$2, context); var this_1 = On(this, tmp$ret$3, trigger); // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(IApproveOrDeclinePendingEnrolmentRequestUseCase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_2.lur_1 = Instance(this_1, tmp$ret$5, null).b5d(this, approveOrDeclinePendingEnrolmentUseCase$factory()); var tmp_6 = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_7; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No clazzuid'); } else { tmp_7 = tmp1_elvis_lhs; } tmp_6.mur_1 = tmp_7; var tmp_8 = this; tmp_8.nur_1 = ClazzMemberListViewModel$teacherListPagingSource$lambda(this); var tmp_9 = this; tmp_9.our_1 = ClazzMemberListViewModel$studentListPagingSource$lambda(this); var tmp_10 = this; tmp_10.pur_1 = ClazzMemberListViewModel$pendingInvitesPagingSource$lambda(this); var tmp_11 = this; tmp_11.qur_1 = ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqw_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.' call // Inline function 'kotlin.collections.associateWith' call var this_3 = values(); var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(this_3.length), 16)); // Inline function 'kotlin.collections.associateWithTo' call var inductionVariable = 0; var last = this_3.length; while (inductionVariable < last) { var element = this_3[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel..' call var tmp$ret$7 = this.vqo().soj(get_dayStringResource(element)); result.s(element, tmp$ret$7); } var nextValue = prevValue.dup(this.our_1, this.nur_1, this.qur_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, result); if (this_2.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.zqn_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.' call var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, true, VOID, VOID, VOID, this.zqx(), new ActionBarButtonUiState(false)); if (this_4.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_12 = this.mqo(); launch(tmp_12, VOID, VOID, ClazzMemberListViewModel$slambda_0(this, null)); } protoOf(ClazzMemberListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).lqx = function () { }; protoOf(ClazzMemberListViewModel).mt1 = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onClickFilterChip.' call var nextValue = prevValue.dup(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filterOption.kq8_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).cuv = function (enrolmentDetails, approved) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda_0(this, enrolmentDetails, approved, null)); }; protoOf(ClazzMemberListViewModel).duv = function (role) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickAddNewMember$slambda_0(this, role, null)); }; protoOf(ClazzMemberListViewModel).euv = function (entry) { Companion_getInstance_117(); var tmp0_safe_receiver = entry.b96_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1; var tmp = to('personUid', (tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs).toString()); Companion_getInstance_117(); this.xqn_1.tp6('CourseEnrolments', mapOf([tmp, to('clazzUid', this.mur_1.toString())])); }; protoOf(ClazzMemberListViewModel).lt1 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onSortOrderChanged.' call var nextValue = prevValue.dup(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, sortOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).fuv = function (contact) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRevokeInvite$slambda_0(this, contact, null)); }; protoOf(ClazzMemberListViewModel).guv = function (clazzInvite) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickResendInvite$slambda_0(this, clazzInvite, null)); }; function ClazzMemberListUiState$_init_$lambda_dc27oi() { return new EmptyPagingSource(); } function ClazzMemberListUiState$_init_$lambda_dc27oi_0() { return new EmptyPagingSource(); } function ClazzMemberListUiState$_init_$lambda_dc27oi_1() { return new EmptyPagingSource(); } function ClazzMemberListUiState$_init_$lambda_dc27oi_2() { return new EmptyPagingSource(); } function ClazzMemberListUiState(studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) { var tmp; if (studentList === VOID) { tmp = ClazzMemberListUiState$_init_$lambda_dc27oi; } else { tmp = studentList; } studentList = tmp; var tmp_0; if (teacherList === VOID) { tmp_0 = ClazzMemberListUiState$_init_$lambda_dc27oi_0; } else { tmp_0 = teacherList; } teacherList = tmp_0; var tmp_1; if (pendingStudentList === VOID) { tmp_1 = ClazzMemberListUiState$_init_$lambda_dc27oi_1; } else { tmp_1 = pendingStudentList; } pendingStudentList = tmp_1; var tmp_2; if (pendingInviteList === VOID) { tmp_2 = ClazzMemberListUiState$_init_$lambda_dc27oi_2; } else { tmp_2 = pendingInviteList; } pendingInviteList = tmp_2; addTeacherVisible = addTeacherVisible === VOID ? false : addTeacherVisible; addStudentVisible = addStudentVisible === VOID ? false : addStudentVisible; pendingInviteListVisible = pendingInviteListVisible === VOID ? false : pendingInviteListVisible; var tmp_3; if (sortOptions === VOID) { var tmp_4 = strings_getInstance().jmk_1; var tmp_5 = new SortOrderOption(tmp_4, 1, true); var tmp_6 = strings_getInstance().jmk_1; var tmp_7 = new SortOrderOption(tmp_6, 2, false); var tmp_8 = strings_getInstance().imk_1; var tmp_9 = new SortOrderOption(tmp_8, 3, true); var tmp_10 = strings_getInstance().imk_1; var tmp_11 = new SortOrderOption(tmp_10, 4, false); var tmp_12 = strings_getInstance().wmx_1; var tmp_13 = new SortOrderOption(tmp_12, 7, true); var tmp_14 = strings_getInstance().wmx_1; var tmp_15 = new SortOrderOption(tmp_14, 8, false); var tmp_16 = strings_getInstance().xmx_1; var tmp_17 = new SortOrderOption(tmp_16, 9, true); var tmp_18 = strings_getInstance().xmx_1; tmp_3 = listOf([tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, tmp_15, tmp_17, new SortOrderOption(tmp_18, 10, false)]); } else { tmp_3 = sortOptions; } sortOptions = tmp_3; activeSortOrderOption = activeSortOrderOption === VOID ? first_0(sortOptions) : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; var tmp_19; if (selectedChipId === VOID) { tmp_19 = 1; } else { tmp_19 = selectedChipId; } selectedChipId = tmp_19; var tmp_20; if (filterOptions === VOID) { var tmp_21 = strings_getInstance().nn0_1; tmp_20 = listOf([new MessageIdOption2(tmp_21, 1), new MessageIdOption2(strings_getInstance().gn0_1, 0)]); } else { tmp_20 = filterOptions; } filterOptions = tmp_20; terminologyStrings = terminologyStrings === VOID ? null : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.ouo_1 = studentList; this.puo_1 = teacherList; this.quo_1 = pendingStudentList; this.ruo_1 = pendingInviteList; this.suo_1 = addTeacherVisible; this.tuo_1 = addStudentVisible; this.uuo_1 = pendingInviteListVisible; this.vuo_1 = sortOptions; this.wuo_1 = activeSortOrderOption; this.xuo_1 = fieldsEnabled; this.yuo_1 = selectedChipId; this.zuo_1 = filterOptions; this.aup_1 = terminologyStrings; this.bup_1 = localDateTimeNow; this.cup_1 = dayOfWeekStrings; } protoOf(ClazzMemberListUiState).huv = function (studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) { return new ClazzMemberListUiState(studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings); }; protoOf(ClazzMemberListUiState).dup = function (studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings, $super) { studentList = studentList === VOID ? this.ouo_1 : studentList; teacherList = teacherList === VOID ? this.puo_1 : teacherList; pendingStudentList = pendingStudentList === VOID ? this.quo_1 : pendingStudentList; pendingInviteList = pendingInviteList === VOID ? this.ruo_1 : pendingInviteList; addTeacherVisible = addTeacherVisible === VOID ? this.suo_1 : addTeacherVisible; addStudentVisible = addStudentVisible === VOID ? this.tuo_1 : addStudentVisible; pendingInviteListVisible = pendingInviteListVisible === VOID ? this.uuo_1 : pendingInviteListVisible; sortOptions = sortOptions === VOID ? this.vuo_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.wuo_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.xuo_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.yuo_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.zuo_1 : filterOptions; terminologyStrings = terminologyStrings === VOID ? this.aup_1 : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? this.bup_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.cup_1 : dayOfWeekStrings; return $super === VOID ? this.huv(studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) : $super.huv.call(this, studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings); }; protoOf(ClazzMemberListUiState).toString = function () { return 'ClazzMemberListUiState(studentList=' + this.ouo_1 + ', teacherList=' + this.puo_1 + ', pendingStudentList=' + this.quo_1 + ', pendingInviteList=' + this.ruo_1 + ', addTeacherVisible=' + this.suo_1 + ', addStudentVisible=' + this.tuo_1 + ', pendingInviteListVisible=' + this.uuo_1 + ', sortOptions=' + this.vuo_1 + ', activeSortOrderOption=' + this.wuo_1 + ', fieldsEnabled=' + this.xuo_1 + ', selectedChipId=' + this.yuo_1 + ', filterOptions=' + this.zuo_1 + ', terminologyStrings=' + this.aup_1 + ', localDateTimeNow=' + this.bup_1 + ', dayOfWeekStrings=' + this.cup_1 + ')'; }; protoOf(ClazzMemberListUiState).hashCode = function () { var result = hashCode(this.ouo_1); result = imul(result, 31) + hashCode(this.puo_1) | 0; result = imul(result, 31) + hashCode(this.quo_1) | 0; result = imul(result, 31) + hashCode(this.ruo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.suo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tuo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.uuo_1) | 0; result = imul(result, 31) + hashCode(this.vuo_1) | 0; result = imul(result, 31) + this.wuo_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.xuo_1) | 0; result = imul(result, 31) + this.yuo_1 | 0; result = imul(result, 31) + hashCode(this.zuo_1) | 0; result = imul(result, 31) + (this.aup_1 == null ? 0 : this.aup_1.hashCode()) | 0; result = imul(result, 31) + this.bup_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.cup_1) | 0; return result; }; protoOf(ClazzMemberListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzMemberListUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzMemberListUiState ? other : THROW_CCE(); if (!equals(this.ouo_1, tmp0_other_with_cast.ouo_1)) return false; if (!equals(this.puo_1, tmp0_other_with_cast.puo_1)) return false; if (!equals(this.quo_1, tmp0_other_with_cast.quo_1)) return false; if (!equals(this.ruo_1, tmp0_other_with_cast.ruo_1)) return false; if (!(this.suo_1 === tmp0_other_with_cast.suo_1)) return false; if (!(this.tuo_1 === tmp0_other_with_cast.tuo_1)) return false; if (!(this.uuo_1 === tmp0_other_with_cast.uuo_1)) return false; if (!equals(this.vuo_1, tmp0_other_with_cast.vuo_1)) return false; if (!this.wuo_1.equals(tmp0_other_with_cast.wuo_1)) return false; if (!(this.xuo_1 === tmp0_other_with_cast.xuo_1)) return false; if (!(this.yuo_1 === tmp0_other_with_cast.yuo_1)) return false; if (!equals(this.zuo_1, tmp0_other_with_cast.zuo_1)) return false; if (!equals(this.aup_1, tmp0_other_with_cast.aup_1)) return false; if (!this.bup_1.equals(tmp0_other_with_cast.bup_1)) return false; if (!equals(this.cup_1, tmp0_other_with_cast.cup_1)) return false; return true; }; function sendClazzInvitesUseCase$factory_1() { return getPropertyCallableRef('sendClazzInvitesUseCase', 1, KProperty1, function (receiver) { return _get_sendClazzInvitesUseCase__utu0z8_0(receiver); }, null); } function approveOrDeclinePendingEnrolmentUseCase$factory() { return getPropertyCallableRef('approveOrDeclinePendingEnrolmentUseCase', 1, KProperty1, function (receiver) { return _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d(receiver); }, null); } function sendClazzInvitesUseCase$factory_2() { return getPropertyCallableRef('sendClazzInvitesUseCase', 1, KProperty1, function (receiver) { return _get_sendClazzInvitesUseCase__utu0z8_0(receiver); }, null); } function approveOrDeclinePendingEnrolmentUseCase$factory_0() { return getPropertyCallableRef('approveOrDeclinePendingEnrolmentUseCase', 1, KProperty1, function (receiver) { return _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d(receiver); }, null); } function ClazzEnrolmentEditViewModel$slambda$slambda(this$0, resultContinuation) { this.quv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).uuv = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.uuv(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.ruv_1.u7d(); var tmp_1; if (!this.quv_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.suv_1 = tmp_1; if (this.suv_1 == null) { this.tuv_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.suv_1.g93(this.quv_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.tuv_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.tuv_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda(this.quv_1, completion); i.ruv_1 = db; return i; }; function ClazzEnrolmentEditViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.uuv(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.duw_1 = $savedStateHandle; this.euw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).huw = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.huw($completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.fuw_1 = new ClazzEnrolmentWithLeavingReason(); var tmp_1 = this; tmp_1.guw_1 = this.fuw_1; var tmp_2 = this.guw_1; Companion_getInstance_117(); var tmp0_safe_receiver = this.duw_1.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_3; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No clazzUid for enrolment!'); } else { tmp_3 = tmp1_elvis_lhs; } tmp_2.e8i_1 = tmp_3; var tmp_4 = this.guw_1; Companion_getInstance_117(); var tmp2_safe_receiver = this.duw_1.ba('personUid'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); var tmp_5; if (tmp3_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No personuid for enrolment!'); } else { tmp_5 = tmp3_elvis_lhs; } tmp_4.d8i_1 = tmp_5; this.guw_1.f8i_1 = systemTimeInMillis(); var tmp_6 = this.guw_1; var tmp4_safe_receiver = this.duw_1.ba('role'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toInt(tmp4_safe_receiver); var tmp_7; if (tmp5_elvis_lhs == null) { tmp_7 = 1000; } else { tmp_7 = tmp5_elvis_lhs; } tmp_6.h8i_1 = tmp_7; this.id_1 = 1; suspendResult = this.euw_1.rqo().p7d().d8d(this.guw_1.e8i_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp6_elvis_lhs = suspendResult; var tmp_8; if (tmp6_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Could not find timezone for clazzUid'); } else { tmp_8 = tmp6_elvis_lhs; } var ARGUMENT = tmp_8; this.guw_1.t94_1 = ARGUMENT; return this.fuw_1; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzEnrolmentEditViewModel$slambda$slambda_1(this.duw_1, this.euw_1, completion); }; function ClazzEnrolmentEditViewModel$slambda$slambda_2($savedStateHandle, this$0, resultContinuation) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation); var l = function ($completion) { return i.huw($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.fux_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel...' call var nextValue = prevValue.pux(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEnrolmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.yux_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).auy = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.auy((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.yux_1.rqo().r7d(); var tmp0_safe_receiver = this.yux_1.fux_1.t2().iux_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e8i_1; suspendResult = tmp_0.fe7(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).w1m = function ($this$async, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda_3(this.yux_1, completion); i.zux_1 = $this$async; return i; }; function ClazzEnrolmentEditViewModel$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.auy($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function _get_enrolIntoCourseUseCase__jh2n4b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hux_1; enrolIntoCourseUseCase$factory_0(); return this_0.t2(); } function hasErrors_1(_this__u8e3s4, $this) { return (!(_this__u8e3s4.jux_1 == null) ? true : !(_this__u8e3s4.kux_1 == null)) ? true : !(_this__u8e3s4.lux_1 == null); } function Companion_138() { this.buy_1 = 'EnrolmentEdit'; this.cuy_1 = 'role'; } var Companion_instance_186; function Companion_getInstance_156() { return Companion_instance_186; } function ClazzEnrolmentEditViewModel$slambda(this$0, resultContinuation) { this.luy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.muy_1.p7f().fdk(this.luy_1.nqo(), this.luy_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda).enz = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda(this.luy_1, completion); i.muy_1 = db; return i; }; function ClazzEnrolmentEditViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzEnrolmentEditViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.vuy_1 = this$0; this.wuy_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; var tmp_0 = Companion_instance_34.o4r(); var tmp_1 = ClazzEnrolmentEditViewModel$slambda$slambda_0(this.vuy_1, null); var tmp_2 = ClazzEnrolmentEditViewModel$slambda$slambda_2(this.wuy_1, this.vuy_1, null); suspendResult = this.vuy_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEnrolmentEditViewModel$slambda$lambda(this.vuy_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; var tmp_3 = this.vuy_1.pqo().p7f(); var tmp_4 = this.vuy_1.nqo(); var tmp0_safe_receiver = this.vuy_1.fux_1.t2().iux_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e8i_1; var tmp_5 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; PermissionFlags_getInstance(); var tmp_6 = new Long(8, 0); PermissionFlags_getInstance(); suspendResult = tmp_3.idk(tmp_4, tmp_5, tmp_6, new Long(16, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.yuy_1 = suspendResult; this.zuy_1 = this.yuy_1.y6(); this.auz_1 = this.yuy_1.z6(); var tmp_7 = this; tmp_7.buz_1 = async(this.xuy_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda$slambda_4(this.vuy_1, null)); var tmp_8 = this; var this_0 = ArrayList_init_$Create$(); if (this.zuy_1) { this_0.i1(1000); } if (this.auz_1) { this_0.i1(1001); } tmp_8.cuz_1 = this_0.f3(); this.id_1 = 3; suspendResult = this.buz_1.ov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var tmp3_safe_receiver = suspendResult; var tmp_9; if (tmp3_safe_receiver == null) { tmp_9 = null; } else { tmp_9 = CourseTerminologyStrings_init_$Create$(tmp3_safe_receiver, this.vuy_1.vqo(), this.vuy_1.n4r()); } var terminologyStrings = tmp_9; l$ret$1: do { var this_1 = this.vuy_1.fux_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.pux(VOID, VOID, VOID, VOID, true, terminologyStrings, this.cuz_1); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.vuy_1.zqn_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_10 = Companion_getInstance_98().pq7_1; var tmp_11 = this.vuy_1.vqo().soj(strings_getInstance().on3_1); var nextValue_0 = prevValue_0.hq7(VOID, tmp_10, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_11, VOID, ClazzEnrolmentEditViewModel$onClickSave$ref(this.vuy_1))); if (this_2.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new ClazzEnrolmentEditViewModel$slambda_1(this.vuy_1, this.wuy_1, completion); i.xuy_1 = $this$launchIfHasPermission; return i; }; function ClazzEnrolmentEditViewModel$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new ClazzEnrolmentEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.luz_1 = $commitDelay; this.muz_1 = $entity; this.nuz_1 = $this; this.ouz_1 = $key; this.puz_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.luz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.muz_1 == null)) { this.id_1 = 2; suspendResult = this.nuz_1.bqp(this.nuz_1.vqn_1, this.ouz_1, this.puz_1, this.muz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEnrolmentEditViewModel$onEntityChanged$slambda(this.luz_1, this.muz_1, this.nuz_1, this.ouz_1, this.puz_1, completion); i.quz_1 = $this$launch; return i; }; function ClazzEnrolmentEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzEnrolmentEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$slambda(this$0, $entity, $timeZoneVal, resultContinuation) { this.zuz_1 = this$0; this.av0_1 = $entity; this.bv0_1 = $timeZoneVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; if (this.zuz_1.dqu_1.equals(new Long(0, 0))) { this.id_1 = 2; suspendResult = _get_enrolIntoCourseUseCase__jh2n4b(this.zuz_1).uoz(this.av0_1, this.bv0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; suspendResult = this.zuz_1.pqo().u7d().h93(this.av0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.id_1 = 3; continue $sm; case 2: this.id_1 = 3; continue $sm; case 3: Companion_getInstance_117(); var popUpToOnFinish = this.zuz_1.vqn_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.zuz_1.xqn_1.hqa(popUpToOnFinish, false); } else { this.zuz_1.gqu(this.av0_1); } return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEnrolmentEditViewModel$onClickSave$slambda(this.zuz_1, this.av0_1, this.bv0_1, completion); i.cv0_1 = $this$launch; return i; }; function ClazzEnrolmentEditViewModel$onClickSave$slambda_0(this$0, $entity, $timeZoneVal, resultContinuation) { var i = new ClazzEnrolmentEditViewModel$onClickSave$slambda(this$0, $entity, $timeZoneVal, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EnrolmentEdit'); this.fux_1 = MutableStateFlow(new ClazzEnrolmentEditUiState(VOID, VOID, VOID, VOID, false)); this.gux_1 = asStateFlow(this.fux_1); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(EnrolIntoCourseUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.hux_1 = Instance(this_0, tmp$ret$0, null).b5d(this, enrolIntoCourseUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.' call var nextValue = prevValue.hq7(VOID, Companion_getInstance_98().oq7_1, this.fqv(strings_getInstance().gmy_1, strings_getInstance().fmy_1)); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzEnrolmentEditViewModel$slambda_0(this, null); this.hqp(tmp_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ClazzEnrolmentEditViewModel).dv0 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fux_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.iux_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h8i_1; var tmp_0 = this.gqv(tmp, entity == null ? null : entity.h8i_1, prevValue.jux_1); var tmp2_safe_receiver = prevValue.iux_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f8i_1; var nextValue = prevValue.pux(entity, tmp_0, this.gqv(tmp_1, entity == null ? null : entity.f8i_1, prevValue.kux_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_34.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_2 = this; var tmp_3 = this.mqo(); tmp_2.cqu_1 = launch(tmp_3, VOID, VOID, ClazzEnrolmentEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEnrolmentEditViewModel).ysb = function () { if (this.yqo().equals(Companion_getInstance_98().oq7_1)) return Unit_instance; var tmp0_elvis_lhs = this.fux_1.t2().iux_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; var timeZoneVal = entity.t94_1; if (timeZoneVal == null) { this.tqo().wq7(new Snack('Error: no time zone for course')); return Unit_instance; } this.xqo(Companion_getInstance_98().oq7_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fux_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue = prevValue.pux(VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (entity.h8i_1 === 0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.fux_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue_0 = prevValue_0.pux(VOID, this.vqo().soj(strings_getInstance().cmo_1)); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } if (entity.f8i_1.c7(toLong(imul(get_MS_PER_HOUR(), 24))) <= 0) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.fux_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue_1 = prevValue_1.pux(VOID, VOID, this.vqo().soj(strings_getInstance().cmo_1)); if (this_2.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (entity.g8i_1.c7(entity.f8i_1) <= 0) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.fux_1; while (true) { var prevValue_2 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue_2 = prevValue_2.pux(VOID, VOID, VOID, this.vqo().soj(strings_getInstance().zn9_1)); if (this_3.z1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } } if (hasErrors_1(this.fux_1.t2(), this)) { $l$block_3: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.fux_1; while (true) { var prevValue_3 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue_3 = prevValue_3.pux(VOID, VOID, VOID, VOID, true); if (this_4.z1k(prevValue_3, nextValue_3)) { break $l$block_3; } } } return Unit_instance; } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, ClazzEnrolmentEditViewModel$onClickSave$slambda_0(this, entity, timeZoneVal, null)); }; function ClazzEnrolmentEditUiState(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) { clazzEnrolment = clazzEnrolment === VOID ? null : clazzEnrolment; roleSelectedError = roleSelectedError === VOID ? null : roleSelectedError; startDateError = startDateError === VOID ? null : startDateError; endDateError = endDateError === VOID ? null : endDateError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; courseTerminology = courseTerminology === VOID ? null : courseTerminology; var tmp; if (roleOptions === VOID) { tmp = listOf([1000, 1001]); } else { tmp = roleOptions; } roleOptions = tmp; this.iux_1 = clazzEnrolment; this.jux_1 = roleSelectedError; this.kux_1 = startDateError; this.lux_1 = endDateError; this.mux_1 = fieldsEnabled; this.nux_1 = courseTerminology; this.oux_1 = roleOptions; } protoOf(ClazzEnrolmentEditUiState).ev0 = function () { var tmp0_safe_receiver = this.iux_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h8i_1; return tmp === 1000; }; protoOf(ClazzEnrolmentEditUiState).fv0 = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) { return new ClazzEnrolmentEditUiState(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).pux = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions, $super) { clazzEnrolment = clazzEnrolment === VOID ? this.iux_1 : clazzEnrolment; roleSelectedError = roleSelectedError === VOID ? this.jux_1 : roleSelectedError; startDateError = startDateError === VOID ? this.kux_1 : startDateError; endDateError = endDateError === VOID ? this.lux_1 : endDateError; fieldsEnabled = fieldsEnabled === VOID ? this.mux_1 : fieldsEnabled; courseTerminology = courseTerminology === VOID ? this.nux_1 : courseTerminology; roleOptions = roleOptions === VOID ? this.oux_1 : roleOptions; return $super === VOID ? this.fv0(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) : $super.fv0.call(this, clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).toString = function () { return 'ClazzEnrolmentEditUiState(clazzEnrolment=' + this.iux_1 + ', roleSelectedError=' + this.jux_1 + ', startDateError=' + this.kux_1 + ', endDateError=' + this.lux_1 + ', fieldsEnabled=' + this.mux_1 + ', courseTerminology=' + this.nux_1 + ', roleOptions=' + this.oux_1 + ')'; }; protoOf(ClazzEnrolmentEditUiState).hashCode = function () { var result = this.iux_1 == null ? 0 : hashCode(this.iux_1); result = imul(result, 31) + (this.jux_1 == null ? 0 : getStringHashCode(this.jux_1)) | 0; result = imul(result, 31) + (this.kux_1 == null ? 0 : getStringHashCode(this.kux_1)) | 0; result = imul(result, 31) + (this.lux_1 == null ? 0 : getStringHashCode(this.lux_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.mux_1) | 0; result = imul(result, 31) + (this.nux_1 == null ? 0 : this.nux_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.oux_1) | 0; return result; }; protoOf(ClazzEnrolmentEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzEnrolmentEditUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzEnrolmentEditUiState ? other : THROW_CCE(); if (!equals(this.iux_1, tmp0_other_with_cast.iux_1)) return false; if (!(this.jux_1 == tmp0_other_with_cast.jux_1)) return false; if (!(this.kux_1 == tmp0_other_with_cast.kux_1)) return false; if (!(this.lux_1 == tmp0_other_with_cast.lux_1)) return false; if (!(this.mux_1 === tmp0_other_with_cast.mux_1)) return false; if (!equals(this.nux_1, tmp0_other_with_cast.nux_1)) return false; if (!equals(this.oux_1, tmp0_other_with_cast.oux_1)) return false; return true; }; function enrolIntoCourseUseCase$factory() { return getPropertyCallableRef('enrolIntoCourseUseCase', 1, KProperty1, function (receiver) { return _get_enrolIntoCourseUseCase__jh2n4b(receiver); }, null); } function enrolIntoCourseUseCase$factory_0() { return getPropertyCallableRef('enrolIntoCourseUseCase', 1, KProperty1, function (receiver) { return _get_enrolIntoCourseUseCase__jh2n4b(receiver); }, null); } function ClazzEnrolmentListViewModel$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.ov0_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).sro = function (value, $completion) { var tmp = this.tro(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).ie = function (p1, $completion) { return this.sro(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.qv0_1 = this.ov0_1; var tmp_1 = this; tmp_1.rv0_1 = this.pv0_1; this.id_1 = 1; var it = this.rv0_1; suspendResult = this.qv0_1.u1d(it.ado_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).tro = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$o$collect$slambda(this.ov0_1, completion); i.pv0_1 = value; return i; }; function ClazzEnrolmentListViewModel$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.sro(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$72(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.av1_1 = _this__u8e3s4; this.bv1_1 = collector; } protoOf($collectCOROUTINE$72).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.cv1_1 = this.bv1_1; this.id_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$o$collect$slambda_0(this.cv1_1, null); suspendResult = this.av1_1.dv1_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_20(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.mv1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).sro = function (it, $completion) { var tmp = this.tro(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.sro(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_container = this.nv1_1; var canEditTeacherEnrolments = tmp0_container.y6(); var canEditStudentEnrolments = tmp0_container.z6(); l$ret$1: do { var this_0 = this.mv1_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vv1(VOID, VOID, VOID, canEditTeacherEnrolments, canEditStudentEnrolments); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).tro = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this.mv1_1, completion); i.nv1_1 = it; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.sro(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ev2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).gv2 = function (it, $completion) { var tmp = this.hv2(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gv2((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.ev2_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vv1(this.fv2_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).hv2 = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this.ev2_1, completion); i.fv2_1 = it; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.gv2(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.qv2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).gqg = function (canViewMembers, $completion) { var tmp = this.hqg(canViewMembers, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1; if (this.rv2_1) { tmp_1 = this.qv2_1.rqo().u7d().f93(this.qv2_1.uv3_1, this.qv2_1.tv3_1); } else { tmp_1 = flowOf(emptyList()); } tmp_0.sv2_1 = tmp_1; this.id_1 = 1; var tmp_2 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda_0(this.qv2_1, null); suspendResult = this.sv2_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_20(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).hqg = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this.qv2_1, completion); i.rv2_1 = canViewMembers; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (canViewMembers, $completion) { return i.gqg(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.dv4_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).gqg = function (value, $completion) { var tmp = this.hqg(value, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.gv4_1 = this.dv4_1; var tmp_1 = this; tmp_1.hv4_1 = this.ev4_1; if (this.hv4_1) { this.id_1 = 3; suspendResult = this.gv4_1.u1d(this.hv4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 2: if (false) { this.id_1 = 1; continue $sm; } this.id_1 = 4; continue $sm; case 3: this.fv4_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).hqg = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda(this.dv4_1, completion); i.ev4_1 = value; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda_0($$this$unsafeFlow, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation); var l = function (value, $completion) { return i.gqg(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$73(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qv4_1 = _this__u8e3s4; this.rv4_1 = collector; } protoOf($collectCOROUTINE$73).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.sv4_1 = this.rv4_1; this.id_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.sv4_1, null); suspendResult = this.qv4_1.tv4_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_20(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function _no_name_provided__qut3iv_8($this) { this.tv4_1 = $this; } protoOf(_no_name_provided__qut3iv_8).vqf = function (collector, $completion) { var tmp = new $collectCOROUTINE$73(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_8).b1c = function (collector, $completion) { return this.vqf(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.cv5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).gqg = function (canViewMembers, $completion) { var tmp = this.hqg(canViewMembers, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (this.dv5_1) { this.id_1 = 1; suspendResult = this.cv5_1.rqo().u7d().m93(this.cv5_1.uv3_1, this.cv5_1.tv3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: var courseAndPersonName = suspendResult; var tmp_0 = courseAndPersonName == null ? null : courseAndPersonName.f9a_1; var personName = '' + tmp_0 + ' ' + (courseAndPersonName == null ? null : courseAndPersonName.g9a_1); l$ret$1: do { var this_0 = this.cv5_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vv1(VOID, personName, courseAndPersonName == null ? null : courseAndPersonName.e9a_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.cv5_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(VOID, VOID, personName); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).hqg = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this.cv5_1, completion); i.dv5_1 = canViewMembers; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (canViewMembers, $completion) { return i.gqg(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.mv5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.mv5_1.rqo().r7d().fe7(this.mv5_1.tv3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.mv5_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vv1(VOID, VOID, VOID, VOID, VOID, terminology); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda(this.mv5_1, completion); i.nv5_1 = $this$launch; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation) { this.wv5_1 = $permissionFlow; this.xv5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.wv5_1); var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_0(this.xv5_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_20(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_1(this.wv5_1, this.xv5_1, completion); i.yv5_1 = $this$launch; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda_2($permissionFlow, this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_3($canViewMembersFlow, this$0, resultContinuation) { this.hv6_1 = $canViewMembersFlow; this.iv6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.hv6_1); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_2(this.iv6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_3(this.hv6_1, this.iv6_1, completion); i.jv6_1 = $this$launch; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda_4($canViewMembersFlow, this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_3($canViewMembersFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_5($canViewMembersFlow, this$0, resultContinuation) { this.sv6_1 = $canViewMembersFlow; this.tv6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = distinctUntilChanged(this.sv6_1); var tmp_0 = new _no_name_provided__qut3iv_8(this_0); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_4(this.tv6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_5(this.sv6_1, this.tv6_1, completion); i.uv6_1 = $this$launch; return i; }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda_6($canViewMembersFlow, this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_5($canViewMembersFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_9($this) { this.dv1_1 = $this; } protoOf(_no_name_provided__qut3iv_9).vqf = function (collector, $completion) { var tmp = new $collectCOROUTINE$72(this, collector, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(_no_name_provided__qut3iv_9).b1c = function (collector, $completion) { return this.vqf(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda($this_launch, this$0, $permissionFlow, $canViewMembersFlow, resultContinuation) { this.dv7_1 = $this_launch; this.ev7_1 = this$0; this.fv7_1 = $permissionFlow; this.gv7_1 = $canViewMembersFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.dv7_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_0(this.ev7_1, null)); launch(this.dv7_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_2(this.fv7_1, this.ev7_1, null)); launch(this.dv7_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_4(this.gv7_1, this.ev7_1, null)); launch(this.dv7_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_6(this.gv7_1, this.ev7_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).m78 = function (completion) { return new ClazzEnrolmentListViewModel$slambda$slambda(this.dv7_1, this.ev7_1, this.fv7_1, this.gv7_1, completion); }; function ClazzEnrolmentListViewModel$slambda$slambda_0($this_launch, this$0, $permissionFlow, $canViewMembersFlow, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda$slambda($this_launch, this$0, $permissionFlow, $canViewMembersFlow, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_139() { this.hv7_1 = 'CourseEnrolments'; } var Companion_instance_187; function Companion_getInstance_157() { return Companion_instance_187; } function sam$kotlinx_coroutines_flow_FlowCollector$0_20(function_0) { this.iv7_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_20).u1d = function (value, $completion) { return this.iv7_1(value, $completion); }; function ClazzEnrolmentListViewModel$slambda(this$0, resultContinuation) { this.rv7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzEnrolmentListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.rv7_1.pqo().p7f(); var tmp_2 = this.rv7_1.nqo(); PermissionFlags_getInstance(); var tmp_3 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_4 = new Long(8, 0); PermissionFlags_getInstance(); tmp_0.tv7_1 = shareIn(tmp_1.jdk(tmp_2, this.rv7_1.tv3_1, tmp_3, tmp_4, new Long(8192, 0)), this.rv7_1.mqo(), Companion_getInstance_13().w1h()); var tmp_5 = this; var this_0 = this.tv7_1; tmp_5.uv7_1 = new _no_name_provided__qut3iv_9(this_0); this.id_1 = 1; suspendResult = whenSubscribed(this.rv7_1.qqw_1, ClazzEnrolmentListViewModel$slambda$slambda_0(this.sv7_1, this.rv7_1, this.tv7_1, this.uv7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda(this.rv7_1, completion); i.sv7_1 = $this$launch; return i; }; function ClazzEnrolmentListViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzEnrolmentListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new ClazzEnrolmentListUiState(), 'CourseEnrolments'); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.tv3_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_117(); var tmp0_safe_receiver_0 = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_0.uv3_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda_0(this, null)); } protoOf(ClazzEnrolmentListViewModel).vv7 = function (enrolment) { var tmp = Companion_instance_34.o4r(); Companion_getInstance_117(); this.dqp('EnrolmentEdit', '', null, tmp, mapOf_0(to('entityUid', enrolment.c8i_1.toString())), VOID, true); }; protoOf(ClazzEnrolmentListViewModel).wv7 = function () { Companion_getInstance_117(); this.xqn_1.tp6('PersonDetailView', mapOf_0(to('entityUid', this.uv3_1.toString()))); }; protoOf(ClazzEnrolmentListViewModel).kqx = function (searchText) { }; protoOf(ClazzEnrolmentListViewModel).lqx = function () { }; function ClazzEnrolmentListUiState(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) { enrolmentList = enrolmentList === VOID ? emptyList() : enrolmentList; personName = personName === VOID ? null : personName; courseName = courseName === VOID ? null : courseName; canEditTeacherEnrolments = canEditTeacherEnrolments === VOID ? false : canEditTeacherEnrolments; canEditStudentEnrolments = canEditStudentEnrolments === VOID ? false : canEditStudentEnrolments; courseTerminology = courseTerminology === VOID ? null : courseTerminology; timeZone = timeZone === VOID ? 'UTC' : timeZone; this.ov1_1 = enrolmentList; this.pv1_1 = personName; this.qv1_1 = courseName; this.rv1_1 = canEditTeacherEnrolments; this.sv1_1 = canEditStudentEnrolments; this.tv1_1 = courseTerminology; this.uv1_1 = timeZone; } protoOf(ClazzEnrolmentListUiState).xv7 = function (enrolment) { var tmp; var tmp_0 = enrolment.h8i_1; if (tmp_0 === 1001) { tmp = this.rv1_1; } else { tmp = this.rv1_1; } var tmp0_canEdit = tmp; var tmp1_timeZone = this.uv1_1; return new ClazzEnrolmentListItemUiState(tmp0_canEdit, enrolment, tmp1_timeZone); }; protoOf(ClazzEnrolmentListUiState).yv7 = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) { return new ClazzEnrolmentListUiState(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).vv1 = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone, $super) { enrolmentList = enrolmentList === VOID ? this.ov1_1 : enrolmentList; personName = personName === VOID ? this.pv1_1 : personName; courseName = courseName === VOID ? this.qv1_1 : courseName; canEditTeacherEnrolments = canEditTeacherEnrolments === VOID ? this.rv1_1 : canEditTeacherEnrolments; canEditStudentEnrolments = canEditStudentEnrolments === VOID ? this.sv1_1 : canEditStudentEnrolments; courseTerminology = courseTerminology === VOID ? this.tv1_1 : courseTerminology; timeZone = timeZone === VOID ? this.uv1_1 : timeZone; return $super === VOID ? this.yv7(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) : $super.yv7.call(this, enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).toString = function () { return 'ClazzEnrolmentListUiState(enrolmentList=' + this.ov1_1 + ', personName=' + this.pv1_1 + ', courseName=' + this.qv1_1 + ', canEditTeacherEnrolments=' + this.rv1_1 + ', canEditStudentEnrolments=' + this.sv1_1 + ', courseTerminology=' + this.tv1_1 + ', timeZone=' + this.uv1_1 + ')'; }; protoOf(ClazzEnrolmentListUiState).hashCode = function () { var result = hashCode(this.ov1_1); result = imul(result, 31) + (this.pv1_1 == null ? 0 : getStringHashCode(this.pv1_1)) | 0; result = imul(result, 31) + (this.qv1_1 == null ? 0 : getStringHashCode(this.qv1_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.rv1_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.sv1_1) | 0; result = imul(result, 31) + (this.tv1_1 == null ? 0 : hashCode(this.tv1_1)) | 0; result = imul(result, 31) + getStringHashCode(this.uv1_1) | 0; return result; }; protoOf(ClazzEnrolmentListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzEnrolmentListUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzEnrolmentListUiState ? other : THROW_CCE(); if (!equals(this.ov1_1, tmp0_other_with_cast.ov1_1)) return false; if (!(this.pv1_1 == tmp0_other_with_cast.pv1_1)) return false; if (!(this.qv1_1 == tmp0_other_with_cast.qv1_1)) return false; if (!(this.rv1_1 === tmp0_other_with_cast.rv1_1)) return false; if (!(this.sv1_1 === tmp0_other_with_cast.sv1_1)) return false; if (!equals(this.tv1_1, tmp0_other_with_cast.tv1_1)) return false; if (!(this.uv1_1 === tmp0_other_with_cast.uv1_1)) return false; return true; }; function ClazzEnrolmentListItemUiState(canEdit, enrolment, timeZone) { canEdit = canEdit === VOID ? false : canEdit; this.zv7_1 = canEdit; this.av8_1 = enrolment; this.bv8_1 = timeZone; } protoOf(ClazzEnrolmentListItemUiState).toString = function () { return 'ClazzEnrolmentListItemUiState(canEdit=' + this.zv7_1 + ', enrolment=' + this.av8_1 + ', timeZone=' + this.bv8_1 + ')'; }; protoOf(ClazzEnrolmentListItemUiState).hashCode = function () { var result = getBooleanHashCode(this.zv7_1); result = imul(result, 31) + hashCode(this.av8_1) | 0; result = imul(result, 31) + getStringHashCode(this.bv8_1) | 0; return result; }; protoOf(ClazzEnrolmentListItemUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzEnrolmentListItemUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzEnrolmentListItemUiState ? other : THROW_CCE(); if (!(this.zv7_1 === tmp0_other_with_cast.zv7_1)) return false; if (!equals(this.av8_1, tmp0_other_with_cast.av8_1)) return false; if (!(this.bv8_1 === tmp0_other_with_cast.bv8_1)) return false; return true; }; var RecordAttendanceOption_RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE_instance; var RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_instance; var RecordAttendanceOption_entriesInitialized; function RecordAttendanceOption_initEntries() { if (RecordAttendanceOption_entriesInitialized) return Unit_instance; RecordAttendanceOption_entriesInitialized = true; RecordAttendanceOption_RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE_instance = new RecordAttendanceOption('RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE', 0, strings_getInstance().ana_1); RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_instance = new RecordAttendanceOption('RECORD_ATTENDANCE_NEW_SCHEDULE', 1, strings_getInstance().bna_1); } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.kv8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).mv8 = function (clazz, $completion) { var tmp = this.nv8(clazz, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.mv8((p1 == null ? true : p1 instanceof Clazz) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.kv8_1.qqw_1; var tmp_0; var tmp_1 = this_0.t2().pv8_1; var tmp0_safe_receiver = this.lv8_1; if (!(tmp_1 === (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k8e_1))) { tmp_0 = this_0; } else { tmp_0 = null; } var tmp0_safe_receiver_0 = tmp_0; if (tmp0_safe_receiver_0 == null) null; else { l$ret$1: do { while (true) { var prevValue = tmp0_safe_receiver_0.t2(); var tmp0_safe_receiver_1 = this.lv8_1; var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.k8e_1; var nextValue = prevValue.wv8(VOID, tmp1_elvis_lhs == null ? 'UTC' : tmp1_elvis_lhs); if (tmp0_safe_receiver_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var this_1 = this.kv8_1.zqn_1; var tmp_2; var tmp_3 = this_1.t2().uq6_1; var tmp0_safe_receiver_2 = this.lv8_1; if (!(tmp_3 == (tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.t8d_1))) { tmp_2 = this_1; } else { tmp_2 = null; } var tmp1_safe_receiver = tmp_2; if (tmp1_safe_receiver == null) null; else { l$ret$3: do { while (true) { var prevValue_0 = tmp1_safe_receiver.t2(); var tmp0_safe_receiver_3 = this.lv8_1; var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.t8d_1); if (tmp1_safe_receiver.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).nv8 = function (clazz, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this.kv8_1, completion); i.lv8_1 = clazz; return i; }; function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (clazz, $completion) { return i.mv8(clazz, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda$lambda($options, this$0) { return function () { var tmp; if ($options.u() > 1) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.......' call var nextValue = prevValue.wv8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = Unit_instance; break $l$block; } } } tmp = tmp$ret$1; } else { this$0.zv9(RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_getInstance()); tmp = Unit_instance; } return Unit_instance; }; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).kva = function (hasPermission, hasLogs, $completion) { var tmp = this.lva(hasPermission, hasLogs, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).vm = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(); return this.kva(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return new PermissionAndExistingLogs(this.iva_1, this.jva_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).lva = function (hasPermission, hasLogs, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1(completion); i.iva_1 = hasPermission; i.jva_1 = hasLogs; return i; }; function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_2(resultContinuation) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1(resultContinuation); var l = function (hasPermission, hasLogs, $completion) { return i.kva(hasPermission, hasLogs, $completion); }; l.$arity = 2; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.uva_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).wva = function (it, $completion) { var tmp = this.xva(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.wva(p1 instanceof PermissionAndExistingLogs ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = ArrayList_init_$Create$(); if (this.vva_1.yva_1) { this_0.i1(RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_getInstance()); } if (this.vva_1.yva_1 ? this.vva_1.zva_1 : false) { this_0.i1(RecordAttendanceOption_RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE_getInstance()); } var options = this_0.f3(); l$ret$1: do { var this_1 = this.uva_1.qqw_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.wv8(VOID, VOID, options); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.uva_1.zqn_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_0 = !options.c1(); var tmp_1 = this.uva_1.vqo().soj(strings_getInstance().dmv_1); var tmp_2 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.hq7(new FabUiState(tmp_0, tmp_1, tmp_2, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda$lambda(options, this.uva_1))); if (this_2.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).xva = function (it, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this.uva_1, completion); i.vva_1 = it; return i; }; function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.wva(it, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ivb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ivb_1.rqo().p7d().u8c(this.ivb_1.xv9_1); var tmp_1 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_0(this.ivb_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_21(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this.ivb_1, completion); i.jvb_1 = $this$launch; return i; }; function ClazzLogListAttendanceViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.svb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.svb_1.rqo().p7f(); var tmp_2 = this.svb_1.nqo(); PermissionFlags_getInstance(); tmp_0.uvb_1 = tmp_1.gdk(tmp_2, this.svb_1.xv9_1, new Long(64, 0)); var tmp_3 = this; var tmp_4 = this.svb_1.rqo().n7e(); tmp_3.vvb_1 = tmp_4.la3(this.svb_1.xv9_1, 8); this.id_1 = 1; var tmp_5 = combine(this.uvb_1, this.vvb_1, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_6 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_4(this.svb_1, null); suspendResult = tmp_5.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_21(tmp_6), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1(this.svb_1, completion); i.tvb_1 = $this$launch; return i; }; function ClazzLogListAttendanceViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.evc_1 = $this_launch; this.fvc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.evc_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_0(this.fvc_1, null)); launch(this.evc_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_2(this.fvc_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).m78 = function (completion) { return new ClazzLogListAttendanceViewModel$slambda$slambda(this.evc_1, this.fvc_1, completion); }; function ClazzLogListAttendanceViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function RecordAttendanceOption(name, ordinal, stringResource) { Enum.call(this, name, ordinal); this.ivc_1 = stringResource; } function PermissionAndExistingLogs(hasRecordPermission, hasExistingLogs) { this.yva_1 = hasRecordPermission; this.zva_1 = hasExistingLogs; } protoOf(PermissionAndExistingLogs).toString = function () { return 'PermissionAndExistingLogs(hasRecordPermission=' + this.yva_1 + ', hasExistingLogs=' + this.zva_1 + ')'; }; protoOf(PermissionAndExistingLogs).hashCode = function () { var result = getBooleanHashCode(this.yva_1); result = imul(result, 31) + getBooleanHashCode(this.zva_1) | 0; return result; }; protoOf(PermissionAndExistingLogs).equals = function (other) { if (this === other) return true; if (!(other instanceof PermissionAndExistingLogs)) return false; var tmp0_other_with_cast = other instanceof PermissionAndExistingLogs ? other : THROW_CCE(); if (!(this.yva_1 === tmp0_other_with_cast.yva_1)) return false; if (!(this.zva_1 === tmp0_other_with_cast.zva_1)) return false; return true; }; function Companion_140() { this.jvc_1 = 'CourseLogListAttendanceView'; } var Companion_instance_188; function Companion_getInstance_158() { return Companion_instance_188; } function sam$kotlinx_coroutines_flow_FlowCollector$0_21(function_0) { this.kvc_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_21).u1d = function (value, $completion) { return this.kvc_1(value, $completion); }; function ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp = this$0.rqo().n7e(); return tmp.ja3(this$0.xv9_1, 8); }; } function ClazzLogListAttendanceViewModel$slambda(this$0, resultContinuation) { this.tvc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.tvc_1.qqw_1, ClazzLogListAttendanceViewModel$slambda$slambda_0(this.uvc_1, this.tvc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda(this.tvc_1, completion); i.uvc_1 = $this$launch; return i; }; function ClazzLogListAttendanceViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzLogListAttendanceViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda(this$0, resultContinuation) { this.dvd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.dvd_1.rqo().n7e().ma3(this.dvd_1.xv9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var mostRecentLogUid = suspendResult; var this_0 = this.dvd_1.xqn_1; var tmp_0; if (!mostRecentLogUid.equals(new Long(0, 0))) { tmp_0 = this_0; } else { tmp_0 = null; } var tmp0_safe_receiver = tmp_0; if (tmp0_safe_receiver == null) null; else { Companion_getInstance_117(); tmp0_safe_receiver.tp6('EditAttendance', mapOf_0(to('entityUid', mostRecentLogUid.toString()))); } this.dvd_1.fvd(); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda(this.dvd_1, completion); i.evd_1 = $this$launch; return i; }; function ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda_0(this$0, resultContinuation) { var i = new ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function RecordAttendanceOption_RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE_getInstance() { RecordAttendanceOption_initEntries(); return RecordAttendanceOption_RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE_instance; } function RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_getInstance() { RecordAttendanceOption_initEntries(); return RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_instance; } function ClazzLogListAttendanceViewModel(di, savedStateHandle) { var tmp = new ClazzLogListAttendanceUiState(); UstadListViewModel.call(this, di, savedStateHandle, tmp, 'Course'); var tmp_0 = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1; if (tmp1_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No clazzUid specified'); } else { tmp_1 = tmp1_elvis_lhs; } tmp_0.xv9_1 = tmp_1; var tmp_2 = this; tmp_2.yv9_1 = ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.' call var nextValue = prevValue.wv8(VOID, VOID, VOID, this.yv9_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.mqo(); launch(tmp_3, VOID, VOID, ClazzLogListAttendanceViewModel$slambda_0(this, null)); } protoOf(ClazzLogListAttendanceViewModel).fvd = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.wv8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzLogListAttendanceViewModel).kqx = function (searchText) { }; protoOf(ClazzLogListAttendanceViewModel).lqx = function () { }; protoOf(ClazzLogListAttendanceViewModel).zv9 = function (option) { var tmp0 = option.za_1; if (tmp0 === 1) { Companion_getInstance_126(); var tmp = to('timeZone', this.qqw_1.t2().pv8_1); Companion_getInstance_117(); this.dqy('ClazzLogEdit', mapOf([tmp, to('clazzUid', this.xv9_1.toString())])); this.fvd(); } else if (tmp0 === 0) { if (this.yqo().equals(Companion_getInstance_98().oq7_1)) return Unit_instance; this.xqo(Companion_getInstance_98().oq7_1); var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda_0(this, null)); } }; protoOf(ClazzLogListAttendanceViewModel).gvd = function (clazzLog) { Companion_getInstance_117(); var tmp = to('entityUid', clazzLog.ha4_1.toString()); Companion_getInstance_126(); this.xqn_1.tp6('EditAttendance', mapOf([tmp, to('clazzUid', this.xv9_1.toString())])); }; function ClazzLogListAttendanceUiState$_init_$lambda_i3ey0v() { return new EmptyPagingSource(); } function ClazzLogListAttendanceUiState(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) { graphData = graphData === VOID ? null : graphData; timeZoneId = timeZoneId === VOID ? Companion_getInstance_10().emi().fmh() : timeZoneId; recordAttendanceOptions = recordAttendanceOptions === VOID ? emptyList() : recordAttendanceOptions; var tmp; if (clazzLogsList === VOID) { tmp = ClazzLogListAttendanceUiState$_init_$lambda_i3ey0v; } else { tmp = clazzLogsList; } clazzLogsList = tmp; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; selectedChipId = selectedChipId === VOID ? 7 : selectedChipId; viewIdToNumDays = viewIdToNumDays === VOID ? listOf([new MessageIdOption2(strings_getInstance().mmv_1, 7), new MessageIdOption2(strings_getInstance().mmx_1, 30), new MessageIdOption2(strings_getInstance().ymz_1, 90)]) : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? false : createNewOptionsVisible; this.ov8_1 = graphData; this.pv8_1 = timeZoneId; this.qv8_1 = recordAttendanceOptions; this.rv8_1 = clazzLogsList; this.sv8_1 = fieldsEnabled; this.tv8_1 = selectedChipId; this.uv8_1 = viewIdToNumDays; this.vv8_1 = createNewOptionsVisible; } protoOf(ClazzLogListAttendanceUiState).hvd = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) { return new ClazzLogListAttendanceUiState(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).wv8 = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible, $super) { graphData = graphData === VOID ? this.ov8_1 : graphData; timeZoneId = timeZoneId === VOID ? this.pv8_1 : timeZoneId; recordAttendanceOptions = recordAttendanceOptions === VOID ? this.qv8_1 : recordAttendanceOptions; clazzLogsList = clazzLogsList === VOID ? this.rv8_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.sv8_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.tv8_1 : selectedChipId; viewIdToNumDays = viewIdToNumDays === VOID ? this.uv8_1 : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.vv8_1 : createNewOptionsVisible; return $super === VOID ? this.hvd(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) : $super.hvd.call(this, graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).toString = function () { return 'ClazzLogListAttendanceUiState(graphData=' + this.ov8_1 + ', timeZoneId=' + this.pv8_1 + ', recordAttendanceOptions=' + this.qv8_1 + ', clazzLogsList=' + this.rv8_1 + ', fieldsEnabled=' + this.sv8_1 + ', selectedChipId=' + this.tv8_1 + ', viewIdToNumDays=' + this.uv8_1 + ', createNewOptionsVisible=' + this.vv8_1 + ')'; }; protoOf(ClazzLogListAttendanceUiState).hashCode = function () { var result = this.ov8_1 == null ? 0 : this.ov8_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.pv8_1) | 0; result = imul(result, 31) + hashCode(this.qv8_1) | 0; result = imul(result, 31) + hashCode(this.rv8_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.sv8_1) | 0; result = imul(result, 31) + this.tv8_1 | 0; result = imul(result, 31) + hashCode(this.uv8_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vv8_1) | 0; return result; }; protoOf(ClazzLogListAttendanceUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzLogListAttendanceUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzLogListAttendanceUiState ? other : THROW_CCE(); if (!equals(this.ov8_1, tmp0_other_with_cast.ov8_1)) return false; if (!(this.pv8_1 === tmp0_other_with_cast.pv8_1)) return false; if (!equals(this.qv8_1, tmp0_other_with_cast.qv8_1)) return false; if (!equals(this.rv8_1, tmp0_other_with_cast.rv8_1)) return false; if (!(this.sv8_1 === tmp0_other_with_cast.sv8_1)) return false; if (!(this.tv8_1 === tmp0_other_with_cast.tv8_1)) return false; if (!equals(this.uv8_1, tmp0_other_with_cast.uv8_1)) return false; if (!(this.vv8_1 === tmp0_other_with_cast.vv8_1)) return false; return true; }; function ClazzLogEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda).rvd = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.rvd(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditViewModel$slambda$slambda).enz = function (it, completion) { var i = new ClazzLogEditViewModel$slambda$slambda(completion); i.qvd_1 = it; return i; }; function ClazzLogEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzLogEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.rvd(it, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.ave_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda_1).bve = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.bve($completion); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = new ClazzLog(); this_0.ia4_1 = this.ave_1.cvf_1; this_0.ja4_1 = systemTimeInMillis(); return this_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzLogEditViewModel$slambda$slambda_1(this.ave_1, completion); }; function ClazzLogEditViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ClazzLogEditViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.bve($completion); }; l.$arity = 0; return l; } function ClazzLogEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.avf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel...' call var nextValue = prevValue.hvf(VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_141() { this.ivf_1 = 'ClazzLogEdit'; } var Companion_instance_189; function Companion_getInstance_159() { return Companion_instance_189; } function ClazzLogEditViewModel$slambda(this$0, resultContinuation) { this.rvf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_35.o4r(); var tmp_1 = ClazzLogEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzLogEditViewModel$slambda$slambda_2(this.rvf_1, null); suspendResult = this.rvf_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzLogEditViewModel$slambda$lambda(this.rvf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.rvf_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.rvf_1.vqo().soj(strings_getInstance().cmk_1); var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, ClazzLogEditViewModel$onClickSave$ref(this.rvf_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.rvf_1.avf_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hvf(true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogEditViewModel$slambda(this.rvf_1, completion); i.svf_1 = $this$launch; return i; }; function ClazzLogEditViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzLogEditViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.bvg_1 = $commitDelay; this.cvg_1 = $entity; this.dvg_1 = $this; this.evg_1 = $key; this.fvg_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.bvg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.cvg_1 == null)) { this.id_1 = 2; suspendResult = this.dvg_1.bqp(this.dvg_1.vqn_1, this.evg_1, this.fvg_1, this.cvg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogEditViewModel$onEntityChanged$slambda(this.bvg_1, this.cvg_1, this.dvg_1, this.evg_1, this.fvg_1, completion); i.gvg_1 = $this$launch; return i; }; function ClazzLogEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ClazzLogEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$onClickSave$lambda($this$shallowCopy) { $this$shallowCopy.ha4_1 = generateUid($this$shallowCopy); return Unit_instance; } function ClazzLogEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ClazzLogEdit'); var tmp = this; Companion_getInstance_126(); var tmp0_elvis_lhs = savedStateHandle.ba('timeZone'); tmp.zve_1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; this.avf_1 = MutableStateFlow(new ClazzLogEditUiState(VOID, VOID, this.zve_1)); this.bvf_1 = asStateFlow(this.avf_1); var tmp_0 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.cvf_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().bna_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$slambda_0(this, null)); } protoOf(ClazzLogEditViewModel).hvg = function (clazzLog) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.avf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.evf_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ja4_1; var nextValue = prevValue.hvf(VOID, clazzLog, VOID, this.gqv(tmp, clazzLog == null ? null : clazzLog.ja4_1, prevValue.gvf_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_35.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_0 = this; var tmp_1 = this.mqo(); tmp_0.cqu_1 = launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$onEntityChanged$slambda_0(commitDelay, clazzLog, this, key, serializer, null)); }; protoOf(ClazzLogEditViewModel).ysb = function () { var tmp0_elvis_lhs = this.avf_1.t2().evf_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var clazzLog = tmp; var errorMsg = !isDateSet(clazzLog.ja4_1) ? strings_getInstance().cmo_1 : clazzLog.ja4_1.c7(systemTimeInMillis()) > 0 ? strings_getInstance().dnn_1 : null; if (!(errorMsg == null)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.avf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onClickSave.' call var nextValue = prevValue.hvf(VOID, VOID, VOID, this.vqo().soj(errorMsg)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } var clazzLogWithUid = shallowCopy_6(clazzLog, ClazzLogEditViewModel$onClickSave$lambda); var newClazzLogJson = this.n4r().s45(Companion_instance_35.o4r(), clazzLogWithUid); var tmp_0 = to('newclazzlog', newClazzLogJson); Companion_getInstance_126(); this.xqn_1.tp6('EditAttendance', mapOf([tmp_0, to('clazzUid', this.cvf_1.toString())])); }; function ClazzLogEditUiState(fieldsEnabled, clazzLog, timeZone, dateError) { fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; clazzLog = clazzLog === VOID ? null : clazzLog; timeZone = timeZone === VOID ? 'UTC' : timeZone; dateError = dateError === VOID ? null : dateError; this.dvf_1 = fieldsEnabled; this.evf_1 = clazzLog; this.fvf_1 = timeZone; this.gvf_1 = dateError; } protoOf(ClazzLogEditUiState).ivg = function (fieldsEnabled, clazzLog, timeZone, dateError) { return new ClazzLogEditUiState(fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).hvf = function (fieldsEnabled, clazzLog, timeZone, dateError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.dvf_1 : fieldsEnabled; clazzLog = clazzLog === VOID ? this.evf_1 : clazzLog; timeZone = timeZone === VOID ? this.fvf_1 : timeZone; dateError = dateError === VOID ? this.gvf_1 : dateError; return $super === VOID ? this.ivg(fieldsEnabled, clazzLog, timeZone, dateError) : $super.ivg.call(this, fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).toString = function () { return 'ClazzLogEditUiState(fieldsEnabled=' + this.dvf_1 + ', clazzLog=' + this.evf_1 + ', timeZone=' + this.fvf_1 + ', dateError=' + this.gvf_1 + ')'; }; protoOf(ClazzLogEditUiState).hashCode = function () { var result = getBooleanHashCode(this.dvf_1); result = imul(result, 31) + (this.evf_1 == null ? 0 : this.evf_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.fvf_1) | 0; result = imul(result, 31) + (this.gvf_1 == null ? 0 : getStringHashCode(this.gvf_1)) | 0; return result; }; protoOf(ClazzLogEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzLogEditUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzLogEditUiState ? other : THROW_CCE(); if (!(this.dvf_1 === tmp0_other_with_cast.dvf_1)) return false; if (!equals(this.evf_1, tmp0_other_with_cast.evf_1)) return false; if (!(this.fvf_1 === tmp0_other_with_cast.fvf_1)) return false; if (!(this.gvf_1 == tmp0_other_with_cast.gvf_1)) return false; return true; }; function ClazzLogEditAttendanceViewModel$slambda$slambda$lambda(a, b) { // Inline function 'kotlin.comparisons.compareValuesBy' call // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var tmp = a.ja4_1; // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var tmp$ret$1 = b.ja4_1; return compareValues(tmp, tmp$ret$1); } function ClazzLogEditAttendanceViewModel$slambda$slambda(this$0, $newClazzLogVal, resultContinuation) { this.rvg_1 = this$0; this.svg_1 = $newClazzLogVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).uvg = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).ie = function (p1, $completion) { return this.uvg(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.tvg_1.n7e(); suspendResult = tmp_0.ka3(this.rvg_1.xvh_1, 8, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var dbLogList = suspendResult; var tmp_1; if (!(this.svg_1 == null)) { var this_0 = plus(dbLogList, listOf_0(this.svg_1)); var tmp_2 = ClazzLogEditAttendanceViewModel$slambda$slambda$lambda; tmp_1 = sortedWith(this_0, new sam$kotlin_Comparator$0_2(tmp_2)); } else { tmp_1 = dbLogList; } var list = tmp_1; return list; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).enz = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda(this.rvg_1, this.svg_1, completion); i.tvg_1 = db; return i; }; function ClazzLogEditAttendanceViewModel$slambda$slambda_0(this$0, $newClazzLogVal, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda(this$0, $newClazzLogVal, resultContinuation); var l = function (db, $completion) { return i.uvg(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).gvi = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).n78 = function ($completion) { return this.gvi($completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).m78 = function (completion) { return new ClazzLogEditAttendanceViewModel$slambda$slambda_1(completion); }; function ClazzLogEditAttendanceViewModel$slambda$slambda_2(resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.gvi($completion); }; l.$arity = 0; return l; } function ClazzLogEditAttendanceViewModel$slambda$lambda(this$0, $hasEditPermission) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.svh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var nextValue = prevValue.nvi(VOID, VOID, it == null ? emptyList() : it, VOID, $hasEditPermission); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$slambda$slambda_3(this$0, resultContinuation) { this.wvi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.wvi_1.rqo().p7d().d8d(this.wvi_1.svh_1.t2().yvi().ia4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var timeZone = suspendResult; l$ret$1: do { var this_0 = this.wvi_1.svh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nvi(VOID, VOID, VOID, VOID, VOID, timeZone == null ? 'UTC' : timeZone); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda_3(this.wvi_1, completion); i.xvi_1 = $this$launch; return i; }; function ClazzLogEditAttendanceViewModel$slambda$slambda_4(this$0, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda$lambda($logRecords) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp$ret$0; $l$block: { // Inline function 'kotlin.collections.count' call var this_0 = $logRecords; var tmp_0; if (isInterface(this_0, Collection)) { tmp_0 = this_0.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = 0; break $l$block; } var count = 0; var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClickSave.....' call var tmp_1 = element.e9z_1; if (tmp_1 === 1) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$0 = count; } tmp.oa4_1 = tmp$ret$0; var tmp_2 = $this$shallowCopy; var tmp$ret$2; $l$block_0: { // Inline function 'kotlin.collections.count' call var this_1 = $logRecords; var tmp_3; if (isInterface(this_1, Collection)) { tmp_3 = this_1.c1(); } else { tmp_3 = false; } if (tmp_3) { tmp$ret$2 = 0; break $l$block_0; } var count_0 = 0; var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClickSave.....' call var tmp_4 = element_0.e9z_1; if (tmp_4 === 2) { count_0 = count_0 + 1 | 0; checkCountOverflow(count_0); } } tmp$ret$2 = count_0; } tmp_2.pa4_1 = tmp$ret$2; var tmp_5 = $this$shallowCopy; var tmp$ret$4; $l$block_1: { // Inline function 'kotlin.collections.count' call var this_2 = $logRecords; var tmp_6; if (isInterface(this_2, Collection)) { tmp_6 = this_2.c1(); } else { tmp_6 = false; } if (tmp_6) { tmp$ret$4 = 0; break $l$block_1; } var count_1 = 0; var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClickSave.....' call var tmp_7 = element_1.e9z_1; if (tmp_7 === 4) { count_1 = count_1 + 1 | 0; checkCountOverflow(count_1); } } tmp$ret$4 = count_1; } tmp_5.qa4_1 = tmp$ret$4; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this$0, $clazzLogsToSave, $attendanceRecordsToSave, resultContinuation) { this.hvj_1 = this$0; this.ivj_1 = $clazzLogsToSave; this.jvj_1 = $attendanceRecordsToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.hvj_1.rqo().n7e().na3(this.ivj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; suspendResult = this.hvj_1.rqo().m7e().h9y(this.jvj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this.hvj_1, this.ivj_1, this.jvj_1, completion); i.kvj_1 = it; return i; }; function ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda_0(this$0, $clazzLogsToSave, $attendanceRecordsToSave, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this$0, $clazzLogsToSave, $attendanceRecordsToSave, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function _get_newClazzLog__zdra0r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uvh_1; newClazzLog$factory(); return this_0.t2(); } function _set_currentClazzLogIndex__l00dbq($this, value) { $this.vqn_1.yqj('activeIndex', toString_0(value)); } function _get_currentClazzLogIndex__yy31c2($this) { var tmp0_safe_receiver = $this.vqn_1.ba('activeIndex'); return tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); } function savePersonAndAttendanceRecords($this, clazzLogUid, records, $completion) { var tmp = new $savePersonAndAttendanceRecordsCOROUTINE$74($this, clazzLogUid, records, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function commitAttendanceRecordsToState($this, $completion) { var tmp = new $commitAttendanceRecordsToStateCOROUTINE$75($this, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_142() { this.nvk_1 = 'newclazzlog'; this.ovk_1 = 'EditAttendance'; this.pvk_1 = 'activeIndex'; this.qvk_1 = 'log_'; this.rvk_1 = 'logsToSave'; } var Companion_instance_190; function Companion_getInstance_160() { return Companion_instance_190; } function sam$kotlin_Comparator$0_2(function_0) { this.svk_1 = function_0; } protoOf(sam$kotlin_Comparator$0_2).pa = function (a, b) { return this.svk_1(a, b); }; protoOf(sam$kotlin_Comparator$0_2).compare = function (a, b) { return this.pa(a, b); }; function ClazzLogEditAttendanceViewModel$newClazzLog$delegate$lambda($savedStateHandle, this$0) { return function () { var tmp0_safe_receiver = $savedStateHandle.ba('newclazzlog'); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.newClazzLog$delegate..' call tmp = this$0.n4r().t45(Companion_instance_35.o4r(), tmp0_safe_receiver); } return tmp; }; } function ClazzLogEditAttendanceViewModel$slambda(this$0, resultContinuation) { this.bvl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.cvl_1.p7f(); var tmp_1 = this.bvl_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.kdk(tmp_1, this.bvl_1.xvh_1, new Long(32, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).enz = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda(this.bvl_1, completion); i.cvl_1 = db; return i; }; function ClazzLogEditAttendanceViewModel$slambda_0(this$0, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda_1(this$0, resultContinuation) { this.lvl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.nvl_1 = _get_newClazzLog__zdra0r(this.lvl_1); this.id_1 = 1; var tmp_0 = this.lvl_1.pqo().p7f(); var tmp_1 = this.lvl_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.kdk(tmp_1, this.lvl_1.xvh_1, new Long(64, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ovl_1 = suspendResult; this.id_1 = 2; var tmp_2 = ListSerializer(Companion_instance_35.o4r()); var tmp_3 = ClazzLogEditAttendanceViewModel$slambda$slambda_0(this.lvl_1, this.nvl_1, null); var tmp_4 = ClazzLogEditAttendanceViewModel$slambda$slambda_2(null); suspendResult = this.lvl_1.fqp(tmp_2, VOID, VOID, tmp_3, tmp_4, ClazzLogEditAttendanceViewModel$slambda$lambda(this.lvl_1, this.ovl_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: launch(this.mvl_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda$slambda_4(this.lvl_1, null)); var currentClazzLogIndexVal = _get_currentClazzLogIndex__yy31c2(this.lvl_1); var tmp_5; if (!(currentClazzLogIndexVal == null)) { tmp_5 = currentClazzLogIndexVal; } else if (!(this.nvl_1 == null)) { var tmp0_elvis_lhs = this.lvl_1.svh_1.t2().pvl(this.nvl_1.ha4_1); tmp_5 = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; } else if (!this.lvl_1.dqu_1.equals(new Long(0, 0))) { var tmp1_elvis_lhs = this.lvl_1.svh_1.t2().pvl(this.lvl_1.dqu_1); tmp_5 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; } else { tmp_5 = this.lvl_1.svh_1.t2().jvi_1.u() - 1 | 0; } var startIndex = tmp_5; this.lvl_1.qvl(this.lvl_1.svh_1.t2().jvi_1.v(startIndex), true); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda_1(this.lvl_1, completion); i.mvl_1 = $this$launchIfHasPermission; return i; }; function ClazzLogEditAttendanceViewModel$slambda_2(this$0, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda($clazzLog, this$0, resultContinuation) { this.zvl_1 = $clazzLog; this.avm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 9; this.cvm_1 = 'log_' + this.zvl_1.ha4_1.toString(); this.id_1 = 1; suspendResult = this.avm_1.aqp(this.avm_1.vqn_1, this.cvm_1, ListSerializer(Companion_instance_37.o4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dvm_1 = suspendResult; if (this.dvm_1 == null) { this.id_1 = 2; suspendResult = this.avm_1.rqo().m7e().g9y(this.zvl_1.ia4_1, this.zvl_1.ha4_1, this.zvl_1.ja4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.evm_1 = this.dvm_1; this.id_1 = 8; continue $sm; } case 2: this.fvm_1 = suspendResult; var tmp_0 = this; tmp_0.gvm_1 = this.fvm_1; var tmp_1 = this; tmp_1.hvm_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.fvm_1, 10)); this.ivm_1 = this.gvm_1.w(); this.id_1 = 3; continue $sm; case 3: if (!this.ivm_1.f()) { this.id_1 = 6; continue $sm; } this.jvm_1 = this.ivm_1.e(); var tmp_2 = this; tmp_2.kvm_1 = this.jvm_1; if (this.kvm_1.y9z_1 == null) { this.mvm_1 = this.kvm_1.w9z_1; var tmp_3 = this; tmp_3.nvm_1 = new ClazzLogAttendanceRecord(); var tmp_4 = this; tmp_4.ovm_1 = this.nvm_1; this.id_1 = 4; var tmp_5 = get_doorPrimaryKeyManager(this.avm_1.pqo()); suspendResult = tmp_5.p62(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_6 = this; tmp_6.lvm_1 = this.kvm_1; this.id_1 = 5; continue $sm; } case 4: this.pvm_1 = suspendResult; this.ovm_1.b9z_1 = this.pvm_1; var tmp_7 = this.ovm_1; var tmp0_safe_receiver = this.kvm_1.w9z_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1; tmp_7.d9z_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.ovm_1.c9z_1 = this.zvl_1.ha4_1; this.qvm_1 = this.nvm_1; this.rvm_1 = this.kvm_1.x9z_1; this.lvm_1 = new PersonAndClazzLogAttendanceRecord(this.mvm_1, this.rvm_1, this.qvm_1); this.id_1 = 5; continue $sm; case 5: this.svm_1 = this.lvm_1; this.hvm_1.i1(this.svm_1); this.id_1 = 3; continue $sm; case 6: this.tvm_1 = this.hvm_1; var tmp_8 = this; tmp_8.uvm_1 = this.tvm_1; this.id_1 = 7; suspendResult = savePersonAndAttendanceRecords(this.avm_1, this.zvl_1.ha4_1, this.uvm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.evm_1 = this.tvm_1; this.id_1 = 8; continue $sm; case 8: var personAndAttendanceRecords = this.evm_1; l$ret$1: do { var this_0 = this.avm_1.svh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nvi(personAndAttendanceRecords, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.avm_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_9; if (!prevValue_0.aq7_1.dq6_1) { var tmp_10 = this.avm_1.svh_1.t2().lvi_1; var tmp_11 = this.avm_1.vqo().soj(strings_getInstance().on3_1); tmp_9 = prevValue_0.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(tmp_10, tmp_11, VOID, ClazzLogEditAttendanceViewModel$onClickSave$ref(this.avm_1))); } else { tmp_9 = prevValue_0; } var nextValue_0 = tmp_9; if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 9: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 9) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda(this.zvl_1, this.avm_1, completion); i.bvm_1 = $this$launch; return i; }; function ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda_0($clazzLog, this$0, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda($clazzLog, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda($record) { return function (it) { var tmp0_safe_receiver = it.w9z_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1; var tmp1_safe_receiver = $record.w9z_1; return equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g96_1); }; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this$0, resultContinuation) { this.dvn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = commitAttendanceRecordsToState(this.dvn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this.dvn_1, completion); i.evn_1 = $this$launch; return i; }; function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda_0(this$0, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$lambda($status) { return function ($this$shallowCopy) { $this$shallowCopy.e9z_1 = $status; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this$0, resultContinuation) { this.nvn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = commitAttendanceRecordsToState(this.nvn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this.nvn_1, completion); i.ovn_1 = $this$launch; return i; }; function ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda_0(this$0, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda(this$0, resultContinuation) { this.xvn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 11; this.id_1 = 1; suspendResult = delay(new Long(100, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this; tmp_0.zvn_1 = this.xvn_1.wvh_1; var tmp_1 = this; tmp_1.avo_1 = null; this.id_1 = 2; suspendResult = this.zvn_1.b24(this.avo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 3; continue $sm; case 3: this.jd_1 = 10; var tmp_2 = this; tmp_2.cvo_1 = ArrayList_init_$Create$(); var tmp_3 = this; tmp_3.dvo_1 = ArrayList_init_$Create$(); this.id_1 = 4; suspendResult = this.xvn_1.aqp(this.xvn_1.vqn_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.evo_1 = suspendResult; this.fvo_1 = this.evo_1 == null ? emptyList() : this.evo_1; var tmp_4 = this; tmp_4.gvo_1 = this.fvo_1; this.hvo_1 = this.gvo_1.w(); this.id_1 = 5; continue $sm; case 5: if (!this.hvo_1.f()) { this.id_1 = 7; continue $sm; } this.ivo_1 = this.hvo_1.e(); var tmp_5 = this; tmp_5.jvo_1 = this.ivo_1; var tmp_6 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.xvn_1.svh_1.t2().jvi_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.ha4_1.equals(this.jvo_1)) { tmp$ret$0 = element; break l$ret$1; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } while (false); tmp_6.kvo_1 = tmp$ret$0; this.id_1 = 6; suspendResult = this.xvn_1.aqp(this.xvn_1.vqn_1, 'log_' + this.jvo_1.toString(), ListSerializer(Companion_instance_37.o4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.lvo_1 = suspendResult; var tmp_7 = this; var tmp_8; if (this.lvo_1 == null) { tmp_8 = null; } else { var this_0 = this.lvo_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_0.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver = element_0.y9z_1; if (tmp0_safe_receiver == null) null; else { destination.i1(tmp0_safe_receiver); } } tmp_8 = destination; } tmp_7.mvo_1 = tmp_8; this.nvo_1 = this.mvo_1 == null ? emptyList() : this.mvo_1; var this_1 = this.cvo_1; var element_1 = shallowCopy_6(this.kvo_1, ClazzLogEditAttendanceViewModel$onClickSave$slambda$lambda(this.nvo_1)); this_1.i1(element_1); var this_2 = this.dvo_1; var elements = this.nvo_1; addAll(this_2, elements); this.id_1 = 5; continue $sm; case 7: this.id_1 = 8; var tmp_9 = this.xvn_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda_0(this.xvn_1, this.cvo_1, this.dvo_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.bvo_1 = suspendResult; this.jd_1 = 11; this.id_1 = 9; continue $sm; case 9: this.jd_1 = 11; this.zvn_1.m23(this.avo_1); if (!(_get_newClazzLog__zdra0r(this.xvn_1) == null)) { this.xvn_1.xqn_1.hqa('ClazzLogEdit', true); } else { this.xvn_1.gqu(this.xvn_1.svh_1.t2().yvi()); } return Unit_instance; case 10: this.jd_1 = 11; var t = this.ld_1; this.zvn_1.m23(this.avo_1); throw t; case 11: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 11) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda(this.xvn_1, completion); i.yvn_1 = $this$launch; return i; }; function ClazzLogEditAttendanceViewModel$onClickSave$slambda_0(this$0, resultContinuation) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function $savePersonAndAttendanceRecordsCOROUTINE$74(_this__u8e3s4, clazzLogUid, records, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tvj_1 = _this__u8e3s4; this.uvj_1 = clazzLogUid; this.vvj_1 = records; } protoOf($savePersonAndAttendanceRecordsCOROUTINE$74).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.wvj_1 = 'log_' + this.uvj_1.toString(); this.id_1 = 1; suspendResult = this.tvj_1.bqp(this.tvj_1.vqn_1, this.wvj_1, ListSerializer(Companion_instance_37.o4r()), this.vvj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; suspendResult = this.tvj_1.aqp(this.tvj_1.vqn_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.xvj_1 = suspendResult; this.yvj_1 = this.xvj_1 == null ? null : toSet(this.xvj_1); this.zvj_1 = this.yvj_1 == null ? emptySet() : this.yvj_1; if (!this.zvj_1.a1(this.uvj_1)) { this.avk_1 = plus_2(this.zvj_1, this.uvj_1); this.id_1 = 3; suspendResult = this.tvj_1.bqp(this.tvj_1.vqn_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), toList(this.avk_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 4; continue $sm; } case 3: this.id_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $commitAttendanceRecordsToStateCOROUTINE$75(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jvk_1 = _this__u8e3s4; } protoOf($commitAttendanceRecordsToStateCOROUTINE$75).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; var tmp_0 = this; tmp_0.kvk_1 = this.jvk_1.wvh_1; var tmp_1 = this; tmp_1.lvk_1 = null; this.id_1 = 1; suspendResult = this.kvk_1.b24(this.lvk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; continue $sm; case 2: this.jd_1 = 5; this.id_1 = 3; suspendResult = savePersonAndAttendanceRecords(this.jvk_1, this.jvk_1.svh_1.t2().yvi().ha4_1, this.jvk_1.svh_1.t2().hvi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.mvk_1 = suspendResult; this.jd_1 = 6; this.id_1 = 4; continue $sm; case 4: this.jd_1 = 6; this.kvk_1.m23(this.lvk_1); return Unit_instance; case 5: this.jd_1 = 6; var t = this.ld_1; this.kvk_1.m23(this.lvk_1); throw t; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ClazzLogEditAttendanceViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EditAttendance'); this.svh_1 = MutableStateFlow(new ClazzLogEditAttendanceUiState()); this.tvh_1 = asStateFlow(this.svh_1); var tmp = this; tmp.uvh_1 = lazy_0(ClazzLogEditAttendanceViewModel$newClazzLog$delegate$lambda(savedStateHandle, this)); this.vvh_1 = null; this.wvh_1 = Mutex(); var tmp_0 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.xvh_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().dmv_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzLogEditAttendanceViewModel$slambda_0(this, null); this.hqp(tmp_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda_2(this, null)); } protoOf(ClazzLogEditAttendanceViewModel).qvl = function (clazzLog, forceLoad) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = this.svh_1.t2().jvi_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onChangeClazzLog.' call if (item.ha4_1.equals(clazzLog.ha4_1)) { tmp$ret$1 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$1 = -1; } var logIndex = tmp$ret$1; if (!forceLoad ? logIndex === this.svh_1.t2().ivi_1 : false) return Unit_instance; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.svh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onChangeClazzLog.' call _set_currentClazzLogIndex__l00dbq(this, logIndex); var tmp$ret$3; $l$block_0: { // Inline function 'kotlin.collections.indexOfFirst' call var index_0 = 0; var tmp0_iterator_0 = prevValue.jvi_1.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onChangeClazzLog..' call if (item_0.ha4_1.equals(clazzLog.ha4_1)) { tmp$ret$3 = index_0; break $l$block_0; } index_0 = index_0 + 1 | 0; } tmp$ret$3 = -1; } var nextValue = prevValue.nvi(VOID, tmp$ret$3, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block_1; } } } var tmp0_safe_receiver = this.vvh_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.vvh_1 = launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda_0(clazzLog, this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).ovo = function (clazzLog, forceLoad, $super) { forceLoad = forceLoad === VOID ? false : forceLoad; var tmp; if ($super === VOID) { this.qvl(clazzLog, forceLoad); tmp = Unit_instance; } else { tmp = $super.qvl.call(this, clazzLog, forceLoad); } return tmp; }; protoOf(ClazzLogEditAttendanceViewModel).pvo = function (record) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.svh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClazzLogAttendanceChanged.' call var nextValue = prevValue.nvi(replace_0(prevValue.hvi_1, record, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda(record))); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).qvo = function (status) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.svh_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClickMarkAll.' call // Inline function 'kotlin.collections.map' call var this_1 = prevValue.hvi_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10)); var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClickMarkAll..' call var tmp0_safe_receiver = item.y9z_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_7(tmp0_safe_receiver, ClazzLogEditAttendanceViewModel$onClickMarkAll$lambda(status)); } var tmp$ret$0 = item.dka(VOID, VOID, tmp); destination.i1(tmp$ret$0); } var nextValue = prevValue.nvi(destination); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).ysb = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, ClazzLogEditAttendanceViewModel$onClickSave$slambda_0(this, null)); }; function ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) { clazzLogAttendanceRecordList = clazzLogAttendanceRecordList === VOID ? emptyList() : clazzLogAttendanceRecordList; currentClazzLogIndex = currentClazzLogIndex === VOID ? 0 : currentClazzLogIndex; clazzLogsList = clazzLogsList === VOID ? emptyList() : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; canEdit = canEdit === VOID ? false : canEdit; timeZone = timeZone === VOID ? 'UTC' : timeZone; this.hvi_1 = clazzLogAttendanceRecordList; this.ivi_1 = currentClazzLogIndex; this.jvi_1 = clazzLogsList; this.kvi_1 = fieldsEnabled; this.lvi_1 = canEdit; this.mvi_1 = timeZone; } protoOf(ClazzLogEditAttendanceUiState).pvl = function (clazzLogUid) { // Inline function 'kotlin.let' call var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = this.jvi_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceUiState.indexOfClazzLogUid.' call if (item.ha4_1.equals(clazzLogUid)) { tmp$ret$1 = index; break $l$block; } index = index + 1 | 0; } tmp$ret$1 = -1; } // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceUiState.indexOfClazzLogUid.' call var it = tmp$ret$1; return it >= 0 ? it : null; }; protoOf(ClazzLogEditAttendanceUiState).yvi = function () { return this.jvi_1.v(this.ivi_1); }; protoOf(ClazzLogEditAttendanceUiState).rvo = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) { return new ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).nvi = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone, $super) { clazzLogAttendanceRecordList = clazzLogAttendanceRecordList === VOID ? this.hvi_1 : clazzLogAttendanceRecordList; currentClazzLogIndex = currentClazzLogIndex === VOID ? this.ivi_1 : currentClazzLogIndex; clazzLogsList = clazzLogsList === VOID ? this.jvi_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.kvi_1 : fieldsEnabled; canEdit = canEdit === VOID ? this.lvi_1 : canEdit; timeZone = timeZone === VOID ? this.mvi_1 : timeZone; return $super === VOID ? this.rvo(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) : $super.rvo.call(this, clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).toString = function () { return 'ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList=' + this.hvi_1 + ', currentClazzLogIndex=' + this.ivi_1 + ', clazzLogsList=' + this.jvi_1 + ', fieldsEnabled=' + this.kvi_1 + ', canEdit=' + this.lvi_1 + ', timeZone=' + this.mvi_1 + ')'; }; protoOf(ClazzLogEditAttendanceUiState).hashCode = function () { var result = hashCode(this.hvi_1); result = imul(result, 31) + this.ivi_1 | 0; result = imul(result, 31) + hashCode(this.jvi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kvi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lvi_1) | 0; result = imul(result, 31) + getStringHashCode(this.mvi_1) | 0; return result; }; protoOf(ClazzLogEditAttendanceUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzLogEditAttendanceUiState)) return false; var tmp0_other_with_cast = other instanceof ClazzLogEditAttendanceUiState ? other : THROW_CCE(); if (!equals(this.hvi_1, tmp0_other_with_cast.hvi_1)) return false; if (!(this.ivi_1 === tmp0_other_with_cast.ivi_1)) return false; if (!equals(this.jvi_1, tmp0_other_with_cast.jvi_1)) return false; if (!(this.kvi_1 === tmp0_other_with_cast.kvi_1)) return false; if (!(this.lvi_1 === tmp0_other_with_cast.lvi_1)) return false; if (!(this.mvi_1 === tmp0_other_with_cast.mvi_1)) return false; return true; }; function newClazzLog$factory() { return getPropertyCallableRef('newClazzLog', 1, KProperty1, function (receiver) { return _get_newClazzLog__zdra0r(receiver); }, null); } function get_stringResource(_this__u8e3s4) { var tmp; switch (_this__u8e3s4.za_1) { case 5: tmp = strings_getInstance().hnp_1; break; case 4: tmp = strings_getInstance().inp_1; break; case 3: tmp = strings_getInstance().jnp_1; break; case 2: tmp = strings_getInstance().knp_1; break; case 1: tmp = strings_getInstance().lnp_1; break; case 0: tmp = strings_getInstance().mnp_1; break; default: noWhenBranchMatchedException(); break; } return tmp; } function get_contentTypeStringResource(_this__u8e3s4) { var tmp; if (!_this__u8e3s4.daw_1) { tmp = strings_getInstance().ond_1; } else { var tmp0_subject = _this__u8e3s4.iaw_1; var tmp_0; if (tmp0_subject === 1) { tmp_0 = strings_getInstance().imn_1; } else { if (tmp0_subject === 2) { tmp_0 = strings_getInstance().gmn_1; } else { if (tmp0_subject === 3) { tmp_0 = strings_getInstance().hmn_1; } else { if (tmp0_subject === 4) { tmp_0 = strings_getInstance().tna_1; } else { if (tmp0_subject === 5) { tmp_0 = strings_getInstance().lmn_1; } else { if (tmp0_subject === 6) { tmp_0 = strings_getInstance().jmn_1; } else { if (tmp0_subject === 7) { tmp_0 = strings_getInstance().kmn_1; } else { tmp_0 = strings_getInstance().omi_1; } } } } } } } tmp = tmp_0; } return tmp; } function Companion_143() { Companion_instance_191 = this; this.svo_1 = 'ContentEntry'; var tmp = this; Companion_getInstance_126(); Companion_getInstance_126(); Companion_getInstance_126(); Companion_getInstance_126(); tmp.tvo_1 = listOf(['entityUid', 'clazzUid', 'parentUid', 'courseBlockUid']); } var Companion_instance_191; function Companion_getInstance_161() { if (Companion_instance_191 == null) new Companion_143(); return Companion_instance_191; } function ContentEntryDetailViewModel(di, savedStateHandle) { Companion_getInstance_161(); DetailViewModel.call(this, di, savedStateHandle, 'ContentEntryDetailOverviewView'); var tmp = this; // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.detail.ContentEntryDetailViewModel._uiState.' call this.jqp(this_0, Companion_getInstance_161().tvo_1); var tmp$ret$2 = this_0.f3(); var tmp_0 = new TabItem('ContentEntryDetailOverviewView', tmp$ret$2, this.vqo().soj(strings_getInstance().in5_1)); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_1 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.detail.ContentEntryDetailViewModel._uiState.' call this.jqp(this_1, Companion_getInstance_161().tvo_1); var tmp$ret$5 = this_1.f3(); tmp.qvp_1 = MutableStateFlow(new ContentEntryDetailUiState(listOf([tmp_0, new TabItem('ContentEntryDetailAttemptsPersonList', tmp$ret$5, this.vqo().soj(strings_getInstance().smn_1))]))); this.rvp_1 = asStateFlow(this.qvp_1); } function ContentEntryDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.svp_1 = tabs; } protoOf(ContentEntryDetailUiState).toString = function () { return 'ContentEntryDetailUiState(tabs=' + this.svp_1 + ')'; }; protoOf(ContentEntryDetailUiState).hashCode = function () { return hashCode(this.svp_1); }; protoOf(ContentEntryDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailUiState ? other : THROW_CCE(); if (!equals(this.svp_1, tmp0_other_with_cast.svp_1)) return false; return true; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.bvq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).dvq = function (contentEntry, $completion) { var tmp = this.evq(contentEntry, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.dvq((p1 == null ? true : p1 instanceof ContentEntry) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.bvq_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.cvq_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pav_1; var nextValue = prevValue.hq7(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).evq = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this.bvq_1, completion); i.cvq_1 = contentEntry; return i; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (contentEntry, $completion) { return i.dvq(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this$0, resultContinuation) { this.nvq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.nvq_1.rqo().w7d().zau(this.nvq_1.ovr_1); var tmp_1 = ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda_0(this.nvq_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_22(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).m78 = function (completion) { return new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this.nvq_1, completion); }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function buildSortOptions($this, db, $completion) { var tmp = new $buildSortOptionsCOROUTINE$76($this, db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_144() { this.avs_1 = 'ContentEntryDetailAttemptsPersonList'; } var Companion_instance_192; function Companion_getInstance_162() { return Companion_instance_192; } function sam$kotlinx_coroutines_flow_FlowCollector$0_22(function_0) { this.bvs_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_22).u1d = function (value, $completion) { return this.bvs_1(value, $completion); }; function ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this$0) { return function () { return this$0.rqo().k7e().rje(this$0.ovr_1, this$0.nqo(), toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1), this$0.qqw_1.t2().evs_1.oqd_1); }; } function ContentEntryDetailAttemptsPersonListViewModel$slambda(this$0, resultContinuation) { this.ovs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; tmp_0.qvs_1 = filterNotNull(listOf([this.ovs_1.pqo(), this.ovs_1.qqo()])); this.rvs_1 = this.qvs_1.w(); this.id_1 = 1; continue $sm; case 1: if (!this.rvs_1.f()) { this.id_1 = 3; continue $sm; } this.svs_1 = this.rvs_1.e(); var tmp_1 = this; tmp_1.tvs_1 = this.svs_1; this.id_1 = 2; suspendResult = buildSortOptions(this.ovs_1, this.tvs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var sortOptions = suspendResult; l$ret$1: do { var this_0 = this.ovs_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uvs(VOID, sortOptions); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 1; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda(this.ovs_1, completion); i.pvs_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this$0, resultContinuation) { this.dvt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.dvt_1.qqw_1, ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda_0(this.dvt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this.dvt_1, completion); i.evt_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function $buildSortOptionsCOROUTINE$76(_this__u8e3s4, db, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yvr_1 = _this__u8e3s4; this.zvr_1 = db; } protoOf($buildSortOptionsCOROUTINE$76).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.zvr_1.k7e().vje(this.yvr_1.ovr_1, this.yvr_1.nqo(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var list = suspendResult; var tmp$ret$0; l$ret$1: do { var tmp_0; if (isInterface(list, Collection)) { tmp_0 = list.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break l$ret$1; } var tmp0_iterator = list.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!(element.zjf_1 == null)) { tmp$ret$0 = true; break l$ret$1; } } tmp$ret$0 = false; } while (false); var tmp_1 = tmp$ret$0; var tmp$ret$2; l$ret$3: do { var tmp_2; if (isInterface(list, Collection)) { tmp_2 = list.c1(); } else { tmp_2 = false; } if (tmp_2) { tmp$ret$2 = false; break l$ret$3; } var tmp0_iterator_0 = list.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (!(element_0.kjf_1 == null)) { tmp$ret$2 = true; break l$ret$3; } } tmp$ret$2 = false; } while (false); var tmp0_container = new Pair(tmp_1, tmp$ret$2); var hasProgressData = tmp0_container.y6(); var hasScoreData = tmp0_container.z6(); var this_0 = ArrayList_init_$Create$(); var tmp_3 = strings_getInstance().jmk_1; var tmp_4 = new SortOrderOption(tmp_3, 1, true); var tmp_5 = strings_getInstance().jmk_1; var tmp_6 = new SortOrderOption(tmp_5, 2, false); var tmp_7 = strings_getInstance().imk_1; var tmp_8 = new SortOrderOption(tmp_7, 3, true); var tmp_9 = strings_getInstance().imk_1; this_0.m1(listOf([tmp_4, tmp_6, tmp_8, new SortOrderOption(tmp_9, 4, false)])); if (hasScoreData) { var tmp_10 = strings_getInstance().lmk_1; var tmp_11 = new SortOrderOption(tmp_10, 5, true); var tmp_12 = strings_getInstance().lmk_1; this_0.m1(listOf([tmp_11, new SortOrderOption(tmp_12, 6, false)])); } if (hasProgressData) { var tmp_13 = strings_getInstance().enr_1; var tmp_14 = new SortOrderOption(tmp_13, 7, true); var tmp_15 = strings_getInstance().enr_1; this_0.m1(listOf([tmp_14, new SortOrderOption(tmp_15, 8, false)])); } var tmp_16 = strings_getInstance().qnl_1; var tmp_17 = new SortOrderOption(tmp_16, 10, null); var tmp_18 = strings_getInstance().kmk_1; this_0.m1(listOf([tmp_17, new SortOrderOption(tmp_18, 9, null)])); return this_0.f3(); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ContentEntryDetailAttemptsPersonListViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'ContentEntryDetailAttemptsPersonList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryDetailAttemptsPersonListUiState(), destinationName); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ovr_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.pvr_1 = ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.zqx()); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqw_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue_0 = prevValue_0.uvs(this.pvr_1); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_0(this, null)); var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_2(this, null)); } protoOf(ContentEntryDetailAttemptsPersonListViewModel).fvt = function (entry) { Companion_getInstance_117(); var tmp = to('personUid', entry.ujg_1.g96_1.toString()); Companion_getInstance_117(); this.xqn_1.tp6('ContentEntryDetailAttemptsSessionList', mapOf([tmp, to('entryid', this.ovr_1.toString())])); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).lqx = function () { }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).lt1 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.uvs(VOID, VOID, sortOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; function ContentEntryDetailAttemptsPersonListUiState$_init_$lambda_s6nk3z() { return new EmptyPagingSource(); } function ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList, sortOptions, sortOption, showSortOptions) { var tmp; if (attemptsPersonList === VOID) { tmp = ContentEntryDetailAttemptsPersonListUiState$_init_$lambda_s6nk3z; } else { tmp = attemptsPersonList; } attemptsPersonList = tmp; var tmp_0; if (sortOptions === VOID) { var tmp_1 = strings_getInstance().qnl_1; var tmp_2 = new SortOrderOption(tmp_1, 10, null); var tmp_3 = strings_getInstance().kmk_1; tmp_0 = listOf([tmp_2, new SortOrderOption(tmp_3, 9, null)]); } else { tmp_0 = sortOptions; } sortOptions = tmp_0; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; showSortOptions = showSortOptions === VOID ? true : showSortOptions; this.cvs_1 = attemptsPersonList; this.dvs_1 = sortOptions; this.evs_1 = sortOption; this.fvs_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsPersonListUiState).gvt = function (attemptsPersonList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).uvs = function (attemptsPersonList, sortOptions, sortOption, showSortOptions, $super) { attemptsPersonList = attemptsPersonList === VOID ? this.cvs_1 : attemptsPersonList; sortOptions = sortOptions === VOID ? this.dvs_1 : sortOptions; sortOption = sortOption === VOID ? this.evs_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.fvs_1 : showSortOptions; return $super === VOID ? this.gvt(attemptsPersonList, sortOptions, sortOption, showSortOptions) : $super.gvt.call(this, attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).toString = function () { return 'ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList=' + this.cvs_1 + ', sortOptions=' + this.dvs_1 + ', sortOption=' + this.evs_1 + ', showSortOptions=' + this.fvs_1 + ')'; }; protoOf(ContentEntryDetailAttemptsPersonListUiState).hashCode = function () { var result = hashCode(this.cvs_1); result = imul(result, 31) + hashCode(this.dvs_1) | 0; result = imul(result, 31) + this.evs_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.fvs_1) | 0; return result; }; protoOf(ContentEntryDetailAttemptsPersonListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailAttemptsPersonListUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailAttemptsPersonListUiState ? other : THROW_CCE(); if (!equals(this.cvs_1, tmp0_other_with_cast.cvs_1)) return false; if (!equals(this.dvs_1, tmp0_other_with_cast.dvs_1)) return false; if (!this.evs_1.equals(tmp0_other_with_cast.evs_1)) return false; if (!(this.fvs_1 === tmp0_other_with_cast.fvs_1)) return false; return true; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this$0, resultContinuation) { this.pvt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).rvt = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).ie = function (p1, $completion) { return this.rvt((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = firstOrNull_1(this.pvt_1.rqo().o7d().rg4(this.pvt_1.tvu_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).w1m = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this.pvt_1, completion); i.qvt_1 = $this$async; return i; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.rvt($this$async, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.dvv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).fvv = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.fvv((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = firstOrNull_1(this.dvv_1.rqo().w7d().zau(this.dvv_1.svu_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).w1m = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this.dvv_1, completion); i.evv_1 = $this$async; return i; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.fvv($this$async, $completion); }; l.$arity = 1; return l; } function Companion_145() { this.gvv_1 = 'ContentEntryDetailAttemptsSessionList'; } var Companion_instance_193; function Companion_getInstance_163() { return Companion_instance_193; } function ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this$0) { return function () { return this$0.rqo().k7e().sje(this$0.svu_1, this$0.tvu_1, this$0.nqo(), this$0.qqw_1.t2().jvv_1.oqd_1); }; } function ContentEntryDetailAttemptsSessionListViewModel$slambda(this$0, resultContinuation) { this.tvv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; tmp_0.vvv_1 = async(this.uvv_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_0(this.tvv_1, null)); var tmp_1 = this; tmp_1.wvv_1 = async(this.uvv_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_2(this.tvv_1, null)); this.id_1 = 1; suspendResult = this.vvv_1.ov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xvv_1 = suspendResult; this.id_1 = 2; suspendResult = this.wvv_1.ov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var contentEntry = suspendResult; var tmp0_safe_receiver = this.xvv_1; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag9_1; var tmp1_safe_receiver = this.xvv_1; var tmp_3 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bg9_1; var tmp3_elvis_lhs = contentEntry == null ? null : contentEntry.pav_1; var combinedTitle = '' + tmp_2 + ' ' + tmp_3 + ' - ' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs); l$ret$1: do { var this_0 = this.tvv_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(VOID, VOID, combinedTitle); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda(this.tvv_1, completion); i.uvv_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsSessionListViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'ContentEntryDetailAttemptsSessionList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryDetailAttemptsSessionListUiState(), destinationName); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.svu_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_117(); var tmp0_safe_receiver_0 = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_0.tvu_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.uvu_1 = ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.' call var nextValue = prevValue.yvv(this.uvu_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsSessionListViewModel).zvv = function (entry) { Companion_getInstance_117(); var tmp = to('personUid', this.tvu_1.toString()); Companion_getInstance_117(); var tmp_0 = to('entryid', this.svu_1.toString()); Companion_getInstance_117(); var tmp_1 = to('contextRegistrationIdHi', entry.eji_1.toString()); Companion_getInstance_117(); this.xqn_1.tp6('ContentEntryDetailAttemptsStatementList', mapOf([tmp, tmp_0, tmp_1, to('contextRegistrationIdLo', entry.fji_1.toString())])); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).lt1 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.onSortOrderChanged.' call var tmp0_attemptsSessionList = this.uvu_1; var nextValue = prevValue.yvv(tmp0_attemptsSessionList, VOID, sortOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).kqx = function (searchText) { }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).lqx = function () { }; function ContentEntryDetailAttemptsSessionListUiState$_init_$lambda_970utq() { return new EmptyPagingSource(); } function ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList, sortOptions, sortOption, showSortOptions) { var tmp; if (attemptsSessionList === VOID) { tmp = ContentEntryDetailAttemptsSessionListUiState$_init_$lambda_970utq; } else { tmp = attemptsSessionList; } attemptsSessionList = tmp; var tmp_0; if (sortOptions === VOID) { var tmp_1 = strings_getInstance().qnl_1; var tmp_2 = new SortOrderOption(tmp_1, 1, null); var tmp_3 = strings_getInstance().kmk_1; var tmp_4 = new SortOrderOption(tmp_3, 2, null); var tmp_5 = strings_getInstance().lmk_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().lmk_1; var tmp_8 = new SortOrderOption(tmp_7, 4, false); var tmp_9 = strings_getInstance().mmk_1; var tmp_10 = new SortOrderOption(tmp_9, 5, true); var tmp_11 = strings_getInstance().mmk_1; tmp_0 = listOf([tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, new SortOrderOption(tmp_11, 6, false)]); } else { tmp_0 = sortOptions; } sortOptions = tmp_0; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; showSortOptions = showSortOptions === VOID ? true : showSortOptions; this.hvv_1 = attemptsSessionList; this.ivv_1 = sortOptions; this.jvv_1 = sortOption; this.kvv_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsSessionListUiState).avw = function (attemptsSessionList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).yvv = function (attemptsSessionList, sortOptions, sortOption, showSortOptions, $super) { attemptsSessionList = attemptsSessionList === VOID ? this.hvv_1 : attemptsSessionList; sortOptions = sortOptions === VOID ? this.ivv_1 : sortOptions; sortOption = sortOption === VOID ? this.jvv_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.kvv_1 : showSortOptions; return $super === VOID ? this.avw(attemptsSessionList, sortOptions, sortOption, showSortOptions) : $super.avw.call(this, attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).toString = function () { return 'ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList=' + this.hvv_1 + ', sortOptions=' + this.ivv_1 + ', sortOption=' + this.jvv_1 + ', showSortOptions=' + this.kvv_1 + ')'; }; protoOf(ContentEntryDetailAttemptsSessionListUiState).hashCode = function () { var result = hashCode(this.hvv_1); result = imul(result, 31) + hashCode(this.ivv_1) | 0; result = imul(result, 31) + this.jvv_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.kvv_1) | 0; return result; }; protoOf(ContentEntryDetailAttemptsSessionListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailAttemptsSessionListUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailAttemptsSessionListUiState ? other : THROW_CCE(); if (!equals(this.hvv_1, tmp0_other_with_cast.hvv_1)) return false; if (!equals(this.ivv_1, tmp0_other_with_cast.ivv_1)) return false; if (!this.jvv_1.equals(tmp0_other_with_cast.jvv_1)) return false; if (!(this.kvv_1 === tmp0_other_with_cast.kvv_1)) return false; return true; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.jvw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).lvw = function (verbs, $completion) { var tmp = this.mvw(verbs, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lvw((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.jvw_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tvw(VOID, VOID, VOID, VOID, this.kvw_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).mvw = function (verbs, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this.jvw_1, completion); i.kvw_1 = verbs; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (verbs, $completion) { return i.lvw(verbs, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.cvx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).dvq = function (contentEntry, $completion) { var tmp = this.evq(contentEntry, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.dvq((p1 == null ? true : p1 instanceof ContentEntry) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.cvx_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.dvx_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pav_1; var nextValue = prevValue.hq7(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).evq = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this.cvx_1, completion); i.dvx_1 = contentEntry; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (contentEntry, $completion) { return i.dvq(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.mvx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.mvx_1.rqo().k7e().uje(this.mvx_1.pvy_1, this.mvx_1.qvy_1, this.mvx_1.ovy_1, this.mvx_1.rvy_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_0(this.mvx_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_23(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this.mvx_1, completion); i.nvx_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.cvz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.cvz_1.rqo().w7d().zau(this.cvz_1.rvy_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_2(this.cvz_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_23(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this.cvz_1, completion); i.dvz_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.mvz_1 = $this_launch; this.nvz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.mvz_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_0(this.nvz_1, null)); launch(this.mvz_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_2(this.nvz_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).m78 = function (completion) { return new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda(this.mvz_1, this.nvz_1, completion); }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function _get_formatStatementResponseUseCase__m72qwj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.svy_1; formatStatementResponseUseCase$factory_0(); return this_0.t2(); } function Companion_146() { this.ovz_1 = 'ContentEntryDetailAttemptsStatementList'; } var Companion_instance_194; function Companion_getInstance_164() { return Companion_instance_194; } function sam$kotlinx_coroutines_flow_FlowCollector$0_23(function_0) { this.pvz_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_23).u1d = function (value, $completion) { return this.pvz_1(value, $completion); }; function ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this$0) { return function () { return this$0.rqo().k7e().tje(this$0.pvy_1, this$0.qvy_1, this$0.nqo(), this$0.ovy_1, this$0.rvy_1, toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1), this$0.qqw_1.t2().pvw_1.oqd_1, this$0.qqw_1.t2().svw_1); }; } function ContentEntryDetailAttemptsStatementListViewModel$slambda(this$0, resultContinuation) { this.yvz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.yvz_1.qqw_1, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda_0(this.zvz_1, this.yvz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda(this.yvz_1, completion); i.zvz_1 = $this$launch; return i; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'ContentEntryDetailAttemptsStatementList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryDetailAttemptsStatementListUiState(), destinationName); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ovy_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_117(); var tmp0_safe_receiver_0 = savedStateHandle.ba('contextRegistrationIdHi'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_0.pvy_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; Companion_getInstance_117(); var tmp0_safe_receiver_1 = savedStateHandle.ba('contextRegistrationIdLo'); var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : toLong_0(tmp0_safe_receiver_1); tmp_1.qvy_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_2 = this; Companion_getInstance_117(); var tmp0_safe_receiver_2 = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : toLong_0(tmp0_safe_receiver_2); tmp_2.rvy_1 = tmp1_elvis_lhs_2 == null ? new Long(0, 0) : tmp1_elvis_lhs_2; var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.svy_1 = Instance(this_0, tmp$ret$0, null).b5d(this, formatStatementResponseUseCase$factory()); var tmp_5 = this; tmp_5.tvy_1 = ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqw_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue = prevValue.tvw(this.tvy_1); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.yqx(true)); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.mqo(); launch(tmp_6, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsStatementListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).lt1 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onSortOrderChanged.' call var tmp0_attemptsStatementList = this.tvy_1; var nextValue = prevValue.tvw(tmp0_attemptsStatementList, VOID, sortOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).aw0 = function (verbEntity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onVerbFilterToggled.' call var nextValue = prevValue.tvw(VOID, VOID, VOID, VOID, VOID, toggle(prevValue.svw_1, verbEntity.vjj_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).lqx = function () { }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).bw0 = function (statementEntity) { return _get_formatStatementResponseUseCase__m72qwj(this).ipy(statementEntity.pjj_1, statementEntity.sjj_1); }; function ContentEntryDetailAttemptsStatementListUiState$_init_$lambda_o4i91x() { return new EmptyPagingSource(); } function ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) { var tmp; if (attemptsStatementList === VOID) { tmp = ContentEntryDetailAttemptsStatementListUiState$_init_$lambda_o4i91x; } else { tmp = attemptsStatementList; } attemptsStatementList = tmp; var tmp_0; if (sortOptions === VOID) { var tmp_1 = strings_getInstance().omk_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().omk_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().lmk_1; var tmp_6 = new SortOrderOption(tmp_5, 3, false); var tmp_7 = strings_getInstance().lmk_1; tmp_0 = listOf([tmp_2, tmp_4, tmp_6, new SortOrderOption(tmp_7, 4, true)]); } else { tmp_0 = sortOptions; } sortOptions = tmp_0; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; showSortOptions = showSortOptions === VOID ? true : showSortOptions; availableVerbs = availableVerbs === VOID ? emptyList() : availableVerbs; deselectedVerbUids = deselectedVerbUids === VOID ? emptyList() : deselectedVerbUids; this.nvw_1 = attemptsStatementList; this.ovw_1 = sortOptions; this.pvw_1 = sortOption; this.qvw_1 = showSortOptions; this.rvw_1 = availableVerbs; this.svw_1 = deselectedVerbUids; } protoOf(ContentEntryDetailAttemptsStatementListUiState).cw0 = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) { return new ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).tvw = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids, $super) { attemptsStatementList = attemptsStatementList === VOID ? this.nvw_1 : attemptsStatementList; sortOptions = sortOptions === VOID ? this.ovw_1 : sortOptions; sortOption = sortOption === VOID ? this.pvw_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.qvw_1 : showSortOptions; availableVerbs = availableVerbs === VOID ? this.rvw_1 : availableVerbs; deselectedVerbUids = deselectedVerbUids === VOID ? this.svw_1 : deselectedVerbUids; return $super === VOID ? this.cw0(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) : $super.cw0.call(this, attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).toString = function () { return 'ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList=' + this.nvw_1 + ', sortOptions=' + this.ovw_1 + ', sortOption=' + this.pvw_1 + ', showSortOptions=' + this.qvw_1 + ', availableVerbs=' + this.rvw_1 + ', deselectedVerbUids=' + this.svw_1 + ')'; }; protoOf(ContentEntryDetailAttemptsStatementListUiState).hashCode = function () { var result = hashCode(this.nvw_1); result = imul(result, 31) + hashCode(this.ovw_1) | 0; result = imul(result, 31) + this.pvw_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.qvw_1) | 0; result = imul(result, 31) + hashCode(this.rvw_1) | 0; result = imul(result, 31) + hashCode(this.svw_1) | 0; return result; }; protoOf(ContentEntryDetailAttemptsStatementListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailAttemptsStatementListUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailAttemptsStatementListUiState ? other : THROW_CCE(); if (!equals(this.nvw_1, tmp0_other_with_cast.nvw_1)) return false; if (!equals(this.ovw_1, tmp0_other_with_cast.ovw_1)) return false; if (!this.pvw_1.equals(tmp0_other_with_cast.pvw_1)) return false; if (!(this.qvw_1 === tmp0_other_with_cast.qvw_1)) return false; if (!equals(this.rvw_1, tmp0_other_with_cast.rvw_1)) return false; if (!equals(this.svw_1, tmp0_other_with_cast.svw_1)) return false; return true; }; function formatStatementResponseUseCase$factory() { return getPropertyCallableRef('formatStatementResponseUseCase', 1, KProperty1, function (receiver) { return _get_formatStatementResponseUseCase__m72qwj(receiver); }, null); } function formatStatementResponseUseCase$factory_0() { return getPropertyCallableRef('formatStatementResponseUseCase', 1, KProperty1, function (receiver) { return _get_formatStatementResponseUseCase__m72qwj(receiver); }, null); } function get_statementSummary(_this__u8e3s4) { return new StatementSummaryEntity(_this__u8e3s4.yjg_1, _this__u8e3s4.xjg_1); } function get_statementSummary_0(_this__u8e3s4) { return new StatementSummaryEntity(_this__u8e3s4.kji_1, _this__u8e3s4.jji_1); } function get_verbDisplayName(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.rjj_1; var tmp3_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cjk_1; var tmp; if (tmp3_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.qjj_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.wjj_1; tmp = tmp2_safe_receiver == null ? null : substringAfterLast(tmp2_safe_receiver, '/'); } else { tmp = tmp3_elvis_lhs; } var tmp4_elvis_lhs = tmp; return tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs; } function StatementSummaryEntity(successful, completed) { this.dw0_1 = successful; this.ew0_1 = completed; } protoOf(StatementSummaryEntity).toString = function () { return 'StatementSummaryEntity(successful=' + this.dw0_1 + ', completed=' + this.ew0_1 + ')'; }; protoOf(StatementSummaryEntity).hashCode = function () { var result = this.dw0_1 == null ? 0 : getBooleanHashCode(this.dw0_1); result = imul(result, 31) + getBooleanHashCode(this.ew0_1) | 0; return result; }; protoOf(StatementSummaryEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementSummaryEntity)) return false; var tmp0_other_with_cast = other instanceof StatementSummaryEntity ? other : THROW_CCE(); if (!(this.dw0_1 == tmp0_other_with_cast.dw0_1)) return false; if (!(this.ew0_1 === tmp0_other_with_cast.ew0_1)) return false; return true; }; function get_descriptionStringRes(_this__u8e3s4) { return _this__u8e3s4.dw0_1 === true ? strings_getInstance().nmm_1 : _this__u8e3s4.dw0_1 === false ? strings_getInstance().mmm_1 : _this__u8e3s4.ew0_1 ? strings_getInstance().rmm_1 : strings_getInstance().qmm_1; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.nw0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).pw0 = function (it, $completion) { var tmp = this.qw0(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.pw0((p1 == null ? true : p1 instanceof ContentEntryAndDetail) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.nw0_1.nw1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qw2(VOID, this.ow0_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).qw0 = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.nw0_1, completion); i.ow0_1 = it; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.pw0(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.zw2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).hrj = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.hrj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.aw3_1.w7d().vau(this.zw2_1.bw2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).enz = function (db, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this.zw2_1, completion); i.aw3_1 = db; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (db, $completion) { return i.hrj(db, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.jw3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).lw3 = function (it, $completion) { var tmp = this.mw3(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.lw3((p1 == null ? true : p1 instanceof ContentEntryVersion) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.jw3_1.nw1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qw2(VOID, VOID, this.kw3_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).mw3 = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.jw3_1, completion); i.kw3_1 = it; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.lw3(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.vw3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).xw3 = function (it, $completion) { var tmp = this.yw3(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.xw3((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.vw3_1.nw1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ww3_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).yw3 = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.vw3_1, completion); i.ww3_1 = it; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function (it, $completion) { return i.xw3(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.hw4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).jw4 = function (it, $completion) { var tmp = this.kw4(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.jw4((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.hw4_1.nw1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.iw4_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).kw4 = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.hw4_1, completion); i.iw4_1 = it; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation); var l = function (it, $completion) { return i.jw4(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this$0, resultContinuation) { this.tw4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).vw4 = function (it, $completion) { var tmp = this.ww4(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).ie = function (p1, $completion) { return this.vw4((p1 == null ? true : p1 instanceof OfflineItemAndState) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.tw4_1.nw1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.uw4_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).ww4 = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this.tw4_1, completion); i.uw4_1 = it; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_10(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this$0, resultContinuation); var l = function (it, $completion) { return i.vw4(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda() { return 'Could not get list of jobs'; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.fw5_1 = this$0; this.gw5_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.fw5_1.rqo().w7d(); Companion_getInstance_126(); var tmp0_safe_receiver = this.gw5_1.ba('courseBlockUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1 = tmp_0.uau(this.fw5_1.pqn_1, this.fw5_1.aw2_1, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.fw5_1.nqo()); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.fw5_1, null); suspendResult = tmp_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda(this.fw5_1, this.gw5_1, completion); i.hw5_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.qw5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; Companion_getInstance_170(); if (this.qw5_1.bw2_1.equals(new Long(1, 0))) { var tmp_0 = this; tmp_0.sw5_1 = this.qw5_1.vqo().soj(strings_getInstance().cnj_1); this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var tmp_1 = this.qw5_1.rqo(); suspendResult = localFirstThenRepoIfNull(tmp_1, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(this.qw5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.sw5_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var parentTitle = this.sw5_1; l$ret$1: do { var this_0 = this.qw5_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(VOID, VOID, parentTitle); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1(this.qw5_1, completion); i.rw5_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$lambda(this$0) { return function (title) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel....' call var nextValue = prevValue.hq7(VOID, VOID, title); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.bw6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.bw6_1.rqo().j7f().ibq(this.bw6_1.pqn_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.bw6_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this.bw6_1, completion); i.cw6_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.lw6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.lw6_1.pqo().k7f(); var tmp_1 = tmp_0.oic(this.lw6_1.pqn_1, 1); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.lw6_1, null); suspendResult = tmp_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5(this.lw6_1, completion); i.mw6_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.vw6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.vw6_1.pqo().d7f().pbb(this.vw6_1.pqn_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.vw6_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this.vw6_1, completion); i.ww6_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_8(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this$0, resultContinuation) { this.fw7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.fw7_1.pqo().m7f().efr(this.fw7_1.pqn_1, this.fw7_1.hw7().r64_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_10(this.fw7_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_24(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this.fw7_1, completion); i.gw7_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_10(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this$0, resultContinuation) { this.qw7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.jd_1 = 5; this.id_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.sw7_1 = _get_httpClient__2ty1zc_0(this.qw7_1); var tmp_1 = this; tmp_1.tw7_1 = this.qw7_1.lqo().roa().cnu_1 + 'api/contententryimportjob/importjobs'; var tmp_2 = this; tmp_2.uw7_1 = this.sw7_1; var tmp_3 = this; tmp_3.vw7_1 = this.uw7_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.tw7_1); parameter(this_0, 'contententryuid', this.qw7_1.pqn_1.toString()); header(this_0, 'cache-control', 'no-store'); tmp_4.ww7_1 = this_0; this.ww7_1.x38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.xw7_1 = this.vw7_1; var tmp_6 = this; tmp_6.yw7_1 = this.ww7_1; this.id_1 = 2; suspendResult = (new HttpStatement(this.yw7_1, this.xw7_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.zw7_1 = suspendResult; this.id_1 = 3; suspendResult = bodyAsDecodedText(this.zw7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var remoteImportJobsJson = suspendResult; var remoteImportJobs = this.qw7_1.n4r().t45(ListSerializer(Companion_instance_39.o4r()), remoteImportJobsJson); var tmp$ret$0; l$ret$1: do { var this_1 = this.qw7_1.nw1_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, remoteImportJobs); if (this_1.z1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var state = tmp$ret$0; if (!state.lw2_1.c1()) { this.id_1 = 1; continue $sm; } this.id_1 = 4; continue $sm; case 4: this.jd_1 = 6; this.id_1 = 7; continue $sm; case 5: this.jd_1 = 6; var tmp_7 = this.ld_1; if (tmp_7 instanceof Error) { var e = this.ld_1; var tmp_8 = Napier_getInstance(); tmp_8.l5e(VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda); this.id_1 = 7; continue $sm; } else { throw this.ld_1; } case 6: throw this.ld_1; case 7: this.jd_1 = 6; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 6) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this.qw7_1, completion); i.rw7_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_12(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda($this_launch, this$0, $savedStateHandle, resultContinuation) { this.iw8_1 = $this_launch; this.jw8_1 = this$0; this.kw8_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.iw8_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_0(this.jw8_1, this.kw8_1, null)); if (this.jw8_1.aw2_1.equals(new Long(0, 0)) ? !this.jw8_1.bw2_1.equals(new Long(0, 0)) : false) { launch(this.iw8_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_2(this.jw8_1, null)); } launchSetTitleFromClazzUid(this.jw8_1, this.jw8_1.aw2_1, ContentEntryDetailOverviewViewModel$slambda$slambda$lambda(this.jw8_1)); launch(this.iw8_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_4(this.jw8_1, null)); launch(this.iw8_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_6(this.jw8_1, null)); launch(this.iw8_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_8(this.jw8_1, null)); launch(this.iw8_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_10(this.jw8_1, null)); launch(this.iw8_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_12(this.jw8_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).m78 = function (completion) { return new ContentEntryDetailOverviewViewModel$slambda$slambda(this.iw8_1, this.jw8_1, this.kw8_1, completion); }; function ContentEntryDetailOverviewViewModel$slambda$slambda_0($this_launch, this$0, $savedStateHandle, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda($this_launch, this$0, $savedStateHandle, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this$0, resultContinuation) { this.tw8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).kp7 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).ie = function (p1, $completion) { return this.kp7(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.uw8_1.j7f().hbq(this.tw8_1.pqn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).enz = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this.tw8_1, completion); i.uw8_1 = it; return i; }; function ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.kp7(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda$lambda() { return 'ContentEntryDetailoverview: could not dismiss remote error message'; } function _get_makeContentEntryAvailableOfflineUseCase__dvw4p1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ow1_1; makeContentEntryAvailableOfflineUseCase$factory_0(); return this_0.t2(); } function _get_cancelDownloadUseCase__t8wbc4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pw1_1; cancelDownloadUseCase$factory_0(); return this_0.t2(); } function _get_defaultLaunchContentEntryUseCase__lyydsx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sw1_1; defaultLaunchContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_launchXapiUseCase__jmtlap($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tw1_1; launchXapiUseCase$factory_0(); return this_0.t2(); } function _get_launchEpubUseCase__sunqd7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uw1_1; launchEpubUseCase$factory_0(); return this_0.t2(); } function _get_cancelImportContentEntryUseCase__kqom1e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ww1_1; cancelImportContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_cancelRemoteContentEntryImportUseCase__8yb0xk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xw1_1; cancelRemoteContentEntryImportUseCase$factory_0(); return this_0.t2(); } function _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yw1_1; dismissRemoteContentEntryImportErrorUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zw1_1; httpClient$factory_2(); return this_0.t2(); } function Companion_147() { this.vw8_1 = 'ContentEntryDetailOverviewView'; this.ww8_1 = 'target'; } var Companion_instance_195; function Companion_getInstance_165() { return Companion_instance_195; } function sam$kotlinx_coroutines_flow_FlowCollector$0_24(function_0) { this.xw8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_24).u1d = function (value, $completion) { return this.xw8_1(value, $completion); }; function ContentEntryDetailOverviewViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.gw9_1 = this$0; this.hw9_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.gw9_1.nw1_1, ContentEntryDetailOverviewViewModel$slambda$slambda_0(this.iw9_1, this.gw9_1, this.hw9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda(this.gw9_1, this.hw9_1, completion); i.iw9_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda(this$0, resultContinuation) { this.rw9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 7; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 6; this.jd_1 = 5; this.rw9_1.xqo(Companion_getInstance_98().oq7_1); Napier_getInstance().j5e('ContentEntryDetailOverviewViewModel: onClickOpen launched'); l$ret$1: do { var this_0 = this.rw9_1.nw1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 2; var tmp_0 = this.rw9_1.rqo(); suspendResult = localFirstThenRepoIfNull(tmp_0, ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda_0(this.rw9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.uw9_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.rw9_1.vw1_1; var tmp_2; if (tmp0_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = Companion_instance_97.cmh(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp_2; tmp_1.vw9_1 = tmp1_elvis_lhs == null ? LinkTarget_DEFAULT_getInstance() : tmp1_elvis_lhs; if (!(this.uw9_1 == null)) { var tmp_3 = this; var tmp2_subject = this.uw9_1.pax_1; var tmp_4; if (tmp2_subject === 'xapi') { tmp_4 = _get_launchXapiUseCase__jmtlap(this.rw9_1); } else { if (tmp2_subject === 'epub') { tmp_4 = _get_launchEpubUseCase__sunqd7(this.rw9_1); } else { tmp_4 = null; } } tmp_3.ww9_1 = tmp_4; var tmp_5 = this; var tmp3_elvis_lhs = this.ww9_1; tmp_5.xw9_1 = tmp3_elvis_lhs == null ? _get_defaultLaunchContentEntryUseCase__lyydsx(this.rw9_1) : tmp3_elvis_lhs; Napier_getInstance().j5e('ContentEntryDetailOverviewViewModel: onClickOpen : Launching using ' + this.xw9_1); this.id_1 = 3; Companion_getInstance_126(); var tmp4_safe_receiver = this.rw9_1.vqn_1.ba('courseBlockUid'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toLong_0(tmp4_safe_receiver); suspendResult = this.xw9_1.up6(this.uw9_1, this.rw9_1.xqn_1, this.rw9_1.aw2_1, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs, this.vw9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { Napier_getInstance().j5e('ContentEntryDetailOverviewViewModel: onClickOpen: latestContentEntryVersion = null'); this.rw9_1.tqo().wq7(new Snack(this.rw9_1.vqo().soj(strings_getInstance().ann_1))); this.id_1 = 4; continue $sm; } case 3: this.id_1 = 4; continue $sm; case 4: this.tw9_1 = Unit_instance; this.jd_1 = 7; this.id_1 = 8; continue $sm; case 5: this.jd_1 = 6; var tmp_6 = this.ld_1; if (tmp_6 instanceof Error) { var e = this.ld_1; var tmp_7 = this; this.rw9_1.tqo().wq7(new Snack(this.rw9_1.vqo().soj(strings_getInstance().xmi_1) + (':' + e.message))); Napier_getInstance().n5e('ContentEntryDetailOverview: Exception opening content', e); tmp_7.tw9_1 = Unit_instance; this.jd_1 = 7; this.id_1 = 8; continue $sm; } else { throw this.ld_1; } case 6: this.jd_1 = 7; var t = this.ld_1; this.rw9_1.xqo(Companion_getInstance_98().pq7_1); l$ret$5: do { var this_1 = this.rw9_1.nw1_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); throw t; case 7: throw this.ld_1; case 8: this.jd_1 = 7; this.rw9_1.xqo(Companion_getInstance_98().pq7_1); l$ret$7: do { var this_2 = this.rw9_1.nw1_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 7) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda(this.rw9_1, completion); i.sw9_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$onClickOpen$slambda_0(this$0, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda(this$0, $jobUid, resultContinuation) { this.gwa_1 = this$0; this.hwa_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_cancelRemoteContentEntryImportUseCase__8yb0xk(this.gwa_1).xp4(this.hwa_1, this.gwa_1.nqo(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gwa_1.tqo().wq7(new Snack(this.gwa_1.vqo().soj(strings_getInstance().qmj_1))); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { var e = this.ld_1; this.gwa_1.tqo().wq7(new Snack(this.gwa_1.vqo().soj(strings_getInstance().xmi_1))); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda(this.gwa_1, this.hwa_1, completion); i.iwa_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda_0(this$0, $jobUid, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda(this$0, $jobUid, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda(this$0, $jobUid, resultContinuation) { this.rwa_1 = this$0; this.swa_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo(this.rwa_1).xp4(this.swa_1, this.rwa_1.nqo(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { var e = this.ld_1; var tmp_1 = Napier_getInstance(); tmp_1.p5e(VOID, VOID, ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda$lambda); this.rwa_1.tqo().wq7(new Snack(this.rwa_1.vqo().soj(strings_getInstance().xmi_1))); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda(this.rwa_1, this.swa_1, completion); i.twa_1 = $this$launch; return i; }; function ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda_0(this$0, $jobUid, resultContinuation) { var i = new ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda(this$0, $jobUid, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'ContentEntryDetailOverviewView'); this.nw1_1 = MutableStateFlow(new ContentEntryDetailOverviewUiState()); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(MakeContentEntryAvailableOfflineUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.ow1_1 = Instance(this_0, tmp$ret$0, null).b5d(this, makeContentEntryAvailableOfflineUseCase$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(CancelDownloadUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.pw1_1 = Instance(this_1, tmp$ret$2, null).b5d(this, cancelDownloadUseCase$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_2 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(NodeIdAndAuth), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.qw1_1 = Instance(this_2, tmp$ret$4, null).b5d(this, nodeIdAndAuth$factory()); this.rw1_1 = asStateFlow(this.nw1_1); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call var this_3 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(LaunchContentEntryVersionUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.sw1_1 = Instance(this_3, tmp$ret$6, null).b5d(this, defaultLaunchContentEntryUseCase$factory()); var tmp_7 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_4 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(LaunchXapiUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_7.tw1_1 = InstanceOrNull(this_4, tmp$ret$8, null).b5d(this, launchXapiUseCase$factory()); var tmp_9 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_5 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(LaunchEpubUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_9.uw1_1 = InstanceOrNull(this_5, tmp$ret$10, null).b5d(this, launchEpubUseCase$factory()); this.vw1_1 = savedStateHandle.ba('target'); var tmp_11 = this; // Inline function 'org.kodein.di.instanceOrNull' call var this_6 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(CancelImportContentEntryUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.ww1_1 = InstanceOrNull(this_6, tmp$ret$12, null).b5d(this, cancelImportContentEntryUseCase$factory()); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call var this_7 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.xw1_1 = Instance(this_7, tmp$ret$14, null).b5d(this, cancelRemoteContentEntryImportUseCase$factory()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call var this_8 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.yw1_1 = Instance(this_8, tmp$ret$16, null).b5d(this, dismissRemoteContentEntryImportErrorUseCase$factory()); var tmp_17 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.zw1_1 = Instance(di, tmp$ret$18, null).b5d(this, httpClient$factory_1()); var tmp_19 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_19.aw2_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_20 = this; Companion_getInstance_126(); var tmp0_safe_receiver_0 = savedStateHandle.ba('parentUid'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_20.bw2_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_9 = this.nw1_1; while (true) { var prevValue = this_9.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel.' call var nextValue = prevValue.qw2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.nqo()); if (this_9.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_21 = this.mqo(); launch(tmp_21, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ContentEntryDetailOverviewViewModel).hw7 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.qw1_1; nodeIdAndAuth$factory_0(); return this_0.t2(); }; protoOf(ContentEntryDetailOverviewViewModel).uwa = function () { Napier_getInstance().j5e('ContentEntryDetailOverviewViewModel: onClickOpen'); var tmp = this.mqo(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onClickOpen$slambda_0(this, null)); }; protoOf(ContentEntryDetailOverviewViewModel).vwa = function (jobUid) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda_0(this, jobUid, null)); }; protoOf(ContentEntryDetailOverviewViewModel).wwa = function (jobUid) { var tmp = this.mqo(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda_0(this, jobUid, null)); }; function ContentEntryDetailOverviewUiState(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) { scoreProgress = scoreProgress === VOID ? null : scoreProgress; contentEntry = contentEntry === VOID ? null : contentEntry; latestContentEntryVersion = latestContentEntryVersion === VOID ? null : latestContentEntryVersion; contentEntryButtons = contentEntryButtons === VOID ? null : contentEntryButtons; locallyAvailable = locallyAvailable === VOID ? false : locallyAvailable; markCompleteVisible = markCompleteVisible === VOID ? false : markCompleteVisible; translationVisibile = translationVisibile === VOID ? false : translationVisibile; availableTranslations = availableTranslations === VOID ? emptyList() : availableTranslations; activeImportJobs = activeImportJobs === VOID ? emptyList() : activeImportJobs; remoteImportJobs = remoteImportJobs === VOID ? emptyList() : remoteImportJobs; activeUploadJobs = activeUploadJobs === VOID ? emptyList() : activeUploadJobs; offlineItemAndState = offlineItemAndState === VOID ? null : offlineItemAndState; openButtonEnabled = openButtonEnabled === VOID ? true : openButtonEnabled; activeUserPersonUid = activeUserPersonUid === VOID ? new Long(0, 0) : activeUserPersonUid; this.cw2_1 = scoreProgress; this.dw2_1 = contentEntry; this.ew2_1 = latestContentEntryVersion; this.fw2_1 = contentEntryButtons; this.gw2_1 = locallyAvailable; this.hw2_1 = markCompleteVisible; this.iw2_1 = translationVisibile; this.jw2_1 = availableTranslations; this.kw2_1 = activeImportJobs; this.lw2_1 = remoteImportJobs; this.mw2_1 = activeUploadJobs; this.nw2_1 = offlineItemAndState; this.ow2_1 = openButtonEnabled; this.pw2_1 = activeUserPersonUid; } protoOf(ContentEntryDetailOverviewUiState).xwa = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dw2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iax_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.sav_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).ywa = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dw2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iax_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tav_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).zwa = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.dw2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iax_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.vav_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).awb = function () { return false; }; protoOf(ContentEntryDetailOverviewUiState).bwb = function () { return !(this.cw2_1 == null); }; protoOf(ContentEntryDetailOverviewUiState).cwb = function () { var tmp0_safe_receiver = this.ew2_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewUiState..' call tmp = (tmp0_safe_receiver.vax_1.c7(new Long(0, 0)) > 0 ? tmp0_safe_receiver.vax_1.c7(new Long(0, 0)) > 0 : false) ? tmp0_safe_receiver.vax_1.c7(tmp0_safe_receiver.wax_1) < 0 : false; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).dwb = function () { var tmp0_safe_receiver = this.ew2_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewUiState..' call tmp = tmp0_safe_receiver.vax_1.c7(new Long(0, 0)) > 0; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).ewb = function (importJobProgress) { return importJobProgress.vbb_1.equals(this.pw2_1); }; protoOf(ContentEntryDetailOverviewUiState).fwb = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) { return new ContentEntryDetailOverviewUiState(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid); }; protoOf(ContentEntryDetailOverviewUiState).qw2 = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, $super) { scoreProgress = scoreProgress === VOID ? this.cw2_1 : scoreProgress; contentEntry = contentEntry === VOID ? this.dw2_1 : contentEntry; latestContentEntryVersion = latestContentEntryVersion === VOID ? this.ew2_1 : latestContentEntryVersion; contentEntryButtons = contentEntryButtons === VOID ? this.fw2_1 : contentEntryButtons; locallyAvailable = locallyAvailable === VOID ? this.gw2_1 : locallyAvailable; markCompleteVisible = markCompleteVisible === VOID ? this.hw2_1 : markCompleteVisible; translationVisibile = translationVisibile === VOID ? this.iw2_1 : translationVisibile; availableTranslations = availableTranslations === VOID ? this.jw2_1 : availableTranslations; activeImportJobs = activeImportJobs === VOID ? this.kw2_1 : activeImportJobs; remoteImportJobs = remoteImportJobs === VOID ? this.lw2_1 : remoteImportJobs; activeUploadJobs = activeUploadJobs === VOID ? this.mw2_1 : activeUploadJobs; offlineItemAndState = offlineItemAndState === VOID ? this.nw2_1 : offlineItemAndState; openButtonEnabled = openButtonEnabled === VOID ? this.ow2_1 : openButtonEnabled; activeUserPersonUid = activeUserPersonUid === VOID ? this.pw2_1 : activeUserPersonUid; return $super === VOID ? this.fwb(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) : $super.fwb.call(this, scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid); }; protoOf(ContentEntryDetailOverviewUiState).toString = function () { return 'ContentEntryDetailOverviewUiState(scoreProgress=' + this.cw2_1 + ', contentEntry=' + this.dw2_1 + ', latestContentEntryVersion=' + this.ew2_1 + ', contentEntryButtons=' + this.fw2_1 + ', locallyAvailable=' + this.gw2_1 + ', markCompleteVisible=' + this.hw2_1 + ', translationVisibile=' + this.iw2_1 + ', availableTranslations=' + this.jw2_1 + ', activeImportJobs=' + this.kw2_1 + ', remoteImportJobs=' + this.lw2_1 + ', activeUploadJobs=' + this.mw2_1 + ', offlineItemAndState=' + this.nw2_1 + ', openButtonEnabled=' + this.ow2_1 + ', activeUserPersonUid=' + this.pw2_1.toString() + ')'; }; protoOf(ContentEntryDetailOverviewUiState).hashCode = function () { var result = this.cw2_1 == null ? 0 : this.cw2_1.hashCode(); result = imul(result, 31) + (this.dw2_1 == null ? 0 : this.dw2_1.hashCode()) | 0; result = imul(result, 31) + (this.ew2_1 == null ? 0 : this.ew2_1.hashCode()) | 0; result = imul(result, 31) + (this.fw2_1 == null ? 0 : hashCode(this.fw2_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.gw2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hw2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iw2_1) | 0; result = imul(result, 31) + hashCode(this.jw2_1) | 0; result = imul(result, 31) + hashCode(this.kw2_1) | 0; result = imul(result, 31) + hashCode(this.lw2_1) | 0; result = imul(result, 31) + hashCode(this.mw2_1) | 0; result = imul(result, 31) + (this.nw2_1 == null ? 0 : this.nw2_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.ow2_1) | 0; result = imul(result, 31) + this.pw2_1.hashCode() | 0; return result; }; protoOf(ContentEntryDetailOverviewUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryDetailOverviewUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryDetailOverviewUiState ? other : THROW_CCE(); if (!equals(this.cw2_1, tmp0_other_with_cast.cw2_1)) return false; if (!equals(this.dw2_1, tmp0_other_with_cast.dw2_1)) return false; if (!equals(this.ew2_1, tmp0_other_with_cast.ew2_1)) return false; if (!equals(this.fw2_1, tmp0_other_with_cast.fw2_1)) return false; if (!(this.gw2_1 === tmp0_other_with_cast.gw2_1)) return false; if (!(this.hw2_1 === tmp0_other_with_cast.hw2_1)) return false; if (!(this.iw2_1 === tmp0_other_with_cast.iw2_1)) return false; if (!equals(this.jw2_1, tmp0_other_with_cast.jw2_1)) return false; if (!equals(this.kw2_1, tmp0_other_with_cast.kw2_1)) return false; if (!equals(this.lw2_1, tmp0_other_with_cast.lw2_1)) return false; if (!equals(this.mw2_1, tmp0_other_with_cast.mw2_1)) return false; if (!equals(this.nw2_1, tmp0_other_with_cast.nw2_1)) return false; if (!(this.ow2_1 === tmp0_other_with_cast.ow2_1)) return false; if (!this.pw2_1.equals(tmp0_other_with_cast.pw2_1)) return false; return true; }; function makeContentEntryAvailableOfflineUseCase$factory() { return getPropertyCallableRef('makeContentEntryAvailableOfflineUseCase', 1, KProperty1, function (receiver) { return _get_makeContentEntryAvailableOfflineUseCase__dvw4p1(receiver); }, null); } function cancelDownloadUseCase$factory() { return getPropertyCallableRef('cancelDownloadUseCase', 1, KProperty1, function (receiver) { return _get_cancelDownloadUseCase__t8wbc4(receiver); }, null); } function nodeIdAndAuth$factory() { return getPropertyCallableRef('nodeIdAndAuth', 1, KProperty1, function (receiver) { return receiver.hw7(); }, null); } function defaultLaunchContentEntryUseCase$factory() { return getPropertyCallableRef('defaultLaunchContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_defaultLaunchContentEntryUseCase__lyydsx(receiver); }, null); } function launchXapiUseCase$factory() { return getPropertyCallableRef('launchXapiUseCase', 1, KProperty1, function (receiver) { return _get_launchXapiUseCase__jmtlap(receiver); }, null); } function launchEpubUseCase$factory() { return getPropertyCallableRef('launchEpubUseCase', 1, KProperty1, function (receiver) { return _get_launchEpubUseCase__sunqd7(receiver); }, null); } function cancelImportContentEntryUseCase$factory() { return getPropertyCallableRef('cancelImportContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_cancelImportContentEntryUseCase__kqom1e(receiver); }, null); } function cancelRemoteContentEntryImportUseCase$factory() { return getPropertyCallableRef('cancelRemoteContentEntryImportUseCase', 1, KProperty1, function (receiver) { return _get_cancelRemoteContentEntryImportUseCase__8yb0xk(receiver); }, null); } function dismissRemoteContentEntryImportErrorUseCase$factory() { return getPropertyCallableRef('dismissRemoteContentEntryImportErrorUseCase', 1, KProperty1, function (receiver) { return _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo(receiver); }, null); } function httpClient$factory_1() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_0(receiver); }, null); } function makeContentEntryAvailableOfflineUseCase$factory_0() { return getPropertyCallableRef('makeContentEntryAvailableOfflineUseCase', 1, KProperty1, function (receiver) { return _get_makeContentEntryAvailableOfflineUseCase__dvw4p1(receiver); }, null); } function cancelDownloadUseCase$factory_0() { return getPropertyCallableRef('cancelDownloadUseCase', 1, KProperty1, function (receiver) { return _get_cancelDownloadUseCase__t8wbc4(receiver); }, null); } function nodeIdAndAuth$factory_0() { return getPropertyCallableRef('nodeIdAndAuth', 1, KProperty1, function (receiver) { return receiver.hw7(); }, null); } function defaultLaunchContentEntryUseCase$factory_0() { return getPropertyCallableRef('defaultLaunchContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_defaultLaunchContentEntryUseCase__lyydsx(receiver); }, null); } function launchXapiUseCase$factory_0() { return getPropertyCallableRef('launchXapiUseCase', 1, KProperty1, function (receiver) { return _get_launchXapiUseCase__jmtlap(receiver); }, null); } function launchEpubUseCase$factory_0() { return getPropertyCallableRef('launchEpubUseCase', 1, KProperty1, function (receiver) { return _get_launchEpubUseCase__sunqd7(receiver); }, null); } function cancelImportContentEntryUseCase$factory_0() { return getPropertyCallableRef('cancelImportContentEntryUseCase', 1, KProperty1, function (receiver) { return _get_cancelImportContentEntryUseCase__kqom1e(receiver); }, null); } function cancelRemoteContentEntryImportUseCase$factory_0() { return getPropertyCallableRef('cancelRemoteContentEntryImportUseCase', 1, KProperty1, function (receiver) { return _get_cancelRemoteContentEntryImportUseCase__8yb0xk(receiver); }, null); } function dismissRemoteContentEntryImportErrorUseCase$factory_0() { return getPropertyCallableRef('dismissRemoteContentEntryImportErrorUseCase', 1, KProperty1, function (receiver) { return _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo(receiver); }, null); } function httpClient$factory_2() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_0(receiver); }, null); } function get_progress(_this__u8e3s4) { var tmp; if (_this__u8e3s4.sbb_1.c7(new Long(0, 0)) > 0) { tmp = _this__u8e3s4.rbb_1.ad() / _this__u8e3s4.sbb_1.ad(); } else { tmp = 0.0; } return tmp; } function ContentEntryEditViewModel$slambda$slambda$lambda($newContentEntryUid, this$0, $savedStateHandle) { return function ($this$shallowCopy) { $this$shallowCopy.oav_1 = $newContentEntryUid; var tmp; if (this$0.iwc_1) { var tmp_0 = $this$shallowCopy; tmp_0.kaw_1 = 2; var tmp_1 = $this$shallowCopy; Companion_getInstance_126(); var tmp0_safe_receiver = $savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.jaw_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; tmp = Unit_instance; } else { var tmp_2 = $this$shallowCopy; tmp_2.kaw_1 = 1; $this$shallowCopy.jaw_1 = this$0.nqo(); tmp = Unit_instance; } return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda($newDecription) { return function ($this$shallowCopy) { $this$shallowCopy.qav_1 = $newDecription; return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.rwc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).lqb = function (it, $completion) { var tmp = this.mqb(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.swc_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var newDecription = tmp_1; var tmp1_safe_receiver = this.rwc_1.fwc_1.t2().twc_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qk7_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_8(tmp2_safe_receiver, ContentEntryEditViewModel$slambda$slambda$slambda$lambda(newDecription)); } this.rwc_1.fwd(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).mqb = function (it, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda(this.rwc_1, completion); i.swc_1 = it; return i; }; function ContentEntryEditViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.lqb(it, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda$lambda($newSubtitleTrack) { return function (it) { return it.coh_1 === $newSubtitleTrack.coh_1; }; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda_0($newSubtitleTrack) { return function (prev) { return replaceOrAppend(prev, $newSubtitleTrack, ContentEntryEditViewModel$slambda$slambda$slambda$lambda$lambda($newSubtitleTrack)); }; } function ContentEntryEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.owd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).lqb = function (navResult, $completion) { var tmp = this.mqb(navResult, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.pwd_1.sqa_1; var tmp0_elvis_lhs = tmp_0 instanceof SubtitleTrack ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var newSubtitleTrack = tmp_1; updateSubtitles(this.owd_1, ContentEntryEditViewModel$slambda$slambda$slambda$lambda_0(newSubtitleTrack)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).mqb = function (navResult, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda_1(this.owd_1, completion); i.pwd_1 = navResult; return i; }; function ContentEntryEditViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (navResult, $completion) { return i.lqb(navResult, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda(this$0, resultContinuation) { this.ywd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda).cwe = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.cwe(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.zwd_1; var tmp_1; if (!this.ywd_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.awe_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w7d(); if (this.awe_1 == null) { this.bwe_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.awe_1.tau(this.ywd_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.bwe_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var tmp2_safe_receiver = this.bwe_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = null; } else { var tmp_3; if (!(tmp2_safe_receiver.cax_1 == null)) { var tmp_4 = tmp2_safe_receiver.cax_1; var tmp0_elvis_lhs = tmp2_safe_receiver.dax_1; tmp_3 = new ContentEntryAndContentJob(tmp_4, VOID, VOID, tmp0_elvis_lhs == null ? new ContentEntryPicture2(this.ywd_1.dqu_1) : tmp0_elvis_lhs); } else { tmp_3 = null; } tmp_2 = tmp_3; } return tmp_2; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new ContentEntryEditViewModel$slambda$slambda(this.ywd_1, completion); i.zwd_1 = db; return i; }; function ContentEntryEditViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryEditViewModel$slambda$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.cwe(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.lwe_1 = this$0; this.mwe_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_1).owe = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.owe($completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = get_doorPrimaryKeyManager(this.lwe_1.pqo()); tmp_0.nwe_1 = tmp_1.o62(42); this.id_1 = 1; suspendResult = this.lwe_1.aqp(this.mwe_1, 'metadata', Companion_instance_80.o4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var importedMetaData = suspendResult; var tmp_2; if (!(importedMetaData == null)) { var tmp0_safe_receiver = importedMetaData.poh_1; var pictureUri = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gax_1; if (!(pictureUri == null)) { Companion_getInstance_124(); this.mwe_1.yqj('initPicUri', ''); } var tmp_3 = shallowCopy_8(importedMetaData.moh_1, ContentEntryEditViewModel$slambda$slambda$lambda(this.nwe_1, this.lwe_1, this.mwe_1)); var tmp1_cjiPluginId = importedMetaData.noh_1; var tmp2_sourceUri = importedMetaData.moh_1.xav_1; var tmp3_cjiOriginalFilename = importedMetaData.ooh_1; var tmp4_cjiOwnerPersonUid = this.lwe_1.nqo(); var tmp_4 = new ContentEntryImportJob(VOID, tmp2_sourceUri, tmp3_cjiOriginalFilename, this.nwe_1, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_cjiPluginId, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_cjiOwnerPersonUid); var tmp5_safe_receiver = importedMetaData.poh_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.gki(this.nwe_1); var this_0 = new ContentEntryAndContentJob(tmp_3, VOID, tmp_4, tmp6_elvis_lhs == null ? new ContentEntryPicture2(this.nwe_1) : tmp6_elvis_lhs); var tmp_5 = this.lwe_1.vqo(); var tmp_6 = strings_getInstance().unc_1; var tmp0_elvis_lhs = importedMetaData.ooh_1; var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? importedMetaData.moh_1.xav_1 : tmp0_elvis_lhs; this.mwe_1.yqj('savedTitle', tmp_5.toj(tmp_6, [tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs])); tmp_2 = this_0; } else { var this_1 = new ContentEntry(); this_1.oav_1 = this.nwe_1; var tmp_7 = this_1; var tmp0_safe_receiver_0 = this.mwe_1.ba('leaf'); tmp_7.daw_1 = (tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0)) === true; this_1.jaw_1 = this.lwe_1.nqo(); tmp_2 = new ContentEntryAndContentJob(this_1, VOID, VOID, new ContentEntryPicture2(this.nwe_1)); } return tmp_2; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).m78 = function (completion) { return new ContentEntryEditViewModel$slambda$slambda_1(this.lwe_1, this.mwe_1, completion); }; function ContentEntryEditViewModel$slambda$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new ContentEntryEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($completion) { return i.owe($completion); }; l.$arity = 0; return l; } function ContentEntryEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.fwc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel...' call var tmp1_safe_receiver = it == null ? null : it.sk7_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramSubtitles(tmp1_safe_receiver, this$0.n4r()); var nextValue = prevValue.pwe(it, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ContentEntryEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.ywe_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ywe_1.zqo(this.ywe_1.sqo(), 'contentEntryDesc'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_0(this.ywe_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_25(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_3(this.ywe_1, completion); i.zwe_1 = $this$launch; return i; }; function ContentEntryEditViewModel$slambda$slambda_4(this$0, resultContinuation) { var i = new ContentEntryEditViewModel$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.iwf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.iwf_1.zqo(this.iwf_1.sqo(), 'subtitleKey'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_2(this.iwf_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_25(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_5(this.iwf_1, completion); i.jwf_1 = $this$launch; return i; }; function ContentEntryEditViewModel$slambda$slambda_6(this$0, resultContinuation) { var i = new ContentEntryEditViewModel$slambda$slambda_5(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function updateSubtitles($this, function_0) { var tmp$ret$2; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = $this.fwc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.updateSubtitles.' call var updatedSubtitles = function_0(prevValue.ewd_1); var tmp0_safe_receiver = prevValue.twc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk7_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramMap(tmp1_safe_receiver, $this.n4r()); var prevContentJobParamMap = tmp2_elvis_lhs == null ? emptyMap() : tmp2_elvis_lhs; // Inline function 'kotlin.also' call var this_1 = toMutableMap(prevContentJobParamMap); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.updateSubtitles..' call // Inline function 'kotlin.collections.set' call var key = 'subtitles'; var value = $this.n4r().s45(ListSerializer(Companion_instance_79.o4r()), updatedSubtitles); this_1.s(key, value); var contentJobParam = this_1; var tmp4_safe_receiver = prevValue.twc_1; var tmp; if (tmp4_safe_receiver == null) { tmp = null; } else { var tmp3_safe_receiver = prevValue.twc_1.sk7_1; tmp = tmp4_safe_receiver.vk7(VOID, VOID, tmp3_safe_receiver == null ? null : tmp3_safe_receiver.vkh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.n4r().s45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), contentJobParam))); } var tmp5_entity = tmp; var nextValue = prevValue.pwe(tmp5_entity, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedSubtitles); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$2 = nextValue; break $l$block; } } } var updatedState = tmp$ret$2; scheduleEntityCommit($this, updatedState.twc_1); } function scheduleEntityCommit($this, entity) { // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_40.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = $this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = $this; var tmp_0 = $this.mqo(); tmp.cqu_1 = launch(tmp_0, VOID, VOID, ContentEntryEditViewModel$scheduleEntityCommit$slambda_0(commitDelay, entity, $this, key, serializer, null)); } function hasErrors_2(_this__u8e3s4, $this) { return !(_this__u8e3s4.awd_1 == null); } function Companion_148() { this.kwf_1 = 'leaf'; this.lwf_1 = 'courseBlock'; this.mwf_1 = 'ContentEntryEdit'; this.nwf_1 = 'metadata'; this.owf_1 = 'savedTitle'; this.pwf_1 = 'goToOnContentEntryDone'; this.qwf_1 = 'contentEntryDesc'; this.rwf_1 = 'subtitleKey'; this.swf_1 = 1; this.twf_1 = 2; } var Companion_instance_196; function Companion_getInstance_166() { return Companion_instance_196; } function sam$kotlinx_coroutines_flow_FlowCollector$0_25(function_0) { this.uwf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_25).u1d = function (value, $completion) { return this.uwf_1(value, $completion); }; function ContentEntryEditViewModel$slambda(this$0, resultContinuation) { this.dwg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (this.dwg_1.iwc_1) { this.fwg_1 = true; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var tmp_0 = this.ewg_1.q7f(); var tmp_1 = this.dwg_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.vi0(tmp_1, new Long(65536, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fwg_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.fwg_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda).enz = function (db, completion) { var i = new ContentEntryEditViewModel$slambda(this.dwg_1, completion); i.ewg_1 = db; return i; }; function ContentEntryEditViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryEditViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.owg_1 = this$0; this.pwg_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_40.o4r(); var tmp_1 = ContentEntryEditViewModel$slambda$slambda_0(this.owg_1, null); var tmp_2 = ContentEntryEditViewModel$slambda$slambda_2(this.owg_1, this.pwg_1, null); suspendResult = this.owg_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, ContentEntryEditViewModel$slambda$lambda(this.owg_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var it = suspendResult; Companion_getInstance_124(); var tmp1_safe_receiver = it == null ? null : it.tk7_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gax_1; setIfNoValueSetYet(this.pwg_1, 'initPicUri', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); var tmp0_safe_receiver = this.owg_1.fwc_1.t2().twc_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qk7_1; var isLeaf = (tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.daw_1) === true; var savedStateTitle = this.pwg_1.ba('savedTitle'); var title = !(savedStateTitle == null) ? savedStateTitle : (this.owg_1.dqu_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.owg_1.vqo().soj(strings_getInstance().una_1) : (!this.owg_1.dqu_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.owg_1.vqo().soj(strings_getInstance().anm_1) : this.owg_1.vqo().soj(strings_getInstance().znl_1); l$ret$1: do { var this_0 = this.owg_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.owg_1.vqo(); var tmp0_subject = this.owg_1.hwc_1; var tmp_4 = tmp_3.soj(tmp0_subject === 1 ? strings_getInstance().cmk_1 : tmp0_subject === 2 ? strings_getInstance().ams_1 : strings_getInstance().on3_1); var nextValue = prevValue.hq7(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_4, VOID, ContentEntryEditViewModel$onClickSave$ref(this.owg_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.owg_1.fwc_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.pwe(VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.qwg_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_4(this.owg_1, null)); launch(this.qwg_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_6(this.owg_1, null)); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new ContentEntryEditViewModel$slambda_1(this.owg_1, this.pwg_1, completion); i.qwg_1 = $this$launchIfHasPermission; return i; }; function ContentEntryEditViewModel$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new ContentEntryEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$scheduleEntityCommit$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.zwg_1 = $commitDelay; this.awh_1 = $entity; this.bwh_1 = $this; this.cwh_1 = $key; this.dwh_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.zwg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.awh_1 == null)) { this.id_1 = 2; suspendResult = this.bwh_1.bqp(this.bwh_1.vqn_1, this.cwh_1, this.dwh_1, this.awh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$scheduleEntityCommit$slambda(this.zwg_1, this.awh_1, this.bwh_1, this.cwh_1, this.dwh_1, completion); i.ewh_1 = $this$launch; return i; }; function ContentEntryEditViewModel$scheduleEntityCommit$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ContentEntryEditViewModel$scheduleEntityCommit$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$onClickDeleteSubtitleTrack$lambda($subtitleTrack) { return function (prev) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = prev.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onClickDeleteSubtitleTrack..' call if (!(element.coh_1 === $subtitleTrack.coh_1)) { destination.i1(element); } } return destination; }; } function ContentEntryEditViewModel$onClickSave$slambda(this$0, $contentEntryVal, $entityVal, resultContinuation) { this.nwh_1 = this$0; this.owh_1 = $contentEntryVal; this.pwh_1 = $entityVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; Companion_getInstance_126(); var tmp0_safe_receiver = this.nwh_1.vqn_1.ba('parentUid'); tmp_0.rwh_1 = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); this.id_1 = 1; var tmp_1 = this.nwh_1.dqu_1.equals(new Long(0, 0)) ? this.rwh_1 : null; Companion_getInstance_124(); suspendResult = this.nwh_1.dwc_1.npb(this.owh_1, tmp_1, this.pwh_1.tk7_1, this.nwh_1.vqn_1.ba('initPicUri'), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.swh_1 = this.pwh_1.sk7_1; if (!(this.swh_1 == null)) { this.id_1 = 2; suspendResult = this.nwh_1.ewc_1.up5(this.swh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: Companion_getInstance_126(); var popUpToOnFinish = this.nwh_1.vqn_1.ba('popUpToOnFinish'); if (!(this.nwh_1.wqo() == null)) { this.nwh_1.gqu(this.owh_1); } else { this.nwh_1.xqn_1.hqa(popUpToOnFinish == null ? this.nwh_1.wqn_1 : popUpToOnFinish, true); } if (hasErrors_2(this.nwh_1.fwc_1.t2(), this.nwh_1)) { this.nwh_1.xqo(Companion_getInstance_98().pq7_1); l$ret$1: do { var this_0 = this.nwh_1.fwc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pwe(VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$onClickSave$slambda(this.nwh_1, this.owh_1, this.pwh_1, completion); i.qwh_1 = $this$launch; return i; }; function ContentEntryEditViewModel$onClickSave$slambda_0(this$0, $contentEntryVal, $entityVal, resultContinuation) { var i = new ContentEntryEditViewModel$onClickSave$slambda(this$0, $contentEntryVal, $entityVal, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel(di, savedStateHandle, saveContentEntryUseCase, enqueueContentEntryImportUseCase) { var tmp; if (saveContentEntryUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(SaveContentEntryUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp = tmp_0.e58(tmp$ret$0, null); } else { tmp = saveContentEntryUseCase; } saveContentEntryUseCase = tmp; var tmp_2; if (enqueueContentEntryImportUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(EnqueueContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$0_0 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_2 = tmp_3.e58(tmp$ret$0_0, null); } else { tmp_2 = enqueueContentEntryImportUseCase; } enqueueContentEntryImportUseCase = tmp_2; UstadEditViewModel.call(this, di, savedStateHandle, 'ContentEntryEdit'); this.dwc_1 = saveContentEntryUseCase; this.ewc_1 = enqueueContentEntryImportUseCase; this.fwc_1 = MutableStateFlow(new ContentEntryEditUiState()); this.gwc_1 = asStateFlow(this.fwc_1); var tmp_5 = this; var tmp0_safe_receiver = savedStateHandle.ba('goToOnContentEntryDone'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); tmp_5.hwc_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; this.iwc_1 = this.hwc_1 === 1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_6 = ContentEntryEditViewModel$slambda_0(this, null); this.hqp(tmp_6, VOID, VOID, ContentEntryEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ContentEntryEditViewModel).fwd = function (contentEntry) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.fwc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onContentEntryChanged.' call var tmp0_safe_receiver = prevValue.twc_1; var nextValue = prevValue.pwe(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vk7(contentEntry)); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.twc_1); }; protoOf(ContentEntryEditViewModel).bua = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.fwc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.twc_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.twc_1.tk7_1; tmp = tmp1_safe_receiver.vk7(VOID, VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gki(VOID, VOID, pictureUri)); } var nextValue = prevValue.pwe(tmp); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.twc_1); }; protoOf(ContentEntryEditViewModel).twh = function (compressionLevel) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onSetCompressionLevel.' call var tmp1_safe_receiver = prevValue.twc_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.twc_1.sk7_1; tmp = tmp1_safe_receiver.vk7(VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vkh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, compressionLevel.jp2_1)); } var nextValue = prevValue.pwe(tmp); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryEditViewModel).uwh = function (uri, fileName) { var tmp = Companion_instance_79.o4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onSubtitleFileAdded.' call // Inline function 'kotlin.collections.set' call this_0.s('uri', uri); // Inline function 'kotlin.collections.set' call var key = 'filename'; this_0.s(key, fileName); var tmp$ret$2 = this_0.f3(); this.dqp('GetSubtitle', 'subtitleKey', null, tmp, tmp$ret$2); }; protoOf(ContentEntryEditViewModel).vwh = function (subtitleTrack) { this.dqp('SubtitleEdit', 'subtitleKey', subtitleTrack, Companion_instance_79.o4r()); }; protoOf(ContentEntryEditViewModel).wwh = function (subtitleTrack) { updateSubtitles(this, ContentEntryEditViewModel$onClickDeleteSubtitleTrack$lambda(subtitleTrack)); }; protoOf(ContentEntryEditViewModel).ysb = function () { var entityVal = this.fwc_1.t2().twc_1; var tmp0_safe_receiver = this.fwc_1.t2().twc_1; var contentEntry = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qk7_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onClickSave.' call var tmp; // Inline function 'kotlin.text.isNullOrBlank' call var this_1 = contentEntry == null ? null : contentEntry.pav_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : isBlank(this_1)) { tmp = this.vqo().soj(strings_getInstance().gnm_1); } else { tmp = null; } var nextValue = prevValue.pwe(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_2(this.fwc_1.t2(), this)) { this.xqo(Companion_getInstance_98().pq7_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.fwc_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onClickSave.' call var nextValue_0 = prevValue_0.pwe(VOID, VOID, VOID, VOID, true); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var tmp2_elvis_lhs = entityVal == null ? null : entityVal.qk7_1; var tmp_0; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp2_elvis_lhs; } var contentEntryVal = tmp_0; if (!this.fwc_1.t2().xwc_1) { return Unit_instance; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.fwc_1; while (true) { var prevValue_1 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onClickSave.' call var nextValue_1 = prevValue_1.pwe(VOID, VOID, VOID, VOID, false); if (this_3.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (this.hwc_1 === 1) { Companion_getInstance_175(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_4 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onClickSave.' call // Inline function 'kotlin.collections.set' call Companion_getInstance_175(); var key = 'SelectedContentEntry'; var value = this.n4r().s45(Companion_instance_40.o4r(), entityVal); this_4.s(key, value); this.jqp(this_4, Companion_getInstance_175().dwi_1); var tmp$ret$9 = this_4.f3(); this.xqn_1.tp6('CourseBlockEdit', tmp$ret$9); } else if (this.hwc_1 === 2) { this.gqu(entityVal); } else { var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, ContentEntryEditViewModel$onClickSave$slambda_0(this, contentEntryVal, entityVal, null)); } }; function ContentEntryEditUiState(entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles) { entity = entity === VOID ? null : entity; licenceOptions = licenceOptions === VOID ? emptyList() : licenceOptions; storageOptions = storageOptions === VOID ? emptyList() : storageOptions; courseBlockEditUiState = courseBlockEditUiState === VOID ? new CourseBlockEditUiState() : courseBlockEditUiState; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; updateContentVisible = updateContentVisible === VOID ? false : updateContentVisible; importError = importError === VOID ? null : importError; titleError = titleError === VOID ? null : titleError; selectedContainerStorageDir = selectedContainerStorageDir === VOID ? null : selectedContainerStorageDir; metadataResult = metadataResult === VOID ? null : metadataResult; compressionEnabled = compressionEnabled === VOID ? false : compressionEnabled; subtitles = subtitles === VOID ? emptyList() : subtitles; this.twc_1 = entity; this.uwc_1 = licenceOptions; this.vwc_1 = storageOptions; this.wwc_1 = courseBlockEditUiState; this.xwc_1 = fieldsEnabled; this.ywc_1 = updateContentVisible; this.zwc_1 = importError; this.awd_1 = titleError; this.bwd_1 = selectedContainerStorageDir; this.cwd_1 = metadataResult; this.dwd_1 = compressionEnabled; this.ewd_1 = subtitles; } protoOf(ContentEntryEditUiState).ewi = function () { var tmp0_safe_receiver = this.twc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk7_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.wbc_1; return tmp === 101; }; protoOf(ContentEntryEditUiState).fwi = function (entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles) { return new ContentEntryEditUiState(entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles); }; protoOf(ContentEntryEditUiState).pwe = function (entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles, $super) { entity = entity === VOID ? this.twc_1 : entity; licenceOptions = licenceOptions === VOID ? this.uwc_1 : licenceOptions; storageOptions = storageOptions === VOID ? this.vwc_1 : storageOptions; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.wwc_1 : courseBlockEditUiState; fieldsEnabled = fieldsEnabled === VOID ? this.xwc_1 : fieldsEnabled; updateContentVisible = updateContentVisible === VOID ? this.ywc_1 : updateContentVisible; importError = importError === VOID ? this.zwc_1 : importError; titleError = titleError === VOID ? this.awd_1 : titleError; selectedContainerStorageDir = selectedContainerStorageDir === VOID ? this.bwd_1 : selectedContainerStorageDir; metadataResult = metadataResult === VOID ? this.cwd_1 : metadataResult; compressionEnabled = compressionEnabled === VOID ? this.dwd_1 : compressionEnabled; subtitles = subtitles === VOID ? this.ewd_1 : subtitles; return $super === VOID ? this.fwi(entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles) : $super.fwi.call(this, entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles); }; protoOf(ContentEntryEditUiState).toString = function () { return 'ContentEntryEditUiState(entity=' + this.twc_1 + ', licenceOptions=' + this.uwc_1 + ', storageOptions=' + this.vwc_1 + ', courseBlockEditUiState=' + this.wwc_1 + ', fieldsEnabled=' + this.xwc_1 + ', updateContentVisible=' + this.ywc_1 + ', importError=' + this.zwc_1 + ', titleError=' + this.awd_1 + ', selectedContainerStorageDir=' + this.bwd_1 + ', metadataResult=' + this.cwd_1 + ', compressionEnabled=' + this.dwd_1 + ', subtitles=' + this.ewd_1 + ')'; }; protoOf(ContentEntryEditUiState).hashCode = function () { var result = this.twc_1 == null ? 0 : this.twc_1.hashCode(); result = imul(result, 31) + hashCode(this.uwc_1) | 0; result = imul(result, 31) + hashCode(this.vwc_1) | 0; result = imul(result, 31) + this.wwc_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.xwc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ywc_1) | 0; result = imul(result, 31) + (this.zwc_1 == null ? 0 : getStringHashCode(this.zwc_1)) | 0; result = imul(result, 31) + (this.awd_1 == null ? 0 : getStringHashCode(this.awd_1)) | 0; result = imul(result, 31) + (this.bwd_1 == null ? 0 : hashCode(this.bwd_1)) | 0; result = imul(result, 31) + (this.cwd_1 == null ? 0 : this.cwd_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.dwd_1) | 0; result = imul(result, 31) + hashCode(this.ewd_1) | 0; return result; }; protoOf(ContentEntryEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryEditUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryEditUiState ? other : THROW_CCE(); if (!equals(this.twc_1, tmp0_other_with_cast.twc_1)) return false; if (!equals(this.uwc_1, tmp0_other_with_cast.uwc_1)) return false; if (!equals(this.vwc_1, tmp0_other_with_cast.vwc_1)) return false; if (!this.wwc_1.equals(tmp0_other_with_cast.wwc_1)) return false; if (!(this.xwc_1 === tmp0_other_with_cast.xwc_1)) return false; if (!(this.ywc_1 === tmp0_other_with_cast.ywc_1)) return false; if (!(this.zwc_1 == tmp0_other_with_cast.zwc_1)) return false; if (!(this.awd_1 == tmp0_other_with_cast.awd_1)) return false; if (!equals(this.bwd_1, tmp0_other_with_cast.bwd_1)) return false; if (!equals(this.cwd_1, tmp0_other_with_cast.cwd_1)) return false; if (!(this.dwd_1 === tmp0_other_with_cast.dwd_1)) return false; if (!equals(this.ewd_1, tmp0_other_with_cast.ewd_1)) return false; return true; }; function ContentEntryGetMetadataViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.cwj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getmetadata.ContentEntryGetMetadataViewModel...' call var nextValue = prevValue.fwj(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_149() { this.gwj_1 = 'uri'; this.hwj_1 = 'filename'; this.iwj_1 = 'ContentEntryGetMetadata'; } var Companion_instance_197; function Companion_getInstance_167() { return Companion_instance_197; } function ContentEntryGetMetadataViewModel$slambda(this$0, $uriArg, $fileName, resultContinuation) { this.rwj_1 = this$0; this.swj_1 = $uriArg; this.twj_1 = $fileName; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryGetMetadataViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryGetMetadataViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryGetMetadataViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.vwj_1 = this.rwj_1.bwj_1; this.wwj_1 = Companion_getInstance_3().p2r(this.swj_1); this.xwj_1 = this.rwj_1.lqo().roa(); this.id_1 = 1; suspendResult = this.vwj_1.np3(this.wwj_1, this.twj_1, this.xwj_1, ContentEntryGetMetadataViewModel$slambda$lambda(this.rwj_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var metadataResult = suspendResult; var this_0 = LinkedHashMap_init_$Create$(); this_0.s('metadata', this.rwj_1.n4r().s45(Companion_instance_80.o4r(), metadataResult)); this.rwj_1.jqp(this_0, Companion_getInstance_175().dwi_1); Companion_getInstance_117(); this.rwj_1.iqp(this_0, 'result_viewname'); Companion_getInstance_117(); this.rwj_1.iqp(this_0, 'result_key'); Companion_getInstance_126(); this.rwj_1.iqp(this_0, 'parentUid'); this.rwj_1.xqn_1.gqa('ContentEntryEdit', this_0.f3(), new UstadGoOptions('ContentEntryGetMetadata', true)); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { var e = this.ld_1; var tmp_1; if (e instanceof InvalidContentException) { tmp_1 = this.rwj_1.vqo().soj(strings_getInstance().fmu_1) + ' : ' + e.message; } else { if (e instanceof UnsupportedContentException) { var tmp_2 = this.rwj_1.vqo(); var tmp_3 = strings_getInstance().hmu_1; var tmp3_elvis_lhs = e.message; tmp_1 = tmp_2.toj(tmp_3, [tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs]); } else { tmp_1 = this.rwj_1.vqo().soj(strings_getInstance().xmi_1) + ' : other: ' + e.message; } } var errorMessage = tmp_1; l$ret$1: do { var this_1 = this.rwj_1.cwj_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.fwj(prevValue.ewj_1.up3(VOID, errorMessage)); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ContentEntryGetMetadataViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryGetMetadataViewModel$slambda(this.rwj_1, this.swj_1, this.twj_1, completion); i.uwj_1 = $this$launch; return i; }; function ContentEntryGetMetadataViewModel$slambda_0(this$0, $uriArg, $fileName, resultContinuation) { var i = new ContentEntryGetMetadataViewModel$slambda(this$0, $uriArg, $fileName, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryGetMetadataViewModel(di, savedStateHandle, contentEntryGetMetaDataFromUriUseCase) { var tmp; if (contentEntryGetMetaDataFromUriUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp = tmp_0.e58(tmp$ret$0, null); } else { tmp = contentEntryGetMetaDataFromUriUseCase; } contentEntryGetMetaDataFromUriUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryGetMetadata'); this.bwj_1 = contentEntryGetMetaDataFromUriUseCase; this.cwj_1 = MutableStateFlow(new ContentEntryGetMetadataUiState()); this.dwj_1 = asStateFlow(this.cwj_1); var tmp0_elvis_lhs = savedStateHandle.ba('uri'); var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No uri'); } else { tmp_2 = tmp0_elvis_lhs; } var uriArg = tmp_2; var fileName = savedStateHandle.ba('filename'); var tmp_3 = this.mqo(); launch(tmp_3, VOID, VOID, ContentEntryGetMetadataViewModel$slambda_0(this, uriArg, fileName, null)); } function ContentEntryGetMetadataUiState(status) { status = status === VOID ? new ContentEntryGetMetadataStatus() : status; this.ewj_1 = status; } protoOf(ContentEntryGetMetadataUiState).fwj = function (status) { return new ContentEntryGetMetadataUiState(status); }; protoOf(ContentEntryGetMetadataUiState).toString = function () { return 'ContentEntryGetMetadataUiState(status=' + this.ewj_1 + ')'; }; protoOf(ContentEntryGetMetadataUiState).hashCode = function () { return this.ewj_1.hashCode(); }; protoOf(ContentEntryGetMetadataUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryGetMetadataUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryGetMetadataUiState ? other : THROW_CCE(); if (!this.ewj_1.equals(tmp0_other_with_cast.ewj_1)) return false; return true; }; function _get_getSubtitleTrackUseCase__ux9onr($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vwk_1; getSubtitleTrackUseCase$factory_0(); return this_0.t2(); } function Companion_150() { this.wwk_1 = 'GetSubtitle'; } var Companion_instance_198; function Companion_getInstance_168() { return Companion_instance_198; } function GetSubtitleViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.fwl_1 = this$0; this.gwl_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(GetSubtitleViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(GetSubtitleViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(GetSubtitleViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; var tmp_0 = _get_getSubtitleTrackUseCase__ux9onr(this.fwl_1); var tmp_1 = Companion_getInstance_3(); var tmp_2 = tmp_1.p2r(require_0(this.gwl_1, 'uri')); suspendResult = tmp_0.ap4(tmp_2, require_0(this.gwl_1, 'filename'), VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var subtitleTrack = suspendResult; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_126(); this_0.s('entityState', this.fwl_1.n4r().s45(Companion_instance_79.o4r(), subtitleTrack)); Companion_getInstance_126(); this.fwl_1.iqp(this_0, 'result_viewname'); Companion_getInstance_126(); this.fwl_1.iqp(this_0, 'result_key'); this.fwl_1.xqn_1.gqa('SubtitleEdit', this_0.f3(), new UstadGoOptions('GetSubtitle', true)); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_3 = this.ld_1; if (tmp_3 instanceof Error) { var e = this.ld_1; l$ret$1: do { var this_1 = this.fwl_1.twk_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.jwl(this.fwl_1.vqo().soj(strings_getInstance().xmi_1) + ': ' + e.message); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(GetSubtitleViewModel$slambda).w1m = function ($this$launch, completion) { var i = new GetSubtitleViewModel$slambda(this.fwl_1, this.gwl_1, completion); i.hwl_1 = $this$launch; return i; }; function GetSubtitleViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new GetSubtitleViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function GetSubtitleViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'GetSubtitle'); this.twk_1 = MutableStateFlow(new GetSubtitleUiState()); this.uwk_1 = asStateFlow(this.twk_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().roa(); var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.i57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.vwk_1 = Instance(this_0, tmp$ret$3, null).b5d(this, getSubtitleTrackUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getsubtitle.GetSubtitleViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().unc_1)); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.mqo(); launch(tmp_3, VOID, VOID, GetSubtitleViewModel$slambda_0(this, savedStateHandle, null)); } function GetSubtitleUiState(error) { error = error === VOID ? null : error; this.iwl_1 = error; } protoOf(GetSubtitleUiState).jwl = function (error) { return new GetSubtitleUiState(error); }; protoOf(GetSubtitleUiState).toString = function () { return 'GetSubtitleUiState(error=' + this.iwl_1 + ')'; }; protoOf(GetSubtitleUiState).hashCode = function () { return this.iwl_1 == null ? 0 : getStringHashCode(this.iwl_1); }; protoOf(GetSubtitleUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof GetSubtitleUiState)) return false; var tmp0_other_with_cast = other instanceof GetSubtitleUiState ? other : THROW_CCE(); if (!(this.iwl_1 == tmp0_other_with_cast.iwl_1)) return false; return true; }; function getSubtitleTrackUseCase$factory() { return getPropertyCallableRef('getSubtitleTrackUseCase', 1, KProperty1, function (receiver) { return _get_getSubtitleTrackUseCase__ux9onr(receiver); }, null); } function getSubtitleTrackUseCase$factory_0() { return getPropertyCallableRef('getSubtitleTrackUseCase', 1, KProperty1, function (receiver) { return _get_getSubtitleTrackUseCase__ux9onr(receiver); }, null); } function _get_httpClient__2ty1zc_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hwm_1; httpClient$factory_4(); return this_0.t2(); } function Companion_151() { this.kwm_1 = 'ContentEntryImportLink'; this.lwm_1 = 'importUrl'; } var Companion_instance_199; function Companion_getInstance_169() { return Companion_instance_199; } function ContentEntryImportLinkViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.mwm(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function ContentEntryImportLinkViewModel$onChangeLink$slambda(this$0, $url, resultContinuation) { this.vwm_1 = this$0; this.wwm_1 = $url; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.vwm_1.vqn_1.yqj('importUrl', this.wwm_1); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryImportLinkViewModel$onChangeLink$slambda(this.vwm_1, this.wwm_1, completion); i.xwm_1 = $this$launch; return i; }; function ContentEntryImportLinkViewModel$onChangeLink$slambda_0(this$0, $url, resultContinuation) { var i = new ContentEntryImportLinkViewModel$onChangeLink$slambda(this$0, $url, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryImportLinkViewModel$onClickNext$slambda(this$0, resultContinuation) { this.gwn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 9; this.id_1 = 1; continue $sm; case 1: this.id_1 = 2; continue $sm; case 2: this.jd_1 = 8; this.jd_1 = 7; var tmp_0 = this; tmp_0.kwn_1 = _get_httpClient__2ty1zc_1(this.gwn_1); var tmp_1 = this; tmp_1.lwn_1 = this.kwn_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.gwn_1.lqo().roa().cnu_1 + 'api/import/validateLink'); parameter(this_0, 'url', this.gwn_1.fwm_1.t2().rwn_1); set_expectSuccess(this_0, false); tmp_2.mwn_1 = this_0; this.mwn_1.x38_1 = Companion_getInstance().n2x_1; var tmp_3 = this; tmp_3.nwn_1 = this.lwn_1; var tmp_4 = this; tmp_4.own_1 = this.mwn_1; this.id_1 = 3; suspendResult = (new HttpStatement(this.own_1, this.nwn_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.pwn_1 = suspendResult; if (!this.pwn_1.k3b().equals(Companion_getInstance_0().g2y_1)) { l$ret$1: do { var this_1 = this.gwn_1.fwm_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.uwn(VOID, this.gwn_1.vqo().soj(strings_getInstance().emu_1), true); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.jwn_1 = Unit_instance; this.jd_1 = 9; this.id_1 = 6; continue $sm; } else { this.id_1 = 4; continue $sm; } case 4: var tmp_5 = this; tmp_5.qwn_1 = this.gwn_1.n4r(); this.id_1 = 5; suspendResult = bodyAsText(this.pwn_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var string = suspendResult; var this_2 = this.qwn_1.u45(); var this_3 = serializer(this_2, createKType(getKClass(MetadataResult), arrayOf([]), false)); var metadataResult = this.qwn_1.t45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); var tmp_6 = this; var tmp_7; if (this.gwn_1.jwm_1 === 'ContentEntryEdit') { var this_4 = LinkedHashMap_init_$Create$(); this_4.s('metadata', this.gwn_1.n4r().s45(Companion_instance_80.o4r(), metadataResult)); this.gwn_1.iqp(this_4, 'courseBlock'); this.gwn_1.iqp(this_4, 'goToOnContentEntryDone'); Companion_getInstance_117(); this.gwn_1.iqp(this_4, 'result_viewname'); Companion_getInstance_117(); this.gwn_1.iqp(this_4, 'result_key'); Companion_getInstance_126(); this.gwn_1.iqp(this_4, 'parentUid'); Companion_getInstance_126(); this_4.s('popUpToOnFinish', 'ContentEntryImportLink'); this.gwn_1.xqn_1.tp6('ContentEntryEdit', this_4.f3()); tmp_7 = Unit_instance; } else { this.gwn_1.gqu(metadataResult); tmp_7 = Unit_instance; } tmp_6.iwn_1 = tmp_7; this.jd_1 = 9; this.id_1 = 10; continue $sm; case 6: this.jd_1 = 9; l$ret$9: do { var this_5 = this.gwn_1.fwm_1; while (true) { var prevValue_0 = this_5.t2(); var nextValue_0 = prevValue_0.uwn(VOID, VOID, true); if (this_5.z1k(prevValue_0, nextValue_0)) { break l$ret$9; } } } while (false); return Unit_instance; case 7: this.jd_1 = 8; var tmp_8 = this.ld_1; if (tmp_8 instanceof Exception) { var e = this.ld_1; var tmp_9 = this; this.gwn_1.tqo().wq7(new Snack(this.gwn_1.vqo().soj(strings_getInstance().xmi_1) + (': ' + e))); tmp_9.iwn_1 = Unit_instance; this.jd_1 = 9; this.id_1 = 10; continue $sm; } else { throw this.ld_1; } case 8: this.jd_1 = 9; var t = this.ld_1; l$ret$7: do { var this_6 = this.gwn_1.fwm_1; while (true) { var prevValue_1 = this_6.t2(); var nextValue_1 = prevValue_1.uwn(VOID, VOID, true); if (this_6.z1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); throw t; case 9: throw this.ld_1; case 10: this.jd_1 = 9; l$ret$11: do { var this_7 = this.gwn_1.fwm_1; while (true) { var prevValue_2 = this_7.t2(); var nextValue_2 = prevValue_2.uwn(VOID, VOID, true); if (this_7.z1k(prevValue_2, nextValue_2)) { break l$ret$11; } } } while (false); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 9) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryImportLinkViewModel$onClickNext$slambda(this.gwn_1, completion); i.hwn_1 = $this$launch; return i; }; function ContentEntryImportLinkViewModel$onClickNext$slambda_0(this$0, resultContinuation) { var i = new ContentEntryImportLinkViewModel$onClickNext$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryImportLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryImportLink'); this.fwm_1 = MutableStateFlow(new ContentEntryImportLinkUiState()); this.gwm_1 = asStateFlow(this.fwm_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.hwm_1 = Instance(this, tmp$ret$0, null).b5d(this, httpClient$factory_3()); this.iwm_1 = null; var tmp_1 = this; Companion_getInstance_126(); tmp_1.jwm_1 = savedStateHandle.ba('next'); var tmp_2 = this.vqo().soj(strings_getInstance().smt_1); var tmp_3 = this.vqo().soj(strings_getInstance().cmk_1); this.zqn_1.y1k(new AppUiState(VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, ContentEntryImportLinkViewModel$onClickNext$ref(this)))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.' call var tmp0_elvis_lhs = savedStateHandle.ba('importUrl'); var nextValue = prevValue.uwn(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(ContentEntryImportLinkViewModel).vwn = function (url) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onChangeLink.' call var nextValue = prevValue.uwn(url, !(url === prevValue.rwn_1) ? null : prevValue.swn_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.iwm_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.iwm_1 = launch(tmp_0, VOID, VOID, ContentEntryImportLinkViewModel$onChangeLink$slambda_0(this, url, null)); }; protoOf(ContentEntryImportLinkViewModel).mwm = function () { if (!this.fwm_1.t2().twn_1) { return Unit_instance; } if (isBlank(this.fwm_1.t2().rwn_1)) { Napier_getInstance().j5e('link is blank'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fwm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onClickNext.' call var nextValue = prevValue.uwn(VOID, this.vqo().soj(strings_getInstance().cmo_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.fwm_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onClickNext.' call var nextValue_0 = prevValue_0.uwn(VOID, VOID, false); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.iwm_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } this.vqn_1.yqj('importUrl', this.fwm_1.t2().rwn_1); var tmp = this.mqo(); launch(tmp, VOID, VOID, ContentEntryImportLinkViewModel$onClickNext$slambda_0(this, null)); }; function ContentEntryImportLinkUiState(url, linkError, fieldsEnabled) { url = url === VOID ? '' : url; linkError = linkError === VOID ? null : linkError; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; this.rwn_1 = url; this.swn_1 = linkError; this.twn_1 = fieldsEnabled; } protoOf(ContentEntryImportLinkUiState).wwn = function (url, linkError, fieldsEnabled) { return new ContentEntryImportLinkUiState(url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).uwn = function (url, linkError, fieldsEnabled, $super) { url = url === VOID ? this.rwn_1 : url; linkError = linkError === VOID ? this.swn_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.twn_1 : fieldsEnabled; return $super === VOID ? this.wwn(url, linkError, fieldsEnabled) : $super.wwn.call(this, url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).toString = function () { return 'ContentEntryImportLinkUiState(url=' + this.rwn_1 + ', linkError=' + this.swn_1 + ', fieldsEnabled=' + this.twn_1 + ')'; }; protoOf(ContentEntryImportLinkUiState).hashCode = function () { var result = getStringHashCode(this.rwn_1); result = imul(result, 31) + (this.swn_1 == null ? 0 : getStringHashCode(this.swn_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.twn_1) | 0; return result; }; protoOf(ContentEntryImportLinkUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryImportLinkUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryImportLinkUiState ? other : THROW_CCE(); if (!(this.rwn_1 === tmp0_other_with_cast.rwn_1)) return false; if (!(this.swn_1 == tmp0_other_with_cast.swn_1)) return false; if (!(this.twn_1 === tmp0_other_with_cast.twn_1)) return false; return true; }; function httpClient$factory_3() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_1(receiver); }, null); } function httpClient$factory_4() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_1(receiver); }, null); } function _ContentEntryListItemUiState___init__impl__r5o9qy(contentEntry) { return contentEntry; } function _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2($this) { return $this; } function _ContentEntryListItemUiState___get_descriptionVisible__impl__xyu083($this) { // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2($this).qav_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); } function _ContentEntryListItemUiState___get_mimetypeVisible__impl__l8r8g7($this) { return _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2($this).daw_1; } function ContentEntryListItemUiState__toString_impl_2mjydu($this) { return 'ContentEntryListItemUiState(contentEntry=' + $this + ')'; } function ContentEntryListItemUiState__hashCode_impl_odpv6p($this) { return $this.hashCode(); } function ContentEntryListItemUiState__equals_impl_d3bksl($this, other) { if (!(other instanceof ContentEntryListItemUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryListItemUiState ? other.xwn_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function ContentEntryListItemUiState(contentEntry) { this.xwn_1 = contentEntry; } protoOf(ContentEntryListItemUiState).toString = function () { return ContentEntryListItemUiState__toString_impl_2mjydu(this.xwn_1); }; protoOf(ContentEntryListItemUiState).hashCode = function () { return ContentEntryListItemUiState__hashCode_impl_odpv6p(this.xwn_1); }; protoOf(ContentEntryListItemUiState).equals = function (other) { return ContentEntryListItemUiState__equals_impl_d3bksl(this.xwn_1, other); }; function get_listItemUiState_0(_this__u8e3s4) { return _ContentEntryListItemUiState___init__impl__r5o9qy(_this__u8e3s4); } function ContentEntryListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.gwo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda$slambda).gqg = function (hasNewContentPermission, $completion) { var tmp = this.hqg(hasNewContentPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.gwo_1.qqw_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(prevValue.xwo_1 === this.hwo_1)) { tmp_0 = prevValue.zwo(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.hwo_1); } else { tmp_0 = prevValue; } var nextValue = tmp_0; if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.gwo_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(prevValue_0.sq6_1.nq7(this.hwo_1 ? !this.gwo_1.fwq_1 : false)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda$slambda).hqg = function (hasNewContentPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda$slambda(this.gwo_1, completion); i.hwo_1 = hasNewContentPermission; return i; }; function ContentEntryListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ContentEntryListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (hasNewContentPermission, $completion) { return i.gqg(hasNewContentPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda$slambda(this$0, $hasPermissionFlow, resultContinuation) { this.qwq_1 = this$0; this.rwq_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(ContentEntryListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (!this.qwq_1.bwq_1) { this.id_1 = 2; var tmp_0 = ContentEntryListViewModel$slambda$slambda$slambda_0(this.qwq_1, null); suspendResult = this.rwq_1.i1h(new sam$kotlinx_coroutines_flow_FlowCollector$0_26(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; continue $sm; } case 1: return Unit_instance; case 2: throwKotlinNothingValueException(); break; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda).m78 = function (completion) { return new ContentEntryListViewModel$slambda$slambda(this.qwq_1, this.rwq_1, completion); }; function ContentEntryListViewModel$slambda$slambda_0(this$0, $hasPermissionFlow, resultContinuation) { var i = new ContentEntryListViewModel$slambda$slambda(this$0, $hasPermissionFlow, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function ContentEntryListViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.awr_1 = $savedStateHandle; this.bwr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_1).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var tmp_1 = this.cwr_1.sqa_1; var tmp0_elvis_lhs = tmp_1 instanceof ContentEntry ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.dwr_1 = tmp_2; var tmp_3 = this; var tmp1_safe_receiver = this.awr_1.ba('entriesToMove'); var tmp_4; if (tmp1_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.bwr_1.n4r().t45(ListSerializer(Companion_instance_202.o4r()), tmp1_safe_receiver); } var tmp2_elvis_lhs = tmp_4; var tmp_5; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_5 = tmp2_elvis_lhs; } tmp_3.ewr_1 = tmp_5; this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_moveContentEntriesUseCase__fb3hfi(this.bwr_1).gpa(this.dwr_1, toSet(this.ewr_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bwr_1.tqo().wq7(new Snack(this.bwr_1.vqo().toj(strings_getInstance().yn9_1, [this.ewr_1.u().toString()]))); this.jd_1 = 4; this.id_1 = 3; continue $sm; case 2: this.jd_1 = 4; var tmp_6 = this.ld_1; if (tmp_6 instanceof Error) { var e = this.ld_1; Napier_getInstance().n5e('Could not move entries', e); var tmp_7 = this.bwr_1.tqo(); var tmp3_elvis_lhs = e.message; tmp_7.wq7(new Snack(tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs)); this.id_1 = 3; continue $sm; } else { throw this.ld_1; } case 3: this.jd_1 = 4; setSelectedItems(this.bwr_1, emptySet()); return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 4) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_1).mqb = function (result, completion) { var i = new ContentEntryListViewModel$slambda$slambda_1(this.awr_1, this.bwr_1, completion); i.cwr_1 = result; return i; }; function ContentEntryListViewModel$slambda$slambda_2($savedStateHandle, this$0, resultContinuation) { var i = new ContentEntryListViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$onClickMoveAction$ref($boundThis) { var l = function () { onClickMoveAction($boundThis); return Unit_instance; }; l.callableName = 'onClickMoveAction'; return l; } function ContentEntryListViewModel$onClickDeleteAction$ref($boundThis) { var l = function () { onClickDeleteAction($boundThis); return Unit_instance; }; l.callableName = 'onClickDeleteAction'; return l; } function ContentEntryListViewModel$slambda$slambda_3(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_3).pwr = function (uiState, hasPermission, $completion) { var tmp = this.qwr(uiState, hasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).vm = function (p1, p2, $completion) { var tmp = p1 instanceof ContentEntryListUiState ? p1 : THROW_CCE(); return this.pwr(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return new Pair(this.nwr_1, this.owr_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).qwr = function (uiState, hasPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda_3(completion); i.nwr_1 = uiState; i.owr_1 = hasPermission; return i; }; function ContentEntryListViewModel$slambda$slambda_4(resultContinuation) { var i = new ContentEntryListViewModel$slambda$slambda_3(resultContinuation); var l = function (uiState, hasPermission, $completion) { return i.pwr(uiState, hasPermission, $completion); }; l.$arity = 2; return l; } function ContentEntryListViewModel$slambda$slambda_5(this$0, resultContinuation) { this.zwr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_5).bws = function (it, $completion) { var tmp = this.cws(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda$slambda_5).ie = function (p1, $completion) { return this.bws(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0; if (!this.aws_1.w6_1.uwo_1.c1()) { tmp_0 = this.aws_1.x6_1; } else { tmp_0 = false; } var showMoveIcon = tmp_0; if (!(showMoveIcon === !this.zwr_1.zqn_1.t2().dq7_1.c1())) { l$ret$1: do { var this_0 = this.zwr_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (showMoveIcon) { var tmp_2 = AppStateIcon_MOVE_getInstance(); var tmp_3 = this.zwr_1.vqo().soj(strings_getInstance().mmn_1); var tmp_4 = new AppActionButton(tmp_2, tmp_3, ContentEntryListViewModel$onClickMoveAction$ref(this.zwr_1), 'action_move'); var tmp_5 = AppStateIcon_DELETE_getInstance(); var tmp_6 = this.zwr_1.vqo().soj(strings_getInstance().rmj_1); tmp_1 = listOf([tmp_4, new AppActionButton(tmp_5, tmp_6, ContentEntryListViewModel$onClickDeleteAction$ref(this.zwr_1), 'action_delete')]); } else { tmp_1 = emptyList(); } var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_5).cws = function (it, completion) { var i = new ContentEntryListViewModel$slambda$slambda_5(this.zwr_1, completion); i.aws_1 = it; return i; }; function ContentEntryListViewModel$slambda$slambda_6(this$0, resultContinuation) { var i = new ContentEntryListViewModel$slambda$slambda_5(this$0, resultContinuation); var l = function (it, $completion) { return i.bws(it, $completion); }; l.$arity = 1; return l; } function _get_moveContentEntriesUseCase__fb3hfi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gwq_1; moveContentEntriesUseCase$factory_0(); return this_0.t2(); } function _get_deleteEntriesUseCase__hkwqc9($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hwq_1; deleteEntriesUseCase$factory_0(); return this_0.t2(); } function setSelectedItems($this, selectedEntries) { $this.vqn_1.yqj('selectedEntries', $this.n4r().s45(ListSerializer(Companion_instance_202.o4r()), toList(selectedEntries))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.setSelectedItems.' call var nextValue = prevValue.zwo(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, selectedEntries); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var numItemsSelected = $this.qqw_1.t2().uwo_1.u(); var hasSelectedItems = numItemsSelected > 0; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = $this.zqn_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.setSelectedItems.' call var tmp0_userAccountIconVisible = !hasSelectedItems; var tmp; if (hasSelectedItems) { tmp = $this.vqo().dws(plurals_getInstance().cnt_1, numItemsSelected); } else { tmp = $this.ewq_1; } var tmp1_title = tmp; var tmp_0; if (hasSelectedItems) { var tmp_1 = AppStateIcon_CLOSE_getInstance(); var tmp_2 = $this.vqo().soj(strings_getInstance().gnn_1); tmp_0 = new AppActionButton(tmp_1, tmp_2, ContentEntryListViewModel$setSelectedItems$lambda($this), 'clear_selection'); } else { tmp_0 = null; } var tmp2_leadingActionButton = tmp_0; var tmp3_appBarColors = hasSelectedItems ? AppBarColors_SELECTION_MODE_getInstance() : AppBarColors_STANDARD_getInstance(); var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp1_title, VOID, VOID, hasSelectedItems, tmp0_userAccountIconVisible, VOID, VOID, VOID, VOID, VOID, tmp2_leadingActionButton, tmp3_appBarColors); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } function selectDestinationToMoveEntries($this, entries) { $this.vqn_1.yqj('entriesToMove', $this.n4r().s45(ListSerializer(Companion_instance_202.o4r()), toList(entries))); var tmp = Companion_instance_28.o4r(); $this.dqp('PickContentEntry', 'moveToDestinationResult', null, tmp, mapOf([to('listMode', ListViewMode_PICKER_getInstance().uqk_1), to('selectFolder', 'true')])); } function onClickMoveAction($this) { selectDestinationToMoveEntries($this, $this.qqw_1.t2().uwo_1); } function launchDeleteEntries($this, entries) { var tmp = $this.mqo(); launch(tmp, VOID, VOID, ContentEntryListViewModel$launchDeleteEntries$slambda_0($this, entries, null)); } function onClickDeleteAction($this) { launchDeleteEntries($this, $this.qqw_1.t2().uwo_1); } function Companion_152() { Companion_instance_200 = this; this.ews_1 = 'ContentEntries'; this.fws_1 = 'ContentEntryListHome'; this.gws_1 = 'PickContentEntry'; this.hws_1 = listOf(['ContentEntries', 'ContentEntryListHome', 'PickContentEntry']); this.iws_1 = 'filter'; this.jws_1 = 1; this.kws_1 = 2; this.lws_1 = 3; this.mws_1 = 4; this.nws_1 = new Long(1, 0); this.ows_1 = 'chipId'; this.pws_1 = 'moveToDestinationResult'; this.qws_1 = 'selectFolder'; this.rws_1 = 'selectedEntries'; this.sws_1 = 'entriesToMove'; } var Companion_instance_200; function Companion_getInstance_170() { if (Companion_instance_200 == null) new Companion_152(); return Companion_instance_200; } function sam$kotlinx_coroutines_flow_FlowCollector$0_26(function_0) { this.tws_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_26).u1d = function (value, $completion) { return this.tws_1(value, $completion); }; function createContextMenuItemsForEntry$entriesToAction(this$0, rightClickedItem) { var selectedEntries = this$0.qqw_1.t2().uwo_1; var tmp; var tmp_0; // Inline function 'kotlin.collections.isNotEmpty' call if (!selectedEntries.c1()) { tmp_0 = !selectedEntries.a1(rightClickedItem); } else { tmp_0 = false; } if (tmp_0) { // Inline function 'kotlin.also' call var this_0 = toSet(plus_2(selectedEntries, rightClickedItem)); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.createContextMenuItemsForEntry.entriesToAction.' call setSelectedItems(this$0, this_0); tmp = this_0; } else { if (selectedEntries.c1()) { tmp = setOf_0(rightClickedItem); } else { tmp = selectedEntries; } } return tmp; } function ContentEntryListViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp; switch (this$0.qqw_1.t2().kwo_1) { case 2: tmp = this$0.rqo().w7d().yau(this$0.nqo()); break; case 3: tmp = this$0.rqo().w7d().xau(this$0.nqo()); break; case 4: tmp = this$0.rqo().w7d().wau(this$0.nqo(), this$0.awq_1, new Long(0, 0), new Long(0, 0), this$0.qqw_1.t2().pwo_1.oqd_1, false); break; case 1: tmp = this$0.rqo().w7d().wau(this$0.nqo(), this$0.awq_1, new Long(0, 0), new Long(0, 0), this$0.qqw_1.t2().pwo_1.oqd_1, false); break; default: tmp = new EmptyPagingSource(); break; } return tmp; }; } function ContentEntryListViewModel$createContextMenuItemsForEntry$ref($boundThis) { var l = function (p0) { return $boundThis.uws(p0); }; l.callableName = 'createContextMenuItemsForEntry'; return l; } function ContentEntryListViewModel$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel...' call var nextValue = prevValue.zwo(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryListViewModel$slambda(this$0, resultContinuation) { this.dwt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (!(this.dwt_1.wqo() == null) ? !this.dwt_1.cwq_1 : false) { this.fwt_1 = this.dwt_1.vqo().soj(strings_getInstance().pne_1); this.id_1 = 2; continue $sm; } else { if (this.dwt_1.awq_1.equals(new Long(1, 0))) { this.fwt_1 = this.dwt_1.vqo().soj(strings_getInstance().cnj_1); this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.dwt_1.rqo().w7d().vau(this.dwt_1.awq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp0_elvis_lhs = suspendResult; this.fwt_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; this.id_1 = 2; continue $sm; case 2: var ARGUMENT = this.fwt_1; this.dwt_1.ewq_1 = ARGUMENT; l$ret$1: do { var this_0 = this.dwt_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(VOID, VOID, this.dwt_1.ewq_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda(this.dwt_1, completion); i.ewt_1 = $this$launch; return i; }; function ContentEntryListViewModel$slambda_0(this$0, resultContinuation) { var i = new ContentEntryListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_1(this$0, $hasPermissionFlow, resultContinuation) { this.owt_1 = this$0; this.pwt_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.owt_1.qqw_1, ContentEntryListViewModel$slambda$slambda_0(this.owt_1, this.pwt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_1(this.owt_1, this.pwt_1, completion); i.qwt_1 = $this$launch; return i; }; function ContentEntryListViewModel$slambda_2(this$0, $hasPermissionFlow, resultContinuation) { var i = new ContentEntryListViewModel$slambda_1(this$0, $hasPermissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_3(this$0, $savedStateHandle, resultContinuation) { this.zwt_1 = this$0; this.awu_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.zwt_1.zqo(this.zwt_1.uqo(), 'moveToDestinationResult'); var tmp_1 = ContentEntryListViewModel$slambda$slambda_2(this.awu_1, this.zwt_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_26(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_3).w1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_3(this.zwt_1, this.awu_1, completion); i.bwu_1 = $this$launch; return i; }; function ContentEntryListViewModel$slambda_4(this$0, $savedStateHandle, resultContinuation) { var i = new ContentEntryListViewModel$slambda_3(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_5(this$0, $hasPermissionFlow, resultContinuation) { this.kwu_1 = this$0; this.lwu_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = combine(this.kwu_1.qqw_1, this.lwu_1, ContentEntryListViewModel$slambda$slambda_4(null)); var tmp_1 = ContentEntryListViewModel$slambda$slambda_6(this.kwu_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_26(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_5).w1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_5(this.kwu_1, this.lwu_1, completion); i.mwu_1 = $this$launch; return i; }; function ContentEntryListViewModel$slambda_6(this$0, $hasPermissionFlow, resultContinuation) { var i = new ContentEntryListViewModel$slambda_5(this$0, $hasPermissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$createContextMenuItemsForEntry$lambda(this$0, $rightClickedItem) { return function () { selectDestinationToMoveEntries(this$0, createContextMenuItemsForEntry$entriesToAction(this$0, $rightClickedItem)); return Unit_instance; }; } function ContentEntryListViewModel$createContextMenuItemsForEntry$lambda_0(this$0, $rightClickedItem) { return function () { launchDeleteEntries(this$0, createContextMenuItemsForEntry$entriesToAction(this$0, $rightClickedItem)); return Unit_instance; }; } function ContentEntryListViewModel$setSelectedItems$lambda(this$0) { return function () { setSelectedItems(this$0, emptySet()); return Unit_instance; }; } function ContentEntryListViewModel$launchDeleteEntries$slambda(this$0, $entries, resultContinuation) { this.vwu_1 = this$0; this.wwu_1 = $entries; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_deleteEntriesUseCase__hkwqc9(this.vwu_1).lp3(this.wwu_1, this.vwu_1.nqo(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: setSelectedItems(this.vwu_1, emptySet()); this.vwu_1.tqo().wq7(new Snack(this.vwu_1.vqo().dws(plurals_getInstance().dnt_1, this.wwu_1.u()))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).w1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$launchDeleteEntries$slambda(this.vwu_1, this.wwu_1, completion); i.xwu_1 = $this$launch; return i; }; function ContentEntryListViewModel$launchDeleteEntries$slambda_0(this$0, $entries, resultContinuation) { var i = new ContentEntryListViewModel$launchDeleteEntries$slambda(this$0, $entries, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel(di, savedStateHandle, destName) { Companion_getInstance_170(); UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryListUiState(), destName); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('parentUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.awq_1 = tmp1_elvis_lhs == null ? new Long(1, 0) : tmp1_elvis_lhs; var tmp_0 = this; var tmp0_safe_receiver_0 = savedStateHandle.ba('goToOnContentEntryDone'); var tmp_1 = tmp0_safe_receiver_0 == null ? null : toInt(tmp0_safe_receiver_0); tmp_0.bwq_1 = tmp_1 === 1; var tmp_2 = this; var tmp0_safe_receiver_1 = savedStateHandle.ba('selectFolder'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : toBoolean(tmp0_safe_receiver_1); tmp_2.cwq_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_3 = this; tmp_3.dwq_1 = ContentEntryListViewModel$pagingSourceFactory$lambda(this); this.ewq_1 = ''; this.fwq_1 = this.cwq_1 ? this.vqw().equals(ListViewMode_PICKER_getInstance()) : false; var tmp_4 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.gwq_1 = Instance(this_0, tmp$ret$0, null).b5d(this, moveContentEntriesUseCase$factory()); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.hwq_1 = Instance(this_1, tmp$ret$2, null).b5d(this, deleteEntriesUseCase$factory()); var tmp0_safe_receiver_2 = savedStateHandle.ba('selectedEntries'); var tmp_8; if (tmp0_safe_receiver_2 == null) { tmp_8 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call tmp_8 = this.n4r().t45(ListSerializer(Companion_instance_202.o4r()), tmp0_safe_receiver_2); } var tmp1_safe_receiver = tmp_8; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toSet(tmp1_safe_receiver); var savedStateSelectedEntries = tmp2_elvis_lhs == null ? emptySet() : tmp2_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqw_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp0_contentEntryList = this.dwq_1; var tmp1_showSelectFolderButton = this.fwq_1; var tmp2_contextMenuItems = ContentEntryListViewModel$createContextMenuItemsForEntry$ref(this); var nextValue = prevValue.zwo(VOID, tmp0_contentEntryList, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, savedStateSelectedEntries, tmp1_showSelectFolderButton, tmp2_contextMenuItems); if (this_2.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.zqn_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp_9 = this.vqo().soj(strings_getInstance().pn4_1); var tmp_10 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.hq7(new FabUiState(false, tmp_9, tmp_10, ContentEntryListViewModel$lambda(this)), VOID, VOID, VOID, this.vqw().equals(ListViewMode_PICKER_getInstance())); if (this_3.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } if (this.bwq_1 ? this.awq_1.equals(new Long(1, 0)) : false) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.qqw_1; while (true) { var prevValue_1 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp0_safe_receiver_3 = savedStateHandle.ba('chipId'); var tmp1_elvis_lhs_1 = tmp0_safe_receiver_3 == null ? null : toInt(tmp0_safe_receiver_3); var tmp2_selectedChipId = tmp1_elvis_lhs_1 == null ? 2 : tmp1_elvis_lhs_1; var tmp3_filterOptions = listOf([new MessageIdOption2(strings_getInstance().dne_1, 2), new MessageIdOption2(strings_getInstance().anl_1, 3), new MessageIdOption2(strings_getInstance().cnj_1, 4)]); var nextValue_1 = prevValue_1.zwo(VOID, VOID, tmp2_selectedChipId, tmp3_filterOptions, VOID, VOID, VOID, VOID, false, true, true); if (this_4.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } var tmp_11 = this.rqo().q7f(); var tmp_12 = this.lqo().poa().ckz_1; PermissionFlags_getInstance(); var hasPermissionFlow = shareIn(tmp_11.wi0(tmp_12, new Long(65536, 0)), this.mqo(), Companion_getInstance_13().w1h()); var tmp_13 = this.mqo(); launch(tmp_13, VOID, VOID, ContentEntryListViewModel$slambda_0(this, null)); var tmp_14 = this.mqo(); launch(tmp_14, VOID, VOID, ContentEntryListViewModel$slambda_2(this, hasPermissionFlow, null)); var tmp_15 = this.mqo(); launch(tmp_15, VOID, VOID, ContentEntryListViewModel$slambda_4(this, savedStateHandle, null)); var tmp_16 = this.mqo(); launch(tmp_16, VOID, VOID, ContentEntryListViewModel$slambda_6(this, hasPermissionFlow, null)); } protoOf(ContentEntryListViewModel).uws = function (entry) { var uiStateVal = this.qqw_1.t2(); var tmp; if (uiStateVal.xwo_1 ? this.vqw().equals(ListViewMode_BROWSER_getInstance()) : false) { var rightClickedItem = asSelectedItem(entry); if (!uiStateVal.uwo_1.a1(rightClickedItem)) { setSelectedItems(this, emptySet()); } var tmp_0 = this.vqo().soj(strings_getInstance().knn_1); var tmp_1 = new UstadContextMenuItem(tmp_0, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda(this, rightClickedItem)); var tmp_2 = this.vqo().soj(strings_getInstance().rmj_1); tmp = listOf([tmp_1, new UstadContextMenuItem(tmp_2, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda_0(this, rightClickedItem))]); } else { tmp = emptyList(); } return tmp; }; protoOf(ContentEntryListViewModel).kqx = function (searchText) { }; protoOf(ContentEntryListViewModel).lqx = function () { }; protoOf(ContentEntryListViewModel).fvd = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.zwo(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryListViewModel).ywu = function () { this.fvd(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickNewFolder.' call this_0.s('leaf', 'false'); Companion_getInstance_126(); this_0.s('parentUid', this.awq_1.toString()); var tmp$ret$2 = this_0.f3(); this.dqy('ContentEntryEdit', tmp$ret$2); }; protoOf(ContentEntryListViewModel).zwu = function () { this.fvd(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickImportFromLink.' call this_0.s('leaf', 'true'); Companion_getInstance_126(); this_0.s('parentUid', this.awq_1.toString()); Companion_getInstance_126(); this_0.s('next', 'ContentEntryEdit'); this.jqp(this_0, Companion_getInstance_175().dwi_1); var tmp$ret$2 = this_0.f3(); this.dqy('ContentEntryImportLink', tmp$ret$2); }; protoOf(ContentEntryListViewModel).awv = function (fileUri, fileName) { this.fvd(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onImportFile.' call this_0.s('uri', fileUri); this_0.s('filename', fileName); Companion_getInstance_126(); this_0.s('parentUid', this.awq_1.toString()); this.jqp(this_0, Companion_getInstance_175().dwi_1); var tmp$ret$2 = this_0.f3(); this.dqy('ContentEntryGetMetadata', tmp$ret$2); }; protoOf(ContentEntryListViewModel).bwv = function (entry) { if (entry == null) return Unit_instance; var tmp0_safe_receiver = this.vqn_1.ba('goToOnContentEntryDone'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); var goToOnContentEntryEdit = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; if (entry.daw_1 ? this.fwq_1 : false) return Unit_instance; else { var tmp; if (this.vqw().equals(ListViewMode_PICKER_getInstance()) ? entry.daw_1 : false) { tmp = goToOnContentEntryEdit === 1; } else { tmp = false; } if (tmp) { Companion_getInstance_175(); var tmp2_nextViewName = 'CourseBlockEdit'; var tmp3_key = 'courseblock'; var tmp4_serializer = Companion_getInstance_14().o4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickEntry.' call this.jqp(this_0, Companion_getInstance_175().dwi_1); Companion_getInstance_175(); this_0.s('SelectedContentEntry', this.n4r().s45(Companion_instance_40.o4r(), new ContentEntryAndContentJob(entry))); var tmp5_args = this_0.f3(); this.dqp(tmp2_nextViewName, tmp3_key, null, tmp4_serializer, tmp5_args, VOID, false); } else { if (entry.daw_1) { Companion_getInstance_161(); Companion_getInstance_117(); var tmp_0 = to('entityUid', entry.oav_1.toString()); Companion_getInstance_126(); this.xqn_1.tp6('ContentEntry', mapOf([tmp_0, to('parentUid', this.awq_1.toString())])); } else { var tmp_1; if (this.wqn_1 === 'ContentEntryListHome') { tmp_1 = 'ContentEntries'; } else { tmp_1 = this.wqn_1; } var tmp_2 = tmp_1; // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_1 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickEntry.' call this_1.s('filter', '1'); Companion_getInstance_126(); this_1.s('parentUid', entry.oav_1.toString()); Companion_getInstance_117(); this.iqp(this_1, 'result_key'); Companion_getInstance_117(); this.iqp(this_1, 'result_viewname'); this.iqp(this_1, 'selectFolder'); this.iqp(this_1, 'goToOnContentEntryDone'); var tmp$ret$5 = this_1.f3(); this.xqn_1.tp6(tmp_2, tmp$ret$5); } } } }; protoOf(ContentEntryListViewModel).cwv = function () { // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickSelectThisFolder.' call this_0.oav_1 = this.awq_1; this.gqu(this_0); }; protoOf(ContentEntryListViewModel).dwv = function (entry, selected) { var currentSelection = this.qqw_1.t2().uwo_1; var tmp; if (selected) { tmp = toSet(plus_2(currentSelection, asSelectedItem(entry))); } else { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = currentSelection.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onSetSelected.' call var tmp0_safe_receiver = entry.ray_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.oav_1; if (!element.ip3_1.equals(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)) { destination.i1(element); } } tmp = toSet(destination); } setSelectedItems(this, tmp); }; protoOf(ContentEntryListViewModel).mt1 = function (filterOption) { // Inline function 'kotlin.takeIf' call var this_0 = this.qqw_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickFilterChip.' call if (!(this_0.t2().kwo_1 === filterOption.kq8_1)) { tmp = this_0; } else { tmp = null; } var tmp0_safe_receiver = tmp; if (tmp0_safe_receiver == null) null; else { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call while (true) { var prevValue = tmp0_safe_receiver.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickFilterChip.' call var nextValue = prevValue.zwo(VOID, VOID, filterOption.kq8_1); if (tmp0_safe_receiver.z1k(prevValue, nextValue)) { break $l$block; } } } } this.vqn_1.yqj('chipId', filterOption.kq8_1.toString()); this.sqw_1.j1h(new RefreshCommand()); }; function Companion_153() { Companion_instance_201 = this; var tmp = this; var tmp_0 = strings_getInstance().emn_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().emn_1; tmp.ewv_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_201; function Companion_getInstance_171() { if (Companion_instance_201 == null) new Companion_153(); return Companion_instance_201; } function ContentEntryListUiState$_init_$lambda_76lpy3() { return new EmptyPagingSource(); } function ContentEntryListUiState$_init_$lambda_76lpy3_0(it) { return emptyList(); } function ContentEntryListUiState(filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission) { Companion_getInstance_171(); filterMode = filterMode === VOID ? 1 : filterMode; var tmp; if (contentEntryList === VOID) { tmp = ContentEntryListUiState$_init_$lambda_76lpy3; } else { tmp = contentEntryList; } contentEntryList = tmp; selectedChipId = selectedChipId === VOID ? 1 : selectedChipId; var tmp_0; if (filterOptions === VOID) { // Inline function 'kotlin.collections.listOf' call tmp_0 = emptyList(); } else { tmp_0 = filterOptions; } filterOptions = tmp_0; showHiddenEntries = showHiddenEntries === VOID ? false : showHiddenEntries; onlyFolderFilter = onlyFolderFilter === VOID ? false : onlyFolderFilter; sortOptions = sortOptions === VOID ? Companion_getInstance_171().ewv_1 : sortOptions; activeSortOption = activeSortOption === VOID ? first_0(sortOptions) : activeSortOption; createNewFolderItemVisible = createNewFolderItemVisible === VOID ? false : createNewFolderItemVisible; importFromLinkItemVisible = importFromLinkItemVisible === VOID ? false : importFromLinkItemVisible; importFromFileItemVisible = importFromFileItemVisible === VOID ? false : importFromFileItemVisible; createNewOptionsVisible = createNewOptionsVisible === VOID ? false : createNewOptionsVisible; selectedEntries = selectedEntries === VOID ? emptySet() : selectedEntries; showSelectFolderButton = showSelectFolderButton === VOID ? false : showSelectFolderButton; var tmp_1; if (contextMenuItems === VOID) { tmp_1 = ContentEntryListUiState$_init_$lambda_76lpy3_0; } else { tmp_1 = contextMenuItems; } contextMenuItems = tmp_1; hasWritePermission = hasWritePermission === VOID ? false : hasWritePermission; this.iwo_1 = filterMode; this.jwo_1 = contentEntryList; this.kwo_1 = selectedChipId; this.lwo_1 = filterOptions; this.mwo_1 = showHiddenEntries; this.nwo_1 = onlyFolderFilter; this.owo_1 = sortOptions; this.pwo_1 = activeSortOption; this.qwo_1 = createNewFolderItemVisible; this.rwo_1 = importFromLinkItemVisible; this.swo_1 = importFromFileItemVisible; this.two_1 = createNewOptionsVisible; this.uwo_1 = selectedEntries; this.vwo_1 = showSelectFolderButton; this.wwo_1 = contextMenuItems; this.xwo_1 = hasWritePermission; var tmp_2 = this; // Inline function 'kotlin.collections.map' call var this_0 = this.uwo_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListUiState.selectedEntryUids.' call var tmp$ret$1 = item.ip3_1; destination.i1(tmp$ret$1); } tmp_2.ywo_1 = toSet(destination); } protoOf(ContentEntryListUiState).fwv = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.lwo_1.c1(); }; protoOf(ContentEntryListUiState).gwv = function (filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission) { return new ContentEntryListUiState(filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission); }; protoOf(ContentEntryListUiState).zwo = function (filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission, $super) { filterMode = filterMode === VOID ? this.iwo_1 : filterMode; contentEntryList = contentEntryList === VOID ? this.jwo_1 : contentEntryList; selectedChipId = selectedChipId === VOID ? this.kwo_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.lwo_1 : filterOptions; showHiddenEntries = showHiddenEntries === VOID ? this.mwo_1 : showHiddenEntries; onlyFolderFilter = onlyFolderFilter === VOID ? this.nwo_1 : onlyFolderFilter; sortOptions = sortOptions === VOID ? this.owo_1 : sortOptions; activeSortOption = activeSortOption === VOID ? this.pwo_1 : activeSortOption; createNewFolderItemVisible = createNewFolderItemVisible === VOID ? this.qwo_1 : createNewFolderItemVisible; importFromLinkItemVisible = importFromLinkItemVisible === VOID ? this.rwo_1 : importFromLinkItemVisible; importFromFileItemVisible = importFromFileItemVisible === VOID ? this.swo_1 : importFromFileItemVisible; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.two_1 : createNewOptionsVisible; selectedEntries = selectedEntries === VOID ? this.uwo_1 : selectedEntries; showSelectFolderButton = showSelectFolderButton === VOID ? this.vwo_1 : showSelectFolderButton; contextMenuItems = contextMenuItems === VOID ? this.wwo_1 : contextMenuItems; hasWritePermission = hasWritePermission === VOID ? this.xwo_1 : hasWritePermission; return $super === VOID ? this.gwv(filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission) : $super.gwv.call(this, filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission); }; protoOf(ContentEntryListUiState).toString = function () { return 'ContentEntryListUiState(filterMode=' + this.iwo_1 + ', contentEntryList=' + this.jwo_1 + ', selectedChipId=' + this.kwo_1 + ', filterOptions=' + this.lwo_1 + ', showHiddenEntries=' + this.mwo_1 + ', onlyFolderFilter=' + this.nwo_1 + ', sortOptions=' + this.owo_1 + ', activeSortOption=' + this.pwo_1 + ', createNewFolderItemVisible=' + this.qwo_1 + ', importFromLinkItemVisible=' + this.rwo_1 + ', importFromFileItemVisible=' + this.swo_1 + ', createNewOptionsVisible=' + this.two_1 + ', selectedEntries=' + this.uwo_1 + ', showSelectFolderButton=' + this.vwo_1 + ', contextMenuItems=' + this.wwo_1 + ', hasWritePermission=' + this.xwo_1 + ')'; }; protoOf(ContentEntryListUiState).hashCode = function () { var result = this.iwo_1; result = imul(result, 31) + hashCode(this.jwo_1) | 0; result = imul(result, 31) + this.kwo_1 | 0; result = imul(result, 31) + hashCode(this.lwo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mwo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nwo_1) | 0; result = imul(result, 31) + hashCode(this.owo_1) | 0; result = imul(result, 31) + this.pwo_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.qwo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rwo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.swo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.two_1) | 0; result = imul(result, 31) + hashCode(this.uwo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vwo_1) | 0; result = imul(result, 31) + hashCode(this.wwo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xwo_1) | 0; return result; }; protoOf(ContentEntryListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryListUiState)) return false; var tmp0_other_with_cast = other instanceof ContentEntryListUiState ? other : THROW_CCE(); if (!(this.iwo_1 === tmp0_other_with_cast.iwo_1)) return false; if (!equals(this.jwo_1, tmp0_other_with_cast.jwo_1)) return false; if (!(this.kwo_1 === tmp0_other_with_cast.kwo_1)) return false; if (!equals(this.lwo_1, tmp0_other_with_cast.lwo_1)) return false; if (!(this.mwo_1 === tmp0_other_with_cast.mwo_1)) return false; if (!(this.nwo_1 === tmp0_other_with_cast.nwo_1)) return false; if (!equals(this.owo_1, tmp0_other_with_cast.owo_1)) return false; if (!this.pwo_1.equals(tmp0_other_with_cast.pwo_1)) return false; if (!(this.qwo_1 === tmp0_other_with_cast.qwo_1)) return false; if (!(this.rwo_1 === tmp0_other_with_cast.rwo_1)) return false; if (!(this.swo_1 === tmp0_other_with_cast.swo_1)) return false; if (!(this.two_1 === tmp0_other_with_cast.two_1)) return false; if (!equals(this.uwo_1, tmp0_other_with_cast.uwo_1)) return false; if (!(this.vwo_1 === tmp0_other_with_cast.vwo_1)) return false; if (!equals(this.wwo_1, tmp0_other_with_cast.wwo_1)) return false; if (!(this.xwo_1 === tmp0_other_with_cast.xwo_1)) return false; return true; }; function Companion_154() { } protoOf(Companion_154).o4r = function () { return $serializer_getInstance_74(); }; var Companion_instance_202; function Companion_getInstance_172() { return Companion_instance_202; } function $serializer_62() { $serializer_instance_62 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListSelectedItem', this, 3); tmp0_serialDesc.u4f('contentEntryUid', false); tmp0_serialDesc.u4f('contentEntryParentChildJoinUid', false); tmp0_serialDesc.u4f('parentContentEntryUid', false); this.hwv_1 = tmp0_serialDesc; } protoOf($serializer_62).r44 = function () { return this.hwv_1; }; protoOf($serializer_62).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_62).t44 = function (decoder) { var tmp0_desc = this.hwv_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_input = decoder.j48(tmp0_desc); if (tmp7_input.y48()) { tmp4_local0 = tmp7_input.p48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.p48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.p48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.p48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.k48(tmp0_desc); return ContentEntryListSelectedItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_62).iwv = function (encoder, value) { var tmp0_desc = this.hwv_1; var tmp1_output = encoder.j48(tmp0_desc); tmp1_output.t49(tmp0_desc, 0, value.ip3_1); tmp1_output.t49(tmp0_desc, 1, value.jp3_1); tmp1_output.t49(tmp0_desc, 2, value.kp3_1); tmp1_output.k48(tmp0_desc); }; protoOf($serializer_62).s44 = function (encoder, value) { return this.iwv(encoder, value instanceof ContentEntryListSelectedItem ? value : THROW_CCE()); }; var $serializer_instance_62; function $serializer_getInstance_74() { if ($serializer_instance_62 == null) new $serializer_62(); return $serializer_instance_62; } function ContentEntryListSelectedItem_init_$Init$(seen1, contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_74().hwv_1); } $this.ip3_1 = contentEntryUid; $this.jp3_1 = contentEntryParentChildJoinUid; $this.kp3_1 = parentContentEntryUid; return $this; } function ContentEntryListSelectedItem_init_$Create$(seen1, contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid, serializationConstructorMarker) { return ContentEntryListSelectedItem_init_$Init$(seen1, contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid, serializationConstructorMarker, objectCreate(protoOf(ContentEntryListSelectedItem))); } function ContentEntryListSelectedItem(contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid) { this.ip3_1 = contentEntryUid; this.jp3_1 = contentEntryParentChildJoinUid; this.kp3_1 = parentContentEntryUid; } protoOf(ContentEntryListSelectedItem).toString = function () { return 'ContentEntryListSelectedItem(contentEntryUid=' + this.ip3_1.toString() + ', contentEntryParentChildJoinUid=' + this.jp3_1.toString() + ', parentContentEntryUid=' + this.kp3_1.toString() + ')'; }; protoOf(ContentEntryListSelectedItem).hashCode = function () { var result = this.ip3_1.hashCode(); result = imul(result, 31) + this.jp3_1.hashCode() | 0; result = imul(result, 31) + this.kp3_1.hashCode() | 0; return result; }; protoOf(ContentEntryListSelectedItem).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryListSelectedItem)) return false; var tmp0_other_with_cast = other instanceof ContentEntryListSelectedItem ? other : THROW_CCE(); if (!this.ip3_1.equals(tmp0_other_with_cast.ip3_1)) return false; if (!this.jp3_1.equals(tmp0_other_with_cast.jp3_1)) return false; if (!this.kp3_1.equals(tmp0_other_with_cast.kp3_1)) return false; return true; }; function asSelectedItem(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.ray_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.oav_1; var tmp = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp2_safe_receiver = _this__u8e3s4.tay_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.yay_1; var tmp_0 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; var tmp4_safe_receiver = _this__u8e3s4.tay_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.vay_1; return new ContentEntryListSelectedItem(tmp, tmp_0, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs); } function moveContentEntriesUseCase$factory() { return getPropertyCallableRef('moveContentEntriesUseCase', 1, KProperty1, function (receiver) { return _get_moveContentEntriesUseCase__fb3hfi(receiver); }, null); } function deleteEntriesUseCase$factory() { return getPropertyCallableRef('deleteEntriesUseCase', 1, KProperty1, function (receiver) { return _get_deleteEntriesUseCase__hkwqc9(receiver); }, null); } function moveContentEntriesUseCase$factory_0() { return getPropertyCallableRef('moveContentEntriesUseCase', 1, KProperty1, function (receiver) { return _get_moveContentEntriesUseCase__fb3hfi(receiver); }, null); } function deleteEntriesUseCase$factory_0() { return getPropertyCallableRef('deleteEntriesUseCase', 1, KProperty1, function (receiver) { return _get_deleteEntriesUseCase__hkwqc9(receiver); }, null); } function SubtitleEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda$slambda).swv = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SubtitleEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.swv(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SubtitleEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SubtitleEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new SubtitleEditViewModel$slambda$slambda(completion); i.rwv_1 = db; return i; }; function SubtitleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SubtitleEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.swv(db, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.bww_1 = $savedStateHandle; this.cww_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda$slambda_1).dww = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.dww($completion); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_elvis_lhs = this.bww_1.ba('uri'); var tmp2_uri = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.bww_1.ba('filename'); var tmp3_title = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp4_langCode = _get_supportedLanguagesConfig__bd0744(this.cww_1).epn_1; return new SubtitleTrack(tmp2_uri, 'text/vtt', tmp4_langCode, tmp3_title); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).m78 = function (completion) { return new SubtitleEditViewModel$slambda$slambda_1(this.bww_1, this.cww_1, completion); }; function SubtitleEditViewModel$slambda$slambda_2($savedStateHandle, this$0, resultContinuation) { var i = new SubtitleEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation); var l = function ($completion) { return i.dww($completion); }; l.$arity = 0; return l; } function SubtitleEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.cwx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel...' call var nextValue = prevValue.hwx(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_supportedLanguagesConfig__bd0744($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bwx_1; supportedLanguagesConfig$factory_0(); return this_0.t2(); } function Companion_155() { this.iwx_1 = 'uri'; this.jwx_1 = 'filename'; this.kwx_1 = 'SubtitleEdit'; } var Companion_instance_203; function Companion_getInstance_173() { return Companion_instance_203; } function SubtitleEditViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.lwx(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function SubtitleEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.uwx_1 = this$0; this.vwx_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SubtitleEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SubtitleEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_79.o4r(); var tmp_1 = SubtitleEditViewModel$slambda$slambda_0(null); var tmp_2 = SubtitleEditViewModel$slambda$slambda_2(this.vwx_1, this.uwx_1, null); suspendResult = this.uwx_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, SubtitleEditViewModel$slambda$lambda(this.uwx_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.uwx_1.cwx_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hwx(VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.uwx_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.aq7_1.iq6(true)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SubtitleEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new SubtitleEditViewModel$slambda(this.uwx_1, this.vwx_1, completion); i.wwx_1 = $this$launch; return i; }; function SubtitleEditViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new SubtitleEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.fwy_1 = $commitDelay; this.gwy_1 = $entity; this.hwy_1 = $this; this.iwy_1 = $key; this.jwy_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SubtitleEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SubtitleEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.fwy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.gwy_1 == null)) { this.id_1 = 2; suspendResult = this.hwy_1.bqp(this.hwy_1.vqn_1, this.iwy_1, this.jwy_1, this.gwy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SubtitleEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new SubtitleEditViewModel$onEntityChanged$slambda(this.fwy_1, this.gwy_1, this.hwy_1, this.iwy_1, this.jwy_1, completion); i.kwy_1 = $this$launch; return i; }; function SubtitleEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new SubtitleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SubtitleEdit'); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.bwx_1 = Instance(this, tmp$ret$0, null).b5d(this, supportedLanguagesConfig$factory()); this.cwx_1 = MutableStateFlow(new SubtitleEditUiState()); this.dwx_1 = asSharedFlow(this.cwx_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.' call var tmp_1 = this.vqo().soj(strings_getInstance().cnr_1); var tmp_2 = this.vqo().soj(strings_getInstance().ams_1); var nextValue = prevValue.hq7(VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(VOID, tmp_2, VOID, SubtitleEditViewModel$onClickDone$ref(this))); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.mqo(); launch(tmp_3, VOID, VOID, SubtitleEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(SubtitleEditViewModel).lwy = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.cwx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.onEntityChanged.' call var nextValue = prevValue.hwx(entity); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_79.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.cqu_1 = launch(tmp_0, VOID, VOID, SubtitleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SubtitleEditViewModel).lwx = function () { this.gqu(this.cwx_1.t2().ewx_1); }; function SubtitleEditUiState(entity, titleError, fieldsEnabled) { entity = entity === VOID ? null : entity; titleError = titleError === VOID ? null : titleError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.ewx_1 = entity; this.fwx_1 = titleError; this.gwx_1 = fieldsEnabled; } protoOf(SubtitleEditUiState).mwy = function (entity, titleError, fieldsEnabled) { return new SubtitleEditUiState(entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).hwx = function (entity, titleError, fieldsEnabled, $super) { entity = entity === VOID ? this.ewx_1 : entity; titleError = titleError === VOID ? this.fwx_1 : titleError; fieldsEnabled = fieldsEnabled === VOID ? this.gwx_1 : fieldsEnabled; return $super === VOID ? this.mwy(entity, titleError, fieldsEnabled) : $super.mwy.call(this, entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).toString = function () { return 'SubtitleEditUiState(entity=' + this.ewx_1 + ', titleError=' + this.fwx_1 + ', fieldsEnabled=' + this.gwx_1 + ')'; }; protoOf(SubtitleEditUiState).hashCode = function () { var result = this.ewx_1 == null ? 0 : this.ewx_1.hashCode(); result = imul(result, 31) + (this.fwx_1 == null ? 0 : getStringHashCode(this.fwx_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.gwx_1) | 0; return result; }; protoOf(SubtitleEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SubtitleEditUiState)) return false; var tmp0_other_with_cast = other instanceof SubtitleEditUiState ? other : THROW_CCE(); if (!equals(this.ewx_1, tmp0_other_with_cast.ewx_1)) return false; if (!(this.fwx_1 == tmp0_other_with_cast.fwx_1)) return false; if (!(this.gwx_1 === tmp0_other_with_cast.gwx_1)) return false; return true; }; function supportedLanguagesConfig$factory() { return getPropertyCallableRef('supportedLanguagesConfig', 1, KProperty1, function (receiver) { return _get_supportedLanguagesConfig__bd0744(receiver); }, null); } function supportedLanguagesConfig$factory_0() { return getPropertyCallableRef('supportedLanguagesConfig', 1, KProperty1, function (receiver) { return _get_supportedLanguagesConfig__bd0744(receiver); }, null); } function _get_$cachedSerializer__te6jhj_2($this) { return $this.nwy_1.t2(); } function CourseBlockViewModelConstants$CompletionCriteria$Companion$_anonymous__1j6hl9() { return createSimpleEnumSerializer('com.ustadmobile.core.viewmodel.courseblock.CourseBlockViewModelConstants.CompletionCriteria', values_4()); } var CompletionCriteria_AUTOMATIC_instance; var CompletionCriteria_MIN_SCORE_instance; var CompletionCriteria_STUDENT_SELF_MARKS_instance; var CompletionCriteria_ASSIGNMENT_SUBMITTED_instance; var CompletionCriteria_ASSIGNMENT_GRADED_instance; function Companion_156() { Companion_instance_204 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.nwy_1 = lazy(tmp_0, CourseBlockViewModelConstants$CompletionCriteria$Companion$_anonymous__1j6hl9); } protoOf(Companion_156).pkb = function (value) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var indexedObject = values_4(); var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.viewmodel.courseblock.Companion.valueOf.' call if (element.rwy_1 === value) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } var tmp0_elvis_lhs = tmp$ret$1; return tmp0_elvis_lhs == null ? first_2(values_4()) : tmp0_elvis_lhs; }; protoOf(Companion_156).o4r = function () { return _get_$cachedSerializer__te6jhj_2(this); }; protoOf(Companion_156).w4g = function (typeParamsSerializers) { return this.o4r(); }; var Companion_instance_204; function Companion_getInstance_174() { CompletionCriteria_initEntries(); if (Companion_instance_204 == null) new Companion_156(); return Companion_instance_204; } function values_4() { return [CompletionCriteria_AUTOMATIC_getInstance(), CompletionCriteria_MIN_SCORE_getInstance(), CompletionCriteria_STUDENT_SELF_MARKS_getInstance(), CompletionCriteria_ASSIGNMENT_SUBMITTED_getInstance(), CompletionCriteria_ASSIGNMENT_GRADED_getInstance()]; } var CompletionCriteria_entriesInitialized; function CompletionCriteria_initEntries() { if (CompletionCriteria_entriesInitialized) return Unit_instance; CompletionCriteria_entriesInitialized = true; var tmp = strings_getInstance().qn6_1; CompletionCriteria_AUTOMATIC_instance = new CompletionCriteria('AUTOMATIC', 0, tmp, 0); var tmp_0 = strings_getInstance().pn6_1; CompletionCriteria_MIN_SCORE_instance = new CompletionCriteria('MIN_SCORE', 1, tmp_0, 1); var tmp_1 = strings_getInstance().rn6_1; CompletionCriteria_STUDENT_SELF_MARKS_instance = new CompletionCriteria('STUDENT_SELF_MARKS', 2, tmp_1, 2); var tmp_2 = strings_getInstance().wn6_1; CompletionCriteria_ASSIGNMENT_SUBMITTED_instance = new CompletionCriteria('ASSIGNMENT_SUBMITTED', 3, tmp_2, 100); var tmp_3 = strings_getInstance().gnh_1; CompletionCriteria_ASSIGNMENT_GRADED_instance = new CompletionCriteria('ASSIGNMENT_GRADED', 4, tmp_3, 102); Companion_getInstance_174(); } function CompletionCriteria(name, ordinal, stringResource, value) { Enum.call(this, name, ordinal); this.qwy_1 = stringResource; this.rwy_1 = value; } function CompletionCriteria_AUTOMATIC_getInstance() { CompletionCriteria_initEntries(); return CompletionCriteria_AUTOMATIC_instance; } function CompletionCriteria_MIN_SCORE_getInstance() { CompletionCriteria_initEntries(); return CompletionCriteria_MIN_SCORE_instance; } function CompletionCriteria_STUDENT_SELF_MARKS_getInstance() { CompletionCriteria_initEntries(); return CompletionCriteria_STUDENT_SELF_MARKS_instance; } function CompletionCriteria_ASSIGNMENT_SUBMITTED_getInstance() { CompletionCriteria_initEntries(); return CompletionCriteria_ASSIGNMENT_SUBMITTED_instance; } function CompletionCriteria_ASSIGNMENT_GRADED_getInstance() { CompletionCriteria_initEntries(); return CompletionCriteria_ASSIGNMENT_GRADED_instance; } function CourseBlockEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.awz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.bwz_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var descriptionHtml = tmp_1; var tmp1_safe_receiver = this.awz_1.zwz_1.t2().au2_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pk8_1; this.awz_1.bx0(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jkm(VOID, VOID, VOID, VOID, VOID, descriptionHtml)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).mqb = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda(this.awz_1, completion); i.bwz_1 = result; return i; }; function CourseBlockEditViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.kx0_1 = this$0; this.lx0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.mx0_1.sqa_1; var tmp0_elvis_lhs = tmp_0 instanceof ContentEntryAndContentJob ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var contentEntryResult = tmp_1; l$ret$1: do { var this_0 = this.kx0_1.zwz_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.au2_1; var nextValue = prevValue.lu2(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bk9(VOID, VOID, contentEntryResult.qk7_1, VOID, contentEntryResult.sk7_1, contentEntryResult.rk7_1)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.lx0_1.yqj('SavedSelectedContentEntry', this.kx0_1.n4r().s45(Companion_instance_40.o4r(), contentEntryResult)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).mqb = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda_1(this.kx0_1, this.lx0_1, completion); i.mx0_1 = result; return i; }; function CourseBlockEditViewModel$slambda$slambda$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda).tu3 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.tu3(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda).enz = function (it, completion) { var i = new CourseBlockEditViewModel$slambda$slambda(completion); i.vx0_1 = it; return i; }; function CourseBlockEditViewModel$slambda$slambda_0(resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.tu3(it, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, $selectedContentEntry, resultContinuation) { this.ex1_1 = this$0; this.fx1_1 = $savedStateHandle; this.gx1_1 = $selectedContentEntry; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_1).du4 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.du4($completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.ex1_1.pqo()); suspendResult = tmp_0.p62(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var newUid = suspendResult; var this_0 = new CourseBlock(); this_0.u7x_1 = newUid; this_0.k7y_1 = true; var tmp_1 = this_0; var tmp0_safe_receiver = this.fx1_1.ba('blockType'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); var tmp_2; if (tmp1_elvis_lhs == null) { tmp_2 = 100; } else { tmp_2 = tmp1_elvis_lhs; } tmp_1.v7x_1 = tmp_2; var tmp_3 = this_0; var tmp2_safe_receiver = this.gx1_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.qk7_1; tmp_3.y7x_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pav_1; var tmp_4 = this_0; var tmp4_safe_receiver = this.gx1_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.qk7_1; tmp_4.z7x_1 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.qav_1; if (!(this.gx1_1 == null)) { var tmp_5 = this_0; var tmp6_safe_receiver = this.gx1_1.qk7_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.oav_1; tmp_5.m7y_1 = tmp7_elvis_lhs == null ? new Long(0, 0) : tmp7_elvis_lhs; var tmp_6 = this_0; tmp_6.v7x_1 = 104; } var tmp0_safe_receiver_0 = this.gx1_1; var tmp5_contentEntry = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.qk7_1; var tmp3_safe_receiver_0 = this.gx1_1; var tmp6_contentJob = tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.rk7_1; var tmp2_safe_receiver_0 = this.gx1_1; var tmp7_contentJobItem = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.sk7_1; var tmp8_courseBlockPicture = new CourseBlockPicture(newUid); var tmp1_safe_receiver = this.gx1_1; var tmp9_contentEntryPicture = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tk7_1; return new CourseBlockAndEditEntities(this_0, tmp8_courseBlockPicture, tmp5_contentEntry, tmp9_contentEntryPicture, tmp7_contentJobItem, tmp6_contentJob); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).m78 = function (completion) { return new CourseBlockEditViewModel$slambda$slambda_1(this.ex1_1, this.fx1_1, this.gx1_1, completion); }; function CourseBlockEditViewModel$slambda$slambda_2(this$0, $savedStateHandle, $selectedContentEntry, resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, $selectedContentEntry, resultContinuation); var l = function ($completion) { return i.du4($completion); }; l.$arity = 0; return l; } function CourseBlockEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zwz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel...' call var nextValue = prevValue.lu2(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseBlockEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseBlockEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.px1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.px1_1.zqo(this.px1_1.uqo(), 'courseBlockDesc'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_0(this.px1_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_27(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_3(this.px1_1, completion); i.qx1_1 = $this$launch; return i; }; function CourseBlockEditViewModel$slambda$slambda_4(this$0, resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda_3(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_5(this$0, $savedStateHandle, resultContinuation) { this.zx1_1 = this$0; this.ax2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.zx1_1.zqo(this.zx1_1.uqo(), 'courseBlockEditContentEntry'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_2(this.zx1_1, this.ax2_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_27(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_5(this.zx1_1, this.ax2_1, completion); i.bx2_1 = $this$launch; return i; }; function CourseBlockEditViewModel$slambda$slambda_6(this$0, $savedStateHandle, resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda_5(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function Companion_157() { Companion_instance_205 = this; this.xwh_1 = 'CourseBlockEdit'; this.ywh_1 = 'SelectedContentEntry'; this.zwh_1 = 'blockType'; this.awi_1 = 'courseBlockDesc'; this.bwi_1 = 'courseBlockEditContentEntry'; this.cwi_1 = 'SavedSelectedContentEntry'; var tmp = this; Companion_getInstance_126(); Companion_getInstance_117(); Companion_getInstance_117(); tmp.dwi_1 = listOf(['blockType', 'clazzUid', 'goToOnContentEntryDone', 'blockType', 'result_viewname', 'result_key', 'listMode']); } var Companion_instance_205; function Companion_getInstance_175() { if (Companion_instance_205 == null) new Companion_157(); return Companion_instance_205; } function sam$kotlinx_coroutines_flow_FlowCollector$0_27(function_0) { this.cx2_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_27).u1d = function (value, $completion) { return this.cx2_1(value, $completion); }; function CourseBlockEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.lx2_1 = this$0; this.mx2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.id_1 = 1; suspendResult = this.lx2_1.aqp(this.mx2_1, 'SelectedContentEntry', Companion_instance_40.o4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ox2_1 = suspendResult; this.px2_1 = Companion_getInstance_14().o4r(); this.id_1 = 2; var tmp_0 = CourseBlockEditViewModel$slambda$slambda_0(null); var tmp_1 = CourseBlockEditViewModel$slambda$slambda_2(this.lx2_1, this.mx2_1, this.ox2_1, null); suspendResult = this.lx2_1.fqp(this.px2_1, VOID, VOID, tmp_0, tmp_1, CourseBlockEditViewModel$slambda$lambda(this.lx2_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.qx2_1 = suspendResult; var tmp_2 = this; var tmp1_safe_receiver = this.qx2_1; tmp_2.rx2_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.rk8_1; var tmp_3 = this; var tmp2_safe_receiver = this.qx2_1; tmp_3.sx2_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.pk8_1; if (!(this.rx2_1 == null) ? !(this.sx2_1 == null) : false) { Companion_getInstance_116(); if (this.mx2_1.ba('entity') == null) { this.tx2_1 = false; this.id_1 = 4; continue $sm; } else { var tmp_4; var tmp_5 = this.rx2_1.kaw_1; if (tmp_5 === 2) { tmp_4 = this.rx2_1.jaw_1.equals(this.sx2_1.u7x_1); } else { tmp_4 = false; } if (tmp_4) { var tmp_6 = this; tmp_6.tx2_1 = true; this.id_1 = 4; continue $sm; } else { var tmp_7 = this.rx2_1.kaw_1; if (tmp_7 === 2) { this.id_1 = 3; var tmp_8 = this.lx2_1.rqo().p7f(); var tmp_9 = this.lx2_1.nqo(); var tmp_10 = this.rx2_1.jaw_1; PermissionFlags_getInstance(); suspendResult = tmp_8.kdk(tmp_9, tmp_10, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.tx2_1 = false; this.id_1 = 4; continue $sm; } } } } else { this.id_1 = 5; continue $sm; } case 3: this.tx2_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: var canEditContentEntry = this.tx2_1; l$ret$1: do { var this_0 = this.lx2_1.zwz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lu2(VOID, canEditContentEntry); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 5; continue $sm; case 5: l$ret$3: do { var this_1 = this.lx2_1.zwz_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.lu2(VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); l$ret$5: do { var this_2 = this.lx2_1.zqn_1; while (true) { var prevValue_1 = this_2.t2(); var tmp0_safe_receiver = this.sx2_1; var tmp1_subject = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7x_1; var tmp_11; if (tmp1_subject === 100) { tmp_11 = this.lx2_1.fqv(strings_getInstance().pnj_1, strings_getInstance().ani_1); } else { if (tmp1_subject === 102) { tmp_11 = this.lx2_1.fqv(strings_getInstance().onh_1, strings_getInstance().onj_1); } else { if (tmp1_subject === 105) { tmp_11 = this.lx2_1.fqv(strings_getInstance().qnk_1, strings_getInstance().rnk_1); } else { if (tmp1_subject === 104) { tmp_11 = this.lx2_1.vqo().soj(strings_getInstance().fnp_1); } else { tmp_11 = ''; } } } } var tmp_12 = tmp_11; var tmp_13 = this.lx2_1.vqo().soj(strings_getInstance().ams_1); var nextValue_1 = prevValue_1.hq7(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_13, VOID, CourseBlockEditViewModel$onClickSave$ref(this.lx2_1))); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); launch(this.nx2_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_4(this.lx2_1, null)); launch(this.nx2_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_6(this.lx2_1, this.mx2_1, null)); return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda(this.lx2_1, this.mx2_1, completion); i.nx2_1 = $this$launch; return i; }; function CourseBlockEditViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new CourseBlockEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.cx3_1 = $commitDelay; this.dx3_1 = $entity; this.ex3_1 = $this; this.fx3_1 = $key; this.gx3_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.cx3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.dx3_1 == null)) { this.id_1 = 2; suspendResult = this.ex3_1.bqp(this.ex3_1.vqn_1, this.fx3_1, this.gx3_1, this.dx3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$onEntityChanged$slambda(this.cx3_1, this.dx3_1, this.ex3_1, this.fx3_1, this.gx3_1, completion); i.hx3_1 = $this$launch; return i; }; function CourseBlockEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new CourseBlockEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.qx3_1 = $commitDelay; this.rx3_1 = $entity; this.sx3_1 = $this; this.tx3_1 = $key; this.ux3_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.qx3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rx3_1 == null)) { this.id_1 = 2; suspendResult = this.sx3_1.bqp(this.sx3_1.vqn_1, this.tx3_1, this.ux3_1, this.rx3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).w1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$onPictureChanged$slambda(this.qx3_1, this.rx3_1, this.sx3_1, this.tx3_1, this.ux3_1, completion); i.vx3_1 = $this$launch; return i; }; function CourseBlockEditViewModel$onPictureChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new CourseBlockEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel(di, savedStateHandle) { Companion_getInstance_175(); UstadEditViewModel.call(this, di, savedStateHandle, 'CourseBlockEdit'); this.zwz_1 = MutableStateFlow(new CourseBlockEditUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_10().emi().fmh())); this.ax0_1 = asStateFlow(this.zwz_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, true, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.mqo(); launch(tmp, VOID, VOID, CourseBlockEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(CourseBlockEditViewModel).bx0 = function (courseBlock) { if (courseBlock == null) return Unit_instance; var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.zwz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.au2_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bk9(courseBlock); var tmp1_safe_receiver = prevValue.au2_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pk8_1; var nextValue = prevValue.lu2(tmp, VOID, VOID, VOID, VOID, this.gqv(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y7x_1, courseBlock.y7x_1, prevValue.fu2_1)); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.au2_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_14().o4r(); Companion_getInstance_116(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_0 = this; var tmp_1 = this.mqo(); tmp_0.cqu_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onEntityChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).wx3 = function () { var tmp0_safe_receiver = this.zwz_1.t2().au2_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zk8(); var tmp_0 = Companion_instance_40.o4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickEditContentEntry.' call var tmp0_safe_receiver_0 = this.zwz_1.t2().au2_1; if (tmp0_safe_receiver_0 == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickEditContentEntry..' call // Inline function 'kotlin.collections.set' call var key = 'courseBlock'; var value = this.n4r().s45(Companion_instance_14.o4r(), tmp0_safe_receiver_0.pk8_1); this_0.s(key, value); // Inline function 'kotlin.collections.set' call var key_0 = 'goToOnContentEntryDone'; var value_0 = (2).toString(); this_0.s(key_0, value_0); } var tmp$ret$3 = this_0.f3(); this.dqp('ContentEntryEdit', 'courseBlockEditContentEntry', tmp, tmp_0, tmp$ret$3); }; protoOf(CourseBlockEditViewModel).bua = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.zwz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.au2_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.au2_1.qk8_1; tmp = tmp1_safe_receiver.bk9(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nkm(VOID, VOID, pictureUri)); } var nextValue = prevValue.lu2(tmp); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.au2_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_14().o4r(); Companion_getInstance_116(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_0 = this; var tmp_1 = this.mqo(); tmp_0.cqu_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onPictureChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).ysb = function () { var tmp0_elvis_lhs = this.zwz_1.t2().au2_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var courseBlockVal = tmp; // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = courseBlockVal.pk8_1.y7x_1; // Inline function 'kotlin.contracts.contract' call if (this_0 == null ? true : isBlank(this_0)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zwz_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickSave.' call var nextValue = prevValue.lu2(VOID, VOID, VOID, VOID, VOID, this.vqo().soj(strings_getInstance().gnm_1)); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } } if (this.zwz_1.t2().pu6()) return Unit_instance; this.gqu(this.zwz_1.t2().au2_1); }; function Companion_158() { Companion_instance_206 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.xx3_1 = [null, null, new ArrayListSerializer(Companion_getInstance_174().o4r()), null, null, null, null, null, null, null, null]; } var Companion_instance_206; function Companion_getInstance_176() { if (Companion_instance_206 == null) new Companion_158(); return Companion_instance_206; } function $serializer_63() { $serializer_instance_63 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditUiState', this, 11); tmp0_serialDesc.u4f('block', true); tmp0_serialDesc.u4f('canEditSelectedContentEntry', true); tmp0_serialDesc.u4f('completionCriteriaOptions', true); tmp0_serialDesc.u4f('fieldsEnabled', true); tmp0_serialDesc.u4f('caHideUntilDateError', true); tmp0_serialDesc.u4f('caTitleError', true); tmp0_serialDesc.u4f('caDeadlineError', true); tmp0_serialDesc.u4f('caMaxPointsError', true); tmp0_serialDesc.u4f('maxPointsRequired', true); tmp0_serialDesc.u4f('caGracePeriodError', true); tmp0_serialDesc.u4f('timeZone', true); this.yx3_1 = tmp0_serialDesc; } protoOf($serializer_63).r44 = function () { return this.yx3_1; }; protoOf($serializer_63).l4g = function () { var tmp0_cached = Companion_getInstance_176().xx3_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_7()), BooleanSerializer_getInstance(), tmp0_cached[2], BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance()]; }; protoOf($serializer_63).t44 = function (decoder) { var tmp0_desc = this.yx3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = false; var tmp6_local2 = null; var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = false; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_input = decoder.j48(tmp0_desc); var tmp16_cached = Companion_getInstance_176().xx3_1; if (tmp15_input.y48()) { tmp4_local0 = tmp15_input.x48(tmp0_desc, 0, $serializer_getInstance_7(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.l48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.v48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.l48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.x48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.l48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.x48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.t48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.x48(tmp0_desc, 0, $serializer_getInstance_7(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.l48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.v48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.l48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.x48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.x48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.l48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.x48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.t48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.k48(tmp0_desc); return CourseBlockEditUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_63).zx3 = function (encoder, value) { var tmp0_desc = this.yx3_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_176().xx3_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.au2_1 == null)) { tmp1_output.b4a(tmp0_desc, 0, $serializer_getInstance_7(), value.au2_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.bu2_1 === false)) { tmp1_output.p49(tmp0_desc, 1, value.bu2_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !equals(value.cu2_1, emptyList())) { tmp1_output.z49(tmp0_desc, 2, tmp2_cached[2], value.cu2_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.du2_1 === false)) { tmp1_output.p49(tmp0_desc, 3, value.du2_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.eu2_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, StringSerializer_getInstance(), value.eu2_1); } if (tmp1_output.f4a(tmp0_desc, 5) ? true : !(value.fu2_1 == null)) { tmp1_output.b4a(tmp0_desc, 5, StringSerializer_getInstance(), value.fu2_1); } if (tmp1_output.f4a(tmp0_desc, 6) ? true : !(value.gu2_1 == null)) { tmp1_output.b4a(tmp0_desc, 6, StringSerializer_getInstance(), value.gu2_1); } if (tmp1_output.f4a(tmp0_desc, 7) ? true : !(value.hu2_1 == null)) { tmp1_output.b4a(tmp0_desc, 7, StringSerializer_getInstance(), value.hu2_1); } if (tmp1_output.f4a(tmp0_desc, 8) ? true : !(value.iu2_1 === false)) { tmp1_output.p49(tmp0_desc, 8, value.iu2_1); } if (tmp1_output.f4a(tmp0_desc, 9) ? true : !(value.ju2_1 == null)) { tmp1_output.b4a(tmp0_desc, 9, StringSerializer_getInstance(), value.ju2_1); } if (tmp1_output.f4a(tmp0_desc, 10) ? true : !(value.ku2_1 === 'UTC')) { tmp1_output.x49(tmp0_desc, 10, value.ku2_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_63).s44 = function (encoder, value) { return this.zx3(encoder, value instanceof CourseBlockEditUiState ? value : THROW_CCE()); }; var $serializer_instance_63; function $serializer_getInstance_75() { if ($serializer_instance_63 == null) new $serializer_63(); return $serializer_instance_63; } function CourseBlockEditUiState_init_$Init$(seen1, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_75().yx3_1); } if (0 === (seen1 & 1)) $this.au2_1 = null; else $this.au2_1 = block; if (0 === (seen1 & 2)) $this.bu2_1 = false; else $this.bu2_1 = canEditSelectedContentEntry; if (0 === (seen1 & 4)) $this.cu2_1 = emptyList(); else $this.cu2_1 = completionCriteriaOptions; if (0 === (seen1 & 8)) $this.du2_1 = false; else $this.du2_1 = fieldsEnabled; if (0 === (seen1 & 16)) $this.eu2_1 = null; else $this.eu2_1 = caHideUntilDateError; if (0 === (seen1 & 32)) $this.fu2_1 = null; else $this.fu2_1 = caTitleError; if (0 === (seen1 & 64)) $this.gu2_1 = null; else $this.gu2_1 = caDeadlineError; if (0 === (seen1 & 128)) $this.hu2_1 = null; else $this.hu2_1 = caMaxPointsError; if (0 === (seen1 & 256)) $this.iu2_1 = false; else $this.iu2_1 = maxPointsRequired; if (0 === (seen1 & 512)) $this.ju2_1 = null; else $this.ju2_1 = caGracePeriodError; if (0 === (seen1 & 1024)) $this.ku2_1 = 'UTC'; else $this.ku2_1 = timeZone; return $this; } function CourseBlockEditUiState_init_$Create$(seen1, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, serializationConstructorMarker) { return CourseBlockEditUiState_init_$Init$(seen1, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, serializationConstructorMarker, objectCreate(protoOf(CourseBlockEditUiState))); } function CourseBlockEditUiState(block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone) { Companion_getInstance_176(); block = block === VOID ? null : block; canEditSelectedContentEntry = canEditSelectedContentEntry === VOID ? false : canEditSelectedContentEntry; completionCriteriaOptions = completionCriteriaOptions === VOID ? emptyList() : completionCriteriaOptions; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; caHideUntilDateError = caHideUntilDateError === VOID ? null : caHideUntilDateError; caTitleError = caTitleError === VOID ? null : caTitleError; caDeadlineError = caDeadlineError === VOID ? null : caDeadlineError; caMaxPointsError = caMaxPointsError === VOID ? null : caMaxPointsError; maxPointsRequired = maxPointsRequired === VOID ? false : maxPointsRequired; caGracePeriodError = caGracePeriodError === VOID ? null : caGracePeriodError; timeZone = timeZone === VOID ? 'UTC' : timeZone; this.au2_1 = block; this.bu2_1 = canEditSelectedContentEntry; this.cu2_1 = completionCriteriaOptions; this.du2_1 = fieldsEnabled; this.eu2_1 = caHideUntilDateError; this.fu2_1 = caTitleError; this.gu2_1 = caDeadlineError; this.hu2_1 = caMaxPointsError; this.iu2_1 = maxPointsRequired; this.ju2_1 = caGracePeriodError; this.ku2_1 = timeZone; } protoOf(CourseBlockEditUiState).ax4 = function () { var tmp0_safe_receiver = this.au2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk8_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a7y_1; return tmp === 1; }; protoOf(CourseBlockEditUiState).bx4 = function () { var tmp; if (this.cx4()) { var tmp0_safe_receiver = this.au2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk8_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c7y_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).fty = function () { var tmp; if (this.bx4()) { var tmp0_safe_receiver = this.au2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk8_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e7y_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).dx4 = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.cu2_1.c1(); }; protoOf(CourseBlockEditUiState).cx4 = function () { var tmp; var tmp0_safe_receiver = this.au2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk8_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.au2_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.pk8_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).ex4 = function () { var tmp; var tmp0_safe_receiver = this.au2_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk8_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.au2_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.pk8_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).pu6 = function () { return ((!(this.fu2_1 == null) ? true : !(this.gu2_1 == null)) ? true : !(this.ju2_1 == null)) ? true : !(this.hu2_1 == null); }; protoOf(CourseBlockEditUiState).fx4 = function (block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone) { return new CourseBlockEditUiState(block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone); }; protoOf(CourseBlockEditUiState).lu2 = function (block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, $super) { block = block === VOID ? this.au2_1 : block; canEditSelectedContentEntry = canEditSelectedContentEntry === VOID ? this.bu2_1 : canEditSelectedContentEntry; completionCriteriaOptions = completionCriteriaOptions === VOID ? this.cu2_1 : completionCriteriaOptions; fieldsEnabled = fieldsEnabled === VOID ? this.du2_1 : fieldsEnabled; caHideUntilDateError = caHideUntilDateError === VOID ? this.eu2_1 : caHideUntilDateError; caTitleError = caTitleError === VOID ? this.fu2_1 : caTitleError; caDeadlineError = caDeadlineError === VOID ? this.gu2_1 : caDeadlineError; caMaxPointsError = caMaxPointsError === VOID ? this.hu2_1 : caMaxPointsError; maxPointsRequired = maxPointsRequired === VOID ? this.iu2_1 : maxPointsRequired; caGracePeriodError = caGracePeriodError === VOID ? this.ju2_1 : caGracePeriodError; timeZone = timeZone === VOID ? this.ku2_1 : timeZone; return $super === VOID ? this.fx4(block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone) : $super.fx4.call(this, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone); }; protoOf(CourseBlockEditUiState).toString = function () { return 'CourseBlockEditUiState(block=' + this.au2_1 + ', canEditSelectedContentEntry=' + this.bu2_1 + ', completionCriteriaOptions=' + this.cu2_1 + ', fieldsEnabled=' + this.du2_1 + ', caHideUntilDateError=' + this.eu2_1 + ', caTitleError=' + this.fu2_1 + ', caDeadlineError=' + this.gu2_1 + ', caMaxPointsError=' + this.hu2_1 + ', maxPointsRequired=' + this.iu2_1 + ', caGracePeriodError=' + this.ju2_1 + ', timeZone=' + this.ku2_1 + ')'; }; protoOf(CourseBlockEditUiState).hashCode = function () { var result = this.au2_1 == null ? 0 : this.au2_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.bu2_1) | 0; result = imul(result, 31) + hashCode(this.cu2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.du2_1) | 0; result = imul(result, 31) + (this.eu2_1 == null ? 0 : getStringHashCode(this.eu2_1)) | 0; result = imul(result, 31) + (this.fu2_1 == null ? 0 : getStringHashCode(this.fu2_1)) | 0; result = imul(result, 31) + (this.gu2_1 == null ? 0 : getStringHashCode(this.gu2_1)) | 0; result = imul(result, 31) + (this.hu2_1 == null ? 0 : getStringHashCode(this.hu2_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.iu2_1) | 0; result = imul(result, 31) + (this.ju2_1 == null ? 0 : getStringHashCode(this.ju2_1)) | 0; result = imul(result, 31) + getStringHashCode(this.ku2_1) | 0; return result; }; protoOf(CourseBlockEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockEditUiState)) return false; var tmp0_other_with_cast = other instanceof CourseBlockEditUiState ? other : THROW_CCE(); if (!equals(this.au2_1, tmp0_other_with_cast.au2_1)) return false; if (!(this.bu2_1 === tmp0_other_with_cast.bu2_1)) return false; if (!equals(this.cu2_1, tmp0_other_with_cast.cu2_1)) return false; if (!(this.du2_1 === tmp0_other_with_cast.du2_1)) return false; if (!(this.eu2_1 == tmp0_other_with_cast.eu2_1)) return false; if (!(this.fu2_1 == tmp0_other_with_cast.fu2_1)) return false; if (!(this.gu2_1 == tmp0_other_with_cast.gu2_1)) return false; if (!(this.hu2_1 == tmp0_other_with_cast.hu2_1)) return false; if (!(this.iu2_1 === tmp0_other_with_cast.iu2_1)) return false; if (!(this.ju2_1 == tmp0_other_with_cast.ju2_1)) return false; if (!(this.ku2_1 === tmp0_other_with_cast.ku2_1)) return false; return true; }; function TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ox4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).qx4 = function (it, $completion) { var tmp = this.rx4(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.qx4((p1 == null ? true : p1 instanceof CourseBlockAndPicture) ? p1 : THROW_CCE(), $completion); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.ox4_1.ox5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.sx5(this.px4_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).rx4 = function (it, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this.ox4_1, completion); i.px4_1 = it; return i; }; function TextBlockDetailViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.qx4(it, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.bx6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.bx6_1.rqo().q7d().hcl(this.bx6_1.pqn_1); var tmp_1 = TextBlockDetailViewModel$slambda$slambda$slambda$slambda_0(this.bx6_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_28(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda(this.bx6_1, completion); i.cx6_1 = $this$launch; return i; }; function TextBlockDetailViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel$slambda$slambda$lambda(this$0) { return function (title) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.textblockdetail.TextBlockDetailViewModel....' call var nextValue = prevValue.hq7(VOID, VOID, title); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function TextBlockDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.lx6_1 = $this_launch; this.mx6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TextBlockDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(TextBlockDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.lx6_1, VOID, VOID, TextBlockDetailViewModel$slambda$slambda$slambda_0(this.mx6_1, null)); launchSetTitleFromClazzUid(this.mx6_1, this.mx6_1.qx5_1, TextBlockDetailViewModel$slambda$slambda$lambda(this.mx6_1)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda).m78 = function (completion) { return new TextBlockDetailViewModel$slambda$slambda(this.lx6_1, this.mx6_1, completion); }; function TextBlockDetailViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new TextBlockDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_159() { this.nx6_1 = 'CourseText'; } var Companion_instance_207; function Companion_getInstance_177() { return Companion_instance_207; } function sam$kotlinx_coroutines_flow_FlowCollector$0_28(function_0) { this.ox6_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_28).u1d = function (value, $completion) { return this.ox6_1(value, $completion); }; function TextBlockDetailViewModel$slambda(this$0, resultContinuation) { this.xx6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TextBlockDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TextBlockDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.xx6_1.ox5_1, TextBlockDetailViewModel$slambda$slambda_0(this.yx6_1, this.xx6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(TextBlockDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda(this.xx6_1, completion); i.yx6_1 = $this$launch; return i; }; function TextBlockDetailViewModel$slambda_0(this$0, resultContinuation) { var i = new TextBlockDetailViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseText'); this.ox5_1 = MutableStateFlow(new TextBlockDetailUiState()); this.px5_1 = asStateFlow(this.ox5_1); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.qx5_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, TextBlockDetailViewModel$slambda_0(this, null)); } function TextBlockDetailUiState(courseBlock) { courseBlock = courseBlock === VOID ? null : courseBlock; this.rx5_1 = courseBlock; } protoOf(TextBlockDetailUiState).sx5 = function (courseBlock) { return new TextBlockDetailUiState(courseBlock); }; protoOf(TextBlockDetailUiState).toString = function () { return 'TextBlockDetailUiState(courseBlock=' + this.rx5_1 + ')'; }; protoOf(TextBlockDetailUiState).hashCode = function () { return this.rx5_1 == null ? 0 : this.rx5_1.hashCode(); }; protoOf(TextBlockDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof TextBlockDetailUiState)) return false; var tmp0_other_with_cast = other instanceof TextBlockDetailUiState ? other : THROW_CCE(); if (!equals(this.rx5_1, tmp0_other_with_cast.rx5_1)) return false; return true; }; function CourseGroupSetDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.yx7(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).jx8 = function (entity, permissionPair, $completion) { var tmp = this.kx8(entity, permissionPair, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).vm = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.jx8(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return to(this.hx8_1, this.ix8_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).kx8 = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda(completion); i.hx8_1 = entity; i.ix8_1 = permissionPair; return i; }; function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_0(resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation); var l = function (entity, permissionPair, $completion) { return i.jx8(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.tx8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).vx8 = function (it, $completion) { var tmp = this.wx8(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.vx8(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_container = this.ux8_1.x6_1; var hasCourseViewPermission = tmp0_container.y6(); var hasManageStudentPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.tx8_1.vx7_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.ux8_1.w6_1; var tmp_0; if (hasCourseViewPermission) { tmp_0 = this_1; } else { tmp_0 = null; } var tmp0_elvis_lhs = tmp_0; var nextValue = prevValue.zx8(VOID, tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.tx8_1.zqn_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_1 = this.tx8_1.vqo().soj(strings_getInstance().amw_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue_0 = prevValue_0.hq7(new FabUiState(hasManageStudentPermission, tmp_1, tmp_2, CourseGroupSetDetailViewModel$onClickEdit$ref(this.tx8_1))); if (this_2.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).wx8 = function (it, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this.tx8_1, completion); i.ux8_1 = it; return i; }; function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.vx8(it, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).kx9 = function (entity, permissionPair, $completion) { var tmp = this.lx9(entity, permissionPair, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).vm = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof CourseGroupSet) ? p1 : THROW_CCE(); return this.kx9(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.ix9_1; var tmp_0; if (this.jx9_1.idn_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).lx9 = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3(completion); i.ix9_1 = entity; i.jx9_1 = permissionPair; return i; }; function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_4(resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3(resultContinuation); var l = function (entity, permissionPair, $completion) { return i.kx9(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.ux9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).wx9 = function (courseGroupSet, $completion) { var tmp = this.xx9(courseGroupSet, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.wx9((p1 == null ? true : p1 instanceof CourseGroupSet) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.ux9_1.vx7_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zx8(this.vx9_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ux9_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver = this.vx9_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c7z_1; var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).xx9 = function (courseGroupSet, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this.ux9_1, completion); i.vx9_1 = courseGroupSet; return i; }; function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function (courseGroupSet, $completion) { return i.wx9(courseGroupSet, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda($memberListFlow, $permissionsFlow, this$0, resultContinuation) { this.gxa_1 = $memberListFlow; this.hxa_1 = $permissionsFlow; this.ixa_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.gxa_1, this.hxa_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_0(null))); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_2(this.ixa_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_29(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda(this.gxa_1, this.hxa_1, this.ixa_1, completion); i.jxa_1 = $this$launch; return i; }; function CourseGroupSetDetailViewModel$slambda$slambda$slambda_0($memberListFlow, $permissionsFlow, this$0, resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda($memberListFlow, $permissionsFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda_1($entityFlow, $permissionsFlow, this$0, resultContinuation) { this.sxa_1 = $entityFlow; this.txa_1 = $permissionsFlow; this.uxa_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = combine(this.sxa_1, this.txa_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_4(null)); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_6(this.uxa_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_29(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda_1(this.sxa_1, this.txa_1, this.uxa_1, completion); i.vxa_1 = $this$launch; return i; }; function CourseGroupSetDetailViewModel$slambda$slambda$slambda_2($entityFlow, $permissionsFlow, this$0, resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda_1($entityFlow, $permissionsFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda($this_launch, $memberListFlow, $permissionsFlow, this$0, $entityFlow, resultContinuation) { this.exb_1 = $this_launch; this.fxb_1 = $memberListFlow; this.gxb_1 = $permissionsFlow; this.hxb_1 = this$0; this.ixb_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.exb_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_0(this.fxb_1, this.gxb_1, this.hxb_1, null)); launch(this.exb_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_2(this.ixb_1, this.gxb_1, this.hxb_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).m78 = function (completion) { return new CourseGroupSetDetailViewModel$slambda$slambda(this.exb_1, this.fxb_1, this.gxb_1, this.hxb_1, this.ixb_1, completion); }; function CourseGroupSetDetailViewModel$slambda$slambda_0($this_launch, $memberListFlow, $permissionsFlow, this$0, $entityFlow, resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda$slambda($this_launch, $memberListFlow, $permissionsFlow, this$0, $entityFlow, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_160() { this.jxb_1 = 'CourseGroupSet'; } var Companion_instance_208; function Companion_getInstance_178() { return Companion_instance_208; } function sam$kotlinx_coroutines_flow_FlowCollector$0_29(function_0) { this.kxb_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_29).u1d = function (value, $completion) { return this.kxb_1(value, $completion); }; function CourseGroupSetDetailViewModel$slambda(this$0, resultContinuation) { this.txb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.txb_1.rqo().p7f(); var tmp_2 = this.txb_1.nqo(); PermissionFlags_getInstance(); var tmp_3 = new Long(1, 0); PermissionFlags_getInstance(); tmp_0.vxb_1 = shareIn(tmp_1.hdk(tmp_2, this.txb_1.xx7_1, tmp_3, new Long(8, 0)), this.txb_1.mqo(), Companion_getInstance_13().w1h()); this.wxb_1 = this.txb_1.rqo().t7d().ud3(this.txb_1.pqn_1, this.txb_1.xx7_1, systemTimeInMillis(), 0, this.txb_1.nqo()); this.xxb_1 = this.txb_1.rqo().s7d().u8c(this.txb_1.pqn_1); this.id_1 = 1; suspendResult = whenSubscribed(this.txb_1.vx7_1, CourseGroupSetDetailViewModel$slambda$slambda_0(this.uxb_1, this.wxb_1, this.vxb_1, this.txb_1, this.xxb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda(this.txb_1, completion); i.uxb_1 = $this$launch; return i; }; function CourseGroupSetDetailViewModel$slambda_0(this$0, resultContinuation) { var i = new CourseGroupSetDetailViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseGroupSet'); this.vx7_1 = MutableStateFlow(new CourseGroupSetDetailUiState()); this.wx7_1 = asStateFlow(this.vx7_1); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.xx7_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, CourseGroupSetDetailViewModel$slambda_0(this, null)); } protoOf(CourseGroupSetDetailViewModel).yx7 = function () { Companion_getInstance_117(); var tmp = to('entityUid', this.pqn_1.toString()); Companion_getInstance_126(); this.xqn_1.tp6('CourseGroupsEdit', mapOf([tmp, to('clazzUid', this.xx7_1.toString())])); }; function CourseGroupSetDetailUiState(courseGroupSet, membersList) { courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; membersList = membersList === VOID ? emptyList() : membersList; this.xx8_1 = courseGroupSet; this.yx8_1 = membersList; } protoOf(CourseGroupSetDetailUiState).yxb = function (courseGroupSet, membersList) { return new CourseGroupSetDetailUiState(courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).zx8 = function (courseGroupSet, membersList, $super) { courseGroupSet = courseGroupSet === VOID ? this.xx8_1 : courseGroupSet; membersList = membersList === VOID ? this.yx8_1 : membersList; return $super === VOID ? this.yxb(courseGroupSet, membersList) : $super.yxb.call(this, courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).toString = function () { return 'CourseGroupSetDetailUiState(courseGroupSet=' + this.xx8_1 + ', membersList=' + this.yx8_1 + ')'; }; protoOf(CourseGroupSetDetailUiState).hashCode = function () { var result = this.xx8_1 == null ? 0 : hashCode(this.xx8_1); result = imul(result, 31) + hashCode(this.yx8_1) | 0; return result; }; protoOf(CourseGroupSetDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupSetDetailUiState)) return false; var tmp0_other_with_cast = other instanceof CourseGroupSetDetailUiState ? other : THROW_CCE(); if (!equals(this.xx8_1, tmp0_other_with_cast.xx8_1)) return false; if (!equals(this.yx8_1, tmp0_other_with_cast.yx8_1)) return false; return true; }; function appendGroupNumIfNotInList(_this__u8e3s4, assignedGroupNum) { var tmp; var tmp0_elvis_lhs = lastOrNull(_this__u8e3s4); if ((tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs) < assignedGroupNum) { tmp = plus(_this__u8e3s4, listOf_0(assignedGroupNum)); } else { tmp = _this__u8e3s4; } return tmp; } function CourseGroupSetEditViewModel$slambda$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation) { this.hxc_1 = this$0; this.ixc_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).vxc = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.vxc(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.id_1 = 1; suspendResult = this.jxc_1.t7d().td3(this.hxc_1.dqu_1, this.hxc_1.vxd_1, systemTimeInMillis(), 0, this.hxc_1.nqo(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kxc_1 = suspendResult; var tmp_0 = this; tmp_0.lxc_1 = this.kxc_1; var tmp_1 = this; tmp_1.mxc_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.kxc_1, 10)); this.nxc_1 = this.lxc_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.nxc_1.f()) { this.id_1 = 5; continue $sm; } this.oxc_1 = this.nxc_1.e(); var tmp_2 = this; tmp_2.pxc_1 = this.oxc_1; if (this.pxc_1.id5_1 == null) { var tmp_3 = this; tmp_3.rxc_1 = new CourseGroupMemberAndName(); var tmp_4 = this; tmp_4.sxc_1 = this.rxc_1; this.sxc_1.jd5_1 = this.pxc_1.jd5_1; this.sxc_1.ld5_1 = this.pxc_1.ld5_1; this.sxc_1.kd5_1 = this.pxc_1.kd5_1; this.sxc_1.md5_1 = this.pxc_1.md5_1; var tmp_5 = this; tmp_5.txc_1 = new CourseGroupMember(); var tmp_6 = this; tmp_6.uxc_1 = this.txc_1; this.id_1 = 3; var tmp_7 = get_doorPrimaryKeyManager(this.hxc_1.pqo()); suspendResult = tmp_7.p62(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_8 = this; tmp_8.qxc_1 = this.pxc_1; this.id_1 = 4; continue $sm; } case 3: var ARGUMENT = suspendResult; this.uxc_1.qd4_1 = ARGUMENT; this.uxc_1.rd4_1 = this.ixc_1; this.uxc_1.td4_1 = this.pxc_1.kd5_1; var ARGUMENT_0 = this.txc_1; this.sxc_1.id5_1 = ARGUMENT_0; this.qxc_1 = this.rxc_1; this.id_1 = 4; continue $sm; case 4: var ARGUMENT_1 = this.qxc_1; this.mxc_1.i1(ARGUMENT_1); this.id_1 = 2; continue $sm; case 5: return this.mxc_1; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).enz = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda(this.hxc_1, this.ixc_1, completion); i.jxc_1 = db; return i; }; function CourseGroupSetEditViewModel$slambda$slambda$slambda_0(this$0, $courseGroupSetUid, resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation); var l = function (db, $completion) { return i.vxc(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).exe = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).n78 = function ($completion) { return this.exe($completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).m78 = function (completion) { return new CourseGroupSetEditViewModel$slambda$slambda$slambda_1(completion); }; function CourseGroupSetEditViewModel$slambda$slambda$slambda_2(resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.exe($completion); }; l.$arity = 0; return l; } function CourseGroupSetEditViewModel$slambda$slambda$lambda(this$0) { return function (memberList) { var tmp; if (!(memberList == null)) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.txd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.kxe(VOID, memberList); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = Unit_instance; break $l$block; } } } tmp = tmp$ret$1; } return Unit_instance; }; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.txe_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).xxe = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.xxe(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.uxe_1; var tmp_1; if (!this.txe_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.vxe_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s7d(); if (this.vxe_1 == null) { this.wxe_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.vxe_1.qdc(this.txe_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.wxe_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.wxe_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).enz = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_3(this.txe_1, completion); i.uxe_1 = db; return i; }; function CourseGroupSetEditViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (db, $completion) { return i.xxe(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_5($courseGroupSetUid, this$0, resultContinuation) { this.gxf_1 = $courseGroupSetUid; this.hxf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).sdg = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).n78 = function ($completion) { return this.sdg($completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = new CourseGroupSet(); this_0.b7z_1 = this.gxf_1; this_0.f7z_1 = this.hxf_1.vxd_1; return this_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).m78 = function (completion) { return new CourseGroupSetEditViewModel$slambda$slambda$slambda_5(this.gxf_1, this.hxf_1, completion); }; function CourseGroupSetEditViewModel$slambda$slambda$slambda_6($courseGroupSetUid, this$0, resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_5($courseGroupSetUid, this$0, resultContinuation); var l = function ($completion) { return i.sdg($completion); }; l.$arity = 0; return l; } function CourseGroupSetEditViewModel$slambda$slambda$lambda_0(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.txd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.kxe(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetEditViewModel$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation) { this.qxf_1 = this$0; this.rxf_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda).txf = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.txf((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = ListSerializer(Companion_instance_42.o4r()); var tmp_1 = listOf_0('courseGroupMembers'); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_0(this.qxf_1, this.rxf_1, null); var tmp_3 = CourseGroupSetEditViewModel$slambda$slambda$slambda_2(null); suspendResult = this.qxf_1.fqp(tmp_0, tmp_1, VOID, tmp_2, tmp_3, CourseGroupSetEditViewModel$slambda$slambda$lambda(this.qxf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda).w1m = function ($this$async, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda(this.qxf_1, this.rxf_1, completion); i.sxf_1 = $this$async; return i; }; function CourseGroupSetEditViewModel$slambda$slambda_0(this$0, $courseGroupSetUid, resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation); var l = function ($this$async, $completion) { return i.txf($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda_1(this$0, $courseGroupSetUid, resultContinuation) { this.cxg_1 = this$0; this.dxg_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).fxg = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.fxg((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_43.o4r(); var tmp_1 = CourseGroupSetEditViewModel$slambda$slambda$slambda_4(this.cxg_1, null); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_6(this.dxg_1, this.cxg_1, null); suspendResult = this.cxg_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, CourseGroupSetEditViewModel$slambda$slambda$lambda_0(this.cxg_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).w1m = function ($this$async, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda_1(this.cxg_1, this.dxg_1, completion); i.exg_1 = $this$async; return i; }; function CourseGroupSetEditViewModel$slambda$slambda_2(this$0, $courseGroupSetUid, resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda$slambda_1(this$0, $courseGroupSetUid, resultContinuation); var l = function ($this$async, $completion) { return i.fxg($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.oxg_1 = this$0; this.pxg_1 = $courseGroupSet; this.qxg_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.oxg_1.rqo().s7d().rdc(this.pxg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; suspendResult = this.oxg_1.rqo().t7d().vd3(this.qxg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this.oxg_1, this.pxg_1, this.qxg_1, completion); i.rxg_1 = it; return i; }; function CourseGroupSetEditViewModel$onClickSave$slambda$slambda_0(this$0, $courseGroupSet, $membersToSave, resultContinuation) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function Companion_161() { this.sxg_1 = 'CourseGroupsEdit'; this.txg_1 = 'courseGroupMembers'; } var Companion_instance_209; function Companion_getInstance_179() { return Companion_instance_209; } function CourseGroupSetEditViewModel$slambda(this$0, resultContinuation) { this.cxh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.dxh_1.p7f(); var tmp_1 = this.cxh_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.kdk(tmp_1, this.cxh_1.vxd_1, new Long(8, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda).enz = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda(this.cxh_1, completion); i.dxh_1 = db; return i; }; function CourseGroupSetEditViewModel$slambda_0(this$0, resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda_1(this$0, resultContinuation) { this.mxh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; if (!this.mxh_1.dqu_1.equals(new Long(0, 0))) { this.oxh_1 = this.mxh_1.dqu_1; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.mxh_1.pqo()); suspendResult = tmp_0.p62(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.oxh_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.pxh_1 = this.oxh_1; this.id_1 = 3; var tmp_1 = async(this.nxh_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_0(this.mxh_1, this.pxh_1, null)); suspendResult = awaitAll([tmp_1, async(this.nxh_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_2(this.mxh_1, this.pxh_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: l$ret$1: do { var this_0 = this.mxh_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_2 = this.mxh_1.vqo().soj(strings_getInstance().on3_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, true, CourseGroupSetEditViewModel$onClickSave$ref(this.mxh_1)); var tmp1_loadingState = Companion_getInstance_98().pq7_1; var nextValue = prevValue.hq7(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.mxh_1.txd_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.kxe(VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new CourseGroupSetEditViewModel$slambda_1(this.mxh_1, completion); i.nxh_1 = $this$launchIfHasPermission; return i; }; function CourseGroupSetEditViewModel$slambda_2(this$0, resultContinuation) { var i = new CourseGroupSetEditViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.yxh_1 = $commitDelay; this.zxh_1 = $entity; this.axi_1 = $this; this.bxi_1 = $key; this.cxi_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.yxh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.zxh_1 == null)) { this.id_1 = 2; suspendResult = this.axi_1.bqp(this.axi_1.vqn_1, this.bxi_1, this.cxi_1, this.zxh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onEntityChanged$slambda(this.yxh_1, this.zxh_1, this.axi_1, this.bxi_1, this.cxi_1, completion); i.dxi_1 = $this$launch; return i; }; function CourseGroupSetEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new CourseGroupSetEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda($groupNumber) { return function ($this$shallowCopy) { $this$shallowCopy.sd4_1 = $groupNumber; return Unit_instance; }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0($personUid) { return function (it) { return it.kd5_1.equals($personUid); }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this$0, $newState, resultContinuation) { this.mxi_1 = this$0; this.nxi_1 = $newState; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.mxi_1.bqp(this.mxi_1.vqn_1, 'courseGroupMembers', ListSerializer(Companion_instance_42.o4r()), this.nxi_1.gxe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this.mxi_1, this.nxi_1, completion); i.oxi_1 = $this$launch; return i; }; function CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda_0(this$0, $newState, resultContinuation) { var i = new CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this$0, $newState, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickAssignRandomly$lambda($shuffledPersonUidList, $it, $totalGroups) { return function ($this$shallowCopy) { $this$shallowCopy.sd4_1 = ($shuffledPersonUidList.x($it.kd5_1) % $totalGroups | 0) + 1 | 0; return Unit_instance; }; } function CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this$0, $newMemberList, resultContinuation) { this.xxi_1 = this$0; this.yxi_1 = $newMemberList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.xxi_1.bqp(this.xxi_1.vqn_1, 'courseGroupMembers', ListSerializer(Companion_instance_42.o4r()), this.yxi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this.xxi_1, this.yxi_1, completion); i.zxi_1 = $this$launch; return i; }; function CourseGroupSetEditViewModel$onClickAssignRandomly$slambda_0(this$0, $newMemberList, resultContinuation) { var i = new CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this$0, $newMemberList, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.ixj_1 = this$0; this.jxj_1 = $courseGroupSet; this.kxj_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ixj_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, CourseGroupSetEditViewModel$onClickSave$slambda$slambda_0(this.ixj_1, this.jxj_1, this.kxj_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this.jxj_1.b7z_1; Companion_getInstance_126(); this.ixj_1.equ('CourseGroupSet', tmp_1, this.jxj_1, mapOf_0(to('clazzUid', this.ixj_1.vxd_1.toString()))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda(this.ixj_1, this.jxj_1, this.kxj_1, completion); i.lxj_1 = $this$launch; return i; }; function CourseGroupSetEditViewModel$onClickSave$slambda_0(this$0, $courseGroupSet, $membersToSave, resultContinuation) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CourseGroupsEdit'); this.txd_1 = MutableStateFlow(new CourseGroupSetEditUiState()); this.uxd_1 = asStateFlow(this.txd_1); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.vxd_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.' call var tmp0_title = this.fqv(strings_getInstance().uni_1, strings_getInstance().vni_1); var tmp1_loadingState = Companion_getInstance_98().oq7_1; var nextValue = prevValue.hq7(VOID, tmp1_loadingState, tmp0_title, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = CourseGroupSetEditViewModel$slambda_0(this, null); this.hqp(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetEditViewModel).mxj = function (courseGroupSet) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.txd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.fxe_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c7z_1; var tmp_0 = this.gqv(tmp, courseGroupSet == null ? null : courseGroupSet.c7z_1, prevValue.hxe_1); var tmp2_safe_receiver = prevValue.fxe_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d7z_1; var nextValue = prevValue.kxe(courseGroupSet, VOID, tmp_0, this.gqv(tmp_1, courseGroupSet == null ? null : courseGroupSet.d7z_1, prevValue.ixe_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_43.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_2 = this; var tmp_3 = this.mqo(); tmp_2.cqu_1 = launch(tmp_3, VOID, VOID, CourseGroupSetEditViewModel$onEntityChanged$slambda_0(commitDelay, courseGroupSet, this, key, serializer, null)); }; protoOf(CourseGroupSetEditViewModel).nxj = function (personUid, groupNumber) { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.txd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onChangeGroupAssignment.' call var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.first' call var tmp0_iterator = prevValue.gxe_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onChangeGroupAssignment..' call if (element.kd5_1.equals(personUid)) { tmp$ret$1 = element; break $l$block; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } var currentGroupMemberAndName = tmp$ret$1; var tmp0_safe_receiver = currentGroupMemberAndName.id5_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_9(tmp0_safe_receiver, CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda(groupNumber)); } var tmp_0 = currentGroupMemberAndName.ukm(tmp); var nextValue = prevValue.kxe(VOID, replace_0(prevValue.gxe_1, tmp_0, CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0(personUid))); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$3 = nextValue; break $l$block_0; } } } var newState = tmp$ret$3; var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda_0(this, newState, null)); }; protoOf(CourseGroupSetEditViewModel).oxj = function () { var tmp0_safe_receiver = this.txd_1.t2().fxe_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d7z_1; var totalGroups = tmp1_elvis_lhs == null ? 1 : tmp1_elvis_lhs; // Inline function 'kotlin.collections.map' call var this_0 = this.txd_1.t2().gxe_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickAssignRandomly.' call var tmp$ret$0 = item.kd5_1; destination.i1(tmp$ret$0); } var shuffledPersonUidList = shuffled(destination); // Inline function 'kotlin.collections.map' call var this_1 = this.txd_1.t2().gxe_1; // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10)); var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickAssignRandomly.' call var tmp0_safe_receiver_0 = item_0.id5_1; var tmp; if (tmp0_safe_receiver_0 == null) { tmp = null; } else { tmp = shallowCopy_9(tmp0_safe_receiver_0, CourseGroupSetEditViewModel$onClickAssignRandomly$lambda(shuffledPersonUidList, item_0, totalGroups)); } var tmp$ret$3 = item_0.ukm(tmp); destination_0.i1(tmp$ret$3); } var newMemberList = destination_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.txd_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickAssignRandomly.' call var nextValue = prevValue.kxe(VOID, newMemberList); if (this_2.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$onClickAssignRandomly$slambda_0(this, newMemberList, null)); }; protoOf(CourseGroupSetEditViewModel).ysb = function () { var tmp0_elvis_lhs = this.txd_1.t2().fxe_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var courseGroupSet = tmp; // Inline function 'kotlin.collections.mapNotNull' call // Inline function 'kotlin.collections.mapNotNullTo' call var this_0 = this.txd_1.t2().gxe_1; var destination = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'kotlin.collections.mapNotNullTo.' call // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call var tmp0_safe_receiver = element.id5_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call destination.i1(tmp0_safe_receiver); } } var membersToSave = destination; var tmp$ret$4; $l$block_0: { // Inline function 'kotlin.collections.any' call var tmp_0; if (isInterface(membersToSave, Collection)) { tmp_0 = membersToSave.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$4 = false; break $l$block_0; } var tmp0_iterator_0 = membersToSave.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call if (element_0.sd4_1 > courseGroupSet.d7z_1) { tmp$ret$4 = true; break $l$block_0; } } tmp$ret$4 = false; } var hasInvalidAssignments = tmp$ret$4; if (hasInvalidAssignments) { this.tqo().wq7(new Snack(this.vqo().soj(strings_getInstance().xmi_1))); } // Inline function 'kotlin.text.isNullOrBlank' call var this_1 = courseGroupSet.c7z_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : isBlank(this_1)) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.txd_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call var nextValue = prevValue.kxe(VOID, VOID, this.vqo().soj(strings_getInstance().cmo_1)); if (this_2.z1k(prevValue, nextValue)) { break $l$block_1; } } } } if (courseGroupSet.d7z_1 < 1) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.txd_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call var nextValue_0 = prevValue_0.kxe(VOID, VOID, VOID, this.vqo().soj(strings_getInstance().hnh_1)); if (this_3.z1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if ((hasInvalidAssignments ? true : !(this.txd_1.t2().ixe_1 == null)) ? true : !(this.txd_1.t2().hxe_1 == null)) { return Unit_instance; } var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, CourseGroupSetEditViewModel$onClickSave$slambda_0(this, courseGroupSet, membersToSave, null)); }; function CourseGroupSetEditUiState(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) { courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; membersList = membersList === VOID ? emptyList() : membersList; courseTitleError = courseTitleError === VOID ? null : courseTitleError; numOfGroupsError = numOfGroupsError === VOID ? null : numOfGroupsError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.fxe_1 = courseGroupSet; this.gxe_1 = membersList; this.hxe_1 = courseTitleError; this.ixe_1 = numOfGroupsError; this.jxe_1 = fieldsEnabled; } protoOf(CourseGroupSetEditUiState).pxj = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) { return new CourseGroupSetEditUiState(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).kxe = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled, $super) { courseGroupSet = courseGroupSet === VOID ? this.fxe_1 : courseGroupSet; membersList = membersList === VOID ? this.gxe_1 : membersList; courseTitleError = courseTitleError === VOID ? this.hxe_1 : courseTitleError; numOfGroupsError = numOfGroupsError === VOID ? this.ixe_1 : numOfGroupsError; fieldsEnabled = fieldsEnabled === VOID ? this.jxe_1 : fieldsEnabled; return $super === VOID ? this.pxj(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) : $super.pxj.call(this, courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).toString = function () { return 'CourseGroupSetEditUiState(courseGroupSet=' + this.fxe_1 + ', membersList=' + this.gxe_1 + ', courseTitleError=' + this.hxe_1 + ', numOfGroupsError=' + this.ixe_1 + ', fieldsEnabled=' + this.jxe_1 + ')'; }; protoOf(CourseGroupSetEditUiState).hashCode = function () { var result = this.fxe_1 == null ? 0 : hashCode(this.fxe_1); result = imul(result, 31) + hashCode(this.gxe_1) | 0; result = imul(result, 31) + (this.hxe_1 == null ? 0 : getStringHashCode(this.hxe_1)) | 0; result = imul(result, 31) + (this.ixe_1 == null ? 0 : getStringHashCode(this.ixe_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.jxe_1) | 0; return result; }; protoOf(CourseGroupSetEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupSetEditUiState)) return false; var tmp0_other_with_cast = other instanceof CourseGroupSetEditUiState ? other : THROW_CCE(); if (!equals(this.fxe_1, tmp0_other_with_cast.fxe_1)) return false; if (!equals(this.gxe_1, tmp0_other_with_cast.gxe_1)) return false; if (!(this.hxe_1 == tmp0_other_with_cast.hxe_1)) return false; if (!(this.ixe_1 == tmp0_other_with_cast.ixe_1)) return false; if (!(this.jxe_1 === tmp0_other_with_cast.jxe_1)) return false; return true; }; function CourseGroupSetListViewModel$slambda$lambda(this$0) { return function () { var tmp = this$0.rqo().p7f(); var tmp_0 = this$0.nqo(); PermissionFlags_getInstance(); return tmp.gdk(tmp_0, this$0.qxk_1, new Long(8, 0)); }; } function CourseGroupSetListViewModel$slambda$lambda$lambda($visible) { return function () { return 'CourseGroupSetList: set showAddItem visible = ' + $visible; }; } function CourseGroupSetListViewModel$slambda$lambda_0(this$0) { return function (visible) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel...' call var tmp = Napier_getInstance(); tmp.f5e(VOID, VOID, CourseGroupSetListViewModel$slambda$lambda$lambda(visible)); var nextValue = prevValue.wxk(visible); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.fxl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = collectClazzNameAndUpdateTitle(this.fxl_1.qxk_1, this.fxl_1.pqo(), this.fxl_1.zqn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda$slambda$slambda(this.fxl_1, completion); i.gxl_1 = $this$launch; return i; }; function CourseGroupSetListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new CourseGroupSetListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetListViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.pxl_1 = $this_launch; this.qxl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.pxl_1, VOID, VOID, CourseGroupSetListViewModel$slambda$slambda$slambda_0(this.qxl_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).m78 = function (completion) { return new CourseGroupSetListViewModel$slambda$slambda(this.pxl_1, this.qxl_1, completion); }; function CourseGroupSetListViewModel$slambda$slambda_0($this_launch, this$0, resultContinuation) { var i = new CourseGroupSetListViewModel$slambda$slambda($this_launch, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_162() { this.rxl_1 = 'CourseGroups'; } var Companion_instance_210; function Companion_getInstance_180() { return Companion_instance_210; } function CourseGroupSetListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().s7d().pdc(this$0.qxk_1, toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1), this$0.qqw_1.t2().vxk_1.oqd_1); }; } function CourseGroupSetListViewModel$slambda(this$0, resultContinuation) { this.axm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = CourseGroupSetListViewModel$slambda$lambda(this.axm_1); var tmp_1 = strings_getInstance().en1_1; suspendResult = this.axm_1.aqy(tmp_0, tmp_1, CourseGroupSetListViewModel$slambda$lambda_0(this.axm_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda(this.axm_1, completion); i.bxm_1 = $this$launch; return i; }; function CourseGroupSetListViewModel$slambda_0(this$0, resultContinuation) { var i = new CourseGroupSetListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetListViewModel$slambda_1(this$0, resultContinuation) { this.kxm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseGroupSetListViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetListViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.kxm_1.qqw_1, CourseGroupSetListViewModel$slambda$slambda_0(this.lxm_1, this.kxm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseGroupSetListViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda_1(this.kxm_1, completion); i.lxm_1 = $this$launch; return i; }; function CourseGroupSetListViewModel$slambda_2(this$0, resultContinuation) { var i = new CourseGroupSetListViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new CourseGroupSetListUiState(), 'CourseGroups'); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.qxk_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.rxk_1 = CourseGroupSetListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue = prevValue.wxk(VOID, this.rxk_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, true, VOID, VOID, VOID, this.zqx()); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, CourseGroupSetListViewModel$slambda_0(this, null)); var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, CourseGroupSetListViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).mxm = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.onSortOptionChanged.' call var nextValue = prevValue.wxk(VOID, VOID, VOID, sortOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).lqx = function () { Companion_getInstance_117(); this.dqy('CourseGroupsEdit', mapOf_0(to('clazzUid', this.qxk_1.toString()))); }; protoOf(CourseGroupSetListViewModel).nxm = function (entry) { var tmp = entry.b7z_1; Companion_getInstance_126(); this.fqy('CourseGroupSet', tmp, entry, mapOf_0(to('clazzUid', this.qxk_1.toString()))); }; function Companion_163() { Companion_instance_211 = this; var tmp = this; var tmp_0 = strings_getInstance().wmk_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().wmk_1; tmp.oxm_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_211; function Companion_getInstance_181() { if (Companion_instance_211 == null) new Companion_163(); return Companion_instance_211; } function CourseGroupSetListUiState$_init_$lambda_2d65m2() { return new EmptyPagingSource(); } function CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption) { Companion_getInstance_181(); showAddItem = showAddItem === VOID ? false : showAddItem; var tmp; if (courseGroupSets === VOID) { tmp = CourseGroupSetListUiState$_init_$lambda_2d65m2; } else { tmp = courseGroupSets; } courseGroupSets = tmp; sortOptions = sortOptions === VOID ? Companion_getInstance_181().oxm_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; this.sxk_1 = showAddItem; this.txk_1 = courseGroupSets; this.uxk_1 = sortOptions; this.vxk_1 = sortOption; } protoOf(CourseGroupSetListUiState).pxm = function (showAddItem, courseGroupSets, sortOptions, sortOption) { return new CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).wxk = function (showAddItem, courseGroupSets, sortOptions, sortOption, $super) { showAddItem = showAddItem === VOID ? this.sxk_1 : showAddItem; courseGroupSets = courseGroupSets === VOID ? this.txk_1 : courseGroupSets; sortOptions = sortOptions === VOID ? this.uxk_1 : sortOptions; sortOption = sortOption === VOID ? this.vxk_1 : sortOption; return $super === VOID ? this.pxm(showAddItem, courseGroupSets, sortOptions, sortOption) : $super.pxm.call(this, showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).toString = function () { return 'CourseGroupSetListUiState(showAddItem=' + this.sxk_1 + ', courseGroupSets=' + this.txk_1 + ', sortOptions=' + this.uxk_1 + ', sortOption=' + this.vxk_1 + ')'; }; protoOf(CourseGroupSetListUiState).hashCode = function () { var result = getBooleanHashCode(this.sxk_1); result = imul(result, 31) + hashCode(this.txk_1) | 0; result = imul(result, 31) + hashCode(this.uxk_1) | 0; result = imul(result, 31) + this.vxk_1.hashCode() | 0; return result; }; protoOf(CourseGroupSetListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupSetListUiState)) return false; var tmp0_other_with_cast = other instanceof CourseGroupSetListUiState ? other : THROW_CCE(); if (!(this.sxk_1 === tmp0_other_with_cast.sxk_1)) return false; if (!equals(this.txk_1, tmp0_other_with_cast.txk_1)) return false; if (!equals(this.uxk_1, tmp0_other_with_cast.uxk_1)) return false; if (!this.vxk_1.equals(tmp0_other_with_cast.vxk_1)) return false; return true; }; function CourseTerminologyEditViewModel$slambda$slambda(this$0, resultContinuation) { this.yxm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda).wri = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.wri(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.zxm_1.r7d(); var tmp_1; if (!this.yxm_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.axn_1 = tmp_1; if (this.axn_1 == null) { this.bxn_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.axn_1.he7(this.yxm_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.bxn_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.bxn_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).enz = function (it, completion) { var i = new CourseTerminologyEditViewModel$slambda$slambda(this.yxm_1, completion); i.zxm_1 = it; return i; }; function CourseTerminologyEditViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new CourseTerminologyEditViewModel$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.wri(it, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.kxn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).nxn = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.nxn($completion); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.lxn_1 = new CourseTerminology(); var tmp_1 = this; tmp_1.mxn_1 = this.lxn_1; this.id_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.kxn_1.pqo()); suspendResult = tmp_2.p62(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.mxn_1.n8g_1 = ARGUMENT; return this.lxn_1; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).m78 = function (completion) { return new CourseTerminologyEditViewModel$slambda$slambda_1(this.kxn_1, completion); }; function CourseTerminologyEditViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new CourseTerminologyEditViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.nxn($completion); }; l.$arity = 0; return l; } function CourseTerminologyEditViewModel$slambda$lambda(this$0) { return function (terminology) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.lxo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel...' call var nextValue = prevValue.rxo(VOID, terminology, VOID, toTerminologyEntries(terminology, this$0.n4r(), this$0.vqo())); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_164() { this.sxo_1 = 'CourseTerminologyEdit'; } var Companion_instance_212; function Companion_getInstance_182() { return Companion_instance_212; } function CourseTerminologyEditViewModel$slambda(this$0, resultContinuation) { this.bxp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseTerminologyEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.dxp_1 = Companion_instance_33.o4r(); this.id_1 = 1; var tmp_0 = CourseTerminologyEditViewModel$slambda$slambda_0(this.bxp_1, null); var tmp_1 = CourseTerminologyEditViewModel$slambda$slambda_2(this.bxp_1, null); suspendResult = this.bxp_1.fqp(this.dxp_1, VOID, VOID, tmp_0, tmp_1, CourseTerminologyEditViewModel$slambda$lambda(this.bxp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.bxp_1.lxo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rxo(VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.bxp_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = this.bxp_1.vqo().soj(strings_getInstance().on3_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, VOID, CourseTerminologyEditViewModel$onClickSave$ref(this.bxp_1)); var tmp1_loadingState = Companion_getInstance_98().pq7_1; var nextValue_0 = prevValue_0.hq7(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$slambda(this.bxp_1, completion); i.cxp_1 = $this$launch; return i; }; function CourseTerminologyEditViewModel$slambda_0(this$0, resultContinuation) { var i = new CourseTerminologyEditViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.mxp_1 = $commitDelay; this.nxp_1 = $entity; this.oxp_1 = $this; this.pxp_1 = $key; this.qxp_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.mxp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.nxp_1 == null)) { this.id_1 = 2; suspendResult = this.oxp_1.bqp(this.oxp_1.vqn_1, this.pxp_1, this.qxp_1, this.nxp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$onEntityChanged$slambda(this.mxp_1, this.nxp_1, this.oxp_1, this.pxp_1, this.qxp_1, completion); i.rxp_1 = $this$launch; return i; }; function CourseTerminologyEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new CourseTerminologyEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda($terminologyEntry) { return function (it) { return it.lq9_1.equals($terminologyEntry.lq9_1); }; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda_0($newTermList, this$0) { return function ($this$shallowCopy) { $this$shallowCopy.p8g_1 = encodeToStringMap($newTermList, this$0.n4r()); return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.axq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.axq_1.lxo_1.t2().oxo_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.cxq_1 = tmp_1; this.id_1 = 1; suspendResult = this.axq_1.rqo().r7d().ie7(this.cxq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.axq_1.lxo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rxo(VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.axq_1.gqu(this.cxq_1); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$onClickSave$slambda(this.axq_1, completion); i.bxq_1 = $this$launch; return i; }; function CourseTerminologyEditViewModel$onClickSave$slambda_0(this$0, resultContinuation) { var i = new CourseTerminologyEditViewModel$onClickSave$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CourseTerminologyEdit'); this.lxo_1 = MutableStateFlow(new CourseTerminologyEditUiState()); this.mxo_1 = asStateFlow(this.lxo_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.' call var tmp0_title = this.fqv(strings_getInstance().oni_1, strings_getInstance().pni_1); var tmp1_loadingState = Companion_getInstance_98().oq7_1; var nextValue = prevValue.hq7(VOID, tmp1_loadingState, tmp0_title); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.mqo(); launch(tmp, VOID, VOID, CourseTerminologyEditViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyEditViewModel).dxq = function (courseTerminology) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lxo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onEntityChanged.' call var nextValue = prevValue.rxo(VOID, courseTerminology); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_33.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.cqu_1 = launch(tmp_0, VOID, VOID, CourseTerminologyEditViewModel$onEntityChanged$slambda_0(commitDelay, courseTerminology, this, key, serializer, null)); }; protoOf(CourseTerminologyEditViewModel).exq = function (terminologyEntry) { var tmp = this.lxo_1.t2().qxo_1; var newTermList = replace_0(tmp, terminologyEntry, CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda(terminologyEntry)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lxo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onTerminologyTermChanged.' call var nextValue = prevValue.rxo(VOID, VOID, VOID, newTermList); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.lxo_1.t2().oxo_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = shallowCopy_10(tmp0_safe_receiver, CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda_0(newTermList, this)); } this.dxq(tmp_0); }; protoOf(CourseTerminologyEditViewModel).ysb = function () { if (!this.lxo_1.t2().pxo_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lxo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onClickSave.' call var nextValue = prevValue.rxo(VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.mqo(); launch(tmp, VOID, VOID, CourseTerminologyEditViewModel$onClickSave$slambda_0(this, null)); }; function CourseTerminologyEditUiState(titleError, entity, fieldsEnabled, terminologyTermList) { titleError = titleError === VOID ? null : titleError; entity = entity === VOID ? null : entity; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; terminologyTermList = terminologyTermList === VOID ? emptyList() : terminologyTermList; this.nxo_1 = titleError; this.oxo_1 = entity; this.pxo_1 = fieldsEnabled; this.qxo_1 = terminologyTermList; } protoOf(CourseTerminologyEditUiState).fxq = function (titleError, entity, fieldsEnabled, terminologyTermList) { return new CourseTerminologyEditUiState(titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).rxo = function (titleError, entity, fieldsEnabled, terminologyTermList, $super) { titleError = titleError === VOID ? this.nxo_1 : titleError; entity = entity === VOID ? this.oxo_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.pxo_1 : fieldsEnabled; terminologyTermList = terminologyTermList === VOID ? this.qxo_1 : terminologyTermList; return $super === VOID ? this.fxq(titleError, entity, fieldsEnabled, terminologyTermList) : $super.fxq.call(this, titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).toString = function () { return 'CourseTerminologyEditUiState(titleError=' + this.nxo_1 + ', entity=' + this.oxo_1 + ', fieldsEnabled=' + this.pxo_1 + ', terminologyTermList=' + this.qxo_1 + ')'; }; protoOf(CourseTerminologyEditUiState).hashCode = function () { var result = this.nxo_1 == null ? 0 : getStringHashCode(this.nxo_1); result = imul(result, 31) + (this.oxo_1 == null ? 0 : hashCode(this.oxo_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.pxo_1) | 0; result = imul(result, 31) + hashCode(this.qxo_1) | 0; return result; }; protoOf(CourseTerminologyEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseTerminologyEditUiState)) return false; var tmp0_other_with_cast = other instanceof CourseTerminologyEditUiState ? other : THROW_CCE(); if (!(this.nxo_1 == tmp0_other_with_cast.nxo_1)) return false; if (!equals(this.oxo_1, tmp0_other_with_cast.oxo_1)) return false; if (!(this.pxo_1 === tmp0_other_with_cast.pxo_1)) return false; if (!equals(this.qxo_1, tmp0_other_with_cast.qxo_1)) return false; return true; }; function CourseTerminologyListViewModel$slambda$lambda() { return flowOf(true); } function CourseTerminologyListViewModel$slambda$lambda_0(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel...' call var nextValue = prevValue.ixq(VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_165() { this.jxq_1 = 'CourseTerminologyList'; } var Companion_instance_213; function Companion_getInstance_183() { return Companion_instance_213; } function CourseTerminologyListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().r7d().ee7(); }; } function CourseTerminologyListViewModel$slambda(this$0, resultContinuation) { this.sxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseTerminologyListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = CourseTerminologyListViewModel$slambda$lambda; var tmp_1 = strings_getInstance().mni_1; suspendResult = this.sxq_1.aqy(tmp_0, tmp_1, CourseTerminologyListViewModel$slambda$lambda_0(this.sxq_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseTerminologyListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CourseTerminologyListViewModel$slambda(this.sxq_1, completion); i.txq_1 = $this$launch; return i; }; function CourseTerminologyListViewModel$slambda_0(this$0, resultContinuation) { var i = new CourseTerminologyListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new CourseTerminologyListUiState(), 'CourseTerminologyList'); var tmp = this; tmp.uxr_1 = CourseTerminologyListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.hqy(strings_getInstance().mni_1, strings_getInstance().nni_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqw_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue_0 = prevValue_0.ixq(this.uxr_1); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, CourseTerminologyListViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyListViewModel).lqx = function () { this.eqy('CourseTerminologyEdit'); }; protoOf(CourseTerminologyListViewModel).vxr = function (entry) { this.gqy('CourseTerminologyEdit', entry.n8g_1, entry); }; protoOf(CourseTerminologyListViewModel).kqx = function (searchText) { }; function CourseTerminologyListUiState$_init_$lambda_k6bmuc() { return new EmptyPagingSource(); } function CourseTerminologyListUiState(terminologyList, showAddItemInList) { var tmp; if (terminologyList === VOID) { tmp = CourseTerminologyListUiState$_init_$lambda_k6bmuc; } else { tmp = terminologyList; } terminologyList = tmp; showAddItemInList = showAddItemInList === VOID ? false : showAddItemInList; this.gxq_1 = terminologyList; this.hxq_1 = showAddItemInList; } protoOf(CourseTerminologyListUiState).wxr = function (terminologyList, showAddItemInList) { return new CourseTerminologyListUiState(terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).ixq = function (terminologyList, showAddItemInList, $super) { terminologyList = terminologyList === VOID ? this.gxq_1 : terminologyList; showAddItemInList = showAddItemInList === VOID ? this.hxq_1 : showAddItemInList; return $super === VOID ? this.wxr(terminologyList, showAddItemInList) : $super.wxr.call(this, terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).toString = function () { return 'CourseTerminologyListUiState(terminologyList=' + this.gxq_1 + ', showAddItemInList=' + this.hxq_1 + ')'; }; protoOf(CourseTerminologyListUiState).hashCode = function () { var result = hashCode(this.gxq_1); result = imul(result, 31) + getBooleanHashCode(this.hxq_1) | 0; return result; }; protoOf(CourseTerminologyListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseTerminologyListUiState)) return false; var tmp0_other_with_cast = other instanceof CourseTerminologyListUiState ? other : THROW_CCE(); if (!equals(this.gxq_1, tmp0_other_with_cast.gxq_1)) return false; if (!(this.hxq_1 === tmp0_other_with_cast.hxq_1)) return false; return true; }; function get_delItemContentTypeStringResource(_this__u8e3s4) { var tmp; var tmp_0; var tmp_1 = _this__u8e3s4.leg_1; if (tmp_1 === 7) { tmp_0 = _this__u8e3s4.peg_1; } else { tmp_0 = false; } if (tmp_0) { tmp = strings_getInstance().ond_1; } else { var tmp_2 = _this__u8e3s4.leg_1; if (tmp_2 === 7) { tmp = strings_getInstance().pn4_1; } else { tmp = null; } } return tmp; } function _get_restoreDeletedItemUseCase__7lscig($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yxs_1; restoreDeletedItemUseCase$factory_0(); return this_0.t2(); } function _get_deletePermanentlyUseCase__wdw610($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zxs_1; deletePermanentlyUseCase$factory_0(); return this_0.t2(); } function restoreItems($this, items) { var tmp = $this.mqo(); launch(tmp, VOID, VOID, DeletedItemListViewModel$restoreItems$slambda_0($this, items, null)); } function Companion_166() { this.axt_1 = 'DeletedItems'; } var Companion_instance_214; function Companion_getInstance_184() { return Companion_instance_214; } function DeletedItemListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().n7f().eeg(this$0.nqo(), false); }; } function DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this$0, $itemsToDelete, resultContinuation) { this.jxt_1 = this$0; this.kxt_1 = $itemsToDelete; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_deletePermanentlyUseCase__wdw610(this.jxt_1).apd(this.kxt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jxt_1.tqo().wq7(new Snack(this.jxt_1.vqo().dws(plurals_getInstance().dnt_1, this.kxt_1.u()))); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { var e = this.ld_1; Napier_getInstance().r5e('Exception deleting', e); this.jxt_1.tqo().wq7(new Snack(this.jxt_1.vqo().soj(strings_getInstance().xmi_1) + ': ' + e.message)); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).w1m = function ($this$launch, completion) { var i = new DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this.jxt_1, this.kxt_1, completion); i.lxt_1 = $this$launch; return i; }; function DeletedItemListViewModel$onConfirmDeletePermanently$slambda_0(this$0, $itemsToDelete, resultContinuation) { var i = new DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this$0, $itemsToDelete, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DeletedItemListViewModel$restoreItems$slambda(this$0, $items, resultContinuation) { this.uxt_1 = this$0; this.vxt_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemListViewModel$restoreItems$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DeletedItemListViewModel$restoreItems$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemListViewModel$restoreItems$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = _get_restoreDeletedItemUseCase__7lscig(this.uxt_1).apd(this.vxt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uxt_1.tqo().wq7(new Snack(this.uxt_1.vqo().dws(plurals_getInstance().ent_1, this.vxt_1.u()))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DeletedItemListViewModel$restoreItems$slambda).w1m = function ($this$launch, completion) { var i = new DeletedItemListViewModel$restoreItems$slambda(this.uxt_1, this.vxt_1, completion); i.wxt_1 = $this$launch; return i; }; function DeletedItemListViewModel$restoreItems$slambda_0(this$0, $items, resultContinuation) { var i = new DeletedItemListViewModel$restoreItems$slambda(this$0, $items, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DeletedItemListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new DeletedItemListUiState(), 'DeletedItems'); var tmp = this; tmp.xxs_1 = DeletedItemListViewModel$pagingSourceFactory$lambda(this); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.yxs_1 = Instance(this_0, tmp$ret$0, null).b5d(this, restoreDeletedItemUseCase$factory()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); tmp_2.zxs_1 = Instance(this_1, tmp$ret$2, null).b5d(this, deletePermanentlyUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqw_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue = prevValue.bxu(this.xxs_1); if (this_2.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.zqn_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue_0 = prevValue_0.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().nnn_1)); if (this_3.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(DeletedItemListViewModel).kqx = function (searchText) { }; protoOf(DeletedItemListViewModel).cxu = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onDismissConfirmDialog.' call var nextValue = prevValue.bxu(VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).dxu = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onConfirmDeletePermanently.' call var nextValue = prevValue.bxu(VOID, false); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var itemsToDelete = tmp$ret$1.axu_1; var tmp = this.mqo(); launch(tmp, VOID, VOID, DeletedItemListViewModel$onConfirmDeletePermanently$slambda_0(this, itemsToDelete, null)); }; protoOf(DeletedItemListViewModel).exu = function (item) { restoreItems(this, listOf_0(item)); }; protoOf(DeletedItemListViewModel).fxu = function (item) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onClickDeletePermanently.' call var tmp0_itemsToConfirmDeletion = listOf_0(item); var tmp1_deleteConfirmText = this.vqo().dws(plurals_getInstance().fnt_1, 1); var nextValue = prevValue.bxu(VOID, true, tmp1_deleteConfirmText, tmp0_itemsToConfirmDeletion); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).lqx = function () { }; function DeletedItemListUiState$_init_$lambda_114460() { return new EmptyPagingSource(); } function DeletedItemListUiState(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) { var tmp; if (deletedItemsList === VOID) { tmp = DeletedItemListUiState$_init_$lambda_114460; } else { tmp = deletedItemsList; } deletedItemsList = tmp; confirmDialogVisible = confirmDialogVisible === VOID ? false : confirmDialogVisible; deleteConfirmText = deleteConfirmText === VOID ? null : deleteConfirmText; itemsToConfirmDeletion = itemsToConfirmDeletion === VOID ? emptyList() : itemsToConfirmDeletion; this.xxt_1 = deletedItemsList; this.yxt_1 = confirmDialogVisible; this.zxt_1 = deleteConfirmText; this.axu_1 = itemsToConfirmDeletion; } protoOf(DeletedItemListUiState).gxu = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) { return new DeletedItemListUiState(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).bxu = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion, $super) { deletedItemsList = deletedItemsList === VOID ? this.xxt_1 : deletedItemsList; confirmDialogVisible = confirmDialogVisible === VOID ? this.yxt_1 : confirmDialogVisible; deleteConfirmText = deleteConfirmText === VOID ? this.zxt_1 : deleteConfirmText; itemsToConfirmDeletion = itemsToConfirmDeletion === VOID ? this.axu_1 : itemsToConfirmDeletion; return $super === VOID ? this.gxu(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) : $super.gxu.call(this, deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).toString = function () { return 'DeletedItemListUiState(deletedItemsList=' + this.xxt_1 + ', confirmDialogVisible=' + this.yxt_1 + ', deleteConfirmText=' + this.zxt_1 + ', itemsToConfirmDeletion=' + this.axu_1 + ')'; }; protoOf(DeletedItemListUiState).hashCode = function () { var result = hashCode(this.xxt_1); result = imul(result, 31) + getBooleanHashCode(this.yxt_1) | 0; result = imul(result, 31) + (this.zxt_1 == null ? 0 : getStringHashCode(this.zxt_1)) | 0; result = imul(result, 31) + hashCode(this.axu_1) | 0; return result; }; protoOf(DeletedItemListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof DeletedItemListUiState)) return false; var tmp0_other_with_cast = other instanceof DeletedItemListUiState ? other : THROW_CCE(); if (!equals(this.xxt_1, tmp0_other_with_cast.xxt_1)) return false; if (!(this.yxt_1 === tmp0_other_with_cast.yxt_1)) return false; if (!(this.zxt_1 == tmp0_other_with_cast.zxt_1)) return false; if (!equals(this.axu_1, tmp0_other_with_cast.axu_1)) return false; return true; }; function restoreDeletedItemUseCase$factory() { return getPropertyCallableRef('restoreDeletedItemUseCase', 1, KProperty1, function (receiver) { return _get_restoreDeletedItemUseCase__7lscig(receiver); }, null); } function deletePermanentlyUseCase$factory() { return getPropertyCallableRef('deletePermanentlyUseCase', 1, KProperty1, function (receiver) { return _get_deletePermanentlyUseCase__wdw610(receiver); }, null); } function restoreDeletedItemUseCase$factory_0() { return getPropertyCallableRef('restoreDeletedItemUseCase', 1, KProperty1, function (receiver) { return _get_restoreDeletedItemUseCase__7lscig(receiver); }, null); } function deletePermanentlyUseCase$factory_0() { return getPropertyCallableRef('deletePermanentlyUseCase', 1, KProperty1, function (receiver) { return _get_deletePermanentlyUseCase__wdw610(receiver); }, null); } function CourseDiscussionDetailViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.lqx(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.sxv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).qx4 = function (it, $completion) { var tmp = this.rx4(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.qx4((p1 == null ? true : p1 instanceof CourseBlockAndPicture) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.sxv_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zxv(this.txv_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).rx4 = function (it, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this.sxv_1, completion); i.txv_1 = it; return i; }; function CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.qx4(it, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function CourseDiscussionDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ixw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).kt9 = function (permissionPair, $completion) { var tmp = this.lt9(permissionPair, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.kt9(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.kxw_1 = this.jxw_1; this.lxw_1 = this.kxw_1.y6(); this.mxw_1 = this.kxw_1.z6(); if (this.lxw_1) { l$ret$1: do { var this_0 = this.ixw_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.ixw_1.vqo().soj(strings_getInstance().cnk_1); var tmp_1 = FabIcon_ADD_getInstance(); var nextValue = prevValue.hq7(new FabUiState(true, tmp_0, tmp_1, CourseDiscussionDetailViewModel$onClickAdd$ref(this.ixw_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ixw_1.qqw_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.zxv(VOID, this.ixw_1.jxv_1, this.mxw_1, VOID, this.ixw_1.vqo().cq6()); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 1; var tmp_2 = this.ixw_1.rqo().q7d().hcl(this.ixw_1.hxv_1); var tmp_3 = CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda_0(this.ixw_1, null); suspendResult = tmp_2.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_30(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$5: do { var this_2 = this.ixw_1.zqn_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.hq7(new FabUiState()); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); l$ret$7: do { var this_3 = this.ixw_1.qqw_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.zxv(null, CourseDiscussionDetailViewModel$slambda$slambda$slambda$lambda, false); if (this_3.z1k(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); this.id_1 = 2; continue $sm; } case 1: this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).lt9 = function (permissionPair, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda(this.ixw_1, completion); i.jxw_1 = permissionPair; return i; }; function CourseDiscussionDetailViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (permissionPair, $completion) { return i.kt9(permissionPair, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel$slambda$slambda(this$0, resultContinuation) { this.vxw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.vxw_1.rqo().p7f(); var tmp_1 = this.vxw_1.nqo(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.hdk(tmp_1, this.vxw_1.ixv_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, CourseDiscussionDetailViewModel$slambda$slambda$slambda_0(this.vxw_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).m78 = function (completion) { return new CourseDiscussionDetailViewModel$slambda$slambda(this.vxw_1, completion); }; function CourseDiscussionDetailViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new CourseDiscussionDetailViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_167() { this.wxw_1 = 'CourseDiscussion'; } var Companion_instance_215; function Companion_getInstance_185() { return Companion_instance_215; } function sam$kotlinx_coroutines_flow_FlowCollector$0_30(function_0) { this.xxw_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_30).u1d = function (value, $completion) { return this.xxw_1(value, $completion); }; function CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().i7f().vel(this$0.hxv_1, false); }; } function CourseDiscussionDetailViewModel$slambda(this$0, resultContinuation) { this.gxx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseDiscussionDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.gxx_1.qqw_1, CourseDiscussionDetailViewModel$slambda$slambda_0(this.gxx_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new CourseDiscussionDetailViewModel$slambda(this.gxx_1, completion); i.hxx_1 = $this$launch; return i; }; function CourseDiscussionDetailViewModel$slambda_0(this$0, resultContinuation) { var i = new CourseDiscussionDetailViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel$lambda(this$0) { return function (title) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.courediscussiondetail.CourseDiscussionDetailViewModel..' call var nextValue = prevValue.hq7(VOID, VOID, title); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseDiscussionDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.qxx_1 = this$0; this.rxx_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.qxx_1.rqo().i7f().zel(this.rxx_1.oem_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qxx_1.tqo().wq7(new Snack(this.qxx_1.vqo().soj(strings_getInstance().smj_1))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).w1m = function ($this$launch, completion) { var i = new CourseDiscussionDetailViewModel$onDeletePost$slambda(this.qxx_1, this.rxx_1, completion); i.sxx_1 = $this$launch; return i; }; function CourseDiscussionDetailViewModel$onDeletePost$slambda_0(this$0, $post, resultContinuation) { var i = new CourseDiscussionDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new CourseDiscussionDetailUiState(), 'CourseDiscussion'); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.hxv_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_126(); var tmp0_safe_receiver_0 = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_0.ixv_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.jxv_1 = CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this); var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, CourseDiscussionDetailViewModel$slambda_0(this, null)); launchSetTitleFromClazzUid(this, this.ixv_1, CourseDiscussionDetailViewModel$lambda(this)); } protoOf(CourseDiscussionDetailViewModel).kqx = function (searchText) { }; protoOf(CourseDiscussionDetailViewModel).lqx = function () { Companion_getInstance_126(); var tmp = to('courseBlockUid', this.hxv_1.toString()); Companion_getInstance_126(); this.dqy('DiscussionPostEdit', mapOf([tmp, to('clazzUid', this.ixv_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).txx = function (post) { Companion_getInstance_117(); var tmp = to('entityUid', post.oem_1.toString()); Companion_getInstance_126(); this.xqn_1.tp6('CourseDiscussionPost', mapOf([tmp, to('clazzUid', this.ixv_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).uxx = function (post) { var tmp = this.mqo(); launch(tmp, VOID, VOID, CourseDiscussionDetailViewModel$onDeletePost$slambda_0(this, post, null)); }; function CourseDiscussionDetailUiState$_init_$lambda_ogyezm() { return new EmptyPagingSource(); } function CourseDiscussionDetailUiState(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { courseBlock = courseBlock === VOID ? null : courseBlock; var tmp; if (posts === VOID) { tmp = CourseDiscussionDetailUiState$_init_$lambda_ogyezm; } else { tmp = posts; } posts = tmp; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.uxv_1 = courseBlock; this.vxv_1 = posts; this.wxv_1 = showModerateOptions; this.xxv_1 = localDateTimeNow; this.yxv_1 = dayOfWeekStrings; } protoOf(CourseDiscussionDetailUiState).vxx = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new CourseDiscussionDetailUiState(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).zxv = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { courseBlock = courseBlock === VOID ? this.uxv_1 : courseBlock; posts = posts === VOID ? this.vxv_1 : posts; showModerateOptions = showModerateOptions === VOID ? this.wxv_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.xxv_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.yxv_1 : dayOfWeekStrings; return $super === VOID ? this.vxx(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.vxx.call(this, courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).toString = function () { return 'CourseDiscussionDetailUiState(courseBlock=' + this.uxv_1 + ', posts=' + this.vxv_1 + ', showModerateOptions=' + this.wxv_1 + ', localDateTimeNow=' + this.xxv_1 + ', dayOfWeekStrings=' + this.yxv_1 + ')'; }; protoOf(CourseDiscussionDetailUiState).hashCode = function () { var result = this.uxv_1 == null ? 0 : this.uxv_1.hashCode(); result = imul(result, 31) + hashCode(this.vxv_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wxv_1) | 0; result = imul(result, 31) + this.xxv_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.yxv_1) | 0; return result; }; protoOf(CourseDiscussionDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseDiscussionDetailUiState)) return false; var tmp0_other_with_cast = other instanceof CourseDiscussionDetailUiState ? other : THROW_CCE(); if (!equals(this.uxv_1, tmp0_other_with_cast.uxv_1)) return false; if (!equals(this.vxv_1, tmp0_other_with_cast.vxv_1)) return false; if (!(this.wxv_1 === tmp0_other_with_cast.wxv_1)) return false; if (!this.xxv_1.equals(tmp0_other_with_cast.xxv_1)) return false; if (!equals(this.yxv_1, tmp0_other_with_cast.yxv_1)) return false; return true; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.exy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.fxy_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.gxy_1 = tmp_2; this.id_1 = 1; suspendResult = submitReply(this.exy_1, this.gxy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).mqb = function (result, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.exy_1, completion); i.fxy_1 = result; return i; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.pxy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).zrg = function (postTitle, $completion) { var tmp = this.arh(postTitle, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.zrg((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.pxy_1.zqn_1; var tmp_0; if (!(this_0.t2().uq6_1 == this.qxy_1)) { tmp_0 = this_0; } else { tmp_0 = null; } var tmp0_safe_receiver = tmp_0; if (tmp0_safe_receiver == null) null; else { l$ret$1: do { while (true) { var prevValue = tmp0_safe_receiver.t2(); var nextValue = prevValue.hq7(VOID, VOID, this.qxy_1); if (tmp0_safe_receiver.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).arh = function (postTitle, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.pxy_1, completion); i.qxy_1 = postTitle; return i; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (postTitle, $completion) { return i.zrg(postTitle, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.zxy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.zxy_1.zqo(this.zxy_1.uqo(), 'replyTextResult'); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.zxy_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_31(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this.zxy_1, completion); i.axz_1 = $this$launch; return i; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.jxz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.jxz_1.rqo().i7f().a8d(this.jxz_1.pqn_1); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.jxz_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_31(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this.jxz_1, completion); i.kxz_1 = $this$launch; return i; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function DiscussionPostDetailViewModel$slambda$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation) { this.txz_1 = this$0; this.uxz_1 = $savedStateHandle; this.vxz_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).kt9 = function (permissionPair, $completion) { var tmp = this.lt9(permissionPair, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.kt9(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_container = this.wxz_1; var hasViewPermission = tmp0_container.y6(); var hasModeratePermission = tmp0_container.z6(); if (hasViewPermission) { l$ret$1: do { var this_0 = this.txz_1.uy0_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.txz_1.nqo(); var tmp_1 = this.txz_1.lqo().aoa().unu_1.ekr(); var tmp0_safe_receiver = this.txz_1.lqo().aoa().wnu_1; var nextValue = prevValue.iy1(this.txz_1.ty0_1, tmp_0, tmp_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i97_1, VOID, hasModeratePermission); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_elvis_lhs = this.uxz_1.ba('replyText'); this.txz_1.wy0_1.y1k(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); launch(this.vxz_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_0(this.txz_1, null)); launch(this.vxz_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_2(this.txz_1, null)); } else { l$ret$3: do { var this_1 = this.txz_1.uy0_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = DiscussionPostDetailViewModel$slambda$slambda$slambda$lambda; var tmp_3 = this.txz_1.nqo(); var tmp_4 = this.txz_1.lqo().aoa().unu_1.ekr(); var tmp0_safe_receiver_0 = this.txz_1.lqo().aoa().wnu_1; var nextValue_0 = prevValue_0.iy1(tmp_2, tmp_3, tmp_4, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.i97_1, VOID, false); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp2_elvis_lhs = this.uxz_1.ba('replyText'); this.txz_1.wy0_1.y1k(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); } return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).lt9 = function (permissionPair, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda(this.txz_1, this.uxz_1, this.vxz_1, completion); i.wxz_1 = permissionPair; return i; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda_0(this$0, $savedStateHandle, $this_launch, resultContinuation) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation); var l = function (permissionPair, $completion) { return i.kt9(permissionPair, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation) { this.ry1_1 = this$0; this.sy1_1 = $savedStateHandle; this.ty1_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.ry1_1.rqo().p7f(); var tmp_1 = this.ry1_1.nqo(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.hdk(tmp_1, this.ry1_1.zy0_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, DiscussionPostDetailViewModel$slambda$slambda$slambda_0(this.ry1_1, this.sy1_1, this.ty1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).m78 = function (completion) { return new DiscussionPostDetailViewModel$slambda$slambda(this.ry1_1, this.sy1_1, this.ty1_1, completion); }; function DiscussionPostDetailViewModel$slambda$slambda_0(this$0, $savedStateHandle, $this_launch, resultContinuation) { var i = new DiscussionPostDetailViewModel$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function submitReply($this, replyText, $completion) { var tmp = new $submitReplyCOROUTINE$77($this, replyText, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_168() { this.ky2_1 = 'replyTextResult'; this.ly2_1 = 'replyText'; this.my2_1 = 'CourseDiscussionPost'; } var Companion_instance_216; function Companion_getInstance_186() { return Companion_instance_216; } function sam$kotlinx_coroutines_flow_FlowCollector$0_31(function_0) { this.ny2_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_31).u1d = function (value, $completion) { return this.ny2_1(value, $completion); }; function DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().i7f().xel(this$0.pqn_1, false); }; } function DiscussionPostDetailViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.wy2_1 = this$0; this.xy2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.wy2_1.uy0_1, DiscussionPostDetailViewModel$slambda$slambda_0(this.wy2_1, this.xy2_1, this.yy2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda(this.wy2_1, this.xy2_1, completion); i.yy2_1 = $this$launch; return i; }; function DiscussionPostDetailViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new DiscussionPostDetailViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onChangeReplyText$slambda(this$0, $replyText, resultContinuation) { this.hy3_1 = this$0; this.iy3_1 = $replyText; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hy3_1.vqn_1.yqj('replyText', this.iy3_1); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onChangeReplyText$slambda(this.hy3_1, this.iy3_1, completion); i.jy3_1 = $this$launch; return i; }; function DiscussionPostDetailViewModel$onChangeReplyText$slambda_0(this$0, $replyText, resultContinuation) { var i = new DiscussionPostDetailViewModel$onChangeReplyText$slambda(this$0, $replyText, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onClickPostReply$slambda(this$0, resultContinuation) { this.sy3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = submitReply(this.sy3_1, this.sy3_1.wy0_1.t2(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onClickPostReply$slambda(this.sy3_1, completion); i.ty3_1 = $this$launch; return i; }; function DiscussionPostDetailViewModel$onClickPostReply$slambda_0(this$0, resultContinuation) { var i = new DiscussionPostDetailViewModel$onClickPostReply$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$submitReply$slambda(this$0, $replyText, $clazzAndBlockUids, resultContinuation) { this.cy4_1 = this$0; this.dy4_1 = $replyText; this.ey4_1 = $clazzAndBlockUids; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$submitReply$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.cy4_1.rqo().i7f(); var this_0 = new DiscussionPost(); this_0.sem_1 = systemTimeInMillis(); this_0.pem_1 = this.cy4_1.pqn_1; this_0.rem_1 = this.dy4_1; this_0.vem_1 = this.cy4_1.nqo(); this_0.wem_1 = this.ey4_1.tco_1; this_0.tem_1 = this.ey4_1.uco_1; suspendResult = tmp_0.insertAsync(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cy4_1.gy4(''); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).enz = function (it, completion) { var i = new DiscussionPostDetailViewModel$submitReply$slambda(this.cy4_1, this.dy4_1, this.ey4_1, completion); i.fy4_1 = it; return i; }; function DiscussionPostDetailViewModel$submitReply$slambda_0(this$0, $replyText, $clazzAndBlockUids, resultContinuation) { var i = new DiscussionPostDetailViewModel$submitReply$slambda(this$0, $replyText, $clazzAndBlockUids, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.py4_1 = this$0; this.qy4_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.py4_1.rqo().i7f().zel(this.qy4_1.oem_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.py4_1.tqo().wq7(new Snack(this.py4_1.vqo().soj(strings_getInstance().smj_1))); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onDeletePost$slambda(this.py4_1, this.qy4_1, completion); i.ry4_1 = $this$launch; return i; }; function DiscussionPostDetailViewModel$onDeletePost$slambda_0(this$0, $post, resultContinuation) { var i = new DiscussionPostDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function $submitReplyCOROUTINE$77(_this__u8e3s4, replyText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cy2_1 = _this__u8e3s4; this.dy2_1 = replyText; } protoOf($submitReplyCOROUTINE$77).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 11; l$ret$1: do { var this_0 = this.cy2_1.uy0_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iy1(VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.cy2_1.xqo(Companion_getInstance_98().oq7_1); this.id_1 = 1; continue $sm; case 1: this.id_1 = 2; continue $sm; case 2: this.jd_1 = 10; this.id_1 = 3; suspendResult = this.cy2_1.pqo().q7d().mcl(this.cy2_1.pqn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.gy2_1 = suspendResult; var tmp_0 = this; tmp_0.hy2_1 = this.gy2_1; if ((!(this.hy2_1 == null) ? !this.hy2_1.tco_1.equals(new Long(0, 0)) : false) ? !this.hy2_1.uco_1.equals(new Long(0, 0)) : false) { this.iy2_1 = this.hy2_1; this.id_1 = 5; continue $sm; } else { this.id_1 = 4; suspendResult = this.cy2_1.rqo().q7d().mcl(this.cy2_1.pqn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.iy2_1 = suspendResult; this.id_1 = 5; continue $sm; case 5: this.jy2_1 = this.iy2_1; if ((this.jy2_1 == null ? true : this.jy2_1.uco_1.equals(new Long(0, 0))) ? true : this.jy2_1.tco_1.equals(new Long(0, 0))) { this.cy2_1.tqo().wq7(new Snack(this.cy2_1.vqo().soj(strings_getInstance().xmi_1))); this.fy2_1 = Unit_instance; this.jd_1 = 11; this.id_1 = 8; continue $sm; } else { this.id_1 = 6; continue $sm; } case 6: this.id_1 = 7; var tmp_1 = this.cy2_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_1, VOID, DiscussionPostDetailViewModel$submitReply$slambda_0(this.cy2_1, this.dy2_1, this.jy2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.ey2_1 = suspendResult; this.jd_1 = 11; this.id_1 = 9; continue $sm; case 8: this.jd_1 = 11; this.cy2_1.xqo(Companion_getInstance_98().pq7_1); l$ret$9: do { var this_1 = this.cy2_1.uy0_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.iy1(VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$9; } } } while (false); return Unit_instance; case 9: this.jd_1 = 11; this.cy2_1.xqo(Companion_getInstance_98().pq7_1); l$ret$11: do { var this_2 = this.cy2_1.uy0_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.iy1(VOID, VOID, VOID, VOID, true); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$11; } } } while (false); return Unit_instance; case 10: this.jd_1 = 11; var t = this.ld_1; this.cy2_1.xqo(Companion_getInstance_98().pq7_1); l$ret$7: do { var this_3 = this.cy2_1.uy0_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.iy1(VOID, VOID, VOID, VOID, true); if (this_3.z1k(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); throw t; case 11: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 11) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function DiscussionPostDetailViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'CourseDiscussionPost' : destinationName; DetailViewModel.call(this, di, savedStateHandle, destinationName); var tmp = this; tmp.ty0_1 = DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this); this.uy0_1 = MutableStateFlow(new DiscussionPostDetailUiState2()); this.vy0_1 = asStateFlow(this.uy0_1); this.wy0_1 = MutableStateFlow(''); this.xy0_1 = asStateFlow(this.wy0_1); this.yy0_1 = null; var tmp_0 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.zy0_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, DiscussionPostDetailViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(DiscussionPostDetailViewModel).gy4 = function (replyText) { this.wy0_1.y1k(replyText); var tmp0_safe_receiver = this.yy0_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.yy0_1 = launch(tmp_0, VOID, VOID, DiscussionPostDetailViewModel$onChangeReplyText$slambda_0(this, replyText, null)); }; protoOf(DiscussionPostDetailViewModel).sy4 = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, DiscussionPostDetailViewModel$onClickPostReply$slambda_0(this, null)); }; protoOf(DiscussionPostDetailViewModel).uxx = function (post) { var tmp = this.mqo(); launch(tmp, VOID, VOID, DiscussionPostDetailViewModel$onDeletePost$slambda_0(this, post, null)); }; function DiscussionPostDetailUiState2$_init_$lambda_c4cn31() { return new EmptyPagingSource(); } function DiscussionPostDetailUiState2(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { var tmp; if (discussionPosts === VOID) { tmp = DiscussionPostDetailUiState2$_init_$lambda_c4cn31; } else { tmp = discussionPosts; } discussionPosts = tmp; loggedInPersonUid = loggedInPersonUid === VOID ? new Long(0, 0) : loggedInPersonUid; loggedInPersonName = loggedInPersonName === VOID ? '' : loggedInPersonName; loggedInPersonPictureUri = loggedInPersonPictureUri === VOID ? null : loggedInPersonPictureUri; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.ay1_1 = discussionPosts; this.by1_1 = loggedInPersonUid; this.cy1_1 = loggedInPersonName; this.dy1_1 = loggedInPersonPictureUri; this.ey1_1 = fieldsEnabled; this.fy1_1 = showModerateOptions; this.gy1_1 = localDateTimeNow; this.hy1_1 = dayOfWeekStrings; } protoOf(DiscussionPostDetailUiState2).ty4 = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new DiscussionPostDetailUiState2(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).iy1 = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { discussionPosts = discussionPosts === VOID ? this.ay1_1 : discussionPosts; loggedInPersonUid = loggedInPersonUid === VOID ? this.by1_1 : loggedInPersonUid; loggedInPersonName = loggedInPersonName === VOID ? this.cy1_1 : loggedInPersonName; loggedInPersonPictureUri = loggedInPersonPictureUri === VOID ? this.dy1_1 : loggedInPersonPictureUri; fieldsEnabled = fieldsEnabled === VOID ? this.ey1_1 : fieldsEnabled; showModerateOptions = showModerateOptions === VOID ? this.fy1_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.gy1_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.hy1_1 : dayOfWeekStrings; return $super === VOID ? this.ty4(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.ty4.call(this, discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).toString = function () { return 'DiscussionPostDetailUiState2(discussionPosts=' + this.ay1_1 + ', loggedInPersonUid=' + this.by1_1.toString() + ', loggedInPersonName=' + this.cy1_1 + ', loggedInPersonPictureUri=' + this.dy1_1 + ', fieldsEnabled=' + this.ey1_1 + ', showModerateOptions=' + this.fy1_1 + ', localDateTimeNow=' + this.gy1_1 + ', dayOfWeekStrings=' + this.hy1_1 + ')'; }; protoOf(DiscussionPostDetailUiState2).hashCode = function () { var result = hashCode(this.ay1_1); result = imul(result, 31) + this.by1_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.cy1_1) | 0; result = imul(result, 31) + (this.dy1_1 == null ? 0 : getStringHashCode(this.dy1_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ey1_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fy1_1) | 0; result = imul(result, 31) + this.gy1_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.hy1_1) | 0; return result; }; protoOf(DiscussionPostDetailUiState2).equals = function (other) { if (this === other) return true; if (!(other instanceof DiscussionPostDetailUiState2)) return false; var tmp0_other_with_cast = other instanceof DiscussionPostDetailUiState2 ? other : THROW_CCE(); if (!equals(this.ay1_1, tmp0_other_with_cast.ay1_1)) return false; if (!this.by1_1.equals(tmp0_other_with_cast.by1_1)) return false; if (!(this.cy1_1 === tmp0_other_with_cast.cy1_1)) return false; if (!(this.dy1_1 == tmp0_other_with_cast.dy1_1)) return false; if (!(this.ey1_1 === tmp0_other_with_cast.ey1_1)) return false; if (!(this.fy1_1 === tmp0_other_with_cast.fy1_1)) return false; if (!this.gy1_1.equals(tmp0_other_with_cast.gy1_1)) return false; if (!equals(this.hy1_1, tmp0_other_with_cast.hy1_1)) return false; return true; }; function DiscussionPostEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.cy5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).gy5 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gy5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.dy5_1.i7f(); var tmp_1; if (!this.cy5_1.dqu_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.ey5_1 = tmp_1; if (this.ey5_1 == null) { this.fy5_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.ey5_1.wel(this.cy5_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.fy5_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.fy5_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).enz = function (it, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda$slambda(this.cy5_1, completion); i.dy5_1 = it; return i; }; function DiscussionPostEditViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new DiscussionPostEditViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.gy5(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.py5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).sy5 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).n78 = function ($completion) { return this.sy5($completion); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.qy5_1 = new DiscussionPost(); var tmp_1 = this; tmp_1.ry5_1 = this.qy5_1; this.id_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.py5_1.pqo()); suspendResult = tmp_2.p62(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.ry5_1.oem_1 = ARGUMENT; this.ry5_1.tem_1 = _get_courseBlockUidArg__1bqljt(this.py5_1); this.ry5_1.vem_1 = this.py5_1.lqo().poa().ckz_1; this.ry5_1.sem_1 = systemTimeInMillis(); return this.qy5_1; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).m78 = function (completion) { return new DiscussionPostEditViewModel$slambda$slambda$slambda_1(this.py5_1, completion); }; function DiscussionPostEditViewModel$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new DiscussionPostEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.sy5($completion); }; l.$arity = 0; return l; } function DiscussionPostEditViewModel$slambda$slambda$lambda(this$0) { return function (entityToDisplay) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qy6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel....' call var nextValue = prevValue.wy6(entityToDisplay); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function DiscussionPostEditViewModel$slambda$slambda(this$0, resultContinuation) { this.fy7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda).hy7 = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.hy7((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_44.o4r(); var tmp_1 = DiscussionPostEditViewModel$slambda$slambda$slambda_0(this.fy7_1, null); var tmp_2 = DiscussionPostEditViewModel$slambda$slambda$slambda_2(this.fy7_1, null); suspendResult = this.fy7_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, DiscussionPostEditViewModel$slambda$slambda$lambda(this.fy7_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda$slambda).w1m = function ($this$async, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda(this.fy7_1, completion); i.gy7_1 = $this$async; return i; }; function DiscussionPostEditViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new DiscussionPostEditViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.hy7($this$async, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function DiscussionPostEditViewModel$onClickSave$slambda$slambda(this$0, $post, resultContinuation) { this.qy7_1 = this$0; this.ry7_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.qy7_1.rqo().i7f().yel(this.ry7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda$slambda(this.qy7_1, this.ry7_1, completion); i.sy7_1 = it; return i; }; function DiscussionPostEditViewModel$onClickSave$slambda$slambda_0(this$0, $post, resultContinuation) { var i = new DiscussionPostEditViewModel$onClickSave$slambda$slambda(this$0, $post, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function _get_discussionPostUid__impog9($this) { Companion_getInstance_117(); var tmp0_safe_receiver = $this.vqn_1.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } function _get_courseBlockUidArg__1bqljt($this) { Companion_getInstance_126(); var tmp0_safe_receiver = $this.vqn_1.ba('courseBlockUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } function Companion_169() { this.ty7_1 = 'DiscussionPostEdit'; } var Companion_instance_217; function Companion_getInstance_187() { return Companion_instance_217; } function DiscussionPostEditViewModel$slambda(this$0, resultContinuation) { this.cy8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = awaitAll([async(this.dy8_1, VOID, VOID, DiscussionPostEditViewModel$slambda$slambda_0(this.cy8_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.cy8_1.qy6_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wy6(VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.cy8_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0 = this.cy8_1.vqo().soj(strings_getInstance().cnk_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$ref(this.cy8_1)); var tmp1_loadingState = Companion_getInstance_98().pq7_1; var nextValue_0 = prevValue_0.hq7(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$slambda(this.cy8_1, completion); i.dy8_1 = $this$launch; return i; }; function DiscussionPostEditViewModel$slambda_0(this$0, resultContinuation) { var i = new DiscussionPostEditViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.my8_1 = $commitDelay; this.ny8_1 = $entity; this.oy8_1 = $this; this.py8_1 = $key; this.qy8_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.my8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.ny8_1 == null)) { this.id_1 = 2; suspendResult = this.oy8_1.bqp(this.oy8_1.vqn_1, this.py8_1, this.qy8_1, this.ny8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$onEntityChanged$slambda(this.my8_1, this.ny8_1, this.oy8_1, this.py8_1, this.qy8_1, completion); i.ry8_1 = $this$launch; return i; }; function DiscussionPostEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new DiscussionPostEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$slambda(this$0, $post, resultContinuation) { this.ay9_1 = this$0; this.by9_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; if (this.ay9_1.qy6_1.t2().uy6_1 == null ? this.ay9_1.qy6_1.t2().vy6_1 == null : false) { this.id_1 = 1; suspendResult = this.ay9_1.pqo().q7d().ncl(this.by9_1.tem_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 5; continue $sm; } case 1: this.dy9_1 = suspendResult; this.by9_1.wem_1 = this.dy9_1; if (this.by9_1.wem_1.equals(new Long(0, 0))) { this.id_1 = 2; suspendResult = this.ay9_1.rqo().q7d().ncl(this.by9_1.tem_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.ey9_1 = suspendResult; this.by9_1.wem_1 = this.ey9_1; this.id_1 = 3; continue $sm; case 3: this.id_1 = 4; var tmp_0 = this.ay9_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$slambda$slambda_0(this.ay9_1, this.by9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_1 = this.by9_1.oem_1; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_126(); this.ay9_1.iqp(this_0, 'clazzUid'); this.ay9_1.equ('CourseDiscussionPost', tmp_1, this.by9_1, this_0.f3()); this.id_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda(this.ay9_1, this.by9_1, completion); i.cy9_1 = $this$launch; return i; }; function DiscussionPostEditViewModel$onClickSave$slambda_0(this$0, $post, resultContinuation) { var i = new DiscussionPostEditViewModel$onClickSave$slambda(this$0, $post, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'DiscussionPostEdit' : destinationName; UstadEditViewModel.call(this, di, savedStateHandle, destinationName); this.qy6_1 = MutableStateFlow(new DiscussionPostEditUiState()); this.ry6_1 = asStateFlow(this.qy6_1); this.xqo(Companion_getInstance_98().oq7_1); var title = _get_discussionPostUid__impog9(this).equals(new Long(0, 0)) ? this.vqo().soj(strings_getInstance().bnm_1) : this.vqo().soj(strings_getInstance().amw_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel.' call var nextValue = new AppUiState(VOID, VOID, title, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.mqo(); launch(tmp, VOID, VOID, DiscussionPostEditViewModel$slambda_0(this, null)); } protoOf(DiscussionPostEditViewModel).fy9 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qy6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.sy6_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qem_1; var tmp_0 = this.gqv(tmp, entity == null ? null : entity.qem_1, prevValue.uy6_1); var tmp2_safe_receiver = prevValue.sy6_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.rem_1; var nextValue = prevValue.wy6(entity, VOID, tmp_0, this.gqv(tmp_1, entity == null ? null : entity.rem_1, prevValue.vy6_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_44.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_2 = this; var tmp_3 = this.mqo(); tmp_2.cqu_1 = launch(tmp_3, VOID, VOID, DiscussionPostEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(DiscussionPostEditViewModel).ysb = function () { var tmp0_elvis_lhs = this.qy6_1.t2().sy6_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var post = tmp; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qy6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel.onClickSave.' call var tmp_0; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = post.qem_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_0 = this.vqo().soj(strings_getInstance().cmo_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = post.rem_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.vqo().soj(strings_getInstance().cmo_1); } else { tmp_2 = null; } var nextValue = prevValue.wy6(VOID, VOID, tmp_1, tmp_2); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.mqo(); launch(tmp_3, VOID, VOID, DiscussionPostEditViewModel$onClickSave$slambda_0(this, post, null)); }; function DiscussionPostEditUiState(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) { discussionPost = discussionPost === VOID ? null : discussionPost; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; discussionPostTitleError = discussionPostTitleError === VOID ? null : discussionPostTitleError; discussionPostDescError = discussionPostDescError === VOID ? null : discussionPostDescError; this.sy6_1 = discussionPost; this.ty6_1 = fieldsEnabled; this.uy6_1 = discussionPostTitleError; this.vy6_1 = discussionPostDescError; } protoOf(DiscussionPostEditUiState).gy9 = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) { return new DiscussionPostEditUiState(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).wy6 = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError, $super) { discussionPost = discussionPost === VOID ? this.sy6_1 : discussionPost; fieldsEnabled = fieldsEnabled === VOID ? this.ty6_1 : fieldsEnabled; discussionPostTitleError = discussionPostTitleError === VOID ? this.uy6_1 : discussionPostTitleError; discussionPostDescError = discussionPostDescError === VOID ? this.vy6_1 : discussionPostDescError; return $super === VOID ? this.gy9(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) : $super.gy9.call(this, discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).toString = function () { return 'DiscussionPostEditUiState(discussionPost=' + this.sy6_1 + ', fieldsEnabled=' + this.ty6_1 + ', discussionPostTitleError=' + this.uy6_1 + ', discussionPostDescError=' + this.vy6_1 + ')'; }; protoOf(DiscussionPostEditUiState).hashCode = function () { var result = this.sy6_1 == null ? 0 : hashCode(this.sy6_1); result = imul(result, 31) + getBooleanHashCode(this.ty6_1) | 0; result = imul(result, 31) + (this.uy6_1 == null ? 0 : getStringHashCode(this.uy6_1)) | 0; result = imul(result, 31) + (this.vy6_1 == null ? 0 : getStringHashCode(this.vy6_1)) | 0; return result; }; protoOf(DiscussionPostEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof DiscussionPostEditUiState)) return false; var tmp0_other_with_cast = other instanceof DiscussionPostEditUiState ? other : THROW_CCE(); if (!equals(this.sy6_1, tmp0_other_with_cast.sy6_1)) return false; if (!(this.ty6_1 === tmp0_other_with_cast.ty6_1)) return false; if (!(this.uy6_1 == tmp0_other_with_cast.uy6_1)) return false; if (!(this.vy6_1 == tmp0_other_with_cast.vy6_1)) return false; return true; }; function invoke$urlToLoad(_this__u8e3s4, cevOpenUri, manifest, this$0, cevManifestUrlObj) { var prefix = substringBeforeLast(cevOpenUri, '/', ''); var tmp; // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(prefix) > 0) { tmp = prefix + '/' + _this__u8e3s4.moe_1; } else { tmp = _this__u8e3s4.moe_1; } var pathInManifest = tmp; return invoke$urlToLoad_0(requireEntryByUri(manifest, pathInManifest), this$0, cevManifestUrlObj); } function EpubContentViewModel$slambda$slambda$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.lya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.....' call var nextValue = prevValue.zya(VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function EpubContentViewModel$slambda$slambda$slambda(this$0, $cevOpenUri, $manifest, $cevManifestUrlObj, resultContinuation) { this.iyb_1 = this$0; this.jyb_1 = $cevOpenUri; this.kyb_1 = $manifest; this.lyb_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda$slambda).vyb = function (it, $completion) { var tmp = this.wyb(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EpubContentViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.vyb(p1 instanceof Item ? p1 : THROW_CCE(), $completion); }; protoOf(EpubContentViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; tmp_0.nyb_1 = _get_httpClient__2ty1zc_2(this.iyb_1); var tmp_1 = this; tmp_1.oyb_1 = invoke$urlToLoad(this.myb_1, this.jyb_1, this.kyb_1, this.iyb_1, this.lyb_1); var tmp_2 = this; tmp_2.pyb_1 = this.nyb_1; var tmp_3 = this; tmp_3.qyb_1 = this.pyb_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.oyb_1); tmp_4.ryb_1 = this_0; this.ryb_1.x38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.syb_1 = this.qyb_1; var tmp_6 = this; tmp_6.tyb_1 = this.ryb_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.tyb_1, this.syb_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uyb_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsDecodedText(this.uyb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EpubContentViewModel$slambda$slambda$slambda).wyb = function (it, completion) { var i = new EpubContentViewModel$slambda$slambda$slambda(this.iyb_1, this.jyb_1, this.kyb_1, this.lyb_1, completion); i.myb_1 = it; return i; }; function EpubContentViewModel$slambda$slambda$slambda_0(this$0, $cevOpenUri, $manifest, $cevManifestUrlObj, resultContinuation) { var i = new EpubContentViewModel$slambda$slambda$slambda(this$0, $cevOpenUri, $manifest, $cevManifestUrlObj, resultContinuation); var l = function (it, $completion) { return i.vyb(it, $completion); }; l.$arity = 1; return l; } function invoke$urlToLoad_0(_this__u8e3s4, this$0, cevManifestUrlObj) { var tmp; if (this$0.hya_1) { tmp = _this__u8e3s4.qog_1; } else { tmp = cevManifestUrlObj.pp2(_this__u8e3s4.iog_1).toString(); } return tmp; } function EpubContentViewModel$slambda$slambda($manifest, $cevOpenUri, this$0, $opfBaseUrl, $argTocString, $cevManifestUrlObj, resultContinuation) { this.fyc_1 = $manifest; this.gyc_1 = $cevOpenUri; this.hyc_1 = this$0; this.iyc_1 = $opfBaseUrl; this.jyc_1 = $argTocString; this.kyc_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda).v1m = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EpubContentViewModel$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EpubContentViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.jd_1 = 4; this.myc_1 = requireEntryByUri(this.fyc_1, this.gyc_1); var tmp_0 = this; tmp_0.nyc_1 = _get_httpClient__2ty1zc_2(this.hyc_1); var tmp_1 = this; tmp_1.oyc_1 = invoke$urlToLoad_0(this.myc_1, this.hyc_1, this.kyc_1); var tmp_2 = this; tmp_2.pyc_1 = this.nyc_1; var tmp_3 = this; tmp_3.qyc_1 = this.pyc_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.oyc_1); tmp_4.ryc_1 = this_0; this.ryc_1.x38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.syc_1 = this.qyc_1; var tmp_6 = this; tmp_6.tyc_1 = this.ryc_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.tyc_1, this.syc_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uyc_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsDecodedText(this.uyc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.vyc_1 = suspendResult; this.wyc_1 = _get_xml__e6jxp6(this.hyc_1).t45(Companion_instance_74.o4r(), this.vyc_1); var tmp_7 = this; var this_1 = this.wyc_1.qof_1.voe_1; var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16); var destination = LinkedHashMap_init_$Create$_0(capacity); var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); destination.s(element.loe_1, element); } tmp_7.xyc_1 = destination; var tmp_8 = this; var this_2 = this.wyc_1.rof_1.uof_1; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = this_2.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver = this.xyc_1.q(element_0.roe_1); var tmp_9; if (tmp0_safe_receiver == null) { tmp_9 = null; } else { tmp_9 = this.iyc_1.pp2(tmp0_safe_receiver.moe_1); } var tmp1_safe_receiver = tmp_9; var tmp0_safe_receiver_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); if (tmp0_safe_receiver_0 == null) null; else { destination_0.i1(tmp0_safe_receiver_0); } } tmp_8.yyc_1 = destination_0; var tmp_10 = this; var tmp0_safe_receiver_1 = this.wyc_1.sof(); var tmp_11; if (tmp0_safe_receiver_1 == null) { tmp_11 = null; } else { tmp_11 = this.iyc_1.pp2(tmp0_safe_receiver_1.moe_1); } var tmp1_safe_receiver_0 = tmp_11; tmp_10.zyc_1 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.toString(); l$ret$1: do { var this_3 = this.hyc_1.lya_1; while (true) { var prevValue = this_3.t2(); var tmp0_safe_receiver_2 = firstOrNull(this.wyc_1.pof_1.fof_1); var nextValue = prevValue.zya(VOID, this.yyc_1, VOID, VOID, VOID, this.zyc_1, tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.eoe_1); if (this_3.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_4 = this.hyc_1.zqn_1; while (true) { var prevValue_0 = this_4.t2(); var tmp0_safe_receiver_3 = firstOrNull(this.wyc_1.pof_1.dof_1); var tmp1_elvis_lhs = tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.ioe_1; var tmp_12 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = this.jyc_1; var tmp_13 = tmp2_elvis_lhs == null ? this.hyc_1.vqo().soj(strings_getInstance().knm_1) : tmp2_elvis_lhs; var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, VOID, listOf_0(new OverflowItem(tmp_13, EpubContentViewModel$slambda$slambda$lambda(this.hyc_1)))); if (this_4.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp_14 = this.hyc_1; var tmp2_safe_receiver = this.wyc_1.tof(); var tmp_15; if (tmp2_safe_receiver == null) { tmp_15 = null; } else { tmp_15 = this.iyc_1.pp2(tmp2_safe_receiver.moe_1).toString(); } tmp_14.qya_1 = tmp_15; this.id_1 = 3; suspendResult = this.hyc_1.gya_1.qpe(this.wyc_1, EpubContentViewModel$slambda$slambda$slambda_0(this.hyc_1, this.gyc_1, this.fyc_1, this.kyc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var tmp3_elvis_lhs = suspendResult; var tocItems = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs; l$ret$5: do { var this_5 = this.hyc_1.lya_1; while (true) { var prevValue_1 = this_5.t2(); var nextValue_1 = prevValue_1.zya(VOID, VOID, tocItems); if (this_5.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.jd_1 = 5; this.id_1 = 6; continue $sm; case 4: this.jd_1 = 5; var tmp_16 = this.ld_1; if (tmp_16 instanceof Error) { var e = this.ld_1; printStackTrace(e); this.id_1 = 6; continue $sm; } else { throw this.ld_1; } case 5: throw this.ld_1; case 6: this.jd_1 = 5; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 5) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(EpubContentViewModel$slambda$slambda).w1m = function ($this$withContext, completion) { var i = new EpubContentViewModel$slambda$slambda(this.fyc_1, this.gyc_1, this.hyc_1, this.iyc_1, this.jyc_1, this.kyc_1, completion); i.lyc_1 = $this$withContext; return i; }; function EpubContentViewModel$slambda$slambda_0($manifest, $cevOpenUri, this$0, $opfBaseUrl, $argTocString, $cevManifestUrlObj, resultContinuation) { var i = new EpubContentViewModel$slambda$slambda($manifest, $cevOpenUri, this$0, $opfBaseUrl, $argTocString, $cevManifestUrlObj, resultContinuation); var l = function ($this$withContext, $completion) { return i.v1m($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_httpClient__2ty1zc_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jya_1; httpClient$factory_6(); return this_0.t2(); } function _get_xml__e6jxp6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kya_1; xml$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nya_1; openExternalLinkUseCase$factory_2(); return this_0.t2(); } function Companion_170() { this.ayd_1 = 'manifestUrl'; this.byd_1 = 'cevUri'; this.cyd_1 = 'navigationVisible'; this.dyd_1 = 'tocString'; this.eyd_1 = 'xapiStatementsUrl'; this.fyd_1 = 'EpubContent'; } var Companion_instance_218; function Companion_getInstance_188() { return Companion_instance_218; } function EpubContentViewModel$slambda($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation) { this.oyd_1 = $argManifestUrl; this.pyd_1 = $argCevOpenUri; this.qyd_1 = this$0; this.ryd_1 = $argTocString; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EpubContentViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EpubContentViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; if (!(this.oyd_1 == null) ? !(this.pyd_1 == null) : false) { var tmp_0 = this; tmp_0.tyd_1 = to(this.oyd_1, this.pyd_1); this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.qyd_1.rqo().j7f().gbq(this.qyd_1.iya_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.uyd_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.uyd_1 == null) { return Unit_instance; } else { tmp_2 = this.uyd_1; } tmp_1.vyd_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.vyd_1.qax_1; var tmp_4; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.wyd_1 = tmp_4; var tmp_5 = this; var tmp2_elvis_lhs = this.vyd_1.oax_1; var tmp_6; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_6 = tmp2_elvis_lhs; } tmp_5.xyd_1 = tmp_6; this.tyd_1 = to(this.wyd_1, this.xyd_1); this.id_1 = 2; continue $sm; case 2: this.yyd_1 = this.tyd_1; this.zyd_1 = this.yyd_1.y6(); this.aye_1 = this.yyd_1.z6(); this.bye_1 = UrlKmp(this.zyd_1); this.cye_1 = this.bye_1.pp2(this.aye_1); var tmp_7 = this; tmp_7.dye_1 = this.qyd_1.n4r(); var tmp_8 = this; tmp_8.eye_1 = _get_httpClient__2ty1zc_2(this.qyd_1); var tmp_9 = this; tmp_9.fye_1 = this.zyd_1; var tmp_10 = this; tmp_10.gye_1 = this.eye_1; var tmp_11 = this; tmp_11.hye_1 = this.gye_1; var tmp_12 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.fye_1); tmp_12.iye_1 = this_0; this.iye_1.x38_1 = Companion_getInstance().m2x_1; var tmp_13 = this; tmp_13.jye_1 = this.hye_1; var tmp_14 = this; tmp_14.kye_1 = this.iye_1; this.id_1 = 3; suspendResult = (new HttpStatement(this.kye_1, this.jye_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.lye_1 = suspendResult; this.id_1 = 4; suspendResult = bodyAsDecodedText(this.lye_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.mye_1 = suspendResult; var tmp_15 = this; var this_1 = this.dye_1.u45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_15.nye_1 = this.dye_1.t45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.mye_1); this.id_1 = 5; var tmp_16 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_16, EpubContentViewModel$slambda$slambda_0(this.nye_1, this.aye_1, this.qyd_1, this.cye_1, this.ryd_1, this.bye_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EpubContentViewModel$slambda).w1m = function ($this$launch, completion) { var i = new EpubContentViewModel$slambda(this.oyd_1, this.pyd_1, this.qyd_1, this.ryd_1, completion); i.syd_1 = $this$launch; return i; }; function EpubContentViewModel$slambda_0($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation) { var i = new EpubContentViewModel$slambda($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function EpubContentViewModel(di, savedStateHandle, getEpubTableOfContentsUseCase, useBodyDataUrls) { var tmp; if (getEpubTableOfContentsUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(di).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(XML), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.e58(tmp$ret$0, null); tmp = new GetEpubTableOfContentsUseCase(tmp$ret$1); } else { tmp = getEpubTableOfContentsUseCase; } getEpubTableOfContentsUseCase = tmp; useBodyDataUrls = useBodyDataUrls === VOID ? false : useBodyDataUrls; AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'EpubContent'); this.gya_1 = getEpubTableOfContentsUseCase; this.hya_1 = useBodyDataUrls; var tmp_2 = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.iya_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.jya_1 = Instance(this, tmp$ret$2, null).b5d(this, httpClient$factory_5()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XML), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.kya_1 = Instance(this, tmp$ret$4, null).b5d(this, xml$factory()); this.lya_1 = MutableStateFlow(new EpubContentUiState(this.iya_1)); this.mya_1 = asStateFlow(this.lya_1); var tmp_7 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_7.nya_1 = Instance(this, tmp$ret$6, null).b5d(this, openExternalLinkUseCase$factory_1()); this.oya_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.pya_1 = asSharedFlow(this.oya_1); this.qya_1 = null; var argManifestUrl = savedStateHandle.ba('manifestUrl'); var argCevOpenUri = savedStateHandle.ba('cevUri'); var tmp0_safe_receiver_0 = savedStateHandle.ba('navigationVisible'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0); var argNavigationVisible = tmp1_elvis_lhs_0 == null ? true : tmp1_elvis_lhs_0; var argTocString = savedStateHandle.ba('tocString'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, argNavigationVisible, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.mqo(); launch(tmp_9, VOID, VOID, EpubContentViewModel$slambda_0(argManifestUrl, argCevOpenUri, this, argTocString, null)); } protoOf(EpubContentViewModel).oye = function () { var langCodeVal = this.lya_1.t2().xya_1; var titleVal = this.zqn_1.t2().uq6_1; var tmp; if (!(langCodeVal == null) ? !(titleVal == null) : false) { tmp = new TitleAndLangCode(titleVal, langCodeVal); } else { tmp = null; } return tmp; }; protoOf(EpubContentViewModel).pye = function (baseUrl, href) { var url = UrlKmp(baseUrl).pp2(href); var urlStr = url.toString(); var hashIndex = indexOf_0(urlStr, '#'); var urlWithoutHash = substringBefore_0(urlStr, '#'); var indexInSpine = this.lya_1.t2().sya_1.x(urlWithoutHash); if (indexInSpine >= 0) { var tmp; if (hashIndex > 0) { // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call tmp = urlStr.substring(hashIndex); } else { tmp = null; } this.oya_1.j1h(new EpubScrollCommand(indexInSpine, tmp)); } else { _get_openExternalLinkUseCase__ku5z07_0(this).qpj(url.toString(), LinkTarget_BLANK_getInstance()); } }; protoOf(EpubContentViewModel).qye = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickTocItem.' call var nextValue = prevValue.zya(VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = this.qya_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var baseHref = tmp; var tmp1_elvis_lhs = tocItem.lpe_1; var tmp_0; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp1_elvis_lhs; } var itemUrl = tmp_0; this.pye(baseHref, itemUrl); }; protoOf(EpubContentViewModel).rye = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickToggleTocItem.' call var tmp; if (prevValue.vya_1.a1(tocItem.jpe_1)) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_1 = prevValue.vya_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickToggleTocItem..' call if (!(element === tocItem.jpe_1)) { destination.i1(element); } } tmp = toSet(destination); } else { tmp = plus_2(prevValue.vya_1, tocItem.jpe_1); } var nextValue = prevValue.zya(VOID, VOID, VOID, VOID, tmp); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).sye = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.lya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onDismissTableOfContentsDrawer.' call var nextValue = prevValue.zya(VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).tye = function (index) { var spineSize = this.lya_1.t2().sya_1.u(); if (spineSize <= 0) return Unit_instance; if (index === (spineSize - 1 | 0)) { this.bq4(true); } else { this.aq4(imul(index, 100) / spineSize | 0); } }; function EpubContentUiState(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) { contentEntryVersionUid = contentEntryVersionUid === VOID ? new Long(0, 0) : contentEntryVersionUid; spineUrls = spineUrls === VOID ? emptyList() : spineUrls; tableOfContents = tableOfContents === VOID ? emptyList() : tableOfContents; tableOfContentsOpen = tableOfContentsOpen === VOID ? false : tableOfContentsOpen; collapsedTocUids = collapsedTocUids === VOID ? emptySet() : collapsedTocUids; coverImageUrl = coverImageUrl === VOID ? null : coverImageUrl; langCode = langCode === VOID ? null : langCode; this.rya_1 = contentEntryVersionUid; this.sya_1 = spineUrls; this.tya_1 = tableOfContents; this.uya_1 = tableOfContentsOpen; this.vya_1 = collapsedTocUids; this.wya_1 = coverImageUrl; this.xya_1 = langCode; var tmp = this; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.tya_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentUiState.tableOfContentToDisplay.' call var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_1 = this.vya_1; var tmp_0; if (isInterface(this_1, Collection)) { tmp_0 = this_1.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = false; break $l$block_0; } var tmp0_iterator_0 = this_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentUiState.tableOfContentToDisplay..' call if (element.uyf(element_0)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (!tmp$ret$0) { destination.i1(element); } } tmp.yya_1 = destination; } protoOf(EpubContentUiState).vyf = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) { return new EpubContentUiState(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).zya = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode, $super) { contentEntryVersionUid = contentEntryVersionUid === VOID ? this.rya_1 : contentEntryVersionUid; spineUrls = spineUrls === VOID ? this.sya_1 : spineUrls; tableOfContents = tableOfContents === VOID ? this.tya_1 : tableOfContents; tableOfContentsOpen = tableOfContentsOpen === VOID ? this.uya_1 : tableOfContentsOpen; collapsedTocUids = collapsedTocUids === VOID ? this.vya_1 : collapsedTocUids; coverImageUrl = coverImageUrl === VOID ? this.wya_1 : coverImageUrl; langCode = langCode === VOID ? this.xya_1 : langCode; return $super === VOID ? this.vyf(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) : $super.vyf.call(this, contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).toString = function () { return 'EpubContentUiState(contentEntryVersionUid=' + this.rya_1.toString() + ', spineUrls=' + this.sya_1 + ', tableOfContents=' + this.tya_1 + ', tableOfContentsOpen=' + this.uya_1 + ', collapsedTocUids=' + this.vya_1 + ', coverImageUrl=' + this.wya_1 + ', langCode=' + this.xya_1 + ')'; }; protoOf(EpubContentUiState).hashCode = function () { var result = this.rya_1.hashCode(); result = imul(result, 31) + hashCode(this.sya_1) | 0; result = imul(result, 31) + hashCode(this.tya_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.uya_1) | 0; result = imul(result, 31) + hashCode(this.vya_1) | 0; result = imul(result, 31) + (this.wya_1 == null ? 0 : getStringHashCode(this.wya_1)) | 0; result = imul(result, 31) + (this.xya_1 == null ? 0 : getStringHashCode(this.xya_1)) | 0; return result; }; protoOf(EpubContentUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof EpubContentUiState)) return false; var tmp0_other_with_cast = other instanceof EpubContentUiState ? other : THROW_CCE(); if (!this.rya_1.equals(tmp0_other_with_cast.rya_1)) return false; if (!equals(this.sya_1, tmp0_other_with_cast.sya_1)) return false; if (!equals(this.tya_1, tmp0_other_with_cast.tya_1)) return false; if (!(this.uya_1 === tmp0_other_with_cast.uya_1)) return false; if (!equals(this.vya_1, tmp0_other_with_cast.vya_1)) return false; if (!(this.wya_1 == tmp0_other_with_cast.wya_1)) return false; if (!(this.xya_1 == tmp0_other_with_cast.xya_1)) return false; return true; }; function EpubScrollCommand(spineIndex, hash) { hash = hash === VOID ? null : hash; this.wyf_1 = spineIndex; this.xyf_1 = hash; } protoOf(EpubScrollCommand).toString = function () { return 'EpubScrollCommand(spineIndex=' + this.wyf_1 + ', hash=' + this.xyf_1 + ')'; }; protoOf(EpubScrollCommand).hashCode = function () { var result = this.wyf_1; result = imul(result, 31) + (this.xyf_1 == null ? 0 : getStringHashCode(this.xyf_1)) | 0; return result; }; protoOf(EpubScrollCommand).equals = function (other) { if (this === other) return true; if (!(other instanceof EpubScrollCommand)) return false; var tmp0_other_with_cast = other instanceof EpubScrollCommand ? other : THROW_CCE(); if (!(this.wyf_1 === tmp0_other_with_cast.wyf_1)) return false; if (!(this.xyf_1 == tmp0_other_with_cast.xyf_1)) return false; return true; }; function EpubTocItem(uid, label, href, children, parentUids, indentLevel) { parentUids = parentUids === VOID ? emptySet() : parentUids; indentLevel = indentLevel === VOID ? 0 : indentLevel; this.jpe_1 = uid; this.kpe_1 = label; this.lpe_1 = href; this.mpe_1 = children; this.npe_1 = parentUids; this.ope_1 = indentLevel; var tmp = this; // Inline function 'kotlin.collections.isNotEmpty' call tmp.ppe_1 = !this.mpe_1.c1(); } protoOf(EpubTocItem).uyf = function (uid) { return this.npe_1.a1(uid); }; protoOf(EpubTocItem).toString = function () { return 'EpubTocItem(uid=' + this.jpe_1 + ', label=' + this.kpe_1 + ', href=' + this.lpe_1 + ', children=' + this.mpe_1 + ', parentUids=' + this.npe_1 + ', indentLevel=' + this.ope_1 + ')'; }; protoOf(EpubTocItem).hashCode = function () { var result = this.jpe_1; result = imul(result, 31) + getStringHashCode(this.kpe_1) | 0; result = imul(result, 31) + (this.lpe_1 == null ? 0 : getStringHashCode(this.lpe_1)) | 0; result = imul(result, 31) + hashCode(this.mpe_1) | 0; result = imul(result, 31) + hashCode(this.npe_1) | 0; result = imul(result, 31) + this.ope_1 | 0; return result; }; protoOf(EpubTocItem).equals = function (other) { if (this === other) return true; if (!(other instanceof EpubTocItem)) return false; var tmp0_other_with_cast = other instanceof EpubTocItem ? other : THROW_CCE(); if (!(this.jpe_1 === tmp0_other_with_cast.jpe_1)) return false; if (!(this.kpe_1 === tmp0_other_with_cast.kpe_1)) return false; if (!(this.lpe_1 == tmp0_other_with_cast.lpe_1)) return false; if (!equals(this.mpe_1, tmp0_other_with_cast.mpe_1)) return false; if (!equals(this.npe_1, tmp0_other_with_cast.npe_1)) return false; if (!(this.ope_1 === tmp0_other_with_cast.ope_1)) return false; return true; }; function httpClient$factory_5() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_2(receiver); }, null); } function xml$factory() { return getPropertyCallableRef('xml', 1, KProperty1, function (receiver) { return _get_xml__e6jxp6(receiver); }, null); } function openExternalLinkUseCase$factory_1() { return getPropertyCallableRef('openExternalLinkUseCase', 1, KProperty1, function (receiver) { return _get_openExternalLinkUseCase__ku5z07_0(receiver); }, null); } function httpClient$factory_6() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_2(receiver); }, null); } function xml$factory_0() { return getPropertyCallableRef('xml', 1, KProperty1, function (receiver) { return _get_xml__e6jxp6(receiver); }, null); } function openExternalLinkUseCase$factory_2() { return getPropertyCallableRef('openExternalLinkUseCase', 1, KProperty1, function (receiver) { return _get_openExternalLinkUseCase__ku5z07_0(receiver); }, null); } function Companion_171() { this.yyf_1 = 'Error'; } var Companion_instance_219; function Companion_getInstance_189() { return Companion_instance_219; } function LoginViewModel$getCredentials$slambda$lambda($credentialResult) { return function () { return 'Error occurred: ' + $credentialResult.zr4_1; }; } function LoginViewModel$getCredentials$slambda$lambda_0($e) { return function () { return 'Error occurred: ' + $e.message; }; } function _get_nextDestination__tjiqwa($this) { var tmp = $this.wyg_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('nextDestination'); } } function _get_impl__d88w17_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yyg_1; impl$factory_2(); return this_0.t2(); } function _get_httpClient__2ty1zc_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zyg_1; httpClient$factory_8(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ayh_1; apiUrlConfig$factory_8(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cyh_1; setLanguageUseCase$factory_2(); return this_0.t2(); } function _get_languagesConfig__hebcss($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dyh_1; languagesConfig$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gyh_1; getVersionUseCase$factory_2(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iyh_1; getShowPoweredByUseCase$factory_2(); return this_0.t2(); } function _get_getCredentialUseCase__qofq9r_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lyh_1; getCredentialUseCase$factory_2(); return this_0.t2(); } function _get_parseCredentialUsernameUseCase__8m48wk_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.myh_1; parseCredentialUsernameUseCase$factory_2(); return this_0.t2(); } function onSiteVerified($this, site) { $this.byh_1 = site; $this.xqo(Companion_getInstance_98().pq7_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.uyg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onSiteVerified.' call var tmp0_connectAsGuestVisible = site.xhn_1; var nextValue = prevValue.cyi(VOID, VOID, true, VOID, VOID, VOID, tmp0_connectAsGuestVisible, VOID, null); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } function goToNextDestAfterLoginOrGuestSelected($this, person, $completion) { var tmp = new $goToNextDestAfterLoginOrGuestSelectedCOROUTINE$78($this, person, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function getCredentials_0($this) { var tmp0_elvis_lhs = _get_getCredentialUseCase__qofq9r_0($this); var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var getCredentialUseCaseVal = tmp; var tmp_0 = $this.mqo(); launch(tmp_0, VOID, VOID, LoginViewModel$getCredentials$slambda_0(getCredentialUseCaseVal, $this, null)); } function Companion_172() { this.nyi_1 = 'Login'; } var Companion_instance_220; function Companion_getInstance_190() { return Companion_instance_220; } function LoginViewModel$slambda(this$0, $savedStateHandle, $getDefaultDestinationUseCase, resultContinuation) { this.wyi_1 = this$0; this.xyi_1 = $savedStateHandle; this.yyi_1 = $getDefaultDestinationUseCase; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LoginViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; Companion_getInstance_117(); tmp_0.ayj_1 = this.xyi_1.ba('next'); if (this.ayj_1 == null) { this.id_1 = 1; suspendResult = this.yyi_1.w8q(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.byj_1 = this.ayj_1; this.id_1 = 2; continue $sm; } case 1: this.byj_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.byj_1; var tmp_1; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('destination can not be null'); } else { tmp_1 = tmp1_elvis_lhs; } var ARGUMENT = tmp_1; this.wyi_1.wyg_1 = ARGUMENT; this.wyi_1.hyh_1.hy(_get_nextDestination__tjiqwa(this.wyi_1)); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LoginViewModel$slambda).w1m = function ($this$launch, completion) { var i = new LoginViewModel$slambda(this.wyi_1, this.xyi_1, this.yyi_1, completion); i.zyi_1 = $this$launch; return i; }; function LoginViewModel$slambda_0(this$0, $savedStateHandle, $getDefaultDestinationUseCase, resultContinuation) { var i = new LoginViewModel$slambda(this$0, $savedStateHandle, $getDefaultDestinationUseCase, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$slambda_1(this$0, resultContinuation) { this.kyj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LoginViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 7; this.id_1 = 1; continue $sm; case 1: if (!(this.kyj_1.byh_1 == null)) { this.id_1 = 6; continue $sm; } this.jd_1 = 3; this.id_1 = 2; suspendResult = verifySite(_get_httpClient__2ty1zc_3(this.kyj_1), this.kyj_1.xyg_1, new Long(10000, 0), this.kyj_1.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.myj_1 = suspendResult; onSiteVerified(this.kyj_1, this.myj_1); this.jd_1 = 7; this.id_1 = 5; continue $sm; case 3: this.jd_1 = 7; var tmp_0 = this.ld_1; if (tmp_0 instanceof Exception) { this.nyj_1 = this.ld_1; Napier_getInstance().n5e('Could not load site object for ' + this.kyj_1.xyg_1, this.nyj_1); l$ret$1: do { var this_0 = this.kyj_1.uyg_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cyi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _get_impl__d88w17_0(this.kyj_1).soj(strings_getInstance().hmj_1)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 4; suspendResult = delay(new Long(10000, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.ld_1; } case 4: this.id_1 = 5; continue $sm; case 5: this.jd_1 = 7; this.id_1 = 1; continue $sm; case 6: return Unit_instance; case 7: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 7) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LoginViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new LoginViewModel$slambda_1(this.kyj_1, completion); i.lyj_1 = $this$launch; return i; }; function LoginViewModel$slambda_2(this$0, resultContinuation) { var i = new LoginViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda($destination) { return function () { return 'LoginPresenter: go to next destination: ' + $destination; }; } function LoginViewModel$onClickLogin$slambda(this$0, $username, $password, resultContinuation) { this.wyj_1 = this$0; this.xyj_1 = $username; this.yyj_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$onClickLogin$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LoginViewModel$onClickLogin$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$onClickLogin$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 9; this.ayk_1 = null; this.id_1 = 1; continue $sm; case 1: this.jd_1 = 8; this.jd_1 = 7; this.id_1 = 2; var tmp_0 = this.wyj_1.lqo(); var this_0 = this.xyj_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.yyj_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); var tmp_3 = this.wyj_1.xyg_1; Companion_getInstance_117(); var tmp0_safe_receiver = this.wyj_1.vqn_1.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.aob(tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.wyj_1.jyh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.cyk_1 = suspendResult; if (!this.wyj_1.kyh_1) { var tmp_4 = this; var this_2 = this.wyj_1.b57(); var context = new LearningSpace(this.wyj_1.xyg_1); var trigger = this_2.e57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_7 = get_direct(On(this_2, tmp_5.i57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).g58(); var tmp_8 = typeToken(createKType(getKClass(SavePasswordUseCase), arrayOf([]), false)); tmp_4.dyk_1 = tmp_7.f58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), null); this.eyk_1 = this.dyk_1; if (this.eyk_1 == null) { this.fyk_1 = null; this.id_1 = 4; continue $sm; } else { this.id_1 = 3; var this_3 = this.xyj_1; var tmp_9 = toString(trim(isCharSequence(this_3) ? this_3 : THROW_CCE())); var this_4 = this.yyj_1; suspendResult = this.eyk_1.xpc(tmp_9, toString(trim(isCharSequence(this_4) ? this_4 : THROW_CCE())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { this.id_1 = 5; continue $sm; } case 3: var tmp_10 = this; tmp_10.fyk_1 = Unit_instance; this.id_1 = 4; continue $sm; case 4: this.id_1 = 5; continue $sm; case 5: this.id_1 = 6; suspendResult = goToNextDestAfterLoginOrGuestSelected(this.wyj_1, this.cyk_1.kkz(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.byk_1 = suspendResult; this.jd_1 = 9; this.id_1 = 10; continue $sm; case 7: this.jd_1 = 8; var tmp_11 = this.ld_1; if (tmp_11 instanceof AdultAccountRequiredException) { var e = this.ld_1; var tmp_12 = this; this.ayk_1 = _get_impl__d88w17_0(this.wyj_1).soj(strings_getInstance().pnf_1); tmp_12.byk_1 = Unit_instance; this.jd_1 = 9; this.id_1 = 10; continue $sm; } else { var tmp_13 = this.ld_1; if (tmp_13 instanceof UnauthorizedException) { var e_0 = this.ld_1; var tmp_14 = this; this.ayk_1 = _get_impl__d88w17_0(this.wyj_1).soj(strings_getInstance().gmj_1); tmp_14.byk_1 = Unit_instance; this.jd_1 = 9; this.id_1 = 10; continue $sm; } else { var tmp_15 = this.ld_1; if (tmp_15 instanceof ConsentNotGrantedException) { var e_1 = this.ld_1; var tmp_16 = this; this.ayk_1 = _get_impl__d88w17_0(this.wyj_1).soj(strings_getInstance().onf_1); tmp_16.byk_1 = Unit_instance; this.jd_1 = 9; this.id_1 = 10; continue $sm; } else { var tmp_17 = this.ld_1; if (tmp_17 instanceof Exception) { var e_2 = this.ld_1; var tmp_18 = this; this.ayk_1 = _get_impl__d88w17_0(this.wyj_1).soj(strings_getInstance().hmj_1); tmp_18.byk_1 = Unit_instance; this.jd_1 = 9; this.id_1 = 10; continue $sm; } else { throw this.ld_1; } } } } case 8: this.jd_1 = 9; var t = this.ld_1; this.wyj_1.xqo(Companion_getInstance_98().pq7_1); l$ret$3: do { var this_5 = this.wyj_1.uyg_1; while (true) { var prevValue = this_5.t2(); var nextValue = prevValue.cyi(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.ayk_1); if (this_5.z1k(prevValue, nextValue)) { break l$ret$3; } } } while (false); throw t; case 9: throw this.ld_1; case 10: this.jd_1 = 9; this.wyj_1.xqo(Companion_getInstance_98().pq7_1); l$ret$5: do { var this_6 = this.wyj_1.uyg_1; while (true) { var prevValue_0 = this_6.t2(); var nextValue_0 = prevValue_0.cyi(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.ayk_1); if (this_6.z1k(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); return Unit_instance; } } catch ($p) { var e_3 = $p; if (this.jd_1 === 9) { throw e_3; } else { this.id_1 = this.jd_1; this.ld_1 = e_3; } } while (true); }; protoOf(LoginViewModel$onClickLogin$slambda).w1m = function ($this$launch, completion) { var i = new LoginViewModel$onClickLogin$slambda(this.wyj_1, this.xyj_1, this.yyj_1, completion); i.zyj_1 = $this$launch; return i; }; function LoginViewModel$onClickLogin$slambda_0(this$0, $username, $password, resultContinuation) { var i = new LoginViewModel$onClickLogin$slambda(this$0, $username, $password, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$onClickConnectAsGuest$slambda(this$0, resultContinuation) { this.oyk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$onClickConnectAsGuest$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LoginViewModel$onClickConnectAsGuest$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$onClickConnectAsGuest$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.oyk_1.lqo().bob(this.oyk_1.xyg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qyk_1 = suspendResult; this.id_1 = 2; suspendResult = goToNextDestAfterLoginOrGuestSelected(this.oyk_1, this.qyk_1.unu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LoginViewModel$onClickConnectAsGuest$slambda).w1m = function ($this$launch, completion) { var i = new LoginViewModel$onClickConnectAsGuest$slambda(this.oyk_1, completion); i.pyk_1 = $this$launch; return i; }; function LoginViewModel$onClickConnectAsGuest$slambda_0(this$0, resultContinuation) { var i = new LoginViewModel$onClickConnectAsGuest$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$getCredentials$slambda($getCredentialUseCaseVal, this$0, resultContinuation) { this.zyk_1 = $getCredentialUseCaseVal; this.ayl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$getCredentials$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LoginViewModel$getCredentials$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$getCredentials$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.jd_1 = 5; this.id_1 = 1; suspendResult = this.zyk_1.spb(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cyl_1 = suspendResult; var tmp_0 = this.cyl_1; if (tmp_0 instanceof PasskeyCredentialResult) { this.id_1 = 2; suspendResult = this.ayl_1.lqo().zoa(this.cyl_1.tr7_1, this.ayl_1.xyg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this.cyl_1; if (tmp_1 instanceof PasswordCredentialResult) { var tmp0_container = _get_parseCredentialUsernameUseCase__8m48wk_0(this.ayl_1).wp9(this.cyl_1.rr7_1); var learningSpace = tmp0_container.y6(); var username = tmp0_container.z6(); this.ayl_1.eyl(username); this.ayl_1.fyl(this.cyl_1.sr7_1); this.ayl_1.kyh_1 = true; var tmp_2 = this.ayl_1; var this_0 = learningSpace.cnu_1; Companion_getInstance_117(); this.ayl_1.vqn_1.yqj('learningSpaceUrl', this_0); tmp_2.xyg_1 = this_0; this.ayl_1.gyl(); this.id_1 = 4; continue $sm; } else { var tmp_3 = this.cyl_1; if (tmp_3 instanceof Error_2) { l$ret$1: do { var this_1 = this.ayl_1.uyg_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.cyi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.cyl_1.zr4_1); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_4 = Napier_getInstance(); tmp_4.t5e(VOID, VOID, LoginViewModel$getCredentials$slambda$lambda(this.cyl_1)); this.id_1 = 4; continue $sm; } else { var tmp_5; var tmp_6 = this.cyl_1; if (tmp_6 instanceof NoCredentialAvailableResult) { tmp_5 = true; } else { var tmp_7 = this.cyl_1; tmp_5 = tmp_7 instanceof UserCanceledResult_0; } if (tmp_5) { this.id_1 = 4; continue $sm; } else { this.id_1 = 4; continue $sm; } } } } case 2: this.dyl_1 = suspendResult; this.id_1 = 3; suspendResult = goToNextDestAfterLoginOrGuestSelected(this.ayl_1, this.dyl_1.kkz(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 4; continue $sm; case 4: this.jd_1 = 6; this.id_1 = 7; continue $sm; case 5: this.jd_1 = 6; var tmp_8 = this.ld_1; if (tmp_8 instanceof Exception) { var e = this.ld_1; var tmp_9 = Napier_getInstance(); tmp_9.t5e(VOID, VOID, LoginViewModel$getCredentials$slambda$lambda_0(e)); this.id_1 = 7; continue $sm; } else { throw this.ld_1; } case 6: throw this.ld_1; case 7: this.jd_1 = 6; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 6) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(LoginViewModel$getCredentials$slambda).w1m = function ($this$launch, completion) { var i = new LoginViewModel$getCredentials$slambda(this.zyk_1, this.ayl_1, completion); i.byl_1 = $this$launch; return i; }; function LoginViewModel$getCredentials$slambda_0($getCredentialUseCaseVal, this$0, resultContinuation) { var i = new LoginViewModel$getCredentials$slambda($getCredentialUseCaseVal, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function $goToNextDestAfterLoginOrGuestSelectedCOROUTINE$78(_this__u8e3s4, person, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lyi_1 = _this__u8e3s4; this.myi_1 = person; } protoOf($goToNextDestAfterLoginOrGuestSelectedCOROUTINE$78).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.lyi_1.hyh_1.ov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var destination = suspendResult; var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp_0 = Napier_getInstance(); tmp_0.l5e(VOID, VOID, LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda(destination)); this.lyi_1.hqv(this.lyi_1.xqn_1, appendSelectedAccount(destination, this.myi_1.g96_1, new LearningSpace(this.lyi_1.xyg_1)), goOptions); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function LoginViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Login'); this.uyg_1 = MutableStateFlow(new LoginUiState()); this.vyg_1 = asStateFlow(this.uyg_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.yyg_1 = Instance(this, tmp$ret$0, null).b5d(this, impl$factory_1()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.zyg_1 = Instance(this, tmp$ret$2, null).b5d(this, httpClient$factory_7()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.ayh_1 = Instance(this, tmp$ret$4, null).b5d(this, apiUrlConfig$factory_7()); this.byh_1 = null; var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(SetLanguageUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.cyh_1 = Instance(this, tmp$ret$6, null).b5d(this, setLanguageUseCase$factory_1()); var tmp_7 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_7.dyh_1 = Instance(this, tmp$ret$8, null).b5d(this, languagesConfig$factory()); this.eyh_1 = new ValidateUsernameUseCase(); this.fyh_1 = new FilterUsernameUseCase(); var tmp_9 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(GetVersionUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_9.gyh_1 = InstanceOrNull(this, tmp$ret$10, null).b5d(this, getVersionUseCase$factory_1()); this.hyh_1 = CompletableDeferred(); var tmp_11 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(GetShowPoweredByUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.iyh_1 = InstanceOrNull(this, tmp$ret$12, null).b5d(this, getShowPoweredByUseCase$factory_1()); var tmp_13 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_13.jyh_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; this.kyh_1 = false; var tmp_14 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_15 = typeToken(createKType(getKClass(GetCredentialUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_15, TypeToken) ? tmp_15 : THROW_CCE(); tmp_14.lyh_1 = InstanceOrNull(this, tmp$ret$14, null).b5d(this, getCredentialUseCase$factory_1()); var tmp_16 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(ParseCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); tmp_16.myh_1 = Instance(this, tmp$ret$16, null).b5d(this, parseCredentialUsernameUseCase$factory_1()); var tmp_18 = this; Companion_getInstance_117(); var tmp0_elvis_lhs = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs_0 = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_3(this).eo6_1 : tmp0_elvis_lhs; tmp_18.xyg_1 = tmp1_elvis_lhs_0 == null ? 'http://localhost' : tmp1_elvis_lhs_0; Companion_getInstance_117(); savedStateHandle.yqj('learningSpaceUrl', this.xyg_1); // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.xyg_1); var trigger = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_19 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_20 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE(); var tmp$ret$19 = tmp_19.i57(tmp$ret$18, context); var tmp$ret$20 = On(di, tmp$ret$19, trigger); var tmp_21 = get_direct(tmp$ret$20).g58(); // Inline function 'org.kodein.type.generic' call var tmp_22 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$21 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE(); var getDefaultDestinationUseCase = tmp_21.e58(tmp$ret$21, null); var tmp_23 = this.mqo(); launch(tmp_23, VOID, VOID, LoginViewModel$slambda_0(this, savedStateHandle, getDefaultDestinationUseCase, null)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uyg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var tmp_24 = this.vqo().soj(strings_getInstance().bnn_1) + ': '; var tmp0_safe_receiver_0 = _get_getVersionUseCase__n7x57g_0(this); var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.zpe(); var tmp_25 = tmp_24 + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xpe_1); Companion_getInstance_117(); var tmp_26 = savedStateHandle.ba('intMsg'); var tmp_27 = _get_languagesConfig__hebcss(this).uq8(this.vqo()); var tmp_28 = _get_languagesConfig__hebcss(this).vq8(this.vqo()); var tmp2_safe_receiver = _get_getShowPoweredByUseCase__5l0p0e_0(this); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zpe(); var nextValue = prevValue.cyi(VOID, VOID, VOID, VOID, VOID, tmp_25, VOID, tmp_26, VOID, tmp_27, tmp_28, VOID, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } Companion_getInstance_214(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.uyg_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_0 = prevValue_0.cyi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } var tmp2_title = _get_impl__d88w17_0(this).soj(strings_getInstance().pmi_1); var baseAppUiState = new AppUiState(VOID, VOID, tmp2_title, false, VOID, VOID, false); this.xyg_1 = requirePostfix(this.xyg_1, '/'); Companion_getInstance_117(); var siteJsonStr = savedStateHandle.ba('site'); if (!(siteJsonStr == null)) { this.zqn_1.y1k(baseAppUiState); // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_2 = this.n4r(); // Inline function 'kotlinx.serialization.serializer' call var this_3 = this_2.u45(); // Inline function 'kotlinx.serialization.internal.cast' call var this_4 = serializer(this_3, createKType(getKClass(Site), arrayOf([]), false)); var tmp$ret$28 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE(); var tmp$ret$29 = this_2.t45(tmp$ret$28, siteJsonStr); onSiteVerified(this, tmp$ret$29); } else { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_5 = this.uyg_1; while (true) { var prevValue_1 = this_5.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_1 = prevValue_1.cyi(VOID, VOID, false); if (this_5.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } this.zqn_1.y1k(baseAppUiState.hq7(VOID, Companion_getInstance_98().oq7_1)); var tmp_29 = this.mqo(); launch(tmp_29, VOID, VOID, LoginViewModel$slambda_2(this, null)); } getCredentials_0(this); } protoOf(LoginViewModel).eyl = function (newValue) { this.kyh_1 = false; var filteredValue = this.fyh_1.vpe(newValue, ''); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uyg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onUsernameChanged.' call var nextValue = prevValue.cyi(filteredValue); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).fyl = function (password) { this.kyh_1 = false; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uyg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onPasswordChanged.' call var nextValue = prevValue.cyi(VOID, password); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).gyl = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uyg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call // Inline function 'kotlin.text.trim' call var this_1 = prevValue.nyh_1; var tmp0_username = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); // Inline function 'kotlin.text.trim' call var this_2 = prevValue.oyh_1; var tmp1_password = toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())); var nextValue = prevValue.cyi(tmp0_username, tmp1_password, false, null, null); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var username = this.uyg_1.t2().nyh_1; var password = this.uyg_1.t2().oyh_1; var tmp; // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(username) > 0) { // Inline function 'kotlin.text.isNotEmpty' call tmp = charSequenceLength(password) > 0; } else { tmp = false; } if (tmp) { var validationResult = this.eyh_1.wp9(username); if (!validationResult.equals(Companion_getInstance_75().kpp_1)) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.uyg_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call var tmp0_safe_receiver = validationResult.ppp_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin..' call tmp_0 = _get_impl__d88w17_0(this).soj(tmp0_safe_receiver); } var nextValue_0 = prevValue_0.cyi(VOID, VOID, true, tmp_0); if (this_3.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } this.xqo(Companion_getInstance_98().oq7_1); var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, LoginViewModel$onClickLogin$slambda_0(this, username, password, null)); } else { this.xqo(Companion_getInstance_98().pq7_1); $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.uyg_1; while (true) { var prevValue_1 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call var tmp_2; // Inline function 'kotlin.text.isEmpty' call var this_5 = prevValue_1.nyh_1; if (charSequenceLength(this_5) === 0) { tmp_2 = _get_impl__d88w17_0(this).soj(strings_getInstance().cmo_1); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4; // Inline function 'kotlin.text.isEmpty' call var this_6 = prevValue_1.oyh_1; if (charSequenceLength(this_6) === 0) { tmp_4 = _get_impl__d88w17_0(this).soj(strings_getInstance().cmo_1); } else { tmp_4 = null; } var nextValue_1 = prevValue_1.cyi(VOID, VOID, true, tmp_3, tmp_4); if (this_4.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(LoginViewModel).hyl = function (uiLanguage) { if (!uiLanguage.equals(this.uyg_1.t2().wyh_1)) { var tmp = _get_setLanguageUseCase__st7nci_0(this); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onChangeLanguage.' call Companion_getInstance_117(); this.iqp(this_0, 'next'); Companion_getInstance_117(); this.iqp(this_0, 'learningSpaceUrl'); Companion_getInstance_117(); this.iqp(this_0, 'site'); var tmp$ret$2 = this_0.f3(); var result = tmp.opi(uiLanguage, 'Login', this.xqn_1, tmp$ret$2); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.uyg_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onChangeLanguage.' call var nextValue = prevValue.cyi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, uiLanguage, VOID, result.npi_1); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(LoginViewModel).iyl = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, LoginViewModel$onClickConnectAsGuest$slambda_0(this, null)); }; function LoginUiState(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, errorText) { username = username === VOID ? '' : username; password = password === VOID ? '' : password; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; usernameError = usernameError === VOID ? null : usernameError; passwordError = passwordError === VOID ? null : passwordError; versionInfo = versionInfo === VOID ? 'v42' : versionInfo; connectAsGuestVisible = connectAsGuestVisible === VOID ? false : connectAsGuestVisible; loginIntentMessage = loginIntentMessage === VOID ? null : loginIntentMessage; errorMessage = errorMessage === VOID ? null : errorMessage; currentLanguage = currentLanguage === VOID ? new UiLanguage('en', 'English') : currentLanguage; languageList = languageList === VOID ? listOf_0(currentLanguage) : languageList; showWaitForRestart = showWaitForRestart === VOID ? false : showWaitForRestart; showPoweredBy = showPoweredBy === VOID ? false : showPoweredBy; isPersonalAccount = isPersonalAccount === VOID ? false : isPersonalAccount; errorText = errorText === VOID ? null : errorText; this.nyh_1 = username; this.oyh_1 = password; this.pyh_1 = fieldsEnabled; this.qyh_1 = usernameError; this.ryh_1 = passwordError; this.syh_1 = versionInfo; this.tyh_1 = connectAsGuestVisible; this.uyh_1 = loginIntentMessage; this.vyh_1 = errorMessage; this.wyh_1 = currentLanguage; this.xyh_1 = languageList; this.yyh_1 = showWaitForRestart; this.zyh_1 = showPoweredBy; this.ayi_1 = isPersonalAccount; this.byi_1 = errorText; } protoOf(LoginUiState).jyl = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, errorText) { return new LoginUiState(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, errorText); }; protoOf(LoginUiState).cyi = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, errorText, $super) { username = username === VOID ? this.nyh_1 : username; password = password === VOID ? this.oyh_1 : password; fieldsEnabled = fieldsEnabled === VOID ? this.pyh_1 : fieldsEnabled; usernameError = usernameError === VOID ? this.qyh_1 : usernameError; passwordError = passwordError === VOID ? this.ryh_1 : passwordError; versionInfo = versionInfo === VOID ? this.syh_1 : versionInfo; connectAsGuestVisible = connectAsGuestVisible === VOID ? this.tyh_1 : connectAsGuestVisible; loginIntentMessage = loginIntentMessage === VOID ? this.uyh_1 : loginIntentMessage; errorMessage = errorMessage === VOID ? this.vyh_1 : errorMessage; currentLanguage = currentLanguage === VOID ? this.wyh_1 : currentLanguage; languageList = languageList === VOID ? this.xyh_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.yyh_1 : showWaitForRestart; showPoweredBy = showPoweredBy === VOID ? this.zyh_1 : showPoweredBy; isPersonalAccount = isPersonalAccount === VOID ? this.ayi_1 : isPersonalAccount; errorText = errorText === VOID ? this.byi_1 : errorText; return $super === VOID ? this.jyl(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, errorText) : $super.jyl.call(this, username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, errorText); }; protoOf(LoginUiState).toString = function () { return 'LoginUiState(username=' + this.nyh_1 + ', password=' + this.oyh_1 + ', fieldsEnabled=' + this.pyh_1 + ', usernameError=' + this.qyh_1 + ', passwordError=' + this.ryh_1 + ', versionInfo=' + this.syh_1 + ', connectAsGuestVisible=' + this.tyh_1 + ', loginIntentMessage=' + this.uyh_1 + ', errorMessage=' + this.vyh_1 + ', currentLanguage=' + this.wyh_1 + ', languageList=' + this.xyh_1 + ', showWaitForRestart=' + this.yyh_1 + ', showPoweredBy=' + this.zyh_1 + ', isPersonalAccount=' + this.ayi_1 + ', errorText=' + this.byi_1 + ')'; }; protoOf(LoginUiState).hashCode = function () { var result = getStringHashCode(this.nyh_1); result = imul(result, 31) + getStringHashCode(this.oyh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pyh_1) | 0; result = imul(result, 31) + (this.qyh_1 == null ? 0 : getStringHashCode(this.qyh_1)) | 0; result = imul(result, 31) + (this.ryh_1 == null ? 0 : getStringHashCode(this.ryh_1)) | 0; result = imul(result, 31) + getStringHashCode(this.syh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tyh_1) | 0; result = imul(result, 31) + (this.uyh_1 == null ? 0 : getStringHashCode(this.uyh_1)) | 0; result = imul(result, 31) + (this.vyh_1 == null ? 0 : getStringHashCode(this.vyh_1)) | 0; result = imul(result, 31) + this.wyh_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.xyh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yyh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zyh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ayi_1) | 0; result = imul(result, 31) + (this.byi_1 == null ? 0 : getStringHashCode(this.byi_1)) | 0; return result; }; protoOf(LoginUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LoginUiState)) return false; var tmp0_other_with_cast = other instanceof LoginUiState ? other : THROW_CCE(); if (!(this.nyh_1 === tmp0_other_with_cast.nyh_1)) return false; if (!(this.oyh_1 === tmp0_other_with_cast.oyh_1)) return false; if (!(this.pyh_1 === tmp0_other_with_cast.pyh_1)) return false; if (!(this.qyh_1 == tmp0_other_with_cast.qyh_1)) return false; if (!(this.ryh_1 == tmp0_other_with_cast.ryh_1)) return false; if (!(this.syh_1 === tmp0_other_with_cast.syh_1)) return false; if (!(this.tyh_1 === tmp0_other_with_cast.tyh_1)) return false; if (!(this.uyh_1 == tmp0_other_with_cast.uyh_1)) return false; if (!(this.vyh_1 == tmp0_other_with_cast.vyh_1)) return false; if (!this.wyh_1.equals(tmp0_other_with_cast.wyh_1)) return false; if (!equals(this.xyh_1, tmp0_other_with_cast.xyh_1)) return false; if (!(this.yyh_1 === tmp0_other_with_cast.yyh_1)) return false; if (!(this.zyh_1 === tmp0_other_with_cast.zyh_1)) return false; if (!(this.ayi_1 === tmp0_other_with_cast.ayi_1)) return false; if (!(this.byi_1 == tmp0_other_with_cast.byi_1)) return false; return true; }; function impl$factory_1() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_0(receiver); }, null); } function httpClient$factory_7() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_3(receiver); }, null); } function apiUrlConfig$factory_7() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_3(receiver); }, null); } function setLanguageUseCase$factory_1() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci_0(receiver); }, null); } function languagesConfig$factory() { return getPropertyCallableRef('languagesConfig', 1, KProperty1, function (receiver) { return _get_languagesConfig__hebcss(receiver); }, null); } function getVersionUseCase$factory_1() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g_0(receiver); }, null); } function getShowPoweredByUseCase$factory_1() { return getPropertyCallableRef('getShowPoweredByUseCase', 1, KProperty1, function (receiver) { return _get_getShowPoweredByUseCase__5l0p0e_0(receiver); }, null); } function getCredentialUseCase$factory_1() { return getPropertyCallableRef('getCredentialUseCase', 1, KProperty1, function (receiver) { return _get_getCredentialUseCase__qofq9r_0(receiver); }, null); } function parseCredentialUsernameUseCase$factory_1() { return getPropertyCallableRef('parseCredentialUsernameUseCase', 1, KProperty1, function (receiver) { return _get_parseCredentialUsernameUseCase__8m48wk_0(receiver); }, null); } function impl$factory_2() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_0(receiver); }, null); } function httpClient$factory_8() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_3(receiver); }, null); } function apiUrlConfig$factory_8() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_3(receiver); }, null); } function setLanguageUseCase$factory_2() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci_0(receiver); }, null); } function languagesConfig$factory_0() { return getPropertyCallableRef('languagesConfig', 1, KProperty1, function (receiver) { return _get_languagesConfig__hebcss(receiver); }, null); } function getVersionUseCase$factory_2() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g_0(receiver); }, null); } function getShowPoweredByUseCase$factory_2() { return getPropertyCallableRef('getShowPoweredByUseCase', 1, KProperty1, function (receiver) { return _get_getShowPoweredByUseCase__5l0p0e_0(receiver); }, null); } function getCredentialUseCase$factory_2() { return getPropertyCallableRef('getCredentialUseCase', 1, KProperty1, function (receiver) { return _get_getCredentialUseCase__qofq9r_0(receiver); }, null); } function parseCredentialUsernameUseCase$factory_2() { return getPropertyCallableRef('parseCredentialUsernameUseCase', 1, KProperty1, function (receiver) { return _get_parseCredentialUsernameUseCase__8m48wk_0(receiver); }, null); } function daysUntil_0(_this__u8e3s4, other) { return daysUntil(Companion_getInstance_6().mmh(_this__u8e3s4.wfl_1), Companion_getInstance_6().mmh(other.wfl_1), Companion_getInstance_10().emi()); } function Companion_173() { Companion_instance_221 = this; this.kyl_1 = 'ConversationList'; this.lyl_1 = 'ConversationListHome'; this.myl_1 = listOf(['ConversationList', 'ConversationListHome']); } var Companion_instance_221; function Companion_getInstance_191() { if (Companion_instance_221 == null) new Companion_173(); return Companion_instance_221; } function ConversationListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().g7f().cfl(toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1), this$0.nqo()); }; } function ConversationListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.lqx(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function ConversationListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_191(); destinationName = destinationName === VOID ? 'ConversationList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ConversationListUiState(), destinationName); var tmp = this; tmp.nym_1 = ConversationListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.conversationlist.ConversationListViewModel.' call // Inline function 'kotlin.collections.associateWith' call var this_1 = values(); var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(this_1.length), 16)); // Inline function 'kotlin.collections.associateWithTo' call var inductionVariable = 0; var last = this_1.length; while (inductionVariable < last) { var element = this_1[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.viewmodel.message.conversationlist.ConversationListViewModel..' call var tmp$ret$0 = this.vqo().soj(get_dayStringResource(element)); result.s(element, tmp$ret$0); } var tmp1_conversations = this.nym_1; var nextValue = prevValue.tym(tmp1_conversations, VOID, VOID, VOID, result); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.conversationlist.ConversationListViewModel.' call var tmp0_searchState = this.zqx(); var tmp1_title = this.hqy(strings_getInstance().anj_1, strings_getInstance().xnl_1); var tmp_0 = this.vqo().soj(strings_getInstance().bnj_1); var tmp_1 = FabIcon_ADD_getInstance(); var tmp2_fabState = new FabUiState(true, tmp_0, tmp_1, ConversationListViewModel$onClickAdd$ref(this)); var nextValue_0 = prevValue_0.hq7(tmp2_fabState, VOID, tmp1_title, true, VOID, VOID, VOID, tmp0_searchState); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ConversationListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(ConversationListViewModel).lqx = function () { Companion_getInstance_205(); var tmp = to('goToOnPersonSelected', 'MessageList'); Companion_getInstance_117(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().uqk_1); Companion_getInstance_205(); var tmp_1 = to('excludeAlreadySelectedList', this.nqo().toString()); Companion_getInstance_205(); this.xqn_1.tp6('People', mapOf([tmp, tmp_0, tmp_1, to('popUpToOnPersonSelected', 'People')])); }; protoOf(ConversationListViewModel).uym = function (entry) { Companion_getInstance_117(); var tmp0_safe_receiver = entry.yfm_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1; this.xqn_1.tp6('MessageList', mapOf_0(to('personUid', (tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs).toString()))); }; function ConversationListUiState$_init_$lambda_uo1nhr() { return new EmptyPagingSource(); } function ConversationListUiState(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) { var tmp; if (conversations === VOID) { tmp = ConversationListUiState$_init_$lambda_uo1nhr; } else { tmp = conversations; } conversations = tmp; sortOptions = sortOptions === VOID ? emptyList() : sortOptions; showAddItem = showAddItem === VOID ? false : showAddItem; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.oym_1 = conversations; this.pym_1 = sortOptions; this.qym_1 = showAddItem; this.rym_1 = localDateTimeNow; this.sym_1 = dayOfWeekStrings; } protoOf(ConversationListUiState).vym = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) { return new ConversationListUiState(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).tym = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings, $super) { conversations = conversations === VOID ? this.oym_1 : conversations; sortOptions = sortOptions === VOID ? this.pym_1 : sortOptions; showAddItem = showAddItem === VOID ? this.qym_1 : showAddItem; localDateTimeNow = localDateTimeNow === VOID ? this.rym_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.sym_1 : dayOfWeekStrings; return $super === VOID ? this.vym(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) : $super.vym.call(this, conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).toString = function () { return 'ConversationListUiState(conversations=' + this.oym_1 + ', sortOptions=' + this.pym_1 + ', showAddItem=' + this.qym_1 + ', localDateTimeNow=' + this.rym_1 + ', dayOfWeekStrings=' + this.sym_1 + ')'; }; protoOf(ConversationListUiState).hashCode = function () { var result = hashCode(this.oym_1); result = imul(result, 31) + hashCode(this.pym_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qym_1) | 0; result = imul(result, 31) + this.rym_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.sym_1) | 0; return result; }; protoOf(ConversationListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ConversationListUiState)) return false; var tmp0_other_with_cast = other instanceof ConversationListUiState ? other : THROW_CCE(); if (!equals(this.oym_1, tmp0_other_with_cast.oym_1)) return false; if (!equals(this.pym_1, tmp0_other_with_cast.pym_1)) return false; if (!(this.qym_1 === tmp0_other_with_cast.qym_1)) return false; if (!this.rym_1.equals(tmp0_other_with_cast.rym_1)) return false; if (!equals(this.sym_1, tmp0_other_with_cast.sym_1)) return false; return true; }; function MessageListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.eyn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda$slambda).lon = function (it, $completion) { var tmp = this.mon(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(MessageListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lon((p1 == null ? true : p1 instanceof PersonNames) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.eyn_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.fyn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag9_1; var tmp_0 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_safe_receiver = this.fyn_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.bg9_1; var nextValue = prevValue.hq7(VOID, VOID, tmp_0 + ' ' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(MessageListViewModel$slambda$slambda$slambda).mon = function (it, completion) { var i = new MessageListViewModel$slambda$slambda$slambda(this.eyn_1, completion); i.fyn_1 = it; return i; }; function MessageListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new MessageListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.lon(it, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$slambda$slambda(this$0, resultContinuation) { this.oyn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(MessageListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(MessageListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.oyn_1.rqo().o7d().rg4(this.oyn_1.pyo_1); var tmp_1 = MessageListViewModel$slambda$slambda$slambda_0(this.oyn_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_32(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(MessageListViewModel$slambda$slambda).m78 = function (completion) { return new MessageListViewModel$slambda$slambda(this.oyn_1, completion); }; function MessageListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new MessageListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function _get_ustadAccountManager__el9prc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qyo_1; ustadAccountManager$factory_2(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ryo_1; showSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.syo_1; dismissSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tyo_1; openExternalLinkUseCase$factory_4(); return this_0.t2(); } function Companion_174() { this.vyo_1 = 'MessageList'; } var Companion_instance_222; function Companion_getInstance_192() { return Companion_instance_222; } function sam$kotlinx_coroutines_flow_FlowCollector$0_32(function_0) { this.wyo_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_32).u1d = function (value, $completion) { return this.wyo_1(value, $completion); }; function MessageListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().g7f().bfl(this$0.nqo(), this$0.pyo_1); }; } function MessageListViewModel$slambda(this$0, resultContinuation) { this.fyp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(MessageListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.fyp_1.qqw_1, MessageListViewModel$slambda$slambda_0(this.fyp_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(MessageListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new MessageListViewModel$slambda(this.fyp_1, completion); i.gyp_1 = $this$launch; return i; }; function MessageListViewModel$slambda_0(this$0, resultContinuation) { var i = new MessageListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$onWarningDismiss$slambda(this$0, resultContinuation) { this.pyp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$onWarningDismiss$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(MessageListViewModel$onWarningDismiss$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$onWarningDismiss$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; _get_dismissSocialWarningUseCase__st8mv5_0(this.pyp_1).yp1(toString_0(_get_ustadAccountManager__el9prc_0(this.pyp_1).aoa().unu_1.h96_1)); l$ret$1: do { var this_0 = this.pyp_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xyp(VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(MessageListViewModel$onWarningDismiss$slambda).w1m = function ($this$launch, completion) { var i = new MessageListViewModel$onWarningDismiss$slambda(this.pyp_1, completion); i.qyp_1 = $this$launch; return i; }; function MessageListViewModel$onWarningDismiss$slambda_0(this$0, resultContinuation) { var i = new MessageListViewModel$onWarningDismiss$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$onClickSend$slambda(this$0, resultContinuation) { this.gyq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$onClickSend$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(MessageListViewModel$onClickSend$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$onClickSend$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.gyq_1.rqo().g7f(); var tmp0_messageSenderPersonUid = this.gyq_1.nqo(); var this_0 = this.gyq_1.qqw_1.t2().typ_1; var tmp1_messageText = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var tmp2_messageToPersonUid = this.gyq_1.pyo_1; var tmp3_messageTimestamp = systemTimeInMillis(); suspendResult = tmp_0.dfl(new Message(VOID, tmp0_messageSenderPersonUid, tmp2_messageToPersonUid, tmp1_messageText, tmp3_messageTimestamp), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_1 = this.gyq_1.qqw_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.xyp(VOID, VOID, ''); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(MessageListViewModel$onClickSend$slambda).w1m = function ($this$launch, completion) { var i = new MessageListViewModel$onClickSend$slambda(this.gyq_1, completion); i.hyq_1 = $this$launch; return i; }; function MessageListViewModel$onClickSend$slambda_0(this$0, resultContinuation) { var i = new MessageListViewModel$onClickSend$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function MessageListViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'MessageList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new MessageListUiState(), destinationName); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.pyo_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.qyo_1 = Instance(di, tmp$ret$0, null).b5d(this, ustadAccountManager$factory_1()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(ShowSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); tmp_2.ryo_1 = Instance(di, tmp$ret$2, null).b5d(this, showSocialWarningUseCase$factory_1()); var tmp_4 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(DismissSocialWarningUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.syo_1 = Instance(di, tmp$ret$4, null).b5d(this, dismissSocialWarningUseCase$factory_1()); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.tyo_1 = Instance(di, tmp$ret$6, null).b5d(this, openExternalLinkUseCase$factory_3()); var tmp_8 = this; tmp_8.uyo_1 = MessageListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, true, true, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqw_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.' call // Inline function 'kotlin.collections.associateWith' call var this_2 = values(); var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(this_2.length), 16)); // Inline function 'kotlin.collections.associateWithTo' call var inductionVariable = 0; var last = this_2.length; while (inductionVariable < last) { var element = this_2[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel..' call var tmp$ret$10 = this.vqo().soj(get_dayStringResource(element)); result.s(element, tmp$ret$10); } var tmp1_messages = this.uyo_1; var tmp2_activePersonUid = this.nqo(); var tmp3_showSocialWarning = _get_showSocialWarningUseCase__ft8jc6_0(this).wp9(toString_0(_get_ustadAccountManager__el9prc_0(this).aoa().unu_1.h96_1)); var nextValue_0 = prevValue_0.xyp(tmp1_messages, tmp2_activePersonUid, VOID, result, VOID, tmp3_showSocialWarning); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_9 = this.mqo(); launch(tmp_9, VOID, VOID, MessageListViewModel$slambda_0(this, null)); } protoOf(MessageListViewModel).gtx = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, MessageListViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(MessageListViewModel).kqx = function (searchText) { // Inline function 'kotlin.TODO' call var reason = 'Not yet implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; protoOf(MessageListViewModel).lqx = function () { }; protoOf(MessageListViewModel).iyq = function (text) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.onChangeNewMessageText.' call var nextValue = prevValue.xyp(VOID, VOID, text); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(MessageListViewModel).ast = function () { var tmp = this.mqo(); launch(tmp, VOID, VOID, MessageListViewModel$onClickSend$slambda_0(this, null)); }; function MessageListUiState$_init_$lambda_mkfto3() { return new EmptyPagingSource(); } function MessageListUiState(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) { var tmp; if (messages === VOID) { tmp = MessageListUiState$_init_$lambda_mkfto3; } else { tmp = messages; } messages = tmp; activePersonUid = activePersonUid === VOID ? new Long(0, 0) : activePersonUid; newMessageText = newMessageText === VOID ? '' : newMessageText; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.fme(), Companion_getInstance_10().emi()) : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? true : showSocialWarning; this.ryp_1 = messages; this.syp_1 = activePersonUid; this.typ_1 = newMessageText; this.uyp_1 = dayOfWeekStrings; this.vyp_1 = localDateTimeNow; this.wyp_1 = showSocialWarning; } protoOf(MessageListUiState).jyq = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) { return new MessageListUiState(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).xyp = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning, $super) { messages = messages === VOID ? this.ryp_1 : messages; activePersonUid = activePersonUid === VOID ? this.syp_1 : activePersonUid; newMessageText = newMessageText === VOID ? this.typ_1 : newMessageText; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.uyp_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.vyp_1 : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? this.wyp_1 : showSocialWarning; return $super === VOID ? this.jyq(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) : $super.jyq.call(this, messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).toString = function () { return 'MessageListUiState(messages=' + this.ryp_1 + ', activePersonUid=' + this.syp_1.toString() + ', newMessageText=' + this.typ_1 + ', dayOfWeekStrings=' + this.uyp_1 + ', localDateTimeNow=' + this.vyp_1 + ', showSocialWarning=' + this.wyp_1 + ')'; }; protoOf(MessageListUiState).hashCode = function () { var result = hashCode(this.ryp_1); result = imul(result, 31) + this.syp_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.typ_1) | 0; result = imul(result, 31) + hashCode(this.uyp_1) | 0; result = imul(result, 31) + this.vyp_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.wyp_1) | 0; return result; }; protoOf(MessageListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof MessageListUiState)) return false; var tmp0_other_with_cast = other instanceof MessageListUiState ? other : THROW_CCE(); if (!equals(this.ryp_1, tmp0_other_with_cast.ryp_1)) return false; if (!this.syp_1.equals(tmp0_other_with_cast.syp_1)) return false; if (!(this.typ_1 === tmp0_other_with_cast.typ_1)) return false; if (!equals(this.uyp_1, tmp0_other_with_cast.uyp_1)) return false; if (!this.vyp_1.equals(tmp0_other_with_cast.vyp_1)) return false; if (!(this.wyp_1 === tmp0_other_with_cast.wyp_1)) return false; return true; }; function ustadAccountManager$factory_1() { return getPropertyCallableRef('ustadAccountManager', 1, KProperty1, function (receiver) { return _get_ustadAccountManager__el9prc_0(receiver); }, null); } function showSocialWarningUseCase$factory_1() { return getPropertyCallableRef('showSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_showSocialWarningUseCase__ft8jc6_0(receiver); }, null); } function dismissSocialWarningUseCase$factory_1() { return getPropertyCallableRef('dismissSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_dismissSocialWarningUseCase__st8mv5_0(receiver); }, null); } function openExternalLinkUseCase$factory_3() { return getPropertyCallableRef('openExternalLinkUseCase', 1, KProperty1, function (receiver) { return _get_openExternalLinkUseCase__ku5z07_1(receiver); }, null); } function ustadAccountManager$factory_2() { return getPropertyCallableRef('ustadAccountManager', 1, KProperty1, function (receiver) { return _get_ustadAccountManager__el9prc_0(receiver); }, null); } function showSocialWarningUseCase$factory_2() { return getPropertyCallableRef('showSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_showSocialWarningUseCase__ft8jc6_0(receiver); }, null); } function dismissSocialWarningUseCase$factory_2() { return getPropertyCallableRef('dismissSocialWarningUseCase', 1, KProperty1, function (receiver) { return _get_dismissSocialWarningUseCase__st8mv5_0(receiver); }, null); } function openExternalLinkUseCase$factory_4() { return getPropertyCallableRef('openExternalLinkUseCase', 1, KProperty1, function (receiver) { return _get_openExternalLinkUseCase__ku5z07_1(receiver); }, null); } function TitleAndLangCode(title, langCode) { this.kyq_1 = title; this.lyq_1 = langCode; } protoOf(TitleAndLangCode).toString = function () { return 'TitleAndLangCode(title=' + this.kyq_1 + ', langCode=' + this.lyq_1 + ')'; }; protoOf(TitleAndLangCode).hashCode = function () { var result = getStringHashCode(this.kyq_1); result = imul(result, 31) + getStringHashCode(this.lyq_1) | 0; return result; }; protoOf(TitleAndLangCode).equals = function (other) { if (this === other) return true; if (!(other instanceof TitleAndLangCode)) return false; var tmp0_other_with_cast = other instanceof TitleAndLangCode ? other : THROW_CCE(); if (!(this.kyq_1 === tmp0_other_with_cast.kyq_1)) return false; if (!(this.lyq_1 === tmp0_other_with_cast.lyq_1)) return false; return true; }; function _get_statementRecorder__l4o9jw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.syf_1; statementRecorder$factory(); return this_0.t2(); } function AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda$lambda(this$0) { return function () { var titleAndLangCodeVal = this$0.oye(); var tmp = this$0.ryf_1.wjz_1; var tmp_0; if (!(titleAndLangCodeVal == null)) { tmp_0 = mapOf_0(to(titleAndLangCodeVal.lyq_1, titleAndLangCodeVal.kyq_1)); } else { tmp_0 = null; } return new XapiActivityStatementObject(VOID, tmp, new XapiActivity(tmp_0)); }; } function AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda(this$0) { return function () { var tmp = this$0.nqp(this$0.qyf_1); var tmp_0 = this$0.mqo(); return this$0.pyf_1.iq4(tmp, tmp_0, AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda$lambda(this$0)); }; } function AbstractNonInteractiveContentViewModel(di, savedStateHandle, destName) { UstadViewModel.call(this, di, savedStateHandle, destName); var tmp = this; // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(onActiveLearningSpace(di)).g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp.pyf_1 = tmp_0.e58(tmp$ret$0, null); var tmp_2 = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.qyf_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.ryf_1 = this.nqp(this.qyf_1); var tmp_3 = this; tmp_3.syf_1 = lazy_0(AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda(this)); } protoOf(AbstractNonInteractiveContentViewModel).bq4 = function (oneCompletionStatementOnly) { _get_statementRecorder__l4o9jw(this).bq4(oneCompletionStatementOnly); }; protoOf(AbstractNonInteractiveContentViewModel).tyf = function (oneCompletionStatementOnly, $super) { oneCompletionStatementOnly = oneCompletionStatementOnly === VOID ? false : oneCompletionStatementOnly; var tmp; if ($super === VOID) { this.bq4(oneCompletionStatementOnly); tmp = Unit_instance; } else { tmp = $super.bq4.call(this, oneCompletionStatementOnly); } return tmp; }; protoOf(AbstractNonInteractiveContentViewModel).aq4 = function (progress) { _get_statementRecorder__l4o9jw(this).aq4(progress); }; protoOf(AbstractNonInteractiveContentViewModel).nq3 = function (active) { _get_statementRecorder__l4o9jw(this).nq3(active); }; protoOf(AbstractNonInteractiveContentViewModel).bm8 = function () { _get_statementRecorder__l4o9jw(this).bm8(); protoOf(UstadViewModel).bm8.call(this); }; protoOf(AbstractNonInteractiveContentViewModel).dq4 = function () { _get_statementRecorder__l4o9jw(this).dq4(); }; function statementRecorder$factory() { return getPropertyCallableRef('statementRecorder', 1, KProperty1, function (receiver) { return _get_statementRecorder__l4o9jw(receiver); }, null); } function ParentalConsentManagementViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.uyq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).wyq = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).ie = function (p1, $completion) { return this.wyq(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.vyq_1.y7e().wgs(this.uyq_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_safe_receiver = suspendResult; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { var tmp_1; var tmp0_safe_receiver_0 = tmp0_safe_receiver.egu_1; var tmp_2; if (tmp0_safe_receiver_0 == null) { tmp_2 = null; } else { tmp_2 = !(!tmp0_safe_receiver_0.fg8_1.equals(new Long(0, 0)) ? !tmp0_safe_receiver_0.fg8_1.equals(this.uyq_1.nqo()) : false); } var tmp1_elvis_lhs = tmp_2; if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) { tmp_1 = tmp0_safe_receiver; } else { tmp_1 = null; } tmp_0 = tmp_1; } return tmp_0; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).enz = function (db, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda(this.uyq_1, completion); i.vyq_1 = db; return i; }; function ParentalConsentManagementViewModel$lambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.wyq(db, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).fyr = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).n78 = function ($completion) { return this.fyr($completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).m78 = function (completion) { return new ParentalConsentManagementViewModel$lambda$slambda$slambda_1(completion); }; function ParentalConsentManagementViewModel$lambda$slambda$slambda_2(resultContinuation) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.fyr($completion); }; l.$arity = 0; return l; } function ParentalConsentManagementViewModel$lambda$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.dys_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel....' call var nextValue = prevValue.lys(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_getLocaleForSiteTermsUseCase__hxw5id($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fys_1; getLocaleForSiteTermsUseCase$factory_0(); return this_0.t2(); } function updateStatus($this, status) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = $this.dys_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.updateStatus.' call var tmp1_safe_receiver = prevValue.gys_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.gys_1.egu_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = shallowCopy_11(tmp0_safe_receiver, ParentalConsentManagementViewModel$updateStatus$lambda(status, $this)); } tmp = tmp1_safe_receiver.rks(tmp_0); } var nextValue = prevValue.lys(tmp); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newState = tmp$ret$1; var tmp0_safe_receiver_0 = newState.gys_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.egu_1; if (tmp1_safe_receiver_0 == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.updateStatus.' call var tmp_1 = $this.mqo(); launch(tmp_1, VOID, VOID, ParentalConsentManagementViewModel$updateStatus$slambda_0($this, tmp1_safe_receiver_0, null)); } $this.tqo().wq7(new Snack($this.vqo().soj(strings_getInstance().gng_1))); } function Companion_175() { this.mys_1 = 'ParentalConsentManagement'; } var Companion_instance_223; function Companion_getInstance_193() { return Companion_instance_223; } function ParentalConsentManagementViewModel$lambda$slambda(this$0, resultContinuation) { this.vys_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_45.o4r(); var tmp_1 = ParentalConsentManagementViewModel$lambda$slambda$slambda_0(this.vys_1, null); var tmp_2 = ParentalConsentManagementViewModel$lambda$slambda$slambda_2(null); suspendResult = this.vys_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, ParentalConsentManagementViewModel$lambda$slambda$lambda(this.vys_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.vys_1.dys_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lys(VOID, VOID, VOID, !(prevValue.gys_1 == null)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda).w1m = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda(this.vys_1, completion); i.wys_1 = $this$launch; return i; }; function ParentalConsentManagementViewModel$lambda$slambda_0(this$0, resultContinuation) { var i = new ParentalConsentManagementViewModel$lambda$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda_1(this$0, resultContinuation) { this.fyt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.hyt_1 = this.fyt_1.rqo().x7e(); this.id_1 = 1; suspendResult = _get_getLocaleForSiteTermsUseCase__hxw5id(this.fyt_1).hpn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.iyt_1 = suspendResult; this.id_1 = 2; suspendResult = this.hyt_1.lhs(this.iyt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var terms = suspendResult; l$ret$1: do { var this_0 = this.fyt_1.dys_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lys(VOID, VOID, terms); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).w1m = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda_1(this.fyt_1, completion); i.gyt_1 = $this$launch; return i; }; function ParentalConsentManagementViewModel$lambda$slambda_2(this$0, resultContinuation) { var i = new ParentalConsentManagementViewModel$lambda$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel..' call var nextValue = prevValue.hq7(VOID, VOID, this$0.vqo().soj(strings_getInstance().xnb_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.mqo(); launch(tmp, VOID, VOID, ParentalConsentManagementViewModel$lambda$slambda_0(this$0, null)); var tmp_0 = this$0.mqo(); launch(tmp_0, VOID, VOID, ParentalConsentManagementViewModel$lambda$slambda_2(this$0, null)); return Unit_instance; }; } function ParentalConsentManagementViewModel$updateStatus$lambda($status, this$0) { return function ($this$shallowCopy) { $this$shallowCopy.lg8_1 = $status; $this$shallowCopy.fg8_1 = this$0.nqo(); $this$shallowCopy.mg8_1 = systemTimeInMillis(); return Unit_instance; }; } function ParentalConsentManagementViewModel$updateStatus$slambda(this$0, $personParentJoin, resultContinuation) { this.ryt_1 = this$0; this.syt_1 = $personParentJoin; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.ryt_1.rqo().y7e().xgs(this.syt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).w1m = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$updateStatus$slambda(this.ryt_1, this.syt_1, completion); i.tyt_1 = $this$launch; return i; }; function ParentalConsentManagementViewModel$updateStatus$slambda_0(this$0, $personParentJoin, resultContinuation) { var i = new ParentalConsentManagementViewModel$updateStatus$slambda(this$0, $personParentJoin, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ParentalConsentManagement'); this.dys_1 = MutableStateFlow(new ParentalConsentManagementUiState()); this.eys_1 = asStateFlow(this.dys_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().roa(); var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.i57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.fys_1 = Instance(this_0, tmp$ret$3, null).b5d(this, getLocaleForSiteTermsUseCase$factory()); Companion_getInstance_126(); var tmp_3 = mapOf_0(to('entityUid', this.dqu_1.toString())); this.kqp(true, tmp_3, ParentalConsentManagementViewModel$lambda(this)); } protoOf(ParentalConsentManagementViewModel).uyt = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.dys_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.gys_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rks(personParentJoin); var tmp1_safe_receiver = prevValue.gys_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.egu_1; var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hg8_1; var nextValue = prevValue.lys(tmp, this.gqv(tmp_0, personParentJoin == null ? null : personParentJoin.hg8_1, prevValue.hys_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ParentalConsentManagementViewModel).vyt = function () { var tmp0_safe_receiver = this.dys_1.t2().gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hg8_1; var tmp; if (tmp2_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onClickConsent.' call tmp = listOf([1, 2, 4]).a1(tmp2_safe_receiver); } if (!(tmp === true)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.dys_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onClickConsent.' call var nextValue = prevValue.lys(VOID, this.vqo().soj(strings_getInstance().cmo_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } updateStatus(this, 1); }; protoOf(ParentalConsentManagementViewModel).wyt = function () { updateStatus(this, 2); }; protoOf(ParentalConsentManagementViewModel).xyt = function () { var tmp0_safe_receiver = this.dys_1.t2().gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lg8_1; var tmp; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp2_elvis_lhs; } var currentStatus = tmp; var tmp_0; if (currentStatus === 2) { tmp_0 = 1; } else { tmp_0 = 2; } updateStatus(this, tmp_0); }; function ParentalConsentManagementUiState(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) { parentJoinAndMinor = parentJoinAndMinor === VOID ? null : parentJoinAndMinor; relationshipError = relationshipError === VOID ? null : relationshipError; siteTerms = siteTerms === VOID ? null : siteTerms; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; appName = appName === VOID ? 'Ustad Mobile' : appName; this.gys_1 = parentJoinAndMinor; this.hys_1 = relationshipError; this.iys_1 = siteTerms; this.jys_1 = fieldsEnabled; this.kys_1 = appName; } protoOf(ParentalConsentManagementUiState).yyt = function () { var tmp0_safe_receiver = this.gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fg8_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).zyt = function () { var tmp0_safe_receiver = this.gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fg8_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).ayu = function () { var tmp0_safe_receiver = this.gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fg8_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).byu = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementUiState..' call var it = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fg8_1; return !(it == null) ? !equals(it, new Long(0, 0)) : false; }; protoOf(ParentalConsentManagementUiState).cyu = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementUiState..' call var it = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lg8_1; return !(it == null) ? !(it === 0) : false; }; protoOf(ParentalConsentManagementUiState).dyu = function () { var tmp0_safe_receiver = this.gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lg8_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().unb_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().vnb_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).eyu = function () { var tmp0_safe_receiver = this.gys_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egu_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lg8_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().snb_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().tnb_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).fyu = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) { return new ParentalConsentManagementUiState(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).lys = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName, $super) { parentJoinAndMinor = parentJoinAndMinor === VOID ? this.gys_1 : parentJoinAndMinor; relationshipError = relationshipError === VOID ? this.hys_1 : relationshipError; siteTerms = siteTerms === VOID ? this.iys_1 : siteTerms; fieldsEnabled = fieldsEnabled === VOID ? this.jys_1 : fieldsEnabled; appName = appName === VOID ? this.kys_1 : appName; return $super === VOID ? this.fyu(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) : $super.fyu.call(this, parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).toString = function () { return 'ParentalConsentManagementUiState(parentJoinAndMinor=' + this.gys_1 + ', relationshipError=' + this.hys_1 + ', siteTerms=' + this.iys_1 + ', fieldsEnabled=' + this.jys_1 + ', appName=' + this.kys_1 + ')'; }; protoOf(ParentalConsentManagementUiState).hashCode = function () { var result = this.gys_1 == null ? 0 : this.gys_1.hashCode(); result = imul(result, 31) + (this.hys_1 == null ? 0 : getStringHashCode(this.hys_1)) | 0; result = imul(result, 31) + (this.iys_1 == null ? 0 : hashCode(this.iys_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.jys_1) | 0; result = imul(result, 31) + getStringHashCode(this.kys_1) | 0; return result; }; protoOf(ParentalConsentManagementUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ParentalConsentManagementUiState)) return false; var tmp0_other_with_cast = other instanceof ParentalConsentManagementUiState ? other : THROW_CCE(); if (!equals(this.gys_1, tmp0_other_with_cast.gys_1)) return false; if (!(this.hys_1 == tmp0_other_with_cast.hys_1)) return false; if (!equals(this.iys_1, tmp0_other_with_cast.iys_1)) return false; if (!(this.jys_1 === tmp0_other_with_cast.jys_1)) return false; if (!(this.kys_1 === tmp0_other_with_cast.kys_1)) return false; return true; }; function getLocaleForSiteTermsUseCase$factory() { return getPropertyCallableRef('getLocaleForSiteTermsUseCase', 1, KProperty1, function (receiver) { return _get_getLocaleForSiteTermsUseCase__hxw5id(receiver); }, null); } function getLocaleForSiteTermsUseCase$factory_0() { return getPropertyCallableRef('getLocaleForSiteTermsUseCase', 1, KProperty1, function (receiver) { return _get_getLocaleForSiteTermsUseCase__hxw5id(receiver); }, null); } function _get_httpClient__2ty1zc_4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iyv_1; httpClient$factory_10(); return this_0.t2(); } function Companion_176() { this.jyv_1 = 'PdfContent'; } var Companion_instance_224; function Companion_getInstance_194() { return Companion_instance_224; } function PdfContentViewModel$slambda(this$0, resultContinuation) { this.syv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PdfContentViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PdfContentViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PdfContentViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; suspendResult = this.syv_1.rqo().j7f().gbq(this.syv_1.fyv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uyv_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.uyv_1 == null) { return Unit_instance; } else { tmp_1 = this.uyv_1; } tmp_0.vyv_1 = tmp_1; this.wyv_1 = ensureNotNull(this.vyv_1.qax_1); var tmp_2 = this; tmp_2.xyv_1 = this.syv_1.n4r(); var tmp_3 = this; tmp_3.yyv_1 = _get_httpClient__2ty1zc_4(this.syv_1); var tmp_4 = this; tmp_4.zyv_1 = this.wyv_1; var tmp_5 = this; tmp_5.ayw_1 = this.yyv_1; var tmp_6 = this; tmp_6.byw_1 = this.ayw_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.zyv_1); tmp_7.cyw_1 = this_0; this.cyw_1.x38_1 = Companion_getInstance().m2x_1; var tmp_8 = this; tmp_8.dyw_1 = this.byw_1; var tmp_9 = this; tmp_9.eyw_1 = this.cyw_1; this.id_1 = 2; suspendResult = (new HttpStatement(this.eyw_1, this.dyw_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.fyw_1 = suspendResult; this.id_1 = 3; suspendResult = bodyAsDecodedText(this.fyw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.gyw_1 = suspendResult; var tmp_10 = this; var this_1 = this.xyv_1.u45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_10.hyw_1 = this.xyv_1.t45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.gyw_1); var tmp_11 = this; var tmp1_elvis_lhs = this.vyv_1.oax_1; var tmp_12; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_12 = tmp1_elvis_lhs; } tmp_11.iyw_1 = tmp_12; this.jyw_1 = UrlKmp(this.wyv_1).pp2(this.iyw_1).toString(); this.kyw_1 = bodyDataUrlForUri(this.hyw_1, this.iyw_1); l$ret$1: do { var this_3 = this.syv_1.gyv_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.oyw(this.jyw_1, this.kyw_1); if (this_3.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 4; suspendResult = this.syv_1.rqo().w7d().sau(this.vyv_1.nax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var contentEntry = suspendResult; l$ret$3: do { var this_4 = this.syv_1.zqn_1; while (true) { var prevValue_0 = this_4.t2(); var tmp1_elvis_lhs_0 = contentEntry == null ? null : contentEntry.pav_1; var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp1_elvis_lhs_0 == null ? '' : tmp1_elvis_lhs_0); if (this_4.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PdfContentViewModel$slambda).w1m = function ($this$launch, completion) { var i = new PdfContentViewModel$slambda(this.syv_1, completion); i.tyv_1 = $this$launch; return i; }; function PdfContentViewModel$slambda_0(this$0, resultContinuation) { var i = new PdfContentViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PdfContentViewModel(di, savedStateHandle) { AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'PdfContent'); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.fyv_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.gyv_1 = MutableStateFlow(new PdfContentUiState()); this.hyv_1 = asStateFlow(this.gyv_1); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.iyv_1 = Instance(di, tmp$ret$0, null).b5d(this, httpClient$factory_9()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.pdfcontent.PdfContentViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, PdfContentViewModel$slambda_0(this, null)); } protoOf(PdfContentViewModel).oye = function () { var tmp0_safe_receiver = this.gyv_1.t2().nyw_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.pdfcontent.PdfContentViewModel..' call var titleVal = tmp0_safe_receiver.pav_1; var langVal = 'en'; var tmp_0; if (!(titleVal == null) ? !(langVal == null) : false) { tmp_0 = new TitleAndLangCode(titleVal, langVal); } else { tmp_0 = null; } tmp = tmp_0; } return tmp; }; function PdfContentUiState(pdfUrl, dataUrl, contentEntry) { pdfUrl = pdfUrl === VOID ? null : pdfUrl; dataUrl = dataUrl === VOID ? null : dataUrl; contentEntry = contentEntry === VOID ? null : contentEntry; this.lyw_1 = pdfUrl; this.myw_1 = dataUrl; this.nyw_1 = contentEntry; } protoOf(PdfContentUiState).pyw = function (pdfUrl, dataUrl, contentEntry) { return new PdfContentUiState(pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).oyw = function (pdfUrl, dataUrl, contentEntry, $super) { pdfUrl = pdfUrl === VOID ? this.lyw_1 : pdfUrl; dataUrl = dataUrl === VOID ? this.myw_1 : dataUrl; contentEntry = contentEntry === VOID ? this.nyw_1 : contentEntry; return $super === VOID ? this.pyw(pdfUrl, dataUrl, contentEntry) : $super.pyw.call(this, pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).toString = function () { return 'PdfContentUiState(pdfUrl=' + this.lyw_1 + ', dataUrl=' + this.myw_1 + ', contentEntry=' + this.nyw_1 + ')'; }; protoOf(PdfContentUiState).hashCode = function () { var result = this.lyw_1 == null ? 0 : getStringHashCode(this.lyw_1); result = imul(result, 31) + (this.myw_1 == null ? 0 : getStringHashCode(this.myw_1)) | 0; result = imul(result, 31) + (this.nyw_1 == null ? 0 : this.nyw_1.hashCode()) | 0; return result; }; protoOf(PdfContentUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof PdfContentUiState)) return false; var tmp0_other_with_cast = other instanceof PdfContentUiState ? other : THROW_CCE(); if (!(this.lyw_1 == tmp0_other_with_cast.lyw_1)) return false; if (!(this.myw_1 == tmp0_other_with_cast.myw_1)) return false; if (!equals(this.nyw_1, tmp0_other_with_cast.nyw_1)) return false; return true; }; function httpClient$factory_9() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_4(receiver); }, null); } function httpClient$factory_10() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_4(receiver); }, null); } function PersonViewModelConstants() { this.qyw_1 = 'goToOnPersonSelected'; this.ryw_1 = 'popUpToOnPersonSelected'; } var PersonViewModelConstants_instance; function PersonViewModelConstants_getInstance() { return PersonViewModelConstants_instance; } function PersonAccountEditViewModel$slambda$slambda(this$0, resultContinuation) { this.ayx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda).dyx = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonAccountEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.dyx(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.byx_1.o7d().ng4(this.ayx_1.dqu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cyx_1 = suspendResult; this.id_1 = 2; var tmp_0 = this.byx_1.q7f(); var tmp_1 = this.ayx_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.vi0(tmp_1, new Long(131072, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var hasResetPermission = suspendResult; var tmp_2; if (this.cyx_1 == null) { tmp_2 = null; } else { var tmp_3 = this.cyx_1.h96_1 == null ? 1 : hasResetPermission ? 2 : 3; var tmp_4 = this.cyx_1.g96_1; var tmp0_elvis_lhs = this.cyx_1.h96_1; tmp_2 = new PersonUsernameAndPasswordModel(tmp_3, tmp_4, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs, '', ''); } return tmp_2; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new PersonAccountEditViewModel$slambda$slambda(this.ayx_1, completion); i.byx_1 = db; return i; }; function PersonAccountEditViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new PersonAccountEditViewModel$slambda$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.dyx(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda_1).myx = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.myx($completion); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).m78 = function (completion) { return new PersonAccountEditViewModel$slambda$slambda_1(completion); }; function PersonAccountEditViewModel$slambda$slambda_2(resultContinuation) { var i = new PersonAccountEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.myx($completion); }; l.$arity = 0; return l; } function PersonAccountEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.kyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel...' call var nextValue = prevValue.wyy(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonAccountEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonAccountEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.fyz_1 = this$0; this.gyz_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = _get_authManager__mo6de4(this.fyz_1).znt(this.fyz_1.dqu_1, this.gyz_1.myz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; suspendResult = this.fyz_1.rqo().o7d().tg4(this.fyz_1.dqu_1, this.gyz_1.kyz_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var numChanges = suspendResult; Napier_getInstance().r5e('Updated username: ' + numChanges + ' changes'); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda$slambda(this.fyz_1, this.gyz_1, completion); i.hyz_1 = it; return i; }; function PersonAccountEditViewModel$onClickSave$slambda$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonAccountEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function _get_authManager__mo6de4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.myy_1; authManager$factory_0(); return this_0.t2(); } function _get_setPasswordUseCase__c0ja9b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nyy_1; setPasswordUseCase$factory_0(); return this_0.t2(); } function Companion_177() { this.nyz_1 = 'AccountEdit'; this.oyz_1 = 1; this.pyz_1 = 2; this.qyz_1 = 3; } var Companion_instance_225; function Companion_getInstance_195() { return Companion_instance_225; } function PersonAccountEditViewModel$slambda(this$0, resultContinuation) { this.zyz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonAccountEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (this.zyz_1.dqu_1.equals(this.zyz_1.nqo())) { var tmp_0 = this; tmp_0.bz0_1 = true; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var tmp_1 = this.az0_1.q7f(); var tmp_2 = this.zyz_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_1.vi0(tmp_2, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.bz0_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.bz0_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$slambda).enz = function (db, completion) { var i = new PersonAccountEditViewModel$slambda(this.zyz_1, completion); i.az0_1 = db; return i; }; function PersonAccountEditViewModel$slambda_0(this$0, resultContinuation) { var i = new PersonAccountEditViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda_1(this$0, resultContinuation) { this.kz0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonAccountEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_226.o4r(); var tmp_1 = PersonAccountEditViewModel$slambda$slambda_0(this.kz0_1, null); var tmp_2 = PersonAccountEditViewModel$slambda$slambda_2(null); suspendResult = this.kz0_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonAccountEditViewModel$slambda$lambda(this.kz0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.kz0_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.kz0_1.vqo().soj(strings_getInstance().on3_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, PersonAccountEditViewModel$onClickSave$ref(this.kz0_1)); var tmp1_loadingState = Companion_getInstance_98().pq7_1; var nextValue = prevValue.hq7(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.kz0_1.kyy_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.wyy(VOID, VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new PersonAccountEditViewModel$slambda_1(this.kz0_1, completion); i.lz0_1 = $this$launchIfHasPermission; return i; }; function PersonAccountEditViewModel$slambda_2(this$0, resultContinuation) { var i = new PersonAccountEditViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.uz0_1 = $commitDelay; this.vz0_1 = $entity; this.wz0_1 = $this; this.xz0_1 = $key; this.yz0_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.uz0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vz0_1 == null)) { this.id_1 = 2; suspendResult = this.wz0_1.bqp(this.wz0_1.vqn_1, this.xz0_1, this.yz0_1, this.vz0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new PersonAccountEditViewModel$onEntityChanged$slambda(this.uz0_1, this.vz0_1, this.wz0_1, this.xz0_1, this.yz0_1, completion); i.zz0_1 = $this$launch; return i; }; function PersonAccountEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new PersonAccountEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$onClickSave$slambda($entity, this$0, resultContinuation) { this.iz1_1 = $entity; this.jz1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 14; if (this.iz1_1.iyz_1 === 1) { var validationResult = this.jz1_1.oyy_1.wp9(this.iz1_1.kyz_1); this.jz1_1.xqo(Companion_getInstance_98().pq7_1); if (!validationResult.equals(Companion_getInstance_75().kpp_1)) { l$ret$1: do { var this_0 = this.jz1_1.kyy_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = validationResult.ppp_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = this.jz1_1.vqo().soj(tmp0_safe_receiver); } var tmp1_usernameError = tmp_0; var nextValue = prevValue.wyy(VOID, tmp1_usernameError, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } } if (isBlank(this.iz1_1.myz_1)) { l$ret$3: do { var this_1 = this.jz1_1.kyy_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.wyy(VOID, VOID, VOID, this.jz1_1.vqo().soj(strings_getInstance().cmo_1)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.iz1_1.iyz_1 === 3 ? isBlank(this.iz1_1.lyz_1) : false) if (this.jz1_1.kyy_1.t2().pu6()) { this.jz1_1.xqo(Companion_getInstance_98().pq7_1); l$ret$5: do { var this_2 = this.jz1_1.kyy_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.wyy(VOID, VOID, VOID, VOID, VOID, true); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); return Unit_instance; } if (this.iz1_1.iyz_1 === 1) { this.id_1 = 6; continue $sm; } else { this.id_1 = 1; continue $sm; } case 1: this.jd_1 = 4; this.jd_1 = 3; this.id_1 = 2; suspendResult = _get_setPasswordUseCase__c0ja9b(this.jz1_1).roi(this.jz1_1.nqo(), this.iz1_1.jyz_1, this.iz1_1.kyz_1, this.iz1_1.myz_1, this.iz1_1.iyz_1 === 3 ? this.iz1_1.lyz_1 : null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jz1_1.tqo().wq7(new Snack(this.jz1_1.vqo().soj(strings_getInstance().unm_1))); var tmp_1 = this; this.jz1_1.gqu(null); tmp_1.mz1_1 = Unit_instance; this.jd_1 = 14; this.id_1 = 5; continue $sm; case 3: this.jd_1 = 4; var tmp_2 = this.ld_1; if (tmp_2 instanceof Exception) { this.nz1_1 = this.ld_1; var tmp_3 = this; var tmp_4; var tmp_5 = this.nz1_1; if (tmp_5 instanceof UnauthorizedException) { l$ret$19: do { var this_3 = this.jz1_1.kyy_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.wyy(VOID, VOID, this.jz1_1.vqo().soj(strings_getInstance().gmj_1)); if (this_3.z1k(prevValue_2, nextValue_2)) { break l$ret$19; } } } while (false); tmp_4 = Unit_instance; } else { l$ret$21: do { var this_4 = this.jz1_1.kyy_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.wyy(VOID, VOID, VOID, VOID, this.nz1_1.message); if (this_4.z1k(prevValue_3, nextValue_3)) { break l$ret$21; } } } while (false); tmp_4 = Unit_instance; } tmp_3.mz1_1 = tmp_4; this.jd_1 = 14; this.id_1 = 5; continue $sm; } else { throw this.ld_1; } case 4: this.jd_1 = 14; this.oz1_1 = this.ld_1; this.jz1_1.xqo(Companion_getInstance_98().pq7_1); l$ret$23: do { var this_5 = this.jz1_1.kyy_1; while (true) { var prevValue_4 = this_5.t2(); var nextValue_4 = prevValue_4.wyy(VOID, VOID, VOID, VOID, VOID, true); if (this_5.z1k(prevValue_4, nextValue_4)) { break l$ret$23; } } } while (false); throw this.oz1_1; case 5: this.jd_1 = 14; this.jz1_1.xqo(Companion_getInstance_98().pq7_1); l$ret$25: do { var this_6 = this.jz1_1.kyy_1; while (true) { var prevValue_5 = this_6.t2(); var nextValue_5 = prevValue_5.wyy(VOID, VOID, VOID, VOID, VOID, true); if (this_6.z1k(prevValue_5, nextValue_5)) { break l$ret$25; } } } while (false); this.id_1 = 13; continue $sm; case 6: this.jd_1 = 11; this.jd_1 = 10; this.id_1 = 7; suspendResult = this.jz1_1.rqo().o7d().lg4(this.iz1_1.kyz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.pz1_1 = suspendResult; if (this.pz1_1 === 0) { this.id_1 = 8; var tmp_6 = this.jz1_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_6, VOID, PersonAccountEditViewModel$onClickSave$slambda$slambda_0(this.jz1_1, this.iz1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$7: do { var this_7 = this.jz1_1.kyy_1; while (true) { var prevValue_6 = this_7.t2(); var nextValue_6 = prevValue_6.wyy(VOID, this.jz1_1.vqo().soj(strings_getInstance().fn8_1)); if (this_7.z1k(prevValue_6, nextValue_6)) { break l$ret$7; } } } while (false); this.id_1 = 9; continue $sm; } case 8: this.jz1_1.gqu(null); this.id_1 = 9; continue $sm; case 9: this.lz1_1 = Unit_instance; this.jd_1 = 14; this.id_1 = 12; continue $sm; case 10: this.jd_1 = 11; var tmp_7 = this.ld_1; if (tmp_7 instanceof Exception) { var e = this.ld_1; var tmp_8 = this; l$ret$11: do { var this_8 = this.jz1_1.kyy_1; while (true) { var prevValue_7 = this_8.t2(); var nextValue_7 = prevValue_7.wyy(VOID, this.jz1_1.vqo().soj(strings_getInstance().hmj_1)); if (this_8.z1k(prevValue_7, nextValue_7)) { break l$ret$11; } } } while (false); tmp_8.lz1_1 = Unit_instance; this.jd_1 = 14; this.id_1 = 12; continue $sm; } else { throw this.ld_1; } case 11: this.jd_1 = 14; var t = this.ld_1; this.jz1_1.xqo(Companion_getInstance_98().pq7_1); l$ret$13: do { var this_9 = this.jz1_1.kyy_1; while (true) { var prevValue_8 = this_9.t2(); var nextValue_8 = prevValue_8.wyy(VOID, VOID, VOID, VOID, VOID, true); if (this_9.z1k(prevValue_8, nextValue_8)) { break l$ret$13; } } } while (false); throw t; case 12: this.jd_1 = 14; this.jz1_1.xqo(Companion_getInstance_98().pq7_1); l$ret$15: do { var this_10 = this.jz1_1.kyy_1; while (true) { var prevValue_9 = this_10.t2(); var nextValue_9 = prevValue_9.wyy(VOID, VOID, VOID, VOID, VOID, true); if (this_10.z1k(prevValue_9, nextValue_9)) { break l$ret$15; } } } while (false); this.id_1 = 13; continue $sm; case 13: return Unit_instance; case 14: throw this.ld_1; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 14) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda(this.iz1_1, this.jz1_1, completion); i.kz1_1 = $this$launch; return i; }; function PersonAccountEditViewModel$onClickSave$slambda_0($entity, this$0, resultContinuation) { var i = new PersonAccountEditViewModel$onClickSave$slambda($entity, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'AccountEdit'); this.kyy_1 = MutableStateFlow(new PersonAccountEditUiState()); this.lyy_1 = asStateFlow(this.kyy_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().roa(); var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.i57(tmp$ret$0, context); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(AuthManager), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp.myy_1 = Instance(this_0, tmp$ret$3, null).b5d(this, authManager$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = this.lqo().roa(); var trigger_0 = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_4 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); var tmp$ret$6 = tmp_4.i57(tmp$ret$5, context_0); var this_1 = On(this, tmp$ret$6, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(SetPasswordUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_3.nyy_1 = Instance(this_1, tmp$ret$8, null).b5d(this, setPasswordUseCase$factory()); this.oyy_1 = new ValidateUsernameUseCase(); this.pyy_1 = new FilterUsernameUseCase(); this.zqn_1.y1k(new AppUiState(VOID, Companion_getInstance_98().oq7_1)); var tmp_7 = PersonAccountEditViewModel$slambda_0(this, null); this.hqp(tmp_7, VOID, VOID, PersonAccountEditViewModel$slambda_2(this, null)); } protoOf(PersonAccountEditViewModel).qz1 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onEntityChanged.' call var tmp; var tmp_0 = entity == null ? null : entity.kyz_1; var tmp1_safe_receiver = this.kyy_1.t2().qyy_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kyz_1))) { tmp = entity == null ? null : entity.rz1(VOID, VOID, this.pyy_1.vpe(entity.kyz_1, '')); } else { tmp = entity; } var tmp_1 = tmp; var tmp_2; var tmp_3; if (!(prevValue.ryy_1 == null)) { var tmp3_safe_receiver = prevValue.qyy_1; var tmp_4 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.kyz_1; tmp_3 = tmp_4 == (entity == null ? null : entity.kyz_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.ryy_1; } else { tmp_2 = null; } var tmp_5 = tmp_2; var tmp_6; var tmp_7; if (!(prevValue.syy_1 == null)) { var tmp5_safe_receiver = prevValue.qyy_1; var tmp_8 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.lyz_1; tmp_7 = tmp_8 == (entity == null ? null : entity.lyz_1); } else { tmp_7 = false; } if (tmp_7) { tmp_6 = prevValue.syy_1; } else { tmp_6 = null; } var tmp_9 = tmp_6; var tmp_10; var tmp_11; if (!(prevValue.tyy_1 == null)) { var tmp7_safe_receiver = prevValue.qyy_1; var tmp_12 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.myz_1; tmp_11 = tmp_12 == (entity == null ? null : entity.myz_1); } else { tmp_11 = false; } if (tmp_11) { tmp_10 = prevValue.tyy_1; } else { tmp_10 = null; } var nextValue = prevValue.wyy(tmp_1, tmp_5, tmp_9, tmp_10); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_226.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp_13 = this; var tmp_14 = this.mqo(); tmp_13.cqu_1 = launch(tmp_14, VOID, VOID, PersonAccountEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonAccountEditViewModel).ysb = function () { if (this.yqo().equals(Companion_getInstance_98().oq7_1)) return Unit_instance; var tmp0_elvis_lhs = this.kyy_1.t2().qyy_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; this.xqo(Companion_getInstance_98().oq7_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onClickSave.' call var nextValue = prevValue.wyy(VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, PersonAccountEditViewModel$onClickSave$slambda_0(entity, this, null)); }; function PersonAccountEditUiState(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) { personAccount = personAccount === VOID ? new PersonUsernameAndPasswordModel() : personAccount; usernameError = usernameError === VOID ? null : usernameError; currentPasswordError = currentPasswordError === VOID ? null : currentPasswordError; newPasswordError = newPasswordError === VOID ? null : newPasswordError; errorMessage = errorMessage === VOID ? null : errorMessage; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.qyy_1 = personAccount; this.ryy_1 = usernameError; this.syy_1 = currentPasswordError; this.tyy_1 = newPasswordError; this.uyy_1 = errorMessage; this.vyy_1 = fieldsEnabled; } protoOf(PersonAccountEditUiState).sz1 = function () { var tmp0_safe_receiver = this.qyy_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iyz_1) === 1; }; protoOf(PersonAccountEditUiState).tz1 = function () { var tmp0_safe_receiver = this.qyy_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iyz_1) === 3; }; protoOf(PersonAccountEditUiState).pu6 = function () { return (!(this.ryy_1 == null) ? true : !(this.syy_1 == null)) ? true : !(this.tyy_1 == null); }; protoOf(PersonAccountEditUiState).uz1 = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) { return new PersonAccountEditUiState(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).wyy = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled, $super) { personAccount = personAccount === VOID ? this.qyy_1 : personAccount; usernameError = usernameError === VOID ? this.ryy_1 : usernameError; currentPasswordError = currentPasswordError === VOID ? this.syy_1 : currentPasswordError; newPasswordError = newPasswordError === VOID ? this.tyy_1 : newPasswordError; errorMessage = errorMessage === VOID ? this.uyy_1 : errorMessage; fieldsEnabled = fieldsEnabled === VOID ? this.vyy_1 : fieldsEnabled; return $super === VOID ? this.uz1(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) : $super.uz1.call(this, personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).toString = function () { return 'PersonAccountEditUiState(personAccount=' + this.qyy_1 + ', usernameError=' + this.ryy_1 + ', currentPasswordError=' + this.syy_1 + ', newPasswordError=' + this.tyy_1 + ', errorMessage=' + this.uyy_1 + ', fieldsEnabled=' + this.vyy_1 + ')'; }; protoOf(PersonAccountEditUiState).hashCode = function () { var result = this.qyy_1 == null ? 0 : this.qyy_1.hashCode(); result = imul(result, 31) + (this.ryy_1 == null ? 0 : getStringHashCode(this.ryy_1)) | 0; result = imul(result, 31) + (this.syy_1 == null ? 0 : getStringHashCode(this.syy_1)) | 0; result = imul(result, 31) + (this.tyy_1 == null ? 0 : getStringHashCode(this.tyy_1)) | 0; result = imul(result, 31) + (this.uyy_1 == null ? 0 : getStringHashCode(this.uyy_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.vyy_1) | 0; return result; }; protoOf(PersonAccountEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAccountEditUiState)) return false; var tmp0_other_with_cast = other instanceof PersonAccountEditUiState ? other : THROW_CCE(); if (!equals(this.qyy_1, tmp0_other_with_cast.qyy_1)) return false; if (!(this.ryy_1 == tmp0_other_with_cast.ryy_1)) return false; if (!(this.syy_1 == tmp0_other_with_cast.syy_1)) return false; if (!(this.tyy_1 == tmp0_other_with_cast.tyy_1)) return false; if (!(this.uyy_1 == tmp0_other_with_cast.uyy_1)) return false; if (!(this.vyy_1 === tmp0_other_with_cast.vyy_1)) return false; return true; }; function Companion_178() { } protoOf(Companion_178).o4r = function () { return $serializer_getInstance_76(); }; var Companion_instance_226; function Companion_getInstance_196() { return Companion_instance_226; } function $serializer_64() { $serializer_instance_64 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.accountedit.PersonUsernameAndPasswordModel', this, 5); tmp0_serialDesc.u4f('mode', true); tmp0_serialDesc.u4f('personUid', true); tmp0_serialDesc.u4f('username', true); tmp0_serialDesc.u4f('currentPassword', true); tmp0_serialDesc.u4f('newPassword', true); this.vz1_1 = tmp0_serialDesc; } protoOf($serializer_64).r44 = function () { return this.vz1_1; }; protoOf($serializer_64).l4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_64).t44 = function (decoder) { var tmp0_desc = this.vz1_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.j48(tmp0_desc); if (tmp9_input.y48()) { tmp4_local0 = tmp9_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.t48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.p48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.t48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.t48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.t48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.k48(tmp0_desc); return PersonUsernameAndPasswordModel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_64).wz1 = function (encoder, value) { var tmp0_desc = this.vz1_1; var tmp1_output = encoder.j48(tmp0_desc); if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.iyz_1 === 1)) { tmp1_output.s49(tmp0_desc, 0, value.iyz_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !value.jyz_1.equals(new Long(0, 0))) { tmp1_output.t49(tmp0_desc, 1, value.jyz_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.kyz_1 === '')) { tmp1_output.x49(tmp0_desc, 2, value.kyz_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !(value.lyz_1 === '')) { tmp1_output.x49(tmp0_desc, 3, value.lyz_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.myz_1 === '')) { tmp1_output.x49(tmp0_desc, 4, value.myz_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_64).s44 = function (encoder, value) { return this.wz1(encoder, value instanceof PersonUsernameAndPasswordModel ? value : THROW_CCE()); }; var $serializer_instance_64; function $serializer_getInstance_76() { if ($serializer_instance_64 == null) new $serializer_64(); return $serializer_instance_64; } function PersonUsernameAndPasswordModel_init_$Init$(seen1, mode, personUid, username, currentPassword, newPassword, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_76().vz1_1); } if (0 === (seen1 & 1)) $this.iyz_1 = 1; else $this.iyz_1 = mode; if (0 === (seen1 & 2)) $this.jyz_1 = new Long(0, 0); else $this.jyz_1 = personUid; if (0 === (seen1 & 4)) $this.kyz_1 = ''; else $this.kyz_1 = username; if (0 === (seen1 & 8)) $this.lyz_1 = ''; else $this.lyz_1 = currentPassword; if (0 === (seen1 & 16)) $this.myz_1 = ''; else $this.myz_1 = newPassword; return $this; } function PersonUsernameAndPasswordModel_init_$Create$(seen1, mode, personUid, username, currentPassword, newPassword, serializationConstructorMarker) { return PersonUsernameAndPasswordModel_init_$Init$(seen1, mode, personUid, username, currentPassword, newPassword, serializationConstructorMarker, objectCreate(protoOf(PersonUsernameAndPasswordModel))); } function PersonUsernameAndPasswordModel(mode, personUid, username, currentPassword, newPassword) { mode = mode === VOID ? 1 : mode; personUid = personUid === VOID ? new Long(0, 0) : personUid; username = username === VOID ? '' : username; currentPassword = currentPassword === VOID ? '' : currentPassword; newPassword = newPassword === VOID ? '' : newPassword; this.iyz_1 = mode; this.jyz_1 = personUid; this.kyz_1 = username; this.lyz_1 = currentPassword; this.myz_1 = newPassword; } protoOf(PersonUsernameAndPasswordModel).xz1 = function (mode, personUid, username, currentPassword, newPassword) { return new PersonUsernameAndPasswordModel(mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).rz1 = function (mode, personUid, username, currentPassword, newPassword, $super) { mode = mode === VOID ? this.iyz_1 : mode; personUid = personUid === VOID ? this.jyz_1 : personUid; username = username === VOID ? this.kyz_1 : username; currentPassword = currentPassword === VOID ? this.lyz_1 : currentPassword; newPassword = newPassword === VOID ? this.myz_1 : newPassword; return $super === VOID ? this.xz1(mode, personUid, username, currentPassword, newPassword) : $super.xz1.call(this, mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).toString = function () { return 'PersonUsernameAndPasswordModel(mode=' + this.iyz_1 + ', personUid=' + this.jyz_1.toString() + ', username=' + this.kyz_1 + ', currentPassword=' + this.lyz_1 + ', newPassword=' + this.myz_1 + ')'; }; protoOf(PersonUsernameAndPasswordModel).hashCode = function () { var result = this.iyz_1; result = imul(result, 31) + this.jyz_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.kyz_1) | 0; result = imul(result, 31) + getStringHashCode(this.lyz_1) | 0; result = imul(result, 31) + getStringHashCode(this.myz_1) | 0; return result; }; protoOf(PersonUsernameAndPasswordModel).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonUsernameAndPasswordModel)) return false; var tmp0_other_with_cast = other instanceof PersonUsernameAndPasswordModel ? other : THROW_CCE(); if (!(this.iyz_1 === tmp0_other_with_cast.iyz_1)) return false; if (!this.jyz_1.equals(tmp0_other_with_cast.jyz_1)) return false; if (!(this.kyz_1 === tmp0_other_with_cast.kyz_1)) return false; if (!(this.lyz_1 === tmp0_other_with_cast.lyz_1)) return false; if (!(this.myz_1 === tmp0_other_with_cast.myz_1)) return false; return true; }; function authManager$factory() { return getPropertyCallableRef('authManager', 1, KProperty1, function (receiver) { return _get_authManager__mo6de4(receiver); }, null); } function setPasswordUseCase$factory() { return getPropertyCallableRef('setPasswordUseCase', 1, KProperty1, function (receiver) { return _get_setPasswordUseCase__c0ja9b(receiver); }, null); } function authManager$factory_0() { return getPropertyCallableRef('authManager', 1, KProperty1, function (receiver) { return _get_authManager__mo6de4(receiver); }, null); } function setPasswordUseCase$factory_0() { return getPropertyCallableRef('setPasswordUseCase', 1, KProperty1, function (receiver) { return _get_setPasswordUseCase__c0ja9b(receiver); }, null); } function BulkAddPersonRunImportViewModel$slambda$lambda(this$0) { return function (numImported, totalRecords) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.tz2_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel...' call var nextValue = prevValue.cz3(VOID, totalRecords, numImported); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_bulkAddFromUriUseCase__ahhheb($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wz2_1; bulkAddFromUriUseCase$factory_0(); return this_0.t2(); } function Companion_179() { this.dz3_1 = 'BulkAddPersonRunImport'; this.ez3_1 = 'uri'; } var Companion_instance_227; function Companion_getInstance_197() { return Companion_instance_227; } function sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0(function_0) { this.fz3_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0).gz3 = function (numImported, totalRecords) { return this.fz3_1(numImported, totalRecords); }; function BulkAddPersonRunImportViewModel$slambda(this$0, resultContinuation) { this.pz3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonRunImportViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(BulkAddPersonRunImportViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonRunImportViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; var tmp_0 = _get_bulkAddFromUriUseCase__ahhheb(this.pz3_1); var tmp_1 = Companion_getInstance_3().p2r(this.pz3_1.vz2_1); var tmp_2 = this.pz3_1.nqo(); var tmp_3 = BulkAddPersonRunImportViewModel$slambda$lambda(this.pz3_1); suspendResult = tmp_0.gpm(tmp_1, tmp_2, new sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; l$ret$1: do { var this_0 = this.pz3_1.tz2_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cz3(false, VOID, result.jpm_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_4 = this.ld_1; if (tmp_4 instanceof Error) { var e = this.ld_1; Napier_getInstance().r5e('Exception running import', e); l$ret$3: do { var this_1 = this.pz3_1.tz2_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver = e instanceof BulkAddPersonException ? e : null; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.apm_1; var nextValue_0 = prevValue_0.cz3(false, VOID, VOID, tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, e.message); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(BulkAddPersonRunImportViewModel$slambda).w1m = function ($this$launch, completion) { var i = new BulkAddPersonRunImportViewModel$slambda(this.pz3_1, completion); i.qz3_1 = $this$launch; return i; }; function BulkAddPersonRunImportViewModel$slambda_0(this$0, resultContinuation) { var i = new BulkAddPersonRunImportViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function BulkAddPersonRunImportViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'BulkAddPersonRunImport'); this.tz2_1 = MutableStateFlow(new BulkAddPersonRunImportUiState()); this.uz2_1 = asStateFlow(this.tz2_1); var tmp = this; var tmp0_elvis_lhs = savedStateHandle.ba('uri'); var tmp_0; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$('No fileUri'); } else { tmp_0 = tmp0_elvis_lhs; } tmp.vz2_1 = tmp_0; var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(BulkAddPersonsFromLocalUriUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.wz2_1 = Instance(this_0, tmp$ret$0, null).b5d(this, bulkAddFromUriUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().yno_1)); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.mqo(); launch(tmp_3, VOID, VOID, BulkAddPersonRunImportViewModel$slambda_0(this, null)); } function Companion_180() { Companion_instance_228 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.rz3_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance_54()), null]; } var Companion_instance_228; function Companion_getInstance_198() { if (Companion_instance_228 == null) new Companion_180(); return Companion_instance_228; } function $serializer_65() { $serializer_instance_65 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportUiState', this, 5); tmp0_serialDesc.u4f('inProgress', true); tmp0_serialDesc.u4f('totalRecords', true); tmp0_serialDesc.u4f('numImported', true); tmp0_serialDesc.u4f('errors', true); tmp0_serialDesc.u4f('errorMessage', true); this.sz3_1 = tmp0_serialDesc; } protoOf($serializer_65).r44 = function () { return this.sz3_1; }; protoOf($serializer_65).l4g = function () { var tmp0_cached = Companion_getInstance_198().rz3_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[3], get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_65).t44 = function (decoder) { var tmp0_desc = this.sz3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = 0; var tmp6_local2 = 0; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.j48(tmp0_desc); var tmp10_cached = Companion_getInstance_198().rz3_1; if (tmp9_input.y48()) { tmp4_local0 = tmp9_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.v48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.z48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.l48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.v48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.x48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.k48(tmp0_desc); return BulkAddPersonRunImportUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_65).tz3 = function (encoder, value) { var tmp0_desc = this.sz3_1; var tmp1_output = encoder.j48(tmp0_desc); var tmp2_cached = Companion_getInstance_198().rz3_1; if (tmp1_output.f4a(tmp0_desc, 0) ? true : !(value.xz2_1 === true)) { tmp1_output.p49(tmp0_desc, 0, value.xz2_1); } if (tmp1_output.f4a(tmp0_desc, 1) ? true : !(value.yz2_1 === 0)) { tmp1_output.s49(tmp0_desc, 1, value.yz2_1); } if (tmp1_output.f4a(tmp0_desc, 2) ? true : !(value.zz2_1 === 0)) { tmp1_output.s49(tmp0_desc, 2, value.zz2_1); } if (tmp1_output.f4a(tmp0_desc, 3) ? true : !equals(value.az3_1, emptyList())) { tmp1_output.z49(tmp0_desc, 3, tmp2_cached[3], value.az3_1); } if (tmp1_output.f4a(tmp0_desc, 4) ? true : !(value.bz3_1 == null)) { tmp1_output.b4a(tmp0_desc, 4, StringSerializer_getInstance(), value.bz3_1); } tmp1_output.k48(tmp0_desc); }; protoOf($serializer_65).s44 = function (encoder, value) { return this.tz3(encoder, value instanceof BulkAddPersonRunImportUiState ? value : THROW_CCE()); }; var $serializer_instance_65; function $serializer_getInstance_77() { if ($serializer_instance_65 == null) new $serializer_65(); return $serializer_instance_65; } function BulkAddPersonRunImportUiState_init_$Init$(seen1, inProgress, totalRecords, numImported, errors, errorMessage, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_77().sz3_1); } if (0 === (seen1 & 1)) $this.xz2_1 = true; else $this.xz2_1 = inProgress; if (0 === (seen1 & 2)) $this.yz2_1 = 0; else $this.yz2_1 = totalRecords; if (0 === (seen1 & 4)) $this.zz2_1 = 0; else $this.zz2_1 = numImported; if (0 === (seen1 & 8)) $this.az3_1 = emptyList(); else $this.az3_1 = errors; if (0 === (seen1 & 16)) $this.bz3_1 = null; else $this.bz3_1 = errorMessage; return $this; } function BulkAddPersonRunImportUiState_init_$Create$(seen1, inProgress, totalRecords, numImported, errors, errorMessage, serializationConstructorMarker) { return BulkAddPersonRunImportUiState_init_$Init$(seen1, inProgress, totalRecords, numImported, errors, errorMessage, serializationConstructorMarker, objectCreate(protoOf(BulkAddPersonRunImportUiState))); } function BulkAddPersonRunImportUiState(inProgress, totalRecords, numImported, errors, errorMessage) { Companion_getInstance_198(); inProgress = inProgress === VOID ? true : inProgress; totalRecords = totalRecords === VOID ? 0 : totalRecords; numImported = numImported === VOID ? 0 : numImported; errors = errors === VOID ? emptyList() : errors; errorMessage = errorMessage === VOID ? null : errorMessage; this.xz2_1 = inProgress; this.yz2_1 = totalRecords; this.zz2_1 = numImported; this.az3_1 = errors; this.bz3_1 = errorMessage; } protoOf(BulkAddPersonRunImportUiState).pu6 = function () { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.az3_1.c1()) { tmp = true; } else { tmp = !(this.bz3_1 == null); } return tmp; }; protoOf(BulkAddPersonRunImportUiState).sp3 = function () { var tmp; if (this.yz2_1 > 0) { tmp = this.zz2_1 / this.yz2_1; } else { tmp = 0.0; } return tmp; }; protoOf(BulkAddPersonRunImportUiState).uz3 = function (inProgress, totalRecords, numImported, errors, errorMessage) { return new BulkAddPersonRunImportUiState(inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).cz3 = function (inProgress, totalRecords, numImported, errors, errorMessage, $super) { inProgress = inProgress === VOID ? this.xz2_1 : inProgress; totalRecords = totalRecords === VOID ? this.yz2_1 : totalRecords; numImported = numImported === VOID ? this.zz2_1 : numImported; errors = errors === VOID ? this.az3_1 : errors; errorMessage = errorMessage === VOID ? this.bz3_1 : errorMessage; return $super === VOID ? this.uz3(inProgress, totalRecords, numImported, errors, errorMessage) : $super.uz3.call(this, inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).toString = function () { return 'BulkAddPersonRunImportUiState(inProgress=' + this.xz2_1 + ', totalRecords=' + this.yz2_1 + ', numImported=' + this.zz2_1 + ', errors=' + this.az3_1 + ', errorMessage=' + this.bz3_1 + ')'; }; protoOf(BulkAddPersonRunImportUiState).hashCode = function () { var result = getBooleanHashCode(this.xz2_1); result = imul(result, 31) + this.yz2_1 | 0; result = imul(result, 31) + this.zz2_1 | 0; result = imul(result, 31) + hashCode(this.az3_1) | 0; result = imul(result, 31) + (this.bz3_1 == null ? 0 : getStringHashCode(this.bz3_1)) | 0; return result; }; protoOf(BulkAddPersonRunImportUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof BulkAddPersonRunImportUiState)) return false; var tmp0_other_with_cast = other instanceof BulkAddPersonRunImportUiState ? other : THROW_CCE(); if (!(this.xz2_1 === tmp0_other_with_cast.xz2_1)) return false; if (!(this.yz2_1 === tmp0_other_with_cast.yz2_1)) return false; if (!(this.zz2_1 === tmp0_other_with_cast.zz2_1)) return false; if (!equals(this.az3_1, tmp0_other_with_cast.az3_1)) return false; if (!(this.bz3_1 == tmp0_other_with_cast.bz3_1)) return false; return true; }; function bulkAddFromUriUseCase$factory() { return getPropertyCallableRef('bulkAddFromUriUseCase', 1, KProperty1, function (receiver) { return _get_bulkAddFromUriUseCase__ahhheb(receiver); }, null); } function bulkAddFromUriUseCase$factory_0() { return getPropertyCallableRef('bulkAddFromUriUseCase', 1, KProperty1, function (receiver) { return _get_bulkAddFromUriUseCase__ahhheb(receiver); }, null); } function BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda$lambda(it) { return Unit_instance; } function _get_openBlobUiUseCase__fzusqz_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sz4_1; openBlobUiUseCase$factory_4(); return this_0.t2(); } function Companion_181() { this.tz4_1 = 'BulkAddPersonSelectFile'; } var Companion_instance_229; function Companion_getInstance_199() { return Companion_instance_229; } function BulkAddPersonSelectFileViewModel$slambda(this$0, resultContinuation) { this.cz5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.dz5_1.q7f(); var tmp_1 = this.cz5_1.nqo(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); suspendResult = tmp_0.yi0(tmp_1, tmp_2, new Long(8192, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var it = suspendResult; return it.idn_1 ? it.jdn_1 : false; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).enz = function (db, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda(this.cz5_1, completion); i.dz5_1 = db; return i; }; function BulkAddPersonSelectFileViewModel$slambda_0(this$0, resultContinuation) { var i = new BulkAddPersonSelectFileViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function BulkAddPersonSelectFileViewModel$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qz4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel..' call var nextValue = prevValue.iz5(VOID, VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function BulkAddPersonSelectFileViewModel$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(BulkAddPersonSelectFileViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonSelectFileViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(BulkAddPersonSelectFileViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda_1(completion); i.rz5_1 = $this$launchIfHasPermission; return i; }; function BulkAddPersonSelectFileViewModel$slambda_2(resultContinuation) { var i = new BulkAddPersonSelectFileViewModel$slambda_1(resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda(this$0, $templatePath, resultContinuation) { this.az6_1 = this$0; this.bz6_1 = $templatePath; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; var tmp_0 = _get_openBlobUiUseCase__fzusqz_1(this.az6_1); var tmp_1 = new OpenBlobItem(this.bz6_1, 'text/csv', 'bulk-add-persons-template.csv', new Long(186, 0)); suspendResult = tmp_0.uop(tmp_1, BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda$lambda, OpenBlobIntent_SEND_getInstance(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_2 = this.ld_1; if (tmp_2 instanceof Error) { var e = this.ld_1; printStackTrace(e); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).w1m = function ($this$launch, completion) { var i = new BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda(this.az6_1, this.bz6_1, completion); i.cz6_1 = $this$launch; return i; }; function BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda_0(this$0, $templatePath, resultContinuation) { var i = new BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda(this$0, $templatePath, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function BulkAddPersonSelectFileViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'BulkAddPersonSelectFile'); this.qz4_1 = MutableStateFlow(new BulkAddPersonSelectFileUiState()); this.rz4_1 = asStateFlow(this.qz4_1); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.sz4_1 = Instance(this_0, tmp$ret$0, null).b5d(this, openBlobUiUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().yno_1)); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = BulkAddPersonSelectFileViewModel$slambda_0(this, null); var tmp_2 = BulkAddPersonSelectFileViewModel$lambda(this); this.gqp(tmp_1, true, tmp_2, BulkAddPersonSelectFileViewModel$slambda_2(null)); } protoOf(BulkAddPersonSelectFileViewModel).dz6 = function (uri, name) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qz4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.onFileSelected.' call var nextValue = prevValue.iz5(uri, name); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(BulkAddPersonSelectFileViewModel).ez6 = function () { var tmp0_elvis_lhs = this.qz4_1.t2().ez5_1; this.xqn_1.tp6('BulkAddPersonRunImport', mapOf_0(to('uri', tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); }; protoOf(BulkAddPersonSelectFileViewModel).fz6 = function () { var templatePath = this.lqo().roa().cnu_1 + 'staticfiles/bulkaddpersons/bulk-add-persons-template.csv'; var tmp = this.mqo(); launch(tmp, VOID, VOID, BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda_0(this, templatePath, null)); }; function BulkAddPersonSelectFileUiState(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) { selectedFileUri = selectedFileUri === VOID ? null : selectedFileUri; selectedFileName = selectedFileName === VOID ? null : selectedFileName; fileSelectError = fileSelectError === VOID ? null : fileSelectError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.ez5_1 = selectedFileUri; this.fz5_1 = selectedFileName; this.gz5_1 = fileSelectError; this.hz5_1 = fieldsEnabled; } protoOf(BulkAddPersonSelectFileUiState).gz6 = function () { return !(this.ez5_1 == null) ? this.hz5_1 : false; }; protoOf(BulkAddPersonSelectFileUiState).hz6 = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) { return new BulkAddPersonSelectFileUiState(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).iz5 = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled, $super) { selectedFileUri = selectedFileUri === VOID ? this.ez5_1 : selectedFileUri; selectedFileName = selectedFileName === VOID ? this.fz5_1 : selectedFileName; fileSelectError = fileSelectError === VOID ? this.gz5_1 : fileSelectError; fieldsEnabled = fieldsEnabled === VOID ? this.hz5_1 : fieldsEnabled; return $super === VOID ? this.hz6(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) : $super.hz6.call(this, selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).toString = function () { return 'BulkAddPersonSelectFileUiState(selectedFileUri=' + this.ez5_1 + ', selectedFileName=' + this.fz5_1 + ', fileSelectError=' + this.gz5_1 + ', fieldsEnabled=' + this.hz5_1 + ')'; }; protoOf(BulkAddPersonSelectFileUiState).hashCode = function () { var result = this.ez5_1 == null ? 0 : getStringHashCode(this.ez5_1); result = imul(result, 31) + (this.fz5_1 == null ? 0 : getStringHashCode(this.fz5_1)) | 0; result = imul(result, 31) + (this.gz5_1 == null ? 0 : getStringHashCode(this.gz5_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.hz5_1) | 0; return result; }; protoOf(BulkAddPersonSelectFileUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof BulkAddPersonSelectFileUiState)) return false; var tmp0_other_with_cast = other instanceof BulkAddPersonSelectFileUiState ? other : THROW_CCE(); if (!(this.ez5_1 == tmp0_other_with_cast.ez5_1)) return false; if (!(this.fz5_1 == tmp0_other_with_cast.fz5_1)) return false; if (!(this.gz5_1 == tmp0_other_with_cast.gz5_1)) return false; if (!(this.hz5_1 === tmp0_other_with_cast.hz5_1)) return false; return true; }; function openBlobUiUseCase$factory_3() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz_1(receiver); }, null); } function openBlobUiUseCase$factory_4() { return getPropertyCallableRef('openBlobUiUseCase', 1, KProperty1, function (receiver) { return _get_openBlobUiUseCase__fzusqz_1(receiver); }, null); } function AddChildProfilesViewModel$slambda$slambda$slambda$lambda($childProfileResult) { return function (it) { return it.g96_1.equals($childProfileResult.g96_1); }; } function AddChildProfilesViewModel$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).rz6 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.rz6(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).enz = function (it, completion) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda(completion); i.qz6_1 = it; return i; }; function AddChildProfilesViewModel$slambda$slambda$slambda_0(resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.rz6(it, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).az7 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).n78 = function ($completion) { return this.az7($completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).m78 = function (completion) { return new AddChildProfilesViewModel$slambda$slambda$slambda_1(completion); }; function AddChildProfilesViewModel$slambda$slambda$slambda_2(resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.az7($completion); }; l.$arity = 0; return l; } function AddChildProfilesViewModel$slambda$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.yz7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel....' call var nextValue = prevValue.hz8(VOID, it == null ? emptyList() : it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function AddChildProfilesViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.qz8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).lqb = function (result, $completion) { var tmp = this.mqb(result, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp_1 = this.rz8_1.sqa_1; var tmp0_elvis_lhs = tmp_1 instanceof Person ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.sz8_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.qz8_1.yz7_1.t2().dz8_1; tmp_3.tz8_1 = replaceOrAppend(tmp_4, this.sz8_1, AddChildProfilesViewModel$slambda$slambda$slambda$lambda(this.sz8_1)); this.id_1 = 1; suspendResult = updateChildProfileList(this.qz8_1, this.tz8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).mqb = function (result, completion) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda_3(this.qz8_1, completion); i.rz8_1 = result; return i; }; function AddChildProfilesViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (result, $completion) { return i.lqb(result, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda$slambda(this$0, resultContinuation) { this.cz9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda).v1m = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; var tmp_0 = ListSerializer(Companion_instance_3.o4r()); var tmp_1 = listOf_0('persons'); var tmp_2 = AddChildProfilesViewModel$slambda$slambda$slambda_0(null); var tmp_3 = AddChildProfilesViewModel$slambda$slambda$slambda_2(null); suspendResult = this.cz9_1.fqp(tmp_0, tmp_1, VOID, tmp_2, tmp_3, AddChildProfilesViewModel$slambda$slambda$lambda(this.cz9_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; var tmp_4 = this.cz9_1.zqo(this.cz9_1.sqo(), 'person'); var tmp_5 = AddChildProfilesViewModel$slambda$slambda$slambda_4(this.cz9_1, null); suspendResult = tmp_4.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_33(tmp_5), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda).w1m = function ($this$async, completion) { var i = new AddChildProfilesViewModel$slambda$slambda(this.cz9_1, completion); i.dz9_1 = $this$async; return i; }; function AddChildProfilesViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new AddChildProfilesViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.v1m($this$async, $completion); }; l.$arity = 1; return l; } function updateChildProfileList($this, newChildProfileList, $completion) { var tmp = new $updateChildProfileListCOROUTINE$79($this, newChildProfileList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_182() { this.pz9_1 = 'AddChildProfile'; this.qz9_1 = 'person'; this.rz9_1 = 'persons'; } var Companion_instance_230; function Companion_getInstance_200() { return Companion_instance_230; } function sam$kotlinx_coroutines_flow_FlowCollector$0_33(function_0) { this.sz9_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_33).u1d = function (value, $completion) { return this.sz9_1(value, $completion); }; function AddChildProfilesViewModel$onClickFinish$ref($boundThis) { var l = function () { $boundThis.tz9(); return Unit_instance; }; l.callableName = 'onClickFinish'; return l; } function AddChildProfilesViewModel$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda).kse = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return true; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda).enz = function (it, completion) { var i = new AddChildProfilesViewModel$slambda(completion); i.cza_1 = it; return i; }; function AddChildProfilesViewModel$slambda_0(resultContinuation) { var i = new AddChildProfilesViewModel$slambda(resultContinuation); var l = function (it, $completion) { return i.kse(it, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda_1(this$0, resultContinuation) { this.lza_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; async(this.mza_1, VOID, VOID, AddChildProfilesViewModel$slambda$slambda_0(this.lza_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new AddChildProfilesViewModel$slambda_1(this.lza_1, completion); i.mza_1 = $this$launchIfHasPermission; return i; }; function AddChildProfilesViewModel$slambda_2(this$0, resultContinuation) { var i = new AddChildProfilesViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$updateChildProfileList$slambda(this$0, $newChildProfileList, resultContinuation) { this.vza_1 = this$0; this.wza_1 = $newChildProfileList; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).ir1 = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).ie = function (p1, $completion) { return this.ir1((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return this.vza_1.n4r().s45(ListSerializer(Companion_instance_3.o4r()), this.wza_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).w1m = function ($this$withContext, completion) { var i = new AddChildProfilesViewModel$updateChildProfileList$slambda(this.vza_1, this.wza_1, completion); i.xza_1 = $this$withContext; return i; }; function AddChildProfilesViewModel$updateChildProfileList$slambda_0(this$0, $newChildProfileList, resultContinuation) { var i = new AddChildProfilesViewModel$updateChildProfileList$slambda(this$0, $newChildProfileList, resultContinuation); var l = function ($this$withContext, $completion) { return i.ir1($this$withContext, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this$0, $person, resultContinuation) { this.gzb_1 = this$0; this.hzb_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var this_0 = this.gzb_1.yz7_1.t2().dz8_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.g96_1.equals(this.hzb_1.g96_1)) { destination.i1(element); } } suspendResult = updateChildProfileList(this.gzb_1, destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).w1m = function ($this$launch, completion) { var i = new AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this.gzb_1, this.hzb_1, completion); i.izb_1 = $this$launch; return i; }; function AddChildProfilesViewModel$onClickDeleteChildProfile$slambda_0(this$0, $person, resultContinuation) { var i = new AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this$0, $person, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$onProfileSelected$slambda(this$0, $profile, resultContinuation) { this.rzb_1 = this$0; this.szb_1 = $profile; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 10; this.uzb_1 = new UstadGoOptions(VOID, VOID, true); if (!this.rzb_1.yz7_1.t2().dz8_1.c1()) { var tmp_0 = this; var tmp0_elvis_lhs = this.rzb_1.qqo(); tmp_0.vzb_1 = tmp0_elvis_lhs == null ? this.rzb_1.pqo() : tmp0_elvis_lhs; this.id_1 = 1; suspendResult = this.vzb_1.o7d().kg4(this.rzb_1.yz7_1.t2().dz8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 7; continue $sm; } case 1: var tmp_1 = this; var this_0 = this.rzb_1.yz7_1.t2().dz8_1; var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); var tmp0_ppjMinorPersonUid = item.g96_1; var tmp1_ppjParentPersonUid = this.rzb_1.lqo().poa().ckz_1; var tmp3_ppjApprovalTiemstamp = systemTimeInMillis(); destination.i1(new PersonParentJoin(VOID, VOID, VOID, VOID, VOID, tmp1_ppjParentPersonUid, tmp0_ppjMinorPersonUid, VOID, VOID, VOID, VOID, 1, tmp3_ppjApprovalTiemstamp)); } tmp_1.wzb_1 = destination; var tmp_2 = this; tmp_2.xzb_1 = this.rzb_1.yz7_1.t2().dz8_1; this.yzb_1 = this.xzb_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.yzb_1.f()) { this.id_1 = 5; continue $sm; } this.zzb_1 = this.yzb_1.e(); var tmp_3 = this; tmp_3.azc_1 = this.zzb_1; if (!this.azc_1.equals(this.szb_1)) { this.id_1 = 3; suspendResult = this.rzb_1.lqo().co3(this.azc_1, this.rzb_1.lqo().roa().cnu_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 4; continue $sm; } case 3: this.id_1 = 4; continue $sm; case 4: this.id_1 = 2; continue $sm; case 5: this.id_1 = 6; suspendResult = this.vzb_1.y7e().ugs(this.wzb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.id_1 = 7; continue $sm; case 7: if (!this.szb_1.equals(this.rzb_1.lqo().aoa().unu_1)) { this.id_1 = 8; suspendResult = this.rzb_1.lqo().co3(this.szb_1, this.rzb_1.lqo().roa().cnu_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 9; continue $sm; } case 8: var sessionWithPersonAndLearningSpace = suspendResult; this.rzb_1.lqo().unx(sessionWithPersonAndLearningSpace); this.id_1 = 9; continue $sm; case 9: this.rzb_1.hqv(this.rzb_1.xqn_1, appendSelectedAccount(this.rzb_1.zz7_1, this.szb_1.g96_1, new LearningSpace(this.rzb_1.lqo().roa().cnu_1)), this.uzb_1); return Unit_instance; case 10: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 10) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).w1m = function ($this$launch, completion) { var i = new AddChildProfilesViewModel$onProfileSelected$slambda(this.rzb_1, this.szb_1, completion); i.tzb_1 = $this$launch; return i; }; function AddChildProfilesViewModel$onProfileSelected$slambda_0(this$0, $profile, resultContinuation) { var i = new AddChildProfilesViewModel$onProfileSelected$slambda(this$0, $profile, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function $updateChildProfileListCOROUTINE$79(_this__u8e3s4, newChildProfileList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mz9_1 = _this__u8e3s4; this.nz9_1 = newChildProfileList; } protoOf($updateChildProfileListCOROUTINE$79).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; l$ret$1: do { var this_0 = this.mz9_1.yz7_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hz8(VOID, this.nz9_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.oz9_1 = this.mz9_1.vqn_1; this.id_1 = 1; var tmp_0 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_0, AddChildProfilesViewModel$updateChildProfileList$slambda_0(this.mz9_1, this.nz9_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.oz9_1.yqj('persons', ARGUMENT); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function AddChildProfilesViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'AddChildProfile'); this.yz7_1 = MutableStateFlow(new AddChildProfilesUiState()); var tmp = this; Companion_getInstance_117(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_0; if (tmp0_elvis_lhs == null) { Companion_getInstance_141(); tmp_0 = 'CourseListHome'; } else { tmp_0 = tmp0_elvis_lhs; } tmp.zz7_1 = tmp_0; var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.az8_1 = Instance(this_0, tmp$ret$0, null).b5d(this, repo$factory()); this.bz8_1 = asStateFlow(this.yz7_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.yz7_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.' call var nextValue = prevValue.hz8(VOID, VOID, VOID, VOID, this.lqo().aoa().unu_1); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.' call var tmp0_title = this.vqo().soj(strings_getInstance().gnq_1); var tmp_3 = this.vqo().soj(strings_getInstance().inq_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, AddChildProfilesViewModel$onClickFinish$ref(this)); var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp0_title, false, true, VOID, false, VOID, tmp1_actionBarButtonState); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = AddChildProfilesViewModel$slambda_0(null); this.hqp(tmp_4, VOID, VOID, AddChildProfilesViewModel$slambda_2(this, null)); } protoOf(AddChildProfilesViewModel).bzc = function () { // Inline function 'kotlin.getValue' call var this_0 = this.az8_1; repo$factory_0(); return this_0.t2(); }; protoOf(AddChildProfilesViewModel).tz9 = function () { // Inline function 'kotlin.collections.isNotEmpty' call if (!this.yz7_1.t2().dz8_1.c1()) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yz7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onClickFinish.' call var nextValue = prevValue.hz8(VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } else { this.czc(this.lqo().poa().kkz()); } }; protoOf(AddChildProfilesViewModel).dzc = function () { var tmp0_nextViewName = 'EditChildProfile'; // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onClickAddChileProfile.' call Companion_getInstance_116(); this.vqn_1.ba('entity'); var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_instance_3.o4r(); this.dqp(tmp0_nextViewName, 'person', null, tmp3_serializer, tmp2_args); }; protoOf(AddChildProfilesViewModel).ezc = function (person) { var tmp0_nextViewName = 'EditChildProfile'; var tmp2_serializer = Companion_instance_3.o4r(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onClickEditChileProfile.' call Companion_getInstance_116(); this.vqn_1.ba('entity'); var tmp3_args = this_0.f3(); this.dqp(tmp0_nextViewName, 'person', person, tmp2_serializer, tmp3_args); }; protoOf(AddChildProfilesViewModel).fzc = function (person) { var tmp = this.mqo(); launch(tmp, VOID, VOID, AddChildProfilesViewModel$onClickDeleteChildProfile$slambda_0(this, person, null)); }; protoOf(AddChildProfilesViewModel).gzc = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yz7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onDismissLangDialog.' call var nextValue = prevValue.hz8(VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(AddChildProfilesViewModel).czc = function (profile) { var tmp = this.mqo(); launch(tmp, VOID, VOID, AddChildProfilesViewModel$onProfileSelected$slambda_0(this, profile, null)); }; function AddChildProfilesUiState(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) { onAddChildProfile = onAddChildProfile === VOID ? null : onAddChildProfile; childProfiles = childProfiles === VOID ? emptyList() : childProfiles; personParenJoinList = personParenJoinList === VOID ? emptyList() : personParenJoinList; showProfileSelectionDialog = showProfileSelectionDialog === VOID ? false : showProfileSelectionDialog; parent = parent === VOID ? null : parent; this.cz8_1 = onAddChildProfile; this.dz8_1 = childProfiles; this.ez8_1 = personParenJoinList; this.fz8_1 = showProfileSelectionDialog; this.gz8_1 = parent; } protoOf(AddChildProfilesUiState).hzc = function () { var tmp0_safe_receiver = this.gz8_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesUiState..' call tmp = listOf_0(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp; return plus(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.dz8_1); }; protoOf(AddChildProfilesUiState).izc = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) { return new AddChildProfilesUiState(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(AddChildProfilesUiState).hz8 = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent, $super) { onAddChildProfile = onAddChildProfile === VOID ? this.cz8_1 : onAddChildProfile; childProfiles = childProfiles === VOID ? this.dz8_1 : childProfiles; personParenJoinList = personParenJoinList === VOID ? this.ez8_1 : personParenJoinList; showProfileSelectionDialog = showProfileSelectionDialog === VOID ? this.fz8_1 : showProfileSelectionDialog; parent = parent === VOID ? this.gz8_1 : parent; return $super === VOID ? this.izc(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) : $super.izc.call(this, onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(AddChildProfilesUiState).toString = function () { return 'AddChildProfilesUiState(onAddChildProfile=' + this.cz8_1 + ', childProfiles=' + this.dz8_1 + ', personParenJoinList=' + this.ez8_1 + ', showProfileSelectionDialog=' + this.fz8_1 + ', parent=' + this.gz8_1 + ')'; }; protoOf(AddChildProfilesUiState).hashCode = function () { var result = this.cz8_1 == null ? 0 : getStringHashCode(this.cz8_1); result = imul(result, 31) + hashCode(this.dz8_1) | 0; result = imul(result, 31) + hashCode(this.ez8_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fz8_1) | 0; result = imul(result, 31) + (this.gz8_1 == null ? 0 : this.gz8_1.hashCode()) | 0; return result; }; protoOf(AddChildProfilesUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof AddChildProfilesUiState)) return false; var tmp0_other_with_cast = other instanceof AddChildProfilesUiState ? other : THROW_CCE(); if (!(this.cz8_1 == tmp0_other_with_cast.cz8_1)) return false; if (!equals(this.dz8_1, tmp0_other_with_cast.dz8_1)) return false; if (!equals(this.ez8_1, tmp0_other_with_cast.ez8_1)) return false; if (!(this.fz8_1 === tmp0_other_with_cast.fz8_1)) return false; if (!equals(this.gz8_1, tmp0_other_with_cast.gz8_1)) return false; return true; }; function repo$factory() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.bzc(); }, null); } function repo$factory_0() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.bzc(); }, null); } function EditChildProfileViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda).szc = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EditChildProfileViewModel$slambda$slambda).ie = function (p1, $completion) { return this.szc(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(EditChildProfileViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(EditChildProfileViewModel$slambda$slambda).enz = function (it, completion) { var i = new EditChildProfileViewModel$slambda$slambda(completion); i.rzc_1 = it; return i; }; function EditChildProfileViewModel$slambda$slambda_0(resultContinuation) { var i = new EditChildProfileViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.szc(it, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$slambda$slambda_1(this$0, resultContinuation) { this.bzd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda_1).czd = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).n78 = function ($completion) { return this.czd($completion); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.bzd_1.pqo()); suspendResult = tmp_0.p62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var newUid = suspendResult; return new Person(newUid, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).m78 = function (completion) { return new EditChildProfileViewModel$slambda$slambda_1(this.bzd_1, completion); }; function EditChildProfileViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new EditChildProfileViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.czd($completion); }; l.$arity = 0; return l; } function EditChildProfileViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.aze_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel...' call var nextValue = prevValue.jze(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_genderConfig__kyr0zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cze_1; genderConfig$factory_0(); return this_0.t2(); } function hasErrors_3(_this__u8e3s4, $this) { return ((!(_this__u8e3s4.eze_1 == null) ? true : !(_this__u8e3s4.hze_1 == null)) ? true : !(_this__u8e3s4.ize_1 == null)) ? true : !(_this__u8e3s4.gze_1 == null); } function Companion_183() { this.kze_1 = 'EditChildProfile'; } var Companion_instance_231; function Companion_getInstance_201() { return Companion_instance_231; } function EditChildProfileViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.lwx(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function EditChildProfileViewModel$slambda(this$0, resultContinuation) { this.tze_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EditChildProfileViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EditChildProfileViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.vze_1 = Companion_instance_3.o4r(); this.id_1 = 1; var tmp_0 = EditChildProfileViewModel$slambda$slambda_0(null); var tmp_1 = EditChildProfileViewModel$slambda$slambda_2(this.tze_1, null); suspendResult = this.tze_1.fqp(this.vze_1, VOID, VOID, tmp_0, tmp_1, EditChildProfileViewModel$slambda$lambda(this.tze_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EditChildProfileViewModel$slambda).w1m = function ($this$launch, completion) { var i = new EditChildProfileViewModel$slambda(this.tze_1, completion); i.uze_1 = $this$launch; return i; }; function EditChildProfileViewModel$slambda_0(this$0, resultContinuation) { var i = new EditChildProfileViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.ezf_1 = $commitDelay; this.fzf_1 = $entity; this.gzf_1 = $this; this.hzf_1 = $key; this.izf_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EditChildProfileViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EditChildProfileViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.ezf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.fzf_1 == null)) { this.id_1 = 2; suspendResult = this.gzf_1.bqp(this.gzf_1.vqn_1, this.hzf_1, this.izf_1, this.fzf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EditChildProfileViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new EditChildProfileViewModel$onEntityChanged$slambda(this.ezf_1, this.fzf_1, this.gzf_1, this.hzf_1, this.izf_1, completion); i.jzf_1 = $this$launch; return i; }; function EditChildProfileViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new EditChildProfileViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EditChildProfile'); this.aze_1 = MutableStateFlow(new EditChildProfileUiState()); this.bze_1 = asStateFlow(this.aze_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.cze_1 = Instance(this, tmp$ret$0, null).b5d(this, genderConfig$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.aze_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var nextValue = prevValue.jze(VOID, VOID, _get_genderConfig__kyr0zc(this).gq8_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp0_title = this.vqo().soj(strings_getInstance().hnq_1); var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp0_title, false, true, VOID, false, VOID, VOID, VOID, false); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp_1 = this.vqo().soj(strings_getInstance().ams_1); var nextValue_1 = prevValue_1.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_1, VOID, EditChildProfileViewModel$onClickDone$ref(this))); if (this_2.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, EditChildProfileViewModel$slambda_0(this, null)); } protoOf(EditChildProfileViewModel).kzf = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.aze_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.dze_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m96_1; var tmp_0 = this.gqv(tmp, entity == null ? null : entity.m96_1, prevValue.gze_1); var tmp2_safe_receiver = prevValue.dze_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.i96_1; var tmp_2 = this.gqv(tmp_1, entity == null ? null : entity.i96_1, prevValue.hze_1); var tmp4_safe_receiver = prevValue.dze_1; var tmp_3 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.j96_1; var nextValue = prevValue.jze(entity, VOID, VOID, tmp_0, tmp_2, this.gqv(tmp_3, entity == null ? null : entity.j96_1, prevValue.ize_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_4 = this; var tmp_5 = this.mqo(); tmp_4.cqu_1 = launch(tmp_5, VOID, VOID, EditChildProfileViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(EditChildProfileViewModel).lwx = function () { this.xqo(Companion_getInstance_98().oq7_1); var tmp0_elvis_lhs = this.aze_1.t2().dze_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var savePerson = tmp; var requiredFieldMessage = this.vqo().soj(strings_getInstance().cmo_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.aze_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.onClickDone.' call var tmp_0; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = savePerson.i96_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_0 = requiredFieldMessage; } else { tmp_0 = null; } var tmp0_firstNameError = tmp_0; var tmp_1; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = savePerson.j96_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_1 = requiredFieldMessage; } else { tmp_1 = null; } var tmp1_lastNameError = tmp_1; var tmp_2; if (savePerson.p96_1.equals(new Long(0, 0))) { tmp_2 = requiredFieldMessage; } else { tmp_2 = null; } var tmp2_dateOfBirthError = tmp_2; var tmp_3; var tmp_4 = savePerson.m96_1; if (tmp_4 === 0) { tmp_3 = requiredFieldMessage; } else { tmp_3 = null; } var tmp3_genderError = tmp_3; var nextValue = prevValue.jze(VOID, tmp2_dateOfBirthError, VOID, tmp3_genderError, tmp0_firstNameError, tmp1_lastNameError); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_3(this.aze_1.t2(), this)) { this.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; } this.gqu(this.aze_1.t2().dze_1); }; function EditChildProfileUiState(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) { person = person === VOID ? null : person; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().iq8_1 : genderOptions; genderError = genderError === VOID ? null : genderError; firstNameError = firstNameError === VOID ? null : firstNameError; lastNameError = lastNameError === VOID ? null : lastNameError; this.dze_1 = person; this.eze_1 = dateOfBirthError; this.fze_1 = genderOptions; this.gze_1 = genderError; this.hze_1 = firstNameError; this.ize_1 = lastNameError; } protoOf(EditChildProfileUiState).lzf = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) { return new EditChildProfileUiState(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError); }; protoOf(EditChildProfileUiState).jze = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, $super) { person = person === VOID ? this.dze_1 : person; dateOfBirthError = dateOfBirthError === VOID ? this.eze_1 : dateOfBirthError; genderOptions = genderOptions === VOID ? this.fze_1 : genderOptions; genderError = genderError === VOID ? this.gze_1 : genderError; firstNameError = firstNameError === VOID ? this.hze_1 : firstNameError; lastNameError = lastNameError === VOID ? this.ize_1 : lastNameError; return $super === VOID ? this.lzf(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) : $super.lzf.call(this, person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError); }; protoOf(EditChildProfileUiState).toString = function () { return 'EditChildProfileUiState(person=' + this.dze_1 + ', dateOfBirthError=' + this.eze_1 + ', genderOptions=' + this.fze_1 + ', genderError=' + this.gze_1 + ', firstNameError=' + this.hze_1 + ', lastNameError=' + this.ize_1 + ')'; }; protoOf(EditChildProfileUiState).hashCode = function () { var result = this.dze_1 == null ? 0 : this.dze_1.hashCode(); result = imul(result, 31) + (this.eze_1 == null ? 0 : getStringHashCode(this.eze_1)) | 0; result = imul(result, 31) + hashCode(this.fze_1) | 0; result = imul(result, 31) + (this.gze_1 == null ? 0 : getStringHashCode(this.gze_1)) | 0; result = imul(result, 31) + (this.hze_1 == null ? 0 : getStringHashCode(this.hze_1)) | 0; result = imul(result, 31) + (this.ize_1 == null ? 0 : getStringHashCode(this.ize_1)) | 0; return result; }; protoOf(EditChildProfileUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof EditChildProfileUiState)) return false; var tmp0_other_with_cast = other instanceof EditChildProfileUiState ? other : THROW_CCE(); if (!equals(this.dze_1, tmp0_other_with_cast.dze_1)) return false; if (!(this.eze_1 == tmp0_other_with_cast.eze_1)) return false; if (!equals(this.fze_1, tmp0_other_with_cast.fze_1)) return false; if (!(this.gze_1 == tmp0_other_with_cast.gze_1)) return false; if (!(this.hze_1 == tmp0_other_with_cast.hze_1)) return false; if (!(this.ize_1 == tmp0_other_with_cast.ize_1)) return false; return true; }; function genderConfig$factory() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc(receiver); }, null); } function genderConfig$factory_0() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc(receiver); }, null); } function PersonDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).wzf = function (entity, permissions, $completion) { var tmp = this.xzf(entity, permissions, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).vm = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof PersonAndDisplayDetail) ? p1 : THROW_CCE(); return this.wzf(tmp, p2 instanceof EditAndViewPermission ? p2 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.uzf_1; var tmp_0; if (this.vzf_1.di3_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).xzf = function (entity, permissions, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda(completion); i.uzf_1 = entity; i.vzf_1 = permissions; return i; }; function PersonDetailViewModel$slambda$slambda$slambda$slambda_0(resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation); var l = function (entity, permissions, $completion) { return i.wzf(entity, permissions, $completion); }; l.$arity = 2; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.gzg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).izg = function (person, $completion) { var tmp = this.jzg(person, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.izg((p1 == null ? true : p1 instanceof PersonAndDisplayDetail) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.gzg_1.gzh_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.hzg_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l96_1; var tmp_0; if (tmp2_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = _get_phoneNumberUtil__i6ank8(this.gzg_1); tmp_0 = tmp0_safe_receiver_0 == null ? null : formatInternationalOrNull(tmp0_safe_receiver_0, tmp2_safe_receiver); } var nextValue = prevValue.uzh(this.hzg_1, tmp_0); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.gzg_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_1 = this.hzg_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.wg7_1; var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : personFullName(tmp1_safe_receiver_0); var tmp3_title = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp_1; if (!(this.hzg_1 == null)) { tmp_1 = Companion_getInstance_98().pq7_1; } else { tmp_1 = Companion_getInstance_98().oq7_1; } var tmp4_loadingState = tmp_1; var nextValue_0 = prevValue_0.hq7(VOID, tmp4_loadingState, tmp3_title); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).jzg = function (person, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this.gzg_1, completion); i.hzg_1 = person; return i; }; function PersonDetailViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (person, $completion) { return i.izg(person, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.dzi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).gqg = function (it, $completion) { var tmp = this.hqg(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.dzi_1.gzh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uzh(VOID, VOID, VOID, VOID, VOID, this.ezi_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).hqg = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this.dzi_1, completion); i.ezi_1 = it; return i; }; function PersonDetailViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.gqg(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.yx7(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.nzi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).pzi = function (it, $completion) { var tmp = this.qzi(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.pzi(p1 instanceof EditAndViewPermission ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.nzi_1.gzh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uzh(VOID, VOID, VOID, VOID, this.ozi_1.ei3_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.nzi_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0; if (this.ozi_1.ei3_1) { var tmp_1 = this.nzi_1.vqo().soj(strings_getInstance().amw_1); var tmp_2 = FabIcon_EDIT_getInstance(); tmp_0 = new FabUiState(true, tmp_1, tmp_2, PersonDetailViewModel$onClickEdit$ref(this.nzi_1)); } else { tmp_0 = new FabUiState(); } var nextValue_0 = prevValue_0.hq7(tmp_0); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).qzi = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this.nzi_1, completion); i.ozi_1 = it; return i; }; function PersonDetailViewModel$slambda$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function (it, $completion) { return i.pzi(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.zzi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).bzj = function (it, $completion) { var tmp = this.czj(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).ie = function (p1, $completion) { return this.bzj((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.zzi_1.gzh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uzh(VOID, VOID, VOID, this.azj_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).czj = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this.zzi_1, completion); i.azj_1 = it; return i; }; function PersonDetailViewModel$slambda$slambda$slambda$slambda_8(this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation); var l = function (it, $completion) { return i.bzj(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda($entityFlow, $viewAndEditPermissionFlow, this$0, resultContinuation) { this.lzj_1 = $entityFlow; this.mzj_1 = $viewAndEditPermissionFlow; this.nzj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = combine(this.lzj_1, this.mzj_1, PersonDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_2(this.nzj_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_34(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda(this.lzj_1, this.mzj_1, this.nzj_1, completion); i.ozj_1 = $this$launch; return i; }; function PersonDetailViewModel$slambda$slambda$slambda_0($entityFlow, $viewAndEditPermissionFlow, this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda($entityFlow, $viewAndEditPermissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_1($hasManagePermissionsPermissionFlow, this$0, resultContinuation) { this.xzj_1 = $hasManagePermissionsPermissionFlow; this.yzj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.xzj_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_4(this.yzj_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_34(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_1(this.xzj_1, this.yzj_1, completion); i.zzj_1 = $this$launch; return i; }; function PersonDetailViewModel$slambda$slambda$slambda_2($hasManagePermissionsPermissionFlow, this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda_1($hasManagePermissionsPermissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_3($viewAndEditPermissionFlow, this$0, resultContinuation) { this.izk_1 = $viewAndEditPermissionFlow; this.jzk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = PersonDetailViewModel$slambda$slambda$slambda$slambda_6(this.jzk_1, null); suspendResult = this.izk_1.i1h(new sam$kotlinx_coroutines_flow_FlowCollector$0_34(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: throwKotlinNothingValueException(); break; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).w1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_3(this.izk_1, this.jzk_1, completion); i.kzk_1 = $this$launch; return i; }; function PersonDetailViewModel$slambda$slambda$slambda_4($viewAndEditPermissionFlow, this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda_3($viewAndEditPermissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.tzk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.tzk_1.pqo().u7d().i93(this.tzk_1.nqo(), this.tzk_1.pqn_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_8(this.tzk_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_34(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).w1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_5(this.tzk_1, completion); i.uzk_1 = $this$launch; return i; }; function PersonDetailViewModel$slambda$slambda$slambda_6(this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda$slambda_5(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewAndEditPermissionFlow, this$0, $hasManagePermissionsPermissionFlow, resultContinuation) { this.dzl_1 = $this_launch; this.ezl_1 = $entityFlow; this.fzl_1 = $viewAndEditPermissionFlow; this.gzl_1 = this$0; this.hzl_1 = $hasManagePermissionsPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(PersonDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.dzl_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_0(this.ezl_1, this.fzl_1, this.gzl_1, null)); launch(this.dzl_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_2(this.hzl_1, this.gzl_1, null)); launch(this.dzl_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_4(this.fzl_1, this.gzl_1, null)); launch(this.dzl_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_6(this.gzl_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda).m78 = function (completion) { return new PersonDetailViewModel$slambda$slambda(this.dzl_1, this.ezl_1, this.fzl_1, this.gzl_1, this.hzl_1, completion); }; function PersonDetailViewModel$slambda$slambda_0($this_launch, $entityFlow, $viewAndEditPermissionFlow, this$0, $hasManagePermissionsPermissionFlow, resultContinuation) { var i = new PersonDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewAndEditPermissionFlow, this$0, $hasManagePermissionsPermissionFlow, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function _get_phoneNumberUtil__i6ank8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jzh_1; phoneNumberUtil$factory_0(); return this_0.t2(); } function _get_onClickPhoneNumUseCase__2tcaut($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kzh_1; onClickPhoneNumUseCase$factory_0(); return this_0.t2(); } function _get_onClickSendSmsUseCase__plj4zm($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lzh_1; onClickSendSmsUseCase$factory_0(); return this_0.t2(); } function _get_onClickEmailUseCase__v8uzjh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mzh_1; onClickEmailUseCase$factory_0(); return this_0.t2(); } function navigateToEditAccount($this) { Companion_getInstance_126(); $this.xqn_1.tp6('AccountEdit', mapOf_0(to('entityUid', $this.izh_1.toString()))); } function navigateToManageAccount($this) { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.navigateToManageAccount.' call Companion_getInstance_126(); this_0.s('entityUid', $this.izh_1.toString()); var tmp0_safe_receiver = $this.gzh_1.t2().nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; this_0.s('PersonUsername', toString_0(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h96_1)); var tmp2_safe_receiver = $this.gzh_1.t2().nzh_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.wg7_1; this_0.s('PersonFullName', toString_0(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.ekr())); var tmp$ret$2 = this_0.f3(); $this.xqn_1.tp6('ManageAccount', tmp$ret$2); } function Companion_184() { this.izl_1 = 'PersonDetailView'; } var Companion_instance_232; function Companion_getInstance_202() { return Companion_instance_232; } function sam$kotlinx_coroutines_flow_FlowCollector$0_34(function_0) { this.jzl_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_34).u1d = function (value, $completion) { return this.jzl_1(value, $completion); }; function PersonDetailViewModel$onClickEdit$ref_0($boundThis) { var l = function () { $boundThis.yx7(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda(this$0, resultContinuation) { this.szl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.uzl_1 = this.szl_1.rqo().o7d().qg4(this.szl_1.pqn_1, this.szl_1.nqo()); this.vzl_1 = shareIn(this.szl_1.rqo().q7f().zi0(this.szl_1.nqo(), this.szl_1.pqn_1), this.szl_1.mqo(), Companion_getInstance_13().w1h()); var tmp_0 = this; var tmp_1 = this.szl_1.pqo().q7f(); var tmp_2 = this.szl_1.nqo(); PermissionFlags_getInstance(); tmp_0.wzl_1 = tmp_1.wi0(tmp_2, new Long(4096, 0)); this.id_1 = 1; suspendResult = whenSubscribed(this.szl_1.gzh_1, PersonDetailViewModel$slambda$slambda_0(this.tzl_1, this.uzl_1, this.vzl_1, this.szl_1, this.wzl_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda(this.szl_1, completion); i.tzl_1 = $this$launch; return i; }; function PersonDetailViewModel$slambda_0(this$0, resultContinuation) { var i = new PersonDetailViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'PersonDetailView'); this.gzh_1 = MutableStateFlow(new PersonDetailUiState()); this.hzh_1 = asStateFlow(this.gzh_1); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.izh_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(IPhoneNumberUtil), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.jzh_1 = InstanceOrNull(this, tmp$ret$0, null).b5d(this, phoneNumberUtil$factory()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(OnClickPhoneNumUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); tmp_2.kzh_1 = Instance(this, tmp$ret$2, null).b5d(this, onClickPhoneNumUseCase$factory()); var tmp_4 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(OnClickSendSmsUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.lzh_1 = InstanceOrNull(this, tmp$ret$4, null).b5d(this, onClickSendSmsUseCase$factory()); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(OnClickEmailUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.mzh_1 = Instance(this, tmp$ret$6, null).b5d(this, onClickEmailUseCase$factory()); // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var accountManager$delegate = Instance(this, tmp$ret$8, null).b5d(null, getLocalDelegateReference('accountManager', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_loadingState = Companion_getInstance_98().oq7_1; var tmp_9 = this.vqo().soj(strings_getInstance().amw_1); var tmp_10 = FabIcon_EDIT_getInstance(); var tmp1_fabState = new FabUiState(false, tmp_9, tmp_10, PersonDetailViewModel$onClickEdit$ref_0(this)); var nextValue = prevValue.hq7(tmp1_fabState, tmp0_loadingState); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.gzh_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_isActiveUser = this.pqn_1.equals(this.nqo()); var tmp1_canSendSms = !(_get_onClickSendSmsUseCase__plj4zm(this) == null); var nextValue_0 = prevValue_0.uzh(VOID, VOID, tmp1_canSendSms, VOID, VOID, VOID, tmp0_isActiveUser); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_11 = this.mqo(); launch(tmp_11, VOID, VOID, PersonDetailViewModel$slambda_0(this, null)); } protoOf(PersonDetailViewModel).yx7 = function () { Companion_getInstance_203(); Companion_getInstance_126(); this.xqn_1.tp6('PersonEditView', mapOf_0(to('entityUid', this.izh_1.toString()))); }; protoOf(PersonDetailViewModel).xzl = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).yzl = function () { return navigateToManageAccount(this); }; protoOf(PersonDetailViewModel).zzl = function () { Companion_getInstance_117(); this.xqn_1.tp6('MessageList', mapOf_0(to('personUid', this.izh_1.toString()))); }; protoOf(PersonDetailViewModel).azm = function () { var tmp0_safe_receiver = this.gzh_1.t2().nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l96_1; if (tmp2_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.onClickDial.' call _get_onClickPhoneNumUseCase__2tcaut(this).yp1(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).bzm = function () { var tmp0_safe_receiver = this.gzh_1.t2().nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k96_1; if (tmp2_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.onClickEmail.' call _get_onClickEmailUseCase__v8uzjh(this).yp1(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).orz = function () { Companion_getInstance_126(); this.xqn_1.tp6('SystemPermission', mapOf_0(to('personUid', this.pqn_1.toString()))); }; protoOf(PersonDetailViewModel).czm = function () { var tmp0_safe_receiver = this.gzh_1.t2().nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xg7_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ag8_1; var ppjUid = tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs; if (!ppjUid.equals(new Long(0, 0))) { Companion_getInstance_126(); var tmp = to('entityUid', ppjUid.toString()); Companion_getInstance_126(); Companion_getInstance_117(); this.xqn_1.tp6('ParentalConsentManagement', mapOf([tmp, to('next', '')])); } }; function PersonDetailUiState(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) { person = person === VOID ? null : person; displayPhoneNum = displayPhoneNum === VOID ? null : displayPhoneNum; canSendSms = canSendSms === VOID ? false : canSendSms; clazzes = clazzes === VOID ? emptyList() : clazzes; hasChangePasswordPermission = hasChangePasswordPermission === VOID ? false : hasChangePasswordPermission; showPermissionButton = showPermissionButton === VOID ? false : showPermissionButton; isActiveUser = isActiveUser === VOID ? false : isActiveUser; this.nzh_1 = person; this.ozh_1 = displayPhoneNum; this.pzh_1 = canSendSms; this.qzh_1 = clazzes; this.rzh_1 = hasChangePasswordPermission; this.szh_1 = showPermissionButton; this.tzh_1 = isActiveUser; } protoOf(PersonDetailUiState).dzm = function () { var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; return isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p96_1); }; protoOf(PersonDetailUiState).ezm = function () { var tmp; var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m96_1) == null)) { var tmp2_safe_receiver = this.nzh_1.wg7_1; tmp = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.m96_1) === 0); } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).fzm = function () { var tmp; var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h96_1) == null)) { tmp = this.rzh_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).gzm = function () { var tmp; var tmp_0; if (!(this.nzh_1 == null)) { var tmp0_safe_receiver = this.nzh_1.wg7_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h96_1) == null; } else { tmp_0 = false; } if (tmp_0) { tmp = this.rzh_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).hzm = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).izm = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).jzm = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).kzm = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).lzm = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).mzm = function () { var tmp0_safe_receiver = this.nzh_1; return !((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xg7_1) == null); }; protoOf(PersonDetailUiState).nzm = function () { var tmp; // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.nzh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg7_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h96_1; // Inline function 'kotlin.contracts.contract' call if (!(this_0 == null ? true : isBlank(this_0))) { tmp = !this.tzh_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).ozm = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) { return new PersonDetailUiState(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).uzh = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser, $super) { person = person === VOID ? this.nzh_1 : person; displayPhoneNum = displayPhoneNum === VOID ? this.ozh_1 : displayPhoneNum; canSendSms = canSendSms === VOID ? this.pzh_1 : canSendSms; clazzes = clazzes === VOID ? this.qzh_1 : clazzes; hasChangePasswordPermission = hasChangePasswordPermission === VOID ? this.rzh_1 : hasChangePasswordPermission; showPermissionButton = showPermissionButton === VOID ? this.szh_1 : showPermissionButton; isActiveUser = isActiveUser === VOID ? this.tzh_1 : isActiveUser; return $super === VOID ? this.ozm(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) : $super.ozm.call(this, person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).toString = function () { return 'PersonDetailUiState(person=' + this.nzh_1 + ', displayPhoneNum=' + this.ozh_1 + ', canSendSms=' + this.pzh_1 + ', clazzes=' + this.qzh_1 + ', hasChangePasswordPermission=' + this.rzh_1 + ', showPermissionButton=' + this.szh_1 + ', isActiveUser=' + this.tzh_1 + ')'; }; protoOf(PersonDetailUiState).hashCode = function () { var result = this.nzh_1 == null ? 0 : this.nzh_1.hashCode(); result = imul(result, 31) + (this.ozh_1 == null ? 0 : getStringHashCode(this.ozh_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.pzh_1) | 0; result = imul(result, 31) + hashCode(this.qzh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rzh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.szh_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tzh_1) | 0; return result; }; protoOf(PersonDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonDetailUiState)) return false; var tmp0_other_with_cast = other instanceof PersonDetailUiState ? other : THROW_CCE(); if (!equals(this.nzh_1, tmp0_other_with_cast.nzh_1)) return false; if (!(this.ozh_1 == tmp0_other_with_cast.ozh_1)) return false; if (!(this.pzh_1 === tmp0_other_with_cast.pzh_1)) return false; if (!equals(this.qzh_1, tmp0_other_with_cast.qzh_1)) return false; if (!(this.rzh_1 === tmp0_other_with_cast.rzh_1)) return false; if (!(this.szh_1 === tmp0_other_with_cast.szh_1)) return false; if (!(this.tzh_1 === tmp0_other_with_cast.tzh_1)) return false; return true; }; function phoneNumberUtil$factory() { return getPropertyCallableRef('phoneNumberUtil', 1, KProperty1, function (receiver) { return _get_phoneNumberUtil__i6ank8(receiver); }, null); } function onClickPhoneNumUseCase$factory() { return getPropertyCallableRef('onClickPhoneNumUseCase', 1, KProperty1, function (receiver) { return _get_onClickPhoneNumUseCase__2tcaut(receiver); }, null); } function onClickSendSmsUseCase$factory() { return getPropertyCallableRef('onClickSendSmsUseCase', 1, KProperty1, function (receiver) { return _get_onClickSendSmsUseCase__plj4zm(receiver); }, null); } function onClickEmailUseCase$factory() { return getPropertyCallableRef('onClickEmailUseCase', 1, KProperty1, function (receiver) { return _get_onClickEmailUseCase__v8uzjh(receiver); }, null); } function phoneNumberUtil$factory_0() { return getPropertyCallableRef('phoneNumberUtil', 1, KProperty1, function (receiver) { return _get_phoneNumberUtil__i6ank8(receiver); }, null); } function onClickPhoneNumUseCase$factory_0() { return getPropertyCallableRef('onClickPhoneNumUseCase', 1, KProperty1, function (receiver) { return _get_onClickPhoneNumUseCase__2tcaut(receiver); }, null); } function onClickSendSmsUseCase$factory_0() { return getPropertyCallableRef('onClickSendSmsUseCase', 1, KProperty1, function (receiver) { return _get_onClickSendSmsUseCase__plj4zm(receiver); }, null); } function onClickEmailUseCase$factory_0() { return getPropertyCallableRef('onClickEmailUseCase', 1, KProperty1, function (receiver) { return _get_onClickEmailUseCase__v8uzjh(receiver); }, null); } function PersonEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.xzm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda).szc = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.szc(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var this_0 = this.yzm_1.o7d(); var tmp_1; if (!_get_entityUid__ovkepw(this.xzm_1).equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.zzm_1 = tmp_1; if (this.zzm_1 == null) { this.azn_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; suspendResult = this.zzm_1.ng4(_get_entityUid__ovkepw(this.xzm_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.azn_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: return this.azn_1; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda).enz = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda(this.xzm_1, completion); i.yzm_1 = it; return i; }; function PersonEditViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new PersonEditViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.szc(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_1($savedStateHandle, resultContinuation) { this.jzn_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_1).czd = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).n78 = function ($completion) { return this.czd($completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = new Person(); var tmp_0 = this_0; var tmp0_safe_receiver = this.jzn_1.ba('DateOfBirth'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.p96_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; return this_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).m78 = function (completion) { return new PersonEditViewModel$slambda$slambda$slambda_1(this.jzn_1, completion); }; function PersonEditViewModel$slambda$slambda$slambda_2($savedStateHandle, resultContinuation) { var i = new PersonEditViewModel$slambda$slambda$slambda_1($savedStateHandle, resultContinuation); var l = function ($completion) { return i.czd($completion); }; l.$arity = 0; return l; } function PersonEditViewModel$slambda$slambda$lambda(this$0) { return function (entityToDisplay) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.hzo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.ozp(entityToDisplay); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.xzp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_3).zzp = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.zzp(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.yzp_1.g7e().zh3(_get_entityUid__ovkepw(this.xzp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_3).enz = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda_3(this.xzp_1, completion); i.yzp_1 = it; return i; }; function PersonEditViewModel$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new PersonEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (it, $completion) { return i.zzp(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_5).izq = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).n78 = function ($completion) { return this.izq($completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).m78 = function (completion) { return new PersonEditViewModel$slambda$slambda$slambda_5(completion); }; function PersonEditViewModel$slambda$slambda$slambda_6(resultContinuation) { var i = new PersonEditViewModel$slambda$slambda$slambda_5(resultContinuation); var l = function ($completion) { return i.izq($completion); }; l.$arity = 0; return l; } function PersonEditViewModel$slambda$slambda$lambda_0(this$0) { return function (personPicture) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.hzo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.ozp(VOID, VOID, VOID, personPicture); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.rzq_1 = this$0; this.szq_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda).uzq = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.uzq((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_3.o4r(); var tmp_1 = PersonEditViewModel$slambda$slambda$slambda_0(this.rzq_1, null); var tmp_2 = PersonEditViewModel$slambda$slambda$slambda_2(this.szq_1, null); suspendResult = this.rzq_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonEditViewModel$slambda$slambda$lambda(this.rzq_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda).w1m = function ($this$async, completion) { var i = new PersonEditViewModel$slambda$slambda(this.rzq_1, this.szq_1, completion); i.tzq_1 = $this$async; return i; }; function PersonEditViewModel$slambda$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new PersonEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$async, $completion) { return i.uzq($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.dzr_1 = this$0; this.ezr_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda_1).gzr = function ($this$async, $completion) { var tmp = this.w1m($this$async, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.gzr((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Companion_instance_7.o4r(); var tmp_1 = listOf_0('picState'); var tmp_2; if (!_get_entityUid__ovkepw(this.dzr_1).equals(new Long(0, 0))) { tmp_2 = PersonEditViewModel$slambda$slambda$slambda_4(this.dzr_1, null); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4 = PersonEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.dzr_1.fqp(tmp_0, tmp_1, VOID, tmp_3, tmp_4, PersonEditViewModel$slambda$slambda$lambda_0(this.dzr_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_124(); var tmp1_elvis_lhs = this_0 == null ? null : this_0.h97_1; setIfNoValueSetYet(this.ezr_1, 'initPicUri', tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); return this_0; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda_1).w1m = function ($this$async, completion) { var i = new PersonEditViewModel$slambda$slambda_1(this.dzr_1, this.ezr_1, completion); i.fzr_1 = $this$async; return i; }; function PersonEditViewModel$slambda$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new PersonEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($this$async, $completion) { return i.gzr($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonEditViewModel$onClickSave$slambda$slambda(this$0, $savePerson, $consentToUpsert, resultContinuation) { this.pzr_1 = this$0; this.qzr_1 = $savePerson; this.rzr_1 = $consentToUpsert; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda$slambda).yzr = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.yzr(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; if (this.pzr_1.dqu_1.equals(new Long(0, 0))) { this.id_1 = 4; suspendResult = _get_addNewPersonUseCase__raa2qa(this.pzr_1).zpl(this.qzr_1, this.pzr_1.nqo(), true, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; suspendResult = this.pzr_1.rqo().o7d().og4(this.qzr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.uzr_1 = this.rzr_1; if (this.uzr_1 == null) { this.vzr_1 = null; this.id_1 = 3; continue $sm; } else { var tmp_0 = this; tmp_0.wzr_1 = this.uzr_1; var tmp_1 = this; tmp_1.xzr_1 = this.wzr_1; this.id_1 = 2; suspendResult = this.pzr_1.rqo().y7e().vgs(this.xzr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.vzr_1 = this.wzr_1; this.id_1 = 3; continue $sm; case 3: this.tzr_1 = this.vzr_1; this.id_1 = 5; continue $sm; case 4: this.tzr_1 = suspendResult; this.id_1 = 5; continue $sm; case 5: return this.tzr_1; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new PersonEditViewModel$onClickSave$slambda$slambda(this.pzr_1, this.qzr_1, this.rzr_1, completion); i.szr_1 = it; return i; }; function PersonEditViewModel$onClickSave$slambda$slambda_0(this$0, $savePerson, $consentToUpsert, resultContinuation) { var i = new PersonEditViewModel$onClickSave$slambda$slambda(this$0, $savePerson, $consentToUpsert, resultContinuation); var l = function (it, $completion) { return i.yzr(it, $completion); }; l.$arity = 1; return l; } function _get_apiUrlConfig__mldllg_4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kzo_1; apiUrlConfig$factory_10(); return this_0.t2(); } function _get_entityUid__ovkepw($this) { Companion_getInstance_117(); var tmp0_safe_receiver = $this.vqn_1.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } function _get_phoneNumValidatorUseCase__4guu7i($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nzo_1; phoneNumValidatorUseCase$factory_0(); return this_0.t2(); } function _get_genderConfig__kyr0zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.rzo_1; genderConfig$factory_2(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.szo_1; enqueueSavePictureUseCase$factory_0(); return this_0.t2(); } function _get_addNewPersonUseCase__raa2qa($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tzo_1; addNewPersonUseCase$factory_0(); return this_0.t2(); } function hasErrors_4(_this__u8e3s4, $this) { return ((((((((!(_this__u8e3s4.czp_1 == null) ? true : !(_this__u8e3s4.ezp_1 == null)) ? true : !(_this__u8e3s4.gzp_1 == null)) ? true : !(_this__u8e3s4.hzp_1 == null)) ? true : !(_this__u8e3s4.kzp_1 == null)) ? true : !(_this__u8e3s4.lzp_1 == null)) ? true : !(_this__u8e3s4.jzp_1 == null)) ? true : !(_this__u8e3s4.fzp_1 == null)) ? true : !(_this__u8e3s4.izp_1 == null)) ? true : !(_this__u8e3s4.mzp_1 == null); } function Companion_185() { Companion_instance_233 = this; this.zzr_1 = 'picState'; this.azs_1 = 'PersonEditView'; this.bzs_1 = 'Register'; this.czs_1 = listOf(['PersonEditView', 'Register']); this.dzs_1 = 'RegMode'; this.ezs_1 = 'DateOfBirth'; this.fzs_1 = 'RegViaLink'; this.gzs_1 = 0; this.hzs_1 = 1; this.izs_1 = 2; var tmp = this; Companion_getInstance_117(); Companion_getInstance_117(); Companion_getInstance_126(); Companion_getInstance_126(); tmp.jzs_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'next', 'RegViaLink', 'DateOfBirth', 'RegMode', 'noSessionChange']); this.kzs_1 = 'initDob'; } var Companion_instance_233; function Companion_getInstance_203() { if (Companion_instance_233 == null) new Companion_185(); return Companion_instance_233; } function PersonEditViewModel$slambda(this$0, resultContinuation) { this.tzs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; if (!(this.tzs_1.jzo_1 === 0) ? this.tzs_1.dqu_1.equals(new Long(0, 0)) : false) { this.vzs_1 = true; this.id_1 = 4; continue $sm; } else { if (!this.tzs_1.dqu_1.equals(new Long(0, 0)) ? this.tzs_1.nqo().equals(this.tzs_1.dqu_1) : false) { this.vzs_1 = true; this.id_1 = 4; continue $sm; } else { if (this.tzs_1.dqu_1.equals(new Long(0, 0))) { this.id_1 = 2; var tmp_0 = this.uzs_1.q7f(); var tmp_1 = this.tzs_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.vi0(tmp_1, new Long(1024, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 1; var tmp_2 = this.uzs_1.q7f(); var tmp_3 = this.tzs_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_2.vi0(tmp_3, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 1: this.vzs_1 = suspendResult; this.id_1 = 4; continue $sm; case 2: this.vzs_1 = suspendResult; this.id_1 = 4; continue $sm; case 3: throw this.ld_1; case 4: return this.vzs_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda).enz = function (db, completion) { var i = new PersonEditViewModel$slambda(this.tzs_1, completion); i.uzs_1 = db; return i; }; function PersonEditViewModel$slambda_0(this$0, resultContinuation) { var i = new PersonEditViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.hzo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel..' call var nextValue = prevValue.ozp(VOID, VOID, VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ezt_1 = this$0; this.fzt_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = async(this.gzt_1, VOID, VOID, PersonEditViewModel$slambda$slambda_0(this.ezt_1, this.fzt_1, null)); suspendResult = awaitAll([tmp_0, async(this.gzt_1, VOID, VOID, PersonEditViewModel$slambda$slambda_2(this.ezt_1, this.fzt_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.ezt_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (hasFlag(this.ezt_1.jzo_1, 1)) { tmp_1 = this.ezt_1.vqo().soj(strings_getInstance().umk_1); } else { tmp_1 = this.ezt_1.vqo().soj(strings_getInstance().on3_1); } var tmp_2 = tmp_1; var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_2, VOID, PersonEditViewModel$onClickSave$ref(this.ezt_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_3; if (hasFlag(this.ezt_1.jzo_1, 2)) { tmp_3 = new PersonParentJoin(); } else { tmp_3 = null; } var personParentJoin = tmp_3; l$ret$3: do { var this_1 = this.ezt_1.hzo_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ozp(VOID, VOID, VOID, VOID, true, personParentJoin); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.ezt_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new PersonEditViewModel$slambda_1(this.ezt_1, this.fzt_1, completion); i.gzt_1 = $this$launchIfHasPermission; return i; }; function PersonEditViewModel$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new PersonEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onEntityChanged$lambda(this$0, $entity) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $entity.h96_1; tmp.h96_1 = this$0.qzo_1.vpe(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs, ''); return Unit_instance; }; } function PersonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.pzt_1 = $commitDelay; this.qzt_1 = $entity; this.rzt_1 = $this; this.szt_1 = $key; this.tzt_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.pzt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.qzt_1 == null)) { this.id_1 = 2; suspendResult = this.rzt_1.bqp(this.rzt_1.vqn_1, this.szt_1, this.tzt_1, this.qzt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new PersonEditViewModel$onEntityChanged$slambda(this.pzt_1, this.qzt_1, this.rzt_1, this.szt_1, this.tzt_1, completion); i.uzt_1 = $this$launch; return i; }; function PersonEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new PersonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation) { this.dzu_1 = this$0; this.ezu_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.dzu_1.bqp(this.dzu_1.vqn_1, 'picState', Companion_instance_7.o4r(), this.ezu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).w1m = function ($this$launch, completion) { var i = new PersonEditViewModel$onPersonPictureChanged$slambda(this.dzu_1, this.ezu_1, completion); i.fzu_1 = $this$launch; return i; }; function PersonEditViewModel$onPersonPictureChanged$slambda_0(this$0, $personPicture, resultContinuation) { var i = new PersonEditViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$lambda($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_safe_receiver = $this$shallowCopy.l96_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.text.trim' call tmp_0 = toString(trim(isCharSequence(tmp0_safe_receiver) ? tmp0_safe_receiver : THROW_CCE())); } var tmp1_safe_receiver = tmp_0; tmp.l96_1 = tmp1_safe_receiver == null ? null : replace(tmp1_safe_receiver, ' ', ''); var tmp_1 = $this$shallowCopy; var tmp2_safe_receiver = $this$shallowCopy.k96_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = null; } else { // Inline function 'kotlin.text.trim' call tmp_2 = toString(trim(isCharSequence(tmp2_safe_receiver) ? tmp2_safe_receiver : THROW_CCE())); } tmp_1.k96_1 = tmp_2; return Unit_instance; } function PersonEditViewModel$onClickSave$slambda($isRegistrationMode, this$0, $savePerson, $requiredFieldMessage, resultContinuation) { this.ozu_1 = $isRegistrationMode; this.pzu_1 = this$0; this.qzu_1 = $savePerson; this.rzu_1 = $requiredFieldMessage; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 14; if (this.ozu_1) { this.tzu_1 = this.pzu_1.hzo_1.t2().azp_1; this.uzu_1 = this.pzu_1.hzo_1.t2().wzo_1; var tmp_0 = this; var tmp$ret$0; l$ret$1: do { var this_0 = this.pzu_1.hzo_1; while (true) { var prevValue = this_0.t2(); var tmp_1; var this_1 = this.qzu_1.h96_1; if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_1 = this.rzu_1; } else { tmp_1 = null; } var tmp3_usernameError = tmp_1; var tmp_2; var this_2 = this.uzu_1; if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.rzu_1; } else { tmp_2 = null; } var tmp4_passwordError = tmp_2; var tmp_3; if (!hasFlag(this.pzu_1.jzo_1, 2)) { tmp_3 = null; } else { var tmp0_safe_receiver = this.tzu_1; var this_3 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ig8_1; if (this_3 == null ? true : charSequenceLength(this_3) === 0) { tmp_3 = this.rzu_1; } else { var tmp1_safe_receiver = this.tzu_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ig8_1; var tmp_4; if (tmp2_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.pzu_1.ozo_1.wp9(tmp2_safe_receiver); } if (tmp_4 == null) { tmp_3 = this.pzu_1.vqo().soj(strings_getInstance().zna_1); } else { tmp_3 = null; } } } var tmp5_parentContactError = tmp_3; var tmp_5; if (this.qzu_1.p96_1.equals(new Long(0, 0))) { tmp_5 = this.rzu_1; } else { tmp_5 = null; } var tmp6_dateOfBirthError = tmp_5; var nextValue = prevValue.ozp(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_usernameError, VOID, tmp4_passwordError, VOID, VOID, tmp6_dateOfBirthError, tmp5_parentContactError); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.vzu_1 = tmp$ret$0; if (hasErrors_4(this.vzu_1, this.pzu_1) ? true : this.uzu_1 == null) { this.pzu_1.xqo(Companion_getInstance_98().pq7_1); l$ret$3: do { var this_4 = this.pzu_1.hzo_1; while (true) { var prevValue_0 = this_4.t2(); var nextValue_0 = prevValue_0.ozp(VOID, VOID, VOID, VOID, true); if (this_4.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } this.id_1 = 9; continue $sm; } else { var tmp_6; if (!this.pzu_1.dqu_1.equals(new Long(0, 0)) ? isDateOfBirthAMinor(Companion_getInstance_6().mmh(this.qzu_1.p96_1)) : false) { var tmp_7 = Companion_getInstance_6(); var tmp0_safe_receiver_0 = this.pzu_1.vqn_1.ba('initDob'); var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_6 = !isDateOfBirthAMinor(tmp_7.mmh(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)); } else { tmp_6 = false; } if (tmp_6) { this.id_1 = 1; suspendResult = this.pzu_1.rqo().y7e().ygs(this.qzu_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.yzu_1 = false; this.id_1 = 2; continue $sm; } } case 1: this.zzu_1 = suspendResult; this.yzu_1 = !this.zzu_1; this.id_1 = 2; continue $sm; case 2: if (this.yzu_1) { var tmp_8 = this; var this_5 = new PersonParentJoin(); this_5.gg8_1 = this.qzu_1.g96_1; this_5.fg8_1 = this.pzu_1.lqo().poa().ckz_1; var tmp_9 = this_5; tmp_9.lg8_1 = 1; this_5.mg8_1 = systemTimeInMillis(); tmp_8.xzu_1 = this_5; this.id_1 = 3; continue $sm; } else { var tmp_10 = this; tmp_10.xzu_1 = null; this.id_1 = 3; continue $sm; } case 3: this.azv_1 = this.xzu_1; this.id_1 = 4; var tmp_11 = this.pzu_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_11, VOID, PersonEditViewModel$onClickSave$slambda$slambda_0(this.pzu_1, this.qzu_1, this.azv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.bzv_1 = this.pzu_1.hzo_1.t2().yzo_1; if (!(this.bzv_1 == null)) { this.bzv_1.f97_1 = this.qzu_1.g96_1; this.bzv_1.g97_1 = systemTimeInMillis(); var tmp_12 = this; Companion_getInstance_124(); var tmp2_elvis_lhs = this.pzu_1.vqn_1.ba('initPicUri'); tmp_12.czv_1 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; this.dzv_1 = this.bzv_1.h97_1; if (!(this.czv_1 === this.dzv_1)) { this.id_1 = 5; suspendResult = this.pzu_1.pqo().g7e().yh3(this.bzv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 7; continue $sm; } } else { this.id_1 = 8; continue $sm; } case 5: this.id_1 = 6; var tmp_13 = _get_enqueueSavePictureUseCase__rl1s31(this.pzu_1); var tmp_14 = this.qzu_1.g96_1; suspendResult = tmp_13.dos(tmp_14, 50, this.dzv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.id_1 = 7; continue $sm; case 7: this.id_1 = 8; continue $sm; case 8: var tmp_15 = this; tmp_15.ezv_1 = this.pzu_1.vqn_1.ba('goToOnPersonSelected'); if (!(this.ezv_1 == null)) { var tmp_16 = UMFileUtil_getInstance().parseURLQueryString(this.ezv_1); Companion_getInstance_117(); var args = plus_0(tmp_16, mapOf_0(to('personUid', this.qzu_1.g96_1.toString()))); this.pzu_1.xqn_1.tp6(substringBefore_0(this.ezv_1, '?'), args); } else { this.pzu_1.fqu('PersonDetailView', this.qzu_1.g96_1, this.qzu_1); } this.id_1 = 17; continue $sm; case 9: this.id_1 = 10; continue $sm; case 10: this.jd_1 = 13; this.jd_1 = 12; this.id_1 = 11; suspendResult = this.pzu_1.lqo().voa(this.qzu_1, this.uzu_1, this.pzu_1.lzo_1, new AccountRegisterOptions(!hasFlag(this.pzu_1.jzo_1, 2) ? !this.pzu_1.uzo_1 : false, this.tzu_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 11: var registeredPerson = suspendResult; var tmp_17 = this; var tmp_18; if (hasFlag(this.pzu_1.jzo_1, 2)) { var goOptions = new UstadGoOptions('RegisterAgeRedirect', true); var this_6 = LinkedHashMap_init_$Create$(); var key = 'username'; var tmp0_elvis_lhs = this.qzu_1.h96_1; var value = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; this_6.s(key, value); var key_0 = 'parentContact'; var tmp1_safe_receiver_0 = this.tzu_1; var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ig8_1; var value_0 = tmp2_elvis_lhs_0 == null ? '' : tmp2_elvis_lhs_0; this_6.s(key_0, value_0); var key_1 = 'password'; var tmp3_elvis_lhs = this.pzu_1.hzo_1.t2().wzo_1; var value_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; this_6.s(key_1, value_1); Companion_getInstance_117(); putFromSavedStateIfPresent(this_6, this.pzu_1.vqn_1, 'popUpToOnFinish'); var args_0 = this_6; this.pzu_1.xqn_1.gqa('WaitForParent', args_0, goOptions); tmp_18 = Unit_instance; } else { this.pzu_1.hqv(this.pzu_1.xqn_1, appendSelectedAccount(this.pzu_1.mzo_1, registeredPerson.g96_1, new LearningSpace(this.pzu_1.lzo_1)), new UstadGoOptions(VOID, VOID, true)); tmp_18 = Unit_instance; } tmp_17.wzu_1 = tmp_18; this.jd_1 = 14; this.id_1 = 16; continue $sm; case 12: this.jd_1 = 13; var tmp_19 = this.ld_1; if (tmp_19 instanceof Exception) { var e = this.ld_1; if (e instanceof IllegalStateException) { l$ret$7: do { var this_7 = this.pzu_1.hzo_1; while (true) { var prevValue_1 = this_7.t2(); var nextValue_1 = prevValue_1.ozp(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.pzu_1.vqo().soj(strings_getInstance().fn8_1)); if (this_7.z1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); } else { this.pzu_1.tqo().wq7(new Snack(this.pzu_1.vqo().soj(strings_getInstance().hmj_1))); } this.fzv_1 = Unit_instance; this.jd_1 = 14; this.id_1 = 15; var tmp_20 = this; continue $sm; } else { throw this.ld_1; } case 13: this.jd_1 = 14; var t = this.ld_1; this.pzu_1.xqo(Companion_getInstance_98().pq7_1); l$ret$11: do { var this_8 = this.pzu_1.hzo_1; while (true) { var prevValue_2 = this_8.t2(); var nextValue_2 = prevValue_2.ozp(VOID, VOID, VOID, VOID, true); if (this_8.z1k(prevValue_2, nextValue_2)) { break l$ret$11; } } } while (false); throw t; case 14: throw this.ld_1; case 15: this.jd_1 = 14; this.pzu_1.xqo(Companion_getInstance_98().pq7_1); l$ret$13: do { var this_9 = this.pzu_1.hzo_1; while (true) { var prevValue_3 = this_9.t2(); var nextValue_3 = prevValue_3.ozp(VOID, VOID, VOID, VOID, true); if (this_9.z1k(prevValue_3, nextValue_3)) { break l$ret$13; } } } while (false); return Unit_instance; case 16: this.jd_1 = 14; this.pzu_1.xqo(Companion_getInstance_98().pq7_1); l$ret$15: do { var this_10 = this.pzu_1.hzo_1; while (true) { var prevValue_4 = this_10.t2(); var nextValue_4 = prevValue_4.ozp(VOID, VOID, VOID, VOID, true); if (this_10.z1k(prevValue_4, nextValue_4)) { break l$ret$15; } } } while (false); this.id_1 = 17; continue $sm; case 17: return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 14) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(PersonEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new PersonEditViewModel$onClickSave$slambda(this.ozu_1, this.pzu_1, this.qzu_1, this.rzu_1, completion); i.szu_1 = $this$launch; return i; }; function PersonEditViewModel$onClickSave$slambda_0($isRegistrationMode, this$0, $savePerson, $requiredFieldMessage, resultContinuation) { var i = new PersonEditViewModel$onClickSave$slambda($isRegistrationMode, this$0, $savePerson, $requiredFieldMessage, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel(di, savedStateHandle, destName) { Companion_getInstance_203(); destName = destName === VOID ? 'PersonEditView' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.hzo_1 = MutableStateFlow(new PersonEditUiState()); this.izo_1 = asStateFlow(this.hzo_1); var tmp = this; var tmp0_safe_receiver = savedStateHandle.ba('RegMode'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); tmp.jzo_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; var tmp_0 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.kzo_1 = Instance(this, tmp$ret$0, null).b5d(this, apiUrlConfig$factory_9()); var tmp_2 = this; Companion_getInstance_117(); var tmp0_elvis_lhs = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs_0 = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_4(this).eo6_1 : tmp0_elvis_lhs; tmp_2.lzo_1 = tmp1_elvis_lhs_0 == null ? 'http://localhost' : tmp1_elvis_lhs_0; var tmp_3 = this; Companion_getInstance_117(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('next'); tmp_3.mzo_1 = tmp0_elvis_lhs_0 == null ? this.vqo().bq6() : tmp0_elvis_lhs_0; var tmp_4 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(PhoneNumValidatorUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.nzo_1 = Instance(this, tmp$ret$2, null).b5d(this, phoneNumValidatorUseCase$factory()); this.ozo_1 = new ValidateEmailUseCase(); this.pzo_1 = new ValidateUsernameUseCase(); this.qzo_1 = new FilterUsernameUseCase(); var tmp_6 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_6.rzo_1 = Instance(this, tmp$ret$4, null).b5d(this, genderConfig$factory_1()); var tmp_8 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().roa(); var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_9 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp$ret$7 = tmp_9.i57(tmp$ret$6, context); var this_0 = On(this, tmp$ret$7, trigger); // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_8.szo_1 = Instance(this_0, tmp$ret$9, null).b5d(this, enqueueSavePictureUseCase$factory()); var tmp_12 = this; // Inline function 'org.kodein.di.instance' call var this_1 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$11 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); tmp_12.tzo_1 = Instance(this_1, tmp$ret$11, null).b5d(this, addNewPersonUseCase$factory()); var tmp_14 = this; Companion_getInstance_126(); var tmp0_safe_receiver_0 = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs_1 = tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0); tmp_14.uzo_1 = tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1; this.xqo(Companion_getInstance_98().oq7_1); var tmp_15; if (hasFlag(this.jzo_1, 1)) { tmp_15 = this.vqo().soj(strings_getInstance().unl_1); } else { tmp_15 = _get_entityUid__ovkepw(this).equals(new Long(0, 0)) ? this.vqo().soj(strings_getInstance().an2_1) : this.vqo().soj(strings_getInstance().bn2_1); } var title = tmp_15; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var tmp0_navigationVisible = !hasFlag(this.jzo_1, 1); var nextValue = new AppUiState(VOID, VOID, title, tmp0_navigationVisible, true); if (this_2.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.hzo_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var nextValue_0 = prevValue_0.ozp(VOID, VOID, _get_genderConfig__kyr0zc_0(this).gq8_1, VOID, VOID, VOID, this.jzo_1); if (this_3.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_16 = PersonEditViewModel$slambda_0(this, null); var tmp_17 = PersonEditViewModel$lambda(this); this.gqp(tmp_16, true, tmp_17, PersonEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(PersonEditViewModel).kzf = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hzo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onEntityChanged.' call var tmp; var tmp_0 = entity == null ? null : entity.h96_1; var tmp1_safe_receiver = this.hzo_1.t2().vzo_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h96_1))) { var tmp_1; if (entity == null) { tmp_1 = null; } else { tmp_1 = shallowCopy(entity, PersonEditViewModel$onEntityChanged$lambda(this, entity)); } tmp = tmp_1; } else { tmp = entity; } var tmp15_person = tmp; var tmp7_safe_receiver = prevValue.vzo_1; var tmp_2 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.m96_1; var tmp16_genderError = this.gqv(tmp_2, entity == null ? null : entity.m96_1, prevValue.jzp_1); var tmp9_safe_receiver = prevValue.vzo_1; var tmp_3 = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.i96_1; var tmp17_firstNameError = this.gqv(tmp_3, entity == null ? null : entity.i96_1, prevValue.kzp_1); var tmp11_safe_receiver = prevValue.vzo_1; var tmp_4 = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.j96_1; var tmp18_lastNameError = this.gqv(tmp_4, entity == null ? null : entity.j96_1, prevValue.lzp_1); var tmp13_safe_receiver = prevValue.vzo_1; var tmp_5 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.l96_1; var tmp19_phoneNumError = this.gqv(tmp_5, entity == null ? null : entity.l96_1, prevValue.mzp_1); var tmp5_safe_receiver = prevValue.vzo_1; var tmp_6 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.k96_1; var tmp20_emailError = this.gqv(tmp_6, entity == null ? null : entity.k96_1, prevValue.fzp_1); var tmp3_safe_receiver = prevValue.vzo_1; var tmp_7 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.h96_1; var tmp21_usernameError = this.gqv(tmp_7, entity == null ? null : entity.h96_1, prevValue.czp_1); var nextValue = prevValue.ozp(tmp15_person, VOID, VOID, VOID, VOID, VOID, VOID, tmp21_usernameError, VOID, VOID, tmp20_emailError, VOID, VOID, VOID, tmp16_genderError, tmp17_firstNameError, tmp18_lastNameError, tmp19_phoneNumError); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp_8 = this; var tmp_9 = this.mqo(); tmp_8.cqu_1 = launch(tmp_9, VOID, VOID, PersonEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonEditViewModel).gzv = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hzo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPasswordChanged.' call var nextValue = prevValue.ozp(VOID, password, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).hzv = function (pictureUri) { // Inline function 'kotlin.apply' call var this_0 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPersonPictureChanged.' call var tmp = this_0; var tmp0_safe_receiver = this.hzo_1.t2().yzo_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f97_1; tmp.f97_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.h97_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hzo_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPersonPictureChanged.' call var nextValue = prevValue.ozp(VOID, VOID, VOID, personPicture); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, PersonEditViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(PersonEditViewModel).izv = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hzo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onApprovalPersonParentJoinChanged.' call var nextValue = prevValue.ozp(VOID, VOID, VOID, VOID, VOID, personParentJoin); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).jzv = function (phoneNumSet) { // Inline function 'kotlin.takeIf' call var this_0 = this.hzo_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onNationalPhoneNumSetChanged.' call if (!(this_0.t2().nzp_1 === phoneNumSet)) { tmp = this_0; } else { tmp = null; } var tmp0_safe_receiver = tmp; if (tmp0_safe_receiver == null) null; else { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call while (true) { var prevValue = tmp0_safe_receiver.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onNationalPhoneNumSetChanged.' call var nextValue = prevValue.ozp(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, phoneNumSet); if (tmp0_safe_receiver.z1k(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(PersonEditViewModel).ysb = function () { if (!this.hzo_1.t2().zzo_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hzo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var nextValue = prevValue.ozp(VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.xqo(Companion_getInstance_98().oq7_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hzo_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var nextValue_0 = prevValue_0.ozp(VOID, VOID, VOID, VOID, false); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.hzo_1.t2().vzo_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy(tmp0_safe_receiver, PersonEditViewModel$onClickSave$lambda); } var tmp1_elvis_lhs = tmp; var tmp_0; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp1_elvis_lhs; } var savePerson = tmp_0; var requiredFieldMessage = this.vqo().soj(strings_getInstance().cmo_1); var currentTime = systemTimeInMillis(); var isRegistrationMode = hasFlag(this.jzo_1, 1); var tmp2_safe_receiver = savePerson.k96_1; var tmp_1; if (tmp2_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call tmp_1 = this.ozo_1.wp9(tmp2_safe_receiver); } var validatedEmailAddr = tmp_1; var tmp_2; if (isRegistrationMode) { var tmp3_elvis_lhs = savePerson.h96_1; tmp_2 = this.pzo_1.wp9(tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs); } else { tmp_2 = null; } var validationResult = tmp_2; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.hzo_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var tmp_3; if (isRegistrationMode) { var tmp_4; if ((validationResult == null ? null : validationResult.ppp_1) == null) { tmp_4 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave..' call tmp_4 = this.vqo().soj(strings_getInstance().rmq_1); } tmp_3 = tmp_4; } else { tmp_3 = null; } var tmp3_usernameError = tmp_3; var tmp_5; var tmp_6; if (isRegistrationMode) { // Inline function 'kotlin.text.isNullOrBlank' call var this_3 = savePerson.h96_1; // Inline function 'kotlin.contracts.contract' call tmp_6 = this_3 == null ? true : isBlank(this_3); } else { tmp_6 = false; } if (tmp_6) { tmp_5 = this.vqo().soj(strings_getInstance().cmo_1); } else { tmp_5 = null; } var tmp4_passwordError = tmp_5; var tmp_7; if (savePerson.p96_1.c7(currentTime) > 0) { tmp_7 = this.vqo().soj(strings_getInstance().rmq_1); } else if (isRegistrationMode ? !isDateSet(savePerson.p96_1) : false) { tmp_7 = this.vqo().soj(strings_getInstance().cmo_1); } else { tmp_7 = null; } var tmp5_dateOfBirthError = tmp_7; var tmp_8; // Inline function 'kotlin.text.isNullOrEmpty' call var this_4 = savePerson.i96_1; // Inline function 'kotlin.contracts.contract' call if (this_4 == null ? true : charSequenceLength(this_4) === 0) { tmp_8 = requiredFieldMessage; } else { tmp_8 = null; } var tmp6_firstNameError = tmp_8; var tmp_9; // Inline function 'kotlin.text.isNullOrEmpty' call var this_5 = savePerson.j96_1; // Inline function 'kotlin.contracts.contract' call if (this_5 == null ? true : charSequenceLength(this_5) === 0) { tmp_9 = requiredFieldMessage; } else { tmp_9 = null; } var tmp7_lastNameError = tmp_9; var tmp_10; var tmp_11 = savePerson.m96_1; if (tmp_11 === 0) { tmp_10 = requiredFieldMessage; } else { tmp_10 = null; } var tmp8_genderError = tmp_10; var tmp_12; var tmp_13; if (this.hzo_1.t2().nzp_1) { var tmp2_safe_receiver_0 = savePerson.l96_1; var tmp_14; if (tmp2_safe_receiver_0 == null) { tmp_14 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave..' call tmp_14 = _get_phoneNumValidatorUseCase__4guu7i(this).kph(tmp2_safe_receiver_0); } tmp_13 = !(tmp_14 === true); } else { tmp_13 = false; } if (tmp_13) { tmp_12 = this.vqo().soj(strings_getInstance().rmq_1); } else { tmp_12 = null; } var tmp9_phoneNumError = tmp_12; var tmp_15; var tmp_16; // Inline function 'kotlin.text.isNullOrBlank' call var this_6 = savePerson.k96_1; // Inline function 'kotlin.contracts.contract' call if (!(this_6 == null ? true : isBlank(this_6))) { tmp_16 = validatedEmailAddr == null; } else { tmp_16 = false; } if (tmp_16) { tmp_15 = this.vqo().soj(strings_getInstance().rmq_1); } else { tmp_15 = null; } var tmp10_emailError = tmp_15; var nextValue_1 = prevValue_1.ozp(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_usernameError, VOID, tmp4_passwordError, tmp10_emailError, null, tmp5_dateOfBirthError, null, tmp8_genderError, tmp6_firstNameError, tmp7_lastNameError, tmp9_phoneNumError); if (this_2.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (hasErrors_4(this.hzo_1.t2(), this)) { this.xqo(Companion_getInstance_98().pq7_1); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_7 = this.hzo_1; while (true) { var prevValue_2 = this_7.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var nextValue_2 = prevValue_2.ozp(VOID, VOID, VOID, VOID, true); if (this_7.z1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } return Unit_instance; } var tmp_17 = this.mqo(); launch(tmp_17, VOID, VOID, PersonEditViewModel$onClickSave$slambda_0(isRegistrationMode, this, savePerson, requiredFieldMessage, null)); }; function PersonEditUiState(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) { person = person === VOID ? null : person; password = password === VOID ? null : password; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().iq8_1 : genderOptions; personPicture = personPicture === VOID ? null : personPicture; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; approvalPersonParentJoin = approvalPersonParentJoin === VOID ? null : approvalPersonParentJoin; registrationMode = registrationMode === VOID ? 0 : registrationMode; usernameError = usernameError === VOID ? null : usernameError; passwordConfirmedError = passwordConfirmedError === VOID ? null : passwordConfirmedError; passwordError = passwordError === VOID ? null : passwordError; emailError = emailError === VOID ? null : emailError; confirmError = confirmError === VOID ? null : confirmError; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; parentContactError = parentContactError === VOID ? null : parentContactError; genderError = genderError === VOID ? null : genderError; firstNameError = firstNameError === VOID ? null : firstNameError; lastNameError = lastNameError === VOID ? null : lastNameError; phoneNumError = phoneNumError === VOID ? null : phoneNumError; nationalPhoneNumSet = nationalPhoneNumSet === VOID ? false : nationalPhoneNumSet; this.vzo_1 = person; this.wzo_1 = password; this.xzo_1 = genderOptions; this.yzo_1 = personPicture; this.zzo_1 = fieldsEnabled; this.azp_1 = approvalPersonParentJoin; this.bzp_1 = registrationMode; this.czp_1 = usernameError; this.dzp_1 = passwordConfirmedError; this.ezp_1 = passwordError; this.fzp_1 = emailError; this.gzp_1 = confirmError; this.hzp_1 = dateOfBirthError; this.izp_1 = parentContactError; this.jzp_1 = genderError; this.kzp_1 = firstNameError; this.lzp_1 = lastNameError; this.mzp_1 = phoneNumError; this.nzp_1 = nationalPhoneNumSet; } protoOf(PersonEditUiState).kzv = function () { return !(this.azp_1 == null); }; protoOf(PersonEditUiState).dzm = function () { return !hasFlag(this.bzp_1, 1); }; protoOf(PersonEditUiState).sz1 = function () { return hasFlag(this.bzp_1, 1); }; protoOf(PersonEditUiState).lzv = function () { return hasFlag(this.bzp_1, 1); }; protoOf(PersonEditUiState).jzm = function () { return !hasFlag(this.bzp_1, 2); }; protoOf(PersonEditUiState).izm = function () { return !hasFlag(this.bzp_1, 2); }; protoOf(PersonEditUiState).hzm = function () { return !hasFlag(this.bzp_1, 2); }; protoOf(PersonEditUiState).mzv = function (person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) { return new PersonEditUiState(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet); }; protoOf(PersonEditUiState).ozp = function (person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet, $super) { person = person === VOID ? this.vzo_1 : person; password = password === VOID ? this.wzo_1 : password; genderOptions = genderOptions === VOID ? this.xzo_1 : genderOptions; personPicture = personPicture === VOID ? this.yzo_1 : personPicture; fieldsEnabled = fieldsEnabled === VOID ? this.zzo_1 : fieldsEnabled; approvalPersonParentJoin = approvalPersonParentJoin === VOID ? this.azp_1 : approvalPersonParentJoin; registrationMode = registrationMode === VOID ? this.bzp_1 : registrationMode; usernameError = usernameError === VOID ? this.czp_1 : usernameError; passwordConfirmedError = passwordConfirmedError === VOID ? this.dzp_1 : passwordConfirmedError; passwordError = passwordError === VOID ? this.ezp_1 : passwordError; emailError = emailError === VOID ? this.fzp_1 : emailError; confirmError = confirmError === VOID ? this.gzp_1 : confirmError; dateOfBirthError = dateOfBirthError === VOID ? this.hzp_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.izp_1 : parentContactError; genderError = genderError === VOID ? this.jzp_1 : genderError; firstNameError = firstNameError === VOID ? this.kzp_1 : firstNameError; lastNameError = lastNameError === VOID ? this.lzp_1 : lastNameError; phoneNumError = phoneNumError === VOID ? this.mzp_1 : phoneNumError; nationalPhoneNumSet = nationalPhoneNumSet === VOID ? this.nzp_1 : nationalPhoneNumSet; return $super === VOID ? this.mzv(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) : $super.mzv.call(this, person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet); }; protoOf(PersonEditUiState).toString = function () { return 'PersonEditUiState(person=' + this.vzo_1 + ', password=' + this.wzo_1 + ', genderOptions=' + this.xzo_1 + ', personPicture=' + this.yzo_1 + ', fieldsEnabled=' + this.zzo_1 + ', approvalPersonParentJoin=' + this.azp_1 + ', registrationMode=' + this.bzp_1 + ', usernameError=' + this.czp_1 + ', passwordConfirmedError=' + this.dzp_1 + ', passwordError=' + this.ezp_1 + ', emailError=' + this.fzp_1 + ', confirmError=' + this.gzp_1 + ', dateOfBirthError=' + this.hzp_1 + ', parentContactError=' + this.izp_1 + ', genderError=' + this.jzp_1 + ', firstNameError=' + this.kzp_1 + ', lastNameError=' + this.lzp_1 + ', phoneNumError=' + this.mzp_1 + ', nationalPhoneNumSet=' + this.nzp_1 + ')'; }; protoOf(PersonEditUiState).hashCode = function () { var result = this.vzo_1 == null ? 0 : this.vzo_1.hashCode(); result = imul(result, 31) + (this.wzo_1 == null ? 0 : getStringHashCode(this.wzo_1)) | 0; result = imul(result, 31) + hashCode(this.xzo_1) | 0; result = imul(result, 31) + (this.yzo_1 == null ? 0 : this.yzo_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.zzo_1) | 0; result = imul(result, 31) + (this.azp_1 == null ? 0 : this.azp_1.hashCode()) | 0; result = imul(result, 31) + this.bzp_1 | 0; result = imul(result, 31) + (this.czp_1 == null ? 0 : getStringHashCode(this.czp_1)) | 0; result = imul(result, 31) + (this.dzp_1 == null ? 0 : getStringHashCode(this.dzp_1)) | 0; result = imul(result, 31) + (this.ezp_1 == null ? 0 : getStringHashCode(this.ezp_1)) | 0; result = imul(result, 31) + (this.fzp_1 == null ? 0 : getStringHashCode(this.fzp_1)) | 0; result = imul(result, 31) + (this.gzp_1 == null ? 0 : getStringHashCode(this.gzp_1)) | 0; result = imul(result, 31) + (this.hzp_1 == null ? 0 : getStringHashCode(this.hzp_1)) | 0; result = imul(result, 31) + (this.izp_1 == null ? 0 : getStringHashCode(this.izp_1)) | 0; result = imul(result, 31) + (this.jzp_1 == null ? 0 : getStringHashCode(this.jzp_1)) | 0; result = imul(result, 31) + (this.kzp_1 == null ? 0 : getStringHashCode(this.kzp_1)) | 0; result = imul(result, 31) + (this.lzp_1 == null ? 0 : getStringHashCode(this.lzp_1)) | 0; result = imul(result, 31) + (this.mzp_1 == null ? 0 : getStringHashCode(this.mzp_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.nzp_1) | 0; return result; }; protoOf(PersonEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonEditUiState)) return false; var tmp0_other_with_cast = other instanceof PersonEditUiState ? other : THROW_CCE(); if (!equals(this.vzo_1, tmp0_other_with_cast.vzo_1)) return false; if (!(this.wzo_1 == tmp0_other_with_cast.wzo_1)) return false; if (!equals(this.xzo_1, tmp0_other_with_cast.xzo_1)) return false; if (!equals(this.yzo_1, tmp0_other_with_cast.yzo_1)) return false; if (!(this.zzo_1 === tmp0_other_with_cast.zzo_1)) return false; if (!equals(this.azp_1, tmp0_other_with_cast.azp_1)) return false; if (!(this.bzp_1 === tmp0_other_with_cast.bzp_1)) return false; if (!(this.czp_1 == tmp0_other_with_cast.czp_1)) return false; if (!(this.dzp_1 == tmp0_other_with_cast.dzp_1)) return false; if (!(this.ezp_1 == tmp0_other_with_cast.ezp_1)) return false; if (!(this.fzp_1 == tmp0_other_with_cast.fzp_1)) return false; if (!(this.gzp_1 == tmp0_other_with_cast.gzp_1)) return false; if (!(this.hzp_1 == tmp0_other_with_cast.hzp_1)) return false; if (!(this.izp_1 == tmp0_other_with_cast.izp_1)) return false; if (!(this.jzp_1 == tmp0_other_with_cast.jzp_1)) return false; if (!(this.kzp_1 == tmp0_other_with_cast.kzp_1)) return false; if (!(this.lzp_1 == tmp0_other_with_cast.lzp_1)) return false; if (!(this.mzp_1 == tmp0_other_with_cast.mzp_1)) return false; if (!(this.nzp_1 === tmp0_other_with_cast.nzp_1)) return false; return true; }; function apiUrlConfig$factory_9() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_4(receiver); }, null); } function phoneNumValidatorUseCase$factory() { return getPropertyCallableRef('phoneNumValidatorUseCase', 1, KProperty1, function (receiver) { return _get_phoneNumValidatorUseCase__4guu7i(receiver); }, null); } function genderConfig$factory_1() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc_0(receiver); }, null); } function enqueueSavePictureUseCase$factory() { return getPropertyCallableRef('enqueueSavePictureUseCase', 1, KProperty1, function (receiver) { return _get_enqueueSavePictureUseCase__rl1s31(receiver); }, null); } function addNewPersonUseCase$factory() { return getPropertyCallableRef('addNewPersonUseCase', 1, KProperty1, function (receiver) { return _get_addNewPersonUseCase__raa2qa(receiver); }, null); } function apiUrlConfig$factory_10() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_4(receiver); }, null); } function phoneNumValidatorUseCase$factory_0() { return getPropertyCallableRef('phoneNumValidatorUseCase', 1, KProperty1, function (receiver) { return _get_phoneNumValidatorUseCase__4guu7i(receiver); }, null); } function genderConfig$factory_2() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc_0(receiver); }, null); } function enqueueSavePictureUseCase$factory_0() { return getPropertyCallableRef('enqueueSavePictureUseCase', 1, KProperty1, function (receiver) { return _get_enqueueSavePictureUseCase__rl1s31(receiver); }, null); } function addNewPersonUseCase$factory_0() { return getPropertyCallableRef('addNewPersonUseCase', 1, KProperty1, function (receiver) { return _get_addNewPersonUseCase__raa2qa(receiver); }, null); } function LearningSpaceListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.vzv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).xzv = function (learningSpaceList, $completion) { var tmp = this.yzv(learningSpaceList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.xzv((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.vzv_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bzw(VOID, this.wzv_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).yzv = function (learningSpaceList, completion) { var i = new LearningSpaceListViewModel$slambda$slambda$slambda(this.vzv_1, completion); i.wzv_1 = learningSpaceList; return i; }; function LearningSpaceListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new LearningSpaceListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (learningSpaceList, $completion) { return i.xzv(learningSpaceList, $completion); }; l.$arity = 1; return l; } function LearningSpaceListViewModel$slambda$slambda(this$0, resultContinuation) { this.kzw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LearningSpaceListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(LearningSpaceListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.kzw_1.nzx_1.fl4(); var tmp_1 = LearningSpaceListViewModel$slambda$slambda$slambda_0(this.kzw_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_35(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LearningSpaceListViewModel$slambda$slambda).m78 = function (completion) { return new LearningSpaceListViewModel$slambda$slambda(this.kzw_1, completion); }; function LearningSpaceListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new LearningSpaceListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function _get_impl__d88w17_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lzx_1; impl$factory_4(); return this_0.t2(); } function _get_goToLearningSpaceUseCase__yq7hh5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mzx_1; goToLearningSpaceUseCase$factory_0(); return this_0.t2(); } function Companion_186() { this.ozx_1 = 'LearningSpaceList'; this.pzx_1 = 'stateUrl'; } var Companion_instance_234; function Companion_getInstance_204() { return Companion_instance_234; } function sam$kotlinx_coroutines_flow_FlowCollector$0_35(function_0) { this.qzx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_35).u1d = function (value, $completion) { return this.qzx_1(value, $completion); }; function LearningSpaceListViewModel$slambda(this$0, resultContinuation) { this.zzx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LearningSpaceListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LearningSpaceListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.zzx_1.qqw_1, LearningSpaceListViewModel$slambda$slambda_0(this.zzx_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(LearningSpaceListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new LearningSpaceListViewModel$slambda(this.zzx_1, completion); i.azy_1 = $this$launch; return i; }; function LearningSpaceListViewModel$slambda_0(this$0, resultContinuation) { var i = new LearningSpaceListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LearningSpaceListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new LearningSpaceListUiState(), 'LearningSpaceList'); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.lzx_1 = Instance(this, tmp$ret$0, null).b5d(this, impl$factory_3()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GoToLearningSpaceUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.mzx_1 = Instance(this, tmp$ret$2, null).b5d(this, goToLearningSpaceUseCase$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var tmp_4 = get_direct(di).g58(); // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(CentralAppConfigDbDataSource), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_3.nzx_1 = tmp_4.e58(tmp$ret$4, null).cl3(); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.learningspacelist.LearningSpaceListViewModel.' call var tmp0_title = _get_impl__d88w17_1(this).soj(strings_getInstance().qnq_1); var nextValue = prevValue.hq7(VOID, VOID, tmp0_title, false, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqw_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.learningspacelist.LearningSpaceListViewModel.' call var tmp0_elvis_lhs = savedStateHandle.ba(Companion_instance_234.pzx_1); var nextValue_0 = prevValue_0.bzw(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.mqo(); launch(tmp_6, VOID, VOID, LearningSpaceListViewModel$slambda_0(this, null)); } protoOf(LearningSpaceListViewModel).mwm = function () { Companion_getInstance_219(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.learningspacelist.LearningSpaceListViewModel.onClickNext.' call Companion_getInstance_126(); this.iqp(this_0, 'next'); this.jqp(this_0, Companion_getInstance_214().wr8_1); var tmp$ret$2 = this_0.f3(); this.xqn_1.tp6('LearningSpaceEnterLink', tmp$ret$2); }; protoOf(LearningSpaceListViewModel).bzy = function (learningSpace) { var tmp; Companion_getInstance_214(); var tmp_0 = this.vqn_1.ba('newOrExisting'); Companion_getInstance_214(); if (tmp_0 === 'new') { tmp = 'RegisterAgeRedirect'; } else { tmp = 'Login'; } var viewName = tmp; // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.learningspacelist.LearningSpaceListViewModel.onSelectLearningSpace.' call Companion_getInstance_126(); this.iqp(this_0, 'next'); this.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_117(); this_0.s('learningSpaceUrl', learningSpace); var args = this_0.f3(); _get_goToLearningSpaceUseCase__yq7hh5(this).qpi(learningSpace, this.xqn_1, args, viewName); }; protoOf(LearningSpaceListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(LearningSpaceListViewModel).lqx = function () { }; function LearningSpaceListUiState(siteLink, learningSpaces) { siteLink = siteLink === VOID ? '' : siteLink; learningSpaces = learningSpaces === VOID ? emptyList() : learningSpaces; this.zzv_1 = siteLink; this.azw_1 = learningSpaces; } protoOf(LearningSpaceListUiState).czy = function (siteLink, learningSpaces) { return new LearningSpaceListUiState(siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).bzw = function (siteLink, learningSpaces, $super) { siteLink = siteLink === VOID ? this.zzv_1 : siteLink; learningSpaces = learningSpaces === VOID ? this.azw_1 : learningSpaces; return $super === VOID ? this.czy(siteLink, learningSpaces) : $super.czy.call(this, siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).toString = function () { return 'LearningSpaceListUiState(siteLink=' + this.zzv_1 + ', learningSpaces=' + this.azw_1 + ')'; }; protoOf(LearningSpaceListUiState).hashCode = function () { var result = getStringHashCode(this.zzv_1); result = imul(result, 31) + hashCode(this.azw_1) | 0; return result; }; protoOf(LearningSpaceListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LearningSpaceListUiState)) return false; var tmp0_other_with_cast = other instanceof LearningSpaceListUiState ? other : THROW_CCE(); if (!(this.zzv_1 === tmp0_other_with_cast.zzv_1)) return false; if (!equals(this.azw_1, tmp0_other_with_cast.azw_1)) return false; return true; }; function impl$factory_3() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_1(receiver); }, null); } function goToLearningSpaceUseCase$factory() { return getPropertyCallableRef('goToLearningSpaceUseCase', 1, KProperty1, function (receiver) { return _get_goToLearningSpaceUseCase__yq7hh5(receiver); }, null); } function impl$factory_4() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_1(receiver); }, null); } function goToLearningSpaceUseCase$factory_0() { return getPropertyCallableRef('goToLearningSpaceUseCase', 1, KProperty1, function (receiver) { return _get_goToLearningSpaceUseCase__yq7hh5(receiver); }, null); } function PersonListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function PersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.lzy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda$slambda).gqg = function (hasPermissionToList, $completion) { var tmp = this.hqg(hasPermissionToList, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonListViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.lzy_1.qqw_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.mzy_1) { tmp_0 = this.lzy_1.rzz_1; } else { tmp_0 = PersonListViewModel$slambda$slambda$slambda$lambda; } var tmp0_personList = tmp_0; var tmp1_showInviteViaLink = !(this.lzy_1.szz_1 == null); var tmp2_inviteCode = this.lzy_1.szz_1; var tmp3_showInviteViaContact = this.lzy_1.tzz_1; var nextValue = prevValue.f100(tmp0_personList, VOID, VOID, VOID, tmp1_showInviteViaLink, tmp3_showInviteViaContact, tmp2_inviteCode, this.mzy_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.lzy_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.zq6_1.rq6(this.mzy_1)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonListViewModel$slambda$slambda$slambda).hqg = function (hasPermissionToList, completion) { var i = new PersonListViewModel$slambda$slambda$slambda(this.lzy_1, completion); i.mzy_1 = hasPermissionToList; return i; }; function PersonListViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new PersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (hasPermissionToList, $completion) { return i.gqg(hasPermissionToList, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda$slambda($hasPermissionToListFlow, this$0, resultContinuation) { this.o100_1 = $hasPermissionToListFlow; this.p100_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonListViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(PersonListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = distinctUntilChanged(this.o100_1); var tmp_1 = PersonListViewModel$slambda$slambda$slambda_0(this.p100_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_36(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonListViewModel$slambda$slambda).m78 = function (completion) { return new PersonListViewModel$slambda$slambda(this.o100_1, this.p100_1, completion); }; function PersonListViewModel$slambda$slambda_0($hasPermissionToListFlow, this$0, resultContinuation) { var i = new PersonListViewModel$slambda$slambda($hasPermissionToListFlow, this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function PersonListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.y100_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda_1).kt9 = function (it, $completion) { var tmp = this.lt9(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonListViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.kt9(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_container = this.z100_1; var hasAddPermission = tmp0_container.y6(); var hasViewAllPermission = tmp0_container.z6(); var hasBulkAddPermission = hasAddPermission ? hasViewAllPermission : false; l$ret$1: do { var this_0 = this.y100_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.f100(VOID, VOID, VOID, this.y100_1.vqw().equals(ListViewMode_PICKER_getInstance()) ? hasAddPermission : false, VOID, VOID, VOID, VOID, VOID, hasBulkAddPermission); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.y100_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(prevValue_0.sq6_1.nq7(this.y100_1.vqw().equals(ListViewMode_BROWSER_getInstance()) ? hasAddPermission : false)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonListViewModel$slambda$slambda_1).lt9 = function (it, completion) { var i = new PersonListViewModel$slambda$slambda_1(this.y100_1, completion); i.z100_1 = it; return i; }; function PersonListViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new PersonListViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.kt9(it, $completion); }; l.$arity = 1; return l; } function _get_setClipboardStringUseCase__31i1s1_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uzz_1; setClipboardStringUseCase$factory_4(); return this_0.t2(); } function onClickFab($this) { if ($this.qqw_1.t2().e100_1) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickFab.' call var nextValue = prevValue.f100(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } else { $this.lqx(); } } function Companion_187() { Companion_instance_235 = this; this.a101_1 = 'People'; this.b101_1 = 'PersonListHome'; this.c101_1 = listOf(['People', 'PersonListHome']); this.d101_1 = 'exlcudeFromClazz'; this.e101_1 = 'excludeAlreadySelectedList'; this.f101_1 = 'showAddViaInviteLink'; this.g101_1 = 'showAddViaContact'; this.h101_1 = 'role'; this.i101_1 = 'rptsl'; } var Companion_instance_235; function Companion_getInstance_205() { if (Companion_instance_235 == null) new Companion_187(); return Companion_instance_235; } function sam$kotlinx_coroutines_flow_FlowCollector$0_36(function_0) { this.j101_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_36).u1d = function (value, $completion) { return this.j101_1(value, $completion); }; function PersonListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.rqo().o7d().pg4(getSystemTimeInMillis(), this$0.nzz_1, this$0.pzz_1, this$0.nqo(), this$0.qqw_1.t2().xzz_1.oqd_1, toQueryLikeParam(this$0.zqn_1.t2().zq6_1.oq6_1)); }; } function PersonListViewModel$onClickFab$ref($boundThis) { var l = function () { onClickFab($boundThis); return Unit_instance; }; l.callableName = 'onClickFab'; return l; } function PersonListViewModel$slambda(this$0, $hasPermissionToListFlow, resultContinuation) { this.s101_1 = this$0; this.t101_1 = $hasPermissionToListFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.s101_1.qqw_1, PersonListViewModel$slambda$slambda_0(this.t101_1, this.s101_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new PersonListViewModel$slambda(this.s101_1, this.t101_1, completion); i.u101_1 = $this$launch; return i; }; function PersonListViewModel$slambda_0(this$0, $hasPermissionToListFlow, resultContinuation) { var i = new PersonListViewModel$slambda(this$0, $hasPermissionToListFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda_1(this$0, resultContinuation) { this.d102_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(PersonListViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.d102_1.rqo().q7f(); var tmp_1 = this.d102_1.nqo(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); var tmp_3 = tmp_0.xi0(tmp_1, tmp_2, new Long(8192, 0)); var tmp_4 = PersonListViewModel$slambda$slambda_2(this.d102_1, null); suspendResult = tmp_3.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_36(tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(PersonListViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new PersonListViewModel$slambda_1(this.d102_1, completion); i.e102_1 = $this$launch; return i; }; function PersonListViewModel$slambda_2(this$0, resultContinuation) { var i = new PersonListViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_205(); destinationName = destinationName === VOID ? 'People' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new PersonListUiState(), destinationName); var tmp = this; var tmp0_safe_receiver = savedStateHandle.ba('exlcudeFromClazz'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.nzz_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; var tmp0_safe_receiver_0 = savedStateHandle.ba('role'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_0.ozz_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; var tmp0_safe_receiver_1 = savedStateHandle.ba('excludeAlreadySelectedList'); var tmp1_safe_receiver = tmp0_safe_receiver_1 == null ? null : split(tmp0_safe_receiver_1, [',']); var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var destination = ArrayList_init_$Create$(); var tmp0_iterator = tmp1_safe_receiver.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.filterAlreadySelectedList.' call // Inline function 'kotlin.text.isNotEmpty' call if (charSequenceLength(element) > 0) { destination.i1(element); } } tmp_2 = destination; } var tmp2_safe_receiver = tmp_2; var tmp_3; if (tmp2_safe_receiver == null) { tmp_3 = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10)); var tmp0_iterator_0 = tmp2_safe_receiver.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.filterAlreadySelectedList.' call // Inline function 'kotlin.text.trim' call var tmp$ret$4 = toString(trim(isCharSequence(item) ? item : THROW_CCE())); var tmp$ret$5 = toLong_0(tmp$ret$4); destination_0.i1(tmp$ret$5); } tmp_3 = destination_0; } var tmp3_elvis_lhs = tmp_3; var tmp_4; if (tmp3_elvis_lhs == null) { // Inline function 'kotlin.collections.listOf' call tmp_4 = emptyList(); } else { tmp_4 = tmp3_elvis_lhs; } tmp_1.pzz_1 = tmp_4; var tmp_5 = this; var tmp0_safe_receiver_2 = savedStateHandle.ba('rptsl'); var tmp1_elvis_lhs_1 = tmp0_safe_receiver_2 == null ? null : toLong_0(tmp0_safe_receiver_2); tmp_5.qzz_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_6 = this; tmp_6.rzz_1 = PersonListViewModel$pagingSourceFactory$lambda(this); this.szz_1 = savedStateHandle.ba('showAddViaInviteLink'); this.tzz_1 = savedStateHandle.ba('showAddViaContact') === 'true'; var tmp_7 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_7.uzz_1 = Instance(this, tmp$ret$9, null).b5d(this, setClipboardStringUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.' call var tmp1_searchState = this.yqx(false); Companion_getInstance_126(); var tmp0_elvis_lhs = savedStateHandle.ba('t'); var tmp2_title = tmp0_elvis_lhs == null ? this.hqy(strings_getInstance().cmv_1, strings_getInstance().xnl_1) : tmp0_elvis_lhs; var tmp_9 = this.vqo().soj(strings_getInstance().zn1_1); var tmp_10 = FabIcon_ADD_getInstance(); var tmp3_fabState = new FabUiState(VOID, tmp_9, tmp_10, PersonListViewModel$onClickFab$ref(this)); var nextValue = prevValue.hq7(tmp3_fabState, VOID, tmp2_title, true, VOID, VOID, VOID, tmp1_searchState); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_11; if (this.qzz_1.equals(new Long(0, 0))) { tmp_11 = flowOf(true); } else { tmp_11 = this.rqo().q7f().wi0(this.nqo(), this.qzz_1); } var hasPermissionToListFlow = tmp_11; var tmp_12 = this.mqo(); launch(tmp_12, VOID, VOID, PersonListViewModel$slambda_0(this, hasPermissionToListFlow, null)); var tmp_13 = this.mqo(); launch(tmp_13, VOID, VOID, PersonListViewModel$slambda_2(this, null)); } protoOf(PersonListViewModel).kqx = function (searchText) { this.sqw_1.j1h(new RefreshCommand()); }; protoOf(PersonListViewModel).lt1 = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.f100(VOID, VOID, sortOption); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.sqw_1.j1h(new RefreshCommand()); }; protoOf(PersonListViewModel).f102 = function () { if (this.szz_1 == null) return Unit_instance; Companion_getInstance_126(); this.xqn_1.tp6('InviteWithLink', mapOf_0(to('inviteCode', this.szz_1))); }; protoOf(PersonListViewModel).g102 = function () { var tmp0_safe_receiver = this.qqw_1.t2().b100_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickCopyInviteCode.' call _get_setClipboardStringUseCase__31i1s1_1(this).yp1(tmp0_safe_receiver); this.tqo().wq7(new Snack(this.vqo().soj(strings_getInstance().cn9_1))); } }; protoOf(PersonListViewModel).h102 = function () { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickInviteViaContact.' call this_0.s('person_role', this.ozz_1.toString()); this_0.s('clazz_uid', this.nzz_1.toString()); var args = this_0.f3(); this.xqn_1.tp6('invite_via_contact', args); }; protoOf(PersonListViewModel).i102 = function () { this.xqn_1.tp6('BulkAddPersonSelectFile', emptyMap()); }; protoOf(PersonListViewModel).lqx = function () { Companion_getInstance_203(); var tmp0_safe_receiver = this.vqn_1.ba('goToOnPersonSelected'); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickAdd.' call tmp = mapOf_0(to('goToOnPersonSelected', tmp0_safe_receiver)); } var tmp1_elvis_lhs = tmp; this.dqy('PersonEditView', tmp1_elvis_lhs == null ? emptyMap() : tmp1_elvis_lhs); }; protoOf(PersonListViewModel).j102 = function (entry) { var goToOnPersonSelected = this.vqn_1.ba('goToOnPersonSelected'); if (!(goToOnPersonSelected == null)) { var tmp = UMFileUtil_getInstance().parseURLQueryString(goToOnPersonSelected); Companion_getInstance_117(); var args = plus_0(tmp, mapOf_0(to('personUid', entry.g96_1.toString()))); var goToDestName = substringBefore_0(goToOnPersonSelected, '?'); var popUpTo = this.vqn_1.ba('popUpToOnPersonSelected'); this.xqn_1.gqa(goToDestName, args, new UstadGoOptions(popUpTo, true)); } else { this.gqy('PersonDetailView', entry.g96_1, entry); } }; protoOf(PersonListViewModel).k102 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onDismissAddSheetOrDialog.' call var nextValue = prevValue.f100(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; function EmptyPagingSource() { PagingSource.call(this); } protoOf(EmptyPagingSource).q54 = function (params, $completion) { var tmp = Page_init_$Create$(emptyList(), null, null); return tmp instanceof LoadResult ? tmp : THROW_CCE(); }; function PersonListUiState$_init_$lambda_st3t8h() { return new EmptyPagingSource(); } function PersonListUiState(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) { var tmp; if (personList === VOID) { tmp = PersonListUiState$_init_$lambda_st3t8h; } else { tmp = personList; } personList = tmp; var tmp_0; if (sortOptions === VOID) { var tmp_1 = strings_getInstance().jmk_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().jmk_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().imk_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().imk_1; tmp_0 = listOf([tmp_2, tmp_4, tmp_6, new SortOrderOption(tmp_7, 4, false)]); } else { tmp_0 = sortOptions; } sortOptions = tmp_0; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; showAddItem = showAddItem === VOID ? false : showAddItem; showInviteViaLink = showInviteViaLink === VOID ? false : showInviteViaLink; showInviteViaContact = showInviteViaContact === VOID ? false : showInviteViaContact; inviteCode = inviteCode === VOID ? null : inviteCode; showSortOptions = showSortOptions === VOID ? true : showSortOptions; addSheetOrDialogVisible = addSheetOrDialogVisible === VOID ? false : addSheetOrDialogVisible; hasBulkImportPermission = hasBulkImportPermission === VOID ? false : hasBulkImportPermission; this.vzz_1 = personList; this.wzz_1 = sortOptions; this.xzz_1 = sortOption; this.yzz_1 = showAddItem; this.zzz_1 = showInviteViaLink; this.a100_1 = showInviteViaContact; this.b100_1 = inviteCode; this.c100_1 = showSortOptions; this.d100_1 = addSheetOrDialogVisible; this.e100_1 = hasBulkImportPermission; } protoOf(PersonListUiState).m102 = function (personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) { return new PersonListUiState(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission); }; protoOf(PersonListUiState).f100 = function (personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission, $super) { personList = personList === VOID ? this.vzz_1 : personList; sortOptions = sortOptions === VOID ? this.wzz_1 : sortOptions; sortOption = sortOption === VOID ? this.xzz_1 : sortOption; showAddItem = showAddItem === VOID ? this.yzz_1 : showAddItem; showInviteViaLink = showInviteViaLink === VOID ? this.zzz_1 : showInviteViaLink; showInviteViaContact = showInviteViaContact === VOID ? this.a100_1 : showInviteViaContact; inviteCode = inviteCode === VOID ? this.b100_1 : inviteCode; showSortOptions = showSortOptions === VOID ? this.c100_1 : showSortOptions; addSheetOrDialogVisible = addSheetOrDialogVisible === VOID ? this.d100_1 : addSheetOrDialogVisible; hasBulkImportPermission = hasBulkImportPermission === VOID ? this.e100_1 : hasBulkImportPermission; return $super === VOID ? this.m102(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) : $super.m102.call(this, personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission); }; protoOf(PersonListUiState).toString = function () { return 'PersonListUiState(personList=' + this.vzz_1 + ', sortOptions=' + this.wzz_1 + ', sortOption=' + this.xzz_1 + ', showAddItem=' + this.yzz_1 + ', showInviteViaLink=' + this.zzz_1 + ', showInviteViaContact=' + this.a100_1 + ', inviteCode=' + this.b100_1 + ', showSortOptions=' + this.c100_1 + ', addSheetOrDialogVisible=' + this.d100_1 + ', hasBulkImportPermission=' + this.e100_1 + ')'; }; protoOf(PersonListUiState).hashCode = function () { var result = hashCode(this.vzz_1); result = imul(result, 31) + hashCode(this.wzz_1) | 0; result = imul(result, 31) + this.xzz_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.yzz_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zzz_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.a100_1) | 0; result = imul(result, 31) + (this.b100_1 == null ? 0 : getStringHashCode(this.b100_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.c100_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.d100_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.e100_1) | 0; return result; }; protoOf(PersonListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonListUiState)) return false; var tmp0_other_with_cast = other instanceof PersonListUiState ? other : THROW_CCE(); if (!equals(this.vzz_1, tmp0_other_with_cast.vzz_1)) return false; if (!equals(this.wzz_1, tmp0_other_with_cast.wzz_1)) return false; if (!this.xzz_1.equals(tmp0_other_with_cast.xzz_1)) return false; if (!(this.yzz_1 === tmp0_other_with_cast.yzz_1)) return false; if (!(this.zzz_1 === tmp0_other_with_cast.zzz_1)) return false; if (!(this.a100_1 === tmp0_other_with_cast.a100_1)) return false; if (!(this.b100_1 == tmp0_other_with_cast.b100_1)) return false; if (!(this.c100_1 === tmp0_other_with_cast.c100_1)) return false; if (!(this.d100_1 === tmp0_other_with_cast.d100_1)) return false; if (!(this.e100_1 === tmp0_other_with_cast.e100_1)) return false; return true; }; function setClipboardStringUseCase$factory_3() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1_1(receiver); }, null); } function setClipboardStringUseCase$factory_4() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1_1(receiver); }, null); } function ManageAccountViewModel$slambda$slambda(this$0, resultContinuation) { this.v102_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda$slambda).x102 = function (it, $completion) { var tmp = this.y102(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ManageAccountViewModel$slambda$slambda).ie = function (p1, $completion) { return this.x102((p1 == null ? true : p1 instanceof PersonAuth2) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.v102_1.y103_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.j104(VOID, VOID, VOID, VOID, VOID, this.w102_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ManageAccountViewModel$slambda$slambda).y102 = function (it, completion) { var i = new ManageAccountViewModel$slambda$slambda(this.v102_1, completion); i.w102_1 = it; return i; }; function ManageAccountViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new ManageAccountViewModel$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.x102(it, $completion); }; l.$arity = 1; return l; } function ManageAccountViewModel$slambda$slambda_1(this$0, resultContinuation) { this.s104_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda$slambda_1).u104 = function (it, $completion) { var tmp = this.v104(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ManageAccountViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.u104((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.s104_1.y103_1; while (true) { var prevValue = this_0.t2(); var tmp0_showCreatePasskey = this.t104_1.c1(); var tmp1_passkeyCount = this.t104_1.u(); var nextValue = prevValue.j104(tmp1_passkeyCount, tmp0_showCreatePasskey); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ManageAccountViewModel$slambda$slambda_1).v104 = function (it, completion) { var i = new ManageAccountViewModel$slambda$slambda_1(this.s104_1, completion); i.t104_1 = it; return i; }; function ManageAccountViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ManageAccountViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.u104(it, $completion); }; l.$arity = 1; return l; } function _get_apiUrlConfig__mldllg_5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x103_1; apiUrlConfig$factory_12(); return this_0.t2(); } function _get_createPasskeyUseCase__ryoxza($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.z103_1; createPasskeyUseCase$factory_0(); return this_0.t2(); } function Companion_188() { this.w104_1 = 'ManageAccount'; this.x104_1 = 'PersonFullName'; this.y104_1 = 'PersonUsername'; } var Companion_instance_236; function Companion_getInstance_206() { return Companion_instance_236; } function sam$kotlinx_coroutines_flow_FlowCollector$0_37(function_0) { this.z104_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_37).u1d = function (value, $completion) { return this.z104_1(value, $completion); }; function ManageAccountViewModel$slambda(this$0, resultContinuation) { this.i105_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ManageAccountViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.i105_1.oqo().yk2().b7f().ag0(this.i105_1.u103_1); var tmp_1 = ManageAccountViewModel$slambda$slambda_0(this.i105_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_37(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ManageAccountViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ManageAccountViewModel$slambda(this.i105_1, completion); i.j105_1 = $this$launch; return i; }; function ManageAccountViewModel$slambda_0(this$0, resultContinuation) { var i = new ManageAccountViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ManageAccountViewModel$slambda_1($di, this$0, resultContinuation) { this.s105_1 = $di; this.t105_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ManageAccountViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var this_0 = this.s105_1; var context = new LearningSpace(_get_apiUrlConfig__mldllg_5(this.t105_1).do6_1); var trigger = this_0.e57(); var tmp_1 = Companion_instance_0; var tmp_2 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_3 = get_direct(On(this_0, tmp_1.i57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).g58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.v105_1 = tmp_3.e58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null).xk2(); this.w105_1 = this.v105_1.c7g().vgz(this.t105_1.lqo().poa().ckz_1); this.id_1 = 1; var tmp_5 = ManageAccountViewModel$slambda$slambda_2(this.t105_1, null); suspendResult = this.w105_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_37(tmp_5), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ManageAccountViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new ManageAccountViewModel$slambda_1(this.s105_1, this.t105_1, completion); i.u105_1 = $this$launch; return i; }; function ManageAccountViewModel$slambda_2($di, this$0, resultContinuation) { var i = new ManageAccountViewModel$slambda_1($di, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ManageAccountViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ManageAccount'); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.u103_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; var tmp0_elvis_lhs = savedStateHandle.ba('PersonFullName'); tmp_0.v103_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp_1 = this; var tmp0_elvis_lhs_0 = savedStateHandle.ba('PersonUsername'); tmp_1.w103_1 = tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0; var tmp_2 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); tmp_2.x103_1 = Instance(this, tmp$ret$0, null).b5d(this, apiUrlConfig$factory_11()); this.y103_1 = MutableStateFlow(new ManageAccountUiState()); var tmp_4 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(CreatePasskeyUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_4.z103_1 = InstanceOrNull(this, tmp$ret$2, null).b5d(this, createPasskeyUseCase$factory()); this.a104_1 = asStateFlow(this.y103_1); var tmp_6 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(_get_apiUrlConfig__mldllg_5(this).do6_1); var trigger = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_7 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp$ret$5 = tmp_7.i57(tmp$ret$4, context); var tmp$ret$6 = On(di, tmp$ret$5, trigger); var tmp_9 = get_direct(tmp$ret$6).g58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(SavePersonPasskeyUseCase), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_6.b104_1 = tmp_9.f58(tmp$ret$7, null); var tmp_11 = this.mqo(); launch(tmp_11, VOID, VOID, ManageAccountViewModel$slambda_0(this, null)); var tmp_12; if (savedStateHandle.ba('listMode') === ListViewMode_PICKER_getInstance().uqk_1) { tmp_12 = this.vqo().soj(strings_getInstance().anb_1); } else { tmp_12 = this.vqo().soj(strings_getInstance().emm_1); } var tmp0_title = tmp_12; this.zqn_1.y1k(new AppUiState(VOID, VOID, tmp0_title, false, VOID, VOID, false)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.y103_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.manageaccount.ManageAccountViewModel.' call var tmp0_personUsername = this.w103_1; var tmp1_personName = this.v103_1; var tmp2_passkeySupported = !(_get_createPasskeyUseCase__ryoxza(this) == null) ? this.lqo().poa().ckz_1.equals(this.u103_1) : false; var nextValue = prevValue.j104(VOID, VOID, tmp2_passkeySupported, tmp1_personName, tmp0_personUsername); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_13 = this.mqo(); launch(tmp_13, VOID, VOID, ManageAccountViewModel$slambda_2(di, this, null)); } protoOf(ManageAccountViewModel).x105 = function () { Companion_getInstance_126(); this.xqn_1.tp6('AccountEdit', mapOf_0(to('entityUid', this.u103_1.toString()))); }; function ManageAccountUiState(passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth, errorText) { passkeyCount = passkeyCount === VOID ? 0 : passkeyCount; showCreatePasskey = showCreatePasskey === VOID ? false : showCreatePasskey; passkeySupported = passkeySupported === VOID ? true : passkeySupported; personName = personName === VOID ? '' : personName; personUsername = personUsername === VOID ? '' : personUsername; personAuth = personAuth === VOID ? null : personAuth; errorText = errorText === VOID ? null : errorText; this.c104_1 = passkeyCount; this.d104_1 = showCreatePasskey; this.e104_1 = passkeySupported; this.f104_1 = personName; this.g104_1 = personUsername; this.h104_1 = personAuth; this.i104_1 = errorText; } protoOf(ManageAccountUiState).y105 = function (passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth, errorText) { return new ManageAccountUiState(passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth, errorText); }; protoOf(ManageAccountUiState).j104 = function (passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth, errorText, $super) { passkeyCount = passkeyCount === VOID ? this.c104_1 : passkeyCount; showCreatePasskey = showCreatePasskey === VOID ? this.d104_1 : showCreatePasskey; passkeySupported = passkeySupported === VOID ? this.e104_1 : passkeySupported; personName = personName === VOID ? this.f104_1 : personName; personUsername = personUsername === VOID ? this.g104_1 : personUsername; personAuth = personAuth === VOID ? this.h104_1 : personAuth; errorText = errorText === VOID ? this.i104_1 : errorText; return $super === VOID ? this.y105(passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth, errorText) : $super.y105.call(this, passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth, errorText); }; protoOf(ManageAccountUiState).toString = function () { return 'ManageAccountUiState(passkeyCount=' + this.c104_1 + ', showCreatePasskey=' + this.d104_1 + ', passkeySupported=' + this.e104_1 + ', personName=' + this.f104_1 + ', personUsername=' + this.g104_1 + ', personAuth=' + this.h104_1 + ', errorText=' + this.i104_1 + ')'; }; protoOf(ManageAccountUiState).hashCode = function () { var result = this.c104_1; result = imul(result, 31) + getBooleanHashCode(this.d104_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.e104_1) | 0; result = imul(result, 31) + getStringHashCode(this.f104_1) | 0; result = imul(result, 31) + getStringHashCode(this.g104_1) | 0; result = imul(result, 31) + (this.h104_1 == null ? 0 : hashCode(this.h104_1)) | 0; result = imul(result, 31) + (this.i104_1 == null ? 0 : getStringHashCode(this.i104_1)) | 0; return result; }; protoOf(ManageAccountUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ManageAccountUiState)) return false; var tmp0_other_with_cast = other instanceof ManageAccountUiState ? other : THROW_CCE(); if (!(this.c104_1 === tmp0_other_with_cast.c104_1)) return false; if (!(this.d104_1 === tmp0_other_with_cast.d104_1)) return false; if (!(this.e104_1 === tmp0_other_with_cast.e104_1)) return false; if (!(this.f104_1 === tmp0_other_with_cast.f104_1)) return false; if (!(this.g104_1 === tmp0_other_with_cast.g104_1)) return false; if (!equals(this.h104_1, tmp0_other_with_cast.h104_1)) return false; if (!(this.i104_1 == tmp0_other_with_cast.i104_1)) return false; return true; }; function apiUrlConfig$factory_11() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_5(receiver); }, null); } function createPasskeyUseCase$factory() { return getPropertyCallableRef('createPasskeyUseCase', 1, KProperty1, function (receiver) { return _get_createPasskeyUseCase__ryoxza(receiver); }, null); } function apiUrlConfig$factory_12() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_5(receiver); }, null); } function createPasskeyUseCase$factory_0() { return getPropertyCallableRef('createPasskeyUseCase', 1, KProperty1, function (receiver) { return _get_createPasskeyUseCase__ryoxza(receiver); }, null); } function Companion_189() { this.z105_1 = 'RegisterAgeRedirect'; } var Companion_instance_237; function Companion_getInstance_207() { return Companion_instance_237; } function RegisterAgeRedirectViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.mwm(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function RegisterAgeRedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'RegisterAgeRedirect'); this.v106_1 = MutableStateFlow(new RegisterAgeRedirectUiState(VOID, systemTimeInMillis())); this.w106_1 = asStateFlow(this.v106_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.' call var tmp0_title = this.vqo().soj(strings_getInstance().fnq_1); var tmp = this.vqo().soj(strings_getInstance().cmk_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, RegisterAgeRedirectViewModel$onClickNext$ref(this)); var nextValue = prevValue.hq7(VOID, VOID, tmp0_title, false, VOID, VOID, false, VOID, tmp1_actionBarButtonState); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(RegisterAgeRedirectViewModel).x106 = function (date) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.v106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onSetDate.' call var nextValue = prevValue.b107(date, VOID, !prevValue.y106_1.equals(date) ? null : prevValue.a107_1); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(RegisterAgeRedirectViewModel).mwm = function () { var date = this.v106_1.t2().y106_1; if (date.equals(new Long(0, 0))) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.v106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onClickNext.' call var nextValue = prevValue.b107(VOID, VOID, this.vqo().soj(strings_getInstance().cmo_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } // Inline function 'kotlin.Long.minus' call var this_1 = systemTimeInMillis(); var other = imul(24, get_MS_PER_HOUR()); var tmp$ret$2 = this_1.mc(toLong(other)); if (date.c7(tmp$ret$2) > 0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.v106_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onClickNext.' call var nextValue_0 = prevValue_0.b107(VOID, VOID, this.vqo().soj(strings_getInstance().rmq_1)); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var dateOfBirthInstant = Companion_getInstance_6().mmh(date); var isMinor = isDateOfBirthAMinor(dateOfBirthInstant); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_3 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onClickNext.' call this.jqp(this_3, Companion_getInstance_214().wr8_1); Companion_getInstance_126(); this.iqp(this_3, 'next'); this_3.s('showAccept', 'true'); Companion_getInstance_203(); this_3.s('DateOfBirth', date.toString()); var args = this_3.f3(); if (!isMinor) { this.xqn_1.tp6('Terms', args); } }; function RegisterAgeRedirectUiState(dateOfBirth, maxDate, dateOfBirthError) { dateOfBirth = dateOfBirth === VOID ? new Long(0, 0) : dateOfBirth; var tmp; if (maxDate === VOID) { Companion_getInstance_2(); tmp = new Long(-1, 2147483647); } else { tmp = maxDate; } maxDate = tmp; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; this.y106_1 = dateOfBirth; this.z106_1 = maxDate; this.a107_1 = dateOfBirthError; } protoOf(RegisterAgeRedirectUiState).c107 = function (dateOfBirth, maxDate, dateOfBirthError) { return new RegisterAgeRedirectUiState(dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).b107 = function (dateOfBirth, maxDate, dateOfBirthError, $super) { dateOfBirth = dateOfBirth === VOID ? this.y106_1 : dateOfBirth; maxDate = maxDate === VOID ? this.z106_1 : maxDate; dateOfBirthError = dateOfBirthError === VOID ? this.a107_1 : dateOfBirthError; return $super === VOID ? this.c107(dateOfBirth, maxDate, dateOfBirthError) : $super.c107.call(this, dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).toString = function () { return 'RegisterAgeRedirectUiState(dateOfBirth=' + this.y106_1.toString() + ', maxDate=' + this.z106_1.toString() + ', dateOfBirthError=' + this.a107_1 + ')'; }; protoOf(RegisterAgeRedirectUiState).hashCode = function () { var result = this.y106_1.hashCode(); result = imul(result, 31) + this.z106_1.hashCode() | 0; result = imul(result, 31) + (this.a107_1 == null ? 0 : getStringHashCode(this.a107_1)) | 0; return result; }; protoOf(RegisterAgeRedirectUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof RegisterAgeRedirectUiState)) return false; var tmp0_other_with_cast = other instanceof RegisterAgeRedirectUiState ? other : THROW_CCE(); if (!this.y106_1.equals(tmp0_other_with_cast.y106_1)) return false; if (!this.z106_1.equals(tmp0_other_with_cast.z106_1)) return false; if (!(this.a107_1 == tmp0_other_with_cast.a107_1)) return false; return true; }; function Companion_190() { this.d107_1 = 'WaitForParent'; this.e107_1 = 'username'; this.f107_1 = 'password'; this.g107_1 = 'parentContact'; } var Companion_instance_238; function Companion_getInstance_208() { return Companion_instance_238; } function RegisterMinorWaitForParentViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'WaitForParent'); this.c108_1 = MutableStateFlow(new RegisterMinorWaitForParentUiState()); this.d108_1 = asStateFlow(this.c108_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerminorwaitforparent.RegisterMinorWaitForParentViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().umk_1), false, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.c108_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerminorwaitforparent.RegisterMinorWaitForParentViewModel.' call var tmp0_elvis_lhs = savedStateHandle.ba('username'); var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = savedStateHandle.ba('password'); var tmp_0 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = savedStateHandle.ba('parentContact'); var nextValue_0 = prevValue_0.h108(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(RegisterMinorWaitForParentViewModel).i108 = function () { this.xqn_1.hqa('WaitForParent', true); }; function RegisterMinorWaitForParentUiState(username, password, parentContact) { username = username === VOID ? '' : username; password = password === VOID ? '' : password; parentContact = parentContact === VOID ? '' : parentContact; this.e108_1 = username; this.f108_1 = password; this.g108_1 = parentContact; } protoOf(RegisterMinorWaitForParentUiState).h108 = function (username, password, parentContact) { return new RegisterMinorWaitForParentUiState(username, password, parentContact); }; protoOf(RegisterMinorWaitForParentUiState).toString = function () { return 'RegisterMinorWaitForParentUiState(username=' + this.e108_1 + ', password=' + this.f108_1 + ', parentContact=' + this.g108_1 + ')'; }; protoOf(RegisterMinorWaitForParentUiState).hashCode = function () { var result = getStringHashCode(this.e108_1); result = imul(result, 31) + getStringHashCode(this.f108_1) | 0; result = imul(result, 31) + getStringHashCode(this.g108_1) | 0; return result; }; protoOf(RegisterMinorWaitForParentUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof RegisterMinorWaitForParentUiState)) return false; var tmp0_other_with_cast = other instanceof RegisterMinorWaitForParentUiState ? other : THROW_CCE(); if (!(this.e108_1 === tmp0_other_with_cast.e108_1)) return false; if (!(this.f108_1 === tmp0_other_with_cast.f108_1)) return false; if (!(this.g108_1 === tmp0_other_with_cast.g108_1)) return false; return true; }; function RedirectViewModel$slambda$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function RedirectViewModel$slambda$lambda_0($di) { return function (it) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = $di; var trigger = this_0.e57(); // Inline function 'org.kodein.di.diContext' call var tmp = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.i57(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).g58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); return tmp_1.e58(tmp$ret$3, null); }; } function _get_apiUrlConfig__mldllg_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.g109_1; apiUrlConfig$factory_14(); return this_0.t2(); } function Companion_191() { this.h109_1 = ''; this.i109_1 = 'empty_site'; } var Companion_instance_239; function Companion_getInstance_209() { return Companion_instance_239; } function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1(function_0) { this.j109_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1).qpj = function (url, target) { return this.j109_1(url, target); }; function RedirectViewModel$slambda($destinationArg, $di, this$0, resultContinuation) { this.s109_1 = $destinationArg; this.t109_1 = $di; this.u109_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(RedirectViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(RedirectViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(RedirectViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.w109_1 = this.s109_1; if (this.w109_1 == null) { this.id_1 = 1; var this_0 = this.t109_1; var context = this.u109_1.lqo().aoa().vnu_1; var trigger = this_0.e57(); var tmp_0 = Companion_instance_0; var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_2 = get_direct(On(this_0, tmp_0.i57(isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(), context), trigger)).g58(); var tmp_3 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); suspendResult = tmp_2.e58(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), null).w8q(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.x109_1 = this.w109_1; this.id_1 = 2; continue $sm; } case 1: this.x109_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.y109_1 = this.x109_1; var this_1 = this.y109_1; if (this_1 == null ? true : charSequenceLength(this_1) === 0) { var tmp_4 = this; var this_2 = this.t109_1; var context_0 = this.u109_1.lqo().aoa().vnu_1; var trigger_0 = this_2.e57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_7 = get_direct(On(this_2, tmp_5.i57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context_0), trigger_0)).g58(); var tmp_8 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), arrayOf([]), false)); tmp_4.z109_1 = tmp_7.e58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), null); this.id_1 = 4; suspendResult = this.z109_1.poi(this.u109_1.lqo().aoa().vnu_1.cnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 3: var tmp1_$receiver = this.u109_1.xqn_1; var tmp2_accountManager = this.u109_1.lqo(); var tmp_9 = RedirectViewModel$slambda$lambda; var tmp3_openExternalLinkUseCase = new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1(tmp_9); var tmp4_userCanSelectServer = _get_apiUrlConfig__mldllg_6(this.u109_1).go6_1; var tmp5_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp6_forceAccountSelection = !(this.s109_1 == null); var tmp7_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_6(this.u109_1).eo6_1; navigateToLink(tmp1_$receiver, this.y109_1, tmp2_accountManager, tmp3_openExternalLinkUseCase, tmp5_goOptions, tmp6_forceAccountSelection, tmp4_userCanSelectServer, VOID, VOID, VOID, VOID, tmp7_presetLearningSpaceUrl, RedirectViewModel$slambda$lambda_0(this.t109_1)); return Unit_instance; case 4: var canRegister = suspendResult; var tmp_10; if (canRegister === false) { tmp_10 = 'Login'; } else { tmp_10 = 'AddAccountSelectNewOrExisting'; } this.u109_1.xqn_1.tp6(tmp_10, emptyMap()); return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(RedirectViewModel$slambda).w1m = function ($this$launch, completion) { var i = new RedirectViewModel$slambda(this.s109_1, this.t109_1, this.u109_1, completion); i.v109_1 = $this$launch; return i; }; function RedirectViewModel$slambda_0($destinationArg, $di, this$0, resultContinuation) { var i = new RedirectViewModel$slambda($destinationArg, $di, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function RedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, ''); var tmp = this; Companion_getInstance_117(); tmp.e109_1 = savedStateHandle.ba('next'); var tmp_0 = this; Companion_getInstance_117(); tmp_0.f109_1 = savedStateHandle.ba('openLink'); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.g109_1 = Instance(this, tmp$ret$0, null).b5d(this, apiUrlConfig$factory_13()); this.zqn_1.y1k(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, VOID, VOID, VOID, VOID, true)); var tmp0_elvis_lhs = this.f109_1; var destinationArg = tmp0_elvis_lhs == null ? this.e109_1 : tmp0_elvis_lhs; var activeLearningSpace = this.lqo().roa(); if (!contains(activeLearningSpace.cnu_1, 'localhost')) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var tmp_3 = get_direct(di).g58(); // Inline function 'org.kodein.di.diContext' call var tmp_4 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); var tmp$ret$3 = tmp_4.i57(tmp$ret$2, activeLearningSpace); var tmp_6 = tmp_3.d58(tmp$ret$3).g58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var db = tmp_6.e58(tmp$ret$5, 1); println(db); } var tmp_8 = this.mqo(); launch(tmp_8, VOID, VOID, RedirectViewModel$slambda_0(destinationArg, di, this, null)); } function apiUrlConfig$factory_13() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_6(receiver); }, null); } function apiUrlConfig$factory_14() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_6(receiver); }, null); } function ScheduleEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda).j10a = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ScheduleEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.j10a(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ScheduleEditViewModel$slambda$slambda).enz = function (it, completion) { var i = new ScheduleEditViewModel$slambda$slambda(completion); i.i10a_1 = it; return i; }; function ScheduleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ScheduleEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.j10a(it, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.s10a_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda_1).v10a = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.v10a($completion); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; tmp_0.t10a_1 = new Schedule(); var tmp_1 = this; tmp_1.u10a_1 = this.t10a_1; this.id_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.s10a_1.pqo()); suspendResult = tmp_2.p62(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.u10a_1.vhe_1 = ARGUMENT; this.u10a_1.hhf_1 = true; this.u10a_1.ahf_1 = Companion_instance_29.zkv_1; return this.t10a_1; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).m78 = function (completion) { return new ScheduleEditViewModel$slambda$slambda_1(this.s10a_1, completion); }; function ScheduleEditViewModel$slambda$slambda_2(this$0, resultContinuation) { var i = new ScheduleEditViewModel$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.v10a($completion); }; l.$arity = 0; return l; } function ScheduleEditViewModel$slambda$lambda(this$0) { return function (schedule) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.t10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel...' call var nextValue = prevValue.z10b(schedule); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_192() { this.a10c_1 = 'ScheduleEdit'; } var Companion_instance_240; function Companion_getInstance_210() { return Companion_instance_240; } function ScheduleEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ScheduleEditViewModel$slambda(this$0, resultContinuation) { this.j10c_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ScheduleEditViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.l10c_1 = Companion_instance_29.o4r(); this.id_1 = 1; var tmp_0 = ScheduleEditViewModel$slambda$slambda_0(null); var tmp_1 = ScheduleEditViewModel$slambda$slambda_2(this.j10c_1, null); suspendResult = this.j10c_1.fqp(this.l10c_1, VOID, VOID, tmp_0, tmp_1, ScheduleEditViewModel$slambda$lambda(this.j10c_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.j10c_1.t10b_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.z10b(VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ScheduleEditViewModel$slambda).w1m = function ($this$launch, completion) { var i = new ScheduleEditViewModel$slambda(this.j10c_1, completion); i.k10c_1 = $this$launch; return i; }; function ScheduleEditViewModel$slambda_0(this$0, resultContinuation) { var i = new ScheduleEditViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.u10c_1 = $commitDelay; this.v10c_1 = $entity; this.w10c_1 = $this; this.x10c_1 = $key; this.y10c_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(ScheduleEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.u10c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.v10c_1 == null)) { this.id_1 = 2; suspendResult = this.w10c_1.bqp(this.w10c_1.vqn_1, this.x10c_1, this.y10c_1, this.v10c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(ScheduleEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new ScheduleEditViewModel$onEntityChanged$slambda(this.u10c_1, this.v10c_1, this.w10c_1, this.x10c_1, this.y10c_1, completion); i.z10c_1 = $this$launch; return i; }; function ScheduleEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new ScheduleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ScheduleEdit'); this.t10b_1 = MutableStateFlow(new ScheduleEditUiState(VOID, VOID, VOID, false)); this.u10b_1 = asStateFlow(this.t10b_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.' call var tmp0_title = this.fqv(strings_getInstance().imv_1, strings_getInstance().jmv_1); var tmp = this.vqo().soj(strings_getInstance().ams_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, ScheduleEditViewModel$onClickSave$ref(this)); var nextValue = prevValue.hq7(VOID, VOID, tmp0_title, VOID, true, VOID, VOID, VOID, tmp1_actionBarButtonState); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, ScheduleEditViewModel$slambda_0(this, null)); } protoOf(ScheduleEditViewModel).a10d = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.t10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.v10b_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.whe_1; var tmp4_toTimeError = this.gqv(tmp, entity == null ? null : entity.whe_1, prevValue.x10b_1); var tmp0_safe_receiver = prevValue.v10b_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xhe_1; var tmp5_fromTimeError = this.gqv(tmp_0, entity == null ? null : entity.xhe_1, prevValue.w10b_1); var nextValue = prevValue.z10b(entity, tmp5_fromTimeError, tmp4_toTimeError); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_29.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_1 = this; var tmp_2 = this.mqo(); tmp_1.cqu_1 = launch(tmp_2, VOID, VOID, ScheduleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ScheduleEditViewModel).ysb = function () { var tmp0_elvis_lhs = this.t10b_1.t2().v10b_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var schedule = tmp; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.t10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onClickSave.' call var tmp_0; if (schedule.whe_1.equals(new Long(0, 0))) { tmp_0 = this.vqo().soj(strings_getInstance().cmo_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; if (schedule.xhe_1.equals(new Long(0, 0))) { tmp_2 = this.vqo().soj(strings_getInstance().cmo_1); } else if (schedule.xhe_1.c7(schedule.whe_1) <= 0) { tmp_2 = this.vqo().soj(strings_getInstance().zn9_1); } else { tmp_2 = null; } var nextValue = prevValue.z10b(VOID, tmp_1, tmp_2); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (this.t10b_1.t2().w10b_1 == null ? this.t10b_1.t2().x10b_1 == null : false) { this.gqu(schedule); } }; function ScheduleEditUiState(entity, fromTimeError, toTimeError, fieldsEnabled) { entity = entity === VOID ? null : entity; fromTimeError = fromTimeError === VOID ? null : fromTimeError; toTimeError = toTimeError === VOID ? null : toTimeError; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; this.v10b_1 = entity; this.w10b_1 = fromTimeError; this.x10b_1 = toTimeError; this.y10b_1 = fieldsEnabled; } protoOf(ScheduleEditUiState).b10d = function (entity, fromTimeError, toTimeError, fieldsEnabled) { return new ScheduleEditUiState(entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).z10b = function (entity, fromTimeError, toTimeError, fieldsEnabled, $super) { entity = entity === VOID ? this.v10b_1 : entity; fromTimeError = fromTimeError === VOID ? this.w10b_1 : fromTimeError; toTimeError = toTimeError === VOID ? this.x10b_1 : toTimeError; fieldsEnabled = fieldsEnabled === VOID ? this.y10b_1 : fieldsEnabled; return $super === VOID ? this.b10d(entity, fromTimeError, toTimeError, fieldsEnabled) : $super.b10d.call(this, entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).toString = function () { return 'ScheduleEditUiState(entity=' + this.v10b_1 + ', fromTimeError=' + this.w10b_1 + ', toTimeError=' + this.x10b_1 + ', fieldsEnabled=' + this.y10b_1 + ')'; }; protoOf(ScheduleEditUiState).hashCode = function () { var result = this.v10b_1 == null ? 0 : this.v10b_1.hashCode(); result = imul(result, 31) + (this.w10b_1 == null ? 0 : getStringHashCode(this.w10b_1)) | 0; result = imul(result, 31) + (this.x10b_1 == null ? 0 : getStringHashCode(this.x10b_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.y10b_1) | 0; return result; }; protoOf(ScheduleEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ScheduleEditUiState)) return false; var tmp0_other_with_cast = other instanceof ScheduleEditUiState ? other : THROW_CCE(); if (!equals(this.v10b_1, tmp0_other_with_cast.v10b_1)) return false; if (!(this.w10b_1 == tmp0_other_with_cast.w10b_1)) return false; if (!(this.x10b_1 == tmp0_other_with_cast.x10b_1)) return false; if (!(this.y10b_1 === tmp0_other_with_cast.y10b_1)) return false; return true; }; function Companion_193() { this.c10d_1 = 'DevSettings'; this.d10d_1 = 'showDevSettings'; } var Companion_instance_241; function Companion_getInstance_211() { return Companion_instance_241; } function SettingsViewModel$slambda$slambda(this$0, resultContinuation) { this.m10d_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda$slambda).gqg = function (siteAdminSettingsVisible, $completion) { var tmp = this.hqg(siteAdminSettingsVisible, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SettingsViewModel$slambda$slambda).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.m10d_1.j10e_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.u10f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.n10d_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SettingsViewModel$slambda$slambda).hqg = function (siteAdminSettingsVisible, completion) { var i = new SettingsViewModel$slambda$slambda(this.m10d_1, completion); i.n10d_1 = siteAdminSettingsVisible; return i; }; function SettingsViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new SettingsViewModel$slambda$slambda(this$0, resultContinuation); var l = function (siteAdminSettingsVisible, $completion) { return i.gqg(siteAdminSettingsVisible, $completion); }; l.$arity = 1; return l; } function _get_supportedLangConfig__llzj1v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l10e_1; supportedLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.m10e_1; setLanguageUseCase$factory_4(); return this_0.t2(); } function _get_getHtmlContentDisplayOptsUseCase__lppxoi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.o10e_1; getHtmlContentDisplayOptsUseCase$factory_0(); return this_0.t2(); } function _get_getHtmlContentDisplaySettingUseCase__usawf4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p10e_1; getHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_setHtmlContentDisplaySettingUseCase__8cgzqk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.q10e_1; setHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.r10e_1; getVersionUseCase$factory_4(); return this_0.t2(); } function _get_getStorageOptionsUseCase__v5dedp($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.s10e_1; getStorageOptionsUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageSettingUseCase__5c8mhw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t10e_1; getOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_setOfflineStorageSettingUseCase__lx9or4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.u10e_1; setOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageAvailableSpace__om40zq($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.v10e_1; getOfflineStorageAvailableSpace$factory_0(); return this_0.t2(); } function _get_settings__lbkut4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x10e_1; settings$factory_0(); return this_0.t2(); } function _get_zipFileUseCase__jhxb01($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.y10e_1; zipFileUseCase$factory_0(); return this_0.t2(); } function Companion_194() { this.v10f_1 = 'Settings'; } var Companion_instance_242; function Companion_getInstance_212() { return Companion_instance_242; } function sam$kotlinx_coroutines_flow_FlowCollector$0_38(function_0) { this.w10f_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_38).u1d = function (value, $completion) { return this.w10f_1(value, $completion); }; function SettingsViewModel$slambda(this$0, resultContinuation) { this.f10g_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SettingsViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; var tmp_0 = this; var tmp0_safe_receiver = _get_getStorageOptionsUseCase__v5dedp(this.f10g_1); tmp_0.h10g_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zpe(); var tmp_1 = this; var tmp1_safe_receiver = _get_getOfflineStorageSettingUseCase__5c8mhw(this.f10g_1); tmp_1.i10g_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zpe(); if (!(this.h10g_1 == null)) { var tmp_2 = this; tmp_2.j10g_1 = this.h10g_1; var tmp_3 = this; tmp_3.k10g_1 = this.j10g_1; var tmp_4 = this; tmp_4.l10g_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.j10g_1, 10)); this.m10g_1 = this.k10g_1.w(); this.id_1 = 1; continue $sm; } else { this.id_1 = 5; continue $sm; } case 1: if (!this.m10g_1.f()) { this.id_1 = 4; continue $sm; } this.n10g_1 = this.m10g_1.e(); var tmp_5 = this; tmp_5.o10g_1 = this.n10g_1; this.p10g_1 = _get_getOfflineStorageAvailableSpace__om40zq(this.f10g_1); if (this.p10g_1 == null) { this.q10g_1 = null; this.id_1 = 3; continue $sm; } else { this.id_1 = 2; suspendResult = this.p10g_1.npn(this.o10g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.q10g_1 = suspendResult; this.id_1 = 3; continue $sm; case 3: var tmp1_elvis_lhs = this.q10g_1; var ARGUMENT = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var ARGUMENT_0 = new SettingsOfflineStorageOption(this.o10g_1, ARGUMENT); this.l10g_1.i1(ARGUMENT_0); this.id_1 = 1; continue $sm; case 4: var optionsWithSpace = this.l10g_1; l$ret$1: do { var this_0 = this.f10g_1.j10e_1; while (true) { var prevValue = this_0.t2(); var tmp0_elvis_lhs = this.i10g_1; var nextValue = prevValue.u10f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, optionsWithSpace, tmp0_elvis_lhs == null ? first_0(this.h10g_1) : tmp0_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SettingsViewModel$slambda).w1m = function ($this$launch, completion) { var i = new SettingsViewModel$slambda(this.f10g_1, completion); i.g10g_1 = $this$launch; return i; }; function SettingsViewModel$slambda_0(this$0, resultContinuation) { var i = new SettingsViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel$slambda_1(this$0, resultContinuation) { this.z10g_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SettingsViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.z10g_1.rqo().q7f(); var tmp_1 = this.z10g_1.nqo(); PermissionFlags_getInstance(); var tmp_2 = tmp_0.wi0(tmp_1, new Long(16384, 0)); var tmp_3 = SettingsViewModel$slambda$slambda_0(this.z10g_1, null); suspendResult = tmp_2.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_38(tmp_3), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SettingsViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new SettingsViewModel$slambda_1(this.z10g_1, completion); i.a10h_1 = $this$launch; return i; }; function SettingsViewModel$slambda_2(this$0, resultContinuation) { var i = new SettingsViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Settings'); this.j10e_1 = MutableStateFlow(new SettingsUiState()); this.k10e_1 = asStateFlow(this.j10e_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.l10e_1 = Instance(this, tmp$ret$0, null).b5d(this, supportedLangConfig$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(SetLanguageUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.m10e_1 = Instance(this, tmp$ret$2, null).b5d(this, setLanguageUseCase$factory_3()); this.n10e_1 = _get_supportedLangConfig__llzj1v(this).vq8(this.vqo()); var tmp_3 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(GetHtmlContentDisplayEngineOptionsUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.o10e_1 = InstanceOrNull(this, tmp$ret$4, null).b5d(this, getHtmlContentDisplayOptsUseCase$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(GetHtmlContentDisplayEngineUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.p10e_1 = InstanceOrNull(this, tmp$ret$6, null).b5d(this, getHtmlContentDisplaySettingUseCase$factory()); var tmp_7 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(SetHtmlContentDisplayEngineUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_7.q10e_1 = InstanceOrNull(this, tmp$ret$8, null).b5d(this, setHtmlContentDisplaySettingUseCase$factory()); var tmp_9 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(GetVersionUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); tmp_9.r10e_1 = Instance(this, tmp$ret$10, null).b5d(this, getVersionUseCase$factory_3()); var tmp_11 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(GetOfflineStorageOptionsUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_11.s10e_1 = InstanceOrNull(this, tmp$ret$12, null).b5d(this, getStorageOptionsUseCase$factory()); var tmp_13 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(GetOfflineStorageSettingUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.t10e_1 = InstanceOrNull(this, tmp$ret$14, null).b5d(this, getOfflineStorageSettingUseCase$factory()); var tmp_15 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(SetOfflineStorageSettingUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.u10e_1 = InstanceOrNull(this, tmp$ret$16, null).b5d(this, setOfflineStorageSettingUseCase$factory()); var tmp_17 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(GetOfflineStorageAvailableSpace), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.v10e_1 = InstanceOrNull(this, tmp$ret$18, null).b5d(this, getOfflineStorageAvailableSpace$factory()); this.w10e_1 = atomic$int$1(0); var tmp_19 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_20 = typeToken(createKType(getKClass(Settings), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE(); tmp_19.x10e_1 = Instance(this, tmp$ret$20, null).b5d(this, settings$factory()); var tmp_21 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_22 = typeToken(createKType(getKClass(ZipFileUseCase), arrayOf([]), false)); var tmp$ret$22 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE(); tmp_21.y10e_1 = Instance(this, tmp$ret$22, null).b5d(this, zipFileUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().cml_1), VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = _get_supportedLangConfig__llzj1v(this).nq8(); var tmp_23; if (tmp0_elvis_lhs == null) { Companion_getInstance_97(); tmp_23 = ''; } else { tmp_23 = tmp0_elvis_lhs; } var langSetting = tmp_23; var tmp$ret$27; $l$block_0: { // Inline function 'kotlin.collections.first' call var tmp0_iterator = this.n10e_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call if (element.cq5_1 === langSetting) { tmp$ret$27 = element; break $l$block_0; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } var currentLang = tmp$ret$27; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.j10e_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var tmp3_currentLanguage = currentLang.dq5_1; var tmp4_availableLanguages = this.n10e_1; var tmp0_safe_receiver = _get_getHtmlContentDisplayOptsUseCase__lppxoi(this); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zpe(); var tmp5_htmlContentDisplayOptions = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; var tmp2_safe_receiver = _get_getHtmlContentDisplaySettingUseCase__usawf4(this); var tmp6_currentHtmlContentDisplayOption = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.zpe(); var tmp7_version = _get_getVersionUseCase__n7x57g_1(this).zpe().xpe_1; var tmp_24 = _get_settings__lbkut4(this); var tmp8_showDeveloperOptions = tmp_24.hm8('showDevSettings', false); var nextValue_0 = prevValue_0.u10f(VOID, VOID, VOID, VOID, VOID, VOID, tmp5_htmlContentDisplayOptions, tmp6_currentHtmlContentDisplayOption, VOID, VOID, VOID, VOID, VOID, tmp3_currentLanguage, tmp4_availableLanguages, VOID, tmp8_showDeveloperOptions, tmp7_version); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_1; } } } var tmp_25 = this.mqo(); launch(tmp_25, VOID, VOID, SettingsViewModel$slambda_0(this, null)); var tmp_26 = this.mqo(); launch(tmp_26, VOID, VOID, SettingsViewModel$slambda_2(this, null)); } protoOf(SettingsViewModel).b10h = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10e_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLanguage.' call var nextValue = prevValue.u10f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).c10h = function (lang) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10e_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue = prevValue.u10f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var result = _get_setLanguageUseCase__st7nci_1(this).ppi(lang, 'Settings', this.xqn_1); if (result.npi_1) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.j10e_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_0 = prevValue_0.u10f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } else { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.j10e_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_1 = prevValue_1.u10f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, lang.dq5_1); if (this_2.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(SettingsViewModel).gzc = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10e_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onDismissLangDialog.' call var nextValue = prevValue.u10f(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).d10h = function () { this.xqn_1.tp6('Community', emptyMap()); }; protoOf(SettingsViewModel).e10h = function () { this.xqn_1.tp6('DeletedItems', emptyMap()); }; function SettingsUiState(sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) { sendAppOptionVisible = sendAppOptionVisible === VOID ? false : sendAppOptionVisible; selectedBackupFolderUri = selectedBackupFolderUri === VOID ? null : selectedBackupFolderUri; selectedBackupFolderName = selectedBackupFolderName === VOID ? null : selectedBackupFolderName; isCreatingBackup = isCreatingBackup === VOID ? false : isCreatingBackup; backupProgress = backupProgress === VOID ? 0.0 : backupProgress; selectedBackupPath = selectedBackupPath === VOID ? null : selectedBackupPath; htmlContentDisplayOptions = htmlContentDisplayOptions === VOID ? emptyList() : htmlContentDisplayOptions; currentHtmlContentDisplayOption = currentHtmlContentDisplayOption === VOID ? null : currentHtmlContentDisplayOption; holidayCalendarVisible = holidayCalendarVisible === VOID ? false : holidayCalendarVisible; workspaceSettingsVisible = workspaceSettingsVisible === VOID ? false : workspaceSettingsVisible; reasonLeavingVisible = reasonLeavingVisible === VOID ? false : reasonLeavingVisible; langDialogVisible = langDialogVisible === VOID ? false : langDialogVisible; htmlContentDisplayDialogVisible = htmlContentDisplayDialogVisible === VOID ? false : htmlContentDisplayDialogVisible; currentLanguage = currentLanguage === VOID ? '' : currentLanguage; availableLanguages = availableLanguages === VOID ? emptyList() : availableLanguages; waitForRestartDialogVisible = waitForRestartDialogVisible === VOID ? false : waitForRestartDialogVisible; showDeveloperOptions = showDeveloperOptions === VOID ? false : showDeveloperOptions; version = version === VOID ? '' : version; storageOptions = storageOptions === VOID ? emptyList() : storageOptions; selectedOfflineStorageOption = selectedOfflineStorageOption === VOID ? null : selectedOfflineStorageOption; storageOptionsDialogVisible = storageOptionsDialogVisible === VOID ? false : storageOptionsDialogVisible; this.z10e_1 = sendAppOptionVisible; this.a10f_1 = selectedBackupFolderUri; this.b10f_1 = selectedBackupFolderName; this.c10f_1 = isCreatingBackup; this.d10f_1 = backupProgress; this.e10f_1 = selectedBackupPath; this.f10f_1 = htmlContentDisplayOptions; this.g10f_1 = currentHtmlContentDisplayOption; this.h10f_1 = holidayCalendarVisible; this.i10f_1 = workspaceSettingsVisible; this.j10f_1 = reasonLeavingVisible; this.k10f_1 = langDialogVisible; this.l10f_1 = htmlContentDisplayDialogVisible; this.m10f_1 = currentLanguage; this.n10f_1 = availableLanguages; this.o10f_1 = waitForRestartDialogVisible; this.p10f_1 = showDeveloperOptions; this.q10f_1 = version; this.r10f_1 = storageOptions; this.s10f_1 = selectedOfflineStorageOption; this.t10f_1 = storageOptionsDialogVisible; } protoOf(SettingsUiState).f10h = function (sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) { return new SettingsUiState(sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible); }; protoOf(SettingsUiState).u10f = function (sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible, $super) { sendAppOptionVisible = sendAppOptionVisible === VOID ? this.z10e_1 : sendAppOptionVisible; selectedBackupFolderUri = selectedBackupFolderUri === VOID ? this.a10f_1 : selectedBackupFolderUri; selectedBackupFolderName = selectedBackupFolderName === VOID ? this.b10f_1 : selectedBackupFolderName; isCreatingBackup = isCreatingBackup === VOID ? this.c10f_1 : isCreatingBackup; backupProgress = backupProgress === VOID ? this.d10f_1 : backupProgress; selectedBackupPath = selectedBackupPath === VOID ? this.e10f_1 : selectedBackupPath; htmlContentDisplayOptions = htmlContentDisplayOptions === VOID ? this.f10f_1 : htmlContentDisplayOptions; currentHtmlContentDisplayOption = currentHtmlContentDisplayOption === VOID ? this.g10f_1 : currentHtmlContentDisplayOption; holidayCalendarVisible = holidayCalendarVisible === VOID ? this.h10f_1 : holidayCalendarVisible; workspaceSettingsVisible = workspaceSettingsVisible === VOID ? this.i10f_1 : workspaceSettingsVisible; reasonLeavingVisible = reasonLeavingVisible === VOID ? this.j10f_1 : reasonLeavingVisible; langDialogVisible = langDialogVisible === VOID ? this.k10f_1 : langDialogVisible; htmlContentDisplayDialogVisible = htmlContentDisplayDialogVisible === VOID ? this.l10f_1 : htmlContentDisplayDialogVisible; currentLanguage = currentLanguage === VOID ? this.m10f_1 : currentLanguage; availableLanguages = availableLanguages === VOID ? this.n10f_1 : availableLanguages; waitForRestartDialogVisible = waitForRestartDialogVisible === VOID ? this.o10f_1 : waitForRestartDialogVisible; showDeveloperOptions = showDeveloperOptions === VOID ? this.p10f_1 : showDeveloperOptions; version = version === VOID ? this.q10f_1 : version; storageOptions = storageOptions === VOID ? this.r10f_1 : storageOptions; selectedOfflineStorageOption = selectedOfflineStorageOption === VOID ? this.s10f_1 : selectedOfflineStorageOption; storageOptionsDialogVisible = storageOptionsDialogVisible === VOID ? this.t10f_1 : storageOptionsDialogVisible; return $super === VOID ? this.f10h(sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) : $super.f10h.call(this, sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible); }; protoOf(SettingsUiState).toString = function () { return 'SettingsUiState(sendAppOptionVisible=' + this.z10e_1 + ', selectedBackupFolderUri=' + this.a10f_1 + ', selectedBackupFolderName=' + this.b10f_1 + ', isCreatingBackup=' + this.c10f_1 + ', backupProgress=' + this.d10f_1 + ', selectedBackupPath=' + this.e10f_1 + ', htmlContentDisplayOptions=' + this.f10f_1 + ', currentHtmlContentDisplayOption=' + this.g10f_1 + ', holidayCalendarVisible=' + this.h10f_1 + ', workspaceSettingsVisible=' + this.i10f_1 + ', reasonLeavingVisible=' + this.j10f_1 + ', langDialogVisible=' + this.k10f_1 + ', htmlContentDisplayDialogVisible=' + this.l10f_1 + ', currentLanguage=' + this.m10f_1 + ', availableLanguages=' + this.n10f_1 + ', waitForRestartDialogVisible=' + this.o10f_1 + ', showDeveloperOptions=' + this.p10f_1 + ', version=' + this.q10f_1 + ', storageOptions=' + this.r10f_1 + ', selectedOfflineStorageOption=' + this.s10f_1 + ', storageOptionsDialogVisible=' + this.t10f_1 + ')'; }; protoOf(SettingsUiState).hashCode = function () { var result = getBooleanHashCode(this.z10e_1); result = imul(result, 31) + (this.a10f_1 == null ? 0 : getStringHashCode(this.a10f_1)) | 0; result = imul(result, 31) + (this.b10f_1 == null ? 0 : getStringHashCode(this.b10f_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.c10f_1) | 0; result = imul(result, 31) + getNumberHashCode(this.d10f_1) | 0; result = imul(result, 31) + (this.e10f_1 == null ? 0 : getStringHashCode(this.e10f_1)) | 0; result = imul(result, 31) + hashCode(this.f10f_1) | 0; result = imul(result, 31) + (this.g10f_1 == null ? 0 : this.g10f_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.h10f_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.i10f_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.j10f_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.k10f_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.l10f_1) | 0; result = imul(result, 31) + getStringHashCode(this.m10f_1) | 0; result = imul(result, 31) + hashCode(this.n10f_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.o10f_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.p10f_1) | 0; result = imul(result, 31) + getStringHashCode(this.q10f_1) | 0; result = imul(result, 31) + hashCode(this.r10f_1) | 0; result = imul(result, 31) + (this.s10f_1 == null ? 0 : this.s10f_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.t10f_1) | 0; return result; }; protoOf(SettingsUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SettingsUiState)) return false; var tmp0_other_with_cast = other instanceof SettingsUiState ? other : THROW_CCE(); if (!(this.z10e_1 === tmp0_other_with_cast.z10e_1)) return false; if (!(this.a10f_1 == tmp0_other_with_cast.a10f_1)) return false; if (!(this.b10f_1 == tmp0_other_with_cast.b10f_1)) return false; if (!(this.c10f_1 === tmp0_other_with_cast.c10f_1)) return false; if (!equals(this.d10f_1, tmp0_other_with_cast.d10f_1)) return false; if (!(this.e10f_1 == tmp0_other_with_cast.e10f_1)) return false; if (!equals(this.f10f_1, tmp0_other_with_cast.f10f_1)) return false; if (!equals(this.g10f_1, tmp0_other_with_cast.g10f_1)) return false; if (!(this.h10f_1 === tmp0_other_with_cast.h10f_1)) return false; if (!(this.i10f_1 === tmp0_other_with_cast.i10f_1)) return false; if (!(this.j10f_1 === tmp0_other_with_cast.j10f_1)) return false; if (!(this.k10f_1 === tmp0_other_with_cast.k10f_1)) return false; if (!(this.l10f_1 === tmp0_other_with_cast.l10f_1)) return false; if (!(this.m10f_1 === tmp0_other_with_cast.m10f_1)) return false; if (!equals(this.n10f_1, tmp0_other_with_cast.n10f_1)) return false; if (!(this.o10f_1 === tmp0_other_with_cast.o10f_1)) return false; if (!(this.p10f_1 === tmp0_other_with_cast.p10f_1)) return false; if (!(this.q10f_1 === tmp0_other_with_cast.q10f_1)) return false; if (!equals(this.r10f_1, tmp0_other_with_cast.r10f_1)) return false; if (!equals(this.s10f_1, tmp0_other_with_cast.s10f_1)) return false; if (!(this.t10f_1 === tmp0_other_with_cast.t10f_1)) return false; return true; }; function SettingsOfflineStorageOption(option, availableSpace) { this.g10h_1 = option; this.h10h_1 = availableSpace; } protoOf(SettingsOfflineStorageOption).toString = function () { return 'SettingsOfflineStorageOption(option=' + this.g10h_1 + ', availableSpace=' + this.h10h_1.toString() + ')'; }; protoOf(SettingsOfflineStorageOption).hashCode = function () { var result = this.g10h_1.hashCode(); result = imul(result, 31) + this.h10h_1.hashCode() | 0; return result; }; protoOf(SettingsOfflineStorageOption).equals = function (other) { if (this === other) return true; if (!(other instanceof SettingsOfflineStorageOption)) return false; var tmp0_other_with_cast = other instanceof SettingsOfflineStorageOption ? other : THROW_CCE(); if (!this.g10h_1.equals(tmp0_other_with_cast.g10h_1)) return false; if (!this.h10h_1.equals(tmp0_other_with_cast.h10h_1)) return false; return true; }; function supportedLangConfig$factory() { return getPropertyCallableRef('supportedLangConfig', 1, KProperty1, function (receiver) { return _get_supportedLangConfig__llzj1v(receiver); }, null); } function setLanguageUseCase$factory_3() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci_1(receiver); }, null); } function getHtmlContentDisplayOptsUseCase$factory() { return getPropertyCallableRef('getHtmlContentDisplayOptsUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplayOptsUseCase__lppxoi(receiver); }, null); } function getHtmlContentDisplaySettingUseCase$factory() { return getPropertyCallableRef('getHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplaySettingUseCase__usawf4(receiver); }, null); } function setHtmlContentDisplaySettingUseCase$factory() { return getPropertyCallableRef('setHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_setHtmlContentDisplaySettingUseCase__8cgzqk(receiver); }, null); } function getVersionUseCase$factory_3() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g_1(receiver); }, null); } function getStorageOptionsUseCase$factory() { return getPropertyCallableRef('getStorageOptionsUseCase', 1, KProperty1, function (receiver) { return _get_getStorageOptionsUseCase__v5dedp(receiver); }, null); } function getOfflineStorageSettingUseCase$factory() { return getPropertyCallableRef('getOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_getOfflineStorageSettingUseCase__5c8mhw(receiver); }, null); } function setOfflineStorageSettingUseCase$factory() { return getPropertyCallableRef('setOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_setOfflineStorageSettingUseCase__lx9or4(receiver); }, null); } function getOfflineStorageAvailableSpace$factory() { return getPropertyCallableRef('getOfflineStorageAvailableSpace', 1, KProperty1, function (receiver) { return _get_getOfflineStorageAvailableSpace__om40zq(receiver); }, null); } function settings$factory() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4(receiver); }, null); } function zipFileUseCase$factory() { return getPropertyCallableRef('zipFileUseCase', 1, KProperty1, function (receiver) { return _get_zipFileUseCase__jhxb01(receiver); }, null); } function supportedLangConfig$factory_0() { return getPropertyCallableRef('supportedLangConfig', 1, KProperty1, function (receiver) { return _get_supportedLangConfig__llzj1v(receiver); }, null); } function setLanguageUseCase$factory_4() { return getPropertyCallableRef('setLanguageUseCase', 1, KProperty1, function (receiver) { return _get_setLanguageUseCase__st7nci_1(receiver); }, null); } function getHtmlContentDisplayOptsUseCase$factory_0() { return getPropertyCallableRef('getHtmlContentDisplayOptsUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplayOptsUseCase__lppxoi(receiver); }, null); } function getHtmlContentDisplaySettingUseCase$factory_0() { return getPropertyCallableRef('getHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_getHtmlContentDisplaySettingUseCase__usawf4(receiver); }, null); } function setHtmlContentDisplaySettingUseCase$factory_0() { return getPropertyCallableRef('setHtmlContentDisplaySettingUseCase', 1, KProperty1, function (receiver) { return _get_setHtmlContentDisplaySettingUseCase__8cgzqk(receiver); }, null); } function getVersionUseCase$factory_4() { return getPropertyCallableRef('getVersionUseCase', 1, KProperty1, function (receiver) { return _get_getVersionUseCase__n7x57g_1(receiver); }, null); } function getStorageOptionsUseCase$factory_0() { return getPropertyCallableRef('getStorageOptionsUseCase', 1, KProperty1, function (receiver) { return _get_getStorageOptionsUseCase__v5dedp(receiver); }, null); } function getOfflineStorageSettingUseCase$factory_0() { return getPropertyCallableRef('getOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_getOfflineStorageSettingUseCase__5c8mhw(receiver); }, null); } function setOfflineStorageSettingUseCase$factory_0() { return getPropertyCallableRef('setOfflineStorageSettingUseCase', 1, KProperty1, function (receiver) { return _get_setOfflineStorageSettingUseCase__lx9or4(receiver); }, null); } function getOfflineStorageAvailableSpace$factory_0() { return getPropertyCallableRef('getOfflineStorageAvailableSpace', 1, KProperty1, function (receiver) { return _get_getOfflineStorageAvailableSpace__om40zq(receiver); }, null); } function settings$factory_0() { return getPropertyCallableRef('settings', 1, KProperty1, function (receiver) { return _get_settings__lbkut4(receiver); }, null); } function zipFileUseCase$factory_0() { return getPropertyCallableRef('zipFileUseCase', 1, KProperty1, function (receiver) { return _get_zipFileUseCase__jhxb01(receiver); }, null); } function Companion_195() { this.i10h_1 = 'otheroption'; this.j10h_1 = 'otheroptionperson'; this.k10h_1 = 'otheroptionpersonprofilepic'; this.l10h_1 = 'isparent'; } var Companion_instance_243; function Companion_getInstance_213() { return Companion_instance_243; } function SignUpViewModel$slambda$slambda$lambda($savedStateHandle) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_safe_receiver = $savedStateHandle.ba('DateOfBirth'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.p96_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $this$shallowCopy.o96_1 = toBoolean($savedStateHandle.ba('personalAccount')); return Unit_instance; }; } function SignUpViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda).szc = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$slambda$slambda).ie = function (p1, $completion) { return this.szc(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda).enz = function (it, completion) { var i = new SignUpViewModel$slambda$slambda(completion); i.u10h_1 = it; return i; }; function SignUpViewModel$slambda$slambda_0(resultContinuation) { var i = new SignUpViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.szc(it, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$slambda$slambda_1($savedStateHandle, resultContinuation) { this.d10i_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda_1).czd = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$slambda$slambda_1).n78 = function ($completion) { return this.czd($completion); }; protoOf(SignUpViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = new Person(); return shallowCopy(tmp_0, SignUpViewModel$slambda$slambda$lambda(this.d10i_1)); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda_1).m78 = function (completion) { return new SignUpViewModel$slambda$slambda_1(this.d10i_1, completion); }; function SignUpViewModel$slambda$slambda_2($savedStateHandle, resultContinuation) { var i = new SignUpViewModel$slambda$slambda_1($savedStateHandle, resultContinuation); var l = function ($completion) { return i.czd($completion); }; l.$arity = 0; return l; } function SignUpViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel...' call var tmp1_safe_receiver = it == null ? null : it.ekr(); var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.text.trim' call tmp = toString(trim(isCharSequence(tmp1_safe_receiver) ? tmp1_safe_receiver : THROW_CCE())); } var tmp2_elvis_lhs = tmp; var nextValue = prevValue.j10k(it, VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SignUpViewModel$slambda$slambda_3(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda_3).zzp = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.zzp(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda_3).enz = function (it, completion) { var i = new SignUpViewModel$slambda$slambda_3(completion); i.s10k_1 = it; return i; }; function SignUpViewModel$slambda$slambda_4(resultContinuation) { var i = new SignUpViewModel$slambda$slambda_3(resultContinuation); var l = function (it, $completion) { return i.zzp(it, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda_5).izq = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$slambda$slambda_5).n78 = function ($completion) { return this.izq($completion); }; protoOf(SignUpViewModel$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return new PersonPicture(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda_5).m78 = function (completion) { return new SignUpViewModel$slambda$slambda_5(completion); }; function SignUpViewModel$slambda$slambda_6(resultContinuation) { var i = new SignUpViewModel$slambda$slambda_5(resultContinuation); var l = function ($completion) { return i.izq($completion); }; l.$arity = 0; return l; } function SignUpViewModel$slambda$lambda_0(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel...' call var nextValue = prevValue.j10k(VOID, VOID, VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SignUpViewModel$onFullNameFocusedChanged$slambda$lambda($suggestedUsername) { return function ($this$shallowCopy) { $this$shallowCopy.h96_1 = $suggestedUsername; return Unit_instance; }; } function SignUpViewModel$onClickSignup$slambda$lambda($e) { return function () { return 'exception ' + $e.message; }; } function _get_nextDestination__tjiqwa_0($this) { var tmp = $this.c10j_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('nextDestination'); } } function _get_apiUrlConfig__mldllg_7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.e10j_1; apiUrlConfig$factory_16(); return this_0.t2(); } function _get_getLocalAccountsSupportedUseCase__hoi7c7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.f10j_1; getLocalAccountsSupportedUseCase$factory_0(); return this_0.t2(); } function _get_createPasskeyUseCase__ryoxza_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.j10j_1; createPasskeyUseCase$factory_2(); return this_0.t2(); } function _get_genderConfig__kyr0zc_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l10j_1; genderConfig$factory_4(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p10j_1; enqueueSavePictureUseCase$factory_2(); return this_0.t2(); } function hasErrors_5(_this__u8e3s4, $this) { return (!(_this__u8e3s4.z10j_1 == null) ? true : !(_this__u8e3s4.y10j_1 == null)) ? true : !(_this__u8e3s4.g10k_1 == null); } function navigateToAppropriateScreen($this, savePerson, $completion) { var tmp = new $navigateToAppropriateScreenCOROUTINE$81($this, savePerson, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function enrollToCourseFromInviteUid($this, personUid, $completion) { var tmp = new $enrollToCourseFromInviteUidCOROUTINE$82($this, personUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_196() { Companion_instance_244 = this; this.pr8_1 = 'picState'; this.qr8_1 = 'SignUp'; this.rr8_1 = 'DateOfBirth'; this.sr8_1 = 'personalAccount'; this.tr8_1 = 'newOrExisting'; this.ur8_1 = 'new'; this.vr8_1 = 'existing'; var tmp = this; Companion_getInstance_117(); Companion_getInstance_117(); Companion_getInstance_203(); tmp.wr8_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'DateOfBirth', 'RegMode', 'newOrExisting', 'personalAccount']); this.xr8_1 = 'SignupWithUsernameAndPassword'; } var Companion_instance_244; function Companion_getInstance_214() { if (Companion_instance_244 == null) new Companion_196(); return Companion_instance_244; } function SignUpViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.e10m_1 = this$0; this.f10m_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; Companion_getInstance_117(); tmp_0.h10m_1 = this.f10m_1.ba('next'); if (this.h10m_1 == null) { this.id_1 = 1; suspendResult = this.e10m_1.h10j_1.w8q(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.i10m_1 = this.h10m_1; this.id_1 = 2; continue $sm; } case 1: this.i10m_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.i10m_1; var tmp_1; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('destination can not be null'); } else { tmp_1 = tmp1_elvis_lhs; } var ARGUMENT = tmp_1; this.e10m_1.c10j_1 = ARGUMENT; this.e10m_1.i10j_1.hy(_get_nextDestination__tjiqwa_0(this.e10m_1)); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SignUpViewModel$slambda).w1m = function ($this$launch, completion) { var i = new SignUpViewModel$slambda(this.e10m_1, this.f10m_1, completion); i.g10m_1 = $this$launch; return i; }; function SignUpViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new SignUpViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.r10m_1 = this$0; this.s10m_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; var tmp_0 = Companion_instance_3.o4r(); var tmp_1 = SignUpViewModel$slambda$slambda_0(null); var tmp_2 = SignUpViewModel$slambda$slambda_2(this.s10m_1, null); suspendResult = this.r10m_1.fqp(tmp_0, VOID, 'otheroptionperson', tmp_1, tmp_2, SignUpViewModel$slambda$lambda(this.r10m_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; var tmp_3 = Companion_instance_7.o4r(); var tmp_4 = SignUpViewModel$slambda$slambda_4(null); var tmp_5 = SignUpViewModel$slambda$slambda_6(null); suspendResult = this.r10m_1.fqp(tmp_3, VOID, 'otheroptionpersonprofilepic', tmp_4, tmp_5, SignUpViewModel$slambda$lambda_0(this.r10m_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SignUpViewModel$slambda_1).w1m = function ($this$launch, completion) { var i = new SignUpViewModel$slambda_1(this.r10m_1, this.s10m_1, completion); i.t10m_1 = $this$launch; return i; }; function SignUpViewModel$slambda_2(this$0, $savedStateHandle, resultContinuation) { var i = new SignUpViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.c10n_1 = $commitDelay; this.d10n_1 = $entity; this.e10n_1 = $this; this.f10n_1 = $key; this.g10n_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.c10n_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.d10n_1 == null)) { this.id_1 = 2; suspendResult = this.e10n_1.bqp(this.e10n_1.vqn_1, this.f10n_1, this.g10n_1, this.d10n_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SignUpViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new SignUpViewModel$onEntityChanged$slambda(this.c10n_1, this.d10n_1, this.e10n_1, this.f10n_1, this.g10n_1, completion); i.h10n_1 = $this$launch; return i; }; function SignUpViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new SignUpViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation) { this.q10n_1 = this$0; this.r10n_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onPersonPictureChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$onPersonPictureChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onPersonPictureChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.q10n_1.bqp(this.q10n_1.vqn_1, 'picState', Companion_instance_7.o4r(), this.r10n_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SignUpViewModel$onPersonPictureChanged$slambda).w1m = function ($this$launch, completion) { var i = new SignUpViewModel$onPersonPictureChanged$slambda(this.q10n_1, this.r10n_1, completion); i.s10n_1 = $this$launch; return i; }; function SignUpViewModel$onPersonPictureChanged$slambda_0(this$0, $personPicture, resultContinuation) { var i = new SignUpViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onUsernameChanged$lambda($filteredValue) { return function ($this$shallowCopy) { $this$shallowCopy.h96_1 = $filteredValue; return Unit_instance; }; } function SignUpViewModel$onFullNameFocusedChanged$slambda(this$0, resultContinuation) { this.b10o_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var tmp0_elvis_lhs = this.b10o_1.b10j_1.t2().w10j_1; tmp_0.d10o_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; if (isBlank(this.d10o_1)) return Unit_instance; this.jd_1 = 2; this.id_1 = 1; suspendResult = this.b10o_1.m10j_1.fpp(this.d10o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var suggestedUsername = suspendResult; var tmp0_safe_receiver = this.b10o_1.b10j_1.t2().r10j_1; var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = shallowCopy(tmp0_safe_receiver, SignUpViewModel$onFullNameFocusedChanged$slambda$lambda(suggestedUsername)); } var updatedPerson = tmp_1; l$ret$1: do { var this_0 = this.b10o_1.b10j_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver_0 = this.b10o_1.b10j_1.t2().r10j_1; var tmp_2 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h96_1; var nextValue = prevValue.j10k(updatedPerson, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b10o_1.gqv(tmp_2, updatedPerson == null ? null : updatedPerson.h96_1, this.b10o_1.b10j_1.t2().g10k_1)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_3 = this.ld_1; if (tmp_3 instanceof UsernameErrorException) { var e = this.ld_1; l$ret$3: do { var this_1 = this.b10o_1.b10j_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, stringResourceOrMessage(e, this.b10o_1.vqo())); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 4; continue $sm; } else { var tmp_4 = this.ld_1; if (tmp_4 instanceof Exception) { var e_0 = this.ld_1; l$ret$5: do { var this_2 = this.b10o_1.b10j_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, stringResourceOrMessage(e_0, this.b10o_1.vqo())); if (this_2.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_1 = $p; if (this.jd_1 === 3) { throw e_1; } else { this.id_1 = this.jd_1; this.ld_1 = e_1; } } while (true); }; protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).w1m = function ($this$launch, completion) { var i = new SignUpViewModel$onFullNameFocusedChanged$slambda(this.b10o_1, completion); i.c10o_1 = $this$launch; return i; }; function SignUpViewModel$onFullNameFocusedChanged$slambda_0(this$0, resultContinuation) { var i = new SignUpViewModel$onFullNameFocusedChanged$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onClickSignup$lambda($firstName, $lastName) { return function ($this$shallowCopy) { $this$shallowCopy.i96_1 = $firstName; $this$shallowCopy.j96_1 = $lastName; return Unit_instance; }; } function SignUpViewModel$onClickSignup$slambda(this$0, $savePerson, $createPasskeyUseCaseVal, resultContinuation) { this.m10o_1 = this$0; this.n10o_1 = $savePerson; this.o10o_1 = $createPasskeyUseCaseVal; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onClickSignup$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignUpViewModel$onClickSignup$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onClickSignup$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 18; this.id_1 = 1; continue $sm; case 1: this.id_1 = 2; continue $sm; case 2: this.jd_1 = 17; this.jd_1 = 14; this.id_1 = 3; var tmp_0 = get_doorPrimaryKeyManager(this.m10o_1.pqo()); suspendResult = tmp_0.p62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.s10o_1 = suspendResult; this.n10o_1.g96_1 = this.s10o_1; if (!(this.o10o_1 == null)) { this.jd_1 = 11; var tmp_1 = this; var tmp0_elvis_lhs = this.n10o_1.h96_1; var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$('username can not be null'); } else { tmp_2 = tmp0_elvis_lhs; } tmp_1.t10o_1 = tmp_2; this.id_1 = 4; suspendResult = this.o10o_1.rpb(this.t10o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var this_0 = LinkedHashMap_init_$Create$(); this.m10o_1.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_126(); this.m10o_1.iqp(this_0, 'next'); this_0.s('otheroptionperson', this.m10o_1.n4r().s45(Companion_instance_3.o4r(), this.n10o_1)); var tmp_3 = this.m10o_1.n4r(); var tmp_4 = Companion_instance_7.o4r(); var tmp0_elvis_lhs_0 = this.m10o_1.b10j_1.t2().u10j_1; this_0.s('otheroptionpersonprofilepic', tmp_3.s45(tmp_4, tmp0_elvis_lhs_0 == null ? new PersonPicture() : tmp0_elvis_lhs_0)); this_0.s('isparent', this.m10o_1.b10j_1.t2().a10k_1.toString()); this.m10o_1.xqn_1.tp6('SignupEnterUsernamePassword', this_0.f3()); this.id_1 = 13; continue $sm; } case 4: this.u10o_1 = suspendResult; this.v10o_1 = this.u10o_1; var tmp_5 = this.v10o_1; if (tmp_5 instanceof PasskeyCreatedResult) { this.id_1 = 5; suspendResult = this.m10o_1.lqo().uoa(this.m10o_1.g10j_1, this.u10o_1.z10o_1, this.n10o_1, this.m10o_1.b10j_1.t2().u10j_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_6 = this.v10o_1; if (tmp_6 instanceof Error_1) { l$ret$1: do { var this_1 = this.m10o_1.b10j_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.u10o_1.y10o_1); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 10; continue $sm; } else { var tmp_7 = this.v10o_1; if (tmp_7 instanceof UserCanceledResult) { this.id_1 = 10; continue $sm; } else { this.id_1 = 10; continue $sm; } } } case 5: this.w10o_1 = this.m10o_1.b10j_1.t2().u10j_1; if (!(this.w10o_1 == null)) { this.w10o_1.f97_1 = this.n10o_1.g96_1; this.w10o_1.g97_1 = systemTimeInMillis(); this.x10o_1 = this.w10o_1.h97_1; this.id_1 = 6; var tmp_8 = _get_enqueueSavePictureUseCase__rl1s31_0(this.m10o_1); var tmp_9 = this.n10o_1.g96_1; suspendResult = tmp_8.dos(tmp_9, 50, this.x10o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 7; continue $sm; } case 6: this.id_1 = 7; continue $sm; case 7: this.id_1 = 8; suspendResult = enrollToCourseFromInviteUid(this.m10o_1, this.n10o_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.id_1 = 9; suspendResult = navigateToAppropriateScreen(this.m10o_1, this.n10o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.id_1 = 10; continue $sm; case 10: this.jd_1 = 14; this.id_1 = 12; continue $sm; case 11: this.jd_1 = 14; var tmp_10 = this.ld_1; if (tmp_10 instanceof Exception) { var e = this.ld_1; l$ret$3: do { var this_2 = this.m10o_1.b10j_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, stringResourceOrMessage(e, this.m10o_1.vqo())); if (this_2.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 12; continue $sm; } else { throw this.ld_1; } case 12: this.jd_1 = 14; this.id_1 = 13; continue $sm; case 13: this.q10o_1 = Unit_instance; this.jd_1 = 18; this.id_1 = 16; continue $sm; case 14: this.jd_1 = 17; var tmp_11 = this.ld_1; if (tmp_11 instanceof Exception) { var e_0 = this.ld_1; var tmp_12 = Napier_getInstance(); tmp_12.l5e(VOID, VOID, SignUpViewModel$onClickSignup$slambda$lambda(e_0)); this.m10o_1.tqo().wq7(new Snack(this.m10o_1.vqo().soj(strings_getInstance().xmi_1) + ':' + e_0.message)); this.r10o_1 = Unit_instance; this.jd_1 = 18; this.id_1 = 15; var tmp_13 = this; continue $sm; } else { throw this.ld_1; } case 15: this.jd_1 = 18; this.m10o_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; case 16: this.jd_1 = 18; this.m10o_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; case 17: this.jd_1 = 18; var t = this.ld_1; this.m10o_1.xqo(Companion_getInstance_98().pq7_1); throw t; case 18: throw this.ld_1; } } catch ($p) { var e_1 = $p; if (this.jd_1 === 18) { throw e_1; } else { this.id_1 = this.jd_1; this.ld_1 = e_1; } } while (true); }; protoOf(SignUpViewModel$onClickSignup$slambda).w1m = function ($this$launch, completion) { var i = new SignUpViewModel$onClickSignup$slambda(this.m10o_1, this.n10o_1, this.o10o_1, completion); i.p10o_1 = $this$launch; return i; }; function SignUpViewModel$onClickSignup$slambda_0(this$0, $savePerson, $createPasskeyUseCaseVal, resultContinuation) { var i = new SignUpViewModel$onClickSignup$slambda(this$0, $savePerson, $createPasskeyUseCaseVal, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$navigateToAppropriateScreen$lambda($destination) { return function () { return 'AddSignUpPresenter: go to next destination: ' + $destination; }; } function $navigateToAppropriateScreenCOROUTINE$81(_this__u8e3s4, savePerson, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.j10l_1 = _this__u8e3s4; this.k10l_1 = savePerson; } protoOf($navigateToAppropriateScreenCOROUTINE$81).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.j10l_1.i10j_1.ov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var destination = suspendResult; if (this.j10l_1.b10j_1.t2().a10k_1) { var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_126(); this_0.s('next', destination); this.j10l_1.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_126(); this.j10l_1.iqp(this_0, 'next'); this.j10l_1.xqn_1.tp6('AddChildProfile', this_0.f3()); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp_0 = Napier_getInstance(); tmp_0.l5e(VOID, VOID, SignUpViewModel$navigateToAppropriateScreen$lambda(destination)); this.j10l_1.hqv(this.j10l_1.xqn_1, appendSelectedAccount(destination, this.k10l_1.g96_1, new LearningSpace(this.j10l_1.lqo().roa().cnu_1)), goOptions); } return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $enrollToCourseFromInviteUidCOROUTINE$82(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.t10l_1 = _this__u8e3s4; this.u10l_1 = personUid; } protoOf($enrollToCourseFromInviteUidCOROUTINE$82).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; Companion_getInstance_117(); tmp_0.v10l_1 = this.t10l_1.vqn_1.ba('next'); var tmp_1; if (!(this.v10l_1 == null)) { tmp_1 = contains(this.v10l_1, 'ClazzInviteRedeem'); } else { tmp_1 = false; } if (tmp_1) { var tmp_2 = this.t10l_1; Companion_getInstance_141(); tmp_2.c10j_1 = 'CourseListHome'; this.id_1 = 1; suspendResult = this.t10l_1.q10j_1.hph(this.v10l_1, this.u10l_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SignUpViewModel(di, savedStateHandle, destName) { Companion_getInstance_214(); destName = destName === VOID ? 'SignUp' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.b10j_1 = MutableStateFlow(new SignUpUiState()); this.d10j_1 = asStateFlow(this.b10j_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.e10j_1 = Instance(this, tmp$ret$0, null).b5d(this, apiUrlConfig$factory_15()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetLocalAccountsSupportedUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.f10j_1 = Instance(this, tmp$ret$2, null).b5d(this, getLocalAccountsSupportedUseCase$factory()); var tmp_3 = this; Companion_getInstance_117(); var tmp0_elvis_lhs = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_7(this).fo6_1 : tmp0_elvis_lhs; tmp_3.g10j_1 = tmp1_elvis_lhs == null ? 'http://localhost' : tmp1_elvis_lhs; var tmp_4 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.g10j_1); var trigger = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_5 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$5 = tmp_5.i57(tmp$ret$4, context); var tmp$ret$6 = On(di, tmp$ret$5, trigger); var tmp_7 = get_direct(tmp$ret$6).g58(); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); tmp_4.h10j_1 = tmp_7.e58(tmp$ret$7, null); this.i10j_1 = CompletableDeferred(); var tmp_9 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.g10j_1); var trigger_0 = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_10 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); var tmp$ret$10 = tmp_10.i57(tmp$ret$9, context_0); var this_0 = On(di, tmp$ret$10, trigger_0); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(CreatePasskeyUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_9.j10j_1 = InstanceOrNull(this_0, tmp$ret$12, null).b5d(this, createPasskeyUseCase$factory_1()); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_1 = new LearningSpace(this.g10j_1); var trigger_1 = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_14 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_15 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_15, TypeToken) ? tmp_15 : THROW_CCE(); var tmp$ret$15 = tmp_14.i57(tmp$ret$14, context_1); var tmp$ret$16 = On(di, tmp$ret$15, trigger_1); var tmp_16 = get_direct(tmp$ret$16).g58(); // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$17 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); tmp_13.k10j_1 = tmp_16.e58(tmp$ret$17, null); var tmp_18 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$19 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); tmp_18.l10j_1 = Instance(this, tmp$ret$19, null).b5d(this, genderConfig$factory_3()); var tmp_20 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_2 = new LearningSpace(this.g10j_1); var trigger_2 = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_21 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_22 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$21 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE(); var tmp$ret$22 = tmp_21.i57(tmp$ret$21, context_2); var tmp$ret$23 = On(di, tmp$ret$22, trigger_2); var tmp_23 = get_direct(tmp$ret$23).g58(); // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(GetUsernameSuggestionUseCase), arrayOf([]), false)); var tmp$ret$24 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); tmp_20.m10j_1 = tmp_23.e58(tmp$ret$24, null); this.n10j_1 = new FilterUsernameUseCase(); this.o10j_1 = null; var tmp_25 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_3 = new LearningSpace(this.g10j_1); var trigger_3 = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_26 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_27 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$26 = isInterface(tmp_27, TypeToken) ? tmp_27 : THROW_CCE(); var tmp$ret$27 = tmp_26.i57(tmp$ret$26, context_3); var this_1 = On(this, tmp$ret$27, trigger_3); // Inline function 'org.kodein.type.generic' call var tmp_28 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$29 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE(); tmp_25.p10j_1 = Instance(this_1, tmp$ret$29, null).b5d(this, enqueueSavePictureUseCase$factory_1()); var tmp_29 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_4 = new LearningSpace(this.g10j_1); var trigger_4 = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_30 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_31 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$31 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE(); var tmp$ret$32 = tmp_30.i57(tmp$ret$31, context_4); var tmp$ret$33 = On(di, tmp$ret$32, trigger_4); var tmp_32 = get_direct(tmp$ret$33).g58(); // Inline function 'org.kodein.type.generic' call var tmp_33 = typeToken(createKType(getKClass(EnrollToCourseFromInviteCodeUseCase), arrayOf([]), false)); var tmp$ret$34 = isInterface(tmp_33, TypeToken) ? tmp_33 : THROW_CCE(); tmp_29.q10j_1 = tmp_32.e58(tmp$ret$34, null); var tmp_34 = this.mqo(); launch(tmp_34, VOID, VOID, SignUpViewModel$slambda_0(this, savedStateHandle, null)); this.xqo(Companion_getInstance_98().oq7_1); var title = this.vqo().soj(strings_getInstance().bn8_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue = new AppUiState(VOID, VOID, title, false, VOID, VOID, false, VOID, VOID, VOID, false); if (this_2.z1k(prevValue, nextValue)) { break $l$block; } } } if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.b10j_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue_0 = prevValue_0.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_35 = this; Companion_getInstance_170(); tmp_35.c10j_1 = 'ContentEntryListHome'; } var tmp_36 = this.mqo(); launch(tmp_36, VOID, VOID, SignUpViewModel$slambda_2(this, savedStateHandle, null)); $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.b10j_1; while (true) { var prevValue_1 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var tmp0_genderOptions = _get_genderConfig__kyr0zc_1(this).gq8_1; var tmp1_serverUrl_ = this.g10j_1; var tmp2_passkeySupported = !(_get_createPasskeyUseCase__ryoxza_0(this) == null); var tmp3_showOtherOption = _get_createPasskeyUseCase__ryoxza_0(this) == null ? _get_getLocalAccountsSupportedUseCase__hoi7c7(this).zpe() : false; var nextValue_1 = prevValue_1.j10k(VOID, VOID, tmp0_genderOptions, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_passkeySupported, tmp1_serverUrl_, tmp3_showOtherOption); if (this_4.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } protoOf(SignUpViewModel).kzf = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.r10j_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m96_1; var tmp_0 = this.gqv(tmp, entity == null ? null : entity.m96_1, prevValue.y10j_1); var tmp2_safe_receiver = prevValue.r10j_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h96_1; var nextValue = prevValue.j10k(entity, VOID, VOID, VOID, VOID, VOID, VOID, tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.gqv(tmp_1, entity == null ? null : entity.h96_1, prevValue.g10k_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_2 = this; var tmp_3 = this.mqo(); tmp_2.cqu_1 = launch(tmp_3, VOID, VOID, SignUpViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignUpViewModel).a10p = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onParentCheckChanged.' call var nextValue = prevValue.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).b10p = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onTeacherCheckChanged.' call var nextValue = prevValue.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).hzv = function (pictureUri) { // Inline function 'kotlin.apply' call var this_0 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onPersonPictureChanged.' call var tmp = this_0; var tmp0_safe_receiver = this.b10j_1.t2().u10j_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f97_1; tmp.f97_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.h97_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.b10j_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onPersonPictureChanged.' call var nextValue = prevValue.j10k(VOID, VOID, VOID, personPicture); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, SignUpViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(SignUpViewModel).c10p = function (fullName) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onFullNameValueChange.' call var nextValue = prevValue.j10k(VOID, VOID, VOID, VOID, VOID, fullName, VOID, VOID, this.gqv(prevValue.w10j_1, fullName, prevValue.z10j_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).eyl = function (newValue) { var filteredValue = this.n10j_1.vpe(newValue, ''); var tmp0_safe_receiver = this.b10j_1.t2().r10j_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy(tmp0_safe_receiver, SignUpViewModel$onUsernameChanged$lambda(filteredValue)); } var updatedPerson = tmp; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onUsernameChanged.' call var tmp2_safe_receiver = this.b10j_1.t2().r10j_1; var tmp3_usernameSetByUser = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h96_1) === filteredValue); var tmp0_safe_receiver_0 = this.b10j_1.t2().r10j_1; var tmp_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h96_1; var tmp4_usernameError = this.gqv(tmp_0, updatedPerson == null ? null : updatedPerson.h96_1, this.b10j_1.t2().g10k_1); var nextValue = prevValue.j10k(updatedPerson, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_usernameError, tmp3_usernameSetByUser); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).d10p = function (hasFocused) { if (hasFocused) return Unit_instance; var tmp; if (this.b10j_1.t2().h10k_1) { // Inline function 'kotlin.text.isNullOrEmpty' call var tmp0_safe_receiver = this.b10j_1.t2().r10j_1; var this_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ekr(); // Inline function 'kotlin.contracts.contract' call tmp = !(this_0 == null ? true : charSequenceLength(this_0) === 0); } else { tmp = false; } if (tmp) return Unit_instance; var tmp1_safe_receiver = this.o10j_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.nr(); } var tmp_0 = this; var tmp_1 = this.mqo(); tmp_0.o10j_1 = launch(tmp_1, VOID, VOID, SignUpViewModel$onFullNameFocusedChanged$slambda_0(this, null)); }; protoOf(SignUpViewModel).e10p = function () { this.xqo(Companion_getInstance_98().oq7_1); var tmp0_safe_receiver = this.b10j_1.t2().w10j_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.text.trim' call tmp = toString(trim(isCharSequence(tmp0_safe_receiver) ? tmp0_safe_receiver : THROW_CCE())); } var fullName = tmp; var tmp_0; if (fullName == null) { tmp_0 = null; } else { // Inline function 'kotlin.text.trim' call tmp_0 = toString(trim(isCharSequence(fullName) ? fullName : THROW_CCE())); } var tmp2_safe_receiver = tmp_0; var parts = tmp2_safe_receiver == null ? null : split(tmp2_safe_receiver, [' '], VOID, 2); var firstName = parts == null ? null : parts.v(0); var tmp_1; if (parts == null) { tmp_1 = null; } else { // Inline function 'kotlin.collections.getOrElse' call var tmp_2; if (1 >= 0 ? 1 <= get_lastIndex(parts) : false) { tmp_2 = parts.v(1); } else { // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onClickSignup.' call tmp_2 = ''; } tmp_1 = tmp_2; } var lastName = tmp_1; var tmp5_safe_receiver = this.b10j_1.t2().r10j_1; var tmp_3; if (tmp5_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = shallowCopy(tmp5_safe_receiver, SignUpViewModel$onClickSignup$lambda(firstName, lastName)); } this.kzf(tmp_3); var tmp6_elvis_lhs = this.b10j_1.t2().r10j_1; var tmp_4; if (tmp6_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp6_elvis_lhs; } var savePerson = tmp_4; var requiredFieldMessage = this.vqo().soj(strings_getInstance().cmo_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.b10j_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onClickSignup.' call var tmp_5; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = savePerson.i96_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_5 = requiredFieldMessage; } else { tmp_5 = null; } var tmp0_fullNameError = tmp_5; var tmp_6; var tmp_7 = savePerson.m96_1; if (tmp_7 === 0) { tmp_6 = requiredFieldMessage; } else { tmp_6 = null; } var tmp1_genderError = tmp_6; var tmp_8; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = savePerson.h96_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_8 = requiredFieldMessage; } else { tmp_8 = null; } var tmp2_usernameError = tmp_8; var nextValue = prevValue.j10k(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_genderError, tmp0_fullNameError, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_usernameError); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_5(this.b10j_1.t2(), this)) { this.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; } var createPasskeyUseCaseVal = _get_createPasskeyUseCase__ryoxza_0(this); var tmp_9 = this.mqo(); launch(tmp_9, VOID, VOID, SignUpViewModel$onClickSignup$slambda_0(this, savePerson, createPasskeyUseCaseVal, null)); }; function SignUpUiState(person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText) { person = person === VOID ? null : person; password = password === VOID ? null : password; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().iq8_1 : genderOptions; personPicture = personPicture === VOID ? null : personPicture; registrationMode = registrationMode === VOID ? 0 : registrationMode; fullName = fullName === VOID ? null : fullName; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; genderError = genderError === VOID ? null : genderError; fullNameError = fullNameError === VOID ? null : fullNameError; isParent = isParent === VOID ? false : isParent; isTeacher = isTeacher === VOID ? false : isTeacher; passkeySupported = passkeySupported === VOID ? true : passkeySupported; serverUrl_ = serverUrl_ === VOID ? null : serverUrl_; showOtherOption = showOtherOption === VOID ? true : showOtherOption; isPersonalAccount = isPersonalAccount === VOID ? false : isPersonalAccount; usernameError = usernameError === VOID ? null : usernameError; usernameSetByUser = usernameSetByUser === VOID ? false : usernameSetByUser; errorText = errorText === VOID ? null : errorText; this.r10j_1 = person; this.s10j_1 = password; this.t10j_1 = genderOptions; this.u10j_1 = personPicture; this.v10j_1 = registrationMode; this.w10j_1 = fullName; this.x10j_1 = dateOfBirthError; this.y10j_1 = genderError; this.z10j_1 = fullNameError; this.a10k_1 = isParent; this.b10k_1 = isTeacher; this.c10k_1 = passkeySupported; this.d10k_1 = serverUrl_; this.e10k_1 = showOtherOption; this.f10k_1 = isPersonalAccount; this.g10k_1 = usernameError; this.h10k_1 = usernameSetByUser; this.i10k_1 = errorText; } protoOf(SignUpUiState).f10p = function (person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText) { return new SignUpUiState(person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText); }; protoOf(SignUpUiState).j10k = function (person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText, $super) { person = person === VOID ? this.r10j_1 : person; password = password === VOID ? this.s10j_1 : password; genderOptions = genderOptions === VOID ? this.t10j_1 : genderOptions; personPicture = personPicture === VOID ? this.u10j_1 : personPicture; registrationMode = registrationMode === VOID ? this.v10j_1 : registrationMode; fullName = fullName === VOID ? this.w10j_1 : fullName; dateOfBirthError = dateOfBirthError === VOID ? this.x10j_1 : dateOfBirthError; genderError = genderError === VOID ? this.y10j_1 : genderError; fullNameError = fullNameError === VOID ? this.z10j_1 : fullNameError; isParent = isParent === VOID ? this.a10k_1 : isParent; isTeacher = isTeacher === VOID ? this.b10k_1 : isTeacher; passkeySupported = passkeySupported === VOID ? this.c10k_1 : passkeySupported; serverUrl_ = serverUrl_ === VOID ? this.d10k_1 : serverUrl_; showOtherOption = showOtherOption === VOID ? this.e10k_1 : showOtherOption; isPersonalAccount = isPersonalAccount === VOID ? this.f10k_1 : isPersonalAccount; usernameError = usernameError === VOID ? this.g10k_1 : usernameError; usernameSetByUser = usernameSetByUser === VOID ? this.h10k_1 : usernameSetByUser; errorText = errorText === VOID ? this.i10k_1 : errorText; return $super === VOID ? this.f10p(person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText) : $super.f10p.call(this, person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText); }; protoOf(SignUpUiState).toString = function () { return 'SignUpUiState(person=' + this.r10j_1 + ', password=' + this.s10j_1 + ', genderOptions=' + this.t10j_1 + ', personPicture=' + this.u10j_1 + ', registrationMode=' + this.v10j_1 + ', fullName=' + this.w10j_1 + ', dateOfBirthError=' + this.x10j_1 + ', genderError=' + this.y10j_1 + ', fullNameError=' + this.z10j_1 + ', isParent=' + this.a10k_1 + ', isTeacher=' + this.b10k_1 + ', passkeySupported=' + this.c10k_1 + ', serverUrl_=' + this.d10k_1 + ', showOtherOption=' + this.e10k_1 + ', isPersonalAccount=' + this.f10k_1 + ', usernameError=' + this.g10k_1 + ', usernameSetByUser=' + this.h10k_1 + ', errorText=' + this.i10k_1 + ')'; }; protoOf(SignUpUiState).hashCode = function () { var result = this.r10j_1 == null ? 0 : this.r10j_1.hashCode(); result = imul(result, 31) + (this.s10j_1 == null ? 0 : getStringHashCode(this.s10j_1)) | 0; result = imul(result, 31) + hashCode(this.t10j_1) | 0; result = imul(result, 31) + (this.u10j_1 == null ? 0 : this.u10j_1.hashCode()) | 0; result = imul(result, 31) + this.v10j_1 | 0; result = imul(result, 31) + (this.w10j_1 == null ? 0 : getStringHashCode(this.w10j_1)) | 0; result = imul(result, 31) + (this.x10j_1 == null ? 0 : getStringHashCode(this.x10j_1)) | 0; result = imul(result, 31) + (this.y10j_1 == null ? 0 : getStringHashCode(this.y10j_1)) | 0; result = imul(result, 31) + (this.z10j_1 == null ? 0 : getStringHashCode(this.z10j_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.a10k_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.b10k_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.c10k_1) | 0; result = imul(result, 31) + (this.d10k_1 == null ? 0 : getStringHashCode(this.d10k_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.e10k_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.f10k_1) | 0; result = imul(result, 31) + (this.g10k_1 == null ? 0 : getStringHashCode(this.g10k_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.h10k_1) | 0; result = imul(result, 31) + (this.i10k_1 == null ? 0 : getStringHashCode(this.i10k_1)) | 0; return result; }; protoOf(SignUpUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SignUpUiState)) return false; var tmp0_other_with_cast = other instanceof SignUpUiState ? other : THROW_CCE(); if (!equals(this.r10j_1, tmp0_other_with_cast.r10j_1)) return false; if (!(this.s10j_1 == tmp0_other_with_cast.s10j_1)) return false; if (!equals(this.t10j_1, tmp0_other_with_cast.t10j_1)) return false; if (!equals(this.u10j_1, tmp0_other_with_cast.u10j_1)) return false; if (!(this.v10j_1 === tmp0_other_with_cast.v10j_1)) return false; if (!(this.w10j_1 == tmp0_other_with_cast.w10j_1)) return false; if (!(this.x10j_1 == tmp0_other_with_cast.x10j_1)) return false; if (!(this.y10j_1 == tmp0_other_with_cast.y10j_1)) return false; if (!(this.z10j_1 == tmp0_other_with_cast.z10j_1)) return false; if (!(this.a10k_1 === tmp0_other_with_cast.a10k_1)) return false; if (!(this.b10k_1 === tmp0_other_with_cast.b10k_1)) return false; if (!(this.c10k_1 === tmp0_other_with_cast.c10k_1)) return false; if (!(this.d10k_1 == tmp0_other_with_cast.d10k_1)) return false; if (!(this.e10k_1 === tmp0_other_with_cast.e10k_1)) return false; if (!(this.f10k_1 === tmp0_other_with_cast.f10k_1)) return false; if (!(this.g10k_1 == tmp0_other_with_cast.g10k_1)) return false; if (!(this.h10k_1 === tmp0_other_with_cast.h10k_1)) return false; if (!(this.i10k_1 == tmp0_other_with_cast.i10k_1)) return false; return true; }; function apiUrlConfig$factory_15() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_7(receiver); }, null); } function getLocalAccountsSupportedUseCase$factory() { return getPropertyCallableRef('getLocalAccountsSupportedUseCase', 1, KProperty1, function (receiver) { return _get_getLocalAccountsSupportedUseCase__hoi7c7(receiver); }, null); } function createPasskeyUseCase$factory_1() { return getPropertyCallableRef('createPasskeyUseCase', 1, KProperty1, function (receiver) { return _get_createPasskeyUseCase__ryoxza_0(receiver); }, null); } function genderConfig$factory_3() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc_1(receiver); }, null); } function enqueueSavePictureUseCase$factory_1() { return getPropertyCallableRef('enqueueSavePictureUseCase', 1, KProperty1, function (receiver) { return _get_enqueueSavePictureUseCase__rl1s31_0(receiver); }, null); } function apiUrlConfig$factory_16() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_7(receiver); }, null); } function getLocalAccountsSupportedUseCase$factory_0() { return getPropertyCallableRef('getLocalAccountsSupportedUseCase', 1, KProperty1, function (receiver) { return _get_getLocalAccountsSupportedUseCase__hoi7c7(receiver); }, null); } function createPasskeyUseCase$factory_2() { return getPropertyCallableRef('createPasskeyUseCase', 1, KProperty1, function (receiver) { return _get_createPasskeyUseCase__ryoxza_0(receiver); }, null); } function genderConfig$factory_4() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc_1(receiver); }, null); } function enqueueSavePictureUseCase$factory_2() { return getPropertyCallableRef('enqueueSavePictureUseCase', 1, KProperty1, function (receiver) { return _get_enqueueSavePictureUseCase__rl1s31_0(receiver); }, null); } function SignupEnterUsernamePasswordViewModel$slambda$lambda($savedStateHandle, this$0) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; Companion_getInstance_214(); var tmp0_safe_receiver = $savedStateHandle.ba('DateOfBirth'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.p96_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $this$shallowCopy.o96_1 = this$0.q10q_1.t2().s10p_1; return Unit_instance; }; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda$lambda($e) { return function () { return 'enrollToCourseFromInviteCodeUseCase :' + $e.message; }; } function _get_nextDestination__tjiqwa_1($this) { var tmp = $this.s10q_1; if (!(tmp == null)) return tmp; else { throwUninitializedPropertyAccessException('nextDestination'); } } function _get_apiUrlConfig__mldllg_8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.u10q_1; apiUrlConfig$factory_18(); return this_0.t2(); } function _get_genderConfig__kyr0zc_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.z10q_1; genderConfig$factory_6(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.b10r_1; enqueueSavePictureUseCase$factory_4(); return this_0.t2(); } function hasErrors_6(_this__u8e3s4, $this) { return !(_this__u8e3s4.m10p_1 == null); } function navigateToAppropriateScreen_0($this, savePerson, $completion) { var tmp = new $navigateToAppropriateScreenCOROUTINE$83($this, savePerson, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function Companion_197() { this.m10r_1 = 'SignupEnterUsernamePassword'; } var Companion_instance_245; function Companion_getInstance_215() { return Companion_instance_245; } function SignupEnterUsernamePasswordViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.v10r_1 = this$0; this.w10r_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignupEnterUsernamePasswordViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignupEnterUsernamePasswordViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; this.id_1 = 1; suspendResult = this.v10r_1.aqp(this.w10r_1, 'otheroptionperson', Companion_instance_3.o4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.y10r_1 = suspendResult; this.z10r_1 = this.y10r_1 == null ? new Person() : this.y10r_1; this.id_1 = 2; suspendResult = this.v10r_1.aqp(this.w10r_1, 'otheroptionpersonprofilepic', Companion_instance_7.o4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.a10s_1 = suspendResult; l$ret$1: do { var this_0 = this.v10r_1.q10q_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = shallowCopy(this.z10r_1, SignupEnterUsernamePasswordViewModel$slambda$lambda(this.w10r_1, this.v10r_1)); var tmp_1; if (this.z10r_1.i96_1 === '') { tmp_1 = null; } else { tmp_1 = this.z10r_1.ekr(); } var nextValue = prevValue.d10s(tmp_0, VOID, VOID, this.a10s_1, VOID, tmp_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_2 = this; Companion_getInstance_117(); tmp_2.b10s_1 = this.w10r_1.ba('next'); if (this.b10s_1 == null) { this.id_1 = 3; suspendResult = this.v10r_1.x10q_1.w8q(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.c10s_1 = this.b10s_1; this.id_1 = 4; continue $sm; } case 3: this.c10s_1 = suspendResult; this.id_1 = 4; continue $sm; case 4: var tmp2_elvis_lhs = this.c10s_1; var tmp_3; if (tmp2_elvis_lhs == null) { throw IllegalStateException_init_$Create$('destination can not be null'); } else { tmp_3 = tmp2_elvis_lhs; } var ARGUMENT = tmp_3; this.v10r_1.s10q_1 = ARGUMENT; this.v10r_1.r10q_1.hy(_get_nextDestination__tjiqwa_1(this.v10r_1)); return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SignupEnterUsernamePasswordViewModel$slambda).w1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$slambda(this.v10r_1, this.w10r_1, completion); i.x10r_1 = $this$launch; return i; }; function SignupEnterUsernamePasswordViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new SignupEnterUsernamePasswordViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.m10s_1 = $commitDelay; this.n10s_1 = $entity; this.o10s_1 = $this; this.p10s_1 = $key; this.q10s_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.m10s_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.n10s_1 == null)) { this.id_1 = 2; suspendResult = this.o10s_1.bqp(this.o10s_1.vqn_1, this.p10s_1, this.q10s_1, this.n10s_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda(this.m10s_1, this.n10s_1, this.o10s_1, this.p10s_1, this.q10s_1, completion); i.r10s_1 = $this$launch; return i; }; function SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$lambda($firstName, $lastName) { return function ($this$shallowCopy) { $this$shallowCopy.i96_1 = $firstName; $this$shallowCopy.j96_1 = $lastName; return Unit_instance; }; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this$0, $savePerson, resultContinuation) { this.a10t_1 = this$0; this.b10t_1 = $savePerson; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 17; this.id_1 = 1; continue $sm; case 1: this.id_1 = 2; continue $sm; case 2: this.jd_1 = 16; this.jd_1 = 15; this.id_1 = 3; var tmp_0 = get_doorPrimaryKeyManager(this.a10t_1.pqo()); suspendResult = tmp_0.p62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.f10t_1 = suspendResult; this.b10t_1.g96_1 = this.f10t_1; this.g10t_1 = this.a10t_1.q10q_1.t2().h10p_1; if (this.g10t_1 == null) { this.e10t_1 = Unit_instance; this.jd_1 = 17; this.id_1 = 18; var tmp_1 = this; continue $sm; } else { this.h10t_1 = this.g10t_1; this.id_1 = 4; continue $sm; } case 4: this.i10t_1 = this.h10t_1; this.id_1 = 5; suspendResult = this.a10t_1.lqo().woa(this.b10t_1, this.i10t_1, this.a10t_1.w10q_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.j10t_1 = this.a10t_1.q10q_1.t2().j10p_1; if (!(this.j10t_1 == null)) { this.j10t_1.f97_1 = this.b10t_1.g96_1; this.j10t_1.g97_1 = systemTimeInMillis(); this.k10t_1 = this.j10t_1.h97_1; this.id_1 = 6; var tmp_2 = _get_enqueueSavePictureUseCase__rl1s31_1(this.a10t_1); var tmp_3 = this.b10t_1.g96_1; suspendResult = tmp_2.dos(tmp_3, 50, this.k10t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 7; continue $sm; } case 6: this.id_1 = 7; continue $sm; case 7: var tmp_4 = this; var this_0 = this.a10t_1.b57(); var context = new LearningSpace(this.a10t_1.w10q_1); var trigger = this_0.e57(); var tmp_5 = Companion_instance_0; var tmp_6 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_7 = get_direct(On(this_0, tmp_5.i57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).g58(); var tmp_8 = typeToken(createKType(getKClass(SavePasswordUseCase), arrayOf([]), false)); tmp_4.l10t_1 = tmp_7.f58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), null); this.m10t_1 = this.l10t_1; if (this.m10t_1 == null) { this.n10t_1 = null; this.id_1 = 9; continue $sm; } else { this.id_1 = 8; suspendResult = this.m10t_1.xpc(toString_0(this.b10t_1.h96_1), this.i10t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 8: var tmp_9 = this; tmp_9.n10t_1 = Unit_instance; this.id_1 = 9; continue $sm; case 9: this.jd_1 = 12; var tmp_10 = this; Companion_getInstance_117(); tmp_10.o10t_1 = this.a10t_1.vqn_1.ba('next'); if (!(this.o10t_1 == null) ? contains(this.o10t_1, 'ClazzInviteRedeem') : false) { var tmp_11 = this.a10t_1; Companion_getInstance_141(); tmp_11.s10q_1 = 'CourseListHome'; this.id_1 = 10; suspendResult = this.a10t_1.a10r_1.hph(this.o10t_1, this.b10t_1.g96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 11; continue $sm; } case 10: this.id_1 = 11; continue $sm; case 11: this.jd_1 = 15; this.id_1 = 13; continue $sm; case 12: this.jd_1 = 15; var tmp_12 = this.ld_1; if (tmp_12 instanceof Exception) { this.p10t_1 = this.ld_1; var tmp_13 = Napier_getInstance(); tmp_13.l5e(VOID, VOID, SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda$lambda(this.p10t_1)); this.id_1 = 13; continue $sm; } else { throw this.ld_1; } case 13: this.jd_1 = 15; this.id_1 = 14; suspendResult = navigateToAppropriateScreen_0(this.a10t_1, this.b10t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 14: this.d10t_1 = suspendResult; this.jd_1 = 17; this.id_1 = 19; continue $sm; case 15: this.jd_1 = 16; var tmp_14 = this.ld_1; if (tmp_14 instanceof Exception) { var e = this.ld_1; if (e instanceof IllegalStateException) { l$ret$5: do { var this_1 = this.a10t_1.q10q_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.d10s(VOID, VOID, VOID, VOID, VOID, VOID, this.a10t_1.vqo().soj(strings_getInstance().fn8_1)); if (this_1.z1k(prevValue, nextValue)) { break l$ret$5; } } } while (false); } else { this.a10t_1.tqo().wq7(new Snack(this.a10t_1.vqo().soj(strings_getInstance().hmj_1))); } this.e10t_1 = Unit_instance; this.jd_1 = 17; this.id_1 = 18; var tmp_15 = this; continue $sm; } else { throw this.ld_1; } case 16: this.jd_1 = 17; var t = this.ld_1; this.a10t_1.xqo(Companion_getInstance_98().pq7_1); throw t; case 17: throw this.ld_1; case 18: this.jd_1 = 17; this.a10t_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; case 19: this.jd_1 = 17; this.a10t_1.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 17) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).w1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this.a10t_1, this.b10t_1, completion); i.c10t_1 = $this$launch; return i; }; function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda_0(this$0, $savePerson, resultContinuation) { var i = new SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this$0, $savePerson, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$lambda($destination) { return function () { return 'AddSignupEnterUsernamePasswordPresenter: go to next destination: ' + $destination; }; } function $navigateToAppropriateScreenCOROUTINE$83(_this__u8e3s4, savePerson, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.k10r_1 = _this__u8e3s4; this.l10r_1 = savePerson; } protoOf($navigateToAppropriateScreenCOROUTINE$83).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.k10r_1.r10q_1.ov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var destination = suspendResult; if (this.k10r_1.v10q_1) { var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_126(); this_0.s('next', destination); this.k10r_1.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_126(); this.k10r_1.iqp(this_0, 'next'); this.k10r_1.xqn_1.tp6('AddChildProfile', this_0.f3()); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp_0 = Napier_getInstance(); tmp_0.l5e(VOID, VOID, SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$lambda(destination)); this.k10r_1.hqv(this.k10r_1.xqn_1, appendSelectedAccount(destination, this.l10r_1.g96_1, new LearningSpace(this.k10r_1.lqo().roa().cnu_1)), goOptions); } return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SignupEnterUsernamePasswordViewModel(di, savedStateHandle, destName) { destName = destName === VOID ? 'SignupEnterUsernamePassword' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.q10q_1 = MutableStateFlow(new SignupEnterUsernamePasswordUiState()); this.r10q_1 = CompletableDeferred(); this.t10q_1 = asStateFlow(this.q10q_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.u10q_1 = Instance(this, tmp$ret$0, null).b5d(this, apiUrlConfig$factory_17()); var tmp_1 = this; tmp_1.v10q_1 = toBoolean(savedStateHandle.ba('isparent')); var tmp_2 = this; Companion_getInstance_117(); var tmp0_elvis_lhs = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_8(this).fo6_1 : tmp0_elvis_lhs; tmp_2.w10q_1 = tmp1_elvis_lhs == null ? 'http://localhost' : tmp1_elvis_lhs; var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.w10q_1); var trigger = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_4 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); var tmp$ret$3 = tmp_4.i57(tmp$ret$2, context); var tmp$ret$4 = On(di, tmp$ret$3, trigger); var tmp_6 = get_direct(tmp$ret$4).g58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); tmp_3.x10q_1 = tmp_6.e58(tmp$ret$5, null); var tmp_8 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.w10q_1); var trigger_0 = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_9 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp$ret$8 = tmp_9.i57(tmp$ret$7, context_0); var tmp$ret$9 = On(di, tmp$ret$8, trigger_0); var tmp_11 = get_direct(tmp$ret$9).g58(); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_8.y10q_1 = tmp_11.e58(tmp$ret$10, null); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.z10q_1 = Instance(this, tmp$ret$12, null).b5d(this, genderConfig$factory_5()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_1 = new LearningSpace(this.w10q_1); var trigger_1 = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_16 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); var tmp$ret$15 = tmp_16.i57(tmp$ret$14, context_1); var tmp$ret$16 = On(di, tmp$ret$15, trigger_1); var tmp_18 = get_direct(tmp$ret$16).g58(); // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(EnrollToCourseFromInviteCodeUseCase), arrayOf([]), false)); var tmp$ret$17 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); tmp_15.a10r_1 = tmp_18.e58(tmp$ret$17, null); var tmp_20 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_2 = new LearningSpace(this.w10q_1); var trigger_2 = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_21 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_22 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$19 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE(); var tmp$ret$20 = tmp_21.i57(tmp$ret$19, context_2); var this_0 = On(this, tmp$ret$20, trigger_2); // Inline function 'org.kodein.type.generic' call var tmp_23 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$22 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(); tmp_20.b10r_1 = Instance(this_0, tmp$ret$22, null).b5d(this, enqueueSavePictureUseCase$factory_3()); this.xqo(Companion_getInstance_98().oq7_1); var title = this.vqo().soj(strings_getInstance().bn8_1); var tmp_24 = this.mqo(); launch(tmp_24, VOID, VOID, SignupEnterUsernamePasswordViewModel$slambda_0(this, savedStateHandle, null)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.' call var nextValue = new AppUiState(VOID, VOID, title, false, true, VOID, false, VOID, VOID, VOID, false); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } Companion_getInstance_214(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.q10q_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.' call var nextValue_0 = prevValue_0.d10s(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_25 = this; Companion_getInstance_170(); tmp_25.s10q_1 = 'ContentEntryListHome'; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.q10q_1; while (true) { var prevValue_1 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.' call var tmp4_genderOptions = _get_genderConfig__kyr0zc_2(this).gq8_1; Companion_getInstance_203(); var tmp0_safe_receiver = savedStateHandle.ba('DateOfBirth'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp2_dateOfBirth = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp3_isPersonalAccount = this.q10q_1.t2().s10p_1; var tmp5_person = new Person(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_isPersonalAccount, tmp2_dateOfBirth); var nextValue_1 = prevValue_1.d10s(tmp5_person, VOID, tmp4_genderOptions); if (this_3.z1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } protoOf(SignupEnterUsernamePasswordViewModel).kzf = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.q10q_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onEntityChanged.' call var nextValue = prevValue.d10s(entity); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver = this.cqu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.cqu_1 = launch(tmp_0, VOID, VOID, SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignupEnterUsernamePasswordViewModel).gzv = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.q10q_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onPasswordChanged.' call var nextValue = prevValue.d10s(VOID, password, VOID, VOID, VOID, VOID, null); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignupEnterUsernamePasswordViewModel).q10t = function () { this.xqo(Companion_getInstance_98().oq7_1); var tmp0_safe_receiver = this.q10q_1.t2().l10p_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.text.trim' call tmp = toString(trim(isCharSequence(tmp0_safe_receiver) ? tmp0_safe_receiver : THROW_CCE())); } var fullName = tmp; var tmp_0; if (fullName == null) { tmp_0 = null; } else { // Inline function 'kotlin.text.trim' call tmp_0 = toString(trim(isCharSequence(fullName) ? fullName : THROW_CCE())); } var tmp2_safe_receiver = tmp_0; var parts = tmp2_safe_receiver == null ? null : split(tmp2_safe_receiver, [' '], VOID, 2); var firstName = parts == null ? null : parts.v(0); var tmp_1; if (parts == null) { tmp_1 = null; } else { // Inline function 'kotlin.collections.getOrElse' call var tmp_2; if (1 >= 0 ? 1 <= get_lastIndex(parts) : false) { tmp_2 = parts.v(1); } else { // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onClickedSignupEnterUsernamePassword.' call tmp_2 = ''; } tmp_1 = tmp_2; } var lastName = tmp_1; var tmp5_safe_receiver = this.q10q_1.t2().g10p_1; var tmp_3; if (tmp5_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = shallowCopy(tmp5_safe_receiver, SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$lambda(firstName, lastName)); } this.kzf(tmp_3); var tmp6_elvis_lhs = this.q10q_1.t2().g10p_1; var tmp_4; if (tmp6_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp6_elvis_lhs; } var savePerson = tmp_4; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.q10q_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onClickedSignupEnterUsernamePassword.' call var tmp_5; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = prevValue.h10p_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_5 = this.vqo().soj(strings_getInstance().cmo_1); } else { tmp_5 = null; } var nextValue = prevValue.d10s(VOID, VOID, VOID, VOID, VOID, VOID, tmp_5); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_6(this.q10q_1.t2(), this)) { this.xqo(Companion_getInstance_98().pq7_1); return Unit_instance; } var tmp_6 = this.mqo(); launch(tmp_6, VOID, VOID, SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda_0(this, savePerson, null)); }; function SignupEnterUsernamePasswordUiState(person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) { person = person === VOID ? null : person; password = password === VOID ? null : password; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().iq8_1 : genderOptions; personPicture = personPicture === VOID ? null : personPicture; registrationMode = registrationMode === VOID ? 0 : registrationMode; firstName = firstName === VOID ? null : firstName; passwordError = passwordError === VOID ? null : passwordError; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; parentContactError = parentContactError === VOID ? null : parentContactError; genderError = genderError === VOID ? null : genderError; fullNameError = fullNameError === VOID ? null : fullNameError; passkeySupported = passkeySupported === VOID ? true : passkeySupported; isPersonalAccount = isPersonalAccount === VOID ? false : isPersonalAccount; this.g10p_1 = person; this.h10p_1 = password; this.i10p_1 = genderOptions; this.j10p_1 = personPicture; this.k10p_1 = registrationMode; this.l10p_1 = firstName; this.m10p_1 = passwordError; this.n10p_1 = dateOfBirthError; this.o10p_1 = parentContactError; this.p10p_1 = genderError; this.q10p_1 = fullNameError; this.r10p_1 = passkeySupported; this.s10p_1 = isPersonalAccount; } protoOf(SignupEnterUsernamePasswordUiState).r10t = function (person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) { return new SignupEnterUsernamePasswordUiState(person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount); }; protoOf(SignupEnterUsernamePasswordUiState).d10s = function (person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount, $super) { person = person === VOID ? this.g10p_1 : person; password = password === VOID ? this.h10p_1 : password; genderOptions = genderOptions === VOID ? this.i10p_1 : genderOptions; personPicture = personPicture === VOID ? this.j10p_1 : personPicture; registrationMode = registrationMode === VOID ? this.k10p_1 : registrationMode; firstName = firstName === VOID ? this.l10p_1 : firstName; passwordError = passwordError === VOID ? this.m10p_1 : passwordError; dateOfBirthError = dateOfBirthError === VOID ? this.n10p_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.o10p_1 : parentContactError; genderError = genderError === VOID ? this.p10p_1 : genderError; fullNameError = fullNameError === VOID ? this.q10p_1 : fullNameError; passkeySupported = passkeySupported === VOID ? this.r10p_1 : passkeySupported; isPersonalAccount = isPersonalAccount === VOID ? this.s10p_1 : isPersonalAccount; return $super === VOID ? this.r10t(person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) : $super.r10t.call(this, person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount); }; protoOf(SignupEnterUsernamePasswordUiState).toString = function () { return 'SignupEnterUsernamePasswordUiState(person=' + this.g10p_1 + ', password=' + this.h10p_1 + ', genderOptions=' + this.i10p_1 + ', personPicture=' + this.j10p_1 + ', registrationMode=' + this.k10p_1 + ', firstName=' + this.l10p_1 + ', passwordError=' + this.m10p_1 + ', dateOfBirthError=' + this.n10p_1 + ', parentContactError=' + this.o10p_1 + ', genderError=' + this.p10p_1 + ', fullNameError=' + this.q10p_1 + ', passkeySupported=' + this.r10p_1 + ', isPersonalAccount=' + this.s10p_1 + ')'; }; protoOf(SignupEnterUsernamePasswordUiState).hashCode = function () { var result = this.g10p_1 == null ? 0 : this.g10p_1.hashCode(); result = imul(result, 31) + (this.h10p_1 == null ? 0 : getStringHashCode(this.h10p_1)) | 0; result = imul(result, 31) + hashCode(this.i10p_1) | 0; result = imul(result, 31) + (this.j10p_1 == null ? 0 : this.j10p_1.hashCode()) | 0; result = imul(result, 31) + this.k10p_1 | 0; result = imul(result, 31) + (this.l10p_1 == null ? 0 : getStringHashCode(this.l10p_1)) | 0; result = imul(result, 31) + (this.m10p_1 == null ? 0 : getStringHashCode(this.m10p_1)) | 0; result = imul(result, 31) + (this.n10p_1 == null ? 0 : getStringHashCode(this.n10p_1)) | 0; result = imul(result, 31) + (this.o10p_1 == null ? 0 : getStringHashCode(this.o10p_1)) | 0; result = imul(result, 31) + (this.p10p_1 == null ? 0 : getStringHashCode(this.p10p_1)) | 0; result = imul(result, 31) + (this.q10p_1 == null ? 0 : getStringHashCode(this.q10p_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.r10p_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.s10p_1) | 0; return result; }; protoOf(SignupEnterUsernamePasswordUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SignupEnterUsernamePasswordUiState)) return false; var tmp0_other_with_cast = other instanceof SignupEnterUsernamePasswordUiState ? other : THROW_CCE(); if (!equals(this.g10p_1, tmp0_other_with_cast.g10p_1)) return false; if (!(this.h10p_1 == tmp0_other_with_cast.h10p_1)) return false; if (!equals(this.i10p_1, tmp0_other_with_cast.i10p_1)) return false; if (!equals(this.j10p_1, tmp0_other_with_cast.j10p_1)) return false; if (!(this.k10p_1 === tmp0_other_with_cast.k10p_1)) return false; if (!(this.l10p_1 == tmp0_other_with_cast.l10p_1)) return false; if (!(this.m10p_1 == tmp0_other_with_cast.m10p_1)) return false; if (!(this.n10p_1 == tmp0_other_with_cast.n10p_1)) return false; if (!(this.o10p_1 == tmp0_other_with_cast.o10p_1)) return false; if (!(this.p10p_1 == tmp0_other_with_cast.p10p_1)) return false; if (!(this.q10p_1 == tmp0_other_with_cast.q10p_1)) return false; if (!(this.r10p_1 === tmp0_other_with_cast.r10p_1)) return false; if (!(this.s10p_1 === tmp0_other_with_cast.s10p_1)) return false; return true; }; function apiUrlConfig$factory_17() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_8(receiver); }, null); } function genderConfig$factory_5() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc_2(receiver); }, null); } function enqueueSavePictureUseCase$factory_3() { return getPropertyCallableRef('enqueueSavePictureUseCase', 1, KProperty1, function (receiver) { return _get_enqueueSavePictureUseCase__rl1s31_1(receiver); }, null); } function apiUrlConfig$factory_18() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_8(receiver); }, null); } function genderConfig$factory_6() { return getPropertyCallableRef('genderConfig', 1, KProperty1, function (receiver) { return _get_genderConfig__kyr0zc_2(receiver); }, null); } function enqueueSavePictureUseCase$factory_4() { return getPropertyCallableRef('enqueueSavePictureUseCase', 1, KProperty1, function (receiver) { return _get_enqueueSavePictureUseCase__rl1s31_1(receiver); }, null); } function get_COMMON_TOP_LEVEL_NAV_ITEMS() { _init_properties_SiteConstants_kt__d0a2(); return COMMON_TOP_LEVEL_NAV_ITEMS; } var COMMON_TOP_LEVEL_NAV_ITEMS; function TopLevelNavInfo(destRoute, label, flag) { this.jpj_1 = destRoute; this.kpj_1 = label; this.lpj_1 = flag; } protoOf(TopLevelNavInfo).toString = function () { return 'TopLevelNavInfo(destRoute=' + this.jpj_1 + ', label=' + this.kpj_1 + ', flag=' + this.lpj_1.toString() + ')'; }; protoOf(TopLevelNavInfo).hashCode = function () { var result = getStringHashCode(this.jpj_1); result = imul(result, 31) + this.kpj_1.hashCode() | 0; result = imul(result, 31) + this.lpj_1.hashCode() | 0; return result; }; protoOf(TopLevelNavInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof TopLevelNavInfo)) return false; var tmp0_other_with_cast = other instanceof TopLevelNavInfo ? other : THROW_CCE(); if (!(this.jpj_1 === tmp0_other_with_cast.jpj_1)) return false; if (!this.kpj_1.equals(tmp0_other_with_cast.kpj_1)) return false; if (!this.lpj_1.equals(tmp0_other_with_cast.lpj_1)) return false; return true; }; var properties_initialized_SiteConstants_kt_oyry14; function _init_properties_SiteConstants_kt__d0a2() { if (!properties_initialized_SiteConstants_kt_oyry14) { properties_initialized_SiteConstants_kt_oyry14 = true; Companion_getInstance_141(); var tmp = strings_getInstance().dnj_1; Companion_getInstance_7(); var tmp_0 = new TopLevelNavInfo('CourseListHome', tmp, new Long(1, 0)); Companion_getInstance_170(); var tmp_1 = strings_getInstance().cnj_1; Companion_getInstance_7(); var tmp_2 = new TopLevelNavInfo('ContentEntryListHome', tmp_1, new Long(2, 0)); Companion_getInstance_191(); var tmp_3 = strings_getInstance().anj_1; Companion_getInstance_7(); var tmp_4 = new TopLevelNavInfo('ConversationListHome', tmp_3, new Long(4, 0)); Companion_getInstance_205(); var tmp_5 = strings_getInstance().cmv_1; Companion_getInstance_7(); COMMON_TOP_LEVEL_NAV_ITEMS = listOf([tmp_0, tmp_2, tmp_4, new TopLevelNavInfo('PersonListHome', tmp_5, new Long(8, 0))]); } } function SiteDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).c10u = function (site, hasAdminPermission, $completion) { var tmp = this.d10u(site, hasAdminPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).vm = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof Site) ? p1 : THROW_CCE(); return this.c10u(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return new Pair(this.a10u_1, this.b10u_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).d10u = function (site, hasAdminPermission, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda(completion); i.a10u_1 = site; i.b10u_1 = hasAdminPermission; return i; }; function SiteDetailViewModel$slambda$slambda$slambda$slambda_0(resultContinuation) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation); var l = function (site, hasAdminPermission, $completion) { return i.c10u(site, hasAdminPermission, $completion); }; l.$arity = 2; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.m10u_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).o10u = function (it, $completion) { var tmp = this.p10u(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.o10u(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp0_container = this.n10u_1; var entity = tmp0_container.y6(); var hasEditSitePermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.m10u_1.m10v_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.q10v(entity); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.m10u_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(prevValue_0.sq6_1.nq7(!(this.n10u_1.w6_1 == null) ? hasEditSitePermission : false)); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).p10u = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this.m10u_1, completion); i.n10u_1 = it; return i; }; function SiteDetailViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.o10u(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, $uiLangList, resultContinuation) { this.z10v_1 = this$0; this.a10w_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).c10w = function (it, $completion) { var tmp = this.d10w(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.c10w((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$3: do { var this_0 = this.z10v_1.m10v_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.b10w_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.a10w_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (element_0.cq5_1 === element.hht_1) { tmp$ret$0 = element_0; break l$ret$1; } } tmp$ret$0 = null; } while (false); var tmp0_safe_receiver = tmp$ret$0; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = new SiteTermsAndLangName(element, tmp0_safe_receiver.dq5_1); } var tmp0_safe_receiver_0 = tmp_0; if (tmp0_safe_receiver_0 == null) null; else { destination.i1(tmp0_safe_receiver_0); } } var nextValue = prevValue.q10v(VOID, destination); if (this_0.z1k(prevValue, nextValue)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).d10w = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this.z10v_1, this.a10w_1, completion); i.b10w_1 = it; return i; }; function SiteDetailViewModel$slambda$slambda$slambda$slambda_4(this$0, $uiLangList, resultContinuation) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, $uiLangList, resultContinuation); var l = function (it, $completion) { return i.c10w(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda($siteFlow, $permissionFlow, this$0, resultContinuation) { this.m10w_1 = $siteFlow; this.n10w_1 = $permissionFlow; this.o10w_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = combine(this.m10w_1, this.n10w_1, SiteDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_2(this.o10w_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_39(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda(this.m10w_1, this.n10w_1, this.o10w_1, completion); i.p10w_1 = $this$launch; return i; }; function SiteDetailViewModel$slambda$slambda$slambda_0($siteFlow, $permissionFlow, this$0, resultContinuation) { var i = new SiteDetailViewModel$slambda$slambda$slambda($siteFlow, $permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda_1(this$0, $uiLangList, resultContinuation) { this.y10w_1 = this$0; this.z10w_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.y10w_1.rqo().x7e().hhs(1); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_4(this.y10w_1, this.z10w_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_39(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda_1(this.y10w_1, this.z10w_1, completion); i.a10x_1 = $this$launch; return i; }; function SiteDetailViewModel$slambda$slambda$slambda_2(this$0, $uiLangList, resultContinuation) { var i = new SiteDetailViewModel$slambda$slambda$slambda_1(this$0, $uiLangList, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda(this$0, $this_launch, $uiLangList, resultContinuation) { this.j10x_1 = this$0; this.k10x_1 = $this_launch; this.l10x_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(SiteDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var siteFlow = this.j10x_1.rqo().w7e().nhn(); var tmp_0 = this.j10x_1.rqo().q7f(); var tmp_1 = this.j10x_1.nqo(); PermissionFlags_getInstance(); var permissionFlow = tmp_0.wi0(tmp_1, new Long(16384, 0)); launch(this.k10x_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_0(siteFlow, permissionFlow, this.j10x_1, null)); launch(this.k10x_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_2(this.j10x_1, this.l10x_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda).m78 = function (completion) { return new SiteDetailViewModel$slambda$slambda(this.j10x_1, this.k10x_1, this.l10x_1, completion); }; function SiteDetailViewModel$slambda$slambda_0(this$0, $this_launch, $uiLangList, resultContinuation) { var i = new SiteDetailViewModel$slambda$slambda(this$0, $this_launch, $uiLangList, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function Companion_198() { this.m10x_1 = 'Community'; } var Companion_instance_246; function Companion_getInstance_216() { return Companion_instance_246; } function sam$kotlinx_coroutines_flow_FlowCollector$0_39(function_0) { this.n10x_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_39).u1d = function (value, $completion) { return this.n10x_1(value, $completion); }; function SiteDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.yx7(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function SiteDetailViewModel$slambda(this$0, $uiLangList, resultContinuation) { this.w10x_1 = this$0; this.x10x_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.w10x_1.m10v_1, SiteDetailViewModel$slambda$slambda_0(this.w10x_1, this.y10x_1, this.x10x_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda(this.w10x_1, this.x10x_1, completion); i.y10x_1 = $this$launch; return i; }; function SiteDetailViewModel$slambda_0(this$0, $uiLangList, resultContinuation) { var i = new SiteDetailViewModel$slambda(this$0, $uiLangList, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Community'); this.m10v_1 = MutableStateFlow(new SiteDetailUiState()); this.n10v_1 = asStateFlow(this.m10v_1); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this).g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var supportLangConfig = tmp.e58(tmp$ret$0, null); var uiLangList = supportLangConfig.cpn_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.detail.SiteDetailViewModel.' call var tmp0_text = this.vqo().soj(strings_getInstance().amw_1); var tmp1_onClick = SiteDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.hq7(new FabUiState(false, tmp0_text, tmp2_icon, tmp1_onClick), VOID, this.vqo().soj(strings_getInstance().kna_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.mqo(); launch(tmp_1, VOID, VOID, SiteDetailViewModel$slambda_0(this, uiLangList, null)); } protoOf(SiteDetailViewModel).yx7 = function () { Companion_getInstance_126(); var tmp0_safe_receiver = this.m10v_1.t2().o10v_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rhn_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); this.xqn_1.tp6('SiteEdit', mapOf_0(to('entityUid', tmp2_elvis_lhs == null ? '-1' : tmp2_elvis_lhs))); }; protoOf(SiteDetailViewModel).z10x = function (termsAndLang) { var tmp0_elvis_lhs = termsAndLang.wka_1.hht_1; this.xqn_1.tp6('Terms', mapOf_0(to('locale', tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); }; function SiteDetailUiState(site, siteTerms) { site = site === VOID ? null : site; siteTerms = siteTerms === VOID ? emptyList() : siteTerms; this.o10v_1 = site; this.p10v_1 = siteTerms; } protoOf(SiteDetailUiState).a10y = function (site, siteTerms) { return new SiteDetailUiState(site, siteTerms); }; protoOf(SiteDetailUiState).q10v = function (site, siteTerms, $super) { site = site === VOID ? this.o10v_1 : site; siteTerms = siteTerms === VOID ? this.p10v_1 : siteTerms; return $super === VOID ? this.a10y(site, siteTerms) : $super.a10y.call(this, site, siteTerms); }; protoOf(SiteDetailUiState).toString = function () { return 'SiteDetailUiState(site=' + this.o10v_1 + ', siteTerms=' + this.p10v_1 + ')'; }; protoOf(SiteDetailUiState).hashCode = function () { var result = this.o10v_1 == null ? 0 : hashCode(this.o10v_1); result = imul(result, 31) + hashCode(this.p10v_1) | 0; return result; }; protoOf(SiteDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SiteDetailUiState)) return false; var tmp0_other_with_cast = other instanceof SiteDetailUiState ? other : THROW_CCE(); if (!equals(this.o10v_1, tmp0_other_with_cast.o10v_1)) return false; if (!equals(this.p10v_1, tmp0_other_with_cast.p10v_1)) return false; return true; }; function SiteEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.j10y_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda$slambda).lqb = function (it, $completion) { var tmp = this.mqb(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.lqb(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var tmp_0 = this.k10y_1.sqa_1; var tmp0_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : null; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } var newTerms = tmp_1; this.j10y_1.n10z(newTerms); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda$slambda).mqb = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda$slambda(this.j10y_1, completion); i.k10y_1 = it; return i; }; function SiteEditViewModel$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new SiteEditViewModel$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.lqb(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda).x10z = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.x10z(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.w10z_1.w7e().mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new SiteEditViewModel$slambda$slambda(completion); i.w10z_1 = db; return i; }; function SiteEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.x10z(db, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_1).vhp = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.vhp($completion); }; protoOf(SiteEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return new Site(); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_1).m78 = function (completion) { return new SiteEditViewModel$slambda$slambda_1(completion); }; function SiteEditViewModel$slambda$slambda_2(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.vhp($completion); }; l.$arity = 0; return l; } function SiteEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.i10z_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.q110(it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda$slambda_3($supportedLangCodes, resultContinuation) { this.z110_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_3).b111 = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda$slambda_3).ie = function (p1, $completion) { return this.b111(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.a111_1.x7e().ihs(1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (contains_0(this.z110_1, element.hht_1)) { destination.i1(element); } } var termsLoadedFromDb = destination; var destination_0 = ArrayList_init_$Create$(); var tmp0_iterator_0 = termsLoadedFromDb.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver = element_0.hht_1; if (tmp0_safe_receiver == null) null; else { destination_0.i1(tmp0_safe_receiver); } } var langsLoadedFromDb = destination_0; var this_1 = ArrayList_init_$Create$(); this_1.m1(termsLoadedFromDb); var this_2 = this.z110_1; var destination_1 = ArrayList_init_$Create$(); var tmp0_iterator_1 = this_2.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); if (!langsLoadedFromDb.a1(element_1)) { destination_1.i1(element_1); } } var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10)); var tmp0_iterator_2 = destination_1.w(); while (tmp0_iterator_2.f()) { var item = tmp0_iterator_2.e(); var this_3 = new SiteTerms(); this_3.hht_1 = item; destination_2.i1(this_3); } this_1.m1(destination_2); return this_1.f3(); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_3).enz = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda_3(this.z110_1, completion); i.a111_1 = it; return i; }; function SiteEditViewModel$slambda$slambda_4($supportedLangCodes, resultContinuation) { var i = new SiteEditViewModel$slambda$slambda_3($supportedLangCodes, resultContinuation); var l = function (it, $completion) { return i.b111(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_5).k111 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda$slambda_5).n78 = function ($completion) { return this.k111($completion); }; protoOf(SiteEditViewModel$slambda$slambda_5).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_5).m78 = function (completion) { return new SiteEditViewModel$slambda$slambda_5(completion); }; function SiteEditViewModel$slambda$slambda_6(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda_5(resultContinuation); var l = function ($completion) { return i.k111($completion); }; l.$arity = 0; return l; } function SiteEditViewModel$slambda$lambda_0(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.i10z_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.q110(VOID, it == null ? emptyList() : it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SiteEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.t111_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_7).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda$slambda_7).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda_7).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.t111_1.zqo(this.t111_1.sqo(), 'siteTermsHtml'); var tmp_1 = SiteEditViewModel$slambda$slambda$slambda_0(this.t111_1, null); suspendResult = tmp_0.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_40(tmp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_7).w1m = function ($this$launch, completion) { var i = new SiteEditViewModel$slambda$slambda_7(this.t111_1, completion); i.u111_1 = $this$launch; return i; }; function SiteEditViewModel$slambda$slambda_8(this$0, resultContinuation) { var i = new SiteEditViewModel$slambda$slambda_7(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onClickSave$slambda$lambda($it) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = $it.ght_1; var this_0 = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); // Inline function 'kotlin.contracts.contract' call tmp.jht_1 = !(this_0 == null ? true : isBlank(this_0)); return Unit_instance; }; } function _get_languagesConfig__hebcss_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.k10z_1; languagesConfig$factory_2(); return this_0.t2(); } function Companion_199() { this.v111_1 = 'SiteEdit'; this.w111_1 = 'siteTermsLang'; this.x111_1 = 'termsList'; this.y111_1 = 'siteTermsHtml'; } var Companion_instance_247; function Companion_getInstance_217() { return Companion_instance_247; } function sam$kotlinx_coroutines_flow_FlowCollector$0_40(function_0) { this.z111_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_40).u1d = function (value, $completion) { return this.z111_1(value, $completion); }; function SiteEditViewModel$slambda(this$0, resultContinuation) { this.i112_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda).kse = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.j112_1.q7f(); var tmp_1 = this.i112_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.vi0(tmp_1, new Long(16384, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda).enz = function (db, completion) { var i = new SiteEditViewModel$slambda(this.i112_1, completion); i.j112_1 = db; return i; }; function SiteEditViewModel$slambda_0(this$0, resultContinuation) { var i = new SiteEditViewModel$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.kse(db, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$lambda(this$0) { return function (enabled) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.i10z_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var nextValue = prevValue.q110(VOID, VOID, VOID, enabled); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda_1(this$0, $supportedLangCodes, resultContinuation) { this.s112_1 = this$0; this.t112_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; var tmp_0 = Companion_getInstance_7().o4r(); var tmp_1 = SiteEditViewModel$slambda$slambda_0(null); var tmp_2 = SiteEditViewModel$slambda$slambda_2(null); suspendResult = this.s112_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, SiteEditViewModel$slambda$lambda(this.s112_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; var tmp_3 = ListSerializer(Companion_instance_46.o4r()); var tmp_4 = listOf_0('termsList'); var tmp_5 = SiteEditViewModel$slambda$slambda_4(this.t112_1, null); var tmp_6 = SiteEditViewModel$slambda$slambda_6(null); suspendResult = this.s112_1.eqp(tmp_3, tmp_4, 'termsList', tmp_5, tmp_6, SiteEditViewModel$slambda$lambda_0(this.s112_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: l$ret$1: do { var this_0 = this.s112_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_7 = this.s112_1.vqo().soj(strings_getInstance().on3_1); var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, SiteEditViewModel$onClickSave$ref(this.s112_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.u112_1, VOID, VOID, SiteEditViewModel$slambda$slambda_8(this.s112_1, null)); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new SiteEditViewModel$slambda_1(this.s112_1, this.t112_1, completion); i.u112_1 = $this$launchIfHasPermission; return i; }; function SiteEditViewModel$slambda_2(this$0, $supportedLangCodes, resultContinuation) { var i = new SiteEditViewModel$slambda_1(this$0, $supportedLangCodes, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onToggleNavigationItem$lambda($flag) { return function ($this$shallowCopy) { $this$shallowCopy.aho_1 = toggleFlag($this$shallowCopy.aho_1, $flag); return Unit_instance; }; } function SiteEditViewModel$onChangeTermsHtml$lambda($html) { return function ($this$shallowCopy) { $this$shallowCopy.ght_1 = $html; return Unit_instance; }; } function SiteEditViewModel$onChangeTermsHtml$lambda_0($prev) { return function (it) { return it.hht_1 === $prev.n110_1.cq5_1; }; } function SiteEditViewModel$onChangeTermsHtml$slambda(this$0, $newTerms, resultContinuation) { this.d113_1 = this$0; this.e113_1 = $newTerms; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; suspendResult = this.d113_1.bqp(this.d113_1.vqn_1, 'termsList', ListSerializer(Companion_instance_46.o4r()), this.e113_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).w1m = function ($this$launch, completion) { var i = new SiteEditViewModel$onChangeTermsHtml$slambda(this.d113_1, this.e113_1, completion); i.f113_1 = $this$launch; return i; }; function SiteEditViewModel$onChangeTermsHtml$slambda_0(this$0, $newTerms, resultContinuation) { var i = new SiteEditViewModel$onChangeTermsHtml$slambda(this$0, $newTerms, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.o113_1 = $commitDelay; this.p113_1 = $entity; this.q113_1 = $this; this.r113_1 = $key; this.s113_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onEntityChanged$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$onEntityChanged$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$onEntityChanged$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; this.id_1 = 1; suspendResult = delay(this.o113_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.p113_1 == null)) { this.id_1 = 2; suspendResult = this.q113_1.bqp(this.q113_1.vqn_1, this.r113_1, this.s113_1, this.p113_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 3; continue $sm; } case 2: this.id_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$onEntityChanged$slambda).w1m = function ($this$launch, completion) { var i = new SiteEditViewModel$onEntityChanged$slambda(this.o113_1, this.p113_1, this.q113_1, this.r113_1, this.s113_1, completion); i.t113_1 = $this$launch; return i; }; function SiteEditViewModel$onEntityChanged$slambda_0($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { var i = new SiteEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onClickSave$slambda(this$0, $siteToSave, resultContinuation) { this.c114_1 = this$0; this.d114_1 = $siteToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onClickSave$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteEditViewModel$onClickSave$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.id_1 = 1; suspendResult = this.c114_1.rqo().w7e().mhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.f114_1 = suspendResult; var tmp_0 = this; var tmp0_safe_receiver = this.f114_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.aho_1; tmp_0.g114_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.id_1 = 2; suspendResult = this.c114_1.rqo().w7e().ohn(this.d114_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 3; var tmp_1 = this.c114_1.rqo().x7e(); var this_0 = this.c114_1.i10z_1.t2().h110_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp_2; var tmp0_safe_receiver_0 = element.ght_1; var this_1 = tmp0_safe_receiver_0 == null ? null : htmlToPlainText(tmp0_safe_receiver_0); if (!(this_1 == null ? true : isBlank(this_1))) { tmp_2 = true; } else { tmp_2 = !element.fht_1.equals(new Long(0, 0)); } if (tmp_2) { destination.i1(element); } } var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10)); var tmp0_iterator_0 = destination.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); destination_0.i1(shallowCopy_12(item, SiteEditViewModel$onClickSave$slambda$lambda(item))); } suspendResult = tmp_1.jhs(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: if (!this.d114_1.aho_1.equals(this.g114_1)) { this.id_1 = 5; suspendResult = this.c114_1.m10z_1.w8q(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 4; continue $sm; } case 4: this.c114_1.fqu('Community', this.d114_1.rhn_1, this.d114_1); return Unit_instance; case 5: var tmp2_elvis_lhs = suspendResult; var tmp_3; if (tmp2_elvis_lhs == null) { throw IllegalStateException_init_$Create$('destination can not be null'); } else { tmp_3 = tmp2_elvis_lhs; } var destination_1 = tmp_3; this.c114_1.xqn_1.gqa(destination_1, emptyMap(), new UstadGoOptions(VOID, VOID, true)); return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 6) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteEditViewModel$onClickSave$slambda).w1m = function ($this$launch, completion) { var i = new SiteEditViewModel$onClickSave$slambda(this.c114_1, this.d114_1, completion); i.e114_1 = $this$launch; return i; }; function SiteEditViewModel$onClickSave$slambda_0(this$0, $siteToSave, resultContinuation) { var i = new SiteEditViewModel$onClickSave$slambda(this$0, $siteToSave, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SiteEdit'); this.i10z_1 = MutableStateFlow(new SiteEditUiState()); this.j10z_1 = asStateFlow(this.i10z_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.k10z_1 = Instance(this, tmp$ret$0, null).b5d(this, languagesConfig$factory_1()); this.l10z_1 = null; var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.lqo().aoa().vnu_1; var trigger = di.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_2 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.i57(tmp$ret$2, context); var tmp$ret$4 = On(di, tmp$ret$3, trigger); var tmp_4 = get_direct(tmp$ret$4).g58(); // Inline function 'org.kodein.type.generic' call var tmp_5 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(); tmp_1.m10z_1 = tmp_4.e58(tmp$ret$5, null); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.i10z_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call // Inline function 'kotlin.collections.map' call var this_1 = get_COMMON_TOP_LEVEL_NAV_ITEMS(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10)); var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var tmp$ret$7 = to(item.kpj_1, item.lpj_1); destination.i1(tmp$ret$7); } var nextValue = prevValue.q110(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var supportedLangs = _get_languagesConfig__hebcss_0(this).cpn_1; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(supportedLangs, 10)); var tmp0_iterator_0 = supportedLangs.w(); while (tmp0_iterator_0.f()) { var item_0 = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp$ret$12 = item_0.cq5_1; destination_0.i1(tmp$ret$12); } var supportedLangCodes = destination_0; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.zqn_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp0_title = this.vqo().soj(strings_getInstance().jna_1); var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp0_title, VOID, true); if (this_2.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.i10z_1; while (true) { var prevValue_1 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp$ret$18; $l$block_1: { // Inline function 'kotlin.collections.first' call var tmp0_iterator_1 = supportedLangs.w(); while (tmp0_iterator_1.f()) { var element = tmp0_iterator_1.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var tmp0_elvis_lhs = savedStateHandle.ba('siteTermsLang'); if (element.cq5_1 === (tmp0_elvis_lhs == null ? _get_languagesConfig__hebcss_0(this).epn_1 : tmp0_elvis_lhs)) { tmp$ret$18 = element; break $l$block_1; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } var nextValue_1 = prevValue_1.q110(VOID, VOID, supportedLangs, VOID, VOID, VOID, VOID, tmp$ret$18); if (this_3.z1k(prevValue_1, nextValue_1)) { break $l$block_2; } } } var tmp_6 = SiteEditViewModel$slambda_0(this, null); var tmp_7 = SiteEditViewModel$lambda(this); this.gqp(tmp_6, true, tmp_7, SiteEditViewModel$slambda_2(this, supportedLangCodes, null)); } protoOf(SiteEditViewModel).h114 = function (flag) { var tmp0_safe_receiver = this.i10z_1.t2().g110_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_13(tmp0_safe_receiver, SiteEditViewModel$onToggleNavigationItem$lambda(flag)); } var updatedSite = tmp; this.i114(updatedSite); }; protoOf(SiteEditViewModel).j114 = function (uiLang) { this.vqn_1.yqj('siteTermsLang', uiLang.cq5_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.i10z_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onChangeTermsLanguage.' call var nextValue = prevValue.q110(VOID, VOID, VOID, VOID, VOID, VOID, VOID, uiLang); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SiteEditViewModel).n10z = function (html) { var tmp0_elvis_lhs = this.i10z_1.t2().k114(); var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var currentSiteTerms = tmp; var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.i10z_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onChangeTermsHtml.' call var tmp_0 = shallowCopy_12(currentSiteTerms, SiteEditViewModel$onChangeTermsHtml$lambda(html)); var nextValue = prevValue.q110(VOID, replace_0(prevValue.h110_1, tmp_0, SiteEditViewModel$onChangeTermsHtml$lambda_0(prevValue)), VOID, VOID, VOID, VOID, null); if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newTerms = tmp$ret$1.h110_1; var tmp1_safe_receiver = this.l10z_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.nr(); } var tmp_1 = this; var tmp_2 = this.mqo(); tmp_1.l10z_1 = launch(tmp_2, VOID, VOID, SiteEditViewModel$onChangeTermsHtml$slambda_0(this, newTerms, null)); }; protoOf(SiteEditViewModel).i114 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.i10z_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.g110_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.whn_1; var tmp_0 = this.gqv(tmp, entity == null ? null : entity.whn_1, prevValue.k110_1); var tmp2_safe_receiver = prevValue.g110_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.aho_1; var tmp_2 = this.gqv(tmp_1, entity == null ? null : entity.aho_1, prevValue.l110_1); var tmp4_safe_receiver = prevValue.g110_1; var tmp_3 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.yhn_1; var nextValue = prevValue.q110(entity, VOID, VOID, VOID, tmp_0, tmp_2, this.gqv(tmp_3, entity == null ? null : entity.yhn_1, prevValue.m110_1)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_7().o4r(); var commitDelay = new Long(200, 0); Companion_getInstance_126(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.cqu_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.nr(); } var tmp_4 = this; var tmp_5 = this.mqo(); tmp_4.cqu_1 = launch(tmp_5, VOID, VOID, SiteEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SiteEditViewModel).ysb = function () { var tmp0_elvis_lhs = this.i10z_1.t2().g110_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var siteToSave = tmp; // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = siteToSave.whn_1; // Inline function 'kotlin.contracts.contract' call if (this_0 == null ? true : isBlank(this_0)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.i10z_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var nextValue = prevValue.q110(VOID, VOID, VOID, VOID, this.vqo().soj(strings_getInstance().gnm_1)); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } } // Inline function 'kotlin.collections.map' call var this_2 = this.i10z_1.t2().h110_1; // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var tmp0_iterator = this_2.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var tmp2_elvis_lhs = item.hht_1; var tmp_0 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp0_safe_receiver = item.ght_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); var tmp$ret$3 = to(tmp_0, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); destination.i1(tmp$ret$3); } var siteTermsPlainText = toMap(destination); var tmp_1; if (siteToSave.yhn_1) { var tmp$ret$6; $l$block_1: { // Inline function 'kotlin.collections.all' call if (siteTermsPlainText.c1()) { tmp$ret$6 = true; break $l$block_1; } // Inline function 'kotlin.collections.iterator' call var tmp0_iterator_0 = siteTermsPlainText.q2().w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call if (!isBlank(element.t2())) { tmp$ret$6 = false; break $l$block_1; } } tmp$ret$6 = true; } tmp_1 = tmp$ret$6; } else { tmp_1 = false; } if (tmp_1) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.i10z_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var nextValue_0 = prevValue_0.q110(VOID, VOID, VOID, VOID, VOID, VOID, this.vqo().soj(strings_getInstance().rnm_1)); if (this_3.z1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if (siteToSave.aho_1.equals(new Long(0, 0))) { $l$block_3: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.i10z_1; while (true) { var prevValue_1 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var nextValue_1 = prevValue_1.q110(VOID, VOID, VOID, VOID, VOID, this.vqo().soj(strings_getInstance().uns_1)); if (this_4.z1k(prevValue_1, nextValue_1)) { break $l$block_3; } } } } if (this.i10z_1.t2().p110_1) return Unit_instance; var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, SiteEditViewModel$onClickSave$slambda_0(this, siteToSave, null)); }; function SiteEditUiState(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, bottomNavToggleError, registrationEnabledError, currentSiteTermsLang, bottomNavFlagLabels) { site = site === VOID ? null : site; siteTerms = siteTerms === VOID ? emptyList() : siteTerms; uiLangs = uiLangs === VOID ? listOf_0(new UiLanguage('en', 'English')) : uiLangs; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; siteNameError = siteNameError === VOID ? null : siteNameError; bottomNavToggleError = bottomNavToggleError === VOID ? null : bottomNavToggleError; registrationEnabledError = registrationEnabledError === VOID ? null : registrationEnabledError; currentSiteTermsLang = currentSiteTermsLang === VOID ? first_0(uiLangs) : currentSiteTermsLang; bottomNavFlagLabels = bottomNavFlagLabels === VOID ? emptyList() : bottomNavFlagLabels; this.g110_1 = site; this.h110_1 = siteTerms; this.i110_1 = uiLangs; this.j110_1 = fieldsEnabled; this.k110_1 = siteNameError; this.l110_1 = bottomNavToggleError; this.m110_1 = registrationEnabledError; this.n110_1 = currentSiteTermsLang; this.o110_1 = bottomNavFlagLabels; this.p110_1 = (!(this.k110_1 == null) ? true : !(this.m110_1 == null)) ? true : !(this.l110_1 == null); } protoOf(SiteEditUiState).k114 = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.h110_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditUiState..' call if (element.hht_1 === this.n110_1.cq5_1) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } return tmp$ret$1; }; protoOf(SiteEditUiState).l114 = function () { var tmp0_safe_receiver = this.k114(); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ght_1; }; protoOf(SiteEditUiState).m114 = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, bottomNavToggleError, registrationEnabledError, currentSiteTermsLang, bottomNavFlagLabels) { return new SiteEditUiState(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, bottomNavToggleError, registrationEnabledError, currentSiteTermsLang, bottomNavFlagLabels); }; protoOf(SiteEditUiState).q110 = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, bottomNavToggleError, registrationEnabledError, currentSiteTermsLang, bottomNavFlagLabels, $super) { site = site === VOID ? this.g110_1 : site; siteTerms = siteTerms === VOID ? this.h110_1 : siteTerms; uiLangs = uiLangs === VOID ? this.i110_1 : uiLangs; fieldsEnabled = fieldsEnabled === VOID ? this.j110_1 : fieldsEnabled; siteNameError = siteNameError === VOID ? this.k110_1 : siteNameError; bottomNavToggleError = bottomNavToggleError === VOID ? this.l110_1 : bottomNavToggleError; registrationEnabledError = registrationEnabledError === VOID ? this.m110_1 : registrationEnabledError; currentSiteTermsLang = currentSiteTermsLang === VOID ? this.n110_1 : currentSiteTermsLang; bottomNavFlagLabels = bottomNavFlagLabels === VOID ? this.o110_1 : bottomNavFlagLabels; return $super === VOID ? this.m114(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, bottomNavToggleError, registrationEnabledError, currentSiteTermsLang, bottomNavFlagLabels) : $super.m114.call(this, site, siteTerms, uiLangs, fieldsEnabled, siteNameError, bottomNavToggleError, registrationEnabledError, currentSiteTermsLang, bottomNavFlagLabels); }; protoOf(SiteEditUiState).toString = function () { return 'SiteEditUiState(site=' + this.g110_1 + ', siteTerms=' + this.h110_1 + ', uiLangs=' + this.i110_1 + ', fieldsEnabled=' + this.j110_1 + ', siteNameError=' + this.k110_1 + ', bottomNavToggleError=' + this.l110_1 + ', registrationEnabledError=' + this.m110_1 + ', currentSiteTermsLang=' + this.n110_1 + ', bottomNavFlagLabels=' + this.o110_1 + ')'; }; protoOf(SiteEditUiState).hashCode = function () { var result = this.g110_1 == null ? 0 : hashCode(this.g110_1); result = imul(result, 31) + hashCode(this.h110_1) | 0; result = imul(result, 31) + hashCode(this.i110_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.j110_1) | 0; result = imul(result, 31) + (this.k110_1 == null ? 0 : getStringHashCode(this.k110_1)) | 0; result = imul(result, 31) + (this.l110_1 == null ? 0 : getStringHashCode(this.l110_1)) | 0; result = imul(result, 31) + (this.m110_1 == null ? 0 : getStringHashCode(this.m110_1)) | 0; result = imul(result, 31) + this.n110_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.o110_1) | 0; return result; }; protoOf(SiteEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SiteEditUiState)) return false; var tmp0_other_with_cast = other instanceof SiteEditUiState ? other : THROW_CCE(); if (!equals(this.g110_1, tmp0_other_with_cast.g110_1)) return false; if (!equals(this.h110_1, tmp0_other_with_cast.h110_1)) return false; if (!equals(this.i110_1, tmp0_other_with_cast.i110_1)) return false; if (!(this.j110_1 === tmp0_other_with_cast.j110_1)) return false; if (!(this.k110_1 == tmp0_other_with_cast.k110_1)) return false; if (!(this.l110_1 == tmp0_other_with_cast.l110_1)) return false; if (!(this.m110_1 == tmp0_other_with_cast.m110_1)) return false; if (!this.n110_1.equals(tmp0_other_with_cast.n110_1)) return false; if (!equals(this.o110_1, tmp0_other_with_cast.o110_1)) return false; return true; }; function languagesConfig$factory_1() { return getPropertyCallableRef('languagesConfig', 1, KProperty1, function (receiver) { return _get_languagesConfig__hebcss_0(receiver); }, null); } function languagesConfig$factory_2() { return getPropertyCallableRef('languagesConfig', 1, KProperty1, function (receiver) { return _get_languagesConfig__hebcss_0(receiver); }, null); } function Companion_200() { this.n114_1 = 'locale'; this.o114_1 = 'Terms'; } var Companion_instance_248; function Companion_getInstance_218() { return Companion_instance_248; } function _init_$lambda($getLocaleForSiteTermsUseCase$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('getLocaleForSiteTermsUseCase', KProperty0, false, function () { return THROW_ISE(); }); return $getLocaleForSiteTermsUseCase$delegate.t2(); } function SiteTermsDetailViewModel$slambda($acceptButtonMode, $apiUrl, $di, $learningSpace, this$0, $savedStateHandle, $getLocaleForSiteTermsUseCase$delegate, resultContinuation) { this.x114_1 = $acceptButtonMode; this.y114_1 = $apiUrl; this.z114_1 = $di; this.a115_1 = $learningSpace; this.b115_1 = this$0; this.c115_1 = $savedStateHandle; this.d115_1 = $getLocaleForSiteTermsUseCase$delegate; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SiteTermsDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; var tmp_0 = this; var tmp_1; if (this.x114_1 ? !(this.y114_1 == null) : false) { var this_0 = get_direct(this.z114_1); var context = this.a115_1; var tmp_2 = this_0.g58(); var tmp_3 = Companion_instance_0; var tmp_4 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_5 = tmp_2.d58(tmp_3.i57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), context)).g58(); var tmp_6 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1 = tmp_5.e58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), null).yk2(); } else { tmp_1 = this.b115_1.rqo(); } tmp_0.f115_1 = tmp_1; this.g115_1 = this.c115_1.ba('locale'); this.h115_1 = this.g115_1; if (this.h115_1 == null) { this.id_1 = 1; suspendResult = _init_$lambda(this.d115_1).hpn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.i115_1 = this.h115_1; this.id_1 = 2; continue $sm; } case 1: this.i115_1 = suspendResult; this.id_1 = 2; continue $sm; case 2: this.j115_1 = this.i115_1; this.id_1 = 3; suspendResult = this.f115_1.x7e().lhs(this.j115_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var displayTerms = suspendResult; if (!(displayTerms == null)) { l$ret$1: do { var this_1 = this.b115_1.g116_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.l116(displayTerms, this.x114_1); if (this_1.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } else { l$ret$3: do { var this_2 = this.b115_1.g116_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.l116(VOID, VOID, this.b115_1.vqo().soj(strings_getInstance().hmj_1)); if (this_2.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } return Unit_instance; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SiteTermsDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new SiteTermsDetailViewModel$slambda(this.x114_1, this.y114_1, this.z114_1, this.a115_1, this.b115_1, this.c115_1, this.d115_1, completion); i.e115_1 = $this$launch; return i; }; function SiteTermsDetailViewModel$slambda_0($acceptButtonMode, $apiUrl, $di, $learningSpace, this$0, $savedStateHandle, $getLocaleForSiteTermsUseCase$delegate, resultContinuation) { var i = new SiteTermsDetailViewModel$slambda($acceptButtonMode, $apiUrl, $di, $learningSpace, this$0, $savedStateHandle, $getLocaleForSiteTermsUseCase$delegate, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteTermsDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Terms'); this.g116_1 = MutableStateFlow(new SiteTermsDetailUiState()); this.h116_1 = asStateFlow(this.g116_1); var tmp0_safe_receiver = savedStateHandle.ba('showAccept'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); var acceptButtonMode = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; Companion_getInstance_117(); var apiUrl = savedStateHandle.ba('learningSpaceUrl'); var tmp; if (acceptButtonMode ? !(apiUrl == null) : false) { tmp = new LearningSpace(apiUrl); } else { tmp = this.lqo().roa(); } var learningSpace = tmp; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var trigger = this.e57(); // Inline function 'org.kodein.di.diContext' call var tmp_0 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.i57(tmp$ret$0, learningSpace); var this_0 = On(this, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetLocaleForSiteTermsUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var getLocaleForSiteTermsUseCase$delegate = Instance(this_0, tmp$ret$3, null).b5d(null, getLocalDelegateReference('getLocaleForSiteTermsUseCase', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zqn_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.termsdetail.SiteTermsDetailViewModel.' call var tmp0_navigationVisible = !acceptButtonMode; var tmp1_title = this.vqo().soj(strings_getInstance().dna_1); var nextValue = prevValue.hq7(VOID, VOID, tmp1_title, tmp0_navigationVisible, true, VOID, false); if (this_1.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.mqo(); launch(tmp_3, VOID, VOID, SiteTermsDetailViewModel$slambda_0(acceptButtonMode, apiUrl, di, learningSpace, this, savedStateHandle, getLocaleForSiteTermsUseCase$delegate, null)); } protoOf(SiteTermsDetailViewModel).m116 = function () { Companion_getInstance_214(); // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.site.termsdetail.SiteTermsDetailViewModel.onClickAccept.' call this.jqp(this_0, Companion_getInstance_214().wr8_1); Companion_getInstance_126(); this.iqp(this_0, 'next'); var tmp$ret$2 = this_0.f3(); this.xqn_1.tp6('SignUp', tmp$ret$2); }; function SiteTermsDetailUiState(siteTerms, acceptButtonVisible, error) { siteTerms = siteTerms === VOID ? null : siteTerms; acceptButtonVisible = acceptButtonVisible === VOID ? false : acceptButtonVisible; error = error === VOID ? null : error; this.i116_1 = siteTerms; this.j116_1 = acceptButtonVisible; this.k116_1 = error; } protoOf(SiteTermsDetailUiState).n116 = function (siteTerms, acceptButtonVisible, error) { return new SiteTermsDetailUiState(siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).l116 = function (siteTerms, acceptButtonVisible, error, $super) { siteTerms = siteTerms === VOID ? this.i116_1 : siteTerms; acceptButtonVisible = acceptButtonVisible === VOID ? this.j116_1 : acceptButtonVisible; error = error === VOID ? this.k116_1 : error; return $super === VOID ? this.n116(siteTerms, acceptButtonVisible, error) : $super.n116.call(this, siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).toString = function () { return 'SiteTermsDetailUiState(siteTerms=' + this.i116_1 + ', acceptButtonVisible=' + this.j116_1 + ', error=' + this.k116_1 + ')'; }; protoOf(SiteTermsDetailUiState).hashCode = function () { var result = this.i116_1 == null ? 0 : hashCode(this.i116_1); result = imul(result, 31) + getBooleanHashCode(this.j116_1) | 0; result = imul(result, 31) + (this.k116_1 == null ? 0 : getStringHashCode(this.k116_1)) | 0; return result; }; protoOf(SiteTermsDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SiteTermsDetailUiState)) return false; var tmp0_other_with_cast = other instanceof SiteTermsDetailUiState ? other : THROW_CCE(); if (!equals(this.i116_1, tmp0_other_with_cast.i116_1)) return false; if (!(this.j116_1 === tmp0_other_with_cast.j116_1)) return false; if (!(this.k116_1 == tmp0_other_with_cast.k116_1)) return false; return true; }; function LearningSpaceEnterLinkViewModel$onClickNext$slambda$lambda($endpointUrl) { return function () { return 'LearningSpaceEnterLink: not working: ' + $endpointUrl; }; } function _get_httpClient__2ty1zc_5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l117_1; httpClient$factory_12(); return this_0.t2(); } function _get_impl__d88w17_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.m117_1; impl$factory_6(); return this_0.t2(); } function Companion_201() { Companion_instance_249 = this; this.n117_1 = 'LearningSpaceEnterLink'; var tmp = this; Companion_getInstance_126(); Companion_getInstance_117(); Companion_getInstance_126(); tmp.o117_1 = listOf(['next', 'intMsg', 'noSessionChange']); this.p117_1 = 'stateUrl'; } var Companion_instance_249; function Companion_getInstance_219() { if (Companion_instance_249 == null) new Companion_201(); return Companion_instance_249; } function LearningSpaceEnterLinkViewModel$onClickNext$slambda(this$0, $endpointUrl, $viewName, resultContinuation) { this.y117_1 = this$0; this.z117_1 = $endpointUrl; this.a118_1 = $viewName; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; suspendResult = verifySite(_get_httpClient__2ty1zc_5(this.y117_1), this.z117_1, VOID, this.y117_1.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var site = suspendResult; Companion_getInstance_117(); var tmp_0 = to('learningSpaceUrl', this.z117_1); Companion_getInstance_117(); var this_0 = this.y117_1.n4r(); var this_1 = this_0.u45(); var this_2 = serializer(this_1, createKType(getKClass(Site), arrayOf([]), false)); var args = mutableMapOf([tmp_0, to('site', this_0.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), site))]); var tmp0_iterator = Companion_getInstance_219().o117_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); this.y117_1.iqp(args, element); } this.y117_1.xqo(Companion_getInstance_98().pq7_1); l$ret$1: do { var this_3 = this.y117_1.j117_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.h118(VOID, true, VOID, null, true); if (this_3.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_1; if (equals(this.a118_1, 'RegisterAgeRedirect')) { tmp_1 = !site.yhn_1; } else { tmp_1 = false; } if (tmp_1) { this.y117_1.xqo(Companion_getInstance_98().pq7_1); l$ret$3: do { var this_4 = this.y117_1.j117_1; while (true) { var prevValue_0 = this_4.t2(); this.y117_1.xqo(Companion_getInstance_98().pq7_1); var tmp0_linkError = _get_impl__d88w17_2(this.y117_1).soj(strings_getInstance().anr_1); var nextValue_0 = prevValue_0.h118(VOID, true, VOID, tmp0_linkError, true); if (this_4.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } this.y117_1.xqn_1.tp6(this.a118_1, args); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_2 = this.ld_1; if (tmp_2 instanceof Error) { var e = this.ld_1; var tmp_3 = Napier_getInstance(); tmp_3.l5e(e, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda$lambda(this.z117_1)); l$ret$5: do { var this_5 = this.y117_1.j117_1; while (true) { var prevValue_1 = this_5.t2(); this.y117_1.xqo(Companion_getInstance_98().pq7_1); var tmp0_linkError_0 = _get_impl__d88w17_2(this.y117_1).soj(strings_getInstance().emu_1); var nextValue_1 = prevValue_1.h118(VOID, false, VOID, tmp0_linkError_0, true); if (this_5.z1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).w1m = function ($this$launch, completion) { var i = new LearningSpaceEnterLinkViewModel$onClickNext$slambda(this.y117_1, this.z117_1, this.a118_1, completion); i.b118_1 = $this$launch; return i; }; function LearningSpaceEnterLinkViewModel$onClickNext$slambda_0(this$0, $endpointUrl, $viewName, resultContinuation) { var i = new LearningSpaceEnterLinkViewModel$onClickNext$slambda(this$0, $endpointUrl, $viewName, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function LearningSpaceEnterLinkViewModel(di, savedStateHandle) { Companion_getInstance_219(); UstadViewModel.call(this, di, savedStateHandle, 'LearningSpaceEnterLink'); this.j117_1 = MutableStateFlow(new LearningSpaceEnterLinkUiState()); this.k117_1 = asStateFlow(this.j117_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.l117_1 = Instance(this, tmp$ret$0, null).b5d(this, httpClient$factory_11()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.m117_1 = Instance(this, tmp$ret$2, null).b5d(this, impl$factory_5()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.' call var tmp0_title = _get_impl__d88w17_2(this).soj(strings_getInstance().bnd_1); var nextValue = prevValue.hq7(VOID, VOID, tmp0_title, false, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.j117_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.' call var tmp0_elvis_lhs = savedStateHandle.ba(Companion_getInstance_219().p117_1); var nextValue_0 = prevValue_0.h118(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(LearningSpaceEnterLinkViewModel).mwm = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j117_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onClickNext.' call var nextValue = prevValue.h118(VOID, VOID, VOID, VOID, false); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp; Companion_getInstance_214(); if (this.vqn_1.ba('newOrExisting') === 'new') { tmp = 'RegisterAgeRedirect'; } else { tmp = 'Login'; } var viewName = tmp; this.xqo(Companion_getInstance_98().oq7_1); var endpointUrl = requirePostfix(requireHttpPrefix(this.j117_1.t2().c118_1), '/'); var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda_0(this, endpointUrl, viewName, null)); }; protoOf(LearningSpaceEnterLinkViewModel).i118 = function (siteLink) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j117_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onSiteLinkUpdated.' call var nextValue = prevValue.h118(siteLink); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } this.vqn_1.yqj(Companion_getInstance_219().p117_1, siteLink); }; function LearningSpaceEnterLinkUiState(siteLink, validLink, progressVisible, linkError, fieldsEnabled) { siteLink = siteLink === VOID ? '' : siteLink; validLink = validLink === VOID ? false : validLink; progressVisible = progressVisible === VOID ? false : progressVisible; linkError = linkError === VOID ? null : linkError; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; this.c118_1 = siteLink; this.d118_1 = validLink; this.e118_1 = progressVisible; this.f118_1 = linkError; this.g118_1 = fieldsEnabled; } protoOf(LearningSpaceEnterLinkUiState).j118 = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled) { return new LearningSpaceEnterLinkUiState(siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).h118 = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled, $super) { siteLink = siteLink === VOID ? this.c118_1 : siteLink; validLink = validLink === VOID ? this.d118_1 : validLink; progressVisible = progressVisible === VOID ? this.e118_1 : progressVisible; linkError = linkError === VOID ? this.f118_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.g118_1 : fieldsEnabled; return $super === VOID ? this.j118(siteLink, validLink, progressVisible, linkError, fieldsEnabled) : $super.j118.call(this, siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).toString = function () { return 'LearningSpaceEnterLinkUiState(siteLink=' + this.c118_1 + ', validLink=' + this.d118_1 + ', progressVisible=' + this.e118_1 + ', linkError=' + this.f118_1 + ', fieldsEnabled=' + this.g118_1 + ')'; }; protoOf(LearningSpaceEnterLinkUiState).hashCode = function () { var result = getStringHashCode(this.c118_1); result = imul(result, 31) + getBooleanHashCode(this.d118_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.e118_1) | 0; result = imul(result, 31) + (this.f118_1 == null ? 0 : getStringHashCode(this.f118_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.g118_1) | 0; return result; }; protoOf(LearningSpaceEnterLinkUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof LearningSpaceEnterLinkUiState)) return false; var tmp0_other_with_cast = other instanceof LearningSpaceEnterLinkUiState ? other : THROW_CCE(); if (!(this.c118_1 === tmp0_other_with_cast.c118_1)) return false; if (!(this.d118_1 === tmp0_other_with_cast.d118_1)) return false; if (!(this.e118_1 === tmp0_other_with_cast.e118_1)) return false; if (!(this.f118_1 == tmp0_other_with_cast.f118_1)) return false; if (!(this.g118_1 === tmp0_other_with_cast.g118_1)) return false; return true; }; function httpClient$factory_11() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_5(receiver); }, null); } function impl$factory_5() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_2(receiver); }, null); } function httpClient$factory_12() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_5(receiver); }, null); } function impl$factory_6() { return getPropertyCallableRef('impl', 1, KProperty1, function (receiver) { return _get_impl__d88w17_2(receiver); }, null); } function SystemPermissionConstants() { SystemPermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().nno_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1024, 0)); var tmp_2 = strings_getInstance().ono_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().pno_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(32768, 0)); var tmp_6 = strings_getInstance().uno_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(131072, 0)); var tmp_8 = strings_getInstance().tno_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(4096, 0)); var tmp_10 = strings_getInstance().sno_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(512, 0)); var tmp_12 = strings_getInstance().gno_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(1, 0)); var tmp_14 = strings_getInstance().hno_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(2, 0)); var tmp_16 = strings_getInstance().ino_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(4, 0)); var tmp_18 = strings_getInstance().dno_1; PermissionFlags_getInstance(); var tmp_19 = to(tmp_18, new Long(2048, 0)); var tmp_20 = strings_getInstance().jno_1; PermissionFlags_getInstance(); var tmp_21 = to(tmp_20, new Long(8, 0)); var tmp_22 = strings_getInstance().kno_1; PermissionFlags_getInstance(); var tmp_23 = to(tmp_22, new Long(16, 0)); var tmp_24 = strings_getInstance().lno_1; PermissionFlags_getInstance(); var tmp_25 = to(tmp_24, new Long(32, 0)); var tmp_26 = strings_getInstance().mno_1; PermissionFlags_getInstance(); var tmp_27 = to(tmp_26, new Long(64, 0)); var tmp_28 = strings_getInstance().qno_1; PermissionFlags_getInstance(); var tmp_29 = to(tmp_28, new Long(128, 0)); var tmp_30 = strings_getInstance().rno_1; PermissionFlags_getInstance(); tmp.k118_1 = listOf([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, tmp_15, tmp_17, tmp_19, tmp_21, tmp_23, tmp_25, tmp_27, tmp_29, to(tmp_30, new Long(256, 0))]); } var SystemPermissionConstants_instance; function SystemPermissionConstants_getInstance() { if (SystemPermissionConstants_instance == null) new SystemPermissionConstants(); return SystemPermissionConstants_instance; } function personHasSystemPermissionAsFlowForUser(_this__u8e3s4, accountPersonUid, personUid) { var tmp; if (!accountPersonUid.equals(new Long(0, 0)) ? accountPersonUid.equals(personUid) : false) { tmp = flowOf(true); } else { PermissionFlags_getInstance(); tmp = _this__u8e3s4.wi0(accountPersonUid, new Long(-1, 2147483647)); } return tmp; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).v118 = function (entity, hasViewPermission, $completion) { var tmp = this.w118(entity, hasViewPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).vm = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof SystemPermission) ? p1 : THROW_CCE(); return this.v118(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.t118_1; var tmp_0; if (this.u118_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).w118 = function (entity, hasViewPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.t118_1 = entity; i.u118_1 = hasViewPermission; return i; }; function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_0(resultContinuation) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation); var l = function (entity, hasViewPermission, $completion) { return i.v118(entity, hasViewPermission, $completion); }; l.$arity = 2; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.f119_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).h119 = function (it, $completion) { var tmp = this.i119(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.h119((p1 == null ? true : p1 instanceof SystemPermission) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; l$ret$1: do { var this_0 = this.f119_1.g11a_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.g119_1 == null)) { tmp_0 = SystemPermissionConstants_getInstance().k118_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.k11a(this.g119_1, tmp_0); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); if (!(this.g119_1 == null)) { this.id_1 = 1; suspendResult = this.f119_1.rqo().o7d().sg4(this.f119_1.f11a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 2; continue $sm; } case 1: var title = suspendResult; l$ret$3: do { var this_1 = this.f119_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).i119 = function (it, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.f119_1, completion); i.g119_1 = it; return i; }; function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function (it, $completion) { return i.h119(it, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.t11a_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).gqg = function (hasEditPermission, $completion) { var tmp = this.hqg(hasEditPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).ie = function (p1, $completion) { return this.gqg((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; l$ret$1: do { var this_0 = this.t11a_1.zqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hq7(prevValue.sq6_1.nq7(this.u11a_1)); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).hqg = function (hasEditPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this.t11a_1, completion); i.u11a_1 = hasEditPermission; return i; }; function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (hasEditPermission, $completion) { return i.gqg(hasEditPermission, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $viewPermissionFlow, this$0, resultContinuation) { this.d11b_1 = $entityFlow; this.e11b_1 = $viewPermissionFlow; this.f11b_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = combine(this.d11b_1, this.e11b_1, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null)); suspendResult = collectLatest(tmp_0, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.f11b_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).w1m = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda(this.d11b_1, this.e11b_1, this.f11b_1, completion); i.g11b_1 = $this$launch; return i; }; function SystemPermissionDetailViewModel$slambda$slambda$slambda_0($entityFlow, $viewPermissionFlow, this$0, resultContinuation) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $viewPermissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda_1($editPermissionFlow, this$0, resultContinuation) { this.p11b_1 = $editPermissionFlow; this.q11b_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_4(this.q11b_1, null); suspendResult = this.p11b_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_41(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda_1(this.p11b_1, this.q11b_1, completion); i.r11b_1 = $this$launch; return i; }; function SystemPermissionDetailViewModel$slambda$slambda$slambda_2($editPermissionFlow, this$0, resultContinuation) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda_1($editPermissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewPermissionFlow, this$0, $editPermissionFlow, resultContinuation) { this.a11c_1 = $this_launch; this.b11c_1 = $entityFlow; this.c11c_1 = $viewPermissionFlow; this.d11c_1 = this$0; this.e11c_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; launch(this.a11c_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_0(this.b11c_1, this.c11c_1, this.d11c_1, null)); launch(this.a11c_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_2(this.e11c_1, this.d11c_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).m78 = function (completion) { return new SystemPermissionDetailViewModel$slambda$slambda(this.a11c_1, this.b11c_1, this.c11c_1, this.d11c_1, this.e11c_1, completion); }; function SystemPermissionDetailViewModel$slambda$slambda_0($this_launch, $entityFlow, $viewPermissionFlow, this$0, $editPermissionFlow, resultContinuation) { var i = new SystemPermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewPermissionFlow, this$0, $editPermissionFlow, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function onClickEdit_1($this) { // Inline function 'kotlin.collections.buildMap' call // Inline function 'kotlin.contracts.contract' call // Inline function 'kotlin.collections.buildMapInternal' call // Inline function 'kotlin.apply' call var this_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.systempermission.detail.SystemPermissionDetailViewModel.onClickEdit.' call Companion_getInstance_126(); $this.iqp(this_0, 'personUid'); var tmp$ret$2 = this_0.f3(); $this.xqn_1.tp6('SystemPermissionEdit', tmp$ret$2); } function Companion_202() { this.f11c_1 = 'SystemPermission'; } var Companion_instance_250; function Companion_getInstance_220() { return Companion_instance_250; } function sam$kotlinx_coroutines_flow_FlowCollector$0_41(function_0) { this.g11c_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_41).u1d = function (value, $completion) { return this.g11c_1(value, $completion); }; function SystemPermissionDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { onClickEdit_1($boundThis); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function SystemPermissionDetailViewModel$slambda(this$0, $entityFlow, $viewPermissionFlow, $editPermissionFlow, resultContinuation) { this.p11c_1 = this$0; this.q11c_1 = $entityFlow; this.r11c_1 = $viewPermissionFlow; this.s11c_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionDetailViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = whenSubscribed(this.p11c_1.g11a_1, SystemPermissionDetailViewModel$slambda$slambda_0(this.t11c_1, this.q11c_1, this.r11c_1, this.p11c_1, this.s11c_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda).w1m = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda(this.p11c_1, this.q11c_1, this.r11c_1, this.s11c_1, completion); i.t11c_1 = $this$launch; return i; }; function SystemPermissionDetailViewModel$slambda_0(this$0, $entityFlow, $viewPermissionFlow, $editPermissionFlow, resultContinuation) { var i = new SystemPermissionDetailViewModel$slambda(this$0, $entityFlow, $viewPermissionFlow, $editPermissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'SystemPermission'); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.f11a_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.g11a_1 = MutableStateFlow(new SystemPermissionDetailUiState()); this.h11a_1 = asStateFlow(this.g11a_1); var entityFlow = this.rqo().q7f().ti0(this.f11a_1); var viewPermissionFlow = personHasSystemPermissionAsFlowForUser(this.rqo().q7f(), this.nqo(), this.f11a_1); var tmp_0 = this.rqo().q7f(); var tmp_1 = this.nqo(); PermissionFlags_getInstance(); var editPermissionFlow = tmp_0.wi0(tmp_1, new Long(4096, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.detail.SystemPermissionDetailViewModel.' call var tmp0_text = this.vqo().soj(strings_getInstance().amw_1); var tmp1_onClick = SystemPermissionDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.hq7(new FabUiState(VOID, tmp0_text, tmp2_icon, tmp1_onClick)); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, SystemPermissionDetailViewModel$slambda_0(this, entityFlow, viewPermissionFlow, editPermissionFlow, null)); } function SystemPermissionDetailUiState(systemPermission, permissionLabels) { systemPermission = systemPermission === VOID ? null : systemPermission; permissionLabels = permissionLabels === VOID ? emptyList() : permissionLabels; this.i11a_1 = systemPermission; this.j11a_1 = permissionLabels; } protoOf(SystemPermissionDetailUiState).k11a = function (systemPermission, permissionLabels) { return new SystemPermissionDetailUiState(systemPermission, permissionLabels); }; protoOf(SystemPermissionDetailUiState).toString = function () { return 'SystemPermissionDetailUiState(systemPermission=' + this.i11a_1 + ', permissionLabels=' + this.j11a_1 + ')'; }; protoOf(SystemPermissionDetailUiState).hashCode = function () { var result = this.i11a_1 == null ? 0 : this.i11a_1.hashCode(); result = imul(result, 31) + hashCode(this.j11a_1) | 0; return result; }; protoOf(SystemPermissionDetailUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SystemPermissionDetailUiState)) return false; var tmp0_other_with_cast = other instanceof SystemPermissionDetailUiState ? other : THROW_CCE(); if (!equals(this.i11a_1, tmp0_other_with_cast.i11a_1)) return false; if (!equals(this.j11a_1, tmp0_other_with_cast.j11a_1)) return false; return true; }; function SystemPermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.c11d_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda).e11d = function (db, $completion) { var tmp = this.enz(db, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).ie = function (p1, $completion) { return this.e11d(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.d11d_1.q7f().ui0(this.c11d_1.e11e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).enz = function (db, completion) { var i = new SystemPermissionEditViewModel$slambda$slambda(this.c11d_1, completion); i.d11d_1 = db; return i; }; function SystemPermissionEditViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new SystemPermissionEditViewModel$slambda$slambda(this$0, resultContinuation); var l = function (db, $completion) { return i.e11d(db, $completion); }; l.$arity = 1; return l; } function SystemPermissionEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda_1).gi4 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).n78 = function ($completion) { return this.gi4($completion); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return null; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).m78 = function (completion) { return new SystemPermissionEditViewModel$slambda$slambda_1(completion); }; function SystemPermissionEditViewModel$slambda$slambda_2(resultContinuation) { var i = new SystemPermissionEditViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.gi4($completion); }; l.$arity = 0; return l; } function SystemPermissionEditViewModel$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.c11e_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel...' call var tmp; if (!(it == null)) { tmp = SystemPermissionConstants_getInstance().k118_1; } else { tmp = emptyList(); } var nextValue = prevValue.q11e(it, VOID, tmp); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.ysb(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SystemPermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.z11e_1 = this$0; this.a11f_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.z11e_1.rqo().q7f().ai1(this.a11f_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).enz = function (it, completion) { var i = new SystemPermissionEditViewModel$onClickSave$slambda$slambda(this.z11e_1, this.a11f_1, completion); i.b11f_1 = it; return i; }; function SystemPermissionEditViewModel$onClickSave$slambda$slambda_0(this$0, $entity, resultContinuation) { var i = new SystemPermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function Companion_203() { this.c11f_1 = 'SystemPermissionEdit'; } var Companion_instance_251; function Companion_getInstance_221() { return Companion_instance_251; } function SystemPermissionEditViewModel$slambda(this$0, resultContinuation) { this.l11f_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda).kse = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionEditViewModel$slambda).ie = function (p1, $completion) { return this.kse(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = this.l11f_1.rqo().q7f(); var tmp_1 = this.l11f_1.nqo(); PermissionFlags_getInstance(); suspendResult = tmp_0.vi0(tmp_1, new Long(4096, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$slambda).enz = function (it, completion) { var i = new SystemPermissionEditViewModel$slambda(this.l11f_1, completion); i.m11f_1 = it; return i; }; function SystemPermissionEditViewModel$slambda_0(this$0, resultContinuation) { var i = new SystemPermissionEditViewModel$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.kse(it, $completion); }; l.$arity = 1; return l; } function SystemPermissionEditViewModel$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.c11e_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel..' call var nextValue = prevValue.q11e(VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$slambda_1(this$0, resultContinuation) { this.v11f_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda_1).v1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.w1m($this$launchIfHasPermission, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionEditViewModel$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; var tmp_0 = Companion_getInstance_8().o4r(); var tmp_1 = SystemPermissionEditViewModel$slambda$slambda_0(this.v11f_1, null); var tmp_2 = SystemPermissionEditViewModel$slambda$slambda_2(null); suspendResult = this.v11f_1.fqp(tmp_0, VOID, VOID, tmp_1, tmp_2, SystemPermissionEditViewModel$slambda$lambda(this.v11f_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.v11f_1.zqn_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.v11f_1.vqo().soj(strings_getInstance().on3_1); var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, SystemPermissionEditViewModel$onClickSave$ref(this.v11f_1))); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 2; suspendResult = this.v11f_1.rqo().o7d().sg4(this.v11f_1.e11e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$3: do { var this_1 = this.v11f_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$slambda_1).w1m = function ($this$launchIfHasPermission, completion) { var i = new SystemPermissionEditViewModel$slambda_1(this.v11f_1, completion); i.w11f_1 = $this$launchIfHasPermission; return i; }; function SystemPermissionEditViewModel$slambda_2(this$0, resultContinuation) { var i = new SystemPermissionEditViewModel$slambda_1(this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.v1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function SystemPermissionEditViewModel$onClickSave$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.c11e_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onClickSave..' call var nextValue = prevValue.q11e(VOID, it); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.f11g_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.f11g_1.c11e_1.t2().n11e_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.g11g_1 = tmp_1; this.id_1 = 1; var tmp_2 = this.f11g_1.rqo(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, SystemPermissionEditViewModel$onClickSave$slambda$slambda_0(this.f11g_1, this.g11g_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_117(); this.f11g_1.xqn_1.hqa('', true); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).m78 = function (completion) { return new SystemPermissionEditViewModel$onClickSave$slambda(this.f11g_1, completion); }; function SystemPermissionEditViewModel$onClickSave$slambda_0(this$0, resultContinuation) { var i = new SystemPermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function SystemPermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SystemPermissionEdit'); this.c11e_1 = MutableStateFlow(new SystemPermissionEditUiState()); this.d11e_1 = asStateFlow(this.c11e_1); var tmp = this; Companion_getInstance_126(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.e11e_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = SystemPermissionEditViewModel$slambda_0(this, null); var tmp_1 = SystemPermissionEditViewModel$lambda(this); this.hqp(tmp_0, VOID, tmp_1, SystemPermissionEditViewModel$slambda_2(this, null)); } protoOf(SystemPermissionEditViewModel).yt8 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.c11e_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onTogglePermission.' call var tmp0_safe_receiver = prevValue.n11e_1; var nextValue = prevValue.q11e(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iky(VOID, VOID, VOID, toggleFlag(prevValue.n11e_1.si1_1, flag))); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SystemPermissionEditViewModel).ysb = function () { var tmp = SystemPermissionEditViewModel$onClickSave$lambda(this); this.iqv(tmp, SystemPermissionEditViewModel$onClickSave$slambda_0(this, null)); }; function SystemPermissionEditUiState(entity, fieldsEnabled, permissionLabels) { entity = entity === VOID ? null : entity; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; permissionLabels = permissionLabels === VOID ? emptyList() : permissionLabels; this.n11e_1 = entity; this.o11e_1 = fieldsEnabled; this.p11e_1 = permissionLabels; } protoOf(SystemPermissionEditUiState).h11g = function (entity, fieldsEnabled, permissionLabels) { return new SystemPermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).q11e = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.n11e_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.o11e_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.p11e_1 : permissionLabels; return $super === VOID ? this.h11g(entity, fieldsEnabled, permissionLabels) : $super.h11g.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).toString = function () { return 'SystemPermissionEditUiState(entity=' + this.n11e_1 + ', fieldsEnabled=' + this.o11e_1 + ', permissionLabels=' + this.p11e_1 + ')'; }; protoOf(SystemPermissionEditUiState).hashCode = function () { var result = this.n11e_1 == null ? 0 : this.n11e_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.o11e_1) | 0; result = imul(result, 31) + hashCode(this.p11e_1) | 0; return result; }; protoOf(SystemPermissionEditUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof SystemPermissionEditUiState)) return false; var tmp0_other_with_cast = other instanceof SystemPermissionEditUiState ? other : THROW_CCE(); if (!equals(this.n11e_1, tmp0_other_with_cast.n11e_1)) return false; if (!(this.o11e_1 === tmp0_other_with_cast.o11e_1)) return false; if (!equals(this.p11e_1, tmp0_other_with_cast.p11e_1)) return false; return true; }; function TimeZoneListViewModel$slambda$slambda(this$0, resultContinuation) { this.q11g_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda$slambda).s11g = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TimeZoneListViewModel$slambda$slambda).ie = function (p1, $completion) { return this.s11g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; return _get_allTimeZones__4t4mtu(this.q11g_1); } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TimeZoneListViewModel$slambda$slambda).w1m = function ($this$withContext, completion) { var i = new TimeZoneListViewModel$slambda$slambda(this.q11g_1, completion); i.r11g_1 = $this$withContext; return i; }; function TimeZoneListViewModel$slambda$slambda_0(this$0, resultContinuation) { var i = new TimeZoneListViewModel$slambda$slambda(this$0, resultContinuation); var l = function ($this$withContext, $completion) { return i.s11g($this$withContext, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda($searchText, this$0, resultContinuation) { this.b11h_1 = $searchText; this.c11h_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).s11g = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).ie = function (p1, $completion) { return this.s11g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; var this_0 = this.b11h_1; var searchWords = Regex_init_$Create$('\\s+').y9(this_0, 0); var this_1 = _get_allTimeZones__4t4mtu(this.c11h_1); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp$ret$0; l$ret$1: do { var tmp_0; if (isInterface(searchWords, Collection)) { tmp_0 = searchWords.c1(); } else { tmp_0 = false; } if (tmp_0) { tmp$ret$0 = true; break l$ret$1; } var tmp0_iterator_0 = searchWords.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (!contains(element.fmh(), element_0, true)) { tmp$ret$0 = false; break l$ret$1; } } tmp$ret$0 = true; } while (false); if (tmp$ret$0) { destination.i1(element); } } return destination; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).w1m = function ($this$withContext, completion) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda(this.b11h_1, this.c11h_1, completion); i.d11h_1 = $this$withContext; return i; }; function TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda_0($searchText, this$0, resultContinuation) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda($searchText, this$0, resultContinuation); var l = function ($this$withContext, $completion) { return i.s11g($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_allTimeZones__4t4mtu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.e11i_1; allTimeZones$factory(); return this_0.t2(); } function Companion_204() { this.g11i_1 = 'TimeZoneList'; } var Companion_instance_252; function Companion_getInstance_222() { return Companion_instance_252; } function sam$kotlin_Comparator$0_3(function_0) { this.h11i_1 = function_0; } protoOf(sam$kotlin_Comparator$0_3).pa = function (a, b) { return this.h11i_1(a, b); }; protoOf(sam$kotlin_Comparator$0_3).compare = function (a, b) { return this.pa(a, b); }; function TimeZoneListViewModel$allTimeZones$delegate$lambda() { var now = System_instance.fme(); // Inline function 'kotlin.collections.sortedBy' call // Inline function 'kotlin.collections.map' call var this_0 = Companion_getInstance_10().fmi(); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10)); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.allTimeZones$delegate..' call var tmp$ret$0 = Companion_getInstance_10().cmh(item); destination.i1(tmp$ret$0); } var this_1 = toList(destination); // Inline function 'kotlin.comparisons.compareBy' call var tmp = TimeZoneListViewModel$allTimeZones$delegate$lambda$lambda(now); var tmp$ret$3 = new sam$kotlin_Comparator$0_3(tmp); return sortedWith(this_1, tmp$ret$3); } function TimeZoneListViewModel$allTimeZones$delegate$lambda$lambda($now) { return function (a, b) { // Inline function 'kotlin.comparisons.compareValuesBy' call // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.allTimeZones$delegate..' call var tmp = offsetAt(a, $now).jmi(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.allTimeZones$delegate..' call var tmp$ret$1 = offsetAt(b, $now).jmi(); return compareValues(tmp, tmp$ret$1); }; } function TimeZoneListViewModel$slambda(this$0, resultContinuation) { this.q11i_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TimeZoneListViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_0, TimeZoneListViewModel$slambda$slambda_0(this.q11i_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var allTimeZonesVal = suspendResult; l$ret$1: do { var this_0 = this.q11i_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.t11i(allTimeZonesVal); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(TimeZoneListViewModel$slambda).w1m = function ($this$launch, completion) { var i = new TimeZoneListViewModel$slambda(this.q11i_1, completion); i.r11i_1 = $this$launch; return i; }; function TimeZoneListViewModel$slambda_0(this$0, resultContinuation) { var i = new TimeZoneListViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda(this$0, $searchText, resultContinuation) { this.c11j_1 = this$0; this.d11j_1 = $searchText; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = Dispatchers_getInstance().q12_1; suspendResult = withContext(tmp_0, TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda_0(this.d11j_1, this.c11j_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var filteredList = suspendResult; l$ret$1: do { var this_0 = this.c11j_1.qqw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.t11i(filteredList); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).w1m = function ($this$launch, completion) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda(this.c11j_1, this.d11j_1, completion); i.e11j_1 = $this$launch; return i; }; function TimeZoneListViewModel$onUpdateSearchResult$slambda_0(this$0, $searchText, resultContinuation) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda(this$0, $searchText, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new TimezoneListUiState(), 'TimeZoneList'); var tmp = this; tmp.e11i_1 = lazy_0(TimeZoneListViewModel$allTimeZones$delegate$lambda); this.f11i_1 = null; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, this.vqo().soj(strings_getInstance().sn3_1), VOID, VOID, VOID, VOID, this.zqx()); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.mqo(); launch(tmp_0, VOID, VOID, TimeZoneListViewModel$slambda_0(this, null)); } protoOf(TimeZoneListViewModel).kqx = function (searchText) { var tmp0_safe_receiver = this.f11i_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.nr(); } var tmp = this; var tmp_0 = this.mqo(); tmp.f11i_1 = launch(tmp_0, VOID, VOID, TimeZoneListViewModel$onUpdateSearchResult$slambda_0(this, searchText, null)); }; protoOf(TimeZoneListViewModel).f11j = function (entry) { this.gqu(entry.fmh()); }; protoOf(TimeZoneListViewModel).lqx = function () { }; function TimezoneListUiState(timeZoneList) { timeZoneList = timeZoneList === VOID ? emptyList() : timeZoneList; this.s11i_1 = timeZoneList; } protoOf(TimezoneListUiState).t11i = function (timeZoneList) { return new TimezoneListUiState(timeZoneList); }; protoOf(TimezoneListUiState).toString = function () { return 'TimezoneListUiState(timeZoneList=' + this.s11i_1 + ')'; }; protoOf(TimezoneListUiState).hashCode = function () { return hashCode(this.s11i_1); }; protoOf(TimezoneListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof TimezoneListUiState)) return false; var tmp0_other_with_cast = other instanceof TimezoneListUiState ? other : THROW_CCE(); if (!equals(this.s11i_1, tmp0_other_with_cast.s11i_1)) return false; return true; }; function allTimeZones$factory() { return getPropertyCallableRef('allTimeZones', 1, KProperty1, function (receiver) { return _get_allTimeZones__4t4mtu(receiver); }, null); } function VideoContentViewModel$slambda$slambda(this$0, $contentEntryVersion, resultContinuation) { this.o11j_1 = this$0; this.p11j_1 = $contentEntryVersion; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(VideoContentViewModel$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VideoContentViewModel$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 5; var tmp_0 = this; tmp_0.r11j_1 = this.o11j_1.n4r(); var tmp_1 = this; tmp_1.s11j_1 = _get_httpClient__2ty1zc_6(this.o11j_1); var tmp_2 = this; tmp_2.t11j_1 = ensureNotNull(this.p11j_1.qax_1); var tmp_3 = this; tmp_3.u11j_1 = this.s11j_1; var tmp_4 = this; tmp_4.v11j_1 = this.u11j_1; var tmp_5 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.t11j_1); tmp_5.w11j_1 = this_0; this.w11j_1.x38_1 = Companion_getInstance().m2x_1; var tmp_6 = this; tmp_6.x11j_1 = this.v11j_1; var tmp_7 = this; tmp_7.y11j_1 = this.w11j_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.y11j_1, this.x11j_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.z11j_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsDecodedText(this.z11j_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.a11k_1 = suspendResult; var tmp_8 = this; var this_1 = this.r11j_1.u45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_8.b11k_1 = this.r11j_1.t45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.a11k_1); this.c11k_1 = requireBodyUrlForUri(this.b11k_1, ensureNotNull(this.p11j_1.oax_1)); var tmp_9 = this; tmp_9.d11k_1 = this.o11j_1.n4r(); var tmp_10 = this; tmp_10.e11k_1 = _get_httpClient__2ty1zc_6(this.o11j_1); var tmp_11 = this; tmp_11.f11k_1 = this.c11k_1; var tmp_12 = this; tmp_12.g11k_1 = this.e11k_1; var tmp_13 = this; tmp_13.h11k_1 = this.g11k_1; var tmp_14 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.f11k_1); tmp_14.i11k_1 = this_3; this.i11k_1.x38_1 = Companion_getInstance().m2x_1; var tmp_15 = this; tmp_15.j11k_1 = this.h11k_1; var tmp_16 = this; tmp_16.k11k_1 = this.i11k_1; this.id_1 = 3; suspendResult = (new HttpStatement(this.k11k_1, this.j11k_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.l11k_1 = suspendResult; this.id_1 = 4; suspendResult = bodyAsDecodedText(this.l11k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var string = suspendResult; var this_4 = this.d11k_1.u45(); var this_5 = serializer(this_4, createKType(getKClass(MediaContentInfo), arrayOf([]), false)); var mediaInfo = this.d11k_1.t45(isInterface(this_5, KSerializer) ? this_5 : THROW_CCE(), string); l$ret$1: do { var this_6 = this.o11j_1.n11l_1; while (true) { var prevValue = this_6.t2(); var tmp0_contentEntryVersionUid = this.o11j_1.m11l_1; var tmp1_learningSpace = this.o11j_1.lqo().roa(); var tmp2_manifestUrl = ensureNotNull(this.p11j_1.qax_1); var tmp3_contentManifestMap = new ContentManifestMap(this.b11k_1); var nextValue = prevValue.y11l(mediaInfo, tmp0_contentEntryVersionUid, tmp1_learningSpace, VOID, tmp2_manifestUrl, tmp3_contentManifestMap); if (this_6.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 5: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 5) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(VideoContentViewModel$slambda$slambda).w1m = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda$slambda(this.o11j_1, this.p11j_1, completion); i.q11j_1 = $this$launch; return i; }; function VideoContentViewModel$slambda$slambda_0(this$0, $contentEntryVersion, resultContinuation) { var i = new VideoContentViewModel$slambda$slambda(this$0, $contentEntryVersion, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function VideoContentViewModel$slambda$slambda_1(this$0, $contentEntryVersion, resultContinuation) { this.h11m_1 = this$0; this.i11m_1 = $contentEntryVersion; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda$slambda_1).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(VideoContentViewModel$slambda$slambda_1).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VideoContentViewModel$slambda$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.h11m_1.rqo().w7d().sau(this.i11m_1.nax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var contentEntry = suspendResult; l$ret$1: do { var this_0 = this.h11m_1.n11l_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.y11l(VOID, VOID, VOID, VOID, VOID, VOID, contentEntry); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.h11m_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = contentEntry == null ? null : contentEntry.pav_1; var nextValue_0 = prevValue_0.hq7(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(VideoContentViewModel$slambda$slambda_1).w1m = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda$slambda_1(this.h11m_1, this.i11m_1, completion); i.j11m_1 = $this$launch; return i; }; function VideoContentViewModel$slambda$slambda_2(this$0, $contentEntryVersion, resultContinuation) { var i = new VideoContentViewModel$slambda$slambda_1(this$0, $contentEntryVersion, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function MediaPlayState(timestamp, timeInMillis, totalDuration, resumed) { timestamp = timestamp === VOID ? systemTimeInMillis() : timestamp; timeInMillis = timeInMillis === VOID ? new Long(0, 0) : timeInMillis; totalDuration = totalDuration === VOID ? new Long(0, 0) : totalDuration; resumed = resumed === VOID ? false : resumed; this.k11m_1 = timestamp; this.l11m_1 = timeInMillis; this.m11m_1 = totalDuration; this.n11m_1 = resumed; } protoOf(MediaPlayState).o11m = function () { var tmp; if (this.m11m_1.c7(new Long(0, 0)) > 0) { // Inline function 'kotlin.Long.times' call tmp = this.l11m_1.cb(toLong(100)).bb(this.m11m_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(MediaPlayState).toString = function () { return 'MediaPlayState(timestamp=' + this.k11m_1.toString() + ', timeInMillis=' + this.l11m_1.toString() + ', totalDuration=' + this.m11m_1.toString() + ', resumed=' + this.n11m_1 + ')'; }; protoOf(MediaPlayState).hashCode = function () { var result = this.k11m_1.hashCode(); result = imul(result, 31) + this.l11m_1.hashCode() | 0; result = imul(result, 31) + this.m11m_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.n11m_1) | 0; return result; }; protoOf(MediaPlayState).equals = function (other) { if (this === other) return true; if (!(other instanceof MediaPlayState)) return false; var tmp0_other_with_cast = other instanceof MediaPlayState ? other : THROW_CCE(); if (!this.k11m_1.equals(tmp0_other_with_cast.k11m_1)) return false; if (!this.l11m_1.equals(tmp0_other_with_cast.l11m_1)) return false; if (!this.m11m_1.equals(tmp0_other_with_cast.m11m_1)) return false; if (!(this.n11m_1 === tmp0_other_with_cast.n11m_1)) return false; return true; }; function _get_httpClient__2ty1zc_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p11l_1; httpClient$factory_14(); return this_0.t2(); } function Companion_205() { this.p11m_1 = 'Video'; } var Companion_instance_253; function Companion_getInstance_223() { return Companion_instance_253; } function VideoContentViewModel$slambda(this$0, resultContinuation) { this.y11m_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(VideoContentViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VideoContentViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.y11m_1.rqo().j7f().gbq(this.y11m_1.m11l_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_elvis_lhs = suspendResult; var tmp_0; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp0_elvis_lhs; } var contentEntryVersion = tmp_0; launch(this.z11m_1, VOID, VOID, VideoContentViewModel$slambda$slambda_0(this.y11m_1, contentEntryVersion, null)); launch(this.z11m_1, VOID, VOID, VideoContentViewModel$slambda$slambda_2(this.y11m_1, contentEntryVersion, null)); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(VideoContentViewModel$slambda).w1m = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda(this.y11m_1, completion); i.z11m_1 = $this$launch; return i; }; function VideoContentViewModel$slambda_0(this$0, resultContinuation) { var i = new VideoContentViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function VideoContentViewModel(di, savedStateHandle) { AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'Video'); this.l11l_1 = MutableStateFlow(new MediaPlayState()); var tmp = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.m11l_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.n11l_1 = MutableStateFlow(new VideoContentUiState()); this.o11l_1 = asStateFlow(this.n11l_1); var tmp_0 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.p11l_1 = Instance(this, tmp$ret$0, null).b5d(this, httpClient$factory_13()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.' call var nextValue = prevValue.hq7(VOID, VOID, VOID, VOID, true); if (this_0.z1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, VideoContentViewModel$slambda_0(this, null)); } protoOf(VideoContentViewModel).oye = function () { var tmp0_safe_receiver = this.n11l_1.t2().w11l_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pav_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel..' call tmp = new TitleAndLangCode(tmp1_safe_receiver, 'en'); } return tmp; }; protoOf(VideoContentViewModel).a11n = function (playState) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.l11l_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.onPlayStateChanged.' call var nextValue = playState; if (this_0.z1k(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var prevState = tmp$ret$1; if (!(prevState.n11m_1 === playState.n11m_1)) { this.nq3(playState.n11m_1); } this.aq4(playState.o11m()); }; function VideoContentUiState(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) { mediaContentInfo = mediaContentInfo === VOID ? null : mediaContentInfo; contentEntryVersionUid = contentEntryVersionUid === VOID ? new Long(0, 0) : contentEntryVersionUid; learningSpace = learningSpace === VOID ? null : learningSpace; mediaSrc = mediaSrc === VOID ? null : mediaSrc; manifestUrl = manifestUrl === VOID ? null : manifestUrl; contentManifestMap = contentManifestMap === VOID ? null : contentManifestMap; contentEntry = contentEntry === VOID ? null : contentEntry; isFullScreen = isFullScreen === VOID ? false : isFullScreen; this.q11l_1 = mediaContentInfo; this.r11l_1 = contentEntryVersionUid; this.s11l_1 = learningSpace; this.t11l_1 = mediaSrc; this.u11l_1 = manifestUrl; this.v11l_1 = contentManifestMap; this.w11l_1 = contentEntry; this.x11l_1 = isFullScreen; } protoOf(VideoContentUiState).b11n = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) { return new VideoContentUiState(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).y11l = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen, $super) { mediaContentInfo = mediaContentInfo === VOID ? this.q11l_1 : mediaContentInfo; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.r11l_1 : contentEntryVersionUid; learningSpace = learningSpace === VOID ? this.s11l_1 : learningSpace; mediaSrc = mediaSrc === VOID ? this.t11l_1 : mediaSrc; manifestUrl = manifestUrl === VOID ? this.u11l_1 : manifestUrl; contentManifestMap = contentManifestMap === VOID ? this.v11l_1 : contentManifestMap; contentEntry = contentEntry === VOID ? this.w11l_1 : contentEntry; isFullScreen = isFullScreen === VOID ? this.x11l_1 : isFullScreen; return $super === VOID ? this.b11n(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) : $super.b11n.call(this, mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).toString = function () { return 'VideoContentUiState(mediaContentInfo=' + this.q11l_1 + ', contentEntryVersionUid=' + this.r11l_1.toString() + ', learningSpace=' + this.s11l_1 + ', mediaSrc=' + this.t11l_1 + ', manifestUrl=' + this.u11l_1 + ', contentManifestMap=' + this.v11l_1 + ', contentEntry=' + this.w11l_1 + ', isFullScreen=' + this.x11l_1 + ')'; }; protoOf(VideoContentUiState).hashCode = function () { var result = this.q11l_1 == null ? 0 : hashCode(this.q11l_1); result = imul(result, 31) + this.r11l_1.hashCode() | 0; result = imul(result, 31) + (this.s11l_1 == null ? 0 : this.s11l_1.hashCode()) | 0; result = imul(result, 31) + (this.t11l_1 == null ? 0 : getStringHashCode(this.t11l_1)) | 0; result = imul(result, 31) + (this.u11l_1 == null ? 0 : getStringHashCode(this.u11l_1)) | 0; result = imul(result, 31) + (this.v11l_1 == null ? 0 : this.v11l_1.hashCode()) | 0; result = imul(result, 31) + (this.w11l_1 == null ? 0 : this.w11l_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.x11l_1) | 0; return result; }; protoOf(VideoContentUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof VideoContentUiState)) return false; var tmp0_other_with_cast = other instanceof VideoContentUiState ? other : THROW_CCE(); if (!equals(this.q11l_1, tmp0_other_with_cast.q11l_1)) return false; if (!this.r11l_1.equals(tmp0_other_with_cast.r11l_1)) return false; if (!equals(this.s11l_1, tmp0_other_with_cast.s11l_1)) return false; if (!(this.t11l_1 == tmp0_other_with_cast.t11l_1)) return false; if (!(this.u11l_1 == tmp0_other_with_cast.u11l_1)) return false; if (!equals(this.v11l_1, tmp0_other_with_cast.v11l_1)) return false; if (!equals(this.w11l_1, tmp0_other_with_cast.w11l_1)) return false; if (!(this.x11l_1 === tmp0_other_with_cast.x11l_1)) return false; return true; }; function httpClient$factory_13() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_6(receiver); }, null); } function httpClient$factory_14() { return getPropertyCallableRef('httpClient', 1, KProperty1, function (receiver) { return _get_httpClient__2ty1zc_6(receiver); }, null); } function _get_resolveXapiLaunchHrefUseCase__8u4pj4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x11n_1; resolveXapiLaunchHrefUseCase$factory_0(); return this_0.t2(); } function Companion_206() { this.b11o_1 = 'XapiContent'; } var Companion_instance_254; function Companion_getInstance_224() { return Companion_instance_254; } function XapiContentViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.k11o_1 = this$0; this.l11o_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiContentViewModel$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(XapiContentViewModel$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(XapiContentViewModel$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.jd_1 = 2; this.id_1 = 1; var tmp_0 = _get_resolveXapiLaunchHrefUseCase__8u4pj4(this.k11o_1); Companion_getInstance_126(); var tmp0_safe_receiver = this.l11o_1.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; Companion_getInstance_126(); var tmp2_safe_receiver = this.l11o_1.ba('courseBlockUid'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); suspendResult = tmp_0.dpa(this.k11o_1.y11n_1, tmp_1, tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var launchHrefResult = suspendResult; l$ret$1: do { var this_0 = this.k11o_1.z11n_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.p11o(launchHrefResult.wp6_1); if (this_0.z1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.k11o_1.zqn_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.hq7(VOID, VOID, launchHrefResult.yp6_1.rp9_1, VOID, true); if (this_1.z1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_2 = this.ld_1; if (tmp_2 instanceof Error) { var e = this.ld_1; Napier_getInstance().r5e('Exception opening xapi content', e); this.id_1 = 4; continue $sm; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; protoOf(XapiContentViewModel$slambda).w1m = function ($this$launch, completion) { var i = new XapiContentViewModel$slambda(this.k11o_1, this.l11o_1, completion); i.m11o_1 = $this$launch; return i; }; function XapiContentViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new XapiContentViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function XapiContentViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'XapiContent'); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = onActiveLearningSpace(di); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.x11n_1 = Instance(this_0, tmp$ret$0, null).b5d(this, resolveXapiLaunchHrefUseCase$factory()); var tmp_1 = this; Companion_getInstance_117(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.y11n_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.z11n_1 = MutableStateFlow(new XapiContentUiState(VOID, this.y11n_1)); this.a11o_1 = asStateFlow(this.z11n_1); var tmp_2 = this.mqo(); launch(tmp_2, VOID, VOID, XapiContentViewModel$slambda_0(this, savedStateHandle, null)); } function XapiContentUiState(url, contentEntryVersionUid) { url = url === VOID ? null : url; contentEntryVersionUid = contentEntryVersionUid === VOID ? new Long(0, 0) : contentEntryVersionUid; this.n11o_1 = url; this.o11o_1 = contentEntryVersionUid; } protoOf(XapiContentUiState).q11o = function (url, contentEntryVersionUid) { return new XapiContentUiState(url, contentEntryVersionUid); }; protoOf(XapiContentUiState).p11o = function (url, contentEntryVersionUid, $super) { url = url === VOID ? this.n11o_1 : url; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.o11o_1 : contentEntryVersionUid; return $super === VOID ? this.q11o(url, contentEntryVersionUid) : $super.q11o.call(this, url, contentEntryVersionUid); }; protoOf(XapiContentUiState).toString = function () { return 'XapiContentUiState(url=' + this.n11o_1 + ', contentEntryVersionUid=' + this.o11o_1.toString() + ')'; }; protoOf(XapiContentUiState).hashCode = function () { var result = this.n11o_1 == null ? 0 : getStringHashCode(this.n11o_1); result = imul(result, 31) + this.o11o_1.hashCode() | 0; return result; }; protoOf(XapiContentUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiContentUiState)) return false; var tmp0_other_with_cast = other instanceof XapiContentUiState ? other : THROW_CCE(); if (!(this.n11o_1 == tmp0_other_with_cast.n11o_1)) return false; if (!this.o11o_1.equals(tmp0_other_with_cast.o11o_1)) return false; return true; }; function resolveXapiLaunchHrefUseCase$factory() { return getPropertyCallableRef('resolveXapiLaunchHrefUseCase', 1, KProperty1, function (receiver) { return _get_resolveXapiLaunchHrefUseCase__8u4pj4(receiver); }, null); } function resolveXapiLaunchHrefUseCase$factory_0() { return getPropertyCallableRef('resolveXapiLaunchHrefUseCase', 1, KProperty1, function (receiver) { return _get_resolveXapiLaunchHrefUseCase__8u4pj4(receiver); }, null); } function encryptPbkdf2(_this__u8e3s4, password, $completion) { var tmp = new $encryptPbkdf2COROUTINE$84(_this__u8e3s4, password, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function doublePbkdf2HashAsBase64(_this__u8e3s4, password, $completion) { var tmp = new $doublePbkdf2HashAsBase64COROUTINE$86(_this__u8e3s4, password, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); } function $encryptPbkdf2COROUTINE$84(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z11o_1 = _this__u8e3s4; this.a11p_1 = password; } protoOf($encryptPbkdf2COROUTINE$84).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var tmp_1 = get_direct(this.z11o_1.lnt_1).g58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.b11p_1 = tmp_1.e58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.c11p_1 = this.b11p_1; var tmp_4 = this; tmp_4.d11p_1 = this.z11o_1.knt_1.cnu_1 + 'api/pbkdf2/encryptPbkdf2'; var tmp_5 = this; tmp_5.e11p_1 = this.c11p_1; var tmp_6 = this; tmp_6.f11p_1 = this.e11p_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.d11p_1); parameter(this_0, 'secret', this.a11p_1); tmp_7.g11p_1 = this_0; this.g11p_1.x38_1 = Companion_getInstance().m2x_1; var tmp_8 = this; tmp_8.h11p_1 = this.f11p_1; var tmp_9 = this; tmp_9.i11p_1 = this.g11p_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.i11p_1, this.h11p_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.j11p_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsText(this.j11p_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; return decodeBase64Bytes(ARGUMENT); case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function $doublePbkdf2HashAsBase64COROUTINE$86(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.s11p_1 = _this__u8e3s4; this.t11p_1 = password; } protoOf($doublePbkdf2HashAsBase64COROUTINE$86).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var tmp_1 = get_direct(this.s11p_1.lnt_1).g58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.u11p_1 = tmp_1.e58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.v11p_1 = this.u11p_1; var tmp_4 = this; tmp_4.w11p_1 = this.s11p_1.knt_1.cnu_1 + 'api/pbkdf2/doubleEncryptPbkdf2'; var tmp_5 = this; tmp_5.x11p_1 = this.v11p_1; var tmp_6 = this; tmp_6.y11p_1 = this.x11p_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.w11p_1); parameter(this_0, 'secret', this.t11p_1); tmp_7.z11p_1 = this_0; this.z11p_1.x38_1 = Companion_getInstance().m2x_1; var tmp_8 = this; tmp_8.a11q_1 = this.y11p_1; var tmp_9 = this; tmp_9.b11q_1 = this.z11p_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.b11q_1, this.a11q_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.c11q_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsText(this.c11q_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function get_DIContext() { _init_properties_DiModule_kt__i4hbld(); return DIContext; } var DIContext; function get_DIModule() { _init_properties_DiModule_kt__i4hbld(); return DIModule; } var DIModule; function DIModule$lambda($this$FC, props) { _init_properties_DiModule_kt__i4hbld(); // Inline function 'react.ChildrenBuilder.invoke' call var this_0 = get_DIContext(); var value = props.di; var block = DIModule$lambda$lambda(props); addChild($this$FC, this_0, value, block); return Unit_instance; } function DIModule$lambda$lambda($props) { return function ($this$invoke) { var this_0 = $props.children; addChildNode($this$invoke, this_0); return Unit_instance; }; } var properties_initialized_DiModule_kt_wik303; function _init_properties_DiModule_kt__i4hbld() { if (!properties_initialized_DiModule_kt_wik303) { properties_initialized_DiModule_kt_wik303 = true; DIContext = createContext(); DIModule = FC(DIModule$lambda); } } function get_NavHostContext() { _init_properties_NavHost_kt__jjqoc9(); return NavHostContext; } var NavHostContext; function get_NavHost() { _init_properties_NavHost_kt__jjqoc9(); return NavHost; } var NavHost; function invoke$effectivePopUpTo(_this__u8e3s4, this$0) { var tmp; Companion_getInstance_117(); if (_this__u8e3s4 === '') { tmp = get_ustadViewName(this$0.e11q_1); } else { tmp = _this__u8e3s4; } return tmp; } function NavHostFunction(navigateFn, location, onHideChildren) { this.d11q_1 = navigateFn; this.e11q_1 = location; this.f11q_1 = onHideChildren; } protoOf(NavHostFunction).g11q = function (cmd) { if (cmd instanceof NavigateNavCommand) { var tmp1_safe_receiver = cmd.mqa_1.yq4_1; var popUpToView = tmp1_safe_receiver == null ? null : invoke$effectivePopUpTo(tmp1_safe_receiver, this); if ((popUpToView == null ? true : popUpToView === get_ustadViewName(this.e11q_1)) ? !cmd.mqa_1.aq5_1 ? true : this.e11q_1.key === get_firstLocationKey() : false) { Napier_getInstance().j5e('NavHostFunction: go to /' + cmd.kqa_1 + '?' + toUrlQueryString(cmd.lqa_1)); var replaceNav = (popUpToView === get_ustadViewName(this.e11q_1) ? cmd.mqa_1.zq4_1 : false) ? true : cmd.mqa_1.aq5_1; var tmp = '/' + cmd.kqa_1 + '?' + toUrlQueryString(cmd.lqa_1); // Inline function 'js.objects.jso' call // Inline function 'kotlin.apply' call // Inline function 'js.objects.jso' call var this_0 = {}; // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.components.NavHostFunction.invoke.' call this_0.replace = replaceNav; setIsNewFirstLocation(this_0, this.e11q_1); this.d11q_1(tmp, this_0); } else { Napier_getInstance().j5e('NavHostFunction: pop, then go /' + cmd.kqa_1 + '?' + toUrlQueryString(cmd.lqa_1)); clearNavHostCommands(sessionStorage); sessionStorage.removeItem('navControllerStackCleared'); sessionStorage.removeItem('navHostHitPopupto'); if (!(popUpToView == null)) { // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpTo'] = popUpToView; } // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerClearStack'] = cmd.mqa_1.aq5_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.mqa_1.zq4_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerGoToAfterPop'] = '/' + cmd.kqa_1 + '?' + toUrlQueryString(cmd.lqa_1); this.f11q_1(); this.d11q_1(-1); } } else { if (cmd instanceof PopNavCommand) { var popUpTo = invoke$effectivePopUpTo(cmd.oqa_1, this); if (popUpTo === get_ustadViewName(this.e11q_1) ? cmd.pqa_1 : false) { Napier_getInstance().j5e('NavHostFunction: pop to current viewname ' + popUpTo + ' (inclusive) ' + 'e.g. go back one'); this.d11q_1(-1); } else if (!(popUpTo === get_ustadViewName(this.e11q_1))) { Napier_getInstance().j5e('NavHostFunction: pop to ' + popUpTo + ' inclusive = ' + cmd.pqa_1); sessionStorage.removeItem('navHostHitPopupto'); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpTo'] = cmd.oqa_1; // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.pqa_1.toString(); this.f11q_1(); this.d11q_1(-1); } else { Napier_getInstance().j5e('NavHostFunction: pop up to current viewname, inclusive = false?? Nothing to do.'); } } else { Napier_getInstance().j5e('NavHostFunction: command ignored: ' + cmd); } } }; function get_NAVHOST_CLEARSTACK_VIEWNAME() { return NAVHOST_CLEARSTACK_VIEWNAME; } var NAVHOST_CLEARSTACK_VIEWNAME; function set_firstLocationKey(value) { _init_properties_NavHost_kt__jjqoc9(); sessionStorage.setItem('firstLocationKey', value); } function get_firstLocationKey() { _init_properties_NavHost_kt__jjqoc9(); var tmp0_elvis_lhs = sessionStorage.getItem('firstLocationKey'); return tmp0_elvis_lhs == null ? 'default' : tmp0_elvis_lhs; } function clearNavHostCommands(_this__u8e3s4) { _init_properties_NavHost_kt__jjqoc9(); _this__u8e3s4.removeItem('navControllerPopUpTo'); _this__u8e3s4.removeItem('navControllerPopUpToInc'); _this__u8e3s4.removeItem('navControllerClearStack'); _this__u8e3s4.removeItem('navControllerGoToAfterPop'); _this__u8e3s4.removeItem('navHostRoot'); } function setIsNewFirstLocation(_this__u8e3s4, fromLocation) { _init_properties_NavHost_kt__jjqoc9(); if (_this__u8e3s4.replace === true ? fromLocation.key === get_firstLocationKey() : false) { _this__u8e3s4.state = json([to('isNewFirstLocation', true)]); } } function NavHost$lambda($this$FC, props) { _init_properties_NavHost_kt__jjqoc9(); var tmp; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call if (sessionStorage['navControllerPopUpTo'] == null) { // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call tmp = !(sessionStorage['navControllerClearStack'] === 'false'); } else { tmp = false; } var showChildren$delegate = useState(tmp); var navigateFn = useNavigate(); var location = useLocation(); // Inline function 'react.useMemo' call var dependencies = [navigateFn, location]; var callback = NavHost$lambda$lambda(navigateFn, location, showChildren$delegate); var navHostFunction = useMemo(callback, dependencies); // Inline function 'react.ChildrenBuilder.invoke' call var this_0 = get_NavHostContext(); var block = NavHost$lambda$lambda_0(location, props, navigateFn, showChildren$delegate); addChild($this$FC, this_0, navHostFunction, block); return Unit_instance; } function invoke$lambda($showChildren$delegate) { _init_properties_NavHost_kt__jjqoc9(); // Inline function 'react.StateInstance.getValue' call getLocalDelegateReference('showChildren', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return $showChildren$delegate[0]; } function invoke$lambda_0($showChildren$delegate, value) { _init_properties_NavHost_kt__jjqoc9(); getLocalDelegateReference('showChildren', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call $showChildren$delegate[1](value); return Unit_instance; } function NavHost$lambda$lambda$lambda($showChildren$delegate) { return function () { invoke$lambda_0($showChildren$delegate, false); return Unit_instance; }; } function NavHost$lambda$lambda($navigateFn, $location, $showChildren$delegate) { return function () { return new NavHostFunction($navigateFn, $location, NavHost$lambda$lambda$lambda($showChildren$delegate)); }; } function invoke$launchClearStackTimeout(_this__u8e3s4, navigateFn) { return launch(_this__u8e3s4, VOID, VOID, NavHost$lambda$lambda$launchClearStackTimeout$slambda_0(navigateFn, null)); } function invoke$lambda_1($navTimeoutJob$delegate) { _init_properties_NavHost_kt__jjqoc9(); // Inline function 'react.StateInstance.getValue' call getLocalDelegateReference('navTimeoutJob', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return $navTimeoutJob$delegate[0]; } function invoke$lambda_2($navTimeoutJob$delegate, value) { _init_properties_NavHost_kt__jjqoc9(); getLocalDelegateReference('navTimeoutJob', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call $navTimeoutJob$delegate[1](value); return Unit_instance; } function NavHost$lambda$lambda$lambda_0() { _init_properties_NavHost_kt__jjqoc9(); return CoroutineScope_0(Dispatchers_getInstance().u12().mj(Job())); } function NavHost$lambda$lambda$lambda_1() { _init_properties_NavHost_kt__jjqoc9(); return null; } function NavHost$lambda$lambda$lambda_2($location, $navigateFn, $coroutineScope, $navTimeoutJob$delegate, $showChildren$delegate) { return function ($this$useEffect) { console.log('NavHost: key = ' + $location.key); var tmp0_safe_receiver = $location.state; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp = tmp0_safe_receiver; } var tmp1_safe_receiver = tmp; var isNewFirstLocation = equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver['isNewFirstLocation'], true); var tmp_0; if (isNewFirstLocation) { console.log('NavHost: New first location key = ' + $location.key); set_firstLocationKey($location.key); tmp_0 = Unit_instance; } var tmp2_safe_receiver = invoke$lambda_1($navTimeoutJob$delegate); if (tmp2_safe_receiver == null) null; else { tmp2_safe_receiver.nr(); } // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var popupToTarget = sessionStorage['navControllerPopUpTo']; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var navToAfterPop = sessionStorage['navControllerGoToAfterPop']; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp3_safe_receiver = sessionStorage['navControllerPopUpToInc']; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : toBoolean(tmp3_safe_receiver); var popUpToInclusive = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp5_safe_receiver = sessionStorage['navControllerClearStack']; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : toBoolean(tmp5_safe_receiver); var clearStack = tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp7_safe_receiver = sessionStorage['navControllerStackCleared']; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : toBoolean(tmp7_safe_receiver); var clearStackHitPlaceholder = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs; // Inline function 'org.w3c.dom.get' call // Inline function 'kotlin.js.asDynamic' call var tmp9_safe_receiver = sessionStorage['navHostHitPopupto']; var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : toBoolean(tmp9_safe_receiver); var popUpToHitDestination = tmp10_elvis_lhs == null ? false : tmp10_elvis_lhs; Napier_getInstance().d5e('NavHost: useEffect check: key = ' + $location.key + ' ' + ('current viewname = ' + get_ustadViewName($location) + ' ') + ('popUpToTarget = ' + popupToTarget + ' ') + ('navtoAfterPop = ' + navToAfterPop + ' ') + ('popUpToInclusive = ' + popUpToInclusive + ' ') + ('clearStack = ' + clearStack + ' ') + ('clearStackHitPlaceholder = ' + clearStackHitPlaceholder + ' ') + ('popUpToHitDestination = ' + popUpToHitDestination)); var tmp_1; if ((popupToTarget == null ? !clearStack : false) ? !($location.pathname === '/ClearStack') : false) { Napier_getInstance().d5e('NavHost: action: no pop or other operation pending, show children'); invoke$lambda_0($showChildren$delegate, true); tmp_1 = Unit_instance; } else if (popupToTarget === get_ustadViewName($location) ? popUpToInclusive : false) { Napier_getInstance().d5e('NavHost: action: reached popUpTo destination, popUpToInclusive is set, pop once more'); invoke$lambda_0($showChildren$delegate, false); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navHostHitPopupto'] = 'true'; $navigateFn(-1); var tmp_2; if (!(navToAfterPop == null)) { invoke$lambda_2($navTimeoutJob$delegate, invoke$launchClearStackTimeout($coroutineScope, $navigateFn)); tmp_2 = Unit_instance; } tmp_1 = tmp_2; } else if (popupToTarget === get_ustadViewName($location) ? true : popUpToHitDestination) { Napier_getInstance().d5e('NavHost: action: reached popupToDestination with inclusive = false, or inclusive was true and destination was hit'); clearNavHostCommands(sessionStorage); var tmp_3; if (!(navToAfterPop == null)) { $navigateFn(navToAfterPop); tmp_3 = Unit_instance; } else { invoke$lambda_0($showChildren$delegate, true); tmp_3 = Unit_instance; } tmp_1 = tmp_3; } else if ((clearStack ? $location.key === get_firstLocationKey() : false) ? !clearStackHitPlaceholder : false) { Napier_getInstance().d5e('NavHost: action: clearstack was set, reached first entry in history, but did not yet navigate to dummy placeholder. Going to /ClearStack'); $navigateFn('/ClearStack'); tmp_1 = Unit_instance; } else if ($location.pathname === '/ClearStack') { Napier_getInstance().d5e('NavHost: action: reached stack clear dummy placeholder. Going back'); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerStackCleared'] = 'true'; $navigateFn(-1); tmp_1 = Unit_instance; } else if (clearStack ? clearStackHitPlaceholder : false) { Napier_getInstance().d5e('NavHost: action: clearStack was set and dummy placeholder was hit'); clearNavHostCommands(sessionStorage); var tmp_4; if (!(navToAfterPop == null)) { // Inline function 'js.objects.jso' call // Inline function 'kotlin.apply' call // Inline function 'js.objects.jso' call var this_0 = {}; // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.components.NavHost....' call this_0.replace = true; setIsNewFirstLocation(this_0, $location); $navigateFn(navToAfterPop, this_0); tmp_4 = Unit_instance; } tmp_1 = tmp_4; } else { Napier_getInstance().d5e('NavHost: action: need to continue history popping'); invoke$lambda_0($showChildren$delegate, false); // Inline function 'kotlin.takeIf' call var this_1 = $navigateFn; // Inline function 'kotlin.contracts.contract' call var tmp_5; // Inline function 'com.ustadmobile.core.components.NavHost....' call if (!($location.key === get_firstLocationKey())) { tmp_5 = this_1; } else { tmp_5 = null; } var tmp11_safe_receiver = tmp_5; if (tmp11_safe_receiver == null) null; else { tmp11_safe_receiver(-1); } invoke$lambda_2($navTimeoutJob$delegate, invoke$launchClearStackTimeout($coroutineScope, $navigateFn)); tmp_1 = Unit_instance; } return Unit_instance; }; } function NavHost$lambda$lambda$launchClearStackTimeout$slambda($navigateFn, resultContinuation) { this.p11q_1 = $navigateFn; CoroutineImpl.call(this, resultContinuation); } protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = delay(new Long(250, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Napier_getInstance().d5e('NavHost: action: clearStackTimeout: apparently at the end of history. go to clearstack'); sessionStorage['navControllerClearStack'] = 'true'; this.p11q_1('/ClearStack'); return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).w1m = function ($this$launch, completion) { var i = new NavHost$lambda$lambda$launchClearStackTimeout$slambda(this.p11q_1, completion); i.q11q_1 = $this$launch; return i; }; function NavHost$lambda$lambda$launchClearStackTimeout$slambda_0($navigateFn, resultContinuation) { var i = new NavHost$lambda$lambda$launchClearStackTimeout$slambda($navigateFn, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function NavHost$lambda$lambda_0($location, $props, $navigateFn, $showChildren$delegate) { return function ($this$invoke) { // Inline function 'react.useMemo' call // Inline function 'kotlin.emptyArray' call var dependencies = [].slice(); var callback = NavHost$lambda$lambda$lambda_0; var coroutineScope = useMemo(callback, dependencies); var navTimeoutJob$delegate = useState_0(NavHost$lambda$lambda$lambda_1); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = [$location.key].slice(); useEffect(tmp, NavHost$lambda$lambda$lambda_2($location, $navigateFn, coroutineScope, navTimeoutJob$delegate, $showChildren$delegate)); var tmp_0; if (invoke$lambda($showChildren$delegate)) { var this_0 = $props.children; addChildNode($this$invoke, this_0); tmp_0 = Unit_instance; } return Unit_instance; }; } var properties_initialized_NavHost_kt_vv2ix1; function _init_properties_NavHost_kt__jjqoc9() { if (!properties_initialized_NavHost_kt_vv2ix1) { properties_initialized_NavHost_kt_vv2ix1 = true; NavHostContext = createContext(); NavHost = FC(NavHost$lambda); } } function get_NavHostClearStackPlaceholder() { _init_properties_NavHostClearStackPlaceholder_kt__f93zv7(); return NavHostClearStackPlaceholder; } var NavHostClearStackPlaceholder; function NavHostClearStackPlaceholder$lambda($this$FC, props) { _init_properties_NavHostClearStackPlaceholder_kt__f93zv7(); return Unit_instance; } var properties_initialized_NavHostClearStackPlaceholder_kt_6nlzsf; function _init_properties_NavHostClearStackPlaceholder_kt__f93zv7() { if (!properties_initialized_NavHostClearStackPlaceholder_kt_6nlzsf) { properties_initialized_NavHostClearStackPlaceholder_kt_6nlzsf = true; NavHostClearStackPlaceholder = FC(NavHostClearStackPlaceholder$lambda); } } function SetPasswordUseCaseJs$invoke$lambda() { return 'Exception setting password'; } function $invokeCOROUTINE$87(_this__u8e3s4, activeUserPersonUid, personUid, username, newPassword, currentPassword, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z11q_1 = _this__u8e3s4; this.a11r_1 = activeUserPersonUid; this.b11r_1 = personUid; this.c11r_1 = username; this.d11r_1 = newPassword; this.e11r_1 = currentPassword; } protoOf($invokeCOROUTINE$87).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; var tmp_1 = this.z11q_1.o11r_1; var tmp0_elvis_lhs = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2; if (tmp0_elvis_lhs == null) { throw IllegalArgumentException_init_$Create$_0(); } else { tmp_2 = tmp0_elvis_lhs; } tmp_0.f11r_1 = tmp_2; this.jd_1 = 2; var tmp_3 = this; tmp_3.g11r_1 = this.z11q_1.p11r_1; var tmp_4 = this; tmp_4.h11r_1 = this.z11q_1.n11r_1.cnu_1 + 'api/account/setpassword'; var tmp_5 = this; tmp_5.i11r_1 = this.g11r_1; var tmp_6 = this; tmp_6.j11r_1 = this.i11r_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.h11r_1); doorNodeIdHeader(this_0, this.f11r_1); parameter(this_0, 'nodeActiveUserUid', this.a11r_1); parameter(this_0, 'personUid', this.b11r_1.toString()); parameter(this_0, 'username', this.c11r_1); parameter(this_0, 'newPassword', this.d11r_1); var tmp0_safe_receiver = this.e11r_1; if (tmp0_safe_receiver == null) null; else { parameter(this_0, 'currentPassword', tmp0_safe_receiver); } set_expectSuccess(this_0, false); tmp_7.k11r_1 = this_0; this.k11r_1.x38_1 = Companion_getInstance().n2x_1; var tmp_8 = this; tmp_8.l11r_1 = this.j11r_1; var tmp_9 = this; tmp_9.m11r_1 = this.k11r_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.m11r_1, this.l11r_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; if (result.k3b().equals(Companion_getInstance_0().y2y_1)) { throw new UnauthorizedException(); } else if (!isSuccess(result.k3b())) { throw IllegalStateException_init_$Create$('Bad response to set password request: ' + result.k3b()); } this.jd_1 = 3; this.id_1 = 4; continue $sm; case 2: this.jd_1 = 3; var tmp_10 = this.ld_1; if (tmp_10 instanceof Error) { var e = this.ld_1; var tmp_11 = Napier_getInstance(); tmp_11.t5e(e, VOID, SetPasswordUseCaseJs$invoke$lambda); throw e; } else { throw this.ld_1; } case 3: throw this.ld_1; case 4: this.jd_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 3) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function SetPasswordUseCaseJs(learningSpace, repo, httpClient) { this.n11r_1 = learningSpace; this.o11r_1 = repo; this.p11r_1 = httpClient; } protoOf(SetPasswordUseCaseJs).roi = function (activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion) { var tmp = new $invokeCOROUTINE$87(this, activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function OpenBlobUseCaseJs() { } protoOf(OpenBlobUseCaseJs).top = function (item, onProgress, intent, $completion) { var element = document.createElement('a'); element.setAttribute('href', item.bop_1); element.setAttribute('download', item.dop_1); element.style.display = 'none'; document.body.appendChild(element); element.click(); document.body.removeChild(element); return Unit_instance; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda($transferJobItemStatusUpdater, this$0, $uriToSaveQueueItems, resultContinuation) { this.y11r_1 = $transferJobItemStatusUpdater; this.z11r_1 = this$0; this.a11s_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).dnz = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).ie = function (p1, $completion) { return this.dnz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = this.y11r_1.zow(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 2; var tmp_0 = this.z11r_1.f11s_1.l7f(); var tmp0_safe_receiver = firstOrNull(this.a11s_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i11s_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.acc_1; suspendResult = tmp_0.aif(tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs, TransferJobItemStatus_FAILED_getInstance().skb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).enz = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda(this.y11r_1, this.z11r_1, this.a11s_1, completion); i.b11s_1 = it; return i; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda_0($transferJobItemStatusUpdater, this$0, $uriToSaveQueueItems, resultContinuation) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda($transferJobItemStatusUpdater, this$0, $uriToSaveQueueItems, resultContinuation); var l = function (it, $completion) { return i.dnz(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda($transferJobItemStatusUpdater, $uploadItem) { return function (it) { $transferJobItemStatusUpdater.wow(new BlobTransferProgressUpdate($uploadItem, it.fpo_1)); return Unit_instance; }; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this$0, $transferJobItemStatusUpdater, $uriToSaveQueueItems, resultContinuation) { this.r11s_1 = this$0; this.s11s_1 = $transferJobItemStatusUpdater; this.t11s_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).v1m = function ($this$withContext, $completion) { var tmp = this.w1m($this$withContext, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = withDoorTransactionAsync(this.r11s_1.f11s_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda_0(this.s11s_1, this.r11s_1, this.t11s_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).w1m = function ($this$withContext, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this.r11s_1, this.s11s_1, this.t11s_1, completion); i.u11s_1 = $this$withContext; return i; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda_0(this$0, $transferJobItemStatusUpdater, $uriToSaveQueueItems, resultContinuation) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this$0, $transferJobItemStatusUpdater, $uriToSaveQueueItems, resultContinuation); var l = function ($this$withContext, $completion) { return i.v1m($this$withContext, $completion); }; l.$arity = 1; return l; } function UriToSaveQueueItem(uriToSaveItem, transferJobItem) { this.h11s_1 = uriToSaveItem; this.i11s_1 = transferJobItem; } protoOf(UriToSaveQueueItem).toString = function () { return 'UriToSaveQueueItem(uriToSaveItem=' + this.h11s_1 + ', transferJobItem=' + this.i11s_1 + ')'; }; protoOf(UriToSaveQueueItem).hashCode = function () { var result = this.h11s_1.hashCode(); result = imul(result, 31) + this.i11s_1.hashCode() | 0; return result; }; protoOf(UriToSaveQueueItem).equals = function (other) { if (this === other) return true; if (!(other instanceof UriToSaveQueueItem)) return false; var tmp0_other_with_cast = other instanceof UriToSaveQueueItem ? other : THROW_CCE(); if (!this.h11s_1.equals(tmp0_other_with_cast.h11s_1)) return false; if (!this.i11s_1.equals(tmp0_other_with_cast.i11s_1)) return false; return true; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this$0, $localUrisToSave, $onTransferJobItemCreated, resultContinuation) { this.d11t_1 = this$0; this.e11t_1 = $localUrisToSave; this.f11t_1 = $onTransferJobItemCreated; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).y11t = function (it, $completion) { var tmp = this.enz(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).ie = function (p1, $completion) { return this.y11t(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 8; this.id_1 = 1; suspendResult = this.d11t_1.f11s_1.k7f().mic(new TransferJob(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.h11t_1 = suspendResult; this.i11t_1 = this.h11t_1.mb(); var tmp_0 = this; tmp_0.j11t_1 = this.e11t_1; var tmp_1 = this; tmp_1.k11t_1 = this.j11t_1; var tmp_2 = this; tmp_2.l11t_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.j11t_1, 10)); this.m11t_1 = this.k11t_1.w(); this.id_1 = 2; continue $sm; case 2: if (!this.m11t_1.f()) { this.id_1 = 7; continue $sm; } this.n11t_1 = this.m11t_1.e(); var tmp_3 = this; tmp_3.o11t_1 = this.n11t_1; var tmp_4 = this; tmp_4.p11t_1 = fetch(this.o11t_1.tor_1); this.id_1 = 3; var this_0 = this.p11t_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.q11t_1 = suspendResult; this.r11t_1 = this.q11t_1.blob(); this.id_1 = 4; var this_1 = this.r11t_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.s11t_1 = suspendResult; this.t11t_1 = this.s11t_1.size; this.u11t_1 = numberToLong(this.t11t_1); var tmp_5 = this; var tmp0_tjiSrc = this.o11t_1.tor_1; var tmp1_tjiTableId = this.o11t_1.vor_1; var tmp2_tjiEntityUid = this.o11t_1.uor_1; tmp_5.v11t_1 = new TransferJobItem(VOID, this.i11t_1, this.u11t_1, VOID, VOID, tmp0_tjiSrc, VOID, VOID, VOID, tmp1_tjiTableId, tmp2_tjiEntityUid); this.id_1 = 5; suspendResult = this.d11t_1.f11s_1.l7f().wie(this.v11t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.w11t_1 = suspendResult; this.x11t_1 = this.w11t_1.mb(); this.f11t_1(this.o11t_1, this.v11t_1.vky(this.x11t_1)); this.id_1 = 6; suspendResult = this.d11t_1.g11s_1.oox(this.d11t_1.f11s_1, this.o11t_1.vor_1, this.o11t_1.uor_1, this.x11t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var ARGUMENT = new UriToSaveQueueItem(this.o11t_1, this.v11t_1.vky(this.x11t_1)); this.l11t_1.i1(ARGUMENT); this.id_1 = 2; continue $sm; case 7: return this.l11t_1; case 8: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 8) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).enz = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this.d11t_1, this.e11t_1, this.f11t_1, completion); i.g11t_1 = it; return i; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_0(this$0, $localUrisToSave, $onTransferJobItemCreated, resultContinuation) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this$0, $localUrisToSave, $onTransferJobItemCreated, resultContinuation); var l = function (it, $completion) { return i.y11t(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this$0, $uriToSaveQueueItems, resultContinuation) { this.h11u_1 = this$0; this.i11u_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).e11v = function ($this$coroutineScope, $completion) { var tmp = this.w1m($this$coroutineScope, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).ie = function (p1, $completion) { return this.e11v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 8; this.k11u_1 = new TransferJobItemStatusUpdater(this.h11u_1.f11s_1, null, this.j11u_1); this.jd_1 = 5; var tmp_0 = this; tmp_0.m11u_1 = this.i11u_1; var tmp_1 = this; tmp_1.n11u_1 = this.m11u_1; var tmp_2 = this; tmp_2.o11u_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.m11u_1, 10)); this.p11u_1 = this.n11u_1.w(); this.id_1 = 1; continue $sm; case 1: if (!this.p11u_1.f()) { this.id_1 = 3; continue $sm; } this.q11u_1 = this.p11u_1.e(); var tmp_3 = this; tmp_3.r11u_1 = this.q11u_1; this.s11u_1 = new BlobTransferJobItem('', this.r11u_1.i11s_1.zcb_1); this.k11u_1.xow(new BlobTransferStatusUpdate(this.s11u_1, TransferJobItemStatus_IN_PROGRESS_getInstance().skb_1)); this.t11u_1 = this.h11u_1.c11s_1; this.u11u_1 = randomUuidAsString(); this.v11u_1 = Companion_getInstance_3().p2r(this.r11u_1.h11s_1.tor_1); this.w11u_1 = this.h11u_1.d11s_1.cnu_1 + 'api/blob/upload-item'; var tmp_4 = this; var this_0 = LinkedHashMap_init_$Create$(); var tmp0_safe_receiver = this.r11u_1.h11s_1.wor_1; if (tmp0_safe_receiver == null) null; else { this_0.s('X-Blob-Response-' + 'Content-Type', listOf_0(tmp0_safe_receiver)); } tmp_4.x11u_1 = asIStringValues(this_0.f3()); this.id_1 = 2; suspendResult = this.t11u_1.lpo(this.u11u_1, this.v11u_1, this.w11u_1, VOID, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda(this.k11u_1, this.s11u_1), VOID, this.x11u_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.y11u_1 = suspendResult; var tmp_5 = this; var tmp5_elvis_lhs = this.y11u_1.hpo_1; var tmp_6; if (tmp5_elvis_lhs == null) { throw IllegalStateException_init_$Create$('SaveLocalUrisAsBlobUseCaseJs: no response body!'); } else { tmp_6 = tmp5_elvis_lhs; } tmp_5.z11u_1 = tmp_6; this.k11u_1.xow(new BlobTransferStatusUpdate(this.s11u_1, TransferJobItemStatus_COMPLETE_getInstance().skb_1)); this.a11v_1 = this.h11u_1.e11s_1.t45(Companion_instance_81.o4r(), this.z11u_1); Napier_getInstance().j5e('SaveLocalUrisAsBlobUseCaseJs: upload complete: ' + (this.r11u_1.h11s_1.tor_1 + ' stored as ' + this.a11v_1.toq_1)); this.b11v_1 = this.a11v_1.bos(this.r11u_1.h11s_1.uor_1, this.r11u_1.h11s_1.vor_1, this.r11u_1.h11s_1.tor_1); this.o11u_1.i1(this.b11v_1); this.id_1 = 1; continue $sm; case 3: this.c11v_1 = this.o11u_1; this.id_1 = 4; suspendResult = this.k11u_1.zow(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.l11u_1 = this.c11v_1; this.jd_1 = 8; this.id_1 = 7; continue $sm; case 5: this.jd_1 = 8; var tmp_7 = this.ld_1; if (tmp_7 instanceof Error) { this.d11v_1 = this.ld_1; Napier_getInstance().r5e('SaveLocalUriAsBlobUseCaseJs: exception uploading', this.d11v_1); this.id_1 = 6; var tmp_8 = NonCancellable_getInstance(); suspendResult = withContext(tmp_8, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda_0(this.h11u_1, this.k11u_1, this.i11u_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.ld_1; } case 6: var tmp_9 = this; throw this.d11v_1; case 7: this.jd_1 = 8; return this.l11u_1; case 8: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 8) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).w1m = function ($this$coroutineScope, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this.h11u_1, this.i11u_1, completion); i.j11u_1 = $this$coroutineScope; return i; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_2(this$0, $uriToSaveQueueItems, resultContinuation) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this$0, $uriToSaveQueueItems, resultContinuation); var l = function ($this$coroutineScope, $completion) { return i.e11v($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$88(_this__u8e3s4, localUrisToSave, onTransferJobItemCreated, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.n11v_1 = _this__u8e3s4; this.o11v_1 = localUrisToSave; this.p11v_1 = onTransferJobItemCreated; } protoOf($invokeCOROUTINE$88).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.id_1 = 1; suspendResult = withDoorTransactionAsync(this.n11v_1.f11s_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_0(this.n11v_1, this.o11v_1, this.p11v_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.q11v_1 = suspendResult; this.id_1 = 2; suspendResult = coroutineScope(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_2(this.n11v_1, this.q11v_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function SaveLocalUrisAsBlobUseCaseJs(chunkedUploadClientLocalUriUseCase, learningSpace, json, db, updateTransferJobItemEtagUseCase) { updateTransferJobItemEtagUseCase = updateTransferJobItemEtagUseCase === VOID ? new UpdateTransferJobItemEtagUseCase() : updateTransferJobItemEtagUseCase; this.c11s_1 = chunkedUploadClientLocalUriUseCase; this.d11s_1 = learningSpace; this.e11s_1 = json; this.f11s_1 = db; this.g11s_1 = updateTransferJobItemEtagUseCase; } protoOf(SaveLocalUrisAsBlobUseCaseJs).cos = function (localUrisToSave, onTransferJobItemCreated, $completion) { var tmp = new $invokeCOROUTINE$88(this, localUrisToSave, onTransferJobItemCreated, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function EnqueueSavePictureUseCaseJs$invoke$slambda(this$0, $entityUid, $tableId, $pictureUri, resultContinuation) { this.z11v_1 = this$0; this.a11w_1 = $entityUid; this.b11w_1 = $tableId; this.c11w_1 = $pictureUri; CoroutineImpl.call(this, resultContinuation); } protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.z11v_1.e11w_1.dos(this.a11w_1, this.b11w_1, this.c11w_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).w1m = function ($this$launch, completion) { var i = new EnqueueSavePictureUseCaseJs$invoke$slambda(this.z11v_1, this.a11w_1, this.b11w_1, this.c11w_1, completion); i.d11w_1 = $this$launch; return i; }; function EnqueueSavePictureUseCaseJs$invoke$slambda_0(this$0, $entityUid, $tableId, $pictureUri, resultContinuation) { var i = new EnqueueSavePictureUseCaseJs$invoke$slambda(this$0, $entityUid, $tableId, $pictureUri, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function EnqueueSavePictureUseCaseJs(savePictureUseCase) { this.e11w_1 = savePictureUseCase; this.f11w_1 = CoroutineScope_0(Dispatchers_getInstance().q12_1.mj(Job())); } protoOf(EnqueueSavePictureUseCaseJs).dos = function (entityUid, tableId, pictureUri, $completion) { launch(this.f11w_1, VOID, VOID, EnqueueSavePictureUseCaseJs$invoke$slambda_0(this, entityUid, tableId, pictureUri, null)); return Unit_instance; }; function SetClipboardStringUseCaseJs() { } protoOf(SetClipboardStringUseCaseJs).yp1 = function (content) { try { navigator.clipboard.writeText(content); } catch ($p) { if ($p instanceof Error) { var e = $p; } else { throw $p; } } }; function CompressImageUseCaseJs$invoke$lambda($fromUri, $completeable) { return function (it) { Napier_getInstance().j5e('CompressImageUseCaseJs: compressing ' + $fromUri + ' : success'); $completeable.hy(it); return Unit_instance; }; } function CompressImageUseCaseJs$invoke$lambda_0($fromUri, $completeable) { return function (it) { Napier_getInstance().r5e('CompressImageUseCaseJs: compressing ' + $fromUri + ' : error', it); $completeable.jy(it); return Unit_instance; }; } function $invokeCOROUTINE$89(_this__u8e3s4, fromUri, toUri, params, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.o11w_1 = _this__u8e3s4; this.p11w_1 = fromUri; this.q11w_1 = toUri; this.r11w_1 = params; this.s11w_1 = onProgress; } protoOf($invokeCOROUTINE$89).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 6; this.t11w_1 = CompletableDeferred(); Napier_getInstance().j5e('CompressImageUseCaseJs: compressing ' + this.p11w_1); this.jd_1 = 4; var tmp_0 = this; tmp_0.u11w_1 = fetch(this.p11w_1); this.id_1 = 1; var this_0 = this.u11w_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.v11w_1 = suspendResult; this.w11w_1 = this.v11w_1.blob(); this.id_1 = 2; var this_1 = this.w11w_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.x11w_1 = suspendResult; var this_2 = {}; this_2.maxWidth = this.r11w_1.bp2_1; this_2.maxHeight = this.r11w_1.cp2_1; this_2.convertSize = 50000; this_2.convertTypes = ['image/png']; this_2.success = CompressImageUseCaseJs$invoke$lambda(this.p11w_1, this.t11w_1); this_2.error = CompressImageUseCaseJs$invoke$lambda_0(this.p11w_1, this.t11w_1); new com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk(this.x11w_1, this_2); this.id_1 = 3; suspendResult = this.t11w_1.ov(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var compressedBlob = suspendResult; var resultUri = URL.createObjectURL(compressedBlob); return new CompressResult(resultUri, compressedBlob.type, numberToLong(this.x11w_1.size), numberToLong(compressedBlob.size)); case 4: this.jd_1 = 6; var tmp_1 = this.ld_1; if (tmp_1 instanceof Error) { var e = this.ld_1; Napier_getInstance().r5e('CompressImageUseCase: Exception caught: ', e); throw e; } else { throw this.ld_1; } case 5: this.jd_1 = 6; return Unit_instance; case 6: throw this.ld_1; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 6) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function CompressImageUseCaseJs() { } protoOf(CompressImageUseCaseJs).y11w = function (fromUri, toUri, params, onProgress, $completion) { var tmp = new $invokeCOROUTINE$89(this, fromUri, toUri, params, onProgress, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(CompressImageUseCaseJs).ep2 = function (fromUri, toUri, params, onProgress, $completion) { return this.y11w(fromUri, toUri, params, onProgress, $completion); }; function Companion_207() { this.z11w_1 = 3; } var Companion_instance_255; function Companion_getInstance_225() { return Companion_instance_255; } function ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda($onProgress) { return function (it) { $onProgress(new ContentEntryGetMetadataStatus(false, VOID, it.fpo_1, it.gpo_1)); return Unit_instance; }; } function $invokeCOROUTINE$90(_this__u8e3s4, contentUri, fileName, learningSpace, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.i11x_1 = _this__u8e3s4; this.j11x_1 = contentUri; this.k11x_1 = fileName; this.l11x_1 = learningSpace; this.m11x_1 = onProgress; } protoOf($invokeCOROUTINE$90).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 9; this.n11x_1 = randomUuid().toString(); this.id_1 = 1; continue $sm; case 1: this.id_1 = 2; continue $sm; case 2: this.jd_1 = 8; this.p11x_1 = until(0, 3).w(); this.id_1 = 3; continue $sm; case 3: if (!this.p11x_1.f()) { this.id_1 = 6; continue $sm; } this.q11x_1 = this.p11x_1.e(); this.r11x_1 = this.i11x_1.v11x_1; this.s11x_1 = this.l11x_1.cnu_1 + 'api/contentupload/upload'; var tmp_0 = this; var this_0 = LinkedHashMap_init_$Create$(); if (!(this.k11x_1 == null)) { this_0.s('upload-original-filename', listOf_0(encodeURIComponent(this.k11x_1))); } tmp_0.t11x_1 = asIStringValues(this_0.f3()); this.id_1 = 4; var tmp_1 = new Long(0, 0); suspendResult = this.r11x_1.lpo(this.n11x_1, this.j11x_1, this.s11x_1, tmp_1, VOID, ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda(this.m11x_1), VOID, this.t11x_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var finalResponse = suspendResult; var tmp4_subject = finalResponse.ipo_1; if (tmp4_subject === 400) { var tmp5_elvis_lhs = finalResponse.hpo_1; throw new InvalidContentException(tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs); } else if (tmp4_subject === 406) { var tmp6_elvis_lhs = finalResponse.hpo_1; throw new UnsupportedContentException(tmp6_elvis_lhs == null ? '' : tmp6_elvis_lhs); } var tmp_2 = this; var tmp7_safe_receiver = finalResponse.hpo_1; var tmp_3; if (tmp7_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = this.i11x_1.u11x_1.t45(Companion_instance_80.o4r(), tmp7_safe_receiver); } var tmp8_elvis_lhs = tmp_3; var tmp_4; if (tmp8_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Final response had no body'); } else { tmp_4 = tmp8_elvis_lhs; } tmp_2.o11x_1 = tmp_4; this.jd_1 = 9; this.id_1 = 5; continue $sm; case 5: var tmp_5 = this.o11x_1; this.jd_1 = 9; URL.revokeObjectURL(this.j11x_1.toString()); return tmp_5; case 6: var tmp_6 = this; throw IllegalStateException_init_$Create$('Retried upload 3 times... failed.'); case 7: this.jd_1 = 9; URL.revokeObjectURL(this.j11x_1.toString()); return Unit_instance; case 8: this.jd_1 = 9; var t = this.ld_1; URL.revokeObjectURL(this.j11x_1.toString()); throw t; case 9: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 9) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ContentEntryGetMetaDataFromUriUseCaseJs(json, chunkedUploadClientLocalUriUseCase) { this.u11x_1 = json; this.v11x_1 = chunkedUploadClientLocalUriUseCase; } protoOf(ContentEntryGetMetaDataFromUriUseCaseJs).np3 = function (contentUri, fileName, learningSpace, onProgress, $completion) { var tmp = new $invokeCOROUTINE$90(this, contentUri, fileName, learningSpace, onProgress, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function $invokeCOROUTINE$91(_this__u8e3s4, subtitleTrackUri, filename, locale, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.e11y_1 = _this__u8e3s4; this.f11y_1 = subtitleTrackUri; this.g11y_1 = filename; this.h11y_1 = locale; } protoOf($invokeCOROUTINE$91).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 8; this.jd_1 = 4; this.id_1 = 1; suspendResult = fetch_0(toString(this.f11y_1.r72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.j11y_1 = suspendResult; this.k11y_1 = this.j11y_1.blob(); this.id_1 = 2; var this_0 = this.k11y_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.l11y_1 = suspendResult; this.m11y_1 = this.l11y_1.text(); this.id_1 = 3; var this_1 = this.m11y_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.i11y_1 = suspendResult; this.jd_1 = 8; this.id_1 = 5; continue $sm; case 4: this.jd_1 = 8; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { this.n11y_1 = this.ld_1; var tmp_1 = this; Napier_getInstance().r5e('GetSubtitleTrackFromUriUseCaseJs: exception fetching local uri ' + this.f11y_1, this.n11y_1); throw IllegalStateException_init_$Create$_1('Failed to fetch blob for local uri ' + this.f11y_1, this.n11y_1); } else { throw this.ld_1; } case 5: this.jd_1 = 8; this.o11y_1 = this.i11y_1; var tmp_2 = this; tmp_2.p11y_1 = this.e11y_1.y11y_1; var tmp_3 = this; tmp_3.q11y_1 = this.e11y_1.x11y_1.cnu_1 + 'api/contentupload/getsubtitletrack'; var tmp_4 = this; tmp_4.r11y_1 = this.p11y_1; var tmp_5 = this; tmp_5.s11y_1 = this.r11y_1; var tmp_6 = this; var this_2 = new HttpRequestBuilder(); url(this_2, this.q11y_1); parameter(this_2, 'filename', this.g11y_1); var tmp0_elvis_lhs = this.h11y_1; parameter(this_2, 'locale', tmp0_elvis_lhs == null ? this.e11y_1.a11z_1.epn_1 : tmp0_elvis_lhs); var body = new TextContent(this.o11y_1, Companion_getInstance_16().p2r('text/vtt; charset=utf-8')); if (body == null) { this_2.z38_1 = NullBody_instance; var tmp_7 = JsType_instance; var tmp_8 = getKClass(TextContent); var tmp_9; try { tmp_9 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_10; if ($p instanceof Error) { var cause = $p; tmp_10 = null; } else { throw $p; } tmp_9 = tmp_10; } this_2.w3e(typeInfoImpl(tmp_7, tmp_8, tmp_9)); } else { if (body instanceof OutgoingContent) { this_2.z38_1 = body; this_2.w3e(null); } else { this_2.z38_1 = body; var tmp_11 = JsType_instance; var tmp_12 = getKClass(TextContent); var tmp_13; try { tmp_13 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_14; if ($p instanceof Error) { var cause_0 = $p; tmp_14 = null; } else { throw $p; } tmp_13 = tmp_14; } this_2.w3e(typeInfoImpl(tmp_11, tmp_12, tmp_13)); } } tmp_6.t11y_1 = this_2; this.t11y_1.x38_1 = Companion_getInstance().n2x_1; var tmp_15 = this; tmp_15.u11y_1 = this.s11y_1; var tmp_16 = this; tmp_16.v11y_1 = this.t11y_1; this.id_1 = 6; suspendResult = (new HttpStatement(this.v11y_1, this.u11y_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.w11y_1 = suspendResult; this.id_1 = 7; suspendResult = bodyAsText(this.w11y_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var subtitleJsonStr = suspendResult; return this.e11y_1.z11y_1.t45(Companion_instance_79.o4r(), subtitleJsonStr); case 8: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 8) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function GetSubtitleTrackFromUriUseCaseJs(endpoint, httpClient, json, supportedLanguagesConfig) { this.x11y_1 = endpoint; this.y11y_1 = httpClient; this.z11y_1 = json; this.a11z_1 = supportedLanguagesConfig; } protoOf(GetSubtitleTrackFromUriUseCaseJs).zp3 = function (subtitleTrackUri, filename, locale, $completion) { var tmp = new $invokeCOROUTINE$91(this, subtitleTrackUri, filename, locale, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function LaunchXapiUseCaseJs$invoke$lambda($resolveResult) { return function () { return 'LaunchXapiUseCaseJs: launching xapi in new windows: ' + $resolveResult.wp6_1; }; } function LaunchXapiUseCaseJs$invoke$lambda_0($resolveResult) { return function () { return 'LaunchXapiUseCaseJs: navigating to: ' + $resolveResult.wp6_1; }; } function $invokeCOROUTINE$92(_this__u8e3s4, contentEntryVersion, navController, clazzUid, cbUid, target, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.j11z_1 = _this__u8e3s4; this.k11z_1 = contentEntryVersion; this.l11z_1 = navController; this.m11z_1 = clazzUid; this.n11z_1 = cbUid; this.o11z_1 = target; } protoOf($invokeCOROUTINE$92).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.j11z_1.p11z_1.dpa(this.k11z_1.max_1, this.m11z_1, this.n11z_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var resolveResult = suspendResult; if (!this.o11z_1.equals(LinkTarget_TOP_getInstance())) { var tmp_0 = Napier_getInstance(); tmp_0.l5e(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda(resolveResult)); window.open(resolveResult.wp6_1, asWindowTarget(this.o11z_1), 'popup=true,noopener,noreferrer'); } else { var tmp_1 = Napier_getInstance(); tmp_1.l5e(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda_0(resolveResult)); location.href = resolveResult.wp6_1; } return new LaunchResult(); case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function LaunchXapiUseCaseJs(resolveXapiLaunchHrefUseCase) { this.p11z_1 = resolveXapiLaunchHrefUseCase; } protoOf(LaunchXapiUseCaseJs).sp6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp = new $invokeCOROUTINE$92(this, contentEntryVersion, navController, clazzUid, cbUid, target, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(LaunchXapiUseCaseJs).up6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.sp6(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function SetLanguageUseCaseJs(languagesConfig) { this.q11z_1 = languagesConfig; } protoOf(SetLanguageUseCaseJs).opi = function (uiLang, currentDestination, navController, navArgs) { var currentDisplayLang = this.q11z_1.epn_1; this.q11z_1.mq8(uiLang.cq5_1); var newDisplayLang = this.q11z_1.epn_1; if (!(currentDisplayLang === newDisplayLang)) { location.reload(); } return new SetLangResult(false); }; function invoke$lambda_3($makeLinkUseCase$delegate) { // Inline function 'kotlin.getValue' call getLocalDelegateReference('makeLinkUseCase', KProperty0, false, function () { return THROW_ISE(); }); return $makeLinkUseCase$delegate.t2(); } function GoToLearningSpaceUseCaseJs(di) { this.r11z_1 = di; } protoOf(GoToLearningSpaceUseCaseJs).qpi = function (url, navController, args, viewName) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = this.r11z_1; var context = new LearningSpace(url); var trigger = this_0.e57(); // Inline function 'org.kodein.di.diContext' call var tmp = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.i57(tmp$ret$0, context); var this_1 = On(this_0, tmp$ret$1, trigger); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(MakeLinkUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var makeLinkUseCase$delegate = Instance(this_1, tmp$ret$3, null).b5d(null, getLocalDelegateReference('makeLinkUseCase', KProperty0, false, function () { return THROW_ISE(); })); var finalUrl = invoke$lambda_3(makeLinkUseCase$delegate).tpi(viewName, args); location.href = finalUrl; }; function OpenExternalLinkUseCaseJs() { } protoOf(OpenExternalLinkUseCaseJs).qpj = function (url, target) { window.open(url, asWindowTarget(target)); }; function BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this$0, $text, $accountPersonUid, $onProgress, resultContinuation) { this.a120_1 = this$0; this.b120_1 = $text; this.c120_1 = $accountPersonUid; this.d120_1 = $onProgress; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).b121 = function ($this$coroutineScope, $completion) { var tmp = this.w1m($this$coroutineScope, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).ie = function (p1, $completion) { return this.b121((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 11; var tmp_0 = this; tmp_0.f120_1 = this.a120_1.c121_1; var tmp_1 = this; tmp_1.g120_1 = this.a120_1.d121_1.cnu_1 + 'api/person/bulkadd/enqueue'; var tmp_2 = this; tmp_2.h120_1 = this.f120_1; var tmp_3 = this; tmp_3.i120_1 = this.h120_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.g120_1); var body = new TextContent(this.b120_1, Text_getInstance().r2s_1); if (body == null) { this_0.z38_1 = NullBody_instance; var tmp_5 = JsType_instance; var tmp_6 = getKClass(TextContent); var tmp_7; try { tmp_7 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_8; if ($p instanceof Error) { var cause = $p; tmp_8 = null; } else { throw $p; } tmp_7 = tmp_8; } this_0.w3e(typeInfoImpl(tmp_5, tmp_6, tmp_7)); } else { if (body instanceof OutgoingContent) { this_0.z38_1 = body; this_0.w3e(null); } else { this_0.z38_1 = body; var tmp_9 = JsType_instance; var tmp_10 = getKClass(TextContent); var tmp_11; try { tmp_11 = createKType(getKClass(TextContent), arrayOf([]), false); } catch ($p) { var tmp_12; if ($p instanceof Error) { var cause_0 = $p; tmp_12 = null; } else { throw $p; } tmp_11 = tmp_12; } this_0.w3e(typeInfoImpl(tmp_9, tmp_10, tmp_11)); } } parameter(this_0, 'accountPersonUid', this.c120_1.toString()); var tmp_13 = this.a120_1.f121_1; doorNodeAndVersionHeaders(this_0, isInterface(tmp_13, DoorDatabaseRepository) ? tmp_13 : THROW_CCE()); tmp_4.j120_1 = this_0; this.j120_1.x38_1 = Companion_getInstance().n2x_1; var tmp_14 = this; tmp_14.k120_1 = this.i120_1; var tmp_15 = this; tmp_15.l120_1 = this.j120_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.l120_1, this.k120_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.m120_1 = suspendResult; this.id_1 = 2; suspendResult = bodyAsText(this.m120_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.n120_1 = suspendResult; this.o120_1 = toLong_0(this.n120_1); this.id_1 = 3; continue $sm; case 3: if (!get_isActive(this.e120_1)) { this.id_1 = 10; continue $sm; } this.jd_1 = 7; var tmp_16 = this; tmp_16.p120_1 = this.a120_1.c121_1; var tmp_17 = this; tmp_17.q120_1 = this.a120_1.d121_1.cnu_1 + 'api/person/bulkadd/status'; var tmp_18 = this; tmp_18.r120_1 = this.p120_1; var tmp_19 = this; tmp_19.s120_1 = this.r120_1; var tmp_20 = this; var this_1 = new HttpRequestBuilder(); url(this_1, this.q120_1); parameter(this_1, 'timestamp', this.o120_1.toString()); tmp_20.t120_1 = this_1; this.t120_1.x38_1 = Companion_getInstance().m2x_1; var tmp_21 = this; tmp_21.u120_1 = this.s120_1; var tmp_22 = this; tmp_22.v120_1 = this.t120_1; this.id_1 = 4; suspendResult = (new HttpStatement(this.v120_1, this.u120_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.w120_1 = suspendResult; if (this.w120_1.k3b().g30_1 === 200) { var tmp_23 = this; tmp_23.x120_1 = this.a120_1.e121_1; this.id_1 = 5; suspendResult = bodyAsText(this.w120_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.id_1 = 6; continue $sm; } case 5: this.y120_1 = suspendResult; var tmp_24 = this; var this_2 = this.x120_1.u45(); var this_3 = serializer(this_2, createKType(getKClass(BulkAddPersonRunImportUiState), arrayOf([]), false)); tmp_24.z120_1 = this.x120_1.t45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.y120_1); if (this.z120_1.xz2_1) { this.d120_1.gz3(this.z120_1.zz2_1, this.z120_1.yz2_1); } else { if (this.z120_1.pu6()) { throw new BulkAddPersonException(this.z120_1.bz3_1, this.z120_1.az3_1); } return new BulkAddUsersResult(this.z120_1.zz2_1); } this.id_1 = 6; continue $sm; case 6: this.jd_1 = 11; this.id_1 = 8; continue $sm; case 7: this.jd_1 = 11; var tmp_25 = this.ld_1; if (tmp_25 instanceof Error) { this.a121_1 = this.ld_1; Napier_getInstance().n5e('BulkAddPersonFromLocalUriUseCaseJs exception', this.a121_1); var tmp_26 = this.a121_1; if (tmp_26 instanceof BulkAddPersonException) throw this.a121_1; this.id_1 = 8; continue $sm; } else { throw this.ld_1; } case 8: this.jd_1 = 11; this.id_1 = 9; suspendResult = delay(new Long(1000, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.id_1 = 3; continue $sm; case 10: throw IllegalStateException_init_$Create$('Should not get here'); case 11: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 11) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).w1m = function ($this$coroutineScope, completion) { var i = new BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this.a120_1, this.b120_1, this.c120_1, this.d120_1, completion); i.e120_1 = $this$coroutineScope; return i; }; function BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda_0(this$0, $text, $accountPersonUid, $onProgress, resultContinuation) { var i = new BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this$0, $text, $accountPersonUid, $onProgress, resultContinuation); var l = function ($this$coroutineScope, $completion) { return i.b121($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$93(_this__u8e3s4, uri, accountPersonUid, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.o121_1 = _this__u8e3s4; this.p121_1 = uri; this.q121_1 = accountPersonUid; this.r121_1 = onProgress; } protoOf($invokeCOROUTINE$93).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 4; console.log('Getting csv text'); this.id_1 = 1; suspendResult = fetch_0(this.p121_1.toString(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.s121_1 = suspendResult; this.t121_1 = this.s121_1.text(); this.id_1 = 2; var this_0 = this.t121_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.u121_1 = suspendResult; console.log('csv text = ' + this.u121_1); this.id_1 = 3; suspendResult = coroutineScope(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda_0(this.o121_1, this.u121_1, this.q121_1, this.r121_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return suspendResult; case 4: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 4) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function BulkAddPersonsFromLocalUriUseCaseJs(httpClient, learningSpace, json, repo) { this.c121_1 = httpClient; this.d121_1 = learningSpace; this.e121_1 = json; this.f121_1 = repo; } protoOf(BulkAddPersonsFromLocalUriUseCaseJs).gpm = function (uri, accountPersonUid, onProgress, $completion) { var tmp = new $invokeCOROUTINE$93(this, uri, accountPersonUid, onProgress, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function OnClickPhoneNumUseCaseJs() { } protoOf(OnClickPhoneNumUseCaseJs).yp1 = function (number) { var tmp = window; var tmp_0 = 'tel:' + number; // Inline function 'web.window.WindowTarget.Companion._blank' call 0; tmp.open(tmp_0, '_blank'); }; function PhoneNumValidatorUseCaseJs() { } protoOf(PhoneNumValidatorUseCaseJs).kph = function (phoneNumber) { var tmp; try { tmp = parsePhoneNumber(phoneNumber, null, null).isValid(); } catch ($p) { var tmp_0; if ($p instanceof Error) { var e = $p; tmp_0 = false; } else { throw $p; } tmp = tmp_0; } return tmp; }; function PhoneNumberJs(phoneNumber) { this.v121_1 = phoneNumber; } function PhoneNumberUtilJs() { } protoOf(PhoneNumberUtilJs).kpm = function (numberToParse, defaultRegion) { return new PhoneNumberJs(parsePhoneNumber(numberToParse, defaultRegion, null)); }; protoOf(PhoneNumberUtilJs).lpm = function (number) { return (number instanceof PhoneNumberJs ? number : THROW_CCE()).v121_1.formatInternational(); }; function OnClickSendEmailUseCaseJs() { } protoOf(OnClickSendEmailUseCaseJs).yp1 = function (emailAddr) { var tmp = window; var tmp_0 = 'mailto:' + emailAddr; // Inline function 'web.window.WindowTarget.Companion._blank' call 0; tmp.open(tmp_0, '_blank'); }; function DeleteUrisUseCaseJs$invoke$lambda($uri) { return function () { return 'DeleteUrisUseCase: deleting (revoking) ' + $uri; }; } function DeleteUrisUseCaseJs(isTempFileCheckerUseCase) { this.w121_1 = isTempFileCheckerUseCase; } protoOf(DeleteUrisUseCaseJs).fou = function (uris, onlyIfTemp, $completion) { // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = uris.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.tmpfiles.DeleteUrisUseCaseJs.invoke.' call if (!onlyIfTemp ? true : this.w121_1.wp9(element)) { var tmp = Napier_getInstance(); tmp.l5e(VOID, VOID, DeleteUrisUseCaseJs$invoke$lambda(element)); URL.revokeObjectURL(element); } } return Unit_instance; }; function IsTempFileCheckerUseCaseJs() { } protoOf(IsTempFileCheckerUseCaseJs).wp9 = function (uri) { return startsWith(uri, 'blob:'); }; function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.apo_1; }; } function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.apo_1 + ' complete '; }; } function $invokeCOROUTINE$94(_this__u8e3s4, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.f122_1 = _this__u8e3s4; this.g122_1 = uploadUuid; this.h122_1 = localUri; this.i122_1 = remoteUrl; this.j122_1 = fromByte; this.k122_1 = chunkSize; this.l122_1 = onProgress; this.m122_1 = onStatusChange; this.n122_1 = lastChunkHeaders; } protoOf($invokeCOROUTINE$94).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 14; this.o122_1 = 'ChunkedUploadClientLocalUriUseCaseJs (' + this.g122_1 + ') : ' + this.h122_1 + ' -> ' + this.i122_1 + ':'; this.jd_1 = 13; Napier_getInstance().j5e(this.o122_1 + ' : starting'); this.jd_1 = 3; this.id_1 = 1; suspendResult = fetch_0(toString(this.h122_1.r72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.q122_1 = suspendResult; this.r122_1 = this.q122_1.blob(); this.id_1 = 2; var this_0 = this.r122_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.p122_1 = suspendResult; this.jd_1 = 13; this.id_1 = 4; continue $sm; case 3: this.jd_1 = 13; var tmp_0 = this.ld_1; if (tmp_0 instanceof Error) { this.s122_1 = this.ld_1; var tmp_1 = this; Napier_getInstance().r5e(this.o122_1 + ' exception fetching local uri ' + this.h122_1, this.s122_1); throw IllegalStateException_init_$Create$_1(this.o122_1 + ': failed to fetch blob for local uri ' + this.h122_1.r72_1, this.s122_1); } else { throw this.ld_1; } case 4: this.jd_1 = 13; this.t122_1 = this.p122_1; this.u122_1 = this.t122_1.size; if (this.u122_1 <= 0.0) throw IllegalArgumentException_init_$Create$('Upload size <= 0'); this.v122_1 = new ChunkInfo(numberToLong(this.u122_1), this.k122_1, this.j122_1); if (this.u122_1 >= IntCompanionObject_instance.MAX_VALUE) throw IllegalArgumentException_init_$Create$('JS: upload size(' + numberToLong(this.u122_1).toString() + ') > ' + IntCompanionObject_instance.MAX_VALUE + ' not supported'); this.m122_1(TransferJobItemStatus_IN_PROGRESS_getInstance()); var tmp_2 = this; tmp_2.w122_1 = this.v122_1; this.x122_1 = 0; this.y122_1 = this.w122_1.w(); this.id_1 = 5; continue $sm; case 5: if (!this.y122_1.f()) { this.id_1 = 12; continue $sm; } this.z122_1 = this.y122_1.e(); var tmp_3 = this; var tmp1 = this.x122_1; this.x122_1 = tmp1 + 1 | 0; tmp_3.a123_1 = checkIndexOverflow(tmp1); var tmp_4 = this; tmp_4.b123_1 = this.z122_1; var tmp_5 = Napier_getInstance(); tmp_5.f5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda(this.o122_1, this.a123_1, this.v122_1)); this.c123_1 = this.t122_1.slice(this.b123_1.bpo_1.a7(), this.b123_1.cpo_1.a7()); this.jd_1 = 7; var tmp_6 = this; var this_1 = {}; this_1.body = this.c123_1; this_1.method = 'POST'; var this_2 = new Headers(); this_2.set(get_HEADER_UPLOAD_UUID(), this.g122_1); this_2.set(get_HEADER_IS_FINAL_CHUNK(), this.b123_1.dpo_1.toString()); this_2.set(get_HEADER_UPLOAD_START_BYTE(), this.b123_1.bpo_1.toString()); if (this.b123_1.dpo_1 ? !(this.n122_1 == null) : false) { var tmp0_iterator = this.n122_1.p2n().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_iterator_0 = this.n122_1.o2n(element).w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); this_2.append(element, element_0); } } } this_1.headers = this_2; tmp_6.e123_1 = fetch(this.i122_1, this_1); this.id_1 = 6; var this_3 = this.e123_1; suspendResult = await_0(this_3, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.d123_1 = suspendResult; this.jd_1 = 13; this.id_1 = 8; continue $sm; case 7: this.jd_1 = 13; var tmp_7 = this.ld_1; if (tmp_7 instanceof Error) { this.f123_1 = this.ld_1; var tmp_8 = this; Napier_getInstance().r5e(this.o122_1 + ' exception fetching response for blob upload ' + ('fromByte=' + this.v122_1.ypn_1.toString()), this.f123_1); throw IllegalStateException_init_$Create$_1(this.o122_1 + ' exception fetching response for blob upload ', this.f123_1); } else { throw this.ld_1; } case 8: this.jd_1 = 13; this.g123_1 = this.d123_1; var tmp_9 = Napier_getInstance(); tmp_9.f5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0(this.o122_1, this.a123_1, this.v122_1)); this.l122_1(new UploadProgress(this.b123_1.cpo_1, numberToLong(this.u122_1))); if (this.b123_1.dpo_1) { this.m122_1(TransferJobItemStatus_COMPLETE_getInstance()); Napier_getInstance().j5e(this.o122_1 + ': Complete!'); if (!(this.g123_1.status === 204)) { var tmp_10 = this; tmp_10.i123_1 = this.g123_1.text(); this.id_1 = 10; var this_4 = this.i123_1; suspendResult = await_0(this_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_11 = this; tmp_11.h123_1 = null; this.id_1 = 11; continue $sm; } } else { this.id_1 = 9; continue $sm; } case 9: this.id_1 = 5; continue $sm; case 10: this.h123_1 = suspendResult; this.id_1 = 11; continue $sm; case 11: var ARGUMENT = this.h123_1; return new LastChunkResponse(ARGUMENT, this.g123_1.status, asIStringValues_0(this.g123_1.headers)); case 12: throw IllegalStateException_init_$Create$(this.o122_1 + ' should have returned with last chunk'); case 13: this.jd_1 = 14; var tmp_12 = this.ld_1; if (tmp_12 instanceof Error) { var e = this.ld_1; Napier_getInstance().r5e(this.o122_1 + ', ChunkedUploadClientLocalUriUseCaseJs: Exception', e); this.m122_1(TransferJobItemStatus_FAILED_getInstance()); throw e; } else { throw this.ld_1; } case 14: throw this.ld_1; case 15: this.jd_1 = 14; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.jd_1 === 14) { throw e_0; } else { this.id_1 = this.jd_1; this.ld_1 = e_0; } } while (true); }; function ChunkedUploadClientLocalUriUseCaseJs() { } protoOf(ChunkedUploadClientLocalUriUseCaseJs).kpo = function (uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) { var tmp = new $invokeCOROUTINE$94(this, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function SaveStatementOnClearUseCaseJs$invoke$slambda(this$0, $statements, $xapiSession, resultContinuation) { this.r123_1 = this$0; this.s123_1 = $statements; this.t123_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.r123_1.v123_1.col(this.s123_1, this.t123_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).w1m = function ($this$launch, completion) { var i = new SaveStatementOnClearUseCaseJs$invoke$slambda(this.r123_1, this.s123_1, this.t123_1, completion); i.u123_1 = $this$launch; return i; }; function SaveStatementOnClearUseCaseJs$invoke$slambda_0(this$0, $statements, $xapiSession, resultContinuation) { var i = new SaveStatementOnClearUseCaseJs$invoke$slambda(this$0, $statements, $xapiSession, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function SaveStatementOnClearUseCaseJs(xapiStatementResource) { this.v123_1 = xapiStatementResource; } protoOf(SaveStatementOnClearUseCaseJs).cq4 = function (statements, xapiSession) { var tmp = GlobalScope_instance; launch(tmp, VOID, VOID, SaveStatementOnClearUseCaseJs$invoke$slambda_0(this, statements, xapiSession, null)); }; function SaveStatementOnUnloadUseCaseJs(learningSpace, json) { this.w123_1 = learningSpace; this.x123_1 = json; } protoOf(SaveStatementOnUnloadUseCaseJs).cq4 = function (statements, xapiSession) { var tmp = navigator; var tmp_0 = this.w123_1.cnu_1 + 'api/xapi-ext/statementOnUnload'; // Inline function 'web.http.BodyInit' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = this.x123_1.s45(Companion_getInstance_95().o4r(), new XapiStatementsAndSession(statements, xapiSession)); tmp.sendBeacon(tmp_0, tmp$ret$2); }; function $invokeCOROUTINE$95(_this__u8e3s4, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.g124_1 = _this__u8e3s4; this.h124_1 = accountPersonUid; this.i124_1 = actor; this.j124_1 = activityId; this.k124_1 = clazzUid; this.l124_1 = cbUid; this.m124_1 = contentEntryUid; this.n124_1 = contentEntryVersionUid; } protoOf($invokeCOROUTINE$95).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; var tmp_0 = this; tmp_0.o124_1 = this.g124_1.x124_1; var tmp_1 = this; tmp_1.p124_1 = this.g124_1.w124_1.cnu_1 + 'api/xapi-ext/resumeOrStartSession'; var tmp_2 = this; tmp_2.q124_1 = this.o124_1; var tmp_3 = this; tmp_3.r124_1 = this.q124_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.p124_1); var tmp_5 = this.g124_1.y124_1; doorNodeIdHeader(this_0, isInterface(tmp_5, DoorDatabaseRepository) ? tmp_5 : THROW_CCE()); parameter(this_0, 'accountPersonUid', this.h124_1.toString()); parameter(this_0, 'actor', this.g124_1.z124_1.s45(Companion_instance_111.o4r(), this.i124_1)); parameter(this_0, 'activityId', this.j124_1); parameter(this_0, 'clazzUid', this.k124_1.toString()); parameter(this_0, 'cbUid', this.l124_1.toString()); parameter(this_0, 'contentEntryUid', this.m124_1.toString()); parameter(this_0, 'contentEntryVersionUid', this.n124_1.toString()); tmp_4.s124_1 = this_0; this.s124_1.x38_1 = Companion_getInstance().n2x_1; var tmp_6 = this; tmp_6.t124_1 = this.r124_1; var tmp_7 = this; tmp_7.u124_1 = this.s124_1; this.id_1 = 1; suspendResult = (new HttpStatement(this.u124_1, this.t124_1)).i3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.v124_1 = suspendResult; this.id_1 = 2; var tmp_8 = this.v124_1.f3c(); var tmp_9 = JsType_instance; var tmp_10 = getKClass(XapiSessionEntity); var tmp_11; try { tmp_11 = createKType(getKClass(XapiSessionEntity), arrayOf([]), false); } catch ($p) { var tmp_12; if ($p instanceof Error) { var cause = $p; tmp_12 = null; } else { throw $p; } tmp_11 = tmp_12; } suspendResult = tmp_8.i3b(typeInfoImpl(tmp_9, tmp_10, tmp_11), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var result = suspendResult instanceof XapiSessionEntity ? suspendResult : THROW_CCE(); return result; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; function ResumeOrStartXapiSessionUseCaseJs(learningSpace, httpClient, repo, xapiJson) { this.w124_1 = learningSpace; this.x124_1 = httpClient; this.y124_1 = repo; this.z124_1 = xapiJson.cps_1; } protoOf(ResumeOrStartXapiSessionUseCaseJs).vp9 = function (accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion) { var tmp = new $invokeCOROUTINE$95(this, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; function collectAsState(_this__u8e3s4, initialState, dispatcher) { dispatcher = dispatcher === VOID ? Dispatchers_getInstance().u12() : dispatcher; var state = useState_0(collectAsState$lambda(initialState)); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = [_this__u8e3s4, dispatcher].slice(); useEffect(tmp, collectAsState$lambda_0(dispatcher, _this__u8e3s4, state)); return state; } function collectAsState$lambda($initialState) { return function () { return $initialState; }; } function sam$kotlinx_coroutines_flow_FlowCollector$0_42(function_0) { this.a125_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_42).u1d = function (value, $completion) { return this.a125_1(value, $completion); }; function collectAsState$lambda$slambda$slambda($state, resultContinuation) { this.j125_1 = $state; CoroutineImpl.call(this, resultContinuation); } protoOf(collectAsState$lambda$slambda$slambda).f1o = function (it, $completion) { var tmp = this.g1o(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(collectAsState$lambda$slambda$slambda).ie = function (p1, $completion) { return this.f1o((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion); }; protoOf(collectAsState$lambda$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; this.j125_1[1](this.k125_1); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(collectAsState$lambda$slambda$slambda).g1o = function (it, completion) { var i = new collectAsState$lambda$slambda$slambda(this.j125_1, completion); i.k125_1 = it; return i; }; function collectAsState$lambda$slambda$slambda_0($state, resultContinuation) { var i = new collectAsState$lambda$slambda$slambda($state, resultContinuation); var l = function (it, $completion) { return i.f1o(it, $completion); }; l.$arity = 1; return l; } function collectAsState$lambda$slambda($this_collectAsState, $state, resultContinuation) { this.t125_1 = $this_collectAsState; this.u125_1 = $state; CoroutineImpl.call(this, resultContinuation); } protoOf(collectAsState$lambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(collectAsState$lambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(collectAsState$lambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; var tmp_0 = collectAsState$lambda$slambda$slambda_0(this.u125_1, null); suspendResult = this.t125_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_42(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(collectAsState$lambda$slambda).w1m = function ($this$launch, completion) { var i = new collectAsState$lambda$slambda(this.t125_1, this.u125_1, completion); i.v125_1 = $this$launch; return i; }; function collectAsState$lambda$slambda_0($this_collectAsState, $state, resultContinuation) { var i = new collectAsState$lambda$slambda($this_collectAsState, $state, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function collectAsState$lambda$lambda($coroutineScope) { return function () { cancel($coroutineScope); return Unit_instance; }; } function collectAsState$lambda_0($dispatcher, $this_collectAsState, $state) { return function ($this$useEffect) { var coroutineScope = CoroutineScope_0(Dispatchers_getInstance().u12().mj(Job())); launch(coroutineScope, $dispatcher, VOID, collectAsState$lambda$slambda_0($this_collectAsState, $state, null)); $this$useEffect.push(collectAsState$lambda$lambda(coroutineScope)); return Unit_instance; }; } function useOnUnloadEffect(block) { // Inline function 'kotlin.emptyArray' call var tmp = [].slice(); useEffect(tmp, useOnUnloadEffect$lambda(block)); } function useOnUnloadEffect$lambda$lambda($block) { return function (it) { $block(); return Unit_instance; }; } function useOnUnloadEffect$lambda$lambda_0($evtListener) { return function () { window.removeEventListener('beforeunload', $evtListener); return Unit_instance; }; } function useOnUnloadEffect$lambda($block) { return function ($this$useEffect) { var evtListener = useOnUnloadEffect$lambda$lambda($block); window.addEventListener('beforeunload', evtListener); $this$useEffect.push(useOnUnloadEffect$lambda$lambda_0(evtListener)); return Unit_instance; }; } function useLaunchedEffect(dependencies, block) { var tmp = dependencies.slice(); useEffect(tmp, useLaunchedEffect$lambda(block)); } function useCoroutineScope(dependencies) { // Inline function 'react.useMemo' call var dependencies_0 = dependencies.slice(); var callback = useCoroutineScope$lambda; var coroutineScope = useMemo(callback, dependencies_0); var tmp = dependencies.slice(); useEffect(tmp, useCoroutineScope$lambda_0(coroutineScope)); return coroutineScope; } function useLaunchedEffect$lambda$slambda($block, resultContinuation) { this.e126_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(useLaunchedEffect$lambda$slambda).v1m = function ($this$launch, $completion) { var tmp = this.w1m($this$launch, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(useLaunchedEffect$lambda$slambda).ie = function (p1, $completion) { return this.v1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(useLaunchedEffect$lambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 2; this.id_1 = 1; suspendResult = this.e126_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 2) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(useLaunchedEffect$lambda$slambda).w1m = function ($this$launch, completion) { var i = new useLaunchedEffect$lambda$slambda(this.e126_1, completion); i.f126_1 = $this$launch; return i; }; function useLaunchedEffect$lambda$slambda_0($block, resultContinuation) { var i = new useLaunchedEffect$lambda$slambda($block, resultContinuation); var l = function ($this$launch, $completion) { return i.v1m($this$launch, $completion); }; l.$arity = 1; return l; } function useLaunchedEffect$lambda$lambda($coroutineScope) { return function () { cancel($coroutineScope); return Unit_instance; }; } function useLaunchedEffect$lambda($block) { return function ($this$useEffect) { var coroutineScope = CoroutineScope_0(Dispatchers_getInstance().u12().mj(Job())); launch(coroutineScope, VOID, VOID, useLaunchedEffect$lambda$slambda_0($block, null)); $this$useEffect.push(useLaunchedEffect$lambda$lambda(coroutineScope)); return Unit_instance; }; } function useCoroutineScope$lambda() { return CoroutineScope_0(Dispatchers_getInstance().u12().mj(Job())); } function useCoroutineScope$lambda$lambda($coroutineScope) { return function () { cancel($coroutineScope); return Unit_instance; }; } function useCoroutineScope$lambda_0($coroutineScope) { return function ($this$useEffect) { $this$useEffect.push(useCoroutineScope$lambda$lambda($coroutineScope)); return Unit_instance; }; } function get_ustadViewName(_this__u8e3s4) { // Inline function 'kotlin.text.trim' call var this_0 = removePrefix(_this__u8e3s4.pathname, '/'); return toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); } function useNavControllerEffect(commandFlow) { var navHostFn = useRequiredContext(get_NavHostContext()); useLaunchedEffect([commandFlow], useNavControllerEffect$slambda_0(commandFlow, navHostFn, null)); } function sam$kotlinx_coroutines_flow_FlowCollector$0_43(function_0) { this.g126_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_43).u1d = function (value, $completion) { return this.g126_1(value, $completion); }; function useNavControllerEffect$slambda$slambda($navHostFn, resultContinuation) { this.p126_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda$slambda).r126 = function (it, $completion) { var tmp = this.s126(it, $completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(useNavControllerEffect$slambda$slambda).ie = function (p1, $completion) { return this.r126(p1 instanceof NavCommand ? p1 : THROW_CCE(), $completion); }; protoOf(useNavControllerEffect$slambda$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; if (tmp === 0) { this.jd_1 = 1; Napier_getInstance().j5e('useNavControllerEffect: collect command: ' + this.q126_1); this.p126_1.g11q(this.q126_1); return Unit_instance; } else if (tmp === 1) { throw this.ld_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(useNavControllerEffect$slambda$slambda).s126 = function (it, completion) { var i = new useNavControllerEffect$slambda$slambda(this.p126_1, completion); i.q126_1 = it; return i; }; function useNavControllerEffect$slambda$slambda_0($navHostFn, resultContinuation) { var i = new useNavControllerEffect$slambda$slambda($navHostFn, resultContinuation); var l = function (it, $completion) { return i.r126(it, $completion); }; l.$arity = 1; return l; } function useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation) { this.b127_1 = $commandFlow; this.c127_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda).k87 = function ($completion) { var tmp = this.m78($completion); tmp.kd_1 = Unit_instance; tmp.ld_1 = null; return tmp.vd(); }; protoOf(useNavControllerEffect$slambda).n78 = function ($completion) { return this.k87($completion); }; protoOf(useNavControllerEffect$slambda).vd = function () { var suspendResult = this.kd_1; $sm: do try { var tmp = this.id_1; switch (tmp) { case 0: this.jd_1 = 3; this.d127_1 = this.b127_1; if (this.d127_1 == null) { this.e127_1 = null; this.id_1 = 2; continue $sm; } else { this.id_1 = 1; var tmp_0 = useNavControllerEffect$slambda$slambda_0(this.c127_1, null); suspendResult = this.d127_1.b1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_43(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.e127_1 = Unit_instance; this.id_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.ld_1; } } catch ($p) { var e = $p; if (this.jd_1 === 3) { throw e; } else { this.id_1 = this.jd_1; this.ld_1 = e; } } while (true); }; protoOf(useNavControllerEffect$slambda).m78 = function (completion) { return new useNavControllerEffect$slambda(this.b127_1, this.c127_1, completion); }; function useNavControllerEffect$slambda_0($commandFlow, $navHostFn, resultContinuation) { var i = new useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation); var l = function ($completion) { return i.k87($completion); }; l.$arity = 0; return l; } function useStringProvider() { var di = useRequiredContext(get_DIContext()); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(di).g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(StringProviderJs), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var stringProvider = tmp.e58(tmp$ret$0, null); // Inline function 'react.useMemo' call // Inline function 'kotlin.emptyArray' call var dependencies = [].slice(); var callback = useStringProvider$lambda(stringProvider); return useMemo(callback, dependencies); } function useStringProvider$lambda($stringProvider) { return function () { return $stringProvider; }; } function useViewModel(overrideSearchParams, viewModelFactory) { overrideSearchParams = overrideSearchParams === VOID ? null : overrideSearchParams; // Inline function 'js.array.JsTuple1.component1' call // Inline function 'kotlin.js.asDynamic' call var searchParams = useSearchParams()[0]; var locationKey = useLocation().key; var viewModelAndKey$delegate = useState_0(useViewModel$lambda_1(overrideSearchParams, searchParams, viewModelFactory, locationKey)); useEffect([locationKey], useViewModel$lambda_2(locationKey, viewModelFactory, searchParams, viewModelAndKey$delegate)); return useViewModel$lambda(viewModelAndKey$delegate).f127_1; } function ViewModelAndKey(viewModel, locationKey) { this.f127_1 = viewModel; this.g127_1 = locationKey; } protoOf(ViewModelAndKey).toString = function () { return 'ViewModelAndKey(viewModel=' + this.f127_1 + ', locationKey=' + this.g127_1 + ')'; }; protoOf(ViewModelAndKey).hashCode = function () { var result = hashCode(this.f127_1); result = imul(result, 31) + getStringHashCode(this.g127_1) | 0; return result; }; protoOf(ViewModelAndKey).equals = function (other) { if (this === other) return true; if (!(other instanceof ViewModelAndKey)) return false; var tmp0_other_with_cast = other instanceof ViewModelAndKey ? other : THROW_CCE(); if (!equals(this.f127_1, tmp0_other_with_cast.f127_1)) return false; if (!(this.g127_1 === tmp0_other_with_cast.g127_1)) return false; return true; }; function useViewModel$lambda($viewModelAndKey$delegate) { // Inline function 'react.StateInstance.getValue' call getLocalDelegateReference('viewModelAndKey', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return $viewModelAndKey$delegate[0]; } function useViewModel$lambda_0($viewModelAndKey$delegate, value) { getLocalDelegateReference('viewModelAndKey', KMutableProperty0, true, function () { return THROW_ISE(); }); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call $viewModelAndKey$delegate[1](value); return Unit_instance; } function useViewModel$lambda_1($overrideSearchParams, $searchParams, $viewModelFactory, $locationKey) { return function () { var tmp = window.history; var tmp0_elvis_lhs = $overrideSearchParams; var savedStateHandle = new SavedStateHandle2(tmp, tmp0_elvis_lhs == null ? $searchParams : tmp0_elvis_lhs); // Inline function 'kotlin.also' call var this_0 = new ViewModelAndKey($viewModelFactory(savedStateHandle), $locationKey); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.hooks.useViewModel..' call Napier_getInstance().j5e('Creating ViewModel: ' + getKClassFromExpression(this_0.f127_1).f7()); return this_0; }; } function useViewModel$lambda$lambda($viewModelAndKey$delegate) { return function () { Napier_getInstance().j5e('Close ViewModel: ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).f127_1).f7()); useViewModel$lambda($viewModelAndKey$delegate).f127_1.n(); return Unit_instance; }; } function useViewModel$lambda_2($locationKey, $viewModelFactory, $searchParams, $viewModelAndKey$delegate) { return function ($this$useEffect) { var tmp; if (!(useViewModel$lambda($viewModelAndKey$delegate).g127_1 === $locationKey)) { useViewModel$lambda_0($viewModelAndKey$delegate, new ViewModelAndKey($viewModelFactory(new SavedStateHandle2(window.history, $searchParams)), $locationKey)); Napier_getInstance().j5e('Recreating ViewModel ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).f127_1).f7()); tmp = Unit_instance; } $this$useEffect.push(useViewModel$lambda$lambda($viewModelAndKey$delegate)); return Unit_instance; }; } function Companion_208() { } var Companion_instance_256; function Companion_getInstance_226() { return Companion_instance_256; } function UstadMobileSystemImpl(settings, langConfig, jsStringProvider) { UstadMobileSystemCommon.call(this, settings, langConfig); this.roj_1 = jsStringProvider; } protoOf(UstadMobileSystemImpl).soj = function (stringResource) { return stringResource.om8(this.roj_1, this.zq5_1.epn_1); }; protoOf(UstadMobileSystemImpl).toj = function (stringResource, args) { return stringResource.pm8(this.roj_1, this.zq5_1.epn_1, args.slice()); }; protoOf(UstadMobileSystemImpl).dws = function (pluralsResource, number) { return format(pluralsResource, number, [number]).tm8(this.roj_1); }; protoOf(UstadMobileSystemImpl).h127 = function (context, zip, $completion) { // Inline function 'kotlin.TODO' call var reason = 'not implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; protoOf(UstadMobileSystemImpl).getAppSetupFile = function (context, zip, $completion) { return this.h127(context, zip, $completion); }; protoOf(UstadMobileSystemImpl).i127 = function (viewName, args, context, flags, ustadGoOptions) { throw IllegalStateException_init_$Create$('Not supported on JS anymore!'); }; protoOf(UstadMobileSystemImpl).go = function (viewName, args, context, flags, ustadGoOptions) { return this.i127(viewName, args, context, flags, ustadGoOptions); }; function DomainDiModuleJs(endpointScope) { return Module_init_$Create$('DomainDiModuleJs', VOID, VOID, DomainDiModuleJs$lambda(endpointScope)); } function DomainDiModuleJs$lambda$lambda($this$provider) { var tmp = $this$provider.pd(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.e58(tmp$ret$2, null); return new EnqueueImportContentEntryUseCaseRemote(tmp, tmp_2, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_0($this$provider) { return new OpenExternalLinkUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_1($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UstadNavController), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.e58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp_7 = tmp_5.e58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_8 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); var tmp$ret$7 = tmp_8.e58(tmp$ret$6, null); return OnClickLinkUseCase_init_$Create$(tmp_1, tmp_4, tmp_7, tmp$ret$7); } function DomainDiModuleJs$lambda$lambda_2($this$singleton) { return new PhoneNumberUtilJs(); } function DomainDiModuleJs$lambda$lambda_3($this$provider) { return new PhoneNumValidatorUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_4($this$provider) { return new ValidateEmailUseCase(); } function DomainDiModuleJs$lambda$lambda_5($this$provider) { return new OnClickPhoneNumUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_6($this$provider) { return new OnClickSendEmailUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_7($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new SetLanguageUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_8($this$singleton) { return new ChunkedUploadClientLocalUriUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_9($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SavePictureUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new EnqueueSavePictureUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_10($this$singleton) { return new IsTempFileCheckerUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_11($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(IsTempFileCheckerUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new DeleteUrisUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_12($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.e58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp_7 = tmp_5.e58(tmp$ret$4, null).vk2_1; var tmp_8 = new CompressImageUseCaseJs(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(DeleteUrisUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp$ret$7 = tmp_9.e58(tmp$ret$6, null); return new SavePictureUseCase(tmp_1, null, tmp_4, tmp_7, tmp_8, tmp$ret$7); } function DomainDiModuleJs$lambda$lambda_13($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); var tmp_2 = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.e58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.e58(tmp$ret$4, 1); return new SaveLocalUrisAsBlobUseCaseJs(tmp_1, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_14($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new ContentEntryGetMetaDataFromUriUseCaseJs(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_15($this$provider) { var tmp = $this$provider.pd(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, null).xk2(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.e58(tmp$ret$2, null); return new SetPasswordUseCaseJs(tmp, tmp_2, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_16($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp0_activeRepoOrDb = tmp.e58(tmp$ret$0, null).yk2(); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp1_httpClient = tmp_1.e58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp2_json = tmp_3.e58(tmp$ret$4, null).cps_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XmlPullParserFactory), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp3_xppFactory = tmp_5.e58(tmp$ret$6, 1); var tmp4_learningSpace = $this$provider.pd(); // Inline function 'org.kodein.di.instance' call var tmp_7 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp5_resumeOrStartXapiSessionUseCase = tmp_7.e58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(UstadAccountManager), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp6_accountManager = tmp_9.e58(tmp$ret$10, null); // Inline function 'org.kodein.di.instance' call var tmp_11 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(GetApiUrlUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); var tmp7_getApiUrlUseCase = tmp_11.e58(tmp$ret$12, null); return new ResolveXapiLaunchHrefUseCase(tmp0_activeRepoOrDb, tmp1_httpClient, tmp2_json, tmp3_xppFactory, tmp5_resumeOrStartXapiSessionUseCase, tmp7_getApiUrlUseCase, tmp6_accountManager, tmp4_learningSpace); } function DomainDiModuleJs$lambda$lambda_17($this$singleton) { return new XapiJson(); } function DomainDiModuleJs$lambda$lambda_18($this$singleton) { return new GetApiUrlUseCaseDirect($this$singleton.pd()); } function DomainDiModuleJs$lambda$lambda_19($this$singleton) { var tmp = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.e58(tmp$ret$2, null).xk2(); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.e58(tmp$ret$4, null); return new ResumeOrStartXapiSessionUseCaseJs(tmp, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_20($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new LaunchXapiUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_21($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null).yk2(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new MoveContentEntriesUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_22($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new DeleteContentEntryParentChildJoinUseCase(tmp$ret$1.yk2()); } function DomainDiModuleJs$lambda$lambda_23($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new RestoreDeletedItemUseCase(tmp$ret$1.yk2()); } function DomainDiModuleJs$lambda$lambda_24($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new DeletePermanentlyUseCase(tmp$ret$1.yk2()); } function DomainDiModuleJs$lambda$lambda_25($this$singleton) { return new SetClipboardStringUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_26($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.e58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$5 = tmp_5.e58(tmp$ret$4, null); return new SaveAndUploadLocalUrisUseCase(tmp_1, null, tmp_4, tmp$ret$5.vk2_1); } function DomainDiModuleJs$lambda$lambda_27($this$provider) { return new OpenBlobUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_28($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(OpenBlobUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new OpenBlobUiUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_29($this$singleton) { var tmp = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp$ret$3 = tmp_3.e58(tmp$ret$2, null); return new CancelRemoteContentEntryImportUseCase(tmp, tmp_2, tmp$ret$3.xk2()); } function DomainDiModuleJs$lambda$lambda_30($this$singleton) { var tmp0_learningSpace = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp1_httpClient = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var tmp2_repo = tmp_1.e58(tmp$ret$2, null).xk2(); return new DismissRemoteContentEntryImportErrorUseCase(tmp1_httpClient, tmp0_learningSpace, tmp2_repo); } function DomainDiModuleJs$lambda$lambda_31($this$singleton) { return new XXStringHasherJs(); } function DomainDiModuleJs$lambda$lambda_32($this$singleton) { return new XXHasher64FactoryJs(); } function DomainDiModuleJs$lambda$lambda_33($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new StoreActivitiesUseCase(tmp_1, tmp$ret$3.vk2_1); } function DomainDiModuleJs$lambda$lambda_34($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.e58(tmp$ret$2, null).vk2_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp_7 = tmp_5.e58(tmp$ret$4, null); var tmp_8 = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_10 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp_11 = tmp_9.e58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(XXHasher64Factory), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp_14 = tmp_12.e58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_15 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); var tmp$ret$11 = tmp_15.e58(tmp$ret$10, null); return new XapiStatementResource(tmp_1, tmp_4, tmp_7, tmp_8, tmp_11, tmp_14, tmp$ret$11); } function DomainDiModuleJs$lambda$lambda_35($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp$ret$1 = tmp.e58(tmp$ret$0, null); return new SaveStatementOnClearUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_36($this$singleton) { var tmp = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp$ret$1 = tmp_0.e58(tmp$ret$0, null); return new SaveStatementOnUnloadUseCaseJs(tmp, tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_37($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SaveStatementOnClearUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp_4 = tmp_2.e58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); var tmp$ret$5 = tmp_5.e58(tmp$ret$4, null); return new NonInteractiveContentXapiStatementRecorderFactory(tmp_1, tmp_4, tmp$ret$5, $this$singleton.pd()); } function DomainDiModuleJs$lambda$lambda_38($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); var tmp_1 = tmp.e58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, null); return new AddNewPersonUseCase(tmp_1, tmp$ret$3.vk2_1); } function DomainDiModuleJs$lambda$lambda_39($this$singleton) { var tmp = $this$singleton.pd(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var tmp_2 = tmp_0.e58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = tmp_3.e58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.g58(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(SupportedLanguagesConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$5 = tmp_6.e58(tmp$ret$4, null); return new GetSubtitleTrackFromUriUseCaseJs(tmp, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda($endpointScope) { return function ($this$$receiver) { // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp = typeToken(createKType(getKClass(EnqueueContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE(); var tmp_0 = $this$$receiver.p56(tmp$ret$0, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_1 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); var this_0 = new ImplWithScope(tmp$ret$2, scope); var creator = DomainDiModuleJs$lambda$lambda; var tmp_2 = this_0.c56(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(EnqueueImportContentEntryUseCaseRemote), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$5 = new Provider(tmp_2, tmp$ret$4, creator); tmp_0.d5b(tmp$ret$5); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(OpenExternalLinkUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = $this$$receiver.p56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call var creator_0 = DomainDiModuleJs$lambda$lambda_0; var tmp_6 = $this$$receiver.c56(); // Inline function 'org.kodein.type.generic' call var tmp_7 = typeToken(createKType(getKClass(OpenExternalLinkUseCaseJs), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$9 = new Provider(tmp_6, tmp$ret$8, creator_0); tmp_5.d5b(tmp$ret$9); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(OnClickLinkUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(); var tmp_9 = $this$$receiver.p56(tmp$ret$10, null, null); // Inline function 'org.kodein.di.singleton' call var creator_1 = DomainDiModuleJs$lambda$lambda_1; var tmp_10 = $this$$receiver.d56(); var tmp_11 = $this$$receiver.c56(); var tmp_12 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_13 = typeToken(createKType(getKClass(OnClickLinkUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(); var tmp$ret$13 = new Singleton(tmp_10, tmp_11, tmp_12, tmp$ret$12, null, true, creator_1); tmp_9.d5b(tmp$ret$13); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(IPhoneNumberUtil), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); var tmp_15 = $this$$receiver.p56(tmp$ret$14, null, null); // Inline function 'org.kodein.di.singleton' call var creator_2 = DomainDiModuleJs$lambda$lambda_2; var tmp_16 = $this$$receiver.d56(); var tmp_17 = $this$$receiver.c56(); var tmp_18 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(PhoneNumberUtilJs), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); var tmp$ret$17 = new Singleton(tmp_16, tmp_17, tmp_18, tmp$ret$16, null, true, creator_2); tmp_15.d5b(tmp$ret$17); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_20 = typeToken(createKType(getKClass(PhoneNumValidatorUseCase), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE(); var tmp_21 = $this$$receiver.p56(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call var creator_3 = DomainDiModuleJs$lambda$lambda_3; var tmp_22 = $this$$receiver.c56(); // Inline function 'org.kodein.type.generic' call var tmp_23 = typeToken(createKType(getKClass(PhoneNumValidatorUseCaseJs), arrayOf([]), false)); var tmp$ret$20 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(); var tmp$ret$21 = new Provider(tmp_22, tmp$ret$20, creator_3); tmp_21.d5b(tmp$ret$21); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(ValidateEmailUseCase), arrayOf([]), false)); var tmp$ret$22 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); var tmp_25 = $this$$receiver.p56(tmp$ret$22, null, null); // Inline function 'org.kodein.di.provider' call var creator_4 = DomainDiModuleJs$lambda$lambda_4; var tmp_26 = $this$$receiver.c56(); // Inline function 'org.kodein.type.generic' call var tmp_27 = typeToken(createKType(getKClass(ValidateEmailUseCase), arrayOf([]), false)); var tmp$ret$24 = isInterface(tmp_27, TypeToken) ? tmp_27 : THROW_CCE(); var tmp$ret$25 = new Provider(tmp_26, tmp$ret$24, creator_4); tmp_25.d5b(tmp$ret$25); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_28 = typeToken(createKType(getKClass(OnClickPhoneNumUseCase), arrayOf([]), false)); var tmp$ret$26 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE(); var tmp_29 = $this$$receiver.p56(tmp$ret$26, null, null); // Inline function 'org.kodein.di.provider' call var creator_5 = DomainDiModuleJs$lambda$lambda_5; var tmp_30 = $this$$receiver.c56(); // Inline function 'org.kodein.type.generic' call var tmp_31 = typeToken(createKType(getKClass(OnClickPhoneNumUseCaseJs), arrayOf([]), false)); var tmp$ret$28 = isInterface(tmp_31, TypeToken) ? tmp_31 : THROW_CCE(); var tmp$ret$29 = new Provider(tmp_30, tmp$ret$28, creator_5); tmp_29.d5b(tmp$ret$29); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_32 = typeToken(createKType(getKClass(OnClickEmailUseCase), arrayOf([]), false)); var tmp$ret$30 = isInterface(tmp_32, TypeToken) ? tmp_32 : THROW_CCE(); var tmp_33 = $this$$receiver.p56(tmp$ret$30, null, null); // Inline function 'org.kodein.di.provider' call var creator_6 = DomainDiModuleJs$lambda$lambda_6; var tmp_34 = $this$$receiver.c56(); // Inline function 'org.kodein.type.generic' call var tmp_35 = typeToken(createKType(getKClass(OnClickSendEmailUseCaseJs), arrayOf([]), false)); var tmp$ret$32 = isInterface(tmp_35, TypeToken) ? tmp_35 : THROW_CCE(); var tmp$ret$33 = new Provider(tmp_34, tmp$ret$32, creator_6); tmp_33.d5b(tmp$ret$33); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_36 = typeToken(createKType(getKClass(SetLanguageUseCase), arrayOf([]), false)); var tmp$ret$34 = isInterface(tmp_36, TypeToken) ? tmp_36 : THROW_CCE(); var tmp_37 = $this$$receiver.p56(tmp$ret$34, null, null); // Inline function 'org.kodein.di.provider' call var creator_7 = DomainDiModuleJs$lambda$lambda_7; var tmp_38 = $this$$receiver.c56(); // Inline function 'org.kodein.type.generic' call var tmp_39 = typeToken(createKType(getKClass(SetLanguageUseCaseJs), arrayOf([]), false)); var tmp$ret$36 = isInterface(tmp_39, TypeToken) ? tmp_39 : THROW_CCE(); var tmp$ret$37 = new Provider(tmp_38, tmp$ret$36, creator_7); tmp_37.d5b(tmp$ret$37); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_40 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCase), arrayOf([]), false)); var tmp$ret$38 = isInterface(tmp_40, TypeToken) ? tmp_40 : THROW_CCE(); var tmp_41 = $this$$receiver.p56(tmp$ret$38, null, null); // Inline function 'org.kodein.di.singleton' call var creator_8 = DomainDiModuleJs$lambda$lambda_8; var tmp_42 = $this$$receiver.d56(); var tmp_43 = $this$$receiver.c56(); var tmp_44 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_45 = typeToken(createKType(getKClass(ChunkedUploadClientLocalUriUseCaseJs), arrayOf([]), false)); var tmp$ret$40 = isInterface(tmp_45, TypeToken) ? tmp_45 : THROW_CCE(); var tmp$ret$41 = new Singleton(tmp_42, tmp_43, tmp_44, tmp$ret$40, null, true, creator_8); tmp_41.d5b(tmp$ret$41); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_46 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$42 = isInterface(tmp_46, TypeToken) ? tmp_46 : THROW_CCE(); var tmp_47 = $this$$receiver.p56(tmp$ret$42, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_0 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_48 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$44 = isInterface(tmp_48, TypeToken) ? tmp_48 : THROW_CCE(); var this_1 = new ImplWithScope(tmp$ret$44, scope_0); var creator_9 = DomainDiModuleJs$lambda$lambda_9; var tmp_49 = this_1.d56(); var tmp_50 = this_1.c56(); var tmp_51 = this_1.e56(); // Inline function 'org.kodein.type.generic' call var tmp_52 = typeToken(createKType(getKClass(EnqueueSavePictureUseCaseJs), arrayOf([]), false)); var tmp$ret$46 = isInterface(tmp_52, TypeToken) ? tmp_52 : THROW_CCE(); var tmp$ret$47 = new Singleton(tmp_49, tmp_50, tmp_51, tmp$ret$46, null, true, creator_9); tmp_47.d5b(tmp$ret$47); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_53 = typeToken(createKType(getKClass(IsTempFileCheckerUseCase), arrayOf([]), false)); var tmp$ret$48 = isInterface(tmp_53, TypeToken) ? tmp_53 : THROW_CCE(); var tmp_54 = $this$$receiver.p56(tmp$ret$48, null, null); // Inline function 'org.kodein.di.singleton' call var creator_10 = DomainDiModuleJs$lambda$lambda_10; var tmp_55 = $this$$receiver.d56(); var tmp_56 = $this$$receiver.c56(); var tmp_57 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_58 = typeToken(createKType(getKClass(IsTempFileCheckerUseCaseJs), arrayOf([]), false)); var tmp$ret$50 = isInterface(tmp_58, TypeToken) ? tmp_58 : THROW_CCE(); var tmp$ret$51 = new Singleton(tmp_55, tmp_56, tmp_57, tmp$ret$50, null, true, creator_10); tmp_54.d5b(tmp$ret$51); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_59 = typeToken(createKType(getKClass(DeleteUrisUseCase), arrayOf([]), false)); var tmp$ret$52 = isInterface(tmp_59, TypeToken) ? tmp_59 : THROW_CCE(); var tmp_60 = $this$$receiver.p56(tmp$ret$52, null, null); // Inline function 'org.kodein.di.singleton' call var creator_11 = DomainDiModuleJs$lambda$lambda_11; var tmp_61 = $this$$receiver.d56(); var tmp_62 = $this$$receiver.c56(); var tmp_63 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_64 = typeToken(createKType(getKClass(DeleteUrisUseCaseJs), arrayOf([]), false)); var tmp$ret$54 = isInterface(tmp_64, TypeToken) ? tmp_64 : THROW_CCE(); var tmp$ret$55 = new Singleton(tmp_61, tmp_62, tmp_63, tmp$ret$54, null, true, creator_11); tmp_60.d5b(tmp$ret$55); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_65 = typeToken(createKType(getKClass(SavePictureUseCase), arrayOf([]), false)); var tmp$ret$56 = isInterface(tmp_65, TypeToken) ? tmp_65 : THROW_CCE(); var tmp_66 = $this$$receiver.p56(tmp$ret$56, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_1 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_67 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$58 = isInterface(tmp_67, TypeToken) ? tmp_67 : THROW_CCE(); var this_2 = new ImplWithScope(tmp$ret$58, scope_1); var creator_12 = DomainDiModuleJs$lambda$lambda_12; var tmp_68 = this_2.d56(); var tmp_69 = this_2.c56(); var tmp_70 = this_2.e56(); // Inline function 'org.kodein.type.generic' call var tmp_71 = typeToken(createKType(getKClass(SavePictureUseCase), arrayOf([]), false)); var tmp$ret$60 = isInterface(tmp_71, TypeToken) ? tmp_71 : THROW_CCE(); var tmp$ret$61 = new Singleton(tmp_68, tmp_69, tmp_70, tmp$ret$60, null, true, creator_12); tmp_66.d5b(tmp$ret$61); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_72 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$62 = isInterface(tmp_72, TypeToken) ? tmp_72 : THROW_CCE(); var tmp_73 = $this$$receiver.p56(tmp$ret$62, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_2 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_74 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$64 = isInterface(tmp_74, TypeToken) ? tmp_74 : THROW_CCE(); var this_3 = new ImplWithScope(tmp$ret$64, scope_2); var creator_13 = DomainDiModuleJs$lambda$lambda_13; var tmp_75 = this_3.d56(); var tmp_76 = this_3.c56(); var tmp_77 = this_3.e56(); // Inline function 'org.kodein.type.generic' call var tmp_78 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$66 = isInterface(tmp_78, TypeToken) ? tmp_78 : THROW_CCE(); var tmp$ret$67 = new Singleton(tmp_75, tmp_76, tmp_77, tmp$ret$66, null, true, creator_13); tmp_73.d5b(tmp$ret$67); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_79 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCase), arrayOf([]), false)); var tmp$ret$68 = isInterface(tmp_79, TypeToken) ? tmp_79 : THROW_CCE(); var tmp_80 = $this$$receiver.p56(tmp$ret$68, null, null); // Inline function 'org.kodein.di.provider' call var creator_14 = DomainDiModuleJs$lambda$lambda_14; var tmp_81 = $this$$receiver.c56(); // Inline function 'org.kodein.type.generic' call var tmp_82 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCaseJs), arrayOf([]), false)); var tmp$ret$70 = isInterface(tmp_82, TypeToken) ? tmp_82 : THROW_CCE(); var tmp$ret$71 = new Provider(tmp_81, tmp$ret$70, creator_14); tmp_80.d5b(tmp$ret$71); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_83 = typeToken(createKType(getKClass(SetPasswordUseCase), arrayOf([]), false)); var tmp$ret$72 = isInterface(tmp_83, TypeToken) ? tmp_83 : THROW_CCE(); var tmp_84 = $this$$receiver.p56(tmp$ret$72, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_3 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_85 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$74 = isInterface(tmp_85, TypeToken) ? tmp_85 : THROW_CCE(); var this_4 = new ImplWithScope(tmp$ret$74, scope_3); var creator_15 = DomainDiModuleJs$lambda$lambda_15; var tmp_86 = this_4.c56(); // Inline function 'org.kodein.type.generic' call var tmp_87 = typeToken(createKType(getKClass(SetPasswordUseCaseJs), arrayOf([]), false)); var tmp$ret$76 = isInterface(tmp_87, TypeToken) ? tmp_87 : THROW_CCE(); var tmp$ret$77 = new Provider(tmp_86, tmp$ret$76, creator_15); tmp_84.d5b(tmp$ret$77); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_88 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$78 = isInterface(tmp_88, TypeToken) ? tmp_88 : THROW_CCE(); var tmp_89 = $this$$receiver.p56(tmp$ret$78, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_4 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_90 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$80 = isInterface(tmp_90, TypeToken) ? tmp_90 : THROW_CCE(); var this_5 = new ImplWithScope(tmp$ret$80, scope_4); var creator_16 = DomainDiModuleJs$lambda$lambda_16; var tmp_91 = this_5.c56(); // Inline function 'org.kodein.type.generic' call var tmp_92 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$82 = isInterface(tmp_92, TypeToken) ? tmp_92 : THROW_CCE(); var tmp$ret$83 = new Provider(tmp_91, tmp$ret$82, creator_16); tmp_89.d5b(tmp$ret$83); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_93 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$84 = isInterface(tmp_93, TypeToken) ? tmp_93 : THROW_CCE(); var tmp_94 = $this$$receiver.p56(tmp$ret$84, null, null); // Inline function 'org.kodein.di.singleton' call var creator_17 = DomainDiModuleJs$lambda$lambda_17; var tmp_95 = $this$$receiver.d56(); var tmp_96 = $this$$receiver.c56(); var tmp_97 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_98 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$86 = isInterface(tmp_98, TypeToken) ? tmp_98 : THROW_CCE(); var tmp$ret$87 = new Singleton(tmp_95, tmp_96, tmp_97, tmp$ret$86, null, true, creator_17); tmp_94.d5b(tmp$ret$87); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_99 = typeToken(createKType(getKClass(GetApiUrlUseCase), arrayOf([]), false)); var tmp$ret$88 = isInterface(tmp_99, TypeToken) ? tmp_99 : THROW_CCE(); var tmp_100 = $this$$receiver.p56(tmp$ret$88, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_5 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_101 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$90 = isInterface(tmp_101, TypeToken) ? tmp_101 : THROW_CCE(); var this_6 = new ImplWithScope(tmp$ret$90, scope_5); var creator_18 = DomainDiModuleJs$lambda$lambda_18; var tmp_102 = this_6.d56(); var tmp_103 = this_6.c56(); var tmp_104 = this_6.e56(); // Inline function 'org.kodein.type.generic' call var tmp_105 = typeToken(createKType(getKClass(GetApiUrlUseCaseDirect), arrayOf([]), false)); var tmp$ret$92 = isInterface(tmp_105, TypeToken) ? tmp_105 : THROW_CCE(); var tmp$ret$93 = new Singleton(tmp_102, tmp_103, tmp_104, tmp$ret$92, null, true, creator_18); tmp_100.d5b(tmp$ret$93); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_106 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCase), arrayOf([]), false)); var tmp$ret$94 = isInterface(tmp_106, TypeToken) ? tmp_106 : THROW_CCE(); var tmp_107 = $this$$receiver.p56(tmp$ret$94, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_6 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_108 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$96 = isInterface(tmp_108, TypeToken) ? tmp_108 : THROW_CCE(); var this_7 = new ImplWithScope(tmp$ret$96, scope_6); var creator_19 = DomainDiModuleJs$lambda$lambda_19; var tmp_109 = this_7.d56(); var tmp_110 = this_7.c56(); var tmp_111 = this_7.e56(); // Inline function 'org.kodein.type.generic' call var tmp_112 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCaseJs), arrayOf([]), false)); var tmp$ret$98 = isInterface(tmp_112, TypeToken) ? tmp_112 : THROW_CCE(); var tmp$ret$99 = new Singleton(tmp_109, tmp_110, tmp_111, tmp$ret$98, null, true, creator_19); tmp_107.d5b(tmp$ret$99); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_113 = typeToken(createKType(getKClass(LaunchXapiUseCase), arrayOf([]), false)); var tmp$ret$100 = isInterface(tmp_113, TypeToken) ? tmp_113 : THROW_CCE(); var tmp_114 = $this$$receiver.p56(tmp$ret$100, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_7 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_115 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$102 = isInterface(tmp_115, TypeToken) ? tmp_115 : THROW_CCE(); var this_8 = new ImplWithScope(tmp$ret$102, scope_7); var creator_20 = DomainDiModuleJs$lambda$lambda_20; var tmp_116 = this_8.c56(); // Inline function 'org.kodein.type.generic' call var tmp_117 = typeToken(createKType(getKClass(LaunchXapiUseCaseJs), arrayOf([]), false)); var tmp$ret$104 = isInterface(tmp_117, TypeToken) ? tmp_117 : THROW_CCE(); var tmp$ret$105 = new Provider(tmp_116, tmp$ret$104, creator_20); tmp_114.d5b(tmp$ret$105); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_118 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$106 = isInterface(tmp_118, TypeToken) ? tmp_118 : THROW_CCE(); var tmp_119 = $this$$receiver.p56(tmp$ret$106, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_120 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$108 = isInterface(tmp_120, TypeToken) ? tmp_120 : THROW_CCE(); var this_9 = new ImplWithScope(tmp$ret$108, scope_8); var creator_21 = DomainDiModuleJs$lambda$lambda_21; var tmp_121 = this_9.c56(); // Inline function 'org.kodein.type.generic' call var tmp_122 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$110 = isInterface(tmp_122, TypeToken) ? tmp_122 : THROW_CCE(); var tmp$ret$111 = new Provider(tmp_121, tmp$ret$110, creator_21); tmp_119.d5b(tmp$ret$111); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_123 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$112 = isInterface(tmp_123, TypeToken) ? tmp_123 : THROW_CCE(); var tmp_124 = $this$$receiver.p56(tmp$ret$112, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_9 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_125 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$114 = isInterface(tmp_125, TypeToken) ? tmp_125 : THROW_CCE(); var this_10 = new ImplWithScope(tmp$ret$114, scope_9); var creator_22 = DomainDiModuleJs$lambda$lambda_22; var tmp_126 = this_10.c56(); // Inline function 'org.kodein.type.generic' call var tmp_127 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$116 = isInterface(tmp_127, TypeToken) ? tmp_127 : THROW_CCE(); var tmp$ret$117 = new Provider(tmp_126, tmp$ret$116, creator_22); tmp_124.d5b(tmp$ret$117); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_128 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$118 = isInterface(tmp_128, TypeToken) ? tmp_128 : THROW_CCE(); var tmp_129 = $this$$receiver.p56(tmp$ret$118, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_10 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_130 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$120 = isInterface(tmp_130, TypeToken) ? tmp_130 : THROW_CCE(); var this_11 = new ImplWithScope(tmp$ret$120, scope_10); var creator_23 = DomainDiModuleJs$lambda$lambda_23; var tmp_131 = this_11.c56(); // Inline function 'org.kodein.type.generic' call var tmp_132 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$122 = isInterface(tmp_132, TypeToken) ? tmp_132 : THROW_CCE(); var tmp$ret$123 = new Provider(tmp_131, tmp$ret$122, creator_23); tmp_129.d5b(tmp$ret$123); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_133 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$124 = isInterface(tmp_133, TypeToken) ? tmp_133 : THROW_CCE(); var tmp_134 = $this$$receiver.p56(tmp$ret$124, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_11 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_135 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$126 = isInterface(tmp_135, TypeToken) ? tmp_135 : THROW_CCE(); var this_12 = new ImplWithScope(tmp$ret$126, scope_11); var creator_24 = DomainDiModuleJs$lambda$lambda_24; var tmp_136 = this_12.c56(); // Inline function 'org.kodein.type.generic' call var tmp_137 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$128 = isInterface(tmp_137, TypeToken) ? tmp_137 : THROW_CCE(); var tmp$ret$129 = new Provider(tmp_136, tmp$ret$128, creator_24); tmp_134.d5b(tmp$ret$129); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_138 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$130 = isInterface(tmp_138, TypeToken) ? tmp_138 : THROW_CCE(); var tmp_139 = $this$$receiver.p56(tmp$ret$130, null, null); // Inline function 'org.kodein.di.singleton' call var creator_25 = DomainDiModuleJs$lambda$lambda_25; var tmp_140 = $this$$receiver.d56(); var tmp_141 = $this$$receiver.c56(); var tmp_142 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_143 = typeToken(createKType(getKClass(SetClipboardStringUseCaseJs), arrayOf([]), false)); var tmp$ret$132 = isInterface(tmp_143, TypeToken) ? tmp_143 : THROW_CCE(); var tmp$ret$133 = new Singleton(tmp_140, tmp_141, tmp_142, tmp$ret$132, null, true, creator_25); tmp_139.d5b(tmp$ret$133); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_144 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$134 = isInterface(tmp_144, TypeToken) ? tmp_144 : THROW_CCE(); var tmp_145 = $this$$receiver.p56(tmp$ret$134, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_12 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_146 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$136 = isInterface(tmp_146, TypeToken) ? tmp_146 : THROW_CCE(); var this_13 = new ImplWithScope(tmp$ret$136, scope_12); var creator_26 = DomainDiModuleJs$lambda$lambda_26; var tmp_147 = this_13.d56(); var tmp_148 = this_13.c56(); var tmp_149 = this_13.e56(); // Inline function 'org.kodein.type.generic' call var tmp_150 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$138 = isInterface(tmp_150, TypeToken) ? tmp_150 : THROW_CCE(); var tmp$ret$139 = new Singleton(tmp_147, tmp_148, tmp_149, tmp$ret$138, null, true, creator_26); tmp_145.d5b(tmp$ret$139); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_151 = typeToken(createKType(getKClass(OpenBlobUseCase), arrayOf([]), false)); var tmp$ret$140 = isInterface(tmp_151, TypeToken) ? tmp_151 : THROW_CCE(); var tmp_152 = $this$$receiver.p56(tmp$ret$140, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_13 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_153 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$142 = isInterface(tmp_153, TypeToken) ? tmp_153 : THROW_CCE(); var this_14 = new ImplWithScope(tmp$ret$142, scope_13); var creator_27 = DomainDiModuleJs$lambda$lambda_27; var tmp_154 = this_14.c56(); // Inline function 'org.kodein.type.generic' call var tmp_155 = typeToken(createKType(getKClass(OpenBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$144 = isInterface(tmp_155, TypeToken) ? tmp_155 : THROW_CCE(); var tmp$ret$145 = new Provider(tmp_154, tmp$ret$144, creator_27); tmp_152.d5b(tmp$ret$145); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_156 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$146 = isInterface(tmp_156, TypeToken) ? tmp_156 : THROW_CCE(); var tmp_157 = $this$$receiver.p56(tmp$ret$146, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_14 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_158 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$148 = isInterface(tmp_158, TypeToken) ? tmp_158 : THROW_CCE(); var this_15 = new ImplWithScope(tmp$ret$148, scope_14); var creator_28 = DomainDiModuleJs$lambda$lambda_28; var tmp_159 = this_15.d56(); var tmp_160 = this_15.c56(); var tmp_161 = this_15.e56(); // Inline function 'org.kodein.type.generic' call var tmp_162 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$150 = isInterface(tmp_162, TypeToken) ? tmp_162 : THROW_CCE(); var tmp$ret$151 = new Singleton(tmp_159, tmp_160, tmp_161, tmp$ret$150, null, true, creator_28); tmp_157.d5b(tmp$ret$151); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_163 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$152 = isInterface(tmp_163, TypeToken) ? tmp_163 : THROW_CCE(); var tmp_164 = $this$$receiver.p56(tmp$ret$152, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_15 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_165 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$154 = isInterface(tmp_165, TypeToken) ? tmp_165 : THROW_CCE(); var this_16 = new ImplWithScope(tmp$ret$154, scope_15); var creator_29 = DomainDiModuleJs$lambda$lambda_29; var tmp_166 = this_16.d56(); var tmp_167 = this_16.c56(); var tmp_168 = this_16.e56(); // Inline function 'org.kodein.type.generic' call var tmp_169 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$156 = isInterface(tmp_169, TypeToken) ? tmp_169 : THROW_CCE(); var tmp$ret$157 = new Singleton(tmp_166, tmp_167, tmp_168, tmp$ret$156, null, true, creator_29); tmp_164.d5b(tmp$ret$157); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_170 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$158 = isInterface(tmp_170, TypeToken) ? tmp_170 : THROW_CCE(); var tmp_171 = $this$$receiver.p56(tmp$ret$158, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_16 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_172 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$160 = isInterface(tmp_172, TypeToken) ? tmp_172 : THROW_CCE(); var this_17 = new ImplWithScope(tmp$ret$160, scope_16); var creator_30 = DomainDiModuleJs$lambda$lambda_30; var tmp_173 = this_17.d56(); var tmp_174 = this_17.c56(); var tmp_175 = this_17.e56(); // Inline function 'org.kodein.type.generic' call var tmp_176 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$162 = isInterface(tmp_176, TypeToken) ? tmp_176 : THROW_CCE(); var tmp$ret$163 = new Singleton(tmp_173, tmp_174, tmp_175, tmp$ret$162, null, true, creator_30); tmp_171.d5b(tmp$ret$163); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_177 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$164 = isInterface(tmp_177, TypeToken) ? tmp_177 : THROW_CCE(); var tmp_178 = $this$$receiver.p56(tmp$ret$164, null, null); // Inline function 'org.kodein.di.singleton' call var creator_31 = DomainDiModuleJs$lambda$lambda_31; var tmp_179 = $this$$receiver.d56(); var tmp_180 = $this$$receiver.c56(); var tmp_181 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_182 = typeToken(createKType(getKClass(XXStringHasherJs), arrayOf([]), false)); var tmp$ret$166 = isInterface(tmp_182, TypeToken) ? tmp_182 : THROW_CCE(); var tmp$ret$167 = new Singleton(tmp_179, tmp_180, tmp_181, tmp$ret$166, null, true, creator_31); tmp_178.d5b(tmp$ret$167); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_183 = typeToken(createKType(getKClass(XXHasher64Factory), arrayOf([]), false)); var tmp$ret$168 = isInterface(tmp_183, TypeToken) ? tmp_183 : THROW_CCE(); var tmp_184 = $this$$receiver.p56(tmp$ret$168, null, null); // Inline function 'org.kodein.di.singleton' call var creator_32 = DomainDiModuleJs$lambda$lambda_32; var tmp_185 = $this$$receiver.d56(); var tmp_186 = $this$$receiver.c56(); var tmp_187 = $this$$receiver.e56(); // Inline function 'org.kodein.type.generic' call var tmp_188 = typeToken(createKType(getKClass(XXHasher64FactoryJs), arrayOf([]), false)); var tmp$ret$170 = isInterface(tmp_188, TypeToken) ? tmp_188 : THROW_CCE(); var tmp$ret$171 = new Singleton(tmp_185, tmp_186, tmp_187, tmp$ret$170, null, true, creator_32); tmp_184.d5b(tmp$ret$171); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_189 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$172 = isInterface(tmp_189, TypeToken) ? tmp_189 : THROW_CCE(); var tmp_190 = $this$$receiver.p56(tmp$ret$172, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_17 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_191 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$174 = isInterface(tmp_191, TypeToken) ? tmp_191 : THROW_CCE(); var this_18 = new ImplWithScope(tmp$ret$174, scope_17); var creator_33 = DomainDiModuleJs$lambda$lambda_33; var tmp_192 = this_18.d56(); var tmp_193 = this_18.c56(); var tmp_194 = this_18.e56(); // Inline function 'org.kodein.type.generic' call var tmp_195 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$176 = isInterface(tmp_195, TypeToken) ? tmp_195 : THROW_CCE(); var tmp$ret$177 = new Singleton(tmp_192, tmp_193, tmp_194, tmp$ret$176, null, true, creator_33); tmp_190.d5b(tmp$ret$177); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_196 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$178 = isInterface(tmp_196, TypeToken) ? tmp_196 : THROW_CCE(); var tmp_197 = $this$$receiver.p56(tmp$ret$178, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_18 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_198 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$180 = isInterface(tmp_198, TypeToken) ? tmp_198 : THROW_CCE(); var this_19 = new ImplWithScope(tmp$ret$180, scope_18); var creator_34 = DomainDiModuleJs$lambda$lambda_34; var tmp_199 = this_19.d56(); var tmp_200 = this_19.c56(); var tmp_201 = this_19.e56(); // Inline function 'org.kodein.type.generic' call var tmp_202 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$182 = isInterface(tmp_202, TypeToken) ? tmp_202 : THROW_CCE(); var tmp$ret$183 = new Singleton(tmp_199, tmp_200, tmp_201, tmp$ret$182, null, true, creator_34); tmp_197.d5b(tmp$ret$183); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_203 = typeToken(createKType(getKClass(SaveStatementOnClearUseCase), arrayOf([]), false)); var tmp$ret$184 = isInterface(tmp_203, TypeToken) ? tmp_203 : THROW_CCE(); var tmp_204 = $this$$receiver.p56(tmp$ret$184, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_19 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_205 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$186 = isInterface(tmp_205, TypeToken) ? tmp_205 : THROW_CCE(); var this_20 = new ImplWithScope(tmp$ret$186, scope_19); var creator_35 = DomainDiModuleJs$lambda$lambda_35; var tmp_206 = this_20.d56(); var tmp_207 = this_20.c56(); var tmp_208 = this_20.e56(); // Inline function 'org.kodein.type.generic' call var tmp_209 = typeToken(createKType(getKClass(SaveStatementOnClearUseCaseJs), arrayOf([]), false)); var tmp$ret$188 = isInterface(tmp_209, TypeToken) ? tmp_209 : THROW_CCE(); var tmp$ret$189 = new Singleton(tmp_206, tmp_207, tmp_208, tmp$ret$188, null, true, creator_35); tmp_204.d5b(tmp$ret$189); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_210 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCase), arrayOf([]), false)); var tmp$ret$190 = isInterface(tmp_210, TypeToken) ? tmp_210 : THROW_CCE(); var tmp_211 = $this$$receiver.p56(tmp$ret$190, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_20 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_212 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$192 = isInterface(tmp_212, TypeToken) ? tmp_212 : THROW_CCE(); var this_21 = new ImplWithScope(tmp$ret$192, scope_20); var creator_36 = DomainDiModuleJs$lambda$lambda_36; var tmp_213 = this_21.d56(); var tmp_214 = this_21.c56(); var tmp_215 = this_21.e56(); // Inline function 'org.kodein.type.generic' call var tmp_216 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCaseJs), arrayOf([]), false)); var tmp$ret$194 = isInterface(tmp_216, TypeToken) ? tmp_216 : THROW_CCE(); var tmp$ret$195 = new Singleton(tmp_213, tmp_214, tmp_215, tmp$ret$194, null, true, creator_36); tmp_211.d5b(tmp$ret$195); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_217 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$196 = isInterface(tmp_217, TypeToken) ? tmp_217 : THROW_CCE(); var tmp_218 = $this$$receiver.p56(tmp$ret$196, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_21 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_219 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$198 = isInterface(tmp_219, TypeToken) ? tmp_219 : THROW_CCE(); var this_22 = new ImplWithScope(tmp$ret$198, scope_21); var creator_37 = DomainDiModuleJs$lambda$lambda_37; var tmp_220 = this_22.d56(); var tmp_221 = this_22.c56(); var tmp_222 = this_22.e56(); // Inline function 'org.kodein.type.generic' call var tmp_223 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$200 = isInterface(tmp_223, TypeToken) ? tmp_223 : THROW_CCE(); var tmp$ret$201 = new Singleton(tmp_220, tmp_221, tmp_222, tmp$ret$200, null, true, creator_37); tmp_218.d5b(tmp$ret$201); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_224 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$202 = isInterface(tmp_224, TypeToken) ? tmp_224 : THROW_CCE(); var tmp_225 = $this$$receiver.p56(tmp$ret$202, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_22 = Companion_getInstance_18().fnu_1; // Inline function 'org.kodein.type.generic' call var tmp_226 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$204 = isInterface(tmp_226, TypeToken) ? tmp_226 : THROW_CCE(); var this_23 = new ImplWithScope(tmp$ret$204, scope_22); var creator_38 = DomainDiModuleJs$lambda$lambda_38; var tmp_227 = this_23.d56(); var tmp_228 = this_23.c56(); var tmp_229 = this_23.e56(); // Inline function 'org.kodein.type.generic' call var tmp_230 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$206 = isInterface(tmp_230, TypeToken) ? tmp_230 : THROW_CCE(); var tmp$ret$207 = new Singleton(tmp_227, tmp_228, tmp_229, tmp$ret$206, null, true, creator_38); tmp_225.d5b(tmp$ret$207); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_231 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCase), arrayOf([]), false)); var tmp$ret$208 = isInterface(tmp_231, TypeToken) ? tmp_231 : THROW_CCE(); var tmp_232 = $this$$receiver.p56(tmp$ret$208, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_23 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_233 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$210 = isInterface(tmp_233, TypeToken) ? tmp_233 : THROW_CCE(); var this_24 = new ImplWithScope(tmp$ret$210, scope_23); var creator_39 = DomainDiModuleJs$lambda$lambda_39; var tmp_234 = this_24.d56(); var tmp_235 = this_24.c56(); var tmp_236 = this_24.e56(); // Inline function 'org.kodein.type.generic' call var tmp_237 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCaseJs), arrayOf([]), false)); var tmp$ret$212 = isInterface(tmp_237, TypeToken) ? tmp_237 : THROW_CCE(); var tmp$ret$213 = new Singleton(tmp_234, tmp_235, tmp_236, tmp$ret$212, null, true, creator_39); tmp_232.d5b(tmp$ret$213); return Unit_instance; }; } function StringProviderJs(locale, jsStringProvider) { this.j127_1 = locale; this.k127_1 = jsStringProvider; } protoOf(StringProviderJs).jq9 = function (stringResource) { return stringResource.om8(this.k127_1, this.j127_1); }; protoOf(StringProviderJs).l127 = function (stringResource, args) { return stringResource.pm8(this.k127_1, this.j127_1, args.slice()); }; function isRemote(_this__u8e3s4, $completion) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call var prefix = substringBefore_0(toString(_this__u8e3s4.r72_1), '//').toLowerCase(); return startsWith(prefix, 'http:') ? true : startsWith(prefix, 'https:'); } function setStateKey(_this__u8e3s4, $this, key, value) { var tmp0_safe_receiver = _this__u8e3s4.state; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp = tmp0_safe_receiver; } var tmp1_elvis_lhs = tmp; var newState = tmp1_elvis_lhs == null ? json([]) : tmp1_elvis_lhs; newState[key] = value; _this__u8e3s4.replaceState(newState, ''); } function Companion_209() { this.m127_1 = '_handleId'; } var Companion_instance_257; function Companion_getInstance_227() { return Companion_instance_257; } function SavedStateHandle2(history, searchParams) { this.n127_1 = history; this.o127_1 = searchParams; var storedHandleId = this.ba('_handleId'); if (storedHandleId == null) { this.p127_1 = Default_getInstance_0().gg().toString(); setStateKey(this.n127_1, this, '_handleId', this.p127_1); } else { this.p127_1 = storedHandleId; } } protoOf(SavedStateHandle2).yqj = function (key, value) { var tmp0_safe_receiver = this.n127_1.state; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.js.asDynamic' call tmp = tmp0_safe_receiver; } var tmp1_safe_receiver = tmp; if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver._handleId) != this.p127_1) { throw IllegalStateException_init_$Create$('SavedState cannot save values after the user has changed page'); } if (!(value == null)) { setStateKey(this.n127_1, this, key, value); } }; protoOf(SavedStateHandle2).ba = function (key) { var tmp0_safe_receiver = this.n127_1.state; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp = tmp0_safe_receiver; } var tmp1_safe_receiver = tmp; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[key]; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toString(tmp2_safe_receiver); return tmp3_elvis_lhs == null ? this.o127_1.get(key) : tmp3_elvis_lhs; }; function UrlKmp(url) { return new UrlKmpJs(new URL(url)); } function UrlKmpJs(url) { this.q127_1 = url; } protoOf(UrlKmpJs).toString = function () { return toString(this.q127_1); }; protoOf(UrlKmpJs).pp2 = function (path) { return new UrlKmpJs(new URL(path, toString(this.q127_1))); }; function Companion_210() { } protoOf(Companion_210).sqd = function (text) { return encodeURIComponent(text); }; protoOf(Companion_210).rqd = function (text) { return decodeURIComponent(text); }; var Companion_instance_258; function Companion_getInstance_228() { return Companion_instance_258; } function UstadAntilog(defaultTag) { defaultTag = defaultTag === VOID ? 'NoTag' : defaultTag; Antilog.call(this); this.r127_1 = defaultTag; } protoOf(UstadAntilog).u5d = function (priority, tag) { var tmp; var tmp_0; if (tag === 'DoorLog') { tmp_0 = priority.equals(LogLevel_DEBUG_getInstance()) ? true : priority.equals(LogLevel_VERBOSE_getInstance()); } else { tmp_0 = false; } if (tmp_0) { tmp = false; } else { tmp = true; } return tmp; }; protoOf(UstadAntilog).w5d = function (priority, tag, throwable, message) { var logTag = tag == null ? this.r127_1 : tag; var tmp; if (!(message == null)) { var tmp_0; if (!(throwable == null)) { tmp_0 = '' + message + '\n' + throwable.message; } else { tmp_0 = message; } tmp = tmp_0; } else { var tmp2_elvis_lhs = throwable == null ? null : throwable.message; var tmp_1; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp2_elvis_lhs; } tmp = tmp_1; } var fullMessage = tmp; switch (priority.za_1) { case 0: console.log('VERBOSE ' + logTag + ' : ' + fullMessage); break; case 1: console.log('DEBUG ' + logTag + ' : ' + fullMessage); break; case 2: console.info('INFO ' + logTag + ' : ' + fullMessage); break; case 3: console.warn('WARNING ' + logTag + ' : ' + fullMessage); break; case 4: console.error('ERROR ' + logTag + ' : ' + fullMessage); break; case 5: console.error('ASSERT ' + logTag + ' : ' + fullMessage); break; } }; function forEach(_this__u8e3s4, block) { var collection = _this__u8e3s4; var inductionVariable = 0; var last = _this__u8e3s4.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; block(collection[i]); } while (inductionVariable < last); } function bodyAsDecodedText(_this__u8e3s4, $completion) { return bodyAsText(_this__u8e3s4, VOID, $completion); } function rgbColorProperty(_this__u8e3s4) { // Inline function 'web.cssom.rgb' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return 'rgb(' + (_this__u8e3s4 >> 24 & 255) + ' ' + (_this__u8e3s4 >> 16 & 255) + ' ' + (_this__u8e3s4 >> 8 & 255) + ')'; } function asWindowTarget(_this__u8e3s4) { var tmp; switch (_this__u8e3s4.za_1) { case 0: // Inline function 'web.window.WindowTarget.Companion._blank' call 0; tmp = '_blank'; break; case 1: // Inline function 'web.window.WindowTarget.Companion._top' call 0; tmp = '_top'; break; case 2: // Inline function 'web.window.WindowTarget.Companion._self' call 0; tmp = '_self'; break; case 3: // Inline function 'web.window.WindowTarget.Companion._blank' call 0; tmp = '_blank'; break; default: noWhenBranchMatchedException(); break; } return tmp; } function getOrPut(_this__u8e3s4, key, block) { var tmp0_elvis_lhs = _this__u8e3s4.getItem(key); var tmp; if (tmp0_elvis_lhs == null) { // Inline function 'kotlin.also' call var this_0 = block(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.util.ext.getOrPut.' call _this__u8e3s4.setItem(key, this_0); tmp = this_0; } else { tmp = tmp0_elvis_lhs; } return tmp; } function htmlToPlainText(_this__u8e3s4) { var element = document.createElement('div'); element.innerHTML = replace(replace(replace(_this__u8e3s4, '
', ' '), '
', ' '), '<\/p>

', ' '); return element.innerText; } function JsHeaderStringValuesAdapter(headers) { this.s127_1 = headers; } protoOf(JsHeaderStringValuesAdapter).o2n = function (key) { var tmp0_safe_receiver = this.s127_1.get(key); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, [',']); return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; }; protoOf(JsHeaderStringValuesAdapter).p2n = function () { return toSet_0(this.s127_1.keys()); }; function asIStringValues_0(_this__u8e3s4) { return new JsHeaderStringValuesAdapter(_this__u8e3s4); } function randomUuidAsString() { var tmp; // Inline function 'com.ustadmobile.core.wrappers.window.isSecureContext' call // Inline function 'kotlin.js.asDynamic' call var tmp_0 = window.isSecureContext; if ((!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : THROW_CCE()) { tmp = crypto.randomUUID(); } else { tmp = v4(); } return tmp; } //region block: post-declaration protoOf(AuthManager).d57 = get_diContext; protoOf(AuthManager).e57 = get_diTrigger; protoOf($serializer).m4g = typeParametersSerializers; protoOf($serializer_0).m4g = typeParametersSerializers; protoOf($serializer_1).m4g = typeParametersSerializers; protoOf($serializer_2).m4g = typeParametersSerializers; protoOf($serializer_3).m4g = typeParametersSerializers; protoOf($serializer_4).m4g = typeParametersSerializers; protoOf($serializer_5).m4g = typeParametersSerializers; protoOf($serializer_6).m4g = typeParametersSerializers; protoOf($serializer_7).m4g = typeParametersSerializers; protoOf($serializer_8).m4g = typeParametersSerializers; protoOf($serializer_9).m4g = typeParametersSerializers; protoOf($serializer_10).m4g = typeParametersSerializers; protoOf($serializer_11).m4g = typeParametersSerializers; protoOf($serializer_12).m4g = typeParametersSerializers; protoOf($serializer_13).m4g = typeParametersSerializers; protoOf($serializer_14).m4g = typeParametersSerializers; protoOf($serializer_15).m4g = typeParametersSerializers; protoOf($serializer_16).m4g = typeParametersSerializers; protoOf($serializer_17).m4g = typeParametersSerializers; protoOf($serializer_18).m4g = typeParametersSerializers; protoOf($serializer_19).m4g = typeParametersSerializers; protoOf($serializer_20).m4g = typeParametersSerializers; protoOf($serializer_21).m4g = typeParametersSerializers; protoOf($serializer_22).m4g = typeParametersSerializers; protoOf($serializer_23).m4g = typeParametersSerializers; protoOf($serializer_24).m4g = typeParametersSerializers; protoOf($serializer_25).m4g = typeParametersSerializers; protoOf($serializer_26).m4g = typeParametersSerializers; protoOf($serializer_27).m4g = typeParametersSerializers; protoOf($serializer_28).m4g = typeParametersSerializers; protoOf($serializer_29).m4g = typeParametersSerializers; protoOf($serializer_30).m4g = typeParametersSerializers; protoOf($serializer_31).m4g = typeParametersSerializers; protoOf($serializer_32).m4g = typeParametersSerializers; protoOf($serializer_33).m4g = typeParametersSerializers; protoOf($serializer_34).m4g = typeParametersSerializers; protoOf($serializer_35).m4g = typeParametersSerializers; protoOf($serializer_36).m4g = typeParametersSerializers; protoOf($serializer_37).m4g = typeParametersSerializers; protoOf($serializer_38).m4g = typeParametersSerializers; protoOf($serializer_39).m4g = typeParametersSerializers; protoOf($serializer_40).m4g = typeParametersSerializers; protoOf($serializer_41).m4g = typeParametersSerializers; protoOf($serializer_42).m4g = typeParametersSerializers; protoOf($serializer_43).m4g = typeParametersSerializers; protoOf($serializer_44).m4g = typeParametersSerializers; protoOf($serializer_45).m4g = typeParametersSerializers; protoOf($serializer_46).m4g = typeParametersSerializers; protoOf($serializer_47).m4g = typeParametersSerializers; protoOf($serializer_48).m4g = typeParametersSerializers; protoOf($serializer_49).m4g = typeParametersSerializers; protoOf($serializer_50).m4g = typeParametersSerializers; protoOf($serializer_51).m4g = typeParametersSerializers; protoOf($serializer_52).m4g = typeParametersSerializers; protoOf($serializer_53).m4g = typeParametersSerializers; protoOf($serializer_54).m4g = typeParametersSerializers; protoOf($serializer_55).m4g = typeParametersSerializers; protoOf($serializer_56).m4g = typeParametersSerializers; protoOf($serializer_57).m4g = typeParametersSerializers; protoOf($serializer_58).m4g = typeParametersSerializers; protoOf(CommandFlowUstadNavController).tp6 = navigate$default; protoOf(UstadViewModel).d57 = get_diContext; protoOf(UstadViewModel).e57 = get_diTrigger; protoOf($serializer_59).m4g = typeParametersSerializers; protoOf($serializer_60).m4g = typeParametersSerializers; protoOf($serializer_61).m4g = typeParametersSerializers; protoOf($serializer_62).m4g = typeParametersSerializers; protoOf($serializer_63).m4g = typeParametersSerializers; protoOf($serializer_64).m4g = typeParametersSerializers; protoOf($serializer_65).m4g = typeParametersSerializers; protoOf(SaveLocalUrisAsBlobUseCaseJs).oor = invoke$default; protoOf(CompressImageUseCaseJs).aou = invoke$default_2; protoOf(GetSubtitleTrackFromUriUseCaseJs).ap4 = invoke$default_3; protoOf(SetLanguageUseCaseJs).ppi = invoke$default_4; protoOf(ChunkedUploadClientLocalUriUseCaseJs).lpo = invoke$default_5; //endregion //region block: init Companion_instance_47 = new Companion(); Companion_instance_49 = new Companion_1(); Companion_instance_50 = new Companion_2(); Companion_instance_52 = new Companion_4(); Companion_instance_53 = new Companion_5(); Companion_instance_54 = new Companion_6(); BodySerializer_instance = new BodySerializer(); Companion_instance_55 = new Companion_7(); Companion_instance_56 = new Companion_8(); Companion_instance_57 = new Companion_9(); Companion_instance_59 = new Companion_11(); Companion_instance_64 = new Companion_16(); Companion_instance_65 = new Companion_17(); Companion_instance_66 = new Companion_18(); Companion_instance_67 = new Companion_19(); Companion_instance_68 = new Companion_20(); Companion_instance_69 = new Companion_21(); Companion_instance_70 = new Companion_22(); Companion_instance_72 = new Companion_24(); Companion_instance_74 = new Companion_26(); Companion_instance_79 = new Companion_31(); Companion_instance_80 = new Companion_32(); Companion_instance_81 = new Companion_33(); Companion_instance_82 = new Companion_34(); Companion_instance_83 = new Companion_35(); Companion_instance_84 = new Companion_36(); Companion_instance_86 = new Companion_38(); Companion_instance_87 = new Companion_39(); Companion_instance_88 = new Companion_40(); Companion_instance_89 = new Companion_41(); Companion_instance_90 = new Companion_42(); Companion_instance_91 = new Companion_43(); Companion_instance_92 = new Companion_44(); Companion_instance_93 = new Companion_45(); Companion_instance_95 = new Companion_47(); Companion_instance_97 = new Companion_49(); Companion_instance_98 = new Companion_50(); Companion_instance_99 = new Companion_51(); Companion_instance_100 = new Companion_52(); Companion_instance_101 = new Companion_53(); Companion_instance_102 = new Companion_54(); Companion_instance_103 = new Companion_55(); HEADER_UPLOAD_UUID = 'upload-uuid'; HEADER_IS_FINAL_CHUNK = 'upload-final-chunk'; HEADER_UPLOAD_START_BYTE = 'upload-start-byte'; DEFAULT_CHUNK_SIZE = 524288; Companion_instance_108 = new Companion_60(); Companion_instance_111 = new Companion_63(); Companion_instance_112 = new Companion_64(); Companion_instance_114 = new Companion_66(); XapiInteractionTypeSerializer_instance = new XapiInteractionTypeSerializer(); XapiObjectTypeSerializer_instance = new XapiObjectTypeSerializer(); Companion_instance_119 = new Companion_71(); XAPI_RESULT_EXTENSION_PROGRESS = 'https://w3id.org/xapi/cmi5/result/extensions/progress'; Companion_instance_122 = new Companion_74(); Companion_instance_123 = new Companion_75(); VERB_COMPLETED = 'http://adlnet.gov/expapi/verbs/completed'; VERB_PROGRESSED = 'http://adlnet.gov/expapi/verbs/progressed'; Companion_instance_129 = new Companion_81(); Companion_instance_130 = new Companion_82(); Companion_instance_131 = new Companion_83(); Companion_instance_132 = new Companion_84(); Companion_instance_134 = new Companion_86(); Companion_instance_135 = new Companion_87(); DiTag_instance = new DiTag(); MS_PER_HOUR = 3600000; MS_PER_MIN = 60000; Companion_instance_137 = new Companion_89(); UNSET_DISTANT_FUTURE = new Long(-289930240, 1689); Companion_instance_138 = new Companion_90(); Companion_instance_139 = new Companion_91(); Companion_instance_140 = new Companion_92(); Companion_instance_141 = new Companion_93(); Companion_instance_142 = new Companion_94(); Companion_instance_143 = new Companion_95(); Companion_instance_144 = new Companion_96(); Companion_instance_145 = new Companion_97(); Companion_instance_148 = new Companion_100(); Companion_instance_149 = new Companion_101(); Companion_instance_150 = new Companion_102(); Companion_instance_151 = new Companion_103(); Companion_instance_152 = new Companion_104(); Companion_instance_153 = new Companion_105(); Companion_instance_155 = new Companion_107(); Companion_instance_157 = new Companion_109(); Companion_instance_158 = new Companion_110(); Companion_instance_159 = new Companion_111(); Companion_instance_160 = new Companion_112(); Companion_instance_161 = new Companion_113(); Companion_instance_162 = new Companion_114(); Companion_instance_164 = new Companion_116(); Companion_instance_166 = new Companion_118(); Companion_instance_167 = new Companion_119(); Companion_instance_168 = new Companion_120(); Companion_instance_169 = new Companion_121(); Companion_instance_170 = new Companion_122(); Companion_instance_173 = new Companion_125(); Companion_instance_174 = new Companion_126(); Companion_instance_175 = new Companion_127(); Companion_instance_176 = new Companion_128(); Companion_instance_177 = new Companion_129(); Companion_instance_178 = new Companion_130(); Companion_instance_180 = new Companion_132(); Companion_instance_181 = new Companion_133(); Companion_instance_183 = new Companion_135(); Companion_instance_184 = new Companion_136(); Companion_instance_185 = new Companion_137(); Companion_instance_186 = new Companion_138(); Companion_instance_187 = new Companion_139(); Companion_instance_188 = new Companion_140(); Companion_instance_189 = new Companion_141(); Companion_instance_190 = new Companion_142(); Companion_instance_192 = new Companion_144(); Companion_instance_193 = new Companion_145(); Companion_instance_194 = new Companion_146(); Companion_instance_195 = new Companion_147(); Companion_instance_196 = new Companion_148(); Companion_instance_197 = new Companion_149(); Companion_instance_198 = new Companion_150(); Companion_instance_199 = new Companion_151(); Companion_instance_202 = new Companion_154(); Companion_instance_203 = new Companion_155(); Companion_instance_207 = new Companion_159(); Companion_instance_208 = new Companion_160(); Companion_instance_209 = new Companion_161(); Companion_instance_210 = new Companion_162(); Companion_instance_212 = new Companion_164(); Companion_instance_213 = new Companion_165(); Companion_instance_214 = new Companion_166(); Companion_instance_215 = new Companion_167(); Companion_instance_216 = new Companion_168(); Companion_instance_217 = new Companion_169(); Companion_instance_218 = new Companion_170(); Companion_instance_219 = new Companion_171(); Companion_instance_220 = new Companion_172(); Companion_instance_222 = new Companion_174(); Companion_instance_223 = new Companion_175(); Companion_instance_224 = new Companion_176(); PersonViewModelConstants_instance = new PersonViewModelConstants(); Companion_instance_225 = new Companion_177(); Companion_instance_226 = new Companion_178(); Companion_instance_227 = new Companion_179(); Companion_instance_229 = new Companion_181(); Companion_instance_230 = new Companion_182(); Companion_instance_231 = new Companion_183(); Companion_instance_232 = new Companion_184(); Companion_instance_234 = new Companion_186(); Companion_instance_236 = new Companion_188(); Companion_instance_237 = new Companion_189(); Companion_instance_238 = new Companion_190(); Companion_instance_239 = new Companion_191(); Companion_instance_240 = new Companion_192(); Companion_instance_241 = new Companion_193(); Companion_instance_242 = new Companion_194(); Companion_instance_243 = new Companion_195(); Companion_instance_245 = new Companion_197(); Companion_instance_246 = new Companion_198(); Companion_instance_247 = new Companion_199(); Companion_instance_248 = new Companion_200(); Companion_instance_250 = new Companion_202(); Companion_instance_251 = new Companion_203(); Companion_instance_252 = new Companion_204(); Companion_instance_253 = new Companion_205(); Companion_instance_254 = new Companion_206(); NAVHOST_CLEARSTACK_VIEWNAME = 'ClearStack'; Companion_instance_255 = new Companion_207(); Companion_instance_256 = new Companion_208(); Companion_instance_257 = new Companion_209(); Companion_instance_258 = new Companion_210(); //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = AuthManager; _.$_$.b = LearningSpace; _.$_$.c = Pbkdf2Params; _.$_$.d = UserSessionWithPersonAndLearningSpace; _.$_$.e = UstadAccountManager; _.$_$.f = get_DIContext; _.$_$.g = get_DIModule; _.$_$.h = get_NAVHOST_CLEARSTACK_VIEWNAME; _.$_$.i = get_NavHost; _.$_$.j = get_NavHostClearStackPlaceholder; _.$_$.k = EnrolIntoCourseUseCase; _.$_$.l = get_entries; _.$_$.m = ContentEntryGetMetadataStatus; _.$_$.n = FilterUsernameUseCase; _.$_$.o = VersionInfo; _.$_$.p = GetVersionUseCase; _.$_$.q = ClazzInviteRedeemUseCase; _.$_$.r = EnrollToCourseFromInviteCodeUseCase; _.$_$.s = GoToLearningSpaceUseCaseJs; _.$_$.t = GoToLearningSpaceUseCase; _.$_$.u = GetLocalAccountsSupportedUseCase; _.$_$.v = OnClickLinkUseCase; _.$_$.w = OpenExternalLinkUseCase; _.$_$.x = BulkAddPersonsFromLocalUriUseCaseJs; _.$_$.y = BulkAddPersonsFromLocalUriUseCase; _.$_$.z = GetShowPoweredByUseCase; _.$_$.a1 = DismissSocialWarningUseCase; _.$_$.b1 = ShowSocialWarningUseCase; _.$_$.c1 = ValidateUsernameUseCase; _.$_$.d1 = FormattedStatementResponse; _.$_$.e1 = collectAsState; _.$_$.f1 = useCoroutineScope; _.$_$.g1 = useLaunchedEffect; _.$_$.h1 = useNavControllerEffect; _.$_$.i1 = useOnUnloadEffect; _.$_$.j1 = useStringProvider; _.$_$.k1 = useViewModel; _.$_$.l1 = get_ustadViewName; _.$_$.m1 = AppUiState; _.$_$.n1 = SnackBarDispatcher; _.$_$.o1 = TabItem; _.$_$.p1 = BuildConfigMap; _.$_$.q1 = GenderConfig; _.$_$.r1 = SupportedLanguagesConfig; _.$_$.s1 = SystemUrlConfig; _.$_$.t1 = UstadBuildConfig; _.$_$.u1 = DomainDiModuleJs; _.$_$.v1 = commonClientDomainDiModule; _.$_$.w1 = commonDomainDiModule; _.$_$.x1 = StringProviderJs; _.$_$.y1 = mapLookup; _.$_$.z1 = CommandFlowUstadNavController; _.$_$.a2 = NavResultReturnerImpl; _.$_$.b2 = NavResultReturner; _.$_$.c2 = UstadMobileSystemImpl; _.$_$.d2 = BitmaskFlag; _.$_$.e2 = ListPagingSource; _.$_$.f2 = RefreshCommand; _.$_$.g2 = get_totalAttendeeStatusRecorded; _.$_$.h2 = capitalizeFirstLetter; _.$_$.i2 = chopOffSeconds_0; _.$_$.j2 = chopOffSeconds; _.$_$.k2 = displayName; _.$_$.l2 = filterByFlags; _.$_$.m2 = forEach; _.$_$.n2 = formattedString; _.$_$.o2 = getOrPut; _.$_$.p2 = hasFlag_0; _.$_$.q2 = hasOnlyOneBitSet; _.$_$.r2 = htmlToPlainText; _.$_$.s2 = initial; _.$_$.t2 = maxScoreSummedIfModule; _.$_$.u2 = penaltyPercentage; _.$_$.v2 = personFullName; _.$_$.w2 = get_progressAsFloat; _.$_$.x2 = requirePostfix; _.$_$.y2 = rgbColorProperty; _.$_$.z2 = textLength; _.$_$.a3 = toDisplayString; _.$_$.b3 = toNullIfBlank; _.$_$.c3 = toTerminologyEntries; _.$_$.d3 = get_MS_PER_HOUR; _.$_$.e3 = get_MS_PER_MIN; _.$_$.f3 = MessageIdOption2; _.$_$.g3 = SortOrderOption; _.$_$.h3 = UstadAntilog; _.$_$.i3 = avatarColorForName; _.$_$.j3 = OpenLicensesViewModel; _.$_$.k3 = AddAccountSelectNewOrExistingUiState; _.$_$.l3 = AddAccountSelectNewOrExistingViewModel; _.$_$.m3 = AddAccountSelectNewOrExistingUserTypeUiState; _.$_$.n3 = AddAccountSelectNewOrExistingUserTypeViewModel; _.$_$.o3 = AccountListUiState; _.$_$.p3 = AccountListViewModel; _.$_$.q3 = ClazzDetailUiState; _.$_$.r3 = ClazzDetailViewModel; _.$_$.s3 = ClazzDetailOverviewUiState; _.$_$.t3 = ClazzDetailOverviewViewModel; _.$_$.u3 = ClazzEditUiState; _.$_$.v3 = ClazzEditViewModel; _.$_$.w3 = ClazzGradebookUiState; _.$_$.x3 = ClazzGradebookViewModel; _.$_$.y3 = aggregateIfModule; _.$_$.z3 = displayMarkFor; _.$_$.a4 = maxScoreForBlock; _.$_$.b4 = get_thumbnailUri; _.$_$.c4 = ClazzInviteRedeemUiState; _.$_$.d4 = ClazzInviteRedeemViewModel; _.$_$.e4 = ClazzInviteViaContactUiState; _.$_$.f4 = ClazzInviteViaContactViewModel; _.$_$.g4 = ClazzInviteViaLinkUiState; _.$_$.h4 = ClazzInviteViaLinkViewModel; _.$_$.i4 = JoinWithCodeUiState; _.$_$.j4 = JoinWithCodeViewModel; _.$_$.k4 = ClazzListUiState; _.$_$.l4 = ClazzListViewModel; _.$_$.m4 = CoursePermissionDetailUiState; _.$_$.n4 = CoursePermissionDetailViewModel; _.$_$.o4 = CoursePermissionEditUiState; _.$_$.p4 = CoursePermissionEditViewModel; _.$_$.q4 = CoursePermissionListUiState; _.$_$.r4 = CoursePermissionListViewModel; _.$_$.s4 = get_blockTypeStringResource; _.$_$.t4 = defaultCourseBannerImageIndex; _.$_$.u4 = AssignmentSubmitterSummaryUiState; _.$_$.v4 = ClazzAssignmentDetailSubmissionsTabUiState; _.$_$.w4 = ClazzAssignmentDetailSubmissionsTabViewModel; _.$_$.x4 = get_listItemUiState; _.$_$.y4 = ClazzAssignmentDetailUiState; _.$_$.z4 = ClazzAssignmentDetailViewModel; _.$_$.a5 = ClazzAssignmentDetailOverviewUiState; _.$_$.b5 = ClazzAssignmentDetailOverviewViewModel; _.$_$.c5 = ClazzAssignmentDetailoverviewSubmissionUiState; _.$_$.d5 = ClazzAssignmentEditUiState; _.$_$.e5 = ClazzAssignmentEditViewModel; _.$_$.f5 = PeerReviewerAllocationEditUIState; _.$_$.g5 = PeerReviewerAllocationEditViewModel; _.$_$.h5 = ClazzAssignmentSubmitterDetailUiState; _.$_$.i5 = ClazzAssignmentSubmitterDetailViewModel; _.$_$.j5 = get_entries_1; _.$_$.k5 = values_2; _.$_$.l5 = UstadCourseAssignmentMarkListItemUiState; _.$_$.m5 = avatarColorName; _.$_$.n5 = avatarName; _.$_$.o5 = get_isFromSubmitterGroup; _.$_$.p5 = ClazzMemberListUiState; _.$_$.q5 = ClazzMemberListViewModel; _.$_$.r5 = ClazzEnrolmentEditUiState; _.$_$.s5 = ClazzEnrolmentEditViewModel; _.$_$.t5 = ClazzEnrolmentListUiState; _.$_$.u5 = ClazzEnrolmentListViewModel; _.$_$.v5 = ClazzLogListAttendanceUiState; _.$_$.w5 = ClazzLogListAttendanceViewModel; _.$_$.x5 = ClazzLogEditUiState; _.$_$.y5 = ClazzLogEditViewModel; _.$_$.z5 = ClazzLogEditAttendanceUiState; _.$_$.a6 = ClazzLogEditAttendanceViewModel; _.$_$.b6 = ContentEntryDetailUiState; _.$_$.c6 = ContentEntryDetailViewModel; _.$_$.d6 = ContentEntryDetailAttemptsPersonListUiState; _.$_$.e6 = ContentEntryDetailAttemptsPersonListViewModel; _.$_$.f6 = ContentEntryDetailAttemptsSessionListUiState; _.$_$.g6 = ContentEntryDetailAttemptsSessionListViewModel; _.$_$.h6 = ContentEntryDetailAttemptsStatementListUiState; _.$_$.i6 = ContentEntryDetailAttemptsStatementListViewModel; _.$_$.j6 = get_descriptionStringRes; _.$_$.k6 = get_statementSummary; _.$_$.l6 = get_statementSummary_0; _.$_$.m6 = get_verbDisplayName; _.$_$.n6 = ContentEntryDetailOverviewUiState; _.$_$.o6 = ContentEntryDetailOverviewViewModel; _.$_$.p6 = get_progress; _.$_$.q6 = ContentEntryEditUiState; _.$_$.r6 = ContentEntryEditViewModel; _.$_$.s6 = ContentEntryGetMetadataUiState; _.$_$.t6 = ContentEntryGetMetadataViewModel; _.$_$.u6 = GetSubtitleUiState; _.$_$.v6 = GetSubtitleViewModel; _.$_$.w6 = ContentEntryImportLinkUiState; _.$_$.x6 = ContentEntryImportLinkViewModel; _.$_$.y6 = ContentEntryListItemUiState; _.$_$.z6 = ContentEntryListUiState; _.$_$.a7 = ContentEntryListViewModel; _.$_$.b7 = get_listItemUiState_0; _.$_$.c7 = SubtitleEditUiState; _.$_$.d7 = SubtitleEditViewModel; _.$_$.e7 = get_contentTypeStringResource; _.$_$.f7 = get_stringResource; _.$_$.g7 = CourseBlockEditUiState; _.$_$.h7 = CourseBlockEditViewModel; _.$_$.i7 = TextBlockDetailUiState; _.$_$.j7 = TextBlockDetailViewModel; _.$_$.k7 = CourseGroupSetDetailUiState; _.$_$.l7 = CourseGroupSetDetailViewModel; _.$_$.m7 = CourseGroupSetEditUiState; _.$_$.n7 = CourseGroupSetEditViewModel; _.$_$.o7 = appendGroupNumIfNotInList; _.$_$.p7 = CourseGroupSetListUiState; _.$_$.q7 = CourseGroupSetListViewModel; _.$_$.r7 = CourseTerminologyEditUiState; _.$_$.s7 = CourseTerminologyEditViewModel; _.$_$.t7 = CourseTerminologyListUiState; _.$_$.u7 = CourseTerminologyListViewModel; _.$_$.v7 = DeletedItemListUiState; _.$_$.w7 = DeletedItemListViewModel; _.$_$.x7 = get_delItemContentTypeStringResource; _.$_$.y7 = CourseDiscussionDetailUiState; _.$_$.z7 = CourseDiscussionDetailViewModel; _.$_$.a8 = DiscussionPostDetailUiState2; _.$_$.b8 = DiscussionPostDetailViewModel; _.$_$.c8 = DiscussionPostEditUiState; _.$_$.d8 = DiscussionPostEditViewModel; _.$_$.e8 = EpubContentUiState; _.$_$.f8 = EpubContentViewModel; _.$_$.g8 = EpubScrollCommand; _.$_$.h8 = LoginUiState; _.$_$.i8 = LoginViewModel; _.$_$.j8 = ConversationListUiState; _.$_$.k8 = ConversationListViewModel; _.$_$.l8 = MessageListUiState; _.$_$.m8 = MessageListViewModel; _.$_$.n8 = daysUntil_0; _.$_$.o8 = ParentalConsentManagementUiState; _.$_$.p8 = ParentalConsentManagementViewModel; _.$_$.q8 = PdfContentUiState; _.$_$.r8 = PdfContentViewModel; _.$_$.s8 = PersonAccountEditUiState; _.$_$.t8 = PersonAccountEditViewModel; _.$_$.u8 = PersonUsernameAndPasswordModel; _.$_$.v8 = BulkAddPersonRunImportUiState; _.$_$.w8 = BulkAddPersonRunImportViewModel; _.$_$.x8 = BulkAddPersonSelectFileUiState; _.$_$.y8 = BulkAddPersonSelectFileViewModel; _.$_$.z8 = AddChildProfilesUiState; _.$_$.a9 = AddChildProfilesViewModel; _.$_$.b9 = EditChildProfileUiState; _.$_$.c9 = EditChildProfileViewModel; _.$_$.d9 = PersonDetailUiState; _.$_$.e9 = PersonDetailViewModel; _.$_$.f9 = PersonEditUiState; _.$_$.g9 = PersonEditViewModel; _.$_$.h9 = LearningSpaceListUiState; _.$_$.i9 = LearningSpaceListViewModel; _.$_$.j9 = PersonListUiState; _.$_$.k9 = PersonListViewModel; _.$_$.l9 = ManageAccountUiState; _.$_$.m9 = ManageAccountViewModel; _.$_$.n9 = RegisterAgeRedirectUiState; _.$_$.o9 = RegisterAgeRedirectViewModel; _.$_$.p9 = RegisterMinorWaitForParentUiState; _.$_$.q9 = RegisterMinorWaitForParentViewModel; _.$_$.r9 = RedirectViewModel; _.$_$.s9 = ScheduleEditUiState; _.$_$.t9 = ScheduleEditViewModel; _.$_$.u9 = SettingsUiState; _.$_$.v9 = SettingsViewModel; _.$_$.w9 = SignUpUiState; _.$_$.x9 = SignUpViewModel; _.$_$.y9 = SignupEnterUsernamePasswordUiState; _.$_$.z9 = SignupEnterUsernamePasswordViewModel; _.$_$.aa = SiteDetailUiState; _.$_$.ba = SiteDetailViewModel; _.$_$.ca = SiteEditUiState; _.$_$.da = SiteEditViewModel; _.$_$.ea = SiteTermsDetailUiState; _.$_$.fa = SiteTermsDetailViewModel; _.$_$.ga = get_COMMON_TOP_LEVEL_NAV_ITEMS; _.$_$.ha = LearningSpaceEnterLinkUiState; _.$_$.ia = LearningSpaceEnterLinkViewModel; _.$_$.ja = SystemPermissionDetailUiState; _.$_$.ka = SystemPermissionDetailViewModel; _.$_$.la = SystemPermissionEditUiState; _.$_$.ma = SystemPermissionEditViewModel; _.$_$.na = TimeZoneListViewModel; _.$_$.oa = TimezoneListUiState; _.$_$.pa = VideoContentUiState; _.$_$.qa = MediaPlayState; _.$_$.ra = VideoContentViewModel; _.$_$.sa = XapiContentUiState; _.$_$.ta = XapiContentViewModel; _.$_$.ua = ErrorReportUiState; _.$_$.va = HolidayCalendarDetailUIState; _.$_$.wa = HolidayCalendarEditUiState; _.$_$.xa = HolidayCalendarListUiState; _.$_$.ya = LanguageDetailUiState; _.$_$.za = LanguageEditUiState; _.$_$.ab = LanguageListUiState; _.$_$.bb = LeavingReasonEditUiState; _.$_$.cb = LeavingReasonEditViewModel; _.$_$.db = ReportFilterEditUiState; _.$_$.eb = ScopedGrantDetailUiState; _.$_$.fb = ScopedGrantEditUiState; _.$_$.gb = CompressionLevel_MEDIUM_getInstance; _.$_$.hb = LinkTarget_DEFAULT_getInstance; _.$_$.ib = AppBarColors_SELECTION_MODE_getInstance; _.$_$.jb = AppBarColors_STANDARD_getInstance; _.$_$.kb = FabIcon_ADD_getInstance; _.$_$.lb = FabIcon_EDIT_getInstance; _.$_$.mb = State_INDETERMINATE_getInstance; _.$_$.nb = MarkingType_PEERS_getInstance; _.$_$.ob = TextLimitType_LIMIT_WORDS_getInstance; _.$_$.pb = SupportedLanguagesConfig_init_$Create$; _.$_$.qb = _AssignmentSubmitterSummaryUiState___get_fileSubmissionStatusIconVisible__impl__so25h0; _.$_$.rb = _AssignmentSubmitterSummaryUiState___get_latestPrivateCommentVisible__impl__bdq0p0; _.$_$.sb = _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2; _.$_$.tb = _ContentEntryListItemUiState___get_descriptionVisible__impl__xyu083; _.$_$.ub = _ContentEntryListItemUiState___get_mimetypeVisible__impl__l8r8g7; _.$_$.vb = Companion_getInstance_18; _.$_$.wb = PersonConstants_getInstance; _.$_$.xb = SubmissionConstants_getInstance; _.$_$.yb = Companion_getInstance_55; _.$_$.zb = Companion_instance_97; _.$_$.ac = Companion_instance_101; _.$_$.bc = Companion_getInstance_74; _.$_$.cc = Companion_instance_129; _.$_$.dc = Companion_instance_130; _.$_$.ec = Companion_instance_131; _.$_$.fc = Companion_instance_132; _.$_$.gc = ClazzEnrolmentListConstants_getInstance; _.$_$.hc = ConditionConstants_getInstance; _.$_$.ic = ContentCompletionStatusConstants_getInstance; _.$_$.jc = EnrolmentPolicyConstants_getInstance; _.$_$.kc = FieldConstants_getInstance; _.$_$.lc = LicenceConstants_getInstance; _.$_$.mc = OutcomeConstants_getInstance; _.$_$.nc = PersonParentJoinConstants_getInstance; _.$_$.oc = RoleConstants_getInstance; _.$_$.pc = ScheduleConstants_getInstance; _.$_$.qc = SubmissionPolicyConstants_getInstance; _.$_$.rc = UstadMobileConstants_getInstance; _.$_$.sc = Companion_getInstance_97; _.$_$.tc = DiTag_instance; _.$_$.uc = Companion_getInstance_106; _.$_$.vc = UMFileUtil_getInstance; _.$_$.wc = Companion_instance_137; _.$_$.xc = Companion_instance_139; _.$_$.yc = Companion_instance_140; _.$_$.zc = Companion_instance_141; _.$_$.ad = Companion_instance_142; _.$_$.bd = Companion_instance_143; _.$_$.cd = Companion_instance_144; _.$_$.dd = Companion_instance_145; _.$_$.ed = Companion_instance_157; _.$_$.fd = Companion_instance_158; _.$_$.gd = Companion_instance_159; _.$_$.hd = Companion_instance_160; _.$_$.id = Companion_instance_161; _.$_$.jd = Companion_instance_162; _.$_$.kd = Companion_instance_164; _.$_$.ld = Companion_instance_166; _.$_$.md = Companion_instance_167; _.$_$.nd = Companion_instance_168; _.$_$.od = Companion_instance_169; _.$_$.pd = Companion_instance_170; _.$_$.qd = Companion_getInstance_142; _.$_$.rd = Companion_getInstance_141; _.$_$.sd = Companion_instance_173; _.$_$.td = Companion_instance_174; _.$_$.ud = Companion_instance_175; _.$_$.vd = Companion_instance_178; _.$_$.wd = Companion_instance_177; _.$_$.xd = Companion_instance_180; _.$_$.yd = Companion_instance_181; _.$_$.zd = Companion_instance_183; _.$_$.ae = Companion_instance_184; _.$_$.be = Companion_instance_176; _.$_$.ce = ClazzAssignmentViewModelConstants_getInstance; _.$_$.de = Companion_instance_185; _.$_$.ee = Companion_instance_186; _.$_$.fe = Companion_instance_187; _.$_$.ge = Companion_instance_188; _.$_$.he = Companion_instance_189; _.$_$.ie = Companion_instance_190; _.$_$.je = Companion_getInstance_161; _.$_$.ke = Companion_instance_192; _.$_$.le = Companion_instance_193; _.$_$.me = Companion_instance_194; _.$_$.ne = Companion_instance_195; _.$_$.oe = Companion_instance_196; _.$_$.pe = Companion_instance_197; _.$_$.qe = Companion_instance_198; _.$_$.re = Companion_instance_199; _.$_$.se = Companion_getInstance_170; _.$_$.te = Companion_instance_203; _.$_$.ue = Companion_getInstance_175; _.$_$.ve = Companion_instance_207; _.$_$.we = Companion_getInstance_174; _.$_$.xe = Companion_instance_208; _.$_$.ye = Companion_instance_209; _.$_$.ze = Companion_instance_210; _.$_$.af = Companion_instance_212; _.$_$.bf = Companion_instance_213; _.$_$.cf = Companion_instance_214; _.$_$.df = Companion_instance_215; _.$_$.ef = Companion_instance_216; _.$_$.ff = Companion_instance_217; _.$_$.gf = Companion_instance_218; _.$_$.hf = Companion_instance_220; _.$_$.if = Companion_getInstance_191; _.$_$.jf = Companion_instance_222; _.$_$.kf = Companion_instance_223; _.$_$.lf = Companion_instance_224; _.$_$.mf = Companion_instance_225; _.$_$.nf = Companion_instance_227; _.$_$.of = Companion_instance_229; _.$_$.pf = Companion_instance_230; _.$_$.qf = Companion_instance_231; _.$_$.rf = Companion_instance_232; _.$_$.sf = Companion_getInstance_203; _.$_$.tf = Companion_instance_234; _.$_$.uf = Companion_getInstance_205; _.$_$.vf = Companion_instance_236; _.$_$.wf = Companion_instance_237; _.$_$.xf = Companion_instance_238; _.$_$.yf = Companion_instance_240; _.$_$.zf = Companion_instance_242; _.$_$.ag = Companion_getInstance_214; _.$_$.bg = Companion_instance_245; _.$_$.cg = Companion_instance_246; _.$_$.dg = Companion_instance_247; _.$_$.eg = Companion_instance_248; _.$_$.fg = Companion_getInstance_219; _.$_$.gg = Companion_instance_250; _.$_$.hg = Companion_instance_251; _.$_$.ig = Companion_instance_252; _.$_$.jg = Companion_instance_253; _.$_$.kg = Companion_instance_254; _.$_$.lg = Companion_instance_148; _.$_$.mg = Companion_instance_149; _.$_$.ng = Companion_instance_150; _.$_$.og = Companion_instance_151; _.$_$.pg = Companion_instance_152; _.$_$.qg = Companion_instance_153; _.$_$.rg = Companion_getInstance_126; _.$_$.sg = strings_getInstance; _.$_$.tg = MR_getInstance; //endregion return _; }(module.exports, require('react'), require('react-router'), require('compressorjs'), require('libphonenumber-js'), require('react-router-dom'), require('uuid'), require('./kotlin-kotlin-stdlib.js'), require('./moko-resources-resources.js'), require('./UstadMobile-lib-database.js'), require('./Kosi-Kodein-kodein-di.js'), require('./Kosi-Kaverit-kaverit.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./door-door-runtime.js'), require('./ktor-ktor-client-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./Napier-napier-js-ir.js'), require('./kotlinx-atomicfu.js'), require('./xmlutil-serialization.js'), require('./xmlutil-core.js'), require('./uuid.js'), require('./UstadMobile-lib-util.js'), require('./Kotlin-DateTime-library-kotlinx-datetime-js-ir.js'), require('./urlencoder-urlencoder-lib.js'), require('./xmlpullparserkmp.js'), require('./ktor-ktor-utils.js'), require('./UstadMobile-lib-xxhashkmp-core.js'), require('./multiplatform-paging-root-paging-common.js'), require('./precompose-precompose-viewmodel.js'), require('./UstadMobile-lib-centralappconfigdb-common.js'), require('./MultiplatformSettings-multiplatform-settings.js'), require('./kotlin-react-core.js'), require('./kotlin-react.js'), require('./kotlin-web.js'), require('./kotlin-js.js'))); //# sourceMappingURL=UstadMobile-core.js.map