(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.$_$.ii; var SupportedLocale = kotlin_dev_icerock_moko_resources.$_$.b; var listOf = kotlin_kotlin.$_$.m8; 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.$_$.xc; var objectMeta = kotlin_kotlin.$_$.wc; var setMetadataFor = kotlin_kotlin.$_$.yc; var PluralsResource = kotlin_dev_icerock_moko_resources.$_$.e; var VOID = kotlin_kotlin.$_$.f; var getBooleanHashCode = kotlin_kotlin.$_$.sb; var equals = kotlin_kotlin.$_$.pb; var classMeta = kotlin_kotlin.$_$.mb; var IllegalStateException = kotlin_kotlin.$_$.zh; var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2; var captureStack = kotlin_kotlin.$_$.gb; var CoroutineImpl = kotlin_kotlin.$_$.wa; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ia; var PersonAuth2 = kotlin_com_ustadmobile_app_lib_database.$_$.k4; var Companion_instance = kotlin_com_ustadmobile_app_lib_database.$_$.w7; var Unit_instance = kotlin_kotlin.$_$.n5; var Companion_instance_0 = kotlin_org_kodein_di_kodein_di.$_$.c; var getKClass = kotlin_kotlin.$_$.e; var arrayOf = kotlin_kotlin.$_$.xi; 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.$_$.hc; 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.$_$.wd; var getPropertyCallableRef = kotlin_kotlin.$_$.vb; 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.$_$.fj; var objectCreate = kotlin_kotlin.$_$.vc; var Url = kotlin_io_ktor_ktor_http.$_$.v; var endsWith = kotlin_kotlin.$_$.ye; var getStringHashCode = kotlin_kotlin.$_$.wb; 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.$_$.sf; var removeSuffix = kotlin_kotlin.$_$.tf; var hashCode = kotlin_kotlin.$_$.xb; var compareValues = kotlin_kotlin.$_$.ga; var List = kotlin_kotlin.$_$.x5; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m; var collectionSizeOrDefault = kotlin_kotlin.$_$.o6; 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.$_$.p9; var plus = kotlin_kotlin.$_$.a9; 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.$_$.fi; 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.$_$.l8; var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a; var StringCompanionObject_instance = kotlin_kotlin.$_$.b5; 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.$_$.ba; var toList = kotlin_kotlin.$_$.u9; var Long = kotlin_kotlin.$_$.bi; var Comparator = kotlin_kotlin.$_$.sh; 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.$_$.tg; var to = kotlin_kotlin.$_$.oj; 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.$_$.aj; 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.$_$.f6; 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.$_$.dc; var trim = kotlin_kotlin.$_$.kh; var toString = kotlin_kotlin.$_$.cd; 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.$_$.j7; var XmlValue = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.f; var Regex_init_$Create$ = kotlin_kotlin.$_$.d1; var contains = kotlin_kotlin.$_$.re; var firstOrNull = kotlin_kotlin.$_$.o7; 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.$_$.yh; 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.$_$.p8; 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.$_$.xh; var interfaceMeta = kotlin_kotlin.$_$.yb; 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.$_$.h5; 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.$_$.u8; var XapiSessionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.t2; var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.f2; var compareTo = kotlin_kotlin.$_$.nb; var mapOf_0 = kotlin_kotlin.$_$.o8; 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.$_$.ad; var toString_0 = kotlin_kotlin.$_$.nj; var CancellationException = kotlin_kotlin.$_$.ha; var Enum = kotlin_kotlin.$_$.vh; 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.$_$.kb; 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.$_$.b9; 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.$_$.ab; 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.$_$.n8; var coerceAtLeast = kotlin_kotlin.$_$.kd; 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.$_$.hg; var Collection = kotlin_kotlin.$_$.q5; var ContentEntryParentChildJoin = kotlin_com_ustadmobile_app_lib_database.$_$.i3; var toMutableList = kotlin_kotlin.$_$.y9; var checkIndexOverflow = kotlin_kotlin.$_$.m6; var Companion_instance_14 = kotlin_com_ustadmobile_app_lib_database.$_$.g7; var getOrNull = kotlin_kotlin.$_$.u7; var Default_getInstance_0 = kotlin_kotlin.$_$.u4; var decodeToString = kotlin_kotlin.$_$.te; var PersonPasskey = kotlin_com_ustadmobile_app_lib_database.$_$.o4; var split = kotlin_kotlin.$_$.ag; var startsWith = kotlin_kotlin.$_$.bg; 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.$_$.y8; var emptySet = kotlin_kotlin.$_$.l7; var first_0 = kotlin_kotlin.$_$.q7; var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.f; var charSequenceGet = kotlin_kotlin.$_$.jb; var Char = kotlin_kotlin.$_$.qh; var isDigit = kotlin_kotlin.$_$.gf; var toString_1 = kotlin_kotlin.$_$.c3; var isLetter = kotlin_kotlin.$_$.if; var joinToString = kotlin_kotlin.$_$.b8; var Companion_instance_17 = kotlin_com_ustadmobile_app_lib_database.$_$.r6; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2; var indexOf = kotlin_kotlin.$_$.ef; var emptyMap = kotlin_kotlin.$_$.k7; var first_1 = kotlin_kotlin.$_$.r7; var distinct = kotlin_kotlin.$_$.g7; var until = kotlin_kotlin.$_$.sd; var PeerReviewerAllocation = kotlin_com_ustadmobile_app_lib_database.$_$.i4; var Companion_instance_18 = kotlin_com_ustadmobile_app_lib_database.$_$.t7; var toMap = kotlin_kotlin.$_$.x9; var checkCountOverflow = kotlin_kotlin.$_$.l6; var shuffled = kotlin_kotlin.$_$.m9; 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_7 = kotlin_com_ustadmobile_app_lib_database.$_$.i8; var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.t1; var filterNotNull = kotlin_kotlin.$_$.n7; var Iterator = kotlin_kotlin.$_$.u5; var numberToLong = kotlin_kotlin.$_$.uc; var isWhitespace = kotlin_kotlin.$_$.mf; var setOf = kotlin_kotlin.$_$.l9; var firstOrNull_0 = kotlin_kotlin.$_$.af; 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_8 = kotlin_kotlin.$_$.f5; var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.s2; var XapiEntityObjectTypeFlags_instance = kotlin_com_ustadmobile_app_lib_database.$_$.j6; var plus_3 = kotlin_kotlin.$_$.x8; 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.$_$.vf; var toBooleanStrictOrNull = kotlin_kotlin.$_$.ng; var listOfNotNull = kotlin_kotlin.$_$.k8; 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.$_$.d5; 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.$_$.hj; 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.$_$.ji; var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t; var getNumberHashCode = kotlin_kotlin.$_$.ub; 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.$_$.nh; 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.$_$.ff; var toInt = kotlin_kotlin.$_$.vg; var sorted = kotlin_kotlin.$_$.q9; 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.$_$.rb; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1; var indexOf_0 = kotlin_kotlin.$_$.df; var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.w2; var lastIndexOf = kotlin_kotlin.$_$.of; var HashMap_init_$Create$ = kotlin_kotlin.$_$.p; var round = kotlin_kotlin.$_$.gd; var lazy_0 = kotlin_kotlin.$_$.gj; var roundToInt = kotlin_kotlin.$_$.fd; var substringBefore = kotlin_kotlin.$_$.kg; var Companion_instance_30 = kotlin_com_ustadmobile_app_lib_database.$_$.y6; var timeout = kotlin_io_ktor_ktor_client_core.$_$.i; var Companion_instance_31 = kotlin_com_ustadmobile_app_lib_database.$_$.g8; var Companion_getInstance_9 = 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_10 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.d; var minus = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.l; var toMap_0 = kotlin_kotlin.$_$.w9; var substringBefore_0 = kotlin_kotlin.$_$.jg; var toMutableSet = kotlin_kotlin.$_$.aa; var titlecase = kotlin_kotlin.$_$.mg; var isLowerCase = kotlin_kotlin.$_$.kf; 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.$_$.dd; var padStart = kotlin_kotlin.$_$.rf; var substringAfterLast = kotlin_kotlin.$_$.eg; var equals_0 = kotlin_kotlin.$_$.ze; var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1; var toLong_0 = kotlin_kotlin.$_$.yg; var LanguageDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.q5; var LeavingReason = kotlin_com_ustadmobile_app_lib_database.$_$.g4; var Companion_getInstance_11 = kotlin_com_ustadmobile_app_lib_database.$_$.s7; var lastOrNull = kotlin_kotlin.$_$.h8; var KProperty0 = kotlin_kotlin.$_$.vd; var THROW_ISE = kotlin_kotlin.$_$.ki; var getLocalDelegateReference = kotlin_kotlin.$_$.tb; 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.$_$.z9; var Companion_instance_32 = kotlin_com_ustadmobile_app_lib_database.$_$.l6; var toBoolean = kotlin_kotlin.$_$.og; 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.$_$.r8; 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 Companion_getInstance_12 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s; var shareIn = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1; var CoursePicture = kotlin_com_ustadmobile_app_lib_database.$_$.x3; var shallowCopy_3 = kotlin_com_ustadmobile_app_lib_database.$_$.g2; var ClazzWithHolidayCalendarAndAndTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.d3; var getDefaultTimeZoneId = kotlin_com_ustadmobile_app_lib_util.$_$.a; var CourseBlockPicture = kotlin_com_ustadmobile_app_lib_database.$_$.r3; var CourseBlockAndEditEntities = kotlin_com_ustadmobile_app_lib_database.$_$.x; var Schedule = kotlin_com_ustadmobile_app_lib_database.$_$.r4; var CourseTerminology = kotlin_com_ustadmobile_app_lib_database.$_$.y3; var Companion_instance_33 = kotlin_com_ustadmobile_app_lib_database.$_$.v6; var Companion_getInstance_13 = kotlin_com_ustadmobile_app_lib_database.$_$.a6; var shallowCopy_4 = kotlin_com_ustadmobile_app_lib_database.$_$.b2; 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_34 = kotlin_com_ustadmobile_app_lib_database.$_$.o7; var $serializer_getInstance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.e8; var $serializer_getInstance_8 = kotlin_com_ustadmobile_app_lib_database.$_$.z5; var $serializer_getInstance_9 = kotlin_com_ustadmobile_app_lib_database.$_$.u6; 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.$_$.i8; var ClazzDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.l5; var PermissionPair = kotlin_com_ustadmobile_app_lib_database.$_$.d1; var first_2 = kotlin_kotlin.$_$.s7; var eachCount = kotlin_kotlin.$_$.i7; 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.$_$.kj; 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_14 = 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_35 = 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_36 = 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_37 = kotlin_com_ustadmobile_app_lib_database.$_$.t6; var Companion_instance_38 = 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_39 = kotlin_com_ustadmobile_app_lib_database.$_$.j8; var Companion_instance_40 = 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_41 = kotlin_com_ustadmobile_app_lib_database.$_$.x5; var setOf_0 = kotlin_kotlin.$_$.k9; 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_42 = kotlin_com_ustadmobile_app_lib_database.$_$.i7; var Companion_instance_43 = kotlin_com_ustadmobile_app_lib_database.$_$.j7; var Companion_instance_44 = 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_45 = kotlin_com_ustadmobile_app_lib_database.$_$.q7; var printStackTrace = kotlin_kotlin.$_$.jj; var XML = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.d; 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.$_$.di; var shallowCopy_11 = kotlin_com_ustadmobile_app_lib_database.$_$.x1; var Companion_instance_46 = 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.$_$.cb; var Settings = kotlin_com_russhwolf_multiplatform_settings.$_$.a; var get_lastIndex = kotlin_kotlin.$_$.f8; var SiteTermsAndLangName = kotlin_com_ustadmobile_app_lib_database.$_$.j1; var contains_0 = kotlin_kotlin.$_$.p6; var SiteTerms = kotlin_com_ustadmobile_app_lib_database.$_$.u4; var Companion_instance_47 = kotlin_com_ustadmobile_app_lib_database.$_$.h8; var shallowCopy_12 = kotlin_com_ustadmobile_app_lib_database.$_$.d2; var mutableMapOf = kotlin_kotlin.$_$.s8; var decodeBase64Bytes = kotlin_io_ktor_ktor_utils.$_$.u; 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.$_$.mc; var KMutableProperty0 = kotlin_kotlin.$_$.ud; 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 CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1; 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_15 = 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.$_$.z4; 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_1 = kotlin_kotlin.$_$.c5; 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(ValidateUsernameUseCase, 'ValidateUsernameUseCase', classMeta, VOID, VOID, ValidateUsernameUseCase); 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.mor(localUrisToSave, onTransferJobItemCreated, $completion) : $super.mor.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.fox(items, batchUuid, chunkSize, tableId, entityUid, $completion) : $super.fox.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.vox(url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion) : $super.vox.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.op1(fromUri, toUri, params, onProgress, $completion) : $super.op1.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_54}); 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.jp3(subtitleTrackUri, filename, locale, $completion) : $super.jp3.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(CreatePasskeyUseCase, 'CreatePasskeyUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CredentialResult, 'CredentialResult', classMeta); setMetadataFor(PasswordCredentialResult, 'PasswordCredentialResult', classMeta, CredentialResult); setMetadataFor(PasskeyCredentialResult, 'PasskeyCredentialResult', classMeta, CredentialResult); setMetadataFor(Error_1, '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.yph(uiLang, currentDestination, navController, navArgs) : $super.yph.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(GetDefaultDestinationUseCase, 'GetDefaultDestinationUseCase', classMeta); setMetadataFor(OnClickLinkUseCase, 'OnClickLinkUseCase', classMeta); setMetadataFor(Companion_49, 'Companion', objectMeta); setMetadataFor(LinkTarget, 'LinkTarget', classMeta, Enum); setMetadataFor(OpenExternalLinkUseCase, 'OpenExternalLinkUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$35, '$invokeCOROUTINE$35', 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$36, '$invokeCOROUTINE$36', 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.fpn(uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) : $super.fpn.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$40, '$invokeCOROUTINE$40', 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_0, 'ValidateUsernameUseCase', classMeta, VOID, VOID, ValidateUsernameUseCase_0); 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$41, '$invokeCOROUTINE$41', 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$42, '$storeStatementsCOROUTINE$42', classMeta, CoroutineImpl); setMetadataFor($postCOROUTINE$44, '$postCOROUTINE$44', classMeta, CoroutineImpl); setMetadataFor(XapiStatementResource, 'XapiStatementResource', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 3]); setMetadataFor(XapiGroupAndPersonUidMap, 'XapiGroupAndPersonUidMap', classMeta); setMetadataFor($invokeCOROUTINE$46, '$invokeCOROUTINE$46', classMeta, CoroutineImpl); setMetadataFor(CreateXapiGroupForCourseGroupUseCase, 'CreateXapiGroupForCourseGroupUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($insertOrUpdateActorsIfNameChangedCOROUTINE$47, '$insertOrUpdateActorsIfNameChangedCOROUTINE$47', classMeta, CoroutineImpl); setMetadataFor($insertOrUpdateIfLastModChangedCOROUTINE$48, '$insertOrUpdateIfLastModChangedCOROUTINE$48', 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_86}); setMetadataFor(XapiInteractionTypeSerializer, 'XapiInteractionTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_70, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiObjectType, 'XapiObjectType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_87}); 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_95().sq3_1 : goOptions; var tmp; if ($super === VOID) { this.bq9(viewName, args, goOptions); tmp = Unit_instance; } else { tmp = $super.bq9.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$49, '$collectCOROUTINE$49', 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$50, '$verifySiteCOROUTINE$50', 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$51, '$collectCOROUTINE$51', 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$52, '$insertPersonAndGroupCOROUTINE$52', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfFalseCOROUTINE$53, '$localFirstThenRepoIfFalseCOROUTINE$53', classMeta, CoroutineImpl); setMetadataFor($grantScopedPermissionCOROUTINE$54, '$grantScopedPermissionCOROUTINE$54', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfNullCOROUTINE$55, '$localFirstThenRepoIfNullCOROUTINE$55', classMeta, CoroutineImpl); setMetadataFor(Companion_90, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(IStringValues, 'IStringValues', interfaceMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_107}); 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$59, '$collectCOROUTINE$59', 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$56, '$getJsonCOROUTINE$56', classMeta, CoroutineImpl); setMetadataFor($setJsonCOROUTINE$57, '$setJsonCOROUTINE$57', classMeta, CoroutineImpl); setMetadataFor($loadEntityCOROUTINE$58, '$loadEntityCOROUTINE$58', 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(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$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$60, '$getTitleForCoursePermissionCOROUTINE$60', 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$o$collect$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$61, '$collectCOROUTINE$61', 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, '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(_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$62, '$collectCOROUTINE$62', 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$63, '$collectCOROUTINE$63', 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, 'ClazzDetailOverviewViewModel$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, 'ClazzDetailOverviewViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_114, 'Companion', objectMeta); 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, 'ClazzDetailOverviewViewModel', classMeta, DetailViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzDetailOverviewUiState, 'ClazzDetailOverviewUiState', classMeta, VOID, VOID, ClazzDetailOverviewUiState); 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_115, '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$64, '$updateCourseBlockListCOROUTINE$64', classMeta, CoroutineImpl); setMetadataFor(ClazzEditViewModel, 'ClazzEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(CourseBlockUiState, 'CourseBlockUiState', classMeta); setMetadataFor(Companion_116, 'Companion', objectMeta); setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEditUiState, 'ClazzEditUiState', classMeta, VOID, VOID, ClazzEditUiState, VOID, {0: $serializer_getInstance_71}); setMetadataFor($loadCOROUTINE$65, '$loadCOROUTINE$65', classMeta, CoroutineImpl); setMetadataFor($loadHttpCOROUTINE$66, '$loadHttpCOROUTINE$66', 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_117, '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_118, '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_119, 'Companion', objectMeta); setMetadataFor(ClazzInviteViaContactViewModel$onClickSend$slambda, 'ClazzInviteViaContactViewModel$onClickSend$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($sendContactsToServerCOROUTINE$67, '$sendContactsToServerCOROUTINE$67', 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_120, 'Companion', objectMeta); setMetadataFor(ClazzInviteViaLinkViewModel, 'ClazzInviteViaLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzInviteViaLinkUiState, 'ClazzInviteViaLinkUiState', classMeta, VOID, VOID, ClazzInviteViaLinkUiState); setMetadataFor(Companion_121, '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_122, '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_123, '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_124, '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_125, '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_126, '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_127, '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_128, '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_129, '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_130, '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$68, '$collectCOROUTINE$68', 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_131, '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_132, '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_133, 'Companion', objectMeta); setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentEditUiState, 'ClazzAssignmentEditUiState', classMeta, VOID, VOID, ClazzAssignmentEditUiState, VOID, {0: $serializer_getInstance_72}); 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_134, '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_135, '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_136, '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_137, '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$69, '$collectCOROUTINE$69', 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$70, '$collectCOROUTINE$70', 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_138, '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_139, '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_140, '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_141, '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$71, '$savePersonAndAttendanceRecordsCOROUTINE$71', classMeta, CoroutineImpl); setMetadataFor($commitAttendanceRecordsToStateCOROUTINE$72, '$commitAttendanceRecordsToStateCOROUTINE$72', classMeta, CoroutineImpl); setMetadataFor(ClazzLogEditAttendanceViewModel, 'ClazzLogEditAttendanceViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 0, 3, 6]); setMetadataFor(ClazzLogEditAttendanceUiState, 'ClazzLogEditAttendanceUiState', classMeta, VOID, VOID, ClazzLogEditAttendanceUiState); setMetadataFor(Companion_142, '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_143, '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$73, '$buildSortOptionsCOROUTINE$73', 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_144, '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_145, '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_146, '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_147, '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_148, '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_149, '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_150, '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_151, '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_152, 'Companion', objectMeta); setMetadataFor(ContentEntryListUiState, 'ContentEntryListUiState', classMeta, VOID, VOID, ContentEntryListUiState); setMetadataFor(Companion_153, 'Companion', objectMeta); setMetadataFor($serializer_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryListSelectedItem, 'ContentEntryListSelectedItem', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_73}); 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_154, '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_155, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(CompletionCriteria, 'CompletionCriteria', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_172}); 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_156, '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_157, 'Companion', objectMeta); setMetadataFor($serializer_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockEditUiState, 'CourseBlockEditUiState', classMeta, VOID, VOID, CourseBlockEditUiState, VOID, {0: $serializer_getInstance_74}); 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_158, '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_159, '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_160, '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_161, '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_162, '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_163, '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_164, '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_165, '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_166, '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_167, '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$74, '$submitReplyCOROUTINE$74', 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_168, '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_169, '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_170, 'Companion', objectMeta); setMetadataFor(Companion_171, 'Companion', objectMeta); setMetadataFor(LoginViewModel$slambda, '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(LoginViewModel, 'LoginViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(LoginUiState, 'LoginUiState', classMeta, VOID, VOID, LoginUiState); setMetadataFor(Companion_172, '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_173, '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_174, '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_175, '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_176, '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_177, 'Companion', objectMeta); setMetadataFor($serializer_63, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonUsernameAndPasswordModel, 'PersonUsernameAndPasswordModel', classMeta, VOID, VOID, PersonUsernameAndPasswordModel, VOID, {0: $serializer_getInstance_75}); setMetadataFor(Companion_178, '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_179, 'Companion', objectMeta); setMetadataFor($serializer_64, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonRunImportUiState, 'BulkAddPersonRunImportUiState', classMeta, VOID, VOID, BulkAddPersonRunImportUiState, VOID, {0: $serializer_getInstance_76}); setMetadataFor(Companion_180, '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_181, '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$75, '$updateChildProfileListCOROUTINE$75', 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_182, '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_183, '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_184, '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_185, '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(EmptyPagingSource, 'EmptyPagingSource', classMeta, PagingSource, VOID, EmptyPagingSource, VOID, VOID, [1]); 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_186, '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(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_187, '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_188, 'Companion', objectMeta); setMetadataFor(RegisterAgeRedirectViewModel, 'RegisterAgeRedirectViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterAgeRedirectUiState, 'RegisterAgeRedirectUiState', classMeta, VOID, VOID, RegisterAgeRedirectUiState); setMetadataFor(Companion_189, 'Companion', objectMeta); setMetadataFor(RegisterMinorWaitForParentViewModel, 'RegisterMinorWaitForParentViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterMinorWaitForParentUiState, 'RegisterMinorWaitForParentUiState', classMeta, VOID, VOID, RegisterMinorWaitForParentUiState); setMetadataFor(Companion_190, '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_191, '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_192, 'Companion', objectMeta); setMetadataFor(SettingsViewModel$slambda$slambda, 'SettingsViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_193, '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_194, '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_195, 'Companion', objectMeta); setMetadataFor(SignUpViewModel$slambda, '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($enrollToCourseFromInviteUidCOROUTINE$77, '$enrollToCourseFromInviteUidCOROUTINE$77', classMeta, CoroutineImpl); setMetadataFor(SignUpViewModel, 'SignUpViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(SignUpUiState, 'SignUpUiState', classMeta, VOID, VOID, SignUpUiState); setMetadataFor(Companion_196, '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(SignupEnterUsernamePasswordViewModel, 'SignupEnterUsernamePasswordViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(SignupEnterUsernamePasswordUiState, 'SignupEnterUsernamePasswordUiState', classMeta, VOID, VOID, SignupEnterUsernamePasswordUiState); 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_197, '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_198, '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_199, '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_200, '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_201, '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_202, '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_203, '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_204, '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_205, '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$78, '$encryptPbkdf2COROUTINE$78', classMeta, CoroutineImpl); setMetadataFor($doublePbkdf2HashAsBase64COROUTINE$80, '$doublePbkdf2HashAsBase64COROUTINE$80', 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$81, '$invokeCOROUTINE$81', 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$82, '$invokeCOROUTINE$82', 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$83, '$invokeCOROUTINE$83', classMeta, CoroutineImpl); setMetadataFor(CompressImageUseCaseJs, 'CompressImageUseCaseJs', classMeta, VOID, [CompressUseCase], CompressImageUseCaseJs, VOID, VOID, [4]); setMetadataFor(Companion_206, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$84, '$invokeCOROUTINE$84', classMeta, CoroutineImpl); setMetadataFor(ContentEntryGetMetaDataFromUriUseCaseJs, 'ContentEntryGetMetaDataFromUriUseCaseJs', classMeta, VOID, [ContentEntryGetMetaDataFromUriUseCase], VOID, VOID, VOID, [4]); setMetadataFor($invokeCOROUTINE$85, '$invokeCOROUTINE$85', classMeta, CoroutineImpl); setMetadataFor(GetSubtitleTrackFromUriUseCaseJs, 'GetSubtitleTrackFromUriUseCaseJs', classMeta, VOID, [GetSubtitleTrackFromUriUseCase], VOID, VOID, VOID, [3]); setMetadataFor($invokeCOROUTINE$86, '$invokeCOROUTINE$86', 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$87, '$invokeCOROUTINE$87', 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$88, '$invokeCOROUTINE$88', 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$89, '$invokeCOROUTINE$89', 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_207, 'Companion', objectMeta); setMetadataFor(UstadMobileSystemImpl, 'UstadMobileSystemImpl', classMeta, UstadMobileSystemCommon, VOID, VOID, VOID, VOID, [2]); setMetadataFor(StringProviderJs, 'StringProviderJs', classMeta); setMetadataFor(Companion_208, 'Companion', objectMeta); setMetadataFor(SavedStateHandle2, 'SavedStateHandle2', classMeta); setMetadataFor(UrlKmpJs, 'UrlKmpJs', classMeta); setMetadataFor(Companion_209, '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.zmh_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.ami_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.bmi_1 = new Impl(this.ami_1, this.zmh_1); this.cmi_1 = new StringResource('app_name', this.bmi_1); this.dmi_1 = new StringResource('blank', this.bmi_1); this.emi_1 = new StringResource('login', this.bmi_1); this.fmi_1 = new StringResource('got_it', this.bmi_1); this.gmi_1 = new StringResource('learn_more', this.bmi_1); this.hmi_1 = new StringResource('be_careful_interacting_online', this.bmi_1); this.imi_1 = new StringResource('be_careful_not_to_share', this.bmi_1); this.jmi_1 = new StringResource('share_app', this.bmi_1); this.kmi_1 = new StringResource('send_apk_file', this.bmi_1); this.lmi_1 = new StringResource('send_app_link', this.bmi_1); this.mmi_1 = new StringResource('error', this.bmi_1); this.nmi_1 = new StringResource('create_backup', this.bmi_1); this.omi_1 = new StringResource('create_backup_description', this.bmi_1); this.pmi_1 = new StringResource('err_registering_new_user', this.bmi_1); this.qmi_1 = new StringResource('register_empty_fields', this.bmi_1); this.rmi_1 = new StringResource('register_incorrect_email', this.bmi_1); this.smi_1 = new StringResource('group_activity', this.bmi_1); this.tmi_1 = new StringResource('select_group_members', this.bmi_1); this.umi_1 = new StringResource('confirm_delete_message', this.bmi_1); this.vmi_1 = new StringResource('wrong_user_pass_combo', this.bmi_1); this.wmi_1 = new StringResource('login_network_error', this.bmi_1); this.xmi_1 = new StringResource('download', this.bmi_1); this.ymi_1 = new StringResource('downloaded', this.bmi_1); this.zmi_1 = new StringResource('recycled', this.bmi_1); this.amj_1 = new StringResource('libraries', this.bmi_1); this.bmj_1 = new StringResource('pause_download', this.bmi_1); this.cmj_1 = new StringResource('ok', this.bmi_1); this.dmj_1 = new StringResource('confirm', this.bmi_1); this.emj_1 = new StringResource('cancel', this.bmi_1); this.fmj_1 = new StringResource('canceled', this.bmi_1); this.gmj_1 = new StringResource('delete', this.bmi_1); this.hmj_1 = new StringResource('deleted', this.bmi_1); this.imj_1 = new StringResource('new_tab', this.bmi_1); this.jmj_1 = new StringResource('loading', this.bmi_1); this.kmj_1 = new StringResource('deleting', this.bmi_1); this.lmj_1 = new StringResource('processing', this.bmi_1); this.mmj_1 = new StringResource('uploading', this.bmi_1); this.nmj_1 = new StringResource('error_opening_file', this.bmi_1); this.omj_1 = new StringResource('logout', this.bmi_1); this.pmj_1 = new StringResource('about', this.bmi_1); this.qmj_1 = new StringResource('download_all', this.bmi_1); this.rmj_1 = new StringResource('next', this.bmi_1); this.smj_1 = new StringResource('previous', this.bmi_1); this.tmj_1 = new StringResource('back', this.bmi_1); this.umj_1 = new StringResource('username', this.bmi_1); this.vmj_1 = new StringResource('password', this.bmi_1); this.wmj_1 = new StringResource('confirm_password', this.bmi_1); this.xmj_1 = new StringResource('last_name', this.bmi_1); this.ymj_1 = new StringResource('first_name', this.bmi_1); this.zmj_1 = new StringResource('least_recent', this.bmi_1); this.amk_1 = new StringResource('by_score', this.bmi_1); this.bmk_1 = new StringResource('by_completion', this.bmi_1); this.cmk_1 = new StringResource('by_recent_attempt', this.bmi_1); this.dmk_1 = new StringResource('by_timestamp', this.bmi_1); this.emk_1 = new StringResource('register_now', this.bmi_1); this.fmk_1 = new StringResource('new_password', this.bmi_1); this.gmk_1 = new StringResource('phone_memory', this.bmi_1); this.hmk_1 = new StringResource('memory_card', this.bmi_1); this.imk_1 = new StringResource('device', this.bmi_1); this.jmk_1 = new StringResource('register', this.bmi_1); this.kmk_1 = new StringResource('phone_number', this.bmi_1); this.lmk_1 = new StringResource('name_key', this.bmi_1); this.mmk_1 = new StringResource('description', this.bmi_1); this.nmk_1 = new StringResource('male', this.bmi_1); this.omk_1 = new StringResource('female', this.bmi_1); this.pmk_1 = new StringResource('other', this.bmi_1); this.qmk_1 = new StringResource('unset', this.bmi_1); this.rmk_1 = new StringResource('settings', this.bmi_1); this.smk_1 = new StringResource('language', this.bmi_1); this.tmk_1 = new StringResource('add_a_new_language', this.bmi_1); this.umk_1 = new StringResource('add_new_language', this.bmi_1); this.vmk_1 = new StringResource('select_language', this.bmi_1); this.wmk_1 = new StringResource('languages', this.bmi_1); this.xmk_1 = new StringResource('edit_language', this.bmi_1); this.ymk_1 = new StringResource('two_letter_code', this.bmi_1); this.zmk_1 = new StringResource('three_letter_code', this.bmi_1); this.aml_1 = new StringResource('languages_description', this.bmi_1); this.bml_1 = new StringResource('advanced', this.bmi_1); this.cml_1 = new StringResource('optional', this.bmi_1); this.dml_1 = new StringResource('email', this.bmi_1); this.eml_1 = new StringResource('regcode', this.bmi_1); this.fml_1 = new StringResource('home', this.bmi_1); this.gml_1 = new StringResource('phone', this.bmi_1); this.hml_1 = new StringResource('attendance', this.bmi_1); this.iml_1 = new StringResource('classes', this.bmi_1); this.jml_1 = new StringResource('exams', this.bmi_1); this.kml_1 = new StringResource('reports', this.bmi_1); this.lml_1 = new StringResource('choose_template', this.bmi_1); this.mml_1 = new StringResource('save_as_template', this.bmi_1); this.nml_1 = new StringResource('contents', this.bmi_1); this.oml_1 = new StringResource('students', this.bmi_1); this.pml_1 = new StringResource('add_a_student', this.bmi_1); this.qml_1 = new StringResource('forgot_password', this.bmi_1); this.rml_1 = new StringResource('notifications', this.bmi_1); this.sml_1 = new StringResource('account', this.bmi_1); this.tml_1 = new StringResource('accounts', this.bmi_1); this.uml_1 = new StringResource('share', this.bmi_1); this.vml_1 = new StringResource('send', this.bmi_1); this.wml_1 = new StringResource('open', this.bmi_1); this.xml_1 = new StringResource('downloading', this.bmi_1); this.yml_1 = new StringResource('waiting', this.bmi_1); this.zml_1 = new StringResource('waiting_for_connection', this.bmi_1); this.amm_1 = new StringResource('queued', this.bmi_1); this.bmm_1 = new StringResource('failed', this.bmi_1); this.cmm_1 = new StringResource('passed', this.bmi_1); this.dmm_1 = new StringResource('success', this.bmi_1); this.emm_1 = new StringResource('failure', this.bmi_1); this.fmm_1 = new StringResource('incomplete', this.bmi_1); this.gmm_1 = new StringResource('completed', this.bmi_1); this.hmm_1 = new StringResource('experience', this.bmi_1); this.imm_1 = new StringResource('answered', this.bmi_1); this.jmm_1 = new StringResource('select_subtitle_video', this.bmi_1); this.kmm_1 = new StringResource('no_subtitle', this.bmi_1); this.lmm_1 = new StringResource('no_video_file_found', this.bmi_1); this.mmm_1 = new StringResource('content_from_file', this.bmi_1); this.nmm_1 = new StringResource('content_from_link', this.bmi_1); this.omm_1 = new StringResource('import_from_file', this.bmi_1); this.pmm_1 = new StringResource('import_from_link', this.bmi_1); this.qmm_1 = new StringResource('import_content', this.bmi_1); this.rmm_1 = new StringResource('update_content', this.bmi_1); this.smm_1 = new StringResource('publicly_accessible', this.bmi_1); this.tmm_1 = new StringResource('title', this.bmi_1); this.umm_1 = new StringResource('licence', this.bmi_1); this.vmm_1 = new StringResource('ebook', this.bmi_1); this.wmm_1 = new StringResource('interactive', this.bmi_1); this.xmm_1 = new StringResource('collection', this.bmi_1); this.ymm_1 = new StringResource('document', this.bmi_1); this.zmm_1 = new StringResource('article', this.bmi_1); this.amn_1 = new StringResource('audio', this.bmi_1); this.bmn_1 = new StringResource('move', this.bmi_1); this.cmn_1 = new StringResource('hide', this.bmi_1); this.dmn_1 = new StringResource('unhide', this.bmi_1); this.emn_1 = new StringResource('compress', this.bmi_1); this.fmn_1 = new StringResource('and_key', this.bmi_1); this.gmn_1 = new StringResource('added', this.bmi_1); this.hmn_1 = new StringResource('attempts', this.bmi_1); this.imn_1 = new StringResource('add_link_description', this.bmi_1); this.jmn_1 = new StringResource('add_gallery_description', this.bmi_1); this.kmn_1 = new StringResource('add_file_description', this.bmi_1); this.lmn_1 = new StringResource('error_this_device_doesnt_support_bluetooth_sharing', this.bmi_1); this.mmn_1 = new StringResource('share_offline_zip_checkbox_label', this.bmi_1); this.nmn_1 = new StringResource('share_offline_dialog_message', this.bmi_1); this.omn_1 = new StringResource('preparing', this.bmi_1); this.pmn_1 = new StringResource('fixed_date', this.bmi_1); this.qmn_1 = new StringResource('relative_date', this.bmi_1); this.rmn_1 = new StringResource('field_required_prompt', this.bmi_1); this.smn_1 = new StringResource('field_password_error_min', this.bmi_1); this.tmn_1 = new StringResource('filed_password_no_match', this.bmi_1); this.umn_1 = new StringResource('update', this.bmi_1); this.vmn_1 = new StringResource('profile', this.bmi_1); this.wmn_1 = new StringResource('dialog_download_from_playstore_message', this.bmi_1); this.xmn_1 = new StringResource('dialog_download_from_playstore_ok', this.bmi_1); this.ymn_1 = new StringResource('dialog_download_from_playstore_cancel', this.bmi_1); this.zmn_1 = new StringResource('accept', this.bmi_1); this.amo_1 = new StringResource('also_available_in', this.bmi_1); this.bmo_1 = new StringResource('created_partnership', this.bmi_1); this.cmo_1 = new StringResource('onboarding_get_started_label', this.bmi_1); this.dmo_1 = new StringResource('lets_get_started_label', this.bmi_1); this.emo_1 = new StringResource('onboarding_headline1', this.bmi_1); this.fmo_1 = new StringResource('onboarding_subheadline1', this.bmi_1); this.gmo_1 = new StringResource('onboarding_headline2', this.bmi_1); this.hmo_1 = new StringResource('onboarding_subheadline2', this.bmi_1); this.imo_1 = new StringResource('onboarding_headline3', this.bmi_1); this.jmo_1 = new StringResource('onboarding_subheadline3', this.bmi_1); this.kmo_1 = new StringResource('download_continue_stacked_label', this.bmi_1); this.lmo_1 = new StringResource('im_an_individual_learner', this.bmi_1); this.mmo_1 = new StringResource('im_an_individual_learner_description', this.bmi_1); this.nmo_1 = new StringResource('i_want_to_join_my_organization_school', this.bmi_1); this.omo_1 = new StringResource('i_want_to_join_my_organization_school_description', this.bmi_1); this.pmo_1 = new StringResource('i_want_to_add_my_organization_school', this.bmi_1); this.qmo_1 = new StringResource('i_want_to_add_my_organization_school_description', this.bmi_1); this.rmo_1 = new StringResource('individual_action_title', this.bmi_1); this.smo_1 = new StringResource('create_new_local_account_title', this.bmi_1); this.tmo_1 = new StringResource('create_new_local_account_description', this.bmi_1); this.umo_1 = new StringResource('restore_local_account_title', this.bmi_1); this.vmo_1 = new StringResource('restore_local_account_description', this.bmi_1); this.wmo_1 = new StringResource('download_continue_btn_label', this.bmi_1); this.xmo_1 = new StringResource('download_wifi_only', this.bmi_1); this.ymo_1 = new StringResource('download_calculating', this.bmi_1); this.zmo_1 = new StringResource('download_state_download', this.bmi_1); this.amp_1 = new StringResource('download_state_downloading', this.bmi_1); this.bmp_1 = new StringResource('download_state_downloaded', this.bmi_1); this.cmp_1 = new StringResource('download_downloading_placeholder', this.bmi_1); this.dmp_1 = new StringResource('download_summary_title', this.bmi_1); this.emp_1 = new StringResource('download_cancel_label', this.bmi_1); this.fmp_1 = new StringResource('download_pause_download', this.bmi_1); this.gmp_1 = new StringResource('download_storage_option_device', this.bmi_1); this.hmp_1 = new StringResource('download_locally_availability', this.bmi_1); this.imp_1 = new StringResource('download_cloud_availability', this.bmi_1); this.jmp_1 = new StringResource('insufficient_space', this.bmi_1); this.kmp_1 = new StringResource('download_entry_state_paused', this.bmi_1); this.lmp_1 = new StringResource('get_app', this.bmi_1); this.mmp_1 = new StringResource('no_app_found', this.bmi_1); this.nmp_1 = new StringResource('entry_details_author', this.bmi_1); this.omp_1 = new StringResource('entry_details_publisher', this.bmi_1); this.pmp_1 = new StringResource('entry_details_license', this.bmi_1); this.qmp_1 = new StringResource('file_not_found', this.bmi_1); this.rmp_1 = new StringResource('multiple_choice', this.bmi_1); this.smp_1 = new StringResource('preview', this.bmi_1); this.tmp_1 = new StringResource('content_creation_storage_option_title', this.bmi_1); this.ump_1 = new StringResource('file_required_prompt', this.bmi_1); this.vmp_1 = new StringResource('content_creation_folder_new_message', this.bmi_1); this.wmp_1 = new StringResource('content_creation_folder_update_message', this.bmi_1); this.xmp_1 = new StringResource('error_message_load_page', this.bmi_1); this.ymp_1 = new StringResource('error_message_update_document', this.bmi_1); this.zmp_1 = new StringResource('supported_files', this.bmi_1); this.amq_1 = new StringResource('content_editor_save_error', this.bmi_1); this.bmq_1 = new StringResource('content_entry_export_inprogress', this.bmi_1); this.cmq_1 = new StringResource('content_entry_export_message', this.bmi_1); this.dmq_1 = new StringResource('show_hidden_items', this.bmi_1); this.emq_1 = new StringResource('open_folder', this.bmi_1); this.fmq_1 = new StringResource('action_hidden', this.bmi_1); this.gmq_1 = new StringResource('invalid', this.bmi_1); this.hmq_1 = new StringResource('enter_register_code', this.bmi_1); this.imq_1 = new StringResource('bar_chart', this.bmi_1); this.jmq_1 = new StringResource('line_chart', this.bmi_1); this.kmq_1 = new StringResource('score', this.bmi_1); this.lmq_1 = new StringResource('content_total_duration', this.bmi_1); this.mmq_1 = new StringResource('content_average_duration', this.bmi_1); this.nmq_1 = new StringResource('count_session', this.bmi_1); this.omq_1 = new StringResource('interaction_recorded', this.bmi_1); this.pmq_1 = new StringResource('number_active_users', this.bmi_1); this.qmq_1 = new StringResource('average_usage_time_per_user', this.bmi_1); this.rmq_1 = new StringResource('number_students_completed', this.bmi_1); this.smq_1 = new StringResource('percent_students_completed', this.bmi_1); this.tmq_1 = new StringResource('total_attendances', this.bmi_1); this.umq_1 = new StringResource('total_absences', this.bmi_1); this.vmq_1 = new StringResource('total_lates', this.bmi_1); this.wmq_1 = new StringResource('percent_students_attended', this.bmi_1); this.xmq_1 = new StringResource('percent_students_attended_or_late', this.bmi_1); this.ymq_1 = new StringResource('total_number_of_classes', this.bmi_1); this.zmq_1 = new StringResource('number_unique_students_attending', this.bmi_1); this.amr_1 = new StringResource('xapi_day', this.bmi_1); this.bmr_1 = new StringResource('xapi_week', this.bmi_1); this.cmr_1 = new StringResource('xapi_month', this.bmi_1); this.dmr_1 = new StringResource('xapi_custom_date', this.bmi_1); this.emr_1 = new StringResource('xapi_content_entry', this.bmi_1); this.fmr_1 = new StringResource('xapi_clear', this.bmi_1); this.gmr_1 = new StringResource('last_week_date_range', this.bmi_1); this.hmr_1 = new StringResource('last_two_week_date_range', this.bmi_1); this.imr_1 = new StringResource('last_month_date_range', this.bmi_1); this.jmr_1 = new StringResource('last_three_months_date_range', this.bmi_1); this.kmr_1 = new StringResource('new_custom_date_range', this.bmi_1); this.lmr_1 = new StringResource('selected_custom_range', this.bmi_1); this.mmr_1 = new StringResource('time_range', this.bmi_1); this.nmr_1 = new StringResource('year', this.bmi_1); this.omr_1 = new StringResource('from', this.bmi_1); this.pmr_1 = new StringResource('done', this.bmi_1); this.qmr_1 = new StringResource('xapi_options_general', this.bmi_1); this.rmr_1 = new StringResource('xapi_options_report_title', this.bmi_1); this.smr_1 = new StringResource('xapi_options_visual_type', this.bmi_1); this.tmr_1 = new StringResource('xapi_options_data_set', this.bmi_1); this.umr_1 = new StringResource('xapi_options_series', this.bmi_1); this.vmr_1 = new StringResource('xapi_options_axes', this.bmi_1); this.wmr_1 = new StringResource('xapi_options_y_axes', this.bmi_1); this.xmr_1 = new StringResource('xapi_options_x_axes', this.bmi_1); this.ymr_1 = new StringResource('xapi_options_subgroup', this.bmi_1); this.zmr_1 = new StringResource('xapi_options_filters', this.bmi_1); this.ams_1 = new StringResource('xapi_options_who', this.bmi_1); this.bms_1 = new StringResource('xapi_options_did', this.bmi_1); this.cms_1 = new StringResource('xapi_options_what', this.bmi_1); this.dms_1 = new StringResource('xapi_options_when', this.bmi_1); this.ems_1 = new StringResource('xapi_options_where', this.bmi_1); this.fms_1 = new StringResource('time_range_all', this.bmi_1); this.gms_1 = new StringResource('report_filter_edit_field', this.bmi_1); this.hms_1 = new StringResource('report_filter_edit_condition', this.bmi_1); this.ims_1 = new StringResource('report_filter_edit_values', this.bmi_1); this.jms_1 = new StringResource('report', this.bmi_1); this.kms_1 = new StringResource('create_a_new_report', this.bmi_1); this.lms_1 = new StringResource('edit_report', this.bmi_1); this.mms_1 = new StringResource('verb', this.bmi_1); this.nms_1 = new StringResource('add_a_new_verb', this.bmi_1); this.oms_1 = new StringResource('id_verbentity_urlid', this.bmi_1); this.pms_1 = new StringResource('edit_filters', this.bmi_1); this.qms_1 = new StringResource('field_person_gender', this.bmi_1); this.rms_1 = new StringResource('field_person_age', this.bmi_1); this.sms_1 = new StringResource('field_content_completion', this.bmi_1); this.tms_1 = new StringResource('field_content_entry', this.bmi_1); this.ums_1 = new StringResource('field_content_progress', this.bmi_1); this.vms_1 = new StringResource('field_attendance_percentage', this.bmi_1); this.wms_1 = new StringResource('condition_is', this.bmi_1); this.xms_1 = new StringResource('condition_is_not', this.bmi_1); this.yms_1 = new StringResource('condition_greater_than', this.bmi_1); this.zms_1 = new StringResource('condition_less_than', this.bmi_1); this.amt_1 = new StringResource('condition_in_list', this.bmi_1); this.bmt_1 = new StringResource('condition_not_in_list', this.bmi_1); this.cmt_1 = new StringResource('condition_between', this.bmi_1); this.dmt_1 = new StringResource('add_person_filter', this.bmi_1); this.emt_1 = new StringResource('add_verb_filter', this.bmi_1); this.fmt_1 = new StringResource('add_content_filter', this.bmi_1); this.gmt_1 = new StringResource('dashboard', this.bmi_1); this.hmt_1 = new StringResource('activity_import_link', this.bmi_1); this.imt_1 = new StringResource('xapi_hours', this.bmi_1); this.jmt_1 = new StringResource('xapi_minutes', this.bmi_1); this.kmt_1 = new StringResource('xapi_seconds', this.bmi_1); this.lmt_1 = new StringResource('xapi_verb_header', this.bmi_1); this.mmt_1 = new StringResource('xapi_result_header', this.bmi_1); this.nmt_1 = new StringResource('xapi_score', this.bmi_1); this.omt_1 = new StringResource('content_score', this.bmi_1); this.pmt_1 = new StringResource('completion_key', this.bmi_1); this.qmt_1 = new StringResource('import_title_not_entered', this.bmi_1); this.rmt_1 = new StringResource('no_account', this.bmi_1); this.smt_1 = new StringResource('enter_url', this.bmi_1); this.tmt_1 = new StringResource('invalid_link', this.bmi_1); this.umt_1 = new StringResource('invalid_file', this.bmi_1); this.vmt_1 = new StringResource('import_link_content_not_supported', this.bmi_1); this.wmt_1 = new StringResource('unsupported_file_type', this.bmi_1); this.xmt_1 = new StringResource('import_link_big_size', this.bmi_1); this.ymt_1 = new StringResource('import_link_error', this.bmi_1); this.zmt_1 = new StringResource('supported_link', this.bmi_1); this.amu_1 = new StringResource('offline_sharing_enable_bluetooth_prompt', this.bmi_1); this.bmu_1 = new StringResource('offline_sharing_enable_wifi_promot', this.bmi_1); this.cmu_1 = new StringResource('enable', this.bmi_1); this.dmu_1 = new StringResource('repo_loading_status_loading_cloud', this.bmi_1); this.emu_1 = new StringResource('repo_loading_status_loading_mirror', this.bmi_1); this.fmu_1 = new StringResource('repo_loading_status_failed_noconnection', this.bmi_1); this.gmu_1 = new StringResource('repo_loading_status_failed_connection_error', this.bmi_1); this.hmu_1 = new StringResource('licence_type_cc_by', this.bmi_1); this.imu_1 = new StringResource('licence_type_cc_by_sa', this.bmi_1); this.jmu_1 = new StringResource('licence_type_cc_by_sa_nc', this.bmi_1); this.kmu_1 = new StringResource('licence_type_cc_by_nc', this.bmi_1); this.lmu_1 = new StringResource('licence_type_cc_by_nc_sa', this.bmi_1); this.mmu_1 = new StringResource('licence_type_public_domain', this.bmi_1); this.nmu_1 = new StringResource('licence_type_all_rights', this.bmi_1); this.omu_1 = new StringResource('license_type_cc_0', this.bmi_1); this.pmu_1 = new StringResource('syncing', this.bmi_1); this.qmu_1 = new StringResource('feed', this.bmi_1); this.rmu_1 = new StringResource('people', this.bmi_1); this.smu_1 = new StringResource('record_attendance', this.bmi_1); this.tmu_1 = new StringResource('today', this.bmi_1); this.umu_1 = new StringResource('sort_by', this.bmi_1); this.vmu_1 = new StringResource('log', this.bmi_1); this.wmu_1 = new StringResource('schedule', this.bmi_1); this.xmu_1 = new StringResource('add_a_schedule', this.bmi_1); this.ymu_1 = new StringResource('edit_schedule', this.bmi_1); this.zmu_1 = new StringResource('first_key', this.bmi_1); this.amv_1 = new StringResource('last_key', this.bmi_1); this.bmv_1 = new StringResource('last_week', this.bmi_1); this.cmv_1 = new StringResource('mark_all', this.bmi_1); this.dmv_1 = new StringResource('mark_all_present', this.bmi_1); this.emv_1 = new StringResource('mark_all_absent', this.bmi_1); this.fmv_1 = new StringResource('present', this.bmi_1); this.gmv_1 = new StringResource('absent', this.bmi_1); this.hmv_1 = new StringResource('attendance_report', this.bmi_1); this.imv_1 = new StringResource('father', this.bmi_1); this.jmv_1 = new StringResource('mother', this.bmi_1); this.kmv_1 = new StringResource('birthday', this.bmi_1); this.lmv_1 = new StringResource('first_names', this.bmi_1); this.mmv_1 = new StringResource('basic_details', this.bmi_1); this.nmv_1 = new StringResource('address', this.bmi_1); this.omv_1 = new StringResource('add_person_to_class', this.bmi_1); this.pmv_1 = new StringResource('edit', this.bmi_1); this.qmv_1 = new StringResource('clazz', this.bmi_1); this.rmv_1 = new StringResource('add_a_new_class', this.bmi_1); this.smv_1 = new StringResource('edit_clazz', this.bmi_1); this.tmv_1 = new StringResource('add_a_class', this.bmi_1); this.umv_1 = new StringResource('join_existing_class', this.bmi_1); this.vmv_1 = new StringResource('student_image', this.bmi_1); this.wmv_1 = new StringResource('question_key', this.bmi_1); this.xmv_1 = new StringResource('add_question', this.bmi_1); this.ymv_1 = new StringResource('edit_question', this.bmi_1); this.zmv_1 = new StringResource('questions', this.bmi_1); this.amw_1 = new StringResource('add_person', this.bmi_1); this.bmw_1 = new StringResource('add_class', this.bmi_1); this.cmw_1 = new StringResource('class_name', this.bmi_1); this.dmw_1 = new StringResource('class_description', this.bmi_1); this.emw_1 = new StringResource('to_key', this.bmi_1); this.fmw_1 = new StringResource('holiday', this.bmi_1); this.gmw_1 = new StringResource('add_a_holiday', this.bmi_1); this.hmw_1 = new StringResource('edit_holiday', this.bmi_1); this.imw_1 = new StringResource('holidays', this.bmi_1); this.jmw_1 = new StringResource('holiday_calendar', this.bmi_1); this.kmw_1 = new StringResource('add_a_new_holiday_calendar', this.bmi_1); this.lmw_1 = new StringResource('edit_holiday_calendar', this.bmi_1); this.mmw_1 = new StringResource('features_enabled', this.bmi_1); this.nmw_1 = new StringResource('weekly', this.bmi_1); this.omw_1 = new StringResource('once', this.bmi_1); this.pmw_1 = new StringResource('daily', this.bmi_1); this.qmw_1 = new StringResource('monthly', this.bmi_1); this.rmw_1 = new StringResource('yearly', this.bmi_1); this.smw_1 = new StringResource('sunday', this.bmi_1); this.tmw_1 = new StringResource('monday', this.bmi_1); this.umw_1 = new StringResource('tuesday', this.bmi_1); this.vmw_1 = new StringResource('wednesday', this.bmi_1); this.wmw_1 = new StringResource('thursday', this.bmi_1); this.xmw_1 = new StringResource('friday', this.bmi_1); this.ymw_1 = new StringResource('saturday', this.bmi_1); this.zmw_1 = new StringResource('day', this.bmi_1); this.amx_1 = new StringResource('toC', this.bmi_1); this.bmx_1 = new StringResource('last_month', this.bmi_1); this.cmx_1 = new StringResource('activity_change', this.bmi_1); this.dmx_1 = new StringResource('change_implemented_if_any', this.bmi_1); this.emx_1 = new StringResource('duration', this.bmi_1); this.fmx_1 = new StringResource('how_did_it_go', this.bmi_1); this.gmx_1 = new StringResource('notes', this.bmi_1); this.hmx_1 = new StringResource('activity', this.bmi_1); this.imx_1 = new StringResource('sort_by_name', this.bmi_1); this.jmx_1 = new StringResource('sort_by_name_asc', this.bmi_1); this.kmx_1 = new StringResource('sort_by_name_desc', this.bmi_1); this.lmx_1 = new StringResource('date_enroll', this.bmi_1); this.mmx_1 = new StringResource('date_left', this.bmi_1); this.nmx_1 = new StringResource('enroled', this.bmi_1); this.omx_1 = new StringResource('class_enrolment', this.bmi_1); this.pmx_1 = new StringResource('graduated', this.bmi_1); this.qmx_1 = new StringResource('dropped_out', this.bmi_1); this.rmx_1 = new StringResource('moved', this.bmi_1); this.smx_1 = new StringResource('new_leaving_reason', this.bmi_1); this.tmx_1 = new StringResource('edit_leaving_reason', this.bmi_1); this.umx_1 = new StringResource('edit_enrolment', this.bmi_1); this.vmx_1 = new StringResource('new_enrolment', this.bmi_1); this.wmx_1 = new StringResource('select_leaving_reason', this.bmi_1); this.xmx_1 = new StringResource('add_leaving_reason', this.bmi_1); this.ymx_1 = new StringResource('leaving_reason', this.bmi_1); this.zmx_1 = new StringResource('leaving_reasons', this.bmi_1); this.amy_1 = new StringResource('leaving_reason_manage', this.bmi_1); this.bmy_1 = new StringResource('view_profile', this.bmi_1); this.cmy_1 = new StringResource('class_enrolment_outcome', this.bmi_1); this.dmy_1 = new StringResource('class_enrolment_leaving', this.bmi_1); this.emy_1 = new StringResource('in_progress', this.bmi_1); this.fmy_1 = new StringResource('outcome', this.bmi_1); this.gmy_1 = new StringResource('person_enrolment_in_class', this.bmi_1); this.hmy_1 = new StringResource('enrolment', this.bmi_1); this.imy_1 = new StringResource('error_start_date_before_clazz_date', this.bmi_1); this.jmy_1 = new StringResource('error_start_date_before_previous_enrolment_date', this.bmi_1); this.kmy_1 = new StringResource('time_present', this.bmi_1); this.lmy_1 = new StringResource('ascending', this.bmi_1); this.mmy_1 = new StringResource('descending', this.bmi_1); this.nmy_1 = new StringResource('sort_by_text', this.bmi_1); this.omy_1 = new StringResource('attendance_high_to_low', this.bmi_1); this.pmy_1 = new StringResource('attendance_low_to_high', this.bmi_1); this.qmy_1 = new StringResource('teacher', this.bmi_1); this.rmy_1 = new StringResource('add_a_teacher', this.bmi_1); this.smy_1 = new StringResource('partial', this.bmi_1); this.tmy_1 = new StringResource('teachers_literal', this.bmi_1); this.umy_1 = new StringResource('participant', this.bmi_1); this.vmy_1 = new StringResource('primary_user', this.bmi_1); this.wmy_1 = new StringResource('up_key', this.bmi_1); this.xmy_1 = new StringResource('down_key', this.bmi_1); this.ymy_1 = new StringResource('activity_went_good', this.bmi_1); this.zmy_1 = new StringResource('activity_went_bad', this.bmi_1); this.amz_1 = new StringResource('activity_enter_any_notes', this.bmi_1); this.bmz_1 = new StringResource('uom_frequency_title', this.bmi_1); this.cmz_1 = new StringResource('uom_duration_title', this.bmi_1); this.dmz_1 = new StringResource('uom_boolean_title', this.bmi_1); this.emz_1 = new StringResource('uom_default_title', this.bmi_1); this.fmz_1 = new StringResource('add_activity', this.bmi_1); this.gmz_1 = new StringResource('add_activity_literal', this.bmi_1); this.hmz_1 = new StringResource('select_one', this.bmi_1); this.imz_1 = new StringResource('measurement_type', this.bmi_1); this.jmz_1 = new StringResource('frequency', this.bmi_1); this.kmz_1 = new StringResource('yes_no', this.bmi_1); this.lmz_1 = new StringResource('time_period', this.bmi_1); this.mmz_1 = new StringResource('location', this.bmi_1); this.nmz_1 = new StringResource('last_three_months', this.bmi_1); this.omz_1 = new StringResource('export', this.bmi_1); this.pmz_1 = new StringResource('date', this.bmi_1); this.qmz_1 = new StringResource('average', this.bmi_1); this.rmz_1 = new StringResource('age', this.bmi_1); this.smz_1 = new StringResource('days', this.bmi_1); this.tmz_1 = new StringResource('apply', this.bmi_1); this.umz_1 = new StringResource('file_selected', this.bmi_1); this.vmz_1 = new StringResource('all', this.bmi_1); this.wmz_1 = new StringResource('holiday_calendars', this.bmi_1); this.xmz_1 = new StringResource('holiday_calendars_desc', this.bmi_1); this.ymz_1 = new StringResource('sel_question_set', this.bmi_1); this.zmz_1 = new StringResource('sel_question_set_desc', this.bmi_1); this.an0_1 = new StringResource('users', this.bmi_1); this.bn0_1 = new StringResource('nomination', this.bmi_1); this.cn0_1 = new StringResource('active', this.bmi_1); this.dn0_1 = new StringResource('class_id', this.bmi_1); this.en0_1 = new StringResource('gender_literal', this.bmi_1); this.fn0_1 = new StringResource('country', this.bmi_1); this.gn0_1 = new StringResource('connectivity', this.bmi_1); this.hn0_1 = new StringResource('home_internet_access', this.bmi_1); this.in0_1 = new StringResource('mobile_internet_access', this.bmi_1); this.jn0_1 = new StringResource('connectivity_limited', this.bmi_1); this.kn0_1 = new StringResource('connectivity_full', this.bmi_1); this.ln0_1 = new StringResource('prefer_not_to_say', this.bmi_1); this.mn0_1 = new StringResource('sel_question_set_to_use', this.bmi_1); this.nn0_1 = new StringResource('search', this.bmi_1); this.on0_1 = new StringResource('attendance_percentage', this.bmi_1); this.pn0_1 = new StringResource('filter', this.bmi_1); this.qn0_1 = new StringResource('over_key', this.bmi_1); this.rn0_1 = new StringResource('sync', this.bmi_1); this.sn0_1 = new StringResource('not_recorded', this.bmi_1); this.tn0_1 = new StringResource('groups', this.bmi_1); this.un0_1 = new StringResource('group_setting_desc', this.bmi_1); this.vn0_1 = new StringResource('roles', this.bmi_1); this.wn0_1 = new StringResource('role', this.bmi_1); this.xn0_1 = new StringResource('add_a_new_role', this.bmi_1); this.yn0_1 = new StringResource('edit_role', this.bmi_1); this.zn0_1 = new StringResource('rols_assignment', this.bmi_1); this.an1_1 = new StringResource('role_assignment_setting_desc', this.bmi_1); this.bn1_1 = new StringResource('locations', this.bmi_1); this.cn1_1 = new StringResource('locations_setting_desc', this.bmi_1); this.dn1_1 = new StringResource('audit_log', this.bmi_1); this.en1_1 = new StringResource('audit_log_setting_desc', this.bmi_1); this.fn1_1 = new StringResource('entry_key', this.bmi_1); this.gn1_1 = new StringResource('permission_key', this.bmi_1); this.hn1_1 = new StringResource('permissions', this.bmi_1); this.in1_1 = new StringResource('role_name', this.bmi_1); this.jn1_1 = new StringResource('members_key', this.bmi_1); this.kn1_1 = new StringResource('member_key', this.bmi_1); this.ln1_1 = new StringResource('role_assignment', this.bmi_1); this.mn1_1 = new StringResource('scope_by', this.bmi_1); this.nn1_1 = new StringResource('assign_to', this.bmi_1); this.on1_1 = new StringResource('person', this.bmi_1); this.pn1_1 = new StringResource('add_a_new_person', this.bmi_1); this.qn1_1 = new StringResource('edit_person', this.bmi_1); this.rn1_1 = new StringResource('permission_person_select', this.bmi_1); this.sn1_1 = new StringResource('permission_person_insert', this.bmi_1); this.tn1_1 = new StringResource('permission_person_update', this.bmi_1); this.un1_1 = new StringResource('permission_person_picture_select', this.bmi_1); this.vn1_1 = new StringResource('permission_person_picture_insert', this.bmi_1); this.wn1_1 = new StringResource('permission_person_picture_update', this.bmi_1); this.xn1_1 = new StringResource('permission_clazz_select', this.bmi_1); this.yn1_1 = new StringResource('permission_clazz_insert', this.bmi_1); this.zn1_1 = new StringResource('permission_clazz_update', this.bmi_1); this.an2_1 = new StringResource('permission_clazz_add_teacher', this.bmi_1); this.bn2_1 = new StringResource('permission_clazz_add_student', this.bmi_1); this.cn2_1 = new StringResource('permission_attendance_select', this.bmi_1); this.dn2_1 = new StringResource('permission_attendance_insert', this.bmi_1); this.en2_1 = new StringResource('permission_attendance_update', this.bmi_1); this.fn2_1 = new StringResource('permission_activity_select', this.bmi_1); this.gn2_1 = new StringResource('permission_activity_insert', this.bmi_1); this.hn2_1 = new StringResource('permission_activity_update', this.bmi_1); this.in2_1 = new StringResource('permission_sel_question_select', this.bmi_1); this.jn2_1 = new StringResource('permission_sel_question_insert', this.bmi_1); this.kn2_1 = new StringResource('permission_sel_question_update', this.bmi_1); this.ln2_1 = new StringResource('permission_sel_select', this.bmi_1); this.mn2_1 = new StringResource('permission_sel_update', this.bmi_1); this.nn2_1 = new StringResource('custom_fields', this.bmi_1); this.on2_1 = new StringResource('custom_field', this.bmi_1); this.pn2_1 = new StringResource('custom_fields_desc', this.bmi_1); this.qn2_1 = new StringResource('field_type', this.bmi_1); this.rn2_1 = new StringResource('text', this.bmi_1); this.sn2_1 = new StringResource('dropdown', this.bmi_1); this.tn2_1 = new StringResource('options', this.bmi_1); this.un2_1 = new StringResource('option_value', this.bmi_1); this.vn2_1 = new StringResource('errors', this.bmi_1); this.wn2_1 = new StringResource('shake_feedback', this.bmi_1); this.xn2_1 = new StringResource('feedback_hint', this.bmi_1); this.yn2_1 = new StringResource('send_feedback', this.bmi_1); this.zn2_1 = new StringResource('feedback_thanks', this.bmi_1); this.an3_1 = new StringResource('start_date', this.bmi_1); this.bn3_1 = new StringResource('end_date', this.bmi_1); this.cn3_1 = new StringResource('last_active', this.bmi_1); this.dn3_1 = new StringResource('save', this.bmi_1); this.en3_1 = new StringResource('change_password', this.bmi_1); this.fn3_1 = new StringResource('current_password', this.bmi_1); this.gn3_1 = new StringResource('password_unchanged', this.bmi_1); this.hn3_1 = new StringResource('timezone', this.bmi_1); this.in3_1 = new StringResource('users_settings_desc', this.bmi_1); this.jn3_1 = new StringResource('add', this.bmi_1); this.kn3_1 = new StringResource('refresh', this.bmi_1); this.ln3_1 = new StringResource('school', this.bmi_1); this.mn3_1 = new StringResource('add_a_new_school', this.bmi_1); this.nn3_1 = new StringResource('edit_school', this.bmi_1); this.on3_1 = new StringResource('join_existing_school', this.bmi_1); this.pn3_1 = new StringResource('schools', this.bmi_1); this.qn3_1 = new StringResource('assignments', this.bmi_1); this.rn3_1 = new StringResource('assignment', this.bmi_1); this.sn3_1 = new StringResource('none_key', this.bmi_1); this.tn3_1 = new StringResource('instructions_for_students', this.bmi_1); this.un3_1 = new StringResource('not_started', this.bmi_1); this.vn3_1 = new StringResource('percentage_complete', this.bmi_1); this.wn3_1 = new StringResource('percentage_score', this.bmi_1); this.xn3_1 = new StringResource('started_date', this.bmi_1); this.yn3_1 = new StringResource('started', this.bmi_1); this.zn3_1 = new StringResource('mixed', this.bmi_1); this.an4_1 = new StringResource('store_title', this.bmi_1); this.bn4_1 = new StringResource('store_description_short', this.bmi_1); this.cn4_1 = new StringResource('store_description_full', this.bmi_1); this.dn4_1 = new StringResource('due_date', this.bmi_1); this.en4_1 = new StringResource('content', this.bmi_1); this.fn4_1 = new StringResource('add_new_content', this.bmi_1); this.gn4_1 = new StringResource('add_content', this.bmi_1); this.hn4_1 = new StringResource('student_progress', this.bmi_1); this.in4_1 = new StringResource('status', this.bmi_1); this.jn4_1 = new StringResource('use_device_language', this.bmi_1); this.kn4_1 = new StringResource('select_item', this.bmi_1); this.ln4_1 = new StringResource('from_to_date', this.bmi_1); this.mn4_1 = new StringResource('num_items_with_name', this.bmi_1); this.nn4_1 = new StringResource('num_items_with_name_with_comma', this.bmi_1); this.on4_1 = new StringResource('add_to', this.bmi_1); this.pn4_1 = new StringResource('remove_from', this.bmi_1); this.qn4_1 = new StringResource('change_photo', this.bmi_1); this.rn4_1 = new StringResource('remove_picture', this.bmi_1); this.sn4_1 = new StringResource('take_new_photo_from_camera', this.bmi_1); this.tn4_1 = new StringResource('select_picture_from_gallery', this.bmi_1); this.un4_1 = new StringResource('select_file', this.bmi_1); this.vn4_1 = new StringResource('permission_clazz_assignment_view', this.bmi_1); this.wn4_1 = new StringResource('permission_clazz_asignment_edit', this.bmi_1); this.xn4_1 = new StringResource('overview', this.bmi_1); this.yn4_1 = new StringResource('add_new', this.bmi_1); this.zn4_1 = new StringResource('staff', this.bmi_1); this.an5_1 = new StringResource('x_teachers_y_students', this.bmi_1); this.bn5_1 = new StringResource('call', this.bmi_1); this.cn5_1 = new StringResource('organization_id', this.bmi_1); this.dn5_1 = new StringResource('student', this.bmi_1); this.en5_1 = new StringResource('contact_details', this.bmi_1); this.fn5_1 = new StringResource('untitled', this.bmi_1); this.gn5_1 = new StringResource('present_late_absent', this.bmi_1); this.hn5_1 = new StringResource('marked_cap', this.bmi_1); this.in5_1 = new StringResource('submitted_cap', this.bmi_1); this.jn5_1 = new StringResource('not_submitted_cap', this.bmi_1); this.kn5_1 = new StringResource('submitliteral', this.bmi_1); this.ln5_1 = new StringResource('x_percent_attended', this.bmi_1); this.mn5_1 = new StringResource('answer', this.bmi_1); this.nn5_1 = new StringResource('of_content', this.bmi_1); this.on5_1 = new StringResource('nothing_here', this.bmi_1); this.pn5_1 = new StringResource('not_answered', this.bmi_1); this.qn5_1 = new StringResource('clazz_work', this.bmi_1); this.rn5_1 = new StringResource('add_a_new_clazzwork', this.bmi_1); this.sn5_1 = new StringResource('edit_clazzwork', this.bmi_1); this.tn5_1 = new StringResource('clazz_assignment', this.bmi_1); this.un5_1 = new StringResource('new_assignment', this.bmi_1); this.vn5_1 = new StringResource('edit_assignment', this.bmi_1); this.wn5_1 = new StringResource('total_score', this.bmi_1); this.xn5_1 = new StringResource('late_submission', this.bmi_1); this.yn5_1 = new StringResource('mark_penalty', this.bmi_1); this.zn5_1 = new StringResource('late_submission_penalty', this.bmi_1); this.an6_1 = new StringResource('end_of_grace_period', this.bmi_1); this.bn6_1 = new StringResource('allow_class_comments', this.bmi_1); this.cn6_1 = new StringResource('after_deadline_date_error', this.bmi_1); this.dn6_1 = new StringResource('points', this.bmi_1); this.en6_1 = new StringResource('minimum_score', this.bmi_1); this.fn6_1 = new StringResource('automatic', this.bmi_1); this.gn6_1 = new StringResource('student_marks_content', this.bmi_1); this.hn6_1 = new StringResource('completion_criteria', this.bmi_1); this.in6_1 = new StringResource('mark_complete', this.bmi_1); this.jn6_1 = new StringResource('late_penalty', this.bmi_1); this.kn6_1 = new StringResource('marked_key', this.bmi_1); this.ln6_1 = new StringResource('submitted_key', this.bmi_1); this.mn6_1 = new StringResource('not_submitted', this.bmi_1); this.nn6_1 = new StringResource('visible_from_date', this.bmi_1); this.on6_1 = new StringResource('submission_type', this.bmi_1); this.pn6_1 = new StringResource('no_submission_required', this.bmi_1); this.qn6_1 = new StringResource('short_text', this.bmi_1); this.rn6_1 = new StringResource('attachment', this.bmi_1); this.sn6_1 = new StringResource('quiz', this.bmi_1); this.tn6_1 = new StringResource('allow_private_comments_from_students', this.bmi_1); this.un6_1 = new StringResource('deadline', this.bmi_1); this.vn6_1 = new StringResource('class_timezone', this.bmi_1); this.wn6_1 = new StringResource('maximum_score', this.bmi_1); this.xn6_1 = new StringResource('quiz_questions', this.bmi_1); this.yn6_1 = new StringResource('time', this.bmi_1); this.zn6_1 = new StringResource('submission', this.bmi_1); this.an7_1 = new StringResource('public_comments', this.bmi_1); this.bn7_1 = new StringResource('private_comments', this.bmi_1); this.cn7_1 = new StringResource('submit_your_answer', this.bmi_1); this.dn7_1 = new StringResource('add_class_comment', this.bmi_1); this.en7_1 = new StringResource('add_private_comment', this.bmi_1); this.fn7_1 = new StringResource('class_comments', this.bmi_1); this.gn7_1 = new StringResource('submit', this.bmi_1); this.hn7_1 = new StringResource('three_num_items_with_name_with_comma', this.bmi_1); this.in7_1 = new StringResource('marking', this.bmi_1); this.jn7_1 = new StringResource('return_and_mark_next', this.bmi_1); this.kn7_1 = new StringResource('return_only', this.bmi_1); this.ln7_1 = new StringResource('workspace', this.bmi_1); this.mn7_1 = new StringResource('organisation', this.bmi_1); this.nn7_1 = new StringResource('use_public_library_site', this.bmi_1); this.on7_1 = new StringResource('create_site', this.bmi_1); this.pn7_1 = new StringResource('connect_as_guest', this.bmi_1); this.qn7_1 = new StringResource('create_account', this.bmi_1); this.rn7_1 = new StringResource('my', this.bmi_1); this.sn7_1 = new StringResource('add_another', this.bmi_1); this.tn7_1 = new StringResource('logged_in_as', this.bmi_1); this.un7_1 = new StringResource('person_exists', this.bmi_1); this.vn7_1 = new StringResource('username_too_short', this.bmi_1); this.wn7_1 = new StringResource('username_too_long', this.bmi_1); this.xn7_1 = new StringResource('username_starts_with_number', this.bmi_1); this.yn7_1 = new StringResource('invalid_username', this.bmi_1); this.zn7_1 = new StringResource('incorrect_current_password', this.bmi_1); this.an8_1 = new StringResource('sel_question_type_free_text', this.bmi_1); this.bn8_1 = new StringResource('sel_question_type_multiple_choice', this.bmi_1); this.cn8_1 = new StringResource('question_text', this.bmi_1); this.dn8_1 = new StringResource('question_type', this.bmi_1); this.en8_1 = new StringResource('add_option', this.bmi_1); this.fn8_1 = new StringResource('roles_and_permissions', this.bmi_1); this.gn8_1 = new StringResource('add_role_permission', this.bmi_1); this.hn8_1 = new StringResource('scope', this.bmi_1); this.in8_1 = new StringResource('scope_description', this.bmi_1); this.jn8_1 = new StringResource('role_description', this.bmi_1); this.kn8_1 = new StringResource('assign_role', this.bmi_1); this.ln8_1 = new StringResource('more_information', this.bmi_1); this.mn8_1 = new StringResource('pending_requests', this.bmi_1); this.nn8_1 = new StringResource('pending', this.bmi_1); this.on8_1 = new StringResource('please_wait_for_approval', this.bmi_1); this.pn8_1 = new StringResource('reject', this.bmi_1); this.qn8_1 = new StringResource('ask_your_teacher_for_code', this.bmi_1); this.rn8_1 = new StringResource('copied_to_clipboard', this.bmi_1); this.sn8_1 = new StringResource('invite_link_desc', this.bmi_1); this.tn8_1 = new StringResource('copy_link', this.bmi_1); this.un8_1 = new StringResource('copy_code', this.bmi_1); this.vn8_1 = new StringResource('share_link', this.bmi_1); this.wn8_1 = new StringResource('invite_with_link', this.bmi_1); this.xn8_1 = new StringResource('role_not_selected_error', this.bmi_1); this.yn8_1 = new StringResource('permission_person_delegate', this.bmi_1); this.zn8_1 = new StringResource('this_field_is_mandatory', this.bmi_1); this.an9_1 = new StringResource('permission_role_select', this.bmi_1); this.bn9_1 = new StringResource('permission_role_insert', this.bmi_1); this.cn9_1 = new StringResource('permission_school_select', this.bmi_1); this.dn9_1 = new StringResource('permission_school_insert', this.bmi_1); this.en9_1 = new StringResource('permission_school_update', this.bmi_1); this.fn9_1 = new StringResource('add_student_to_school', this.bmi_1); this.gn9_1 = new StringResource('add_staff_to_school', this.bmi_1); this.hn9_1 = new StringResource('permission_password_reset', this.bmi_1); this.in9_1 = new StringResource('school_code', this.bmi_1); this.jn9_1 = new StringResource('invite_code', this.bmi_1); this.kn9_1 = new StringResource('entity_code', this.bmi_1); this.ln9_1 = new StringResource('join_code_instructions', this.bmi_1); this.mn9_1 = new StringResource('record_for_student', this.bmi_1); this.nn9_1 = new StringResource('moved_x_entries', this.bmi_1); this.on9_1 = new StringResource('end_is_before_start_error', this.bmi_1); this.pn9_1 = new StringResource('record_attendance_for_most_recent_occurrence', this.bmi_1); this.qn9_1 = new StringResource('add_a_new_occurrence', this.bmi_1); this.rn9_1 = new StringResource('active_classes', this.bmi_1); this.sn9_1 = new StringResource('terms_and_policies', this.bmi_1); this.tn9_1 = new StringResource('manage_site_settings', this.bmi_1); this.un9_1 = new StringResource('guest_login_enabled', this.bmi_1); this.vn9_1 = new StringResource('registration_allowed', this.bmi_1); this.wn9_1 = new StringResource('yes', this.bmi_1); this.xn9_1 = new StringResource('no', this.bmi_1); this.yn9_1 = new StringResource('edit_site', this.bmi_1); this.zn9_1 = new StringResource('site', this.bmi_1); this.ana_1 = new StringResource('site_link', this.bmi_1); this.bna_1 = new StringResource('please_enter_the_linK', this.bmi_1); this.cna_1 = new StringResource('or', this.bmi_1); this.dna_1 = new StringResource('connect', this.bmi_1); this.ena_1 = new StringResource('terms_and_policies_text', this.bmi_1); this.fna_1 = new StringResource('edit_terms_and_policies', this.bmi_1); this.gna_1 = new StringResource('strings_not_allowed', this.bmi_1); this.hna_1 = new StringResource('undo', this.bmi_1); this.ina_1 = new StringResource('video', this.bmi_1); this.jna_1 = new StringResource('content_editor_create_new_category', this.bmi_1); this.kna_1 = new StringResource('content_pieces_completed', this.bmi_1); this.lna_1 = new StringResource('content_usage_duration', this.bmi_1); this.mna_1 = new StringResource('manage_download', this.bmi_1); this.nna_1 = new StringResource('powered_by', this.bmi_1); this.ona_1 = new StringResource('invalid_email', this.bmi_1); this.pna_1 = new StringResource('select_account', this.bmi_1); this.qna_1 = new StringResource('opening_link', this.bmi_1); this.rna_1 = new StringResource('select_account_to_continue', this.bmi_1); this.sna_1 = new StringResource('you_are_already_in_class', this.bmi_1); this.tna_1 = new StringResource('you_are_already_in_school', this.bmi_1); this.una_1 = new StringResource('join_class', this.bmi_1); this.vna_1 = new StringResource('join_school', this.bmi_1); this.wna_1 = new StringResource('what_is_your_date_of_birth', this.bmi_1); this.xna_1 = new StringResource('parents_email_address', this.bmi_1); this.yna_1 = new StringResource('we_sent_a_message_to_your_parent', this.bmi_1); this.zna_1 = new StringResource('toggle_visibility', this.bmi_1); this.anb_1 = new StringResource('parental_consent', this.bmi_1); this.bnb_1 = new StringResource('parent_child_register_message_subject', this.bmi_1); this.cnb_1 = new StringResource('parent_child_register_message', this.bmi_1); this.dnb_1 = new StringResource('parent_consent_explanation', this.bmi_1); this.enb_1 = new StringResource('relationship', this.bmi_1); this.fnb_1 = new StringResource('i_consent', this.bmi_1); this.gnb_1 = new StringResource('i_do_not_consent', this.bmi_1); this.hnb_1 = new StringResource('revoke_consent', this.bmi_1); this.inb_1 = new StringResource('restore_consent', this.bmi_1); this.jnb_1 = new StringResource('status_consent_granted', this.bmi_1); this.knb_1 = new StringResource('status_consent_denied', this.bmi_1); this.lnb_1 = new StringResource('other_legal_guardian', this.bmi_1); this.mnb_1 = new StringResource('manage_parental_consent', this.bmi_1); this.nnb_1 = new StringResource('view_class_content', this.bmi_1); this.onb_1 = new StringResource('edit_class_content', this.bmi_1); this.pnb_1 = new StringResource('view_class_learning_records', this.bmi_1); this.qnb_1 = new StringResource('view_contact_details_of_members', this.bmi_1); this.rnb_1 = new StringResource('edit_contact_details_of_members', this.bmi_1); this.snb_1 = new StringResource('view_socioeconomic_details_of_members', this.bmi_1); this.tnb_1 = new StringResource('edit_socioeconomic_details_of_members', this.bmi_1); this.unb_1 = new StringResource('add_person_or_group', this.bmi_1); this.vnb_1 = new StringResource('lets_get_started', this.bmi_1); this.wnb_1 = new StringResource('looks_like_installed_app_from_link', this.bmi_1); this.xnb_1 = new StringResource('continue_using_link_recommended', this.bmi_1); this.ynb_1 = new StringResource('continue_using_the_link', this.bmi_1); this.znb_1 = new StringResource('start_from_scratch', this.bmi_1); this.anc_1 = new StringResource('ignore_the_link', this.bmi_1); this.bnc_1 = new StringResource('add_permission_for_a_person', this.bmi_1); this.cnc_1 = new StringResource('add_permission_for_a_group', this.bmi_1); this.dnc_1 = new StringResource('add_using_link', this.bmi_1); this.enc_1 = new StringResource('add_using_a_web_link_then', this.bmi_1); this.fnc_1 = new StringResource('add_from_gallery', this.bmi_1); this.gnc_1 = new StringResource('add_video_or_audio_from_the_device_gallery', this.bmi_1); this.hnc_1 = new StringResource('add_file', this.bmi_1); this.inc_1 = new StringResource('add_folder', this.bmi_1); this.jnc_1 = new StringResource('importing', this.bmi_1); this.knc_1 = new StringResource('downloading_content', this.bmi_1); this.lnc_1 = new StringResource('deleting_content', this.bmi_1); this.mnc_1 = new StringResource('add_folder_description', this.bmi_1); this.nnc_1 = new StringResource('add_educational_content_using_supported_formats_eg_pdf_xapi_h5p', this.bmi_1); this.onc_1 = new StringResource('current_status_consent_granted', this.bmi_1); this.pnc_1 = new StringResource('select_country', this.bmi_1); this.qnc_1 = new StringResource('enter_link', this.bmi_1); this.rnc_1 = new StringResource('add_subject', this.bmi_1); this.snc_1 = new StringResource('share_via', this.bmi_1); this.tnc_1 = new StringResource('share_apk_file', this.bmi_1); this.unc_1 = new StringResource('recommended_for_advanced_users', this.bmi_1); this.vnc_1 = new StringResource('nearby_share', this.bmi_1); this.wnc_1 = new StringResource('recommended_for_offline_installation', this.bmi_1); this.xnc_1 = new StringResource('app_store_link', this.bmi_1); this.ync_1 = new StringResource('everything_works_offline', this.bmi_1); this.znc_1 = new StringResource('swipe_to_next', this.bmi_1); this.and_1 = new StringResource('content_entries_completed', this.bmi_1); this.bnd_1 = new StringResource('content_usage_time', this.bmi_1); this.cnd_1 = new StringResource('all_permissions', this.bmi_1); this.dnd_1 = new StringResource('folder', this.bmi_1); this.end_1 = new StringResource('create_a_new_learning_env', this.bmi_1); this.fnd_1 = new StringResource('add_educational_content_to_new_learning_env', this.bmi_1); this.gnd_1 = new StringResource('connect_to_an_existing_learning_environment', this.bmi_1); this.hnd_1 = new StringResource('does_your_class_already_have_learning_env', this.bmi_1); this.ind_1 = new StringResource('use_the_public_lib_env', this.bmi_1); this.jnd_1 = new StringResource('just_want_to_browse', this.bmi_1); this.knd_1 = new StringResource('revoking_consent_will', this.bmi_1); this.lnd_1 = new StringResource('you_must_comply_with_license', this.bmi_1); this.mnd_1 = new StringResource('you_can_copypaste_a_link', this.bmi_1); this.nnd_1 = new StringResource('see_supported_sites', this.bmi_1); this.ond_1 = new StringResource('class_setup', this.bmi_1); this.pnd_1 = new StringResource('anyone_with_this_can_join_school', this.bmi_1); this.qnd_1 = new StringResource('this_class', this.bmi_1); this.rnd_1 = new StringResource('from_my_classes', this.bmi_1); this.snd_1 = new StringResource('my_content', this.bmi_1); this.tnd_1 = new StringResource('learning_environment', this.bmi_1); this.und_1 = new StringResource('grades_class_age', this.bmi_1); this.vnd_1 = new StringResource('add_remove_and_modify_grades', this.bmi_1); this.wnd_1 = new StringResource('subjects', this.bmi_1); this.xnd_1 = new StringResource('add_remove_and_modify_subjects', this.bmi_1); this.ynd_1 = new StringResource('create_my_account', this.bmi_1); this.znd_1 = new StringResource('recommend_it', this.bmi_1); this.ane_1 = new StringResource('edit_permissions', this.bmi_1); this.bne_1 = new StringResource('add_from_contacts', this.bmi_1); this.cne_1 = new StringResource('almost_done', this.bmi_1); this.dne_1 = new StringResource('your_username', this.bmi_1); this.ene_1 = new StringResource('select_content', this.bmi_1); this.fne_1 = new StringResource('search_in', this.bmi_1); this.gne_1 = new StringResource('type', this.bmi_1); this.hne_1 = new StringResource('please_download_the_app', this.bmi_1); this.ine_1 = new StringResource('alternatively_you_can_download_the_apk', this.bmi_1); this.jne_1 = new StringResource('full_i_can_download_as_much_as_i_like', this.bmi_1); this.kne_1 = new StringResource('limited_i_avoid_downloading_too_much', this.bmi_1); this.lne_1 = new StringResource('oops', this.bmi_1); this.mne_1 = new StringResource('sorry_something_went_wrong', this.bmi_1); this.nne_1 = new StringResource('incident_id', this.bmi_1); this.one_1 = new StringResource('error_code', this.bmi_1); this.pne_1 = new StringResource('take_me_home', this.bmi_1); this.qne_1 = new StringResource('view_clazz', this.bmi_1); this.rne_1 = new StringResource('view_clazzes', this.bmi_1); this.sne_1 = new StringResource('enrol_and_unenrol_students', this.bmi_1); this.tne_1 = new StringResource('enrol_and_unenrol_teachers', this.bmi_1); this.une_1 = new StringResource('view_assignments', this.bmi_1); this.vne_1 = new StringResource('add_or_edit_assignment', this.bmi_1); this.wne_1 = new StringResource('view_basic_profile_of_members', this.bmi_1); this.xne_1 = new StringResource('edit_basic_profile_of_members', this.bmi_1); this.yne_1 = new StringResource('view_school', this.bmi_1); this.zne_1 = new StringResource('edit_clazzes', this.bmi_1); this.anf_1 = new StringResource('add_new_clazz_to_school', this.bmi_1); this.bnf_1 = new StringResource('added_to_class_content', this.bmi_1); this.cnf_1 = new StringResource('content_already_added_to_class', this.bmi_1); this.dnf_1 = new StringResource('your_account_needs_approved', this.bmi_1); this.enf_1 = new StringResource('adult_account_required', this.bmi_1); this.fnf_1 = new StringResource('blank_report', this.bmi_1); this.gnf_1 = new StringResource('attendance_over_time_by_class', this.bmi_1); this.hnf_1 = new StringResource('percentage_of_students_attending_over_time', this.bmi_1); this.inf_1 = new StringResource('content_completion', this.bmi_1); this.jnf_1 = new StringResource('number_of_students_completed_time', this.bmi_1); this.knf_1 = new StringResource('content_usage_by_class', this.bmi_1); this.lnf_1 = new StringResource('total_content_usage_duration_class', this.bmi_1); this.mnf_1 = new StringResource('content_usage_over_time', this.bmi_1); this.nnf_1 = new StringResource('total_content_duration_gender', this.bmi_1); this.onf_1 = new StringResource('unique_content_users_over_time', this.bmi_1); this.pnf_1 = new StringResource('number_of_active_users_over_time', this.bmi_1); this.qnf_1 = new StringResource('parent', this.bmi_1); this.rnf_1 = new StringResource('upload', this.bmi_1); this.snf_1 = new StringResource('selected_file_summary', this.bmi_1); this.tnf_1 = new StringResource('drag_and_drop_or_click_to_add_file', this.bmi_1); this.unf_1 = new StringResource('extra_active_tab_warning', this.bmi_1); this.vnf_1 = new StringResource('saved', this.bmi_1); this.wnf_1 = new StringResource('individual', this.bmi_1); this.xnf_1 = new StringResource('group', this.bmi_1); this.ynf_1 = new StringResource('dont_show_before', this.bmi_1); this.znf_1 = new StringResource('group_submission', this.bmi_1); this.ang_1 = new StringResource('require_file_submission', this.bmi_1); this.bng_1 = new StringResource('require_text_submission', this.bmi_1); this.cng_1 = new StringResource('maximum', this.bmi_1); this.dng_1 = new StringResource('size_limit', this.bmi_1); this.eng_1 = new StringResource('size_limit_error', this.bmi_1); this.fng_1 = new StringResource('limit', this.bmi_1); this.gng_1 = new StringResource('number_of_files', this.bmi_1); this.hng_1 = new StringResource('edit_after_submission', this.bmi_1); this.ing_1 = new StringResource('allowed_till_deadline', this.bmi_1); this.jng_1 = new StringResource('allowed_till_grace', this.bmi_1); this.kng_1 = new StringResource('not_allowed', this.bmi_1); this.lng_1 = new StringResource('marked_by', this.bmi_1); this.mng_1 = new StringResource('peers', this.bmi_1); this.nng_1 = new StringResource('peers_to_review', this.bmi_1); this.ong_1 = new StringResource('file_type', this.bmi_1); this.png_1 = new StringResource('file_type_chosen', this.bmi_1); this.qng_1 = new StringResource('file_type_any', this.bmi_1); this.rng_1 = new StringResource('file_document', this.bmi_1); this.sng_1 = new StringResource('file_image', this.bmi_1); this.tng_1 = new StringResource('submit_grade', this.bmi_1); this.ung_1 = new StringResource('submit_grade_and_mark_next', this.bmi_1); this.vng_1 = new StringResource('graded', this.bmi_1); this.wng_1 = new StringResource('score_greater_than_zero', this.bmi_1); this.xng_1 = new StringResource('words', this.bmi_1); this.yng_1 = new StringResource('characters', this.bmi_1); this.zng_1 = new StringResource('class_timezone_set', this.bmi_1); this.anh_1 = new StringResource('maximum_points', this.bmi_1); this.bnh_1 = new StringResource('penalty_label', this.bmi_1); this.cnh_1 = new StringResource('submissions', this.bmi_1); this.dnh_1 = new StringResource('add_text', this.bmi_1); this.enh_1 = new StringResource('course_blocks', this.bmi_1); this.fnh_1 = new StringResource('add_block', this.bmi_1); this.gnh_1 = new StringResource('edit_block', this.bmi_1); this.hnh_1 = new StringResource('module', this.bmi_1); this.inh_1 = new StringResource('course_module', this.bmi_1); this.jnh_1 = new StringResource('formatted_text_to_show_to_course_participants', this.bmi_1); this.knh_1 = new StringResource('add_course_block_content_desc', this.bmi_1); this.lnh_1 = new StringResource('add_assignment_block_content_desc', this.bmi_1); this.mnh_1 = new StringResource('discussion_board', this.bmi_1); this.nnh_1 = new StringResource('add_discussion_board_desc', this.bmi_1); this.onh_1 = new StringResource('new_module', this.bmi_1); this.pnh_1 = new StringResource('edit_module', this.bmi_1); this.qnh_1 = new StringResource('indent', this.bmi_1); this.rnh_1 = new StringResource('unindent', this.bmi_1); this.snh_1 = new StringResource('institution', this.bmi_1); this.tnh_1 = new StringResource('student_enrolment_policy', this.bmi_1); this.unh_1 = new StringResource('teacher_enrolment_policy', this.bmi_1); this.vnh_1 = new StringResource('open_enrolment', this.bmi_1); this.wnh_1 = new StringResource('enrolment_requests_must_be_approved', this.bmi_1); this.xnh_1 = new StringResource('accept_enrolment_requests_automatically', this.bmi_1); this.ynh_1 = new StringResource('visibility', this.bmi_1); this.znh_1 = new StringResource('hidden_enrolment_via_links_code_or_invitation', this.bmi_1); this.ani_1 = new StringResource('visible_for_all', this.bmi_1); this.bni_1 = new StringResource('terminology', this.bmi_1); this.cni_1 = new StringResource('select_terminology', this.bmi_1); this.dni_1 = new StringResource('add_new_terminology', this.bmi_1); this.eni_1 = new StringResource('edit_terminology', this.bmi_1); this.fni_1 = new StringResource('your_words_for', this.bmi_1); this.gni_1 = new StringResource('course_setup', this.bmi_1); this.hni_1 = new StringResource('number_of_groups', this.bmi_1); this.ini_1 = new StringResource('assign_to_random_groups', this.bmi_1); this.jni_1 = new StringResource('add_new_groups', this.bmi_1); this.kni_1 = new StringResource('edit_groups', this.bmi_1); this.lni_1 = new StringResource('num_replies', this.bmi_1); this.mni_1 = new StringResource('topics', this.bmi_1); this.nni_1 = new StringResource('add_topic', this.bmi_1); this.oni_1 = new StringResource('add_a_reply', this.bmi_1); this.pni_1 = new StringResource('messages', this.bmi_1); this.qni_1 = new StringResource('message', this.bmi_1); this.rni_1 = new StringResource('library', this.bmi_1); this.sni_1 = new StringResource('courses', this.bmi_1); this.tni_1 = new StringResource('course', this.bmi_1); this.uni_1 = new StringResource('reports_and_analytics', this.bmi_1); this.vni_1 = new StringResource('course_comments', this.bmi_1); this.wni_1 = new StringResource('currently_enroled', this.bmi_1); this.xni_1 = new StringResource('past_enrolments', this.bmi_1); this.yni_1 = new StringResource('standard', this.bmi_1); this.zni_1 = new StringResource('group_number', this.bmi_1); this.anj_1 = new StringResource('add_group', this.bmi_1); this.bnj_1 = new StringResource('edit_group', this.bmi_1); this.cnj_1 = new StringResource('new_group_set', this.bmi_1); this.dnj_1 = new StringResource('edit_text', this.bmi_1); this.enj_1 = new StringResource('add_module', this.bmi_1); this.fnj_1 = new StringResource('add_a_new_course', this.bmi_1); this.gnj_1 = new StringResource('join_existing_course', this.bmi_1); this.hnj_1 = new StringResource('edit_course', this.bmi_1); this.inj_1 = new StringResource('currently_enrolled', this.bmi_1); this.jnj_1 = new StringResource('past_enrollments', this.bmi_1); this.knj_1 = new StringResource('unread', this.bmi_1); this.lnj_1 = new StringResource('new_chat', this.bmi_1); this.mnj_1 = new StringResource('new_group', this.bmi_1); this.nnj_1 = new StringResource('chat', this.bmi_1); this.onj_1 = new StringResource('you', this.bmi_1); this.pnj_1 = new StringResource('edit_topic', this.bmi_1); this.qnj_1 = new StringResource('posts', this.bmi_1); this.rnj_1 = new StringResource('post', this.bmi_1); this.snj_1 = new StringResource('individual_submission', this.bmi_1); this.tnj_1 = new StringResource('unassigned', this.bmi_1); this.unj_1 = new StringResource('error_too_long_text', this.bmi_1); this.vnj_1 = new StringResource('managed_enrolment', this.bmi_1); this.wnj_1 = new StringResource('text_file_submission_error', this.bmi_1); this.xnj_1 = new StringResource('submit_all_at_once_submission_policy', this.bmi_1); this.ynj_1 = new StringResource('multiple_submission_allowed_submission_policy', this.bmi_1); this.znj_1 = new StringResource('enrolment_policy', this.bmi_1); this.ank_1 = new StringResource('submission_policy', this.bmi_1); this.bnk_1 = new StringResource('submission_already_made', this.bmi_1); this.cnk_1 = new StringResource('grade_out_of_range', this.bmi_1); this.dnk_1 = new StringResource('update_grade', this.bmi_1); this.enk_1 = new StringResource('update_grade_and_mark_next', this.bmi_1); this.fnk_1 = new StringResource('add_discussion', this.bmi_1); this.gnk_1 = new StringResource('edit_discussion', this.bmi_1); this.hnk_1 = new StringResource('type_here', this.bmi_1); this.ink_1 = new StringResource('deadline_has_passed', this.bmi_1); this.jnk_1 = new StringResource('already_submitted', this.bmi_1); this.knk_1 = new StringResource('exceeds_word_limit', this.bmi_1); this.lnk_1 = new StringResource('exceeds_char_limit', this.bmi_1); this.mnk_1 = new StringResource('unassigned_error', this.bmi_1); this.nnk_1 = new StringResource('enabled', this.bmi_1); this.onk_1 = new StringResource('disabled', this.bmi_1); this.pnk_1 = new StringResource('from_my_courses', this.bmi_1); this.qnk_1 = new StringResource('assign_reviewers', this.bmi_1); this.rnk_1 = new StringResource('reviews_per_user_group', this.bmi_1); this.snk_1 = new StringResource('assign_random_reviewers', this.bmi_1); this.tnk_1 = new StringResource('reviewer', this.bmi_1); this.unk_1 = new StringResource('app_language', this.bmi_1); this.vnk_1 = new StringResource('pdf', this.bmi_1); this.wnk_1 = new StringResource('panic_button_app', this.bmi_1); this.xnk_1 = new StringResource('actions_to_be_taken_in_case_of_emergency', this.bmi_1); this.ynk_1 = new StringResource('exit_app', this.bmi_1); this.znk_1 = new StringResource('delete_app_data_from_device', this.bmi_1); this.anl_1 = new StringResource('more_options', this.bmi_1); this.bnl_1 = new StringResource('num_holidays', this.bmi_1); this.cnl_1 = new StringResource('hide_app', this.bmi_1); this.dnl_1 = new StringResource('panic_button_explanation', this.bmi_1); this.enl_1 = new StringResource('hide_app_explanation', this.bmi_1); this.fnl_1 = new StringResource('most_recent', this.bmi_1); this.gnl_1 = new StringResource('comment', this.bmi_1); this.hnl_1 = new StringResource('grant_app_permission', this.bmi_1); this.inl_1 = new StringResource('this_app_will_receive', this.bmi_1); this.jnl_1 = new StringResource('my_profile', this.bmi_1); this.knl_1 = new StringResource('add_another_account', this.bmi_1); this.lnl_1 = new StringResource('end_is_before_start', this.bmi_1); this.mnl_1 = new StringResource('select_person', this.bmi_1); this.nnl_1 = new StringResource('your_submission', this.bmi_1); this.onl_1 = new StringResource('edit_content', this.bmi_1); this.pnl_1 = new StringResource('edit_folder', this.bmi_1); this.qnl_1 = new StringResource('add_new_post', this.bmi_1); this.rnl_1 = new StringResource('grades_scoring', this.bmi_1); this.snl_1 = new StringResource('mark_comment', this.bmi_1); this.tnl_1 = new StringResource('mark', this.bmi_1); this.unl_1 = new StringResource('too_high', this.bmi_1); this.vnl_1 = new StringResource('required', this.bmi_1); this.wnl_1 = new StringResource('expand', this.bmi_1); this.xnl_1 = new StringResource('collapse', this.bmi_1); this.ynl_1 = new StringResource('remove', this.bmi_1); this.znl_1 = new StringResource('table_of_contents', this.bmi_1); this.anm_1 = new StringResource('select_date', this.bmi_1); this.bnm_1 = new StringResource('link', this.bmi_1); this.cnm_1 = new StringResource('time_submitted', this.bmi_1); this.dnm_1 = new StringResource('group_assignment', this.bmi_1); this.enm_1 = new StringResource('menu', this.bmi_1); this.fnm_1 = new StringResource('restarting', this.bmi_1); this.gnm_1 = new StringResource('terms_required_if_registration_enabled', this.bmi_1); this.hnm_1 = new StringResource('drop_files_to_import', this.bmi_1); this.inm_1 = new StringResource('compose_post', this.bmi_1); this.jnm_1 = new StringResource('password_updated', this.bmi_1); this.knm_1 = new StringResource('html5_content_display_engine', this.bmi_1); this.lnm_1 = new StringResource('chrome_recommended', this.bmi_1); this.mnm_1 = new StringResource('chrome_recommended_info', this.bmi_1); this.nnm_1 = new StringResource('internal_webview', this.bmi_1); this.onm_1 = new StringResource('internal_webview_info', this.bmi_1); this.pnm_1 = new StringResource('content_not_ready_try_later', this.bmi_1); this.qnm_1 = new StringResource('version', this.bmi_1); this.rnm_1 = new StringResource('licenses', this.bmi_1); this.snm_1 = new StringResource('cannot_record_attendance_for_future_date_time', this.bmi_1); this.tnm_1 = new StringResource('could_not_load_vlc', this.bmi_1); this.unm_1 = new StringResource('selected', this.bmi_1); this.vnm_1 = new StringResource('clear_selection', this.bmi_1); this.wnm_1 = new StringResource('move_entries_to_this_folder', this.bmi_1); this.xnm_1 = new StringResource('cannot_move_to_subfolder_of_self', this.bmi_1); this.ynm_1 = new StringResource('cannot_move_already_in_same_folder', this.bmi_1); this.znm_1 = new StringResource('move_to', this.bmi_1); this.ann_1 = new StringResource('restore', this.bmi_1); this.bnn_1 = new StringResource('delete_permanently', this.bmi_1); this.cnn_1 = new StringResource('deleted_items', this.bmi_1); this.dnn_1 = new StringResource('delete_or_restore_items', this.bmi_1); this.enn_1 = new StringResource('yesterday', this.bmi_1); this.fnn_1 = new StringResource('request_to_enrol_already_pending', this.bmi_1); this.gnn_1 = new StringResource('request_submitted', this.bmi_1); this.hnn_1 = new StringResource('canceled_enrolment_request', this.bmi_1); this.inn_1 = new StringResource('enroled_into_name', this.bmi_1); this.jnn_1 = new StringResource('declined_request_from_name', this.bmi_1); this.knn_1 = new StringResource('view_course', this.bmi_1); this.lnn_1 = new StringResource('moderate', this.bmi_1); this.mnn_1 = new StringResource('manage_student_enrolments', this.bmi_1); this.nnn_1 = new StringResource('manage_teacher_enrolments', this.bmi_1); this.onn_1 = new StringResource('view_learning_records', this.bmi_1); this.pnn_1 = new StringResource('edit_learning_records', this.bmi_1); this.qnn_1 = new StringResource('view_members', this.bmi_1); this.rnn_1 = new StringResource('copy_invite_code', this.bmi_1); this.snn_1 = new StringResource('direct_enrol_users_onto_courses', this.bmi_1); this.tnn_1 = new StringResource('could_not_restart', this.bmi_1); this.unn_1 = new StringResource('close_now', this.bmi_1); this.vnn_1 = new StringResource('view_all_courses', this.bmi_1); this.wnn_1 = new StringResource('edit_all_courses', this.bmi_1); this.xnn_1 = new StringResource('moderate_all_courses', this.bmi_1); this.ynn_1 = new StringResource('manage_student_enrolments_for_all_courses', this.bmi_1); this.znn_1 = new StringResource('manage_teacher_enrolments_for_all_courses', this.bmi_1); this.ano_1 = new StringResource('view_attendance_records_for_all_courses', this.bmi_1); this.bno_1 = new StringResource('edit_attendance_records_for_all_courses', this.bmi_1); this.cno_1 = new StringResource('add_new_users', this.bmi_1); this.dno_1 = new StringResource('view_all_users', this.bmi_1); this.eno_1 = new StringResource('edit_all_users', this.bmi_1); this.fno_1 = new StringResource('view_learning_records_for_all_courses', this.bmi_1); this.gno_1 = new StringResource('edit_learning_records_for_all_courses', this.bmi_1); this.hno_1 = new StringResource('add_new_courses', this.bmi_1); this.ino_1 = new StringResource('manage_user_permissions', this.bmi_1); this.jno_1 = new StringResource('reset_passwords', this.bmi_1); this.kno_1 = new StringResource('upload_failed', this.bmi_1); this.lno_1 = new StringResource('opening_name', this.bmi_1); this.mno_1 = new StringResource('invalid_invite_code', this.bmi_1); this.nno_1 = new StringResource('bulk_import', this.bmi_1); this.ono_1 = new StringResource('import_key', this.bmi_1); this.pno_1 = new StringResource('imported', this.bmi_1); this.qno_1 = new StringResource('you_can_import_users_using_a_csv_file', this.bmi_1); this.rno_1 = new StringResource('get_template', this.bmi_1); this.sno_1 = new StringResource('line_number', this.bmi_1); this.tno_1 = new StringResource('selected_content', this.bmi_1); this.uno_1 = new StringResource('edit_content_block', this.bmi_1); this.vno_1 = new StringResource('compression', this.bmi_1); this.wno_1 = new StringResource('compression_highest', this.bmi_1); this.xno_1 = new StringResource('compression_high', this.bmi_1); this.yno_1 = new StringResource('compression_medium', this.bmi_1); this.zno_1 = new StringResource('compression_low', this.bmi_1); this.anp_1 = new StringResource('compression_lowest', this.bmi_1); this.bnp_1 = new StringResource('compression_none', this.bmi_1); this.cnp_1 = new StringResource('size_compressed_was', this.bmi_1); this.dnp_1 = new StringResource('size', this.bmi_1); this.enp_1 = new StringResource('import_error', this.bmi_1); this.fnp_1 = new StringResource('upload_error', this.bmi_1); this.gnp_1 = new StringResource('offline_items_storage', this.bmi_1); this.hnp_1 = new StringResource('space_available', this.bmi_1); this.inp_1 = new StringResource('grant_permission', this.bmi_1); this.jnp_1 = new StringResource('gradebook', this.bmi_1); this.knp_1 = new StringResource('full_screen', this.bmi_1); this.lnp_1 = new StringResource('exit_full_screen', this.bmi_1); this.mnp_1 = new StringResource('increase_text_size', this.bmi_1); this.nnp_1 = new StringResource('decrease_text_size', this.bmi_1); this.onp_1 = new StringResource('nothing_here_yet', this.bmi_1); this.pnp_1 = new StringResource('signup_with_passkey', this.bmi_1); this.qnp_1 = new StringResource('other_options', this.bmi_1); this.rnp_1 = new StringResource('i_am_teacher', this.bmi_1); this.snp_1 = new StringResource('i_am_parent', this.bmi_1); this.tnp_1 = new StringResource('select_picture_from_files', this.bmi_1); this.unp_1 = new StringResource('your_date_of_birth', this.bmi_1); this.vnp_1 = new StringResource('add_child_profiles', this.bmi_1); this.wnp_1 = new StringResource('child_profile', this.bmi_1); this.xnp_1 = new StringResource('finish', this.bmi_1); this.ynp_1 = new StringResource('scan_badge_qr_code', this.bmi_1); this.znp_1 = new StringResource('new_user', this.bmi_1); this.anq_1 = new StringResource('existing_user', this.bmi_1); this.bnq_1 = new StringResource('personal_account', this.bmi_1); this.cnq_1 = new StringResource('signup', this.bmi_1); this.dnq_1 = new StringResource('access_educational_content_download_offline', this.bmi_1); this.enq_1 = new StringResource('join_learning_space', this.bmi_1); this.fnq_1 = new StringResource('learning_space', this.bmi_1); this.gnq_1 = new StringResource('eg_for_your_school_organization', this.bmi_1); this.hnq_1 = new StringResource('new_learning_space', this.bmi_1); this.inq_1 = new StringResource('full_name', this.bmi_1); this.jnq_1 = new StringResource('which_profile_do_you_want_to_start', this.bmi_1); this.knq_1 = new StringResource('create_passkey_for_faster_and_easier_signin', this.bmi_1); this.lnq_1 = new StringResource('create_username_and_password', this.bmi_1); this.mnq_1 = new StringResource('create_local_account', this.bmi_1); this.nnq_1 = new StringResource('with_passkeys_no_complex_passwords_needed', this.bmi_1); this.onq_1 = new StringResource('enter_link_manually', this.bmi_1); this.pnq_1 = new StringResource('registration_not_allowed', this.bmi_1); this.qnq_1 = new StringResource('add_subtitles', this.bmi_1); this.rnq_1 = new StringResource('edit_subtitles', this.bmi_1); this.snq_1 = new StringResource('subtitles', this.bmi_1); this.tnq_1 = new StringResource('progress_key', this.bmi_1); this.unq_1 = new StringResource('response', this.bmi_1); this.vnq_1 = new StringResource('true_key', this.bmi_1); this.wnq_1 = new StringResource('false_key', this.bmi_1); this.xnq_1 = new StringResource('invite_via_contact', this.bmi_1); this.ynq_1 = new StringResource('invite_to_course', this.bmi_1); this.znq_1 = new StringResource('use_email', this.bmi_1); this.anr_1 = new StringResource('use_phone_number', this.bmi_1); this.bnr_1 = new StringResource('add_username_email_phone', this.bmi_1); this.cnr_1 = new StringResource('no_valid_contact_found', this.bmi_1); this.dnr_1 = new StringResource('no_contact_found', this.bmi_1); this.enr_1 = new StringResource('decline', this.bmi_1); this.fnr_1 = new StringResource('do_you_want_to_join_this_course', this.bmi_1); this.gnr_1 = new StringResource('invite_has_been_used', this.bmi_1); this.hnr_1 = new StringResource('pending_invites', this.bmi_1); this.inr_1 = new StringResource('expires', this.bmi_1); this.jnr_1 = new StringResource('reminder', this.bmi_1); this.knr_1 = new StringResource('resend', this.bmi_1); this.lnr_1 = new StringResource('revoke', this.bmi_1); this.mnr_1 = new StringResource('invite_code_redeemed', this.bmi_1); this.nnr_1 = new StringResource('invite_code_invalid', this.bmi_1); this.onr_1 = new StringResource('invite_declined', this.bmi_1); this.pnr_1 = new StringResource('invite_code_already_redeemed', this.bmi_1); this.qnr_1 = new StringResource('invite_code_expired', this.bmi_1); this.rnr_1 = new StringResource('invitation_is_revoked', this.bmi_1); this.snr_1 = new StringResource('security', this.bmi_1); this.tnr_1 = new StringResource('manage_account', this.bmi_1); this.unr_1 = new StringResource('passkeys', this.bmi_1); this.vnr_1 = new StringResource('manage', this.bmi_1); this.wnr_1 = new StringResource('created', this.bmi_1); this.xnr_1 = new StringResource('create_passkey', this.bmi_1); this.ynr_1 = new StringResource('last_updated', this.bmi_1); this.znr_1 = new StringResource('delete_this_passkey', this.bmi_1); this.ans_1 = new StringResource('loss_access_passkey_dialog', this.bmi_1); this.bns_1 = new StringResource('sign_in_faster_next_time', this.bmi_1); this.cns_1 = new StringResource('secure_passkey_detail_text', this.bmi_1); this.dns_1 = new StringResource('invitations_sent', this.bmi_1); this.ens_1 = new StringResource('invitation_sent', this.bmi_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.fns_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.gns_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.hns_1 = new Impl(this.gns_1, this.fns_1); this.ins_1 = new PluralsResource('number_of_attempts', this.hns_1); this.jns_1 = new PluralsResource('duration_hours', this.hns_1); this.kns_1 = new PluralsResource('duration_minutes', this.hns_1); this.lns_1 = new PluralsResource('duration_seconds', this.hns_1); this.mns_1 = new PluralsResource('items_selected', this.hns_1); this.nns_1 = new PluralsResource('items_deleted', this.hns_1); this.ons_1 = new PluralsResource('items_restored', this.hns_1); this.pns_1 = new PluralsResource('are_you_sure_you_want_to_permanently_delete', this.hns_1); } var plurals_instance; function plurals_getInstance() { if (plurals_instance == null) new plurals(); return plurals_instance; } function MR() { MR_instance = this; this.qns_1 = 'b7c1451136b0ec0e147a3ac770a407e4'; this.rns_1 = strings_getInstance().bmi_1.jmd(plurals_getInstance().hns_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.sns_1 = makeAccountActive; this.tns_1 = parentJoin; } protoOf(AccountRegisterOptions).toString = function () { return 'AccountRegisterOptions(makeAccountActive=' + this.sns_1 + ', parentJoin=' + this.tns_1 + ')'; }; protoOf(AccountRegisterOptions).hashCode = function () { var result = getBooleanHashCode(this.sns_1); result = imul(result, 31) + (this.tns_1 == null ? 0 : this.tns_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.sns_1 === tmp0_other_with_cast.sns_1)) return false; if (!equals(this.tns_1, tmp0_other_with_cast.tns_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.wns_1; dataLayer$factory_0(); return this_0.t2(); } function $setAuthCOROUTINE$1(_this__u8e3s4, personUid, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fnt_1 = _this__u8e3s4; this.gnt_1 = personUid; this.hnt_1 = password; } protoOf($setAuthCOROUTINE$1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = doublePbkdf2HashAsBase64(this.fnt_1, this.hnt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.int_1 = suspendResult; this.hd_1 = 2; var tmp_0 = _get_dataLayer__43yv12(this.fnt_1).uk2().u7f(); var this_0 = new PersonAuth2(); this_0.wg0_1 = this.gnt_1; var tmp_1 = this_0; tmp_1.xg0_1 = 'PBKDF2x2'; this_0.yg0_1 = this.int_1; suspendResult = tmp_0.sg0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function AuthManager(learningSpace, di) { this.uns_1 = learningSpace; this.vns_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.uns_1; var trigger = this.x57(); // 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.b58(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.wns_1 = Instance(this_0, tmp$ret$3, null).u5d(this, dataLayer$factory()); } protoOf(AuthManager).u57 = function () { return this.vns_1; }; protoOf(AuthManager).jnt = function (personUid, password, $completion) { var tmp = new $setAuthCOROUTINE$1(this, personUid, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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_48; function Companion_getInstance_16() { return Companion_instance_48; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.LearningSpace', this, 1); tmp0_serialDesc.n4g('url', false); this.knt_1 = tmp0_serialDesc; } protoOf($serializer).k45 = function () { return this.knt_1; }; protoOf($serializer).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer).m45 = function (decoder) { var tmp0_desc = this.knt_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp6_input = decoder.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return LearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer).lnt = function (encoder, value) { var tmp0_desc = this.knt_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.mnt_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer).l45 = function (encoder, value) { return this.lnt(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().knt_1); } $this.mnt_1 = url; var tmp = $this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.nnt_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.mnt_1).s31_1, '.local'); }; } function LearningSpace$_init_$lambda_beny7x(this$0) { return function () { return endsWith(Url(this$0.mnt_1).s31_1, '.local'); }; } function LearningSpace(url) { this.mnt_1 = url; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.nnt_1 = lazy(tmp_0, LearningSpace$isLocal$delegate$lambda(this)); } protoOf(LearningSpace).ont = function () { // Inline function 'kotlin.getValue' call var this_0 = this.nnt_1; isLocal$factory(); return this_0.t2(); }; protoOf(LearningSpace).toString = function () { return 'LearningSpace(url=' + this.mnt_1 + ')'; }; protoOf(LearningSpace).hashCode = function () { return getStringHashCode(this.mnt_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.mnt_1 === tmp0_other_with_cast.mnt_1)) return false; return true; }; function isLocal$factory() { return getPropertyCallableRef('isLocal', 1, KProperty1, function (receiver) { return receiver.ont(); }, null); } function Companion_0() { Companion_instance_49 = this; this.pnt_1 = new LearningSpaceScope(); } var Companion_instance_49; function Companion_getInstance_17() { if (Companion_instance_49 == null) new Companion_0(); return Companion_instance_49; } function LearningSpaceScope() { Companion_getInstance_17(); var tmp = this; // Inline function 'kotlin.collections.mutableMapOf' call tmp.qnt_1 = LinkedHashMap_init_$Create$(); } protoOf(LearningSpaceScope).rnt = function (context) { // Inline function 'kotlin.collections.getOrPut' call var this_0 = this.qnt_1; var key = context.mnt_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).b5a = function (context) { return this.rnt(context instanceof LearningSpace ? context : THROW_CCE()); }; function Pbkdf2Params(iterations, keyLength) { iterations = iterations === VOID ? 10000 : iterations; keyLength = keyLength === VOID ? 512 : keyLength; this.snt_1 = iterations; this.tnt_1 = keyLength; } protoOf(Pbkdf2Params).toString = function () { return 'Pbkdf2Params(iterations=' + this.snt_1 + ', keyLength=' + this.tnt_1 + ')'; }; protoOf(Pbkdf2Params).hashCode = function () { var result = this.snt_1; result = imul(result, 31) + this.tnt_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.snt_1 === tmp0_other_with_cast.snt_1)) return false; if (!(this.tnt_1 === tmp0_other_with_cast.tnt_1)) return false; return true; }; function Companion_1() { } protoOf(Companion_1).h4s = function () { return $serializer_getInstance_12(); }; var Companion_instance_50; function Companion_getInstance_18() { return Companion_instance_50; } function $serializer_0() { $serializer_instance_0 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.RegisterRequest', this, 5); tmp0_serialDesc.n4g('person', false); tmp0_serialDesc.n4g('newPassword', false); tmp0_serialDesc.n4g('parent', false); tmp0_serialDesc.n4g('learningSpaceUrl', false); tmp0_serialDesc.n4g('langCode', true); this.unt_1 = tmp0_serialDesc; } protoOf($serializer_0).k45 = function () { return this.unt_1; }; protoOf($serializer_0).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.unt_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.c49(tmp0_desc); if (tmp9_input.r49()) { tmp4_local0 = tmp9_input.o49(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.q49(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.m49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.o49(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.q49(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.m49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.d49(tmp0_desc); return RegisterRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_0).vnt = function (encoder, value) { var tmp0_desc = this.unt_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, $serializer_getInstance(), value.wnt_1); tmp1_output.q4a(tmp0_desc, 1, value.xnt_1); tmp1_output.u4a(tmp0_desc, 2, $serializer_getInstance_0(), value.ynt_1); tmp1_output.q4a(tmp0_desc, 3, value.znt_1); if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.anu_1 === 'en')) { tmp1_output.q4a(tmp0_desc, 4, value.anu_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_0).l45 = function (encoder, value) { return this.vnt(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().unt_1); } $this.wnt_1 = person; $this.xnt_1 = newPassword; $this.ynt_1 = parent; $this.znt_1 = learningSpaceUrl; if (0 === (seen1 & 16)) $this.anu_1 = 'en'; else $this.anu_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.wnt_1 = person; this.xnt_1 = newPassword; this.ynt_1 = parent; this.znt_1 = learningSpaceUrl; this.anu_1 = langCode; } protoOf(RegisterRequest).toString = function () { return 'RegisterRequest(person=' + this.wnt_1 + ', newPassword=' + this.xnt_1 + ', parent=' + this.ynt_1 + ', learningSpaceUrl=' + this.znt_1 + ', langCode=' + this.anu_1 + ')'; }; protoOf(RegisterRequest).hashCode = function () { var result = this.wnt_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.xnt_1) | 0; result = imul(result, 31) + (this.ynt_1 == null ? 0 : this.ynt_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.znt_1) | 0; result = imul(result, 31) + getStringHashCode(this.anu_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.wnt_1.equals(tmp0_other_with_cast.wnt_1)) return false; if (!(this.xnt_1 === tmp0_other_with_cast.xnt_1)) return false; if (!equals(this.ynt_1, tmp0_other_with_cast.ynt_1)) return false; if (!(this.znt_1 === tmp0_other_with_cast.znt_1)) return false; if (!(this.anu_1 === tmp0_other_with_cast.anu_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_51; function Companion_getInstance_19() { return Companion_instance_51; } function $serializer_1() { $serializer_instance_1 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.UserSessionWithPersonAndLearningSpace', this, 4); tmp0_serialDesc.n4g('userSession', false); tmp0_serialDesc.n4g('person', false); tmp0_serialDesc.n4g('learningSpace', false); tmp0_serialDesc.n4g('personPicture', true); this.bnu_1 = tmp0_serialDesc; } protoOf($serializer_1).k45 = function () { return this.bnu_1; }; protoOf($serializer_1).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.bnu_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.c49(tmp0_desc); if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.o49(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.o49(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.o49(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.o49(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return UserSessionWithPersonAndLearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_1).cnu = function (encoder, value) { var tmp0_desc = this.bnu_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, $serializer_getInstance_1(), value.dnu_1); tmp1_output.s4a(tmp0_desc, 1, $serializer_getInstance(), value.enu_1); tmp1_output.s4a(tmp0_desc, 2, $serializer_getInstance_11(), value.fnu_1); if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.gnu_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, $serializer_getInstance_2(), value.gnu_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_1).l45 = function (encoder, value) { return this.cnu(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().bnu_1); } $this.dnu_1 = userSession; $this.enu_1 = person; $this.fnu_1 = learningSpace; if (0 === (seen1 & 8)) $this.gnu_1 = null; else $this.gnu_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.dnu_1 = userSession; this.enu_1 = person; this.fnu_1 = learningSpace; this.gnu_1 = personPicture; } protoOf(UserSessionWithPersonAndLearningSpace).hnu = function () { var displayUrl = removeSuffix(removePrefix(removePrefix(this.fnu_1.mnt_1, 'http://'), 'https://'), '/'); return '' + this.enu_1.a97_1 + '@' + displayUrl; }; protoOf(UserSessionWithPersonAndLearningSpace).inu = function () { return toUmAccount(this.enu_1, this.fnu_1.mnt_1); }; protoOf(UserSessionWithPersonAndLearningSpace).jnu = function () { var tmp0_elvis_lhs = this.enu_1.a97_1; return new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(this.fnu_1.mnt_1, tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs)); }; protoOf(UserSessionWithPersonAndLearningSpace).knu = function (userSession, person, learningSpace, personPicture) { return new UserSessionWithPersonAndLearningSpace(userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).lnu = function (userSession, person, learningSpace, personPicture, $super) { userSession = userSession === VOID ? this.dnu_1 : userSession; person = person === VOID ? this.enu_1 : person; learningSpace = learningSpace === VOID ? this.fnu_1 : learningSpace; personPicture = personPicture === VOID ? this.gnu_1 : personPicture; return $super === VOID ? this.knu(userSession, person, learningSpace, personPicture) : $super.knu.call(this, userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).toString = function () { return 'UserSessionWithPersonAndLearningSpace(userSession=' + this.dnu_1 + ', person=' + this.enu_1 + ', learningSpace=' + this.fnu_1 + ', personPicture=' + this.gnu_1 + ')'; }; protoOf(UserSessionWithPersonAndLearningSpace).hashCode = function () { var result = hashCode(this.dnu_1); result = imul(result, 31) + this.enu_1.hashCode() | 0; result = imul(result, 31) + this.fnu_1.hashCode() | 0; result = imul(result, 31) + (this.gnu_1 == null ? 0 : this.gnu_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.dnu_1, tmp0_other_with_cast.dnu_1)) return false; if (!this.enu_1.equals(tmp0_other_with_cast.enu_1)) return false; if (!this.fnu_1.equals(tmp0_other_with_cast.fnu_1)) return false; if (!equals(this.gnu_1, tmp0_other_with_cast.gnu_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.hnu(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager........' call var tmp$ret$1 = b.hnu(); return compareValues(tmp, tmp$ret$1); } function UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.unu_1 = this$0; this.vnu_1 = $learningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).xnu = function (learningSpaceSessions, $completion) { var tmp = this.ynu(learningSpaceSessions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.xnu((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.unu_1.dnv_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.fnu_1.equals(this.vnu_1)) { destination.i1(element); } } var this_1 = this.wnu_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.eik_1; var tmp_0 = tmp0_elvis_lhs == null ? new UserSession() : tmp0_elvis_lhs; var tmp1_elvis_lhs = item.cik_1; destination_0.i1(new UserSessionWithPersonAndLearningSpace(tmp_0, tmp1_elvis_lhs == null ? new Person() : tmp1_elvis_lhs, this.vnu_1, item.dik_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.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).ynu = function (learningSpaceSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this.unu_1, this.vnu_1, completion); i.wnu_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.xnu(learningSpaceSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.snv_1 = this$0; this.tnv_1 = $learningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var this_0 = this.snv_1.anv_1; var context = this.tnv_1; var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.vnv_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.vnv_1.v7f().xii(); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda$slambda_0(this.snv_1, this.tnv_1, null); suspendResult = tmp_5.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda(this.snv_1, this.tnv_1, completion); i.unv_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda(this$0, resultContinuation) { this.enw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda).gnw = function (learningSpacesWithSessions, $completion) { var tmp = this.hnw(learningSpacesWithSessions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda$slambda).he = function (p1, $completion) { return this.gnw((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_iterator = this.fnw_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); launch(this.enw_1.jnv_1, VOID, VOID, UstadAccountManager$slambda$slambda$slambda$slambda_0(this.enw_1, element, null)); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda).hnw = function (learningSpacesWithSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda(this.enw_1, completion); i.fnw_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.gnw(learningSpacesWithSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda(this$0, resultContinuation) { this.qnw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(UstadAccountManager$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = collectLatest(this.qnw_1.cnv_1, UstadAccountManager$slambda$slambda$slambda_0(this.qnw_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda).f79 = function (completion) { return new UstadAccountManager$slambda$slambda(this.qnw_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.d88($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.tg6_1; tmp.b97_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b97_1; var tmp_0 = $this$shallowCopy; var tmp2_safe_receiver = $personAndPictureFromDb; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.tg6_1; tmp_0.c97_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.c97_1; return Unit_instance; }; } function UstadAccountManager$slambda$slambda$slambda$slambda_1($session, this$0, resultContinuation) { this.znw_1 = $session; this.anx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).cnx = function (personAndPictureFromDb, $completion) { var tmp = this.dnx(personAndPictureFromDb, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.cnx((p1 == null ? true : p1 instanceof PersonAndPicture) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_safe_receiver = this.bnx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tg6_1; var nameChanged = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ykq()) === this.znw_1.enu_1.ykq()); var tmp2_safe_receiver = this.bnx_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ug6_1; var tmp_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.b98_1; var tmp4_safe_receiver = this.znw_1.gnu_1; var pictureUriChanged = !(tmp_0 == (tmp4_safe_receiver == null ? null : tmp4_safe_receiver.b98_1)); if (nameChanged ? true : pictureUriChanged) { var tmp_1; if (nameChanged) { tmp_1 = shallowCopy(this.znw_1.enu_1, UstadAccountManager$slambda$slambda$slambda$slambda$lambda(this.bnx_1)); } else { tmp_1 = this.znw_1.enu_1; } var tmp_2 = tmp_1; var tmp_3; if (pictureUriChanged) { var tmp5_safe_receiver = this.bnx_1; tmp_3 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.ug6_1; } else { tmp_3 = this.znw_1.gnu_1; } this.anx_1.enx(this.znw_1.lnu(VOID, tmp_2, VOID, tmp_3)); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).dnx = function (personAndPictureFromDb, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda_1(this.znw_1, this.anx_1, completion); i.bnx_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.cnx(personAndPictureFromDb, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nnx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda_1).qnx = function (session, $completion) { var tmp = this.rnx(session, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.qnx(p1 instanceof UserSessionWithPersonAndLearningSpace ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var this_0 = this.nnx_1.anv_1; var context = this.onx_1.fnu_1; var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.pnx_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.pnx_1.h7e().acm(this.onx_1.dnu_1.uij_1); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda_2(this.onx_1, this.nnx_1, null); suspendResult = tmp_5.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda$slambda_1).rnx = function (session, completion) { var i = new UstadAccountManager$slambda$slambda$slambda_1(this.nnx_1, completion); i.onx_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.qnx(session, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda_1(this$0, resultContinuation) { this.any_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda_1).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda_1).g79 = function ($completion) { return this.d88($completion); }; protoOf(UstadAccountManager$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = collectLatest(this.any_1.bnv_1, UstadAccountManager$slambda$slambda$slambda_2(this.any_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda$slambda_1).f79 = function (completion) { return new UstadAccountManager$slambda$slambda_1(this.any_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.d88($completion); }; l.$arity = 0; return l; } function UstadAccountManager$registerWithPasskey$slambda$slambda($repo, $person, resultContinuation) { this.jny_1 = $repo; this.kny_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = this.jny_1.h7e().gg5(this.kny_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mny_1 = suspendResult; if (this.mny_1 == null) { this.hd_1 = 2; suspendResult = this.jny_1.h7e().insertAsync(this.kny_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).ony = function (it, completion) { var i = new UstadAccountManager$registerWithPasskey$slambda$slambda(this.jny_1, this.kny_1, completion); i.lny_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.nny(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda(this$0, resultContinuation) { this.xny_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda).bnz = function (response, $completion) { var tmp = this.w3i(response, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$register$slambda$slambda).he = function (p1, $completion) { return this.bnz(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$register$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (this.yny_1.d3c().z30_1 === 200) { var tmp_0 = this; tmp_0.anz_1 = _get_json__d8whur(this.xny_1); this.hd_1 = 1; suspendResult = bodyAsText(this.yny_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.zny_1 = new Pair(null, this.yny_1.d3c().z30_1); this.hd_1 = 2; continue $sm; } case 1: var string = suspendResult; var this_0 = this.anz_1.n46(); var this_1 = serializer(this_0, createKType(getKClass(Person), arrayOf([]), false)); var ARGUMENT = this.anz_1.m46(isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(), string); this.zny_1 = new Pair(ARGUMENT, 200); this.hd_1 = 2; continue $sm; case 2: return this.zny_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$register$slambda$slambda).w3i = function (response, completion) { var i = new UstadAccountManager$register$slambda$slambda(this.xny_1, completion); i.yny_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.bnz(response, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda_1($db, $registeredPerson, resultContinuation) { this.knz_1 = $db; this.lnz_1 = $registeredPerson; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda_1).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$register$slambda$slambda_1).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$register$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = this.knz_1.h7e().gg5(this.lnz_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nnz_1 = suspendResult; if (this.nnz_1 == null) { this.hd_1 = 2; suspendResult = this.knz_1.h7e().insertAsync(this.lnz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$register$slambda$slambda_1).ony = function (it, completion) { var i = new UstadAccountManager$register$slambda$slambda_1(this.knz_1, this.lnz_1, completion); i.mnz_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.nny(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.env_1; createNewLocalAccountUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fnv_1; httpClient$factory_0(); return this_0.t2(); } function _get_json__d8whur($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gnv_1; json$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hnv_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.pij_1 = tmp_0.h63(679); this_0.vij_1 = get_doorWrapperNodeId(currentDb); this_0.wij_1 = systemTimeInMillis(); var tmp_1 = this_0; tmp_1.bik_1 = 8 | 4; var tmp_2 = this_0; tmp_2.yij_1 = 1; var this_1 = new UserSessionWithPersonAndLearningSpace(this_0, Companion_getInstance_20().onz_1, new LearningSpace(learningSpaceUrl)); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.makeNewTempGuestSession.' call launch($this.jnv_1, VOID, VOID, UstadAccountManager$makeNewTempGuestSession$slambda_0(currentDb, this_1, null)); return this_1; } function assertNotClosed($this) { if ($this.inv_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.cnv_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.s1l(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.cnv_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.s1l(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.cnv_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.mnt_1; destination.i1(tmp$ret$0); } var json = tmp.l46(tmp_0, toList(destination)); // Inline function 'com.russhwolf.settings.set' call var this_1 = $this.znu_1; var key = 'accountmgr.endpointswithsessions'; this_1.tm7(key, json); } function getSiteFromDbOrLoadFromHttp($this, repo, $completion) { var tmp = new $getSiteFromDbOrLoadFromHttpCOROUTINE$7($this, repo, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_3() { Companion_instance_52 = 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.z96_1 = new Long(0, 0); this_0.b97_1 = 'Guest'; this_0.c97_1 = 'User'; tmp.onz_1 = this_0; this.pnz_1 = 'accountmgr.activesession'; this.qnz_1 = 'accountmgr.activeendpoint'; this.rnz_1 = 'accountmgr.endpointswithsessions'; this.snz_1 = 'http://localhost/'; this.tnz_1 = 'com.ustadmobile'; this.unz_1 = 'com.ustadmobile.AUTH_GET_TOKEN'; } var Companion_instance_52; function Companion_getInstance_20() { if (Companion_instance_52 == null) new Companion_3(); return Companion_instance_52; } function sam$kotlin_Comparator$0(function_0) { this.ho0_1 = function_0; } protoOf(sam$kotlin_Comparator$0).pa = function (a, b) { return this.ho0_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.io0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).n1e = function (value, $completion) { return this.io0_1(value, $completion); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0(function_0) { this.jo0_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0).ko0 = function (endpointUrl) { return this.jo0_1(endpointUrl); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0(function_0) { this.lo0_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0).ko0 = function (endpointUrl) { return this.lo0_1(endpointUrl); }; function UstadAccountManager$slambda(this$0, resultContinuation) { this.uo0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.uo0_1.dnv_1, UstadAccountManager$slambda$slambda_0(this.uo0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda).p1n = function ($this$launch, completion) { var i = new UstadAccountManager$slambda(this.uo0_1, completion); i.vo0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda_1(this$0, resultContinuation) { this.eo1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.eo1_1.bnv_1, UstadAccountManager$slambda$slambda_2(this.eo1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$slambda_1).p1n = function ($this$launch, completion) { var i = new UstadAccountManager$slambda_1(this.eo1_1, completion); i.fo1_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$makeNewTempGuestSession$slambda($currentDb, $it, resultContinuation) { this.oo1_1 = $currentDb; this.po1_1 = $it; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.oo1_1.v7f().wii(this.po1_1.dnu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).p1n = function ($this$launch, completion) { var i = new UstadAccountManager$makeNewTempGuestSession$slambda(this.oo1_1, this.po1_1, completion); i.qo1_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.o1n($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.zo1_1 = $learningSpaceUrl; this.ao2_1 = this$0; this.bo2_1 = $passkeyResult; this.co2_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$registerWithPasskey$slambda).o1n = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$registerWithPasskey$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$registerWithPasskey$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.eo2_1 = new LearningSpace(this.zo1_1); var tmp_0 = this; var this_0 = this.ao2_1.anv_1; var context = new LearningSpace(_get_apiUrlConfig__mldllg(this.ao2_1).io2_1); var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(SavePersonPasskeyUseCase), arrayOf([]), false)); tmp_0.fo2_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; suspendResult = this.fo2_1.po2(this.bo2_1, this.co2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_5 = this; var this_1 = this.ao2_1.anv_1; var context_0 = this.eo2_1; var trigger_0 = this_1.x57(); 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.b58(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).z58(); var tmp_9 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_5.go2_1 = tmp_8.x58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null).tk2(); this.hd_1 = 2; suspendResult = this.ao2_1.qo2(this.co2_1, this.zo1_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ho2_1 = suspendResult; this.hd_1 = 3; suspendResult = withDoorTransactionAsync(this.go2_1, VOID, UstadAccountManager$registerWithPasskey$slambda$slambda_0(this.go2_1, this.co2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var this_2 = this.ao2_1.anv_1; var context_1 = this.eo2_1; var trigger_1 = this_2.x57(); 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.b58(isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(), context_1), trigger_1)).z58(); var tmp_13 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_12.x58(isInterface(tmp_13, TypeToken) ? tmp_13 : THROW_CCE(), 1); this.ao2_1.enx(this.ho2_1); return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$registerWithPasskey$slambda).p1n = function ($this$withContext, completion) { var i = new UstadAccountManager$registerWithPasskey$slambda(this.zo1_1, this.ao2_1, this.bo2_1, this.co2_1, completion); i.do2_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.o1n($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda(this$0, $learningSpaceUrl, $accountRegisterOptions, $person, $password, resultContinuation) { this.zo2_1 = this$0; this.ao3_1 = $learningSpaceUrl; this.bo3_1 = $accountRegisterOptions; this.co3_1 = $person; this.do3_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda).po3 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$register$slambda).he = function (p1, $completion) { return this.po3((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$register$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; assertNotClosed(this.zo2_1); this.fo3_1 = new LearningSpace(this.ao3_1); this.go3_1 = this.bo3_1.tns_1; var tmp_0 = this; var this_0 = _get_httpClient__2ty1zc(this.zo2_1); var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.ao3_1, '/') + '/auth/register'); contentType(this_1, Application_getInstance().p2s_1); setBodyJson(this_1, _get_json__d8whur(this.zo2_1), Companion_instance_50.h4s(), new RegisterRequest(this.co3_1, this.do3_1, this.go3_1, this.ao3_1)); this_1.q39_1 = Companion_getInstance().g2y_1; tmp_0.ho3_1 = new HttpStatement(this_1, this_0); this.hd_1 = 1; suspendResult = this.ho3_1.a40(UstadAccountManager$register$slambda$slambda_0(this.zo2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.io3_1 = suspendResult; this.jo3_1 = this.io3_1.y6(); this.ko3_1 = this.io3_1.z6(); if (this.ko3_1 === 200 ? !(this.jo3_1 == null) : false) { var tmp_1 = this; var this_2 = this.zo2_1.anv_1; var context = this.fo3_1; var trigger = this_2.x57(); 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.b58(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context), trigger)).z58(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1.mo3_1 = tmp_4.x58(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null).tk2(); this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.zo2_1, this.mo3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.ko3_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.ko3_1); } } case 2: this.hd_1 = 3; suspendResult = this.zo2_1.qo2(this.jo3_1, this.ao3_1, this.do3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.no3_1 = suspendResult; var tmp_8 = this; var this_3 = this.zo2_1.anv_1; var context_0 = this.fo3_1; var trigger_0 = this_3.x57(); 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.b58(isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(), context_0), trigger_0)).z58(); var tmp_12 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_8.oo3_1 = tmp_11.x58(isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(), 1); this.hd_1 = 4; suspendResult = withDoorTransactionAsync(this.oo3_1, VOID, UstadAccountManager$register$slambda$slambda_2(this.oo3_1, this.jo3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: if (this.bo3_1.sns_1) { this.zo2_1.enx(this.no3_1); } this.lo3_1 = this.jo3_1; this.hd_1 = 5; continue $sm; case 5: return this.lo3_1; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$register$slambda).p1n = function ($this$withContext, completion) { var i = new UstadAccountManager$register$slambda(this.zo2_1, this.ao3_1, this.bo3_1, this.co3_1, this.do3_1, completion); i.eo3_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.po3($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$addSession$slambda(this$0, $learningSpace, $person, $password, $authManager, $dataLayer, resultContinuation) { this.yo3_1 = this$0; this.zo3_1 = $learningSpace; this.ao4_1 = $person; this.bo4_1 = $password; this.co4_1 = $authManager; this.do4_1 = $dataLayer; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$addSession$slambda).qo4 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$addSession$slambda).he = function (p1, $completion) { return this.qo4(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$addSession$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp_0 = this; var this_0 = this.yo3_1.anv_1; var context = this.zo3_1; var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(NodeIdAndAuth), arrayOf([]), false)); tmp_0.fo4_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null).k65_1; var tmp_5 = this; tmp_5.go4_1 = new UserSession(); var tmp_6 = this; tmp_6.ho4_1 = this.go4_1; this.ho4_1.vij_1 = this.fo4_1; this.ho4_1.uij_1 = this.ao4_1.z96_1; this.ho4_1.wij_1 = systemTimeInMillis(); var tmp_7 = this.ho4_1; tmp_7.bik_1 = 1; var tmp_8 = this.ho4_1; tmp_8.yij_1 = 1; this.io4_1 = this.bo4_1; if (this.io4_1 == null) { this.jo4_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_9 = this; tmp_9.ko4_1 = this.io4_1; var tmp_10 = this; tmp_10.lo4_1 = this.ko4_1; this.hd_1 = 1; suspendResult = encryptPbkdf2(this.co4_1, this.lo4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.mo4_1 = suspendResult; this.jo4_1 = toHexString(this.mo4_1); this.hd_1 = 2; continue $sm; case 2: this.no4_1 = this.jo4_1; this.ho4_1.aik_1 = this.no4_1; this.hd_1 = 3; suspendResult = this.do4_1.uk2().v7f().wii(this.ho4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.oo4_1 = suspendResult; this.ho4_1.pij_1 = this.oo4_1; this.po4_1 = this.go4_1; this.hd_1 = 4; suspendResult = this.do4_1.qk2_1.z7e().sh4(this.ao4_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var personPicture = suspendResult; return to(this.po4_1, personPicture); case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$addSession$slambda).ony = function (it, completion) { var i = new UstadAccountManager$addSession$slambda(this.yo3_1, this.zo3_1, this.ao4_1, this.bo4_1, this.co4_1, this.do4_1, completion); i.eo4_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.qo4(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$endSession$lambda($session) { return function (it) { return it === $session.fnu_1.mnt_1; }; } function UstadAccountManager$loginWithPasskey$slambda(this$0, $currentServerUrl, $passkeyWebAuthNResponse, resultContinuation) { this.zo4_1 = this$0; this.ao5_1 = $currentServerUrl; this.bo5_1 = $passkeyWebAuthNResponse; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$loginWithPasskey$slambda).qo5 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$loginWithPasskey$slambda).he = function (p1, $completion) { return this.qo5((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$loginWithPasskey$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; assertNotClosed(this.zo4_1); var tmp_0 = this; tmp_0.do5_1 = _get_httpClient__2ty1zc(this.zo4_1); var tmp_1 = this; tmp_1.eo5_1 = this.do5_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, removeSuffix(this.ao5_1, '/') + '/api/passkey/verifypasskey'); setBodyJson(this_0, _get_json__d8whur(this.zo4_1), Companion_instance_93.h4s(), this.bo5_1); parameter(this_0, 'rpId', Url(_get_apiUrlConfig__mldllg(this.zo4_1).io2_1).s31_1); tmp_2.fo5_1 = this_0; this.fo5_1.q39_1 = Companion_getInstance().g2y_1; var tmp_3 = this; tmp_3.go5_1 = this.eo5_1; var tmp_4 = this; tmp_4.ho5_1 = this.fo5_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.ho5_1, this.go5_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.io5_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.io5_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jo5_1 = suspendResult; var tmp_5 = Napier_getInstance(); tmp_5.e5f(VOID, VOID, UstadAccountManager$loginWithPasskey$slambda$lambda(this.jo5_1)); var tmp_6 = this; var this_1 = _get_json__d8whur(this.zo4_1); var string = this.jo5_1; var this_2 = this_1.n46(); var this_3 = serializer(this_2, createKType(getKClass(PasskeyVerifyResult), arrayOf([]), false)); tmp_6.ko5_1 = this_1.m46(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); if (!this.ko5_1.ro5_1) { throw new UnauthorizedException('Account not found'); } this.lo5_1 = new UmAccount(this.ko5_1.so5_1); this.lo5_1.uky_1 = this.ao5_1; var tmp_7 = this; var this_4 = this.zo4_1.anv_1; var context = new LearningSpace(this.ao5_1); var trigger = this_4.x57(); 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.b58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), context), trigger)).z58(); var tmp_11 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_7.mo5_1 = tmp_10.x58(isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(), null).tk2(); this.hd_1 = 3; suspendResult = this.mo5_1.h7e().fg5(this.ko5_1.so5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.no5_1 = suspendResult; var tmp_12 = this; var tmp_13; if (this.no5_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_13 = this.no5_1; } tmp_12.oo5_1 = tmp_13; this.po5_1 = ensureNotNull(this.oo5_1.tg6_1); this.lo5_1.yky_1 = this.po5_1.h97_1; this.hd_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.zo4_1, this.mo5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; suspendResult = this.zo4_1.qo2(this.po5_1, this.ao5_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; this.zo4_1.enx(newSession); return this.lo5_1; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$loginWithPasskey$slambda).p1n = function ($this$withContext, completion) { var i = new UstadAccountManager$loginWithPasskey$slambda(this.zo4_1, this.ao5_1, this.bo5_1, completion); i.co5_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.qo5($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$login$slambda(this$0, $endpointUrl, $username, $password, $maxDateOfBirth, $dontSetCurrentSession, resultContinuation) { this.do6_1 = this$0; this.eo6_1 = $endpointUrl; this.fo6_1 = $username; this.go6_1 = $password; this.ho6_1 = $maxDateOfBirth; this.io6_1 = $dontSetCurrentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$login$slambda).qo5 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$login$slambda).he = function (p1, $completion) { return this.qo5((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadAccountManager$login$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; assertNotClosed(this.do6_1); var tmp_0 = this; var this_0 = get_direct(this.do6_1.anv_1); var context = new LearningSpace(this.eo6_1); var tmp_1 = this_0.z58(); var tmp_2 = Companion_instance_0; var tmp_3 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_4 = tmp_1.w58(tmp_2.b58(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context)).z58(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.ko6_1 = tmp_4.x58(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null); var tmp_6 = this; var tmp_7 = this.ko6_1.rk2_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.d3a(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p66_1; var tmp_8; if (tmp2_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Could not open repo for endpoint ' + this.eo6_1); } else { tmp_8 = tmp2_elvis_lhs; } tmp_6.lo6_1 = tmp_8; var tmp_9 = this; tmp_9.mo6_1 = _get_httpClient__2ty1zc(this.do6_1); var tmp_10 = this; tmp_10.no6_1 = this.mo6_1; var tmp_11 = this; var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.eo6_1, '/') + '/auth/login'); parameter(this_1, 'username', this.fo6_1); parameter(this_1, 'password', this.go6_1); parameter(this_1, 'maxDateOfBirth', this.ho6_1); header(this_1, 'X-nid', this.lo6_1); set_expectSuccess(this_1, false); tmp_11.oo6_1 = this_1; this.oo6_1.q39_1 = Companion_getInstance().g2y_1; var tmp_12 = this; tmp_12.po6_1 = this.no6_1; var tmp_13 = this; tmp_13.qo6_1 = this.oo6_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.qo6_1, this.po6_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ro6_1 = suspendResult; if (this.ro6_1.d3c().z30_1 === 403) { throw new UnauthorizedException('Access denied'); } else if (this.ro6_1.d3c().equals(Companion_getInstance_0().k30_1)) { throw new ConsentNotGrantedException('Parental consent required but not granted'); } else if (this.ro6_1.d3c().equals(Companion_getInstance_0().z2z_1)) { throw new AdultAccountRequiredException('Adult account required, credentials for child account'); } else if (!(this.ro6_1.d3c().z30_1 === 200)) { throw IllegalStateException_init_$Create$('Server error - response ' + this.ro6_1.d3c().z30_1); } var tmp_14 = this; tmp_14.so6_1 = _get_json__d8whur(this.do6_1); this.hd_1 = 2; suspendResult = bodyAsText(this.ro6_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.to6_1 = suspendResult; var tmp_15 = this; var this_2 = this.so6_1.n46(); var this_3 = serializer(this_2, createKType(getKClass(UmAccount), arrayOf([]), false)); tmp_15.uo6_1 = this.so6_1.m46(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.to6_1); this.uo6_1.uky_1 = this.eo6_1; this.hd_1 = 3; suspendResult = this.ko6_1.uk2().h7e().fg5(this.uo6_1.rky_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.vo6_1 = suspendResult; var tmp_16 = this; var tmp_17; if (this.vo6_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_17 = this.vo6_1; } tmp_16.wo6_1 = tmp_17; this.xo6_1 = ensureNotNull(this.wo6_1.tg6_1); this.uo6_1.yky_1 = this.xo6_1.h97_1; this.hd_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.do6_1, this.ko6_1.uk2(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; suspendResult = this.do6_1.qo2(this.xo6_1, this.eo6_1, this.go6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; if (!this.io6_1) { this.do6_1.enx(newSession); } return this.uo6_1; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadAccountManager$login$slambda).p1n = function ($this$withContext, completion) { var i = new UstadAccountManager$login$slambda(this.do6_1, this.eo6_1, this.fo6_1, this.go6_1, this.ho6_1, this.io6_1, completion); i.jo6_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.qo5($this$withContext, $completion); }; l.$arity = 1; return l; } function $activeSessionsListCOROUTINE$2(_this__u8e3s4, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.go7_1 = _this__u8e3s4; this.ho7_1 = endpointFilter; } protoOf($activeSessionsListCOROUTINE$2).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.go7_1.cnv_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.ho7_1.ko0(element.mnt_1)) { destination.i1(element); } } tmp_0.io7_1 = destination; var tmp_1 = this; tmp_1.jo7_1 = this.io7_1; var tmp_2 = this; tmp_2.ko7_1 = ArrayList_init_$Create$(); this.lo7_1 = this.jo7_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.lo7_1.f()) { this.hd_1 = 3; continue $sm; } this.mo7_1 = this.lo7_1.e(); var tmp_3 = this; tmp_3.no7_1 = this.mo7_1; var tmp_4 = this; var this_1 = this.go7_1.anv_1; var context = this.no7_1; var trigger = this_1.x57(); 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.b58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).z58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.oo7_1 = tmp_7.x58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.oo7_1.v7f().yii(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.no7_1)); } var list = destination_0; addAll(this.ko7_1, list); this.hd_1 = 1; continue $sm; case 3: return this.ko7_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $activeSessionCountCOROUTINE$3(_this__u8e3s4, maxDateOfBirth, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xo7_1 = _this__u8e3s4; this.yo7_1 = maxDateOfBirth; this.zo7_1 = endpointFilter; } protoOf($activeSessionCountCOROUTINE$3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.xo7_1.cnv_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.zo7_1.ko0(element.mnt_1)) { destination.i1(element); } } tmp_0.ao8_1 = destination; var tmp_1 = this; tmp_1.bo8_1 = 0; this.co8_1 = this.bo8_1; this.do8_1 = this.ao8_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.do8_1.f()) { this.hd_1 = 3; continue $sm; } this.eo8_1 = this.do8_1.e(); var tmp_2 = this; tmp_2.fo8_1 = this.co8_1; var tmp_3 = this; tmp_3.go8_1 = this.eo8_1; var tmp_4 = this; var this_1 = this.xo7_1.anv_1; var context = this.go8_1; var trigger = this_1.x57(); 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.b58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).z58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.ho8_1 = tmp_7.x58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.ho8_1.v7f().zii(this.yo7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; this.co8_1 = this.fo8_1 + ARGUMENT | 0; this.hd_1 = 1; continue $sm; case 3: return this.co8_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $addSessionCOROUTINE$4(_this__u8e3s4, person, learningSpaceUrl, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qo8_1 = _this__u8e3s4; this.ro8_1 = person; this.so8_1 = learningSpaceUrl; this.to8_1 = password; } protoOf($addSessionCOROUTINE$4).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; assertNotClosed(this.qo8_1); this.uo8_1 = new LearningSpace(this.so8_1); var tmp_0 = this; var this_0 = this.qo8_1.anv_1; var context = this.uo8_1; var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.vo8_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); if (!this.qo8_1.cnv_1.t2().a1(this.uo8_1)) { this.hd_1 = 1; suspendResult = addActiveLearningSpace(this.qo8_1, this.uo8_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: commitActiveEndpointsToPref(this.qo8_1); this.hd_1 = 2; continue $sm; case 2: var tmp_5 = this; var this_1 = this.qo8_1.anv_1; var context_0 = this.uo8_1; var trigger_0 = this_1.x57(); 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.b58(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).z58(); var tmp_9 = typeToken(createKType(getKClass(AuthManager), arrayOf([]), false)); tmp_5.wo8_1 = tmp_8.x58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null); this.hd_1 = 3; var tmp_10 = this.vo8_1.uk2(); suspendResult = withDoorTransactionAsync(tmp_10, VOID, UstadAccountManager$addSession$slambda_0(this.qo8_1, this.uo8_1, this.ro8_1, this.to8_1, this.wo8_1, this.vo8_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.ro8_1, this.uo8_1, personPicture); case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $endSessionCOROUTINE$6(_this__u8e3s4, session, endStatus, endReason, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fo9_1 = _this__u8e3s4; this.go9_1 = session; this.ho9_1 = endStatus; this.io9_1 = endReason; } protoOf($endSessionCOROUTINE$6).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.fo9_1.anv_1; var context = this.go9_1.fnu_1; var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.jo9_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; suspendResult = this.jo9_1.uk2().v7f().aij(this.go9_1.dnu_1.pij_1, this.ho9_1, this.io9_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (this.fo9_1.ko9().dnu_1.pij_1.equals(this.go9_1.dnu_1.pij_1) ? this.fo9_1.ko9().fnu_1.equals(this.go9_1.fnu_1) : false) { this.fo9_1.enx(makeNewTempGuestSession(this.fo9_1, this.go9_1.fnu_1.mnt_1, this.jo9_1.uk2())); } this.hd_1 = 2; var tmp_5 = UstadAccountManager$endSession$lambda(this.go9_1); suspendResult = this.fo9_1.lo9(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.fo9_1, this.go9_1.fnu_1); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 3; continue $sm; } case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $getSiteFromDbOrLoadFromHttpCOROUTINE$7(_this__u8e3s4, repo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.do0_1 = _this__u8e3s4; this.eo0_1 = repo; } protoOf($getSiteFromDbOrLoadFromHttpCOROUTINE$7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1 = this.eo0_1; var tmp_2 = (isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : THROW_CCE()).r5j(); tmp_0.fo0_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : THROW_CCE(); this.hd_1 = 1; suspendResult = this.fo0_1.p7f().jhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.go0_1 = suspendResult; if (this.go0_1 == null) { this.hd_1 = 2; suspendResult = this.eo0_1.p7f().jhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_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.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $startGuestSessionCOROUTINE$9(_this__u8e3s4, learningSpaceUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uo9_1 = _this__u8e3s4; this.vo9_1 = learningSpaceUrl; } protoOf($startGuestSessionCOROUTINE$9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var this_0 = this.uo9_1.anv_1; var context = new LearningSpace(this.vo9_1); var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.wo9_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; var tmp_5 = this.wo9_1.uk2(); var this_1 = new Person(); this_1.a97_1 = null; this_1.b97_1 = 'Guest'; this_1.c97_1 = 'User'; var tmp_6 = this_1; tmp_6.o97_1 = 2; suspendResult = insertPersonAndGroup(tmp_5, this_1, 1 | 16, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xo9_1 = suspendResult; this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.uo9_1, this.wo9_1.uk2(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.uo9_1.qo2(this.xo9_1, this.vo9_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var guestSession = suspendResult; this.uo9_1.enx(guestSession); return guestSession; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function UstadAccountManager(settings, di) { Companion_getInstance_20(); this.znu_1 = settings; this.anv_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = this.anv_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.env_1 = Instance(this_0, tmp$ret$0, null).u5d(this, createNewLocalAccountUseCase$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_1 = this.anv_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.fnv_1 = Instance(this_1, tmp$ret$2, null).u5d(this, httpClient$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_2 = this.anv_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.gnv_1 = Instance(this_2, tmp$ret$4, null).u5d(this, json$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call var this_3 = this.anv_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.hnv_1 = Instance(this_3, tmp$ret$6, null).u5d(this, apiUrlConfig$factory()); this.inv_1 = atomic$boolean$1(false); this.jnv_1 = CoroutineScope_0(Dispatchers_getInstance().n13().lj(Job())); var tmp0_elvis_lhs = this.znu_1.um7('accountmgr.activeendpoint'); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg(this).jo2_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.anv_1); var context = new LearningSpace(currentEndpointStr); var tmp_7 = this_4.z58(); // 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.b58(tmp$ret$8, context); var tmp_10 = tmp_7.w58(tmp$ret$9).z58(); // 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.x58(tmp$ret$11, 1); var tmp2_safe_receiver = this.znu_1.um7('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.n46(); // 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.m46(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.bnv_1 = MutableStateFlow(initUserSession); var tmp4_safe_receiver = this.znu_1.um7('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).m46(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.cnv_1 = MutableStateFlow(destination); this.dnv_1 = MutableStateFlow(listOf_0(initUserSession)); launch(this.jnv_1, VOID, VOID, UstadAccountManager$slambda_0(this, null)); launch(this.jnv_1, VOID, VOID, UstadAccountManager$slambda_2(this, null)); } protoOf(UstadAccountManager).enx = function (value) { this.bnv_1.r1l(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.n46(); // 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.l46(tmp$ret$1, value); // Inline function 'com.russhwolf.settings.set' call var this_3 = this.znu_1; var key = 'accountmgr.activesession'; this_3.tm7(key, activeAccountJson); // Inline function 'com.russhwolf.settings.set' call var this_4 = this.znu_1; var key_0 = 'accountmgr.activeendpoint'; var value_0 = value.fnu_1.mnt_1; this_4.tm7(key_0, value_0); }; protoOf(UstadAccountManager).ko9 = function () { return this.bnv_1.t2(); }; protoOf(UstadAccountManager).yo9 = function () { return asStateFlow(this.bnv_1); }; protoOf(UstadAccountManager).zo9 = function () { return this.bnv_1.t2().inu(); }; protoOf(UstadAccountManager).aoa = function () { return asStateFlow(this.dnv_1); }; protoOf(UstadAccountManager).boa = function () { return this.bnv_1.t2().fnu_1; }; protoOf(UstadAccountManager).lo9 = function (endpointFilter, $completion) { var tmp = new $activeSessionsListCOROUTINE$2(this, endpointFilter, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).coa = function (maxDateOfBirth, endpointFilter, $completion) { var tmp = new $activeSessionCountCOROUTINE$3(this, maxDateOfBirth, endpointFilter, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).doa = 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.coa(maxDateOfBirth, endpointFilter, $completion) : $super.coa.call(this, maxDateOfBirth, endpointFilter, $completion); }; protoOf(UstadAccountManager).eoa = function (learningSpaceUrl, passkeyResult, person, personPicture, $completion) { var tmp = Dispatchers_getInstance().j13_1; return withContext(tmp, UstadAccountManager$registerWithPasskey$slambda_0(learningSpaceUrl, this, passkeyResult, person, null), $completion); }; protoOf(UstadAccountManager).foa = function (person, password, learningSpaceUrl, accountRegisterOptions, $completion) { var tmp = Dispatchers_getInstance().j13_1; return withContext(tmp, UstadAccountManager$register$slambda_0(this, learningSpaceUrl, accountRegisterOptions, person, password, null), $completion); }; protoOf(UstadAccountManager).goa = function (person, password, learningSpaceUrl, accountRegisterOptions, $completion, $super) { accountRegisterOptions = accountRegisterOptions === VOID ? new AccountRegisterOptions() : accountRegisterOptions; return $super === VOID ? this.foa(person, password, learningSpaceUrl, accountRegisterOptions, $completion) : $super.foa.call(this, person, password, learningSpaceUrl, accountRegisterOptions, $completion); }; protoOf(UstadAccountManager).qo2 = function (person, learningSpaceUrl, password, $completion) { var tmp = new $addSessionCOROUTINE$4(this, person, learningSpaceUrl, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).hoa = function (session, endStatus, endReason, $completion) { var tmp = new $endSessionCOROUTINE$6(this, session, endStatus, endReason, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).ioa = 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.hoa(session, endStatus, endReason, $completion) : $super.hoa.call(this, session, endStatus, endReason, $completion); }; protoOf(UstadAccountManager).joa = function (passkeyWebAuthNResponse, currentServerUrl, $completion) { var tmp = Dispatchers_getInstance().j13_1; return withContext(tmp, UstadAccountManager$loginWithPasskey$slambda_0(this, currentServerUrl, passkeyWebAuthNResponse, null), $completion); }; protoOf(UstadAccountManager).koa = function (username, password, endpointUrl, maxDateOfBirth, dontSetCurrentSession, $completion) { var tmp = Dispatchers_getInstance().j13_1; return withContext(tmp, UstadAccountManager$login$slambda_0(this, endpointUrl, username, password, maxDateOfBirth, dontSetCurrentSession, null), $completion); }; protoOf(UstadAccountManager).loa = function (learningSpaceUrl, $completion) { var tmp = new $startGuestSessionCOROUTINE$9(this, learningSpaceUrl, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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.moa_1 = 101; } var Companion_instance_53; function Companion_getInstance_21() { return Companion_instance_53; } function Companion_5() { } protoOf(Companion_5).h4s = function () { return AnchorSerializer_getInstance(); }; var Companion_instance_54; function Companion_getInstance_22() { return Companion_instance_54; } function Anchor(content, href) { content = content === VOID ? '' : content; href = href === VOID ? '' : href; this.noa_1 = content; this.ooa_1 = href; } function deserializeDynamic($this, reader) { var href = reader.g7e(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.poa_1 = buildClassSerialDescriptor('a', []); } protoOf(AnchorSerializer).k45 = function () { return this.poa_1; }; protoOf(AnchorSerializer).m45 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic(this, decoder.jlf()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.poa_1; var composite = decoder.c49(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.AnchorSerializer.deserialize.' call var result = composite.p49(AnchorSerializer_getInstance().poa_1, 0, Companion_instance_54.h4s()); composite.d49(descriptor); tmp = result; } return tmp; }; protoOf(AnchorSerializer).qoa = function (encoder, value) { encoder.t4a(Companion_instance_54.h4s(), value); }; protoOf(AnchorSerializer).l45 = function (encoder, value) { return this.qoa(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).h4s = function () { return BodySerializer_instance; }; var Companion_instance_55; function Companion_getInstance_23() { return Companion_instance_55; } function Body(navigationElements) { this.roa_1 = navigationElements; } function BodySerializer() { } protoOf(BodySerializer).k45 = function () { return buildClassSerialDescriptor('body', []); }; protoOf(BodySerializer).m45 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = this.soa(decoder, decoder.jlf()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.k45(); var composite = decoder.c49(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.BodySerializer.deserialize.' call var result = composite.p49(BodySerializer_instance.k45(), 0, Companion_instance_55.h4s()); composite.d49(descriptor); tmp = result; } return tmp; }; protoOf(BodySerializer).soa = function (decoder, reader) { var xml = this.toa(decoder); // Inline function 'kotlin.collections.mutableListOf' call var navElementList = ArrayList_init_$Create$(); // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.k45(); var composite = decoder.c49(descriptor); while (!(reader.e().equals(EventType_END_ELEMENT_getInstance()) ? reader.dc().hl9() === 'body' : false)) { if (reader.ql5().equals(EventType_START_ELEMENT_getInstance()) ? reader.il5() === 'nav' : false) { // Inline function 'kotlin.collections.plusAssign' call var element = xml.wlj(Companion_instance_57.h4s(), reader); navElementList.i1(element); } } var result = Unit_instance; composite.d49(descriptor); return new Body(toList(navElementList)); }; protoOf(BodySerializer).uoa = function (encoder, value) { encoder.t4a(Companion_instance_55.h4s(), value); }; protoOf(BodySerializer).l45 = function (encoder, value) { return this.uoa(encoder, value instanceof Body ? value : THROW_CCE()); }; protoOf(BodySerializer).toa = function (decoder) { return (isInterface(decoder, XmlInput) ? decoder : THROW_CCE()).slh(); }; var BodySerializer_instance; function BodySerializer_getInstance() { return BodySerializer_instance; } function Companion_7() { } var Companion_instance_56; function Companion_getInstance_24() { return Companion_instance_56; } function $serializer_2() { $serializer_instance_2 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.ListItem', this, 3); tmp0_serialDesc.n4g('anchor', true); tmp0_serialDesc.n4g('span', true); tmp0_serialDesc.n4g('orderedList', true); tmp0_serialDesc.p4g(new XmlSerialName('li', 'http://www.w3.org/1999/xhtml')); this.voa_1 = tmp0_serialDesc; } protoOf($serializer_2).k45 = function () { return this.voa_1; }; protoOf($serializer_2).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.voa_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.c49(tmp0_desc); if (tmp7_input.r49()) { tmp4_local0 = tmp7_input.q49(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.q49(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.q49(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.q49(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.q49(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.q49(tmp0_desc, 2, $serializer_getInstance_17(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.d49(tmp0_desc); return ListItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_2).woa = function (encoder, value) { var tmp0_desc = this.voa_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.xoa_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, AnchorSerializer_getInstance(), value.xoa_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.yoa_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, SpanSerializer_getInstance(), value.yoa_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.zoa_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, $serializer_getInstance_17(), value.zoa_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_2).l45 = function (encoder, value) { return this.woa(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().voa_1); } if (0 === (seen1 & 1)) $this.xoa_1 = null; else $this.xoa_1 = anchor; if (0 === (seen1 & 2)) $this.yoa_1 = null; else $this.yoa_1 = span; if (0 === (seen1 & 4)) $this.zoa_1 = null; else $this.zoa_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.xoa_1 = anchor; this.yoa_1 = span; this.zoa_1 = orderedList; } function Companion_8() { } protoOf(Companion_8).h4s = function () { return $serializer_getInstance_15(); }; var Companion_instance_57; function Companion_getInstance_25() { return Companion_instance_57; } function $serializer_3() { $serializer_instance_3 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavElement', this, 2); tmp0_serialDesc.n4g('epubType', true); tmp0_serialDesc.o4g(new XmlSerialName('type', 'http://www.idpf.org/2007/ops')); tmp0_serialDesc.n4g('orderedList', false); tmp0_serialDesc.p4g(new XmlSerialName('nav', 'http://www.w3.org/1999/xhtml')); this.aob_1 = tmp0_serialDesc; } protoOf($serializer_3).k45 = function () { return this.aob_1; }; protoOf($serializer_3).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.aob_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.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.o49(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.o49(tmp0_desc, 1, $serializer_getInstance_17(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return NavElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_3).bob = function (encoder, value) { var tmp0_desc = this.aob_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.cob_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.cob_1); } tmp1_output.s4a(tmp0_desc, 1, $serializer_getInstance_17(), value.dob_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_3).l45 = function (encoder, value) { return this.bob(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().aob_1); } if (0 === (seen1 & 1)) $this.cob_1 = null; else $this.cob_1 = epubType; $this.dob_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.eob_1 = 'http://www.w3.org/1999/xhtml'; this.fob_1 = 'http://www.idpf.org/2007/ops'; } var Companion_instance_58; function Companion_getInstance_26() { return Companion_instance_58; } function $serializer_4() { $serializer_instance_4 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavigationDocument', this, 1); tmp0_serialDesc.n4g('bodyElement', false); tmp0_serialDesc.p4g(new XmlSerialName('html', 'http://www.w3.org/1999/xhtml')); this.gob_1 = tmp0_serialDesc; } protoOf($serializer_4).k45 = function () { return this.gob_1; }; protoOf($serializer_4).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BodySerializer_instance]; }; protoOf($serializer_4).m45 = function (decoder) { var tmp0_desc = this.gob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return NavigationDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_4).hob = function (encoder, value) { var tmp0_desc = this.gob_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, BodySerializer_instance, value.iob_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_4).l45 = function (encoder, value) { return this.hob(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().gob_1); } $this.iob_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.iob_1 = bodyElement; } function Companion_10() { Companion_instance_59 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.job_1 = [new ArrayListSerializer($serializer_getInstance_14())]; } var Companion_instance_59; function Companion_getInstance_27() { if (Companion_instance_59 == null) new Companion_10(); return Companion_instance_59; } function $serializer_5() { $serializer_instance_5 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.OrderedList', this, 1); tmp0_serialDesc.n4g('listItems', false); tmp0_serialDesc.p4g(new XmlSerialName('ol', 'http://www.w3.org/1999/xhtml')); this.kob_1 = tmp0_serialDesc; } protoOf($serializer_5).k45 = function () { return this.kob_1; }; protoOf($serializer_5).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_27().job_1[0]]; }; protoOf($serializer_5).m45 = function (decoder) { var tmp0_desc = this.kob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); var tmp6_cached = Companion_getInstance_27().job_1; if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return OrderedList_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_5).lob = function (encoder, value) { var tmp0_desc = this.kob_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_27().job_1; tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.mob_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_5).l45 = function (encoder, value) { return this.lob(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().kob_1); } $this.mob_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).h4s = function () { return SpanSerializer_getInstance(); }; var Companion_instance_60; function Companion_getInstance_28() { return Companion_instance_60; } function Span(content) { content = content === VOID ? '' : content; this.nob_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.oob_1 = buildClassSerialDescriptor('span', []); } protoOf(SpanSerializer).k45 = function () { return this.oob_1; }; protoOf(SpanSerializer).m45 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic_0(this, decoder.jlf()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = AnchorSerializer_getInstance().poa_1; var composite = decoder.c49(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.SpanSerializer.deserialize.' call var result = composite.p49(AnchorSerializer_getInstance().poa_1, 0, Companion_instance_60.h4s()); composite.d49(descriptor); tmp = result; } return tmp; }; protoOf(SpanSerializer).pob = function (encoder, value) { encoder.t4a(Companion_instance_60.h4s(), value); }; protoOf(SpanSerializer).l45 = function (encoder, value) { return this.pob(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.n4g('id', true); tmp0_serialDesc.n4g('src', false); tmp0_serialDesc.p4g(new XmlSerialName('content', 'http://www.daisy.org/z3986/2005/ncx/')); this.qob_1 = tmp0_serialDesc; } protoOf($serializer_6).k45 = function () { return this.qob_1; }; protoOf($serializer_6).e4h = 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).m45 = 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.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return Content_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_6).rob = function (encoder, value) { var tmp0_desc = this.qob_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.sob_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.sob_1); } tmp1_output.q4a(tmp0_desc, 1, value.tob_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_6).l45 = function (encoder, value) { return this.rob(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().qob_1); } if (0 === (seen1 & 1)) $this.sob_1 = null; else $this.sob_1 = id; $this.tob_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_61 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.uob_1 = [new ArrayListSerializer($serializer_getInstance_25())]; } var Companion_instance_61; function Companion_getInstance_29() { if (Companion_instance_61 == null) new Companion_12(); return Companion_instance_61; } function $serializer_7() { $serializer_instance_7 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.DocTitle', this, 1); tmp0_serialDesc.n4g('texts', false); tmp0_serialDesc.p4g(new XmlSerialName('docTitle', 'http://www.daisy.org/z3986/2005/ncx/')); this.vob_1 = tmp0_serialDesc; } protoOf($serializer_7).k45 = function () { return this.vob_1; }; protoOf($serializer_7).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_29().uob_1[0]]; }; protoOf($serializer_7).m45 = function (decoder) { var tmp0_desc = this.vob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); var tmp6_cached = Companion_getInstance_29().uob_1; if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return DocTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_7).wob = function (encoder, value) { var tmp0_desc = this.vob_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_29().uob_1; tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.xob_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_7).l45 = function (encoder, value) { return this.wob(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().vob_1); } $this.xob_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_62 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.yob_1 = [new ArrayListSerializer($serializer_getInstance_35())]; } var Companion_instance_62; function Companion_getInstance_30() { if (Companion_instance_62 == null) new Companion_13(); return Companion_instance_62; } function $serializer_8() { $serializer_instance_8 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Head', this, 1); tmp0_serialDesc.n4g('metadata', true); tmp0_serialDesc.p4g(new XmlSerialName('head', 'http://www.daisy.org/z3986/2005/ncx/')); this.zob_1 = tmp0_serialDesc; } protoOf($serializer_8).k45 = function () { return this.zob_1; }; protoOf($serializer_8).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_30().yob_1[0]]; }; protoOf($serializer_8).m45 = function (decoder) { var tmp0_desc = this.zob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); var tmp6_cached = Companion_getInstance_30().yob_1; if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return Head_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_8).aoc = function (encoder, value) { var tmp0_desc = this.zob_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_30().yob_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !equals(value.boc_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.boc_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_8).l45 = function (encoder, value) { return this.aoc(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().zob_1); } if (0 === (seen1 & 1)) $this.boc_1 = emptyList(); else $this.boc_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_30(); metadata = metadata === VOID ? emptyList() : metadata; this.boc_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.n4g('text', false); tmp0_serialDesc.p4g(new XmlSerialName('navLabel', 'http://www.daisy.org/z3986/2005/ncx/')); this.coc_1 = tmp0_serialDesc; } protoOf($serializer_9).k45 = function () { return this.coc_1; }; protoOf($serializer_9).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.coc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, $serializer_getInstance_25(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return NavLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_9).doc = function (encoder, value) { var tmp0_desc = this.coc_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, $serializer_getInstance_25(), value.eoc_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_9).l45 = function (encoder, value) { return this.doc(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().coc_1); } $this.eoc_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_63 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.foc_1 = [new ArrayListSerializer($serializer_getInstance_23())]; } var Companion_instance_63; function Companion_getInstance_31() { if (Companion_instance_63 == null) new Companion_14(); return Companion_instance_63; } function $serializer_10() { $serializer_instance_10 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavMap', this, 1); tmp0_serialDesc.n4g('navPoints', false); tmp0_serialDesc.p4g(new XmlSerialName('navMap', 'http://www.daisy.org/z3986/2005/ncx/')); this.goc_1 = tmp0_serialDesc; } protoOf($serializer_10).k45 = function () { return this.goc_1; }; protoOf($serializer_10).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_31().foc_1[0]]; }; protoOf($serializer_10).m45 = 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_input = decoder.c49(tmp0_desc); var tmp6_cached = Companion_getInstance_31().foc_1; if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return NavMap_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_10).hoc = function (encoder, value) { var tmp0_desc = this.goc_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_31().foc_1; tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.ioc_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_10).l45 = function (encoder, value) { return this.hoc(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().goc_1); } $this.ioc_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_64 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.joc_1 = [new ArrayListSerializer($serializer_getInstance_21()), null, null, null]; } var Companion_instance_64; function Companion_getInstance_32() { if (Companion_instance_64 == null) new Companion_15(); return Companion_instance_64; } function $serializer_11() { $serializer_instance_11 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavPoint', this, 4); tmp0_serialDesc.n4g('navLabels', false); tmp0_serialDesc.n4g('content', false); tmp0_serialDesc.n4g('id', false); tmp0_serialDesc.n4g('childPoints', false); tmp0_serialDesc.p4g(new XmlSerialName('navPoint', 'http://www.daisy.org/z3986/2005/ncx/')); this.koc_1 = tmp0_serialDesc; } protoOf($serializer_11).k45 = function () { return this.koc_1; }; protoOf($serializer_11).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_32().joc_1[0], $serializer_getInstance_18(), StringSerializer_getInstance(), new ArrayListSerializer($serializer_getInstance_23())]; }; protoOf($serializer_11).m45 = function (decoder) { var tmp0_desc = this.koc_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.c49(tmp0_desc); var tmp9_cached = Companion_getInstance_32().joc_1; if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.o49(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.o49(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.o49(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.o49(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.d49(tmp0_desc); return NavPoint_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_11).loc = function (encoder, value) { var tmp0_desc = this.koc_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_32().joc_1; tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.moc_1); tmp1_output.s4a(tmp0_desc, 1, $serializer_getInstance_18(), value.noc_1); tmp1_output.q4a(tmp0_desc, 2, value.ooc_1); tmp1_output.s4a(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_23()), value.poc_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_11).l45 = function (encoder, value) { return this.loc(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().koc_1); } $this.moc_1 = navLabels; $this.noc_1 = content; $this.ooc_1 = id; $this.poc_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.qoc_1 = 'http://www.daisy.org/z3986/2005/ncx/'; this.roc_1 = 'application/x-dtbncx+xml'; } var Companion_instance_65; function Companion_getInstance_33() { return Companion_instance_65; } function $serializer_12() { $serializer_instance_12 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NcxDocument', this, 3); tmp0_serialDesc.n4g('head', false); tmp0_serialDesc.n4g('docTitle', false); tmp0_serialDesc.n4g('navMap', false); tmp0_serialDesc.p4g(new XmlSerialName('ncx', 'http://www.daisy.org/z3986/2005/ncx/')); this.soc_1 = tmp0_serialDesc; } protoOf($serializer_12).k45 = function () { return this.soc_1; }; protoOf($serializer_12).e4h = 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).m45 = 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_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.c49(tmp0_desc); if (tmp7_input.r49()) { tmp4_local0 = tmp7_input.o49(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.o49(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.o49(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.o49(tmp0_desc, 0, $serializer_getInstance_20(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.o49(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.o49(tmp0_desc, 2, $serializer_getInstance_22(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.d49(tmp0_desc); return NcxDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_12).toc = function (encoder, value) { var tmp0_desc = this.soc_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, $serializer_getInstance_20(), value.uoc_1); tmp1_output.s4a(tmp0_desc, 1, $serializer_getInstance_19(), value.voc_1); tmp1_output.s4a(tmp0_desc, 2, $serializer_getInstance_22(), value.woc_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_12).l45 = function (encoder, value) { return this.toc(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().soc_1); } $this.uoc_1 = head; $this.voc_1 = docTitle; $this.woc_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.uoc_1 = head; this.voc_1 = docTitle; this.woc_1 = navMap; } function Companion_17() { } var Companion_instance_66; function Companion_getInstance_34() { return Companion_instance_66; } function $serializer_13() { $serializer_instance_13 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Text', this, 1); tmp0_serialDesc.n4g('content', true); tmp0_serialDesc.o4g(new XmlValue()); tmp0_serialDesc.p4g(new XmlSerialName('text', 'http://www.daisy.org/z3986/2005/ncx/')); this.xoc_1 = tmp0_serialDesc; } protoOf($serializer_13).k45 = function () { return this.xoc_1; }; protoOf($serializer_13).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_13).m45 = function (decoder) { var tmp0_desc = this.xoc_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return Text_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_13).yoc = function (encoder, value) { var tmp0_desc = this.xoc_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.zoc_1 === '')) { tmp1_output.q4a(tmp0_desc, 0, value.zoc_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_13).l45 = function (encoder, value) { return this.yoc(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().xoc_1); } if (0 === (seen1 & 1)) $this.zoc_1 = ''; else $this.zoc_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.zoc_1 = content; } function Companion_18() { } var Companion_instance_67; function Companion_getInstance_35() { return Companion_instance_67; } function $serializer_14() { $serializer_instance_14 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcCreator', this, 2); tmp0_serialDesc.n4g('id', true); tmp0_serialDesc.n4g('content', true); tmp0_serialDesc.o4g(new XmlValue()); tmp0_serialDesc.p4g(new XmlSerialName('creator', 'http://purl.org/dc/elements/1.1/')); this.aod_1 = tmp0_serialDesc; } protoOf($serializer_14).k45 = function () { return this.aod_1; }; protoOf($serializer_14).e4h = 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).m45 = 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_input = decoder.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return DcCreator_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_14).bod = function (encoder, value) { var tmp0_desc = this.aod_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.cod_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.cod_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.dod_1 === '')) { tmp1_output.q4a(tmp0_desc, 1, value.dod_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_14).l45 = function (encoder, value) { return this.bod(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().aod_1); } if (0 === (seen1 & 1)) $this.cod_1 = null; else $this.cod_1 = id; if (0 === (seen1 & 2)) $this.dod_1 = ''; else $this.dod_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.cod_1 = id; this.dod_1 = content; } function Companion_19() { } var Companion_instance_68; function Companion_getInstance_36() { return Companion_instance_68; } function $serializer_15() { $serializer_instance_15 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcDescription', this, 2); tmp0_serialDesc.n4g('lang', true); tmp0_serialDesc.n4g('content', true); tmp0_serialDesc.o4g(new XmlValue()); tmp0_serialDesc.p4g(new XmlSerialName('description', 'http://purl.org/dc/elements/1.1/')); this.eod_1 = tmp0_serialDesc; } protoOf($serializer_15).k45 = function () { return this.eod_1; }; protoOf($serializer_15).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.eod_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.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return DcDescription_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_15).fod = function (encoder, value) { var tmp0_desc = this.eod_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.god_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.god_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.hod_1 === '')) { tmp1_output.q4a(tmp0_desc, 1, value.hod_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_15).l45 = function (encoder, value) { return this.fod(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().eod_1); } if (0 === (seen1 & 1)) $this.god_1 = null; else $this.god_1 = lang; if (0 === (seen1 & 2)) $this.hod_1 = ''; else $this.hod_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.god_1 = lang; this.hod_1 = content; } function Companion_20() { } var Companion_instance_69; function Companion_getInstance_37() { return Companion_instance_69; } function $serializer_16() { $serializer_instance_16 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcIdentifier', this, 2); tmp0_serialDesc.n4g('id', true); tmp0_serialDesc.n4g('content', true); tmp0_serialDesc.o4g(new XmlValue()); tmp0_serialDesc.p4g(new XmlSerialName('identifier', 'http://purl.org/dc/elements/1.1/')); this.iod_1 = tmp0_serialDesc; } protoOf($serializer_16).k45 = function () { return this.iod_1; }; protoOf($serializer_16).e4h = 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).m45 = 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_input = decoder.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return DcIdentifier_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_16).jod = function (encoder, value) { var tmp0_desc = this.iod_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.kod_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.kod_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.lod_1 === '')) { tmp1_output.q4a(tmp0_desc, 1, value.lod_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_16).l45 = function (encoder, value) { return this.jod(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().iod_1); } if (0 === (seen1 & 1)) $this.kod_1 = null; else $this.kod_1 = id; if (0 === (seen1 & 2)) $this.lod_1 = ''; else $this.lod_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.kod_1 = id; this.lod_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.n4g('content', false); tmp0_serialDesc.o4g(new XmlValue()); tmp0_serialDesc.p4g(new XmlSerialName('language', 'http://purl.org/dc/elements/1.1/')); this.mod_1 = tmp0_serialDesc; } protoOf($serializer_17).k45 = function () { return this.mod_1; }; protoOf($serializer_17).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_17).m45 = function (decoder) { var tmp0_desc = this.mod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return DcLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_17).nod = function (encoder, value) { var tmp0_desc = this.mod_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.ood_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_17).l45 = function (encoder, value) { return this.nod(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().mod_1); } $this.ood_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_70; function Companion_getInstance_38() { return Companion_instance_70; } function $serializer_18() { $serializer_instance_18 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcTitle', this, 2); tmp0_serialDesc.n4g('lang', true); tmp0_serialDesc.o4g(new XmlSerialName(VOID, VOID, 'xml')); tmp0_serialDesc.n4g('content', true); tmp0_serialDesc.o4g(new XmlValue()); tmp0_serialDesc.p4g(new XmlSerialName('title', 'http://purl.org/dc/elements/1.1/')); this.pod_1 = tmp0_serialDesc; } protoOf($serializer_18).k45 = function () { return this.pod_1; }; protoOf($serializer_18).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.pod_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.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return DcTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_18).qod = function (encoder, value) { var tmp0_desc = this.pod_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.rod_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.rod_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.sod_1 === '')) { tmp1_output.q4a(tmp0_desc, 1, value.sod_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_18).l45 = function (encoder, value) { return this.qod(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().pod_1); } if (0 === (seen1 & 1)) $this.rod_1 = null; else $this.rod_1 = lang; if (0 === (seen1 & 2)) $this.sod_1 = ''; else $this.sod_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.rod_1 = lang; this.sod_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.n4g('id', false); tmp0_serialDesc.n4g('href', false); tmp0_serialDesc.n4g('properties', true); tmp0_serialDesc.n4g('mediaType', false); tmp0_serialDesc.o4g(new XmlSerialName('media-type')); tmp0_serialDesc.p4g(new XmlSerialName('item', 'http://www.idpf.org/2007/opf')); this.tod_1 = tmp0_serialDesc; } protoOf($serializer_19).k45 = function () { return this.tod_1; }; protoOf($serializer_19).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.tod_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.c49(tmp0_desc); if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return Item_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_19).uod = function (encoder, value) { var tmp0_desc = this.tod_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.vod_1); tmp1_output.q4a(tmp0_desc, 1, value.wod_1); if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.xod_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.xod_1); } tmp1_output.q4a(tmp0_desc, 3, value.yod_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_19).l45 = function (encoder, value) { return this.uod(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().tod_1); } $this.vod_1 = id; $this.wod_1 = href; if (0 === (seen1 & 4)) $this.xod_1 = null; else $this.xod_1 = properties; $this.yod_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_71; function Companion_getInstance_39() { return Companion_instance_71; } function $serializer_20() { $serializer_instance_20 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.ItemRef', this, 1); tmp0_serialDesc.n4g('idRef', true); tmp0_serialDesc.o4g(new XmlSerialName('idref')); tmp0_serialDesc.p4g(new XmlSerialName('itemref', 'http://www.idpf.org/2007/opf')); this.zod_1 = tmp0_serialDesc; } protoOf($serializer_20).k45 = function () { return this.zod_1; }; protoOf($serializer_20).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_20).m45 = function (decoder) { var tmp0_desc = this.zod_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return ItemRef_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_20).aoe = function (encoder, value) { var tmp0_desc = this.zod_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.boe_1 === '')) { tmp1_output.q4a(tmp0_desc, 0, value.boe_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_20).l45 = function (encoder, value) { return this.aoe(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().zod_1); } if (0 === (seen1 & 1)) $this.boe_1 = ''; else $this.boe_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.boe_1 = idRef; } function Companion_23() { Companion_instance_72 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.coe_1 = [new ArrayListSerializer($serializer_getInstance_31())]; } var Companion_instance_72; function Companion_getInstance_40() { if (Companion_instance_72 == null) new Companion_23(); return Companion_instance_72; } function $serializer_21() { $serializer_instance_21 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Manifest', this, 1); tmp0_serialDesc.n4g('items', true); tmp0_serialDesc.p4g(new XmlSerialName('manifest', 'http://www.idpf.org/2007/opf')); this.doe_1 = tmp0_serialDesc; } protoOf($serializer_21).k45 = function () { return this.doe_1; }; protoOf($serializer_21).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_40().coe_1[0]]; }; protoOf($serializer_21).m45 = function (decoder) { var tmp0_desc = this.doe_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); var tmp6_cached = Companion_getInstance_40().coe_1; if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return Manifest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_21).eoe = function (encoder, value) { var tmp0_desc = this.doe_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_40().coe_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !equals(value.foe_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.foe_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_21).l45 = function (encoder, value) { return this.eoe(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().doe_1); } if (0 === (seen1 & 1)) $this.foe_1 = emptyList(); else $this.foe_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_40(); items = items === VOID ? emptyList() : items; this.foe_1 = items; } function Companion_24() { } var Companion_instance_73; function Companion_getInstance_41() { return Companion_instance_73; } function $serializer_22() { $serializer_instance_22 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Meta', this, 2); tmp0_serialDesc.n4g('name', true); tmp0_serialDesc.n4g('content', true); tmp0_serialDesc.p4g(new XmlSerialName('meta', 'http://www.idpf.org/2007/opf')); this.goe_1 = tmp0_serialDesc; } protoOf($serializer_22).k45 = function () { return this.goe_1; }; protoOf($serializer_22).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.goe_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.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return Meta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_22).hoe = function (encoder, value) { var tmp0_desc = this.goe_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.ioe_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.ioe_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.joe_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, StringSerializer_getInstance(), value.joe_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_22).l45 = function (encoder, value) { return this.hoe(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().goe_1); } if (0 === (seen1 & 1)) $this.ioe_1 = null; else $this.ioe_1 = name; if (0 === (seen1 & 2)) $this.joe_1 = null; else $this.joe_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.ioe_1 = name; this.joe_1 = content; } function Companion_25() { Companion_instance_74 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.koe_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_74; function Companion_getInstance_42() { if (Companion_instance_74 == null) new Companion_25(); return Companion_instance_74; } function $serializer_23() { $serializer_instance_23 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Metadata', this, 6); tmp0_serialDesc.n4g('titles', true); tmp0_serialDesc.n4g('creators', true); tmp0_serialDesc.n4g('languages', true); tmp0_serialDesc.n4g('descriptions', true); tmp0_serialDesc.n4g('identifiers', true); tmp0_serialDesc.n4g('metas', true); tmp0_serialDesc.p4g(new XmlSerialName('metadata', 'http://www.idpf.org/2007/opf')); this.loe_1 = tmp0_serialDesc; } protoOf($serializer_23).k45 = function () { return this.loe_1; }; protoOf($serializer_23).e4h = function () { var tmp0_cached = Companion_getInstance_42().koe_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).m45 = function (decoder) { var tmp0_desc = this.loe_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.c49(tmp0_desc); var tmp11_cached = Companion_getInstance_42().koe_1; if (tmp10_input.r49()) { tmp4_local0 = tmp10_input.o49(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.o49(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.o49(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.o49(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.o49(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.o49(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.o49(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.o49(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.o49(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.o49(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.o49(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.o49(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.d49(tmp0_desc); return Metadata_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_23).moe = function (encoder, value) { var tmp0_desc = this.loe_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_42().koe_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !equals(value.noe_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.noe_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !equals(value.ooe_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 1, tmp2_cached[1], value.ooe_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !equals(value.poe_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 2, tmp2_cached[2], value.poe_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !equals(value.qoe_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 3, tmp2_cached[3], value.qoe_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !equals(value.roe_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 4, tmp2_cached[4], value.roe_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !equals(value.soe_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 5, tmp2_cached[5], value.soe_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_23).l45 = function (encoder, value) { return this.moe(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().loe_1); } if (0 === (seen1 & 1)) $this.noe_1 = emptyList(); else $this.noe_1 = titles; if (0 === (seen1 & 2)) $this.ooe_1 = emptyList(); else $this.ooe_1 = creators; if (0 === (seen1 & 4)) $this.poe_1 = emptyList(); else $this.poe_1 = languages; if (0 === (seen1 & 8)) $this.qoe_1 = emptyList(); else $this.qoe_1 = descriptions; if (0 === (seen1 & 16)) $this.roe_1 = emptyList(); else $this.roe_1 = identifiers; if (0 === (seen1 & 32)) $this.soe_1 = emptyList(); else $this.soe_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_42(); 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.noe_1 = titles; this.ooe_1 = creators; this.poe_1 = languages; this.qoe_1 = descriptions; this.roe_1 = identifiers; this.soe_1 = metas; } function Companion_26() { this.toe_1 = 'http://www.idpf.org/2007/opf'; this.uoe_1 = 'http://purl.org/dc/elements/1.1/'; } protoOf(Companion_26).h4s = function () { return $serializer_getInstance_36(); }; var Companion_instance_75; function Companion_getInstance_43() { return Companion_instance_75; } function $serializer_24() { $serializer_instance_24 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.PackageDocument', this, 5); tmp0_serialDesc.n4g('version', true); tmp0_serialDesc.n4g('uniqueIdentifier', true); tmp0_serialDesc.o4g(new XmlSerialName('unique-identifier')); tmp0_serialDesc.n4g('metadata', true); tmp0_serialDesc.n4g('manifest', true); tmp0_serialDesc.n4g('spine', true); tmp0_serialDesc.p4g(new XmlSerialName('package', 'http://www.idpf.org/2007/opf')); this.voe_1 = tmp0_serialDesc; } protoOf($serializer_24).k45 = function () { return this.voe_1; }; protoOf($serializer_24).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.voe_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.c49(tmp0_desc); if (tmp9_input.r49()) { tmp4_local0 = tmp9_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.o49(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.o49(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.o49(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.o49(tmp0_desc, 2, $serializer_getInstance_35(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.o49(tmp0_desc, 3, $serializer_getInstance_33(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.o49(tmp0_desc, 4, $serializer_getInstance_37(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.d49(tmp0_desc); return PackageDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_24).woe = function (encoder, value) { var tmp0_desc = this.voe_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.xoe_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.xoe_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.yoe_1 === '')) { tmp1_output.q4a(tmp0_desc, 1, value.yoe_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !equals(value.zoe_1, new Metadata())) { tmp1_output.s4a(tmp0_desc, 2, $serializer_getInstance_35(), value.zoe_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !equals(value.aof_1, new Manifest())) { tmp1_output.s4a(tmp0_desc, 3, $serializer_getInstance_33(), value.aof_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !equals(value.bof_1, new Spine())) { tmp1_output.s4a(tmp0_desc, 4, $serializer_getInstance_37(), value.bof_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_24).l45 = function (encoder, value) { return this.woe(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().voe_1); } if (0 === (seen1 & 1)) $this.xoe_1 = null; else $this.xoe_1 = version; if (0 === (seen1 & 2)) $this.yoe_1 = ''; else $this.yoe_1 = uniqueIdentifier; if (0 === (seen1 & 4)) $this.zoe_1 = new Metadata(); else $this.zoe_1 = metadata; if (0 === (seen1 & 8)) $this.aof_1 = new Manifest(); else $this.aof_1 = manifest; if (0 === (seen1 & 16)) $this.bof_1 = new Spine(); else $this.bof_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.xoe_1 = version; this.yoe_1 = uniqueIdentifier; this.zoe_1 = metadata; this.aof_1 = manifest; this.bof_1 = spine; } protoOf(PackageDocument).cof = function () { var whitespaceRegex = Regex_init_$Create$('\\s+'); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.aof_1.foe_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.xod_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.zoe_1.soe_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.ioe_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.joe_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.aof_1.foe_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.vod_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).dof = function () { var whiteSpaceRegex = Regex_init_$Create$('\\s+'); // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.aof_1.foe_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.xod_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.bof_1.fof_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.aof_1.foe_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.vod_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.xod_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_76 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.gof_1 = [new ArrayListSerializer($serializer_getInstance_32()), null]; } var Companion_instance_76; function Companion_getInstance_44() { if (Companion_instance_76 == null) new Companion_27(); return Companion_instance_76; } function $serializer_25() { $serializer_instance_25 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Spine', this, 2); tmp0_serialDesc.n4g('itemRefs', true); tmp0_serialDesc.n4g('toc', true); tmp0_serialDesc.p4g(new XmlSerialName('spine', 'http://www.idpf.org/2007/opf')); this.hof_1 = tmp0_serialDesc; } protoOf($serializer_25).k45 = function () { return this.hof_1; }; protoOf($serializer_25).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_44().gof_1[0], get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_25).m45 = function (decoder) { var tmp0_desc = this.hof_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.c49(tmp0_desc); var tmp7_cached = Companion_getInstance_44().gof_1; if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return Spine_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_25).iof = function (encoder, value) { var tmp0_desc = this.hof_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_44().gof_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !equals(value.eof_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.eof_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.fof_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, StringSerializer_getInstance(), value.fof_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_25).l45 = function (encoder, value) { return this.iof(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().hof_1); } if (0 === (seen1 & 1)) $this.eof_1 = emptyList(); else $this.eof_1 = itemRefs; if (0 === (seen1 & 2)) $this.fof_1 = null; else $this.fof_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_44(); itemRefs = itemRefs === VOID ? emptyList() : itemRefs; toc = toc === VOID ? null : toc; this.eof_1 = itemRefs; this.fof_1 = toc; } function Companion_28() { 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.jof_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_39())]; } var Companion_instance_77; function Companion_getInstance_45() { if (Companion_instance_77 == null) new Companion_28(); return Companion_instance_77; } function $serializer_26() { $serializer_instance_26 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifest', this, 3); tmp0_serialDesc.n4g('version', false); tmp0_serialDesc.n4g('metadata', false); tmp0_serialDesc.n4g('entries', false); this.kof_1 = tmp0_serialDesc; } protoOf($serializer_26).k45 = function () { return this.kof_1; }; protoOf($serializer_26).e4h = function () { var tmp0_cached = Companion_getInstance_45().jof_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).m45 = function (decoder) { var tmp0_desc = this.kof_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.c49(tmp0_desc); var tmp8_cached = Companion_getInstance_45().jof_1; if (tmp7_input.r49()) { tmp4_local0 = tmp7_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.o49(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.o49(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.o49(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.o49(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.d49(tmp0_desc); return ContentManifest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_26).lof = function (encoder, value) { var tmp0_desc = this.kof_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_45().jof_1; tmp1_output.l4a(tmp0_desc, 0, value.mof_1); tmp1_output.s4a(tmp0_desc, 1, tmp2_cached[1], value.nof_1); tmp1_output.s4a(tmp0_desc, 2, tmp2_cached[2], value.oof_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_26).l45 = function (encoder, value) { return this.lof(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().kof_1); } $this.mof_1 = version; $this.nof_1 = metadata; $this.oof_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_45(); this.mof_1 = version; this.nof_1 = metadata; this.oof_1 = entries; } protoOf(ContentManifest).toString = function () { return 'ContentManifest(version=' + this.mof_1 + ', metadata=' + this.nof_1 + ', entries=' + this.oof_1 + ')'; }; protoOf(ContentManifest).hashCode = function () { var result = this.mof_1; result = imul(result, 31) + hashCode(this.nof_1) | 0; result = imul(result, 31) + hashCode(this.oof_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.mof_1 === tmp0_other_with_cast.mof_1)) return false; if (!equals(this.nof_1, tmp0_other_with_cast.nof_1)) return false; if (!equals(this.oof_1, tmp0_other_with_cast.oof_1)) return false; return true; }; function Companion_29() { 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.pof_1 = [null, null, null, null, null, null, new StringValuesSerializer(), new StringValuesSerializer(), null]; } var Companion_instance_78; function Companion_getInstance_46() { if (Companion_instance_78 == null) new Companion_29(); return Companion_instance_78; } function $serializer_27() { $serializer_instance_27 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.manifest.ContentManifestEntry', this, 9); tmp0_serialDesc.n4g('uri', false); tmp0_serialDesc.n4g('storageSize', false); tmp0_serialDesc.n4g('ignoreQueryParams', true); tmp0_serialDesc.n4g('status', true); tmp0_serialDesc.n4g('method', true); tmp0_serialDesc.n4g('integrity', false); tmp0_serialDesc.n4g('requestHeaders', true); tmp0_serialDesc.n4g('responseHeaders', false); tmp0_serialDesc.n4g('bodyDataUrl', false); this.qof_1 = tmp0_serialDesc; } protoOf($serializer_27).k45 = function () { return this.qof_1; }; protoOf($serializer_27).e4h = function () { var tmp0_cached = Companion_getInstance_46().pof_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).m45 = function (decoder) { var tmp0_desc = this.qof_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.c49(tmp0_desc); var tmp14_cached = Companion_getInstance_46().pof_1; if (tmp13_input.r49()) { tmp4_local0 = tmp13_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.e49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.h49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.m49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.m49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.o49(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.o49(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.m49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.e49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.h49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.m49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.m49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.o49(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.o49(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.m49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.d49(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).rof = function (encoder, value) { var tmp0_desc = this.qof_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_46().pof_1; tmp1_output.q4a(tmp0_desc, 0, value.sof_1); tmp1_output.m4a(tmp0_desc, 1, value.tof_1); if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.uof_1 === true)) { tmp1_output.i4a(tmp0_desc, 2, value.uof_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.vof_1 === 200)) { tmp1_output.l4a(tmp0_desc, 3, value.vof_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.wof_1 === 'GET')) { tmp1_output.q4a(tmp0_desc, 4, value.wof_1); } tmp1_output.q4a(tmp0_desc, 5, value.xof_1); if (tmp1_output.y4a(tmp0_desc, 6) ? true : !equals(value.yof_1, emptyStringValues())) { tmp1_output.s4a(tmp0_desc, 6, tmp2_cached[6], value.yof_1); } tmp1_output.s4a(tmp0_desc, 7, tmp2_cached[7], value.zof_1); tmp1_output.q4a(tmp0_desc, 8, value.aog_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_27).l45 = function (encoder, value) { return this.rof(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().qof_1); } $this.sof_1 = uri; $this.tof_1 = storageSize; if (0 === (seen1 & 4)) $this.uof_1 = true; else $this.uof_1 = ignoreQueryParams; if (0 === (seen1 & 8)) $this.vof_1 = 200; else $this.vof_1 = status; if (0 === (seen1 & 16)) $this.wof_1 = 'GET'; else $this.wof_1 = method; $this.xof_1 = integrity; if (0 === (seen1 & 64)) $this.yof_1 = emptyStringValues(); else $this.yof_1 = requestHeaders; $this.zof_1 = responseHeaders; $this.aog_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_79 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.bog_1 = [new ArrayListSerializer($serializer_getInstance_41()), new ArrayListSerializer($serializer_getInstance_42())]; } var Companion_instance_79; function Companion_getInstance_47() { if (Companion_instance_79 == null) new Companion_30(); return Companion_instance_79; } function $serializer_28() { $serializer_instance_28 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaContentInfo', this, 2); tmp0_serialDesc.n4g('sources', false); tmp0_serialDesc.n4g('subtitles', true); this.cog_1 = tmp0_serialDesc; } protoOf($serializer_28).k45 = function () { return this.cog_1; }; protoOf($serializer_28).e4h = function () { var tmp0_cached = Companion_getInstance_47().bog_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).m45 = function (decoder) { var tmp0_desc = this.cog_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.c49(tmp0_desc); var tmp7_cached = Companion_getInstance_47().bog_1; if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.o49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.o49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return MediaContentInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_28).dog = function (encoder, value) { var tmp0_desc = this.cog_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_47().bog_1; tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.eog_1); if (tmp1_output.y4a(tmp0_desc, 1) ? true : !equals(value.fog_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 1, tmp2_cached[1], value.fog_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_28).l45 = function (encoder, value) { return this.dog(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().cog_1); } $this.eog_1 = sources; if (0 === (seen1 & 2)) $this.fog_1 = emptyList(); else $this.fog_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_47(); subtitles = subtitles === VOID ? emptyList() : subtitles; this.eog_1 = sources; this.fog_1 = subtitles; } function $serializer_29() { $serializer_instance_29 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaSource', this, 2); tmp0_serialDesc.n4g('uri', false); tmp0_serialDesc.n4g('mimeType', false); this.gog_1 = tmp0_serialDesc; } protoOf($serializer_29).k45 = function () { return this.gog_1; }; protoOf($serializer_29).e4h = 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).m45 = 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 = null; var tmp6_input = decoder.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return MediaSource_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_29).hog = function (encoder, value) { var tmp0_desc = this.gog_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.iog_1); tmp1_output.q4a(tmp0_desc, 1, value.jog_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_29).l45 = function (encoder, value) { return this.hog(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().gog_1); } $this.iog_1 = uri; $this.jog_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).h4s = function () { return $serializer_getInstance_42(); }; var Companion_instance_80; function Companion_getInstance_48() { return Companion_instance_80; } function $serializer_30() { $serializer_instance_30 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.SubtitleTrack', this, 4); tmp0_serialDesc.n4g('uri', false); tmp0_serialDesc.n4g('mimeType', false); tmp0_serialDesc.n4g('langCode', false); tmp0_serialDesc.n4g('title', false); this.kog_1 = tmp0_serialDesc; } protoOf($serializer_30).k45 = function () { return this.kog_1; }; protoOf($serializer_30).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.kog_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.c49(tmp0_desc); if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return SubtitleTrack_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_30).log = function (encoder, value) { var tmp0_desc = this.kog_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.mog_1); tmp1_output.q4a(tmp0_desc, 1, value.nog_1); tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.oog_1); tmp1_output.q4a(tmp0_desc, 3, value.pog_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_30).l45 = function (encoder, value) { return this.log(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().kog_1); } $this.mog_1 = uri; $this.nog_1 = mimeType; $this.oog_1 = langCode; $this.pog_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.mog_1 = uri; this.nog_1 = mimeType; this.oog_1 = langCode; this.pog_1 = title; } protoOf(SubtitleTrack).qog = function (uri, mimeType, langCode, title) { return new SubtitleTrack(uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).rog = function (uri, mimeType, langCode, title, $super) { uri = uri === VOID ? this.mog_1 : uri; mimeType = mimeType === VOID ? this.nog_1 : mimeType; langCode = langCode === VOID ? this.oog_1 : langCode; title = title === VOID ? this.pog_1 : title; return $super === VOID ? this.qog(uri, mimeType, langCode, title) : $super.qog.call(this, uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).toString = function () { return 'SubtitleTrack(uri=' + this.mog_1 + ', mimeType=' + this.nog_1 + ', langCode=' + this.oog_1 + ', title=' + this.pog_1 + ')'; }; protoOf(SubtitleTrack).hashCode = function () { var result = getStringHashCode(this.mog_1); result = imul(result, 31) + getStringHashCode(this.nog_1) | 0; result = imul(result, 31) + (this.oog_1 == null ? 0 : getStringHashCode(this.oog_1)) | 0; result = imul(result, 31) + getStringHashCode(this.pog_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.mog_1 === tmp0_other_with_cast.mog_1)) return false; if (!(this.nog_1 === tmp0_other_with_cast.nog_1)) return false; if (!(this.oog_1 == tmp0_other_with_cast.oog_1)) return false; if (!(this.pog_1 === tmp0_other_with_cast.pog_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.sog_1 = 'upload-tmp'; this.tog_1 = 'upload-tmp:///'; } protoOf(Companion_32).h4s = function () { return $serializer_getInstance_43(); }; var Companion_instance_81; function Companion_getInstance_49() { return Companion_instance_81; } function $serializer_31() { $serializer_instance_31 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentjob.MetadataResult', this, 4); tmp0_serialDesc.n4g('entry', false); tmp0_serialDesc.n4g('importerId', false); tmp0_serialDesc.n4g('originalFilename', true); tmp0_serialDesc.n4g('picture', true); this.uog_1 = tmp0_serialDesc; } protoOf($serializer_31).k45 = function () { return this.uog_1; }; protoOf($serializer_31).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.uog_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.c49(tmp0_desc); if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return MetadataResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_31).vog = function (encoder, value) { var tmp0_desc = this.uog_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, $serializer_getInstance_3(), value.wog_1); tmp1_output.l4a(tmp0_desc, 1, value.xog_1); if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.yog_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.yog_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.zog_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, $serializer_getInstance_4(), value.zog_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_31).l45 = function (encoder, value) { return this.vog(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().uog_1); } $this.wog_1 = entry; $this.xog_1 = importerId; if (0 === (seen1 & 4)) $this.yog_1 = null; else $this.yog_1 = originalFilename; if (0 === (seen1 & 8)) $this.zog_1 = null; else $this.zog_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.wog_1 = entry; this.xog_1 = importerId; this.yog_1 = originalFilename; this.zog_1 = picture; } protoOf(MetadataResult).toString = function () { return 'MetadataResult(entry=' + this.wog_1 + ', importerId=' + this.xog_1 + ', originalFilename=' + this.yog_1 + ', picture=' + this.zog_1 + ')'; }; protoOf(MetadataResult).hashCode = function () { var result = this.wog_1.hashCode(); result = imul(result, 31) + this.xog_1 | 0; result = imul(result, 31) + (this.yog_1 == null ? 0 : getStringHashCode(this.yog_1)) | 0; result = imul(result, 31) + (this.zog_1 == null ? 0 : this.zog_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.wog_1.equals(tmp0_other_with_cast.wog_1)) return false; if (!(this.xog_1 === tmp0_other_with_cast.xog_1)) return false; if (!(this.yog_1 == tmp0_other_with_cast.yog_1)) return false; if (!equals(this.zog_1, tmp0_other_with_cast.zog_1)) return false; return true; }; function PersonConstants() { PersonConstants_instance = this; var tmp = this; var tmp_0 = to(1, strings_getInstance().omk_1); var tmp_1 = to(2, strings_getInstance().nmk_1); var tmp_2 = to(4, strings_getInstance().pmk_1); tmp.aoh_1 = mapOf([tmp_0, tmp_1, tmp_2, to(0, strings_getInstance().qmk_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().qng_1); var tmp_1 = to(4, strings_getInstance().amn_1); var tmp_2 = to(1, strings_getInstance().rng_1); var tmp_3 = to(2, strings_getInstance().sng_1); tmp.boh_1 = mapOf([tmp_0, tmp_1, tmp_2, tmp_3, to(3, strings_getInstance().ina_1)]); var tmp_4 = this; Companion_getInstance_1(); var tmp_5 = to(0, strings_getInstance().jn5_1); Companion_getInstance_1(); var tmp_6 = to(1, strings_getInstance().in5_1); Companion_getInstance_1(); tmp_4.coh_1 = mapOf([tmp_5, tmp_6, to(2, strings_getInstance().hn5_1)]); } var SubmissionConstants_instance; function SubmissionConstants_getInstance() { if (SubmissionConstants_instance == null) new SubmissionConstants(); return SubmissionConstants_instance; } function TerminologyKeys() { TerminologyKeys_instance = this; this.doh_1 = 'Teacher'; this.eoh_1 = 'Student'; this.foh_1 = 'Teachers'; this.goh_1 = 'Students'; this.hoh_1 = 'AddTeacher'; this.ioh_1 = 'AddStudent'; this.joh_1 = mapOf([to('Teacher', strings_getInstance().qmy_1), to('Student', strings_getInstance().dn5_1), to('Teachers', strings_getInstance().tmy_1), to('Students', strings_getInstance().oml_1), to('AddTeacher', strings_getInstance().rmy_1), to('AddStudent', strings_getInstance().pml_1)]); } var TerminologyKeys_instance; function TerminologyKeys_getInstance() { if (TerminologyKeys_instance == null) new TerminologyKeys(); return TerminologyKeys_instance; } function ValidateUsernameUseCase() { } function $invokeCOROUTINE$10(_this__u8e3s4, destUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.soh_1 = _this__u8e3s4; this.toh_1 = destUri; } protoOf($invokeCOROUTINE$10).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.hd_1 = 1; suspendResult = this.soh_1.yoh_1.qk2_1.p7f().jhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uoh_1 = suspendResult; this.id_1 = 4; var tmp_0 = this; var tmp0_safe_receiver = this.soh_1.yoh_1.rk2_1; tmp_0.woh_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p7f(); if (this.woh_1 == null) { this.xoh_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.woh_1.jhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.xoh_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: var tmp2_safe_receiver = this.xoh_1; this.voh_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.vhn_1; this.id_1 = 6; this.hd_1 = 5; continue $sm; case 4: this.id_1 = 6; var tmp_1 = this.kd_1; if (tmp_1 instanceof Exception) { var e = this.kd_1; var tmp_2 = this; Napier_getInstance().c5f('GetRegistrationAllowedUseCase: Error occurred: ' + e.message, e); var tmp3_safe_receiver = this.uoh_1; tmp_2.voh_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.vhn_1; this.hd_1 = 5; continue $sm; } else { throw this.kd_1; } case 5: this.id_1 = 6; return this.voh_1; case 6: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function CheckRegistrationAllowedUseCase(dataLayer) { this.yoh_1 = dataLayer; } protoOf(CheckRegistrationAllowedUseCase).zoh = function (destUri, $completion) { var tmp = new $invokeCOROUTINE$10(this, destUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function CreateNewLocalAccountUseCase(di) { this.aoi_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.coi_1 = submission; } protoOf(SubmitAssignmentResult).toString = function () { return 'SubmitAssignmentResult(submission=' + this.coi_1 + ')'; }; protoOf(SubmitAssignmentResult).hashCode = function () { return this.coi_1 == null ? 0 : this.coi_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.coi_1, tmp0_other_with_cast.coi_1)) return false; return true; }; function SubmitAssignmentUseCase$invoke$lambda($assignmentUid, $submitterUid, $accountPersonUid, $assignment) { return function ($this$shallowCopy) { $this$shallowCopy.fc3_1 = $assignmentUid; $this$shallowCopy.gc3_1 = $submitterUid; $this$shallowCopy.hc3_1 = $accountPersonUid; $this$shallowCopy.kc3_1 = systemTimeInMillis(); $this$shallowCopy.lc3_1 = $assignment.z7u_1; return Unit_instance; }; } function $invokeCOROUTINE$11(_this__u8e3s4, repo, submitterUid, assignmentUid, accountPersonUid, submission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.loi_1 = _this__u8e3s4; this.moi_1 = repo; this.noi_1 = submitterUid; this.ooi_1 = assignmentUid; this.poi_1 = accountPersonUid; this.qoi_1 = submission; } protoOf($invokeCOROUTINE$11).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; if (this.noi_1.equals(new Long(0, 0))) throw new AccountIsNotSubmitterException('Not a valid submitter'); this.hd_1 = 1; suspendResult = this.moi_1.k7f().k7t(this.ooi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.roi_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.roi_1 == null) { throw IllegalArgumentException_init_$Create$('Could not find assignment uid ' + this.ooi_1.toString()); } else { tmp_1 = this.roi_1; } tmp_0.soi_1 = tmp_1; var tmp_2 = this; var tmp1_elvis_lhs = this.soi_1.m7y_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.toi_1 = tmp_3; var tmp_4 = this; var tmp2_elvis_lhs = this.soi_1.l7y_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.uoi_1 = tmp_5; var tmp_6 = this.uoi_1.t7u_1; if (tmp_6 === 1) { this.hd_1 = 2; suspendResult = this.moi_1.l7f().mc2(this.poi_1, this.ooi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.voi_1 = false; this.hd_1 = 3; continue $sm; } case 2: this.voi_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: if (this.voi_1) { throw new AssignmentAlreadySubmittedException(this.loi_1.xoi_1.coj(strings_getInstance().jnk_1)); } else { this.hd_1 = 4; continue $sm; } case 4: if (lastPossibleSubmissionTime(this.toi_1).c7(systemTimeInMillis()) < 0) { throw new AssignmentDeadlinePassedException(this.loi_1.xoi_1.coj(strings_getInstance().ink_1)); } if (this.uoi_1.v7u_1) { var tmp_7 = this.uoi_1.w7u_1; if (tmp_7 === 1) { var tmp3_safe_receiver = this.qoi_1.ic3_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.uoi_1.x7u_1) { throw new AssignmentTextTooLongException(this.loi_1.xoi_1.doj(strings_getInstance().knk_1, [wordCount.toString(), this.uoi_1.x7u_1.toString()])); } } else { var tmp_8 = this.uoi_1.w7u_1; if (tmp_8 === 2) { var tmp6_safe_receiver = this.qoi_1.ic3_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.uoi_1.x7u_1) { throw new AssignmentTextTooLongException(this.loi_1.xoi_1.doj(strings_getInstance().lnk_1, [charCount.toString(), this.uoi_1.x7u_1.toString()])); } } } } var tmp_9 = this; tmp_9.woi_1 = shallowCopy_0(this.qoi_1, SubmitAssignmentUseCase$invoke$lambda(this.ooi_1, this.noi_1, this.poi_1, this.uoi_1)); Napier_getInstance().c5f('SubmitAssignmentUseCase: save to repo for submitterUid=' + this.noi_1.toString() + ' assignmentUid=' + this.ooi_1.toString()); this.hd_1 = 5; suspendResult = this.moi_1.l7f().insertAsync(this.woi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return new SubmitAssignmentResult(this.woi_1); case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function SubmitAssignmentUseCase(systemImpl) { this.xoi_1 = systemImpl; } protoOf(SubmitAssignmentUseCase).eoj = function (repo, submitterUid, assignmentUid, accountPersonUid, submission, $completion) { var tmp = new $invokeCOROUTINE$11(this, repo, submitterUid, assignmentUid, accountPersonUid, submission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SubmitMarkUseCase$invoke$lambda($assignment, $submitterUid, $activeUserSubmitterUid, $activeUserPerson, $courseBlock, $clazzUid, $applyPenalty) { return function ($this$shallowCopy) { $this$shallowCopy.abx_1 = $assignment.h7u_1; $this$shallowCopy.bbx_1 = $submitterUid; $this$shallowCopy.cbx_1 = $activeUserSubmitterUid; $this$shallowCopy.dbx_1 = $activeUserPerson.z96_1; var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $courseBlock.y7y_1; tmp.gbx_1 = tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs; $this$shallowCopy.jbx_1 = $clazzUid; var tmp_0; if ($applyPenalty) { $this$shallowCopy.hbx_1 = roundTo($this$shallowCopy.fbx_1 * ($courseBlock.w7y_1 / 100.0), 2); $this$shallowCopy.fbx_1 = $this$shallowCopy.fbx_1 - $this$shallowCopy.hbx_1; tmp_0 = Unit_instance; } return Unit_instance; }; } function SubmitMarkUseCase$invoke$slambda(this$0, $stmt, $activeUserPerson, $courseBlock, $instructorActorToPersonUidMap, $actorToPersonUidMap, $clazzUid, $activityId, $markToRecord, resultContinuation) { this.noj_1 = this$0; this.ooj_1 = $stmt; this.poj_1 = $activeUserPerson; this.qoj_1 = $courseBlock; this.roj_1 = $instructorActorToPersonUidMap; this.soj_1 = $actorToPersonUidMap; this.toj_1 = $clazzUid; this.uoj_1 = $activityId; this.voj_1 = $markToRecord; CoroutineImpl.call(this, resultContinuation); } protoOf(SubmitMarkUseCase$invoke$slambda).yoj = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubmitMarkUseCase$invoke$slambda).he = function (p1, $completion) { return this.yoj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SubmitMarkUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.xoj_1 = uuid4(); this.hd_1 = 1; var tmp_0 = listOf_0(this.ooj_1); var tmp0_xseAccountPersonUid = this.poj_1.z96_1; var tmp1_xseAccountUsername = ensureNotNull(this.poj_1.a97_1); var tmp2_xseCbUid = this.qoj_1.n7y_1; var tmp3_xseRegistrationHi = this.xoj_1.rmd(); var tmp4_xseRegistrationLo = this.xoj_1.smd(); var tmp5_knownActorUidToPersonUids = this.noj_1.eok_1.l46(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), plus_0(this.roj_1, this.soj_1)); suspendResult = this.noj_1.cok_1.mok(tmp_0, new XapiSessionEntity(VOID, VOID, tmp3_xseRegistrationHi, tmp4_xseRegistrationLo, VOID, tmp0_xseAccountPersonUid, VOID, tmp1_xseAccountUsername, this.toj_1, tmp2_xseCbUid, VOID, VOID, this.uoj_1, VOID, VOID, VOID, VOID, VOID, tmp5_knownActorUidToPersonUids), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.noj_1.zoj_1.n7f().insertAsync(this.voj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SubmitMarkUseCase$invoke$slambda).ony = function (it, completion) { var i = new SubmitMarkUseCase$invoke$slambda(this.noj_1, this.ooj_1, this.poj_1, this.qoj_1, this.roj_1, this.soj_1, this.toj_1, this.uoj_1, this.voj_1, completion); i.woj_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.yoj(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.vok_1 = _this__u8e3s4; this.wok_1 = activeUserPerson; this.xok_1 = assignment; this.yok_1 = clazzUid; this.zok_1 = submitterUid; this.aol_1 = draftMark; this.bol_1 = submissions; this.col_1 = courseBlock; } protoOf($invokeCOROUTINE$12).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 8; var tmp_0 = this; var tmp_1; if (!this.bol_1.c1()) { var iterator = this.bol_1.w(); if (!iterator.f()) throw NoSuchElementException_init_$Create$(); var maxValue = iterator.e().kc3_1; while (iterator.f()) { var v = iterator.e().kc3_1; if (compareTo(maxValue, v) < 0) { maxValue = v; } } tmp_1 = maxValue.c7(this.col_1.v7y_1) > 0; } else { tmp_1 = false; } tmp_0.dol_1 = tmp_1; this.hd_1 = 1; suspendResult = this.vok_1.zoj_1.k7f().i7t(this.xok_1.h7u_1, this.yok_1, this.wok_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.eol_1 = suspendResult; var tmp_2; if (this.xok_1.k7u_1.equals(new Long(0, 0))) { tmp_2 = true; } else { var tmp_3 = this.xok_1.u7u_1; tmp_2 = tmp_3 === 1; } if (tmp_2) { var tmp_4 = this; var activeUserPersonXapiAgent = toXapiAgent(this.wok_1, this.vok_1.aok_1); tmp_4.fol_1 = to(activeUserPersonXapiAgent, mapOf_0(to(identifierHash(activeUserPersonXapiAgent, this.vok_1.dok_1), this.wok_1.z96_1))); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.vok_1.bok_1.yol(this.xok_1.k7u_1, this.eol_1.mb(), this.xok_1.z7u_1, this.xok_1.h7u_1, this.wok_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.gol_1 = suspendResult; var tmp_5 = this; var it = this.gol_1; tmp_5.fol_1 = to(it.zol_1, it.aom_1); this.hd_1 = 3; continue $sm; case 3: this.hol_1 = this.fol_1; this.iol_1 = this.hol_1.y6(); this.jol_1 = this.hol_1.z6(); if (this.xok_1.k7u_1.equals(new Long(0, 0))) { this.hd_1 = 5; suspendResult = this.vok_1.zoj_1.h7e().gg5(this.zok_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; suspendResult = this.vok_1.bok_1.yol(this.xok_1.k7u_1, this.zok_1.mb(), this.xok_1.z7u_1, this.xok_1.h7u_1, this.wok_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.lol_1 = suspendResult; var tmp_6 = this; var it_0 = this.lol_1; tmp_6.kol_1 = to(it_0.zol_1, it_0.aom_1); this.hd_1 = 6; continue $sm; case 5: this.mol_1 = suspendResult; this.nol_1 = this.mol_1 == null ? null : toXapiAgent(this.mol_1, this.vok_1.aok_1); var tmp_7 = this; var tmp_8; if (this.nol_1 == null) { throw IllegalStateException_init_$Create$('Could not find person for ' + this.zok_1.toString()); } else { tmp_8 = this.nol_1; } tmp_7.ool_1 = tmp_8; this.kol_1 = to(this.ool_1, mapOf_0(to(identifierHash(this.ool_1, this.vok_1.dok_1), this.zok_1))); this.hd_1 = 6; continue $sm; case 6: this.pol_1 = this.kol_1; this.qol_1 = this.pol_1.y6(); this.rol_1 = this.pol_1.z6(); var tmp_9 = this; tmp_9.sol_1 = shallowCopy_1(this.aol_1, SubmitMarkUseCase$invoke$lambda(this.xok_1, this.zok_1, this.eol_1, this.wok_1, this.col_1, this.yok_1, this.dol_1)); var tmp_10 = this; var tmp4_viewName = 'CourseAssignment'; var tmp5_learningSpace = this.vok_1.aok_1.mnt_1; Companion_getInstance_125(); var tmp_11 = to('clazzUid', this.yok_1.toString()); Companion_getInstance_125(); var tmp6_queryString = toQueryString(mapOf([tmp_11, to('entityUid', this.xok_1.h7u_1.toString())])); tmp_10.tol_1 = (new UstadUrlComponents(tmp5_learningSpace, tmp4_viewName, tmp6_queryString)).gom(); var tmp_12 = this; var tmp7_verb = new XapiVerb(get_VERB_COMPLETED()); var tmp8_object = new XapiActivityStatementObject(XapiObjectType_Activity_getInstance(), this.tol_1); var tmp9_context = new XapiContext(this.iol_1); var tmp10_result = new XapiResult(true, true, new Score(this.sol_1.fbx_1 / this.sol_1.gbx_1, this.sol_1.fbx_1, 0.0, this.sol_1.gbx_1)); tmp_12.uol_1 = new XapiStatement(VOID, this.qol_1, tmp7_verb, tmp8_object, tmp10_result, tmp9_context); this.hd_1 = 7; suspendResult = withDoorTransactionAsync(this.vok_1.zoj_1, VOID, SubmitMarkUseCase$invoke$slambda_0(this.vok_1, this.uol_1, this.wok_1, this.col_1, this.jol_1, this.rol_1, this.yok_1, this.tol_1, this.sol_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: return Unit_instance; case 8: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 8) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function SubmitMarkUseCase(repo, learningSpace, createXapiGroupUseCase, xapiStatementResource, xxStringHasher, json) { this.zoj_1 = repo; this.aok_1 = learningSpace; this.bok_1 = createXapiGroupUseCase; this.cok_1 = xapiStatementResource; this.dok_1 = xxStringHasher; this.eok_1 = json; } protoOf(SubmitMarkUseCase).hom = function (activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, $completion) { var tmp = new $invokeCOROUTINE$12(this, activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.qom_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).vom = function (value, $completion) { var tmp = this.wom(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).he = function (p1, $completion) { return this.vom((p1 == null ? true : p1 instanceof PersonNames) ? p1 : THROW_CCE(), $completion); }; protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.tom_1 = this.qom_1; var tmp_1 = this; tmp_1.uom_1 = this.rom_1; var tmp0_safe_receiver = this.uom_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tg9_1) == null)) { this.hd_1 = 3; suspendResult = this.tom_1.n1e(this.uom_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 2: if (false) { this.hd_1 = 1; continue $sm; } this.hd_1 = 4; continue $sm; case 3: this.som_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).wom = function (value, completion) { var i = new GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda(this.qom_1, completion); i.rom_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.vom(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$14(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fon_1 = _this__u8e3s4; this.gon_1 = collector; } protoOf($collectCOROUTINE$14).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.hon_1 = this.gon_1; this.hd_1 = 1; var tmp_1 = GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda_0(this.hon_1, null); suspendResult = this.fon_1.ion_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) { this.jon_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).n1e = function (value, $completion) { return this.jon_1(value, $completion); }; function _no_name_provided__qut3iv($this) { this.ion_1 = $this; } protoOf(_no_name_provided__qut3iv).kon = function (collector, $completion) { var tmp = new $collectCOROUTINE$14(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv).u1c = function (collector, $completion) { return this.kon(collector, $completion); }; function $invokeCOROUTINE$13(_this__u8e3s4, submitterUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ton_1 = _this__u8e3s4; this.uon_1 = submitterUid; } protoOf($invokeCOROUTINE$13).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; Companion_getInstance_1(); if (this.uon_1.c7(toLong(10000)) < 0) { var tmp_0 = this; tmp_0.von_1 = this.ton_1.xon_1.coj(strings_getInstance().xnf_1) + ' ' + this.uon_1.toString(); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var this_0 = this.ton_1.won_1.h7e().kg5(this.uon_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.tg9_1; tmp_1.von_1 = '' + tmp_2 + ' ' + (it == null ? null : it.ug9_1); this.hd_1 = 2; continue $sm; case 2: return this.von_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function GetAssignmentSubmitterNameUseCase(repo, systemImpl) { this.won_1 = repo; this.xon_1 = systemImpl; } protoOf(GetAssignmentSubmitterNameUseCase).yon = function (submitterUid, $completion) { var tmp = new $invokeCOROUTINE$13(this, submitterUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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.zon_1 = blobUrl; this.aoo_1 = transferJobItemUid; this.boo_1 = lockIdToRelease; this.coo_1 = estimatedSize; this.doo_1 = partialResponseFile; } protoOf(BlobTransferJobItem).toString = function () { return 'BlobTransferJobItem(blobUrl=' + this.zon_1 + ', transferJobItemUid=' + this.aoo_1 + ', lockIdToRelease=' + this.boo_1.toString() + ', estimatedSize=' + toString_0(this.coo_1) + ', partialResponseFile=' + this.doo_1 + ')'; }; protoOf(BlobTransferJobItem).hashCode = function () { var result = getStringHashCode(this.zon_1); result = imul(result, 31) + this.aoo_1 | 0; result = imul(result, 31) + this.boo_1.hashCode() | 0; result = imul(result, 31) + (this.coo_1 == null ? 0 : this.coo_1.hashCode()) | 0; result = imul(result, 31) + (this.doo_1 == null ? 0 : getStringHashCode(this.doo_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.zon_1 === tmp0_other_with_cast.zon_1)) return false; if (!(this.aoo_1 === tmp0_other_with_cast.aoo_1)) return false; if (!this.boo_1.equals(tmp0_other_with_cast.boo_1)) return false; if (!equals(this.coo_1, tmp0_other_with_cast.coo_1)) return false; if (!(this.doo_1 == tmp0_other_with_cast.doo_1)) return false; return true; }; function BlobTransferProgressUpdate(transferItem, bytesTransferred) { this.eoo_1 = transferItem; this.foo_1 = bytesTransferred; } protoOf(BlobTransferProgressUpdate).toString = function () { return 'Uid #' + this.eoo_1.aoo_1 + ' transferred=' + this.foo_1.toString() + ' bytes'; }; protoOf(BlobTransferProgressUpdate).hashCode = function () { var result = this.eoo_1.hashCode(); result = imul(result, 31) + this.foo_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.eoo_1.equals(tmp0_other_with_cast.eoo_1)) return false; if (!this.foo_1.equals(tmp0_other_with_cast.foo_1)) return false; return true; }; function BlobTransferStatusUpdate(transferItem, status) { this.goo_1 = transferItem; this.hoo_1 = status; } protoOf(BlobTransferStatusUpdate).toString = function () { return 'BlobTransferStatusUpdate(transferItem=' + this.goo_1 + ', status=' + this.hoo_1 + ')'; }; protoOf(BlobTransferStatusUpdate).hashCode = function () { var result = this.goo_1.hashCode(); result = imul(result, 31) + this.hoo_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.goo_1.equals(tmp0_other_with_cast.goo_1)) return false; if (!(this.hoo_1 === tmp0_other_with_cast.hoo_1)) return false; return true; }; function CancelDownloadUseCase() { } function MakeContentEntryAvailableOfflineUseCase(repo, nodeIdAndAuth, enqueueContentManifestDownloadUseCase) { this.ioo_1 = repo; this.joo_1 = nodeIdAndAuth; this.koo_1 = enqueueContentManifestDownloadUseCase; } function OpenBlobItem(uri, mimeType, fileName, fileSize) { this.loo_1 = uri; this.moo_1 = mimeType; this.noo_1 = fileName; this.ooo_1 = fileSize; } protoOf(OpenBlobItem).toString = function () { return 'OpenBlobItem(uri=' + this.loo_1 + ', mimeType=' + this.moo_1 + ', fileName=' + this.noo_1 + ', fileSize=' + this.ooo_1.toString() + ')'; }; protoOf(OpenBlobItem).hashCode = function () { var result = getStringHashCode(this.loo_1); result = imul(result, 31) + getStringHashCode(this.moo_1) | 0; result = imul(result, 31) + getStringHashCode(this.noo_1) | 0; result = imul(result, 31) + this.ooo_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.loo_1 === tmp0_other_with_cast.loo_1)) return false; if (!(this.moo_1 === tmp0_other_with_cast.moo_1)) return false; if (!(this.noo_1 === tmp0_other_with_cast.noo_1)) return false; if (!this.ooo_1.equals(tmp0_other_with_cast.ooo_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.xoo_1 = _this__u8e3s4; this.yoo_1 = openItem; this.zoo_1 = onUiUpdate; this.aop_1 = intent; } protoOf($invokeCOROUTINE$16).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.zoo_1(new OpeningBlobState(this.yoo_1, new Long(0, 0), new Long(0, 0))); this.id_1 = 2; this.hd_1 = 1; suspendResult = this.xoo_1.bop_1.dop(this.yoo_1, OpenBlobUiUseCase$invoke$lambda(this.zoo_1, this.yoo_1), this.aop_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zoo_1(null); this.id_1 = 4; this.hd_1 = 3; continue $sm; case 2: this.id_1 = 4; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; Napier_getInstance().g5f('OpenBlobUiCase: could not open ' + this.yoo_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.zoo_1(new OpeningBlobState(this.yoo_1, tmp_1, tmp_2, tmp0_elvis_lhs == null ? this.xoo_1.cop_1.coj(strings_getInstance().mmi_1) : tmp0_elvis_lhs)); } this.hd_1 = 3; continue $sm; } else { throw this.kd_1; } case 3: this.id_1 = 4; return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 4) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function OpenBlobUiUseCase(openBlobUseCase, systemImpl) { this.bop_1 = openBlobUseCase; this.cop_1 = systemImpl; } protoOf(OpenBlobUiUseCase).eop = function (openItem, onUiUpdate, intent, $completion) { var tmp = new $invokeCOROUTINE$16(this, openItem, onUiUpdate, intent, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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.fop_1 = item; this.gop_1 = bytesReady; this.hop_1 = totalBytes; this.iop_1 = error; } protoOf(OpeningBlobState).toString = function () { return 'OpeningBlobState(item=' + this.fop_1 + ', bytesReady=' + this.gop_1.toString() + ', totalBytes=' + this.hop_1.toString() + ', error=' + this.iop_1 + ')'; }; protoOf(OpeningBlobState).hashCode = function () { var result = this.fop_1.hashCode(); result = imul(result, 31) + this.gop_1.hashCode() | 0; result = imul(result, 31) + this.hop_1.hashCode() | 0; result = imul(result, 31) + (this.iop_1 == null ? 0 : getStringHashCode(this.iop_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.fop_1.equals(tmp0_other_with_cast.fop_1)) return false; if (!this.gop_1.equals(tmp0_other_with_cast.gop_1)) return false; if (!this.hop_1.equals(tmp0_other_with_cast.hop_1)) return false; if (!(this.iop_1 == tmp0_other_with_cast.iop_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.rop_1 = $blobs; this.sop_1 = $this_updateUris; this.top_1 = $timeNow; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).nny = function (_anonymous_parameter_0__qggqh8, $completion) { var tmp = this.ony(_anonymous_parameter_0__qggqh8, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp_0 = this; tmp_0.vop_1 = this.rop_1; this.wop_1 = this.vop_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.wop_1.f()) { this.hd_1 = 4; continue $sm; } this.xop_1 = this.wop_1.e(); var tmp_1 = this; tmp_1.yop_1 = this.xop_1; this.zop_1 = this.yop_1.boq_1; if (this.zop_1 === 90) { this.hd_1 = 2; suspendResult = this.sop_1.m7f().xca(this.yop_1.aoq_1, this.yop_1.doq_1, this.top_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: this.hd_1 = 1; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).ony = function (_anonymous_parameter_0__qggqh8, completion) { var i = new SaveAndUploadLocalUrisUseCase$updateUris$slambda(this.rop_1, this.sop_1, this.top_1, completion); i.uop_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.nny(_anonymous_parameter_0__qggqh8, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$17(_this__u8e3s4, localUrisToSave, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qoq_1 = _this__u8e3s4; this.roq_1 = localUrisToSave; } protoOf($invokeCOROUTINE$17).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.hd_1 = 1; suspendResult = this.qoq_1.uoq_1.yoq(this.roq_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.soq_1 = suspendResult; this.toq_1 = this.qoq_1.voq_1; if (!(this.toq_1 == null)) { this.hd_1 = 3; suspendResult = updateUris(this.qoq_1.woq_1, this.qoq_1, this.soq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; var tmp0_elvis_lhs = this.qoq_1.xoq_1; suspendResult = updateUris(tmp0_elvis_lhs == null ? this.qoq_1.woq_1 : tmp0_elvis_lhs, this.qoq_1, this.soq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.hd_1 = 5; continue $sm; case 3: this.hd_1 = 4; var this_0 = this.soq_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.doq_1; var tmp1_entityUid = item.aoq_1; var tmp2_tableId = item.boq_1; var tmp3_retentionLockIdToRelease = item.eoq_1; destination.i1(new EnqueueBlobUploadItem(tmp0_blobUrl, tmp2_tableId, tmp1_entityUid, tmp3_retentionLockIdToRelease)); } suspendResult = this.toq_1.zoq(destination, randomUuidAsString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function SaveAndUploadLocalUrisUseCase(saveLocalUrisAsBlobsUseCase, enqueueBlobUploadClientUseCase, activeDb, activeRepo) { this.uoq_1 = saveLocalUrisAsBlobsUseCase; this.voq_1 = enqueueBlobUploadClientUseCase; this.woq_1 = activeDb; this.xoq_1 = activeRepo; } protoOf(SaveAndUploadLocalUrisUseCase).aor = function (localUrisToSave, $completion) { var tmp = new $invokeCOROUTINE$17(this, localUrisToSave, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_33() { } protoOf(Companion_33).h4s = function () { return $serializer_getInstance_44(); }; var Companion_instance_82; function Companion_getInstance_50() { return Companion_instance_82; } function $serializer_32() { $serializer_instance_32 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.blob.savelocaluris.SaveLocalUrisAsBlobsUseCase.SavedBlob', this, 8); tmp0_serialDesc.n4g('entityUid', false); tmp0_serialDesc.n4g('tableId', false); tmp0_serialDesc.n4g('localUri', false); tmp0_serialDesc.n4g('blobUrl', false); tmp0_serialDesc.n4g('retentionLockId', true); tmp0_serialDesc.n4g('integrity', false); tmp0_serialDesc.n4g('mimeType', false); tmp0_serialDesc.n4g('storageSize', false); this.bor_1 = tmp0_serialDesc; } protoOf($serializer_32).k45 = function () { return this.bor_1; }; protoOf($serializer_32).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.bor_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.c49(tmp0_desc); if (tmp12_input.r49()) { tmp4_local0 = tmp12_input.i49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.i49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.m49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.m49(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.i49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.i49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.i49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.m49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.m49(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.i49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.d49(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).cor = function (encoder, value) { var tmp0_desc = this.bor_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.m4a(tmp0_desc, 0, value.aoq_1); tmp1_output.l4a(tmp0_desc, 1, value.boq_1); tmp1_output.q4a(tmp0_desc, 2, value.coq_1); tmp1_output.q4a(tmp0_desc, 3, value.doq_1); if (tmp1_output.y4a(tmp0_desc, 4) ? true : !value.eoq_1.equals(new Long(0, 0))) { tmp1_output.m4a(tmp0_desc, 4, value.eoq_1); } tmp1_output.q4a(tmp0_desc, 5, value.foq_1); tmp1_output.q4a(tmp0_desc, 6, value.goq_1); tmp1_output.m4a(tmp0_desc, 7, value.hoq_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_32).l45 = function (encoder, value) { return this.cor(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().bor_1); } $this.aoq_1 = entityUid; $this.boq_1 = tableId; $this.coq_1 = localUri; $this.doq_1 = blobUrl; if (0 === (seen1 & 16)) $this.eoq_1 = new Long(0, 0); else $this.eoq_1 = retentionLockId; $this.foq_1 = integrity; $this.goq_1 = mimeType; $this.hoq_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_139.v4e() : extraHeaders; this.dor_1 = localUri; this.eor_1 = entityUid; this.for_1 = tableId; this.gor_1 = mimeType; this.hor_1 = deleteLocalUriAfterSave; this.ior_1 = createRetentionLock; this.jor_1 = extraHeaders; } protoOf(SaveLocalUriAsBlobItem).toString = function () { return 'SaveLocalUriAsBlobItem(localUri=' + this.dor_1 + ', entityUid=' + this.eor_1.toString() + ', tableId=' + this.for_1 + ', mimeType=' + this.gor_1 + ', deleteLocalUriAfterSave=' + this.hor_1 + ', createRetentionLock=' + this.ior_1 + ', extraHeaders=' + this.jor_1 + ')'; }; protoOf(SaveLocalUriAsBlobItem).hashCode = function () { var result = getStringHashCode(this.dor_1); result = imul(result, 31) + this.eor_1.hashCode() | 0; result = imul(result, 31) + this.for_1 | 0; result = imul(result, 31) + (this.gor_1 == null ? 0 : getStringHashCode(this.gor_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.hor_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ior_1) | 0; result = imul(result, 31) + hashCode(this.jor_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.dor_1 === tmp0_other_with_cast.dor_1)) return false; if (!this.eor_1.equals(tmp0_other_with_cast.eor_1)) return false; if (!(this.for_1 === tmp0_other_with_cast.for_1)) return false; if (!(this.gor_1 == tmp0_other_with_cast.gor_1)) return false; if (!(this.hor_1 === tmp0_other_with_cast.hor_1)) return false; if (!(this.ior_1 === tmp0_other_with_cast.ior_1)) return false; if (!equals(this.jor_1, tmp0_other_with_cast.jor_1)) return false; return true; }; function SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { retentionLockId = retentionLockId === VOID ? new Long(0, 0) : retentionLockId; this.aoq_1 = entityUid; this.boq_1 = tableId; this.coq_1 = localUri; this.doq_1 = blobUrl; this.eoq_1 = retentionLockId; this.foq_1 = integrity; this.goq_1 = mimeType; this.hoq_1 = storageSize; } protoOf(SavedBlob).kor = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { return new SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).lor = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, $super) { entityUid = entityUid === VOID ? this.aoq_1 : entityUid; tableId = tableId === VOID ? this.boq_1 : tableId; localUri = localUri === VOID ? this.coq_1 : localUri; blobUrl = blobUrl === VOID ? this.doq_1 : blobUrl; retentionLockId = retentionLockId === VOID ? this.eoq_1 : retentionLockId; integrity = integrity === VOID ? this.foq_1 : integrity; mimeType = mimeType === VOID ? this.goq_1 : mimeType; storageSize = storageSize === VOID ? this.hoq_1 : storageSize; return $super === VOID ? this.kor(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) : $super.kor.call(this, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).toString = function () { return 'SavedBlob(entityUid=' + this.aoq_1.toString() + ', tableId=' + this.boq_1 + ', localUri=' + this.coq_1 + ', blobUrl=' + this.doq_1 + ', retentionLockId=' + this.eoq_1.toString() + ', integrity=' + this.foq_1 + ', mimeType=' + this.goq_1 + ', storageSize=' + this.hoq_1.toString() + ')'; }; protoOf(SavedBlob).hashCode = function () { var result = this.aoq_1.hashCode(); result = imul(result, 31) + this.boq_1 | 0; result = imul(result, 31) + getStringHashCode(this.coq_1) | 0; result = imul(result, 31) + getStringHashCode(this.doq_1) | 0; result = imul(result, 31) + this.eoq_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.foq_1) | 0; result = imul(result, 31) + getStringHashCode(this.goq_1) | 0; result = imul(result, 31) + this.hoq_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.aoq_1.equals(tmp0_other_with_cast.aoq_1)) return false; if (!(this.boq_1 === tmp0_other_with_cast.boq_1)) return false; if (!(this.coq_1 === tmp0_other_with_cast.coq_1)) return false; if (!(this.doq_1 === tmp0_other_with_cast.doq_1)) return false; if (!this.eoq_1.equals(tmp0_other_with_cast.eoq_1)) return false; if (!(this.foq_1 === tmp0_other_with_cast.foq_1)) return false; if (!(this.goq_1 === tmp0_other_with_cast.goq_1)) return false; if (!this.hoq_1.equals(tmp0_other_with_cast.hoq_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.z7e(); } else { if (tableId === 125) { tmp = _this__u8e3s4.x7f(); } else { if (tableId === 6677) { tmp = _this__u8e3s4.k7g(); } else { if (tableId === 6678) { tmp = _this__u8e3s4.l7g(); } else { tmp = null; } } } } return tmp; } function Companion_34() { this.oor_1 = 160; } var Companion_instance_83; function Companion_getInstance_51() { return Companion_instance_83; } function $invokeCOROUTINE$18(_this__u8e3s4, entityUid, tableId, pictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xor_1 = _this__u8e3s4; this.yor_1 = entityUid; this.zor_1 = tableId; this.aos_1 = pictureUri; } protoOf($invokeCOROUTINE$18).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 21; var tmp0_safe_receiver = this.aos_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.bos_1 = Companion_getInstance_3().i2s(this.aos_1); this.cos_1 = this.xor_1.jot_1; if (this.cos_1 == null) { this.dos_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = getLocalUriIfRemote(this.cos_1, this.bos_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { var tmp_2 = this; var tmp12_elvis_lhs = this.xor_1.got_1; tmp_2.eos_1 = imageDaoForTable(tmp12_elvis_lhs == null ? this.xor_1.fot_1 : tmp12_elvis_lhs, this.xor_1, this.zor_1); if (this.eos_1 == null) { this.fos_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.eos_1.obj(this.yor_1, null, null, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp_3 = this; tmp_3.fos_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: this.hd_1 = 20; continue $sm; case 3: this.dos_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: this.gos_1 = this.dos_1; this.hos_1 = this.gos_1 == null ? this.bos_1 : this.gos_1; this.hd_1 = 5; suspendResult = this.xor_1.hot_1.kot(this.hos_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.ios_1 = suspendResult; this.hd_1 = 6; suspendResult = this.xor_1.hot_1.kot(this.hos_1.toString(), VOID, new CompressParams(160, 160), VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.jos_1 = suspendResult; this.kos_1 = this.xor_1.dot_1; var tmp_4 = this; tmp_4.los_1 = ArrayList_init_$Create$(); var tmp_5 = this; tmp_5.mos_1 = this.los_1; if (this.ios_1 == null) null; else { this.mos_1.i1(new SaveLocalUriAsBlobItem(this.ios_1.lot_1, this.yor_1, this.zor_1, this.ios_1.mot_1, true, true)); } if (this.jos_1 == null) null; else { this.mos_1.i1(new SaveLocalUriAsBlobItem(this.jos_1.lot_1, this.yor_1, this.zor_1, this.jos_1.mot_1, true, true)); } if (this.ios_1 == null ? true : this.jos_1 == null) { this.hd_1 = 7; suspendResult = isRemote(this.bos_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.nos_1 = false; this.hd_1 = 8; continue $sm; } case 7: this.oos_1 = suspendResult; this.nos_1 = !this.oos_1; this.hd_1 = 8; continue $sm; case 8: this.pos_1 = this.nos_1; if (this.pos_1) { this.mos_1.i1(new SaveLocalUriAsBlobItem(this.aos_1, this.yor_1, this.zor_1, VOID, VOID, true)); } this.qos_1 = this.los_1; this.ros_1 = this.qos_1.f3(); this.hd_1 = 9; suspendResult = this.kos_1.yoq(this.ros_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.sos_1 = suspendResult; this.hd_1 = 10; suspendResult = this.xor_1.iot_1.pot(listOf_0(this.aos_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.sos_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.coq_1 === this.aos_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.doq_1; tmp_6.tos_1 = tmp4_elvis_lhs == null ? this.bos_1.toString() : tmp4_elvis_lhs; var tmp_7 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_0 = this.sos_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = this.ios_1; if (element_0.coq_1 === (tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.lot_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.doq_1; tmp_7.uos_1 = tmp6_elvis_lhs == null ? this.tos_1 : tmp6_elvis_lhs; var tmp_8 = this; var tmp$ret$4; l$ret$5: do { var tmp0_iterator_1 = this.sos_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_1 = this.jos_1; if (element_1.coq_1 === (tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.lot_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.doq_1; tmp_8.vos_1 = tmp8_elvis_lhs == null ? this.tos_1 : tmp8_elvis_lhs; if (!(this.xor_1.eot_1 == null)) { if (this.ios_1 == null ? true : this.jos_1 == null) { this.hd_1 = 13; suspendResult = isRemote(this.bos_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.xos_1 = false; this.hd_1 = 14; continue $sm; } } else { var tmp_9 = this; var tmp10_elvis_lhs = this.xor_1.got_1; tmp_9.yos_1 = imageDaoForTable(tmp10_elvis_lhs == null ? this.xor_1.fot_1 : tmp10_elvis_lhs, this.xor_1, this.zor_1); if (this.yos_1 == null) { this.zos_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.yos_1.obj(this.yor_1, this.uos_1, this.vos_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 11: var tmp_10 = this; tmp_10.zos_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: this.hd_1 = 19; continue $sm; case 13: this.xos_1 = suspendResult; this.hd_1 = 14; continue $sm; case 14: if (this.xos_1) { var tmp_11 = this; tmp_11.wos_1 = new EnqueueBlobUploadItem(this.bos_1.toString(), this.zor_1, this.yor_1, new Long(0, 0)); this.hd_1 = 15; continue $sm; } else { var tmp_12 = this; tmp_12.wos_1 = null; this.hd_1 = 15; continue $sm; } case 15: this.aot_1 = this.wos_1; this.bot_1 = imageDaoForTable(this.xor_1.fot_1, this.xor_1, this.zor_1); if (this.bot_1 == null) { this.cot_1 = null; this.hd_1 = 17; continue $sm; } else { this.hd_1 = 16; suspendResult = this.bot_1.obj(this.yor_1, this.uos_1, this.vos_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: var tmp_13 = this; tmp_13.cot_1 = Unit_instance; this.hd_1 = 17; continue $sm; case 17: Napier_getInstance().c5f('SavePictureUseCase: Set picture url = ' + this.uos_1 + ' on entity=' + this.yor_1.toString() + ' table=' + this.zor_1); this.hd_1 = 18; var this_0 = this.sos_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.doq_1, this.zor_1, this.yor_1, item.eoq_1)); } var this_1 = listOf_0(this.aot_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.xor_1.eot_1.zoq(plus(destination, destination_0), randomUuidAsString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 18: this.hd_1 = 19; continue $sm; case 19: this.hd_1 = 20; continue $sm; case 20: return Unit_instance; case 21: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 21) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function SavePictureUseCase(saveLocalUrisAsBlobUseCase, enqueueBlobUploadClientUseCase, db, repo, compressImageUseCase, deleteUrisUseCase, getStoragePathForUrlUseCase) { getStoragePathForUrlUseCase = getStoragePathForUrlUseCase === VOID ? null : getStoragePathForUrlUseCase; this.dot_1 = saveLocalUrisAsBlobUseCase; this.eot_1 = enqueueBlobUploadClientUseCase; this.fot_1 = db; this.got_1 = repo; this.hot_1 = compressImageUseCase; this.iot_1 = deleteUrisUseCase; this.jot_1 = getStoragePathForUrlUseCase; } protoOf(SavePictureUseCase).nor = function (entityUid, tableId, pictureUri, $completion) { var tmp = new $invokeCOROUTINE$18(this, entityUid, tableId, pictureUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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.yot_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$updateJob$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater$updateJob$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemStatusUpdater$updateJob$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: if (!get_isActive(this.zot_1)) { this.hd_1 = 4; continue $sm; } this.hd_1 = 2; suspendResult = delay(this.yot_1.cou_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.yot_1.hou(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 1; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(TransferJobItemStatusUpdater$updateJob$slambda).p1n = function ($this$launch, completion) { var i = new TransferJobItemStatusUpdater$updateJob$slambda(this.yot_1, completion); i.zot_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function TransferJobItemStatusUpdater$commit$slambda($progressUpdatesToCommit, this$0, $statusUpdatesToCommit, $repoNodeId, $updateTransferJobStatusUid, resultContinuation) { this.qou_1 = $progressUpdatesToCommit; this.rou_1 = this$0; this.sou_1 = $statusUpdatesToCommit; this.tou_1 = $repoNodeId; this.uou_1 = $updateTransferJobStatusUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$commit$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 11; var tmp_0 = this; tmp_0.wou_1 = this.qou_1; this.xou_1 = this.wou_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.xou_1.f()) { this.hd_1 = 3; continue $sm; } this.you_1 = this.xou_1.e(); var tmp_1 = this; tmp_1.zou_1 = this.you_1; this.hd_1 = 2; suspendResult = this.rou_1.aou_1.e7g().tie(this.zou_1.eoo_1.aoo_1, this.zou_1.foo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 1; continue $sm; case 3: var tmp_2 = this; tmp_2.aov_1 = this.sou_1; this.bov_1 = this.aov_1.w(); this.hd_1 = 4; continue $sm; case 4: if (!this.bov_1.f()) { this.hd_1 = 8; continue $sm; } this.cov_1 = this.bov_1.e(); var tmp_3 = this; tmp_3.dov_1 = this.cov_1; this.hd_1 = 5; suspendResult = this.rou_1.aou_1.e7g().uie(this.dov_1.goo_1.aoo_1, this.dov_1.hoo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: if (this.dov_1.hoo_1 === TransferJobItemStatus_COMPLETE_getInstance().okb_1 ? !(this.tou_1 == null) : false) { this.hd_1 = 6; suspendResult = this.rou_1.aou_1.e7g().vie(this.tou_1, this.dov_1.goo_1.aoo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 7; continue $sm; } case 6: this.hd_1 = 7; continue $sm; case 7: this.hd_1 = 4; continue $sm; case 8: if (!(this.uou_1 === 0)) { this.hd_1 = 9; suspendResult = this.rou_1.aou_1.d7g().jic(this.uou_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; continue $sm; } case 9: var numUpdates = suspendResult; var tmp_4 = Napier_getInstance(); tmp_4.e5f(VOID, VOID, TransferJobItemStatusUpdater$commit$slambda$lambda(this.uou_1, numUpdates)); this.hd_1 = 10; continue $sm; case 10: return Unit_instance; case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).ony = function (it, completion) { var i = new TransferJobItemStatusUpdater$commit$slambda(this.qou_1, this.rou_1, this.sou_1, this.tou_1, this.uou_1, completion); i.vou_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.nny(it, $completion); }; l.$arity = 1; return l; } function $commitCOROUTINE$19(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mov_1 = _this__u8e3s4; this.nov_1 = updateTransferJobStatusUid; } protoOf($commitCOROUTINE$19).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.oov_1 = this.mov_1.eou_1.atomicfu$getAndSet(emptyList()); this.pov_1 = this.mov_1.fou_1.atomicfu$getAndSet(emptyList()); var tmp_0 = this; var this_0 = this.oov_1; var map = LinkedHashMap_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var key = element.eoo_1.aoo_1; map.s(key, element); } tmp_0.qov_1 = toList(map.p2()); var tmp_1 = this; var this_1 = this.pov_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.goo_1.aoo_1; map_0.s(key_0, element_0); } tmp_1.rov_1 = toList(map_0.p2()); var tmp_2 = this; var tmp_3 = this.mov_1.bou_1; var tmp0_safe_receiver = (!(tmp_3 == null) ? isInterface(tmp_3, DoorDatabaseRepository) : false) ? tmp_3 : null; tmp_2.sov_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g62(); var tmp_4 = this; var this_2 = this.mov_1.aou_1; var tmp_5; var tmp_6; var tmp_7; if (!this.qov_1.c1()) { tmp_7 = true; } else { tmp_7 = !this.rov_1.c1(); } if (tmp_7) { tmp_6 = true; } else { tmp_6 = !(this.nov_1 === 0); } if (tmp_6) { tmp_5 = this_2; } else { tmp_5 = null; } tmp_4.tov_1 = tmp_5; if (this.tov_1 == null) { this.uov_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.tov_1, VOID, TransferJobItemStatusUpdater$commit$slambda_0(this.qov_1, this.mov_1, this.rov_1, this.sov_1, this.nov_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_8 = this; tmp_8.uov_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $onFinishedCOROUTINE$20(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dow_1 = _this__u8e3s4; this.eow_1 = updateTransferJobStatusUid; } protoOf($onFinishedCOROUTINE$20).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (!this.dow_1.dou_1.atomicfu$getAndSet(true)) { this.dow_1.gou_1.gs(); this.hd_1 = 1; suspendResult = this.dow_1.fow(this.eow_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function TransferJobItemStatusUpdater(db, repo, scope, commitInterval) { commitInterval = commitInterval === VOID ? new Long(500, 0) : commitInterval; this.aou_1 = db; this.bou_1 = repo; this.cou_1 = commitInterval; this.dou_1 = atomic$boolean$1(false); this.eou_1 = atomic$ref$1(emptyList()); this.fou_1 = atomic$ref$1(emptyList()); var tmp = this; tmp.gou_1 = launch(scope, VOID, VOID, TransferJobItemStatusUpdater$updateJob$slambda_0(this, null)); } protoOf(TransferJobItemStatusUpdater).gow = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.eou_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).how = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.fou_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).fow = function (updateTransferJobStatusUid, $completion) { var tmp = new $commitCOROUTINE$19(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).hou = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.fow(updateTransferJobStatusUid, $completion) : $super.fow.call(this, updateTransferJobStatusUid, $completion); }; protoOf(TransferJobItemStatusUpdater).iow = function (updateTransferJobStatusUid, $completion) { var tmp = new $onFinishedCOROUTINE$20(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).jow = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.iow(updateTransferJobStatusUid, $completion) : $super.iow.call(this, updateTransferJobStatusUid, $completion); }; function $invokeCOROUTINE$21(_this__u8e3s4, db, tableId, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sow_1 = _this__u8e3s4; this.tow_1 = db; this.uow_1 = tableId; this.vow_1 = entityUid; this.wow_1 = transferJobItemUid; } protoOf($invokeCOROUTINE$21).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.xow_1 = this.uow_1; if (this.xow_1 === 50) { this.hd_1 = 2; suspendResult = this.tow_1.z7e().cbr(this.vow_1, this.wow_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.xow_1 === 738) { this.hd_1 = 1; suspendResult = this.tow_1.c7g().cbr(this.vow_1, this.wow_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } } case 1: this.hd_1 = 3; continue $sm; case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function UpdateTransferJobItemEtagUseCase() { } protoOf(UpdateTransferJobItemEtagUseCase).yow = function (db, tableId, entityUid, transferJobItemUid, $completion) { var tmp = new $invokeCOROUTINE$21(this, db, tableId, entityUid, transferJobItemUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_35() { this.zow_1 = 'X-Blob-Response-'; this.aox_1 = 'Blob-Upload-Batch-Uuid'; } var Companion_instance_84; function Companion_getInstance_52() { return Companion_instance_84; } 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.box_1 = blobUrl; this.cox_1 = tableId; this.dox_1 = entityUid; this.eox_1 = retentionLockIdToRelease; } protoOf(EnqueueBlobUploadItem).toString = function () { return 'EnqueueBlobUploadItem(blobUrl=' + this.box_1 + ', tableId=' + this.cox_1 + ', entityUid=' + this.dox_1.toString() + ', retentionLockIdToRelease=' + this.eox_1.toString() + ')'; }; protoOf(EnqueueBlobUploadItem).hashCode = function () { var result = getStringHashCode(this.box_1); result = imul(result, 31) + this.cox_1 | 0; result = imul(result, 31) + this.dox_1.hashCode() | 0; result = imul(result, 31) + this.eox_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.box_1 === tmp0_other_with_cast.box_1)) return false; if (!(this.cox_1 === tmp0_other_with_cast.cox_1)) return false; if (!this.dox_1.equals(tmp0_other_with_cast.dox_1)) return false; if (!this.eox_1.equals(tmp0_other_with_cast.eox_1)) return false; return true; }; function EnqueueBlobUploadClientUseCase() { } function getLocalUriIfRemote(_this__u8e3s4, uri, $completion) { var tmp = new $getLocalUriIfRemoteCOROUTINE$22(_this__u8e3s4, uri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $getLocalUriIfRemoteCOROUTINE$22(_this__u8e3s4, uri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oox_1 = _this__u8e3s4; this.pox_1 = uri; } protoOf($getLocalUriIfRemoteCOROUTINE$22).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = isRemote(this.pox_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (suspendResult) { this.rox_1 = Companion_getInstance_3(); this.hd_1 = 2; suspendResult = this.oox_1.sox(this.pox_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0 = this; tmp_0.qox_1 = this.pox_1; this.hd_1 = 3; continue $sm; } case 2: var ARGUMENT = suspendResult; var ARGUMENT_0 = ARGUMENT.tox_1; this.qox_1 = this.rox_1.i2s(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 3: return this.qox_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function GetStoragePathForUrlUseCase$invoke$lambda(it) { return Unit_instance; } function GetStoragePathForUrlUseCase() { } function CreateNewClazzUseCase$invoke$slambda($clazz, this$0, resultContinuation) { this.eoy_1 = $clazz; this.foy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CreateNewClazzUseCase$invoke$slambda).yoj = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CreateNewClazzUseCase$invoke$slambda).he = function (p1, $completion) { return this.yoj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CreateNewClazzUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var this_0 = this.eoy_1; var tmp_0; if (this_0.i8f_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.i8f_1 = randomString(6); } this.hd_1 = 1; suspendResult = this.foy_1.ioy_1.i7e().insertAsync(this.eoy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hoy_1 = suspendResult; this.hd_1 = 2; var tmp_2 = this.foy_1.ioy_1.i7g(); var tmp_3 = this.eoy_1.l8e_1; Companion_getInstance_5(); suspendResult = tmp_2.xdk(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.hd_1 = 3; var tmp_4 = this.foy_1.ioy_1.i7g(); var tmp_5 = this.eoy_1.l8e_1; Companion_getInstance_5(); suspendResult = tmp_4.xdk(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.hoy_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CreateNewClazzUseCase$invoke$slambda).ony = function (it, completion) { var i = new CreateNewClazzUseCase$invoke$slambda(this.eoy_1, this.foy_1, completion); i.goy_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.yoj(it, $completion); }; l.$arity = 1; return l; } function CreateNewClazzUseCase(repoOrDb) { this.ioy_1 = repoOrDb; } protoOf(CreateNewClazzUseCase).joy = function (clazz, $completion) { return withDoorTransactionAsync(this.ioy_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.soy_1 = $approved; this.toy_1 = this$0; this.uoy_1 = $enrolmentRequest; this.voy_1 = $effectiveClazz; CoroutineImpl.call(this, resultContinuation); } protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; if (this.soy_1) { this.hd_1 = 1; var tmp_0 = this.uoy_1.fez_1; var tmp_1 = this.uoy_1.hez_1; var tmp_2 = ClazzEnrolment_init_$Create$(tmp_0, tmp_1, 1000); var tmp0_elvis_lhs = this.voy_1.d8f_1; suspendResult = this.toy_1.boz_1.eoz(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.xoy_1 = 3; this.hd_1 = 2; continue $sm; } case 1: var tmp_4 = this; tmp_4.xoy_1 = 2; this.hd_1 = 2; continue $sm; case 2: this.yoy_1 = this.xoy_1; this.hd_1 = 3; var tmp1_elvis_lhs = this.toy_1.aoz_1; suspendResult = (tmp1_elvis_lhs == null ? this.toy_1.zoy_1 : tmp1_elvis_lhs).h7g().oey(this.uoy_1.eez_1, this.yoy_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).ony = function (it, completion) { var i = new ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda(this.soy_1, this.toy_1, this.uoy_1, this.voy_1, completion); i.woy_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.nny(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$23(_this__u8e3s4, enrolmentRequest, approved, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.noz_1 = _this__u8e3s4; this.ooz_1 = enrolmentRequest; this.poz_1 = approved; } protoOf($invokeCOROUTINE$23).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.noz_1.zoy_1.i7e().m8d(this.ooz_1.fez_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qoz_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.qoz_1 == null) { throw IllegalStateException_init_$Create$('Class does not exist'); } else { tmp_1 = this.qoz_1; } tmp_0.roz_1 = tmp_1; this.hd_1 = 2; var tmp1_elvis_lhs = this.noz_1.aoz_1; var tmp_2 = tmp1_elvis_lhs == null ? this.noz_1.zoy_1 : tmp1_elvis_lhs; suspendResult = withDoorTransactionAsync(tmp_2, VOID, ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda_0(this.poz_1, this.noz_1, this.ooz_1, this.roz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ApproveOrDeclinePendingEnrolmentUseCase(db, repo, enrolIntoCourseUseCase) { this.zoy_1 = db; this.aoz_1 = repo; this.boz_1 = enrolIntoCourseUseCase; } protoOf(ApproveOrDeclinePendingEnrolmentUseCase).soz = function (enrolmentRequest, approved, $completion) { var tmp = new $invokeCOROUTINE$23(this, enrolmentRequest, approved, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnrolIntoCourseUseCase$invoke$slambda($effectiveDb, $enrolment, resultContinuation) { this.bp0_1 = $effectiveDb; this.cp0_1 = $enrolment; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolIntoCourseUseCase$invoke$slambda).yoj = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).he = function (p1, $completion) { return this.yoj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.bp0_1.n7e().insertAsync(this.cp0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).ony = function (it, completion) { var i = new EnrolIntoCourseUseCase$invoke$slambda(this.bp0_1, this.cp0_1, completion); i.dp0_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.yoj(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$24(_this__u8e3s4, enrolment, timeZoneId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mp0_1 = _this__u8e3s4; this.np0_1 = enrolment; this.op0_1 = timeZoneId; } protoOf($invokeCOROUTINE$24).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp0_elvis_lhs = this.mp0_1.doz_1; suspendResult = (tmp0_elvis_lhs == null ? this.mp0_1.coz_1 : tmp0_elvis_lhs).n7e().c94(this.np0_1.x8i_1, this.np0_1.w8i_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pp0_1 = suspendResult; if (!this.pp0_1.c1()) { throw new AlreadyEnroledInClassException(); } this.np0_1.y8i_1 = toLocalMidnight(Companion_getInstance_6().bmh(this.np0_1.y8i_1), this.op0_1).amh(); if (this.np0_1.z8i_1.c7(get_UNSET_DISTANT_FUTURE()) < 0) { this.np0_1.z8i_1 = toLocalEndOfDay(Companion_getInstance_6().bmh(this.np0_1.z8i_1), this.op0_1).amh(); } var tmp_0 = this; var tmp1_elvis_lhs = this.mp0_1.doz_1; tmp_0.qp0_1 = tmp1_elvis_lhs == null ? this.mp0_1.coz_1 : tmp1_elvis_lhs; this.hd_1 = 2; suspendResult = withDoorTransactionAsync(this.qp0_1, VOID, EnrolIntoCourseUseCase$invoke$slambda_0(this.qp0_1, this.np0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function EnrolIntoCourseUseCase(db, repo) { this.coz_1 = db; this.doz_1 = repo; } protoOf(EnrolIntoCourseUseCase).eoz = function (enrolment, timeZoneId, $completion) { var tmp = new $invokeCOROUTINE$24(this, enrolment, timeZoneId, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function IApproveOrDeclinePendingEnrolmentRequestUseCase() { } function $invokeCOROUTINE$25(_this__u8e3s4, clazzCode, person, roleId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zp0_1 = _this__u8e3s4; this.ap1_1 = clazzCode; this.bp1_1 = person; this.cp1_1 = roleId; } protoOf($invokeCOROUTINE$25).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; this.hd_1 = 1; suspendResult = this.zp0_1.gp1_1.i7e().l8d(this.ap1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dp1_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.dp1_1 == null) { throw IllegalArgumentException_init_$Create$_0(); } else { tmp_1 = this.dp1_1; } tmp_0.ep1_1 = tmp_1; this.hd_1 = 2; suspendResult = this.zp0_1.gp1_1.h7g().mey(this.bp1_1.z96_1, this.ep1_1.l8e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: if (suspendResult) { throw new AlreadyHasPendingRequestException(); } else { this.hd_1 = 3; continue $sm; } case 3: this.hd_1 = 4; suspendResult = this.zp0_1.gp1_1.n7e().c94(this.ep1_1.l8e_1, this.bp1_1.z96_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.fp1_1 = suspendResult; if (!this.fp1_1.c1()) { throw new AlreadyEnroledInClassException(); } else { this.hd_1 = 5; continue $sm; } case 5: this.hd_1 = 6; var tmp_2 = this.zp0_1.gp1_1.h7g(); var tmp_3 = this.ep1_1.l8e_1; var tmp_4 = this.ep1_1.m8e_1; var tmp_5 = this.bp1_1.z96_1; var tmp_6 = this.bp1_1.ykq(); var tmp_7 = this.bp1_1.a97_1; var tmp_8 = systemTimeInMillis(); suspendResult = tmp_2.ley(new EnrolmentRequest(VOID, tmp_3, tmp_4, tmp_5, tmp_6, VOID, tmp_7, this.cp1_1, tmp_8, 1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: return Unit_instance; case 7: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 7) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function RequestEnrolmentUseCase(activeRepo) { this.gp1_1 = activeRepo; } protoOf(RequestEnrolmentUseCase).hp1 = function (clazzCode, person, roleId, $completion) { var tmp = new $invokeCOROUTINE$25(this, clazzCode, person, roleId, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SetClipboardStringUseCase() { } function Companion_36() { } var Companion_instance_85; function Companion_getInstance_53() { return Companion_instance_85; } function $serializer_33() { $serializer_instance_33 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.compress.CompressParams', this, 3); tmp0_serialDesc.n4g('maxWidth', true); tmp0_serialDesc.n4g('maxHeight', true); tmp0_serialDesc.n4g('compressionLevel', true); this.jp1_1 = tmp0_serialDesc; } protoOf($serializer_33).k45 = function () { return this.jp1_1; }; protoOf($serializer_33).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.jp1_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.c49(tmp0_desc); if (tmp7_input.r49()) { tmp4_local0 = tmp7_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.o49(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.o49(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.d49(tmp0_desc); return CompressParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_33).kp1 = function (encoder, value) { var tmp0_desc = this.jp1_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.lp1_1 === 1280)) { tmp1_output.l4a(tmp0_desc, 0, value.lp1_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.mp1_1 === 1280)) { tmp1_output.l4a(tmp0_desc, 1, value.mp1_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !value.np1_1.equals(CompressionLevel_MEDIUM_getInstance())) { tmp1_output.s4a(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), value.np1_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_33).l45 = function (encoder, value) { return this.kp1(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().jp1_1); } if (0 === (seen1 & 1)) $this.lp1_1 = 1280; else $this.lp1_1 = maxWidth; if (0 === (seen1 & 2)) $this.mp1_1 = 1280; else $this.mp1_1 = maxHeight; if (0 === (seen1 & 4)) $this.np1_1 = CompressionLevel_MEDIUM_getInstance(); else $this.np1_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.lp1_1 = maxWidth; this.mp1_1 = maxHeight; this.np1_1 = compressionLevel; } protoOf(CompressParams).toString = function () { return 'CompressParams(maxWidth=' + this.lp1_1 + ', maxHeight=' + this.mp1_1 + ', compressionLevel=' + this.np1_1 + ')'; }; protoOf(CompressParams).hashCode = function () { var result = this.lp1_1; result = imul(result, 31) + this.mp1_1 | 0; result = imul(result, 31) + this.np1_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.lp1_1 === tmp0_other_with_cast.lp1_1)) return false; if (!(this.mp1_1 === tmp0_other_with_cast.mp1_1)) return false; if (!this.np1_1.equals(tmp0_other_with_cast.np1_1)) return false; return true; }; function CompressResult(uri, mimeType, originalSize, compressedSize) { this.lot_1 = uri; this.mot_1 = mimeType; this.not_1 = originalSize; this.oot_1 = compressedSize; } protoOf(CompressResult).toString = function () { return 'CompressResult(uri=' + this.lot_1 + ', mimeType=' + this.mot_1 + ', originalSize=' + this.not_1.toString() + ', compressedSize=' + this.oot_1.toString() + ')'; }; protoOf(CompressResult).hashCode = function () { var result = getStringHashCode(this.lot_1); result = imul(result, 31) + getStringHashCode(this.mot_1) | 0; result = imul(result, 31) + this.not_1.hashCode() | 0; result = imul(result, 31) + this.oot_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.lot_1 === tmp0_other_with_cast.lot_1)) return false; if (!(this.mot_1 === tmp0_other_with_cast.mot_1)) return false; if (!this.not_1.equals(tmp0_other_with_cast.not_1)) return false; if (!this.oot_1.equals(tmp0_other_with_cast.oot_1)) return false; return true; }; function CompressUseCase() { } function _get_$cachedSerializer__te6jhj($this) { return $this.pp1_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_86 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.pp1_1 = lazy(tmp_0, CompressionLevel$Companion$_anonymous__cmsj0x); } protoOf(Companion_37).qp1 = 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.tp1_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).h4s = function () { return _get_$cachedSerializer__te6jhj(this); }; protoOf(Companion_37).p4h = function (typeParamsSerializers) { return this.h4s(); }; var Companion_instance_86; function Companion_getInstance_54() { CompressionLevel_initEntries(); if (Companion_instance_86 == null) new Companion_37(); return Companion_instance_86; } 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_54(); } var $ENTRIES; function CompressionLevel(name, ordinal, value) { Enum.call(this, name, ordinal); this.tp1_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.up1_1 = PrimitiveSerialDescriptor('CompressionLevel', INT_getInstance()); } protoOf(CompressionLevelSerializer).k45 = function () { return this.up1_1; }; protoOf(CompressionLevelSerializer).m45 = function (decoder) { return Companion_getInstance_54().qp1(decoder.s48()); }; protoOf(CompressionLevelSerializer).vp1 = function (encoder, value) { encoder.a4a(value.tp1_1); }; protoOf(CompressionLevelSerializer).l45 = function (encoder, value) { return this.vp1(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.oof_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().omd(element.sof_1); destination.s(tmp$ret$0, element); } tmp = destination; } else { tmp = entryMap; } entryMap = tmp; this.wp1_1 = manifest; this.xp1_1 = entryMap; } protoOf(ContentManifestMap).yp1 = function (manifestUrl, pathInContentEntryVersion) { return UrlKmp(manifestUrl).zp1(pathInContentEntryVersion).toString(); }; protoOf(ContentManifestMap).toString = function () { return 'ContentManifestMap(manifest=' + this.wp1_1 + ', entryMap=' + this.xp1_1 + ')'; }; protoOf(ContentManifestMap).hashCode = function () { var result = this.wp1_1.hashCode(); result = imul(result, 31) + hashCode(this.xp1_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.wp1_1.equals(tmp0_other_with_cast.wp1_1)) return false; if (!equals(this.xp1_1, tmp0_other_with_cast.xp1_1)) return false; return true; }; function DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this$0, $entries, $timeNow, $activeUserPersonUid, resultContinuation) { this.ip2_1 = this$0; this.jp2_1 = $entries; this.kp2_1 = $timeNow; this.lp2_1 = $activeUserPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; var tmp_0 = this.ip2_1.rp2_1.r7e(); var this_0 = this.jp2_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.tp2_1); } suspendResult = tmp_0.lbe(destination, true, this.kp2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; tmp_1.np2_1 = this.jp2_1; this.op2_1 = this.np2_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.op2_1.f()) { this.hd_1 = 4; continue $sm; } this.pp2_1 = this.op2_1.e(); var tmp_2 = this; tmp_2.qp2_1 = this.pp2_1; this.hd_1 = 3; suspendResult = this.ip2_1.rp2_1.g7g().weg(this.qp2_1.tp2_1, this.kp2_1, this.lp2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 2; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).ony = function (it, completion) { var i = new DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this.ip2_1, this.jp2_1, this.kp2_1, this.lp2_1, completion); i.mp2_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.nny(it, $completion); }; l.$arity = 1; return l; } function DeleteContentEntryParentChildJoinUseCase(repoOrDb) { this.rp2_1 = repoOrDb; } protoOf(DeleteContentEntryParentChildJoinUseCase).vp2 = function (entries, activeUserPersonUid, $completion) { var timeNow = systemTimeInMillis(); return withDoorTransactionAsync(this.rp2_1, VOID, DeleteContentEntryParentChildJoinUseCase$invoke$slambda_0(this, entries, timeNow, activeUserPersonUid, null), $completion); }; function Companion_38() { this.wp2_1 = 'upload-original-filename'; } var Companion_instance_87; function Companion_getInstance_55() { return Companion_instance_87; } 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.yp2_1 = indeterminate; this.zp2_1 = error; this.ap3_1 = processedBytes; this.bp3_1 = totalBytes; } protoOf(ContentEntryGetMetadataStatus).cp3 = function () { var tmp; if (!this.bp3_1.equals(new Long(0, 0))) { // Inline function 'kotlin.Long.times' call tmp = this.ap3_1.cb(toLong(100)).bb(this.bp3_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(ContentEntryGetMetadataStatus).dp3 = function (indeterminate, error, processedBytes, totalBytes) { return new ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).ep3 = function (indeterminate, error, processedBytes, totalBytes, $super) { indeterminate = indeterminate === VOID ? this.yp2_1 : indeterminate; error = error === VOID ? this.zp2_1 : error; processedBytes = processedBytes === VOID ? this.ap3_1 : processedBytes; totalBytes = totalBytes === VOID ? this.bp3_1 : totalBytes; return $super === VOID ? this.dp3(indeterminate, error, processedBytes, totalBytes) : $super.dp3.call(this, indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).toString = function () { return 'ContentEntryGetMetadataStatus(indeterminate=' + this.yp2_1 + ', error=' + this.zp2_1 + ', processedBytes=' + this.ap3_1.toString() + ', totalBytes=' + this.bp3_1.toString() + ')'; }; protoOf(ContentEntryGetMetadataStatus).hashCode = function () { var result = getBooleanHashCode(this.yp2_1); result = imul(result, 31) + (this.zp2_1 == null ? 0 : getStringHashCode(this.zp2_1)) | 0; result = imul(result, 31) + this.ap3_1.hashCode() | 0; result = imul(result, 31) + this.bp3_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.yp2_1 === tmp0_other_with_cast.yp2_1)) return false; if (!(this.zp2_1 == tmp0_other_with_cast.zp2_1)) return false; if (!this.ap3_1.equals(tmp0_other_with_cast.ap3_1)) return false; if (!this.bp3_1.equals(tmp0_other_with_cast.bp3_1)) return false; return true; }; function UnsupportedContentException(message) { Exception_init_$Init$(message, this); captureStack(this, UnsupportedContentException); } function Companion_39() { this.fp3_1 = 'text/vtt'; this.gp3_1 = 'filename'; this.hp3_1 = 'locale'; this.ip3_1 = 'WEBVTT'; } var Companion_instance_88; function Companion_getInstance_56() { return Companion_instance_88; } function GetSubtitleTrackFromUriUseCase() { } function CancelImportContentEntryUseCase() { } function $invokeCOROUTINE$26(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tp3_1 = _this__u8e3s4; this.up3_1 = cjiUid; this.vp3_1 = activeUserPersonUid; } protoOf($invokeCOROUTINE$26).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.tp3_1.gp4_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.wp3_1 = tmp_2; var tmp_3 = this; tmp_3.xp3_1 = this.tp3_1.fp4_1; var tmp_4 = this; tmp_4.yp3_1 = this.tp3_1.ep4_1.mnt_1 + 'api/contententryimportjob/cancel'; var tmp_5 = this; tmp_5.zp3_1 = this.xp3_1; var tmp_6 = this; tmp_6.ap4_1 = this.zp3_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.yp3_1); parameter(this_0, 'jobUid', this.up3_1); doorNodeIdHeader(this_0, this.wp3_1); parameter(this_0, 'accountPersonUid', this.vp3_1); header(this_0, 'cache-control', 'no-store'); tmp_7.bp4_1 = this_0; this.bp4_1.q39_1 = Companion_getInstance().f2y_1; var tmp_8 = this; tmp_8.cp4_1 = this.ap4_1; var tmp_9 = this; tmp_9.dp4_1 = this.bp4_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.dp4_1, this.cp4_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function CancelRemoteContentEntryImportUseCase(learningSpace, httpClient, repo) { this.ep4_1 = learningSpace; this.fp4_1 = httpClient; this.gp4_1 = repo; } protoOf(CancelRemoteContentEntryImportUseCase).hp4 = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$26(this, cjiUid, activeUserPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function $invokeCOROUTINE$27(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qp4_1 = _this__u8e3s4; this.rp4_1 = cjiUid; this.sp4_1 = activeUserPersonUid; } protoOf($invokeCOROUTINE$27).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.qp4_1.dp5_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.tp4_1 = tmp_2; var tmp_3 = this; tmp_3.up4_1 = this.qp4_1.bp5_1; var tmp_4 = this; tmp_4.vp4_1 = this.qp4_1.cp5_1.mnt_1 + 'api/contententryimportjob/dismissError'; var tmp_5 = this; tmp_5.wp4_1 = this.up4_1; var tmp_6 = this; tmp_6.xp4_1 = this.wp4_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.vp4_1); parameter(this_0, 'jobUid', this.rp4_1); doorNodeIdHeader(this_0, this.tp4_1); parameter(this_0, 'accountPersonUid', this.sp4_1); header(this_0, 'cache-control', 'no-store'); tmp_7.yp4_1 = this_0; this.yp4_1.q39_1 = Companion_getInstance().f2y_1; var tmp_8 = this; tmp_8.zp4_1 = this.xp4_1; var tmp_9 = this; tmp_9.ap5_1 = this.yp4_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.ap5_1, this.zp4_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function DismissRemoteContentEntryImportErrorUseCase(httpClient, learningSpace, repo) { this.bp5_1 = httpClient; this.cp5_1 = learningSpace; this.dp5_1 = repo; } protoOf(DismissRemoteContentEntryImportErrorUseCase).hp4 = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$27(this, cjiUid, activeUserPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnqueueContentEntryImportUseCase() { } function $invokeCOROUTINE$28(_this__u8e3s4, contentJobItem, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.np5_1 = _this__u8e3s4; this.op5_1 = contentJobItem; } protoOf($invokeCOROUTINE$28).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.pp5_1 = this.np5_1.xp5_1; var tmp_1 = this; tmp_1.qp5_1 = this.np5_1.wp5_1.mnt_1 + 'api/import/importRequest'; var tmp_2 = this; tmp_2.rp5_1 = this.pp5_1; var tmp_3 = this; tmp_3.sp5_1 = this.rp5_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.qp5_1); contentType(this_0, Application_getInstance().p2s_1); setBodyJson(this_0, this.np5_1.yp5_1, Companion_instance_89.h4s(), new ImportRequest(this.op5_1)); tmp_4.tp5_1 = this_0; this.tp5_1.q39_1 = Companion_getInstance().g2y_1; var tmp_5 = this; tmp_5.up5_1 = this.sp5_1; var tmp_6 = this; tmp_6.vp5_1 = this.tp5_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.vp5_1, this.up5_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function EnqueueImportContentEntryUseCaseRemote(learningSpace, httpClient, json) { this.wp5_1 = learningSpace; this.xp5_1 = httpClient; this.yp5_1 = json; } protoOf(EnqueueImportContentEntryUseCaseRemote).ep5 = function (contentJobItem, $completion) { var tmp = new $invokeCOROUTINE$28(this, contentJobItem, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_40() { } protoOf(Companion_40).h4s = function () { return $serializer_getInstance_46(); }; var Companion_instance_89; function Companion_getInstance_57() { return Companion_instance_89; } function $serializer_34() { $serializer_instance_34 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.contententry.importcontent.ImportRequest', this, 1); tmp0_serialDesc.n4g('contentJobItem', false); this.zp5_1 = tmp0_serialDesc; } protoOf($serializer_34).k45 = function () { return this.zp5_1; }; protoOf($serializer_34).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.zp5_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.o49(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return ImportRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_34).ap6 = function (encoder, value) { var tmp0_desc = this.zp5_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, $serializer_getInstance_5(), value.bp6_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_34).l45 = function (encoder, value) { return this.ap6(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().zp5_1); } $this.bp6_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.bp6_1 = contentJobItem; } protoOf(ImportRequest).toString = function () { return 'ImportRequest(contentJobItem=' + this.bp6_1 + ')'; }; protoOf(ImportRequest).hashCode = function () { return this.bp6_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.bp6_1.equals(tmp0_other_with_cast.bp6_1)) return false; return true; }; function DefaultLaunchContentEntryVersionUseCase() { } protoOf(DefaultLaunchContentEntryVersionUseCase).cp6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp0_subject = contentEntryVersion.iay_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_125(); var tmp_0 = to('entityUid', contentEntryVersion.fay_1.toString()); Companion_getInstance_125(); var tmp_1 = to('courseBlockUid', cbUid.toString()); Companion_getInstance_125(); var tmp_2 = to('clazzUid', clazzUid.toString()); Companion_getInstance_125(); navController.dp6(destName, mapOf([tmp_0, tmp_1, tmp_2, to('entryid', contentEntryVersion.gay_1.toString())])); } return new LaunchResult(); }; protoOf(DefaultLaunchContentEntryVersionUseCase).ep6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.cp6(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function LaunchResult(message) { message = message === VOID ? null : message; this.fp6_1 = message; } protoOf(LaunchResult).toString = function () { return 'LaunchResult(message=' + this.fp6_1 + ')'; }; protoOf(LaunchResult).hashCode = function () { return this.fp6_1 == null ? 0 : getStringHashCode(this.fp6_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.fp6_1 == tmp0_other_with_cast.fp6_1)) return false; return true; }; function LaunchContentEntryVersionUseCase() { } function LaunchEpubUseCase() { } function LaunchXapiUseCase() { } function XapiLaunchHrefResult(url, launchUriInContent, launchActivity, manifestUrl) { this.gp6_1 = url; this.hp6_1 = launchUriInContent; this.ip6_1 = launchActivity; this.jp6_1 = manifestUrl; } function ResolveXapiLaunchHrefUseCase$invoke$lambda($contentEntryVersionUid) { return function () { return 'Resolving xAPI url for contentEntryVersion ' + $contentEntryVersionUid.toString(); }; } function ResolveXapiLaunchHrefUseCase$invoke$slambda($contentEntryVersionUid, resultContinuation) { this.sp6_1 = $contentEntryVersionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).up6 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).he = function (p1, $completion) { return this.up6(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.tp6_1.c7g().zbq(this.sp6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).ony = function (it, completion) { var i = new ResolveXapiLaunchHrefUseCase$invoke$slambda(this.sp6_1, completion); i.tp6_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.up6(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.dp7_1 = _this__u8e3s4; this.ep7_1 = contentEntryVersionUid; this.fp7_1 = clazzUid; this.gp7_1 = cbUid; } protoOf($invokeCOROUTINE$29).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; var tmp_0 = Napier_getInstance(); tmp_0.y5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda(this.ep7_1)); this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.dp7_1.kp8_1, ResolveXapiLaunchHrefUseCase$invoke$slambda_0(this.ep7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hp7_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.hp7_1 == null) { throw IllegalArgumentException_init_$Create$('could not load contententryversion ' + this.ep7_1.toString()); } else { tmp_2 = this.hp7_1; } tmp_1.ip7_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.ip7_1.jay_1; var tmp_4; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.ep7_1.toString() + ' manifesturl is null'); } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.jp7_1 = tmp_4; var tmp_5 = this; tmp_5.kp7_1 = this.dp7_1.mp8_1; var tmp_6 = this; tmp_6.lp7_1 = this.dp7_1.lp8_1; var tmp_7 = this; tmp_7.mp7_1 = this.jp7_1; var tmp_8 = this; tmp_8.np7_1 = this.lp7_1; var tmp_9 = this; tmp_9.op7_1 = this.np7_1; var tmp_10 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.mp7_1); tmp_10.pp7_1 = this_0; this.pp7_1.q39_1 = Companion_getInstance().f2y_1; var tmp_11 = this; tmp_11.qp7_1 = this.op7_1; var tmp_12 = this; tmp_12.rp7_1 = this.pp7_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.rp7_1, this.qp7_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.sp7_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.sp7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tp7_1 = suspendResult; var tmp_13 = this; var this_1 = this.kp7_1.n46(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_13.up7_1 = this.kp7_1.m46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.tp7_1); this.vp7_1 = requireEntryByUri(this.up7_1, ensureNotNull(this.ip7_1.hay_1)); var tmp_14 = this; tmp_14.wp7_1 = this.dp7_1.lp8_1; var tmp_15 = this; tmp_15.xp7_1 = this.vp7_1.aog_1; var tmp_16 = this; tmp_16.yp7_1 = this.wp7_1; var tmp_17 = this; tmp_17.zp7_1 = this.yp7_1; var tmp_18 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.xp7_1); tmp_18.ap8_1 = this_3; this.ap8_1.q39_1 = Companion_getInstance().f2y_1; var tmp_19 = this; tmp_19.bp8_1 = this.zp7_1; var tmp_20 = this; tmp_20.cp8_1 = this.ap8_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.cp8_1, this.bp8_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.dp8_1 = suspendResult; this.hd_1 = 5; suspendResult = bodyAsDecodedText(this.dp8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.ep8_1 = suspendResult; this.fp8_1 = this.dp7_1.np8_1.s7d(); setInputString(this.fp8_1, this.ep8_1); this.gp8_1 = Companion_instance_135.tp8(this.fp8_1); var tmp_21 = this; var tmp2_safe_receiver = this.gp8_1.up8_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cp9_1; var tmp_22; if (tmp3_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.ep7_1.toString() + ' manifesturl is null'); } else { tmp_22 = tmp3_elvis_lhs; } tmp_21.hp8_1 = tmp_22; var tmp_23 = this; var tmp4_safe_receiver = this.gp8_1.up8_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.zp8_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.ip8_1 = tmp_24; this.jp8_1 = this.dp7_1.qp8_1.ko9().enu_1.z96_1; this.hd_1 = 6; suspendResult = this.dp7_1.op8_1.fp9(this.jp8_1, this.dp7_1.qp8_1.ko9().jnu(), this.ip8_1, this.fp7_1, this.gp7_1, this.ip7_1.gay_1, this.ep7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var xapiSession = suspendResult; var queryParams = mapOf([to('endpoint', this.dp7_1.pp8_1.gp9('/api/xapi/')), to('auth', authorizationHeader(xapiSession)), to('actor', this.dp7_1.mp8_1.l46(Companion_instance_113.h4s(), agent(xapiSession, this.dp7_1.rp8_1))), to('registration', get_registrationUuid(xapiSession).toString()), to('activity_id', xapiSession.sjz_1)]); var url_0 = appendQueryArgs(UMFileUtil_getInstance().mp9(this.jp7_1, this.hp8_1), queryParams); var tinCanXmlPathPrefix = substringBeforeLast(ensureNotNull(this.ip7_1.hay_1), '/', ''); var tmp_25 = Napier_getInstance(); tmp_25.y5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda_0(this.ep7_1, url_0)); return new XapiLaunchHrefResult(url_0, appendQueryArgs(tinCanXmlPathPrefix + this.hp8_1, queryParams), ensureNotNull(this.gp8_1.up8_1), this.jp7_1); case 7: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 7) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ResolveXapiLaunchHrefUseCase(activeRepoOrDb, httpClient, json, xppFactory, resumeOrStartXapiSessionUseCase, getApiUrlUseCase, accountManager, learningSpace) { this.kp8_1 = activeRepoOrDb; this.lp8_1 = httpClient; this.mp8_1 = json; this.np8_1 = xppFactory; this.op8_1 = resumeOrStartXapiSessionUseCase; this.pp8_1 = getApiUrlUseCase; this.qp8_1 = accountManager; this.rp8_1 = learningSpace; } protoOf(ResolveXapiLaunchHrefUseCase).np9 = function (contentEntryVersionUid, clazzUid, cbUid, $completion) { var tmp = new $invokeCOROUTINE$29(this, contentEntryVersionUid, clazzUid, cbUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function MoveContentEntriesUseCase(repo, systemImpl) { this.op9_1 = repo; this.pp9_1 = systemImpl; } protoOf(MoveContentEntriesUseCase).qp9 = 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.sp2_1.equals(destContentEntry.haw_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { throw IllegalArgumentException_init_$Create$(this.pp9_1.coj(strings_getInstance().xnm_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.up2_1.equals(destContentEntry.haw_1)) { tmp$ret$2 = true; break $l$block_2; } } tmp$ret$2 = false; } if (tmp$ret$2) { throw IllegalArgumentException_init_$Create$(this.pp9_1.coj(strings_getInstance().ynm_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.tp2_1; destination.i1(tmp$ret$4); } var uidsToMove = destination; if (uidsToMove.c1()) return Unit_instance; return this.op9_1.r7e().kbe(destContentEntry.haw_1, uidsToMove, systemTimeInMillis(), $completion); }; function SaveContentEntryUseCase$invoke$slambda$lambda($picture) { return function () { return 'SavePictureUseCase: ContentEntry Set picture upsert uri = ' + $picture.zax_1 + ' uid=' + $picture.xax_1.toString(); }; } function SaveContentEntryUseCase$invoke$slambda($effectiveDb, $contentEntry, $picture, $initPictureUri, this$0, $joinToParentUid, resultContinuation) { this.zp9_1 = $effectiveDb; this.apa_1 = $contentEntry; this.bpa_1 = $picture; this.cpa_1 = $initPictureUri; this.dpa_1 = this$0; this.epa_1 = $joinToParentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveContentEntryUseCase$invoke$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveContentEntryUseCase$invoke$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveContentEntryUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.hd_1 = 1; suspendResult = this.zp9_1.p7e().kav(this.apa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.bpa_1 == null) ? !(this.bpa_1.zax_1 == this.cpa_1) : false) { var tmp_0 = Napier_getInstance(); tmp_0.y5e(VOID, VOID, SaveContentEntryUseCase$invoke$slambda$lambda(this.bpa_1)); this.hd_1 = 2; suspendResult = this.dpa_1.gpa_1.l7g().nbj(listOf_0(this.bpa_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: if (!(this.epa_1 == null)) { this.hd_1 = 4; suspendResult = this.zp9_1.r7e().insertAsync(new ContentEntryParentChildJoin(this.epa_1, this.apa_1.haw_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 5; continue $sm; } case 4: this.hd_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SaveContentEntryUseCase$invoke$slambda).ony = function (it, completion) { var i = new SaveContentEntryUseCase$invoke$slambda(this.zp9_1, this.apa_1, this.bpa_1, this.cpa_1, this.dpa_1, this.epa_1, completion); i.fpa_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.nny(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$30(_this__u8e3s4, contentEntry, joinToParentUid, picture, initPictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rpa_1 = _this__u8e3s4; this.spa_1 = contentEntry; this.tpa_1 = joinToParentUid; this.upa_1 = picture; this.vpa_1 = initPictureUri; } protoOf($invokeCOROUTINE$30).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp0_elvis_lhs = this.rpa_1.hpa_1; tmp_0.wpa_1 = tmp0_elvis_lhs == null ? this.rpa_1.gpa_1 : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.wpa_1, VOID, SaveContentEntryUseCase$invoke$slambda_0(this.wpa_1, this.spa_1, this.upa_1, this.vpa_1, this.rpa_1, this.tpa_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.upa_1 == null) ? !(this.upa_1.zax_1 == this.vpa_1) : false) { this.hd_1 = 2; var tmp_1 = this.upa_1.xax_1; suspendResult = this.rpa_1.ipa_1.nor(tmp_1, 6678, this.upa_1.zax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function SaveContentEntryUseCase(db, repo, enqueueSavePictureUseCase) { this.gpa_1 = db; this.hpa_1 = repo; this.ipa_1 = enqueueSavePictureUseCase; } protoOf(SaveContentEntryUseCase).xpa = function (contentEntry, joinToParentUid, picture, initPictureUri, $completion) { var tmp = new $invokeCOROUTINE$30(this, contentEntry, joinToParentUid, picture, initPictureUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function AddOrUpdateCourseBlockUseCase() { } protoOf(AddOrUpdateCourseBlockUseCase).ypa = 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.lk8_1.n7y_1.equals(addOrUpdateBlock.lk8_1.n7y_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.xk8(addOrUpdateBlock.lk8_1.dkm(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.lk8_1.q7y_1.equals(parentModUid) ? true : !(item.lk8_1.a7z_1 === index_0)) { tmp = item.xk8(item.lk8_1.dkm(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).lk8_1; var tmp = block.o7y_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.lk8_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.o7y_1; if (tmp_2 === 100) { tmp_1 = 1; } else { tmp_1 = prevBlock.p7y_1; } var autoIndent = tmp_1; var tmp_3; if (!(block.p7y_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).xk8(this_0.v(index).lk8_1.dkm(VOID, VOID, autoIndent))); tmp_3 = toList(this_0); } else { tmp_3 = _this__u8e3s4; } return tmp_3; } function findParentModule(_this__u8e3s4, forBlock) { var tmp = forBlock.lk8_1.o7y_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.lk8_1.n7y_1.equals(forBlock.lk8_1.n7y_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.lk8_1.o7y_1; if (tmp_2 === 100) { tmp_1 = prevBlock.lk8_1.n7y_1; } else { if (prevBlock.lk8_1.p7y_1 >= 1) { tmp_1 = prevBlock.lk8_1.q7y_1; } else { tmp_1 = new Long(0, 0); } } return tmp_1; } function UpdateCourseBlocksOnReorderOrCommitUseCase() { } protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).zpa = function (currentList, autoIndentIndex) { var tmp; if (autoIndentIndex >= 0) { tmp = autoIndent(currentList, autoIndentIndex); } else { tmp = currentList; } var listIndented = tmp; return updateParentModuleUidsAndIndex(listIndented); }; protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).apb = function (currentList, autoIndentIndex, $super) { autoIndentIndex = autoIndentIndex === VOID ? -1 : autoIndentIndex; return $super === VOID ? this.zpa(currentList, autoIndentIndex) : $super.zpa.call(this, currentList, autoIndentIndex); }; function CreatePasskeyUseCase() { } function CredentialResult() { } function PasswordCredentialResult() { } function PasskeyCredentialResult() { } function Error_1() { } function GetCredentialUseCase() { } function Companion_41() { } var Companion_instance_90; function Companion_getInstance_58() { return Companion_instance_90; } function $serializer_35() { $serializer_instance_35 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.PasskeyVerifyResult', this, 4); tmp0_serialDesc.n4g('isVerified', false); tmp0_serialDesc.n4g('personUid', false); tmp0_serialDesc.n4g('firstName', true); tmp0_serialDesc.n4g('lastName', true); this.dpb_1 = tmp0_serialDesc; } protoOf($serializer_35).k45 = function () { return this.dpb_1; }; protoOf($serializer_35).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.dpb_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.c49(tmp0_desc); if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return PasskeyVerifyResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_35).epb = function (encoder, value) { var tmp0_desc = this.dpb_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.i4a(tmp0_desc, 0, value.ro5_1); tmp1_output.m4a(tmp0_desc, 1, value.so5_1); if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.to5_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.to5_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.uo5_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.uo5_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_35).l45 = function (encoder, value) { return this.epb(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().dpb_1); } $this.ro5_1 = isVerified; $this.so5_1 = personUid; if (0 === (seen1 & 4)) $this.to5_1 = null; else $this.to5_1 = firstName; if (0 === (seen1 & 8)) $this.uo5_1 = null; else $this.uo5_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.ro5_1 = isVerified; this.so5_1 = personUid; this.to5_1 = firstName; this.uo5_1 = lastName; } protoOf(PasskeyVerifyResult).toString = function () { return 'PasskeyVerifyResult(isVerified=' + this.ro5_1 + ', personUid=' + this.so5_1.toString() + ', firstName=' + this.to5_1 + ', lastName=' + this.uo5_1 + ')'; }; protoOf(PasskeyVerifyResult).hashCode = function () { var result = getBooleanHashCode(this.ro5_1); result = imul(result, 31) + this.so5_1.hashCode() | 0; result = imul(result, 31) + (this.to5_1 == null ? 0 : getStringHashCode(this.to5_1)) | 0; result = imul(result, 31) + (this.uo5_1 == null ? 0 : getStringHashCode(this.uo5_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.ro5_1 === tmp0_other_with_cast.ro5_1)) return false; if (!this.so5_1.equals(tmp0_other_with_cast.so5_1)) return false; if (!(this.to5_1 == tmp0_other_with_cast.to5_1)) return false; if (!(this.uo5_1 == tmp0_other_with_cast.uo5_1)) return false; return true; }; function SavePersonPasskeyUseCase(db, repo, json) { this.mo2_1 = db; this.no2_1 = repo; this.oo2_1 = json; } protoOf(SavePersonPasskeyUseCase).po2 = function (passkeyResult, person, $completion) { var tmp0_elvis_lhs = this.no2_1; var effectiveDb = tmp0_elvis_lhs == null ? this.mo2_1 : tmp0_elvis_lhs; var clientDataJSONBase64 = passkeyResult.npb_1.hpb_1; var decodedBytes = Default_getInstance_0().kk(clientDataJSONBase64); // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_0 = this.oo2_1; var string = decodeToString(decodedBytes); // Inline function 'kotlinx.serialization.serializer' call var this_1 = this_0.n46(); // 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.m46(tmp$ret$1, string); var personPasskey = new PersonPasskey(VOID, person.z96_1, passkeyResult.npb_1.fpb_1, passkeyResult.npb_1.hpb_1, clientDataJson.tpb_1, passkeyResult.lpb_1, clientDataJson.spb_1, passkeyResult.npb_1.ipb_1); return effectiveDb.v7g().nh0(personPasskey, $completion); }; function DecodeUserHandleUseCase() { } function Companion_42() { } var Companion_instance_91; function Companion_getInstance_59() { return Companion_instance_91; } function $serializer_36() { $serializer_instance_36 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.AuthenticationExtensionsClientOutputsJSON', this, 1); tmp0_serialDesc.n4g('prf', true); this.vpb_1 = tmp0_serialDesc; } protoOf($serializer_36).k45 = function () { return this.vpb_1; }; protoOf($serializer_36).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.vpb_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.q49(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.q49(tmp0_desc, 0, $serializer_getInstance_49(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return AuthenticationExtensionsClientOutputsJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_36).wpb = function (encoder, value) { var tmp0_desc = this.vpb_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.xpb_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, $serializer_getInstance_49(), value.xpb_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_36).l45 = function (encoder, value) { return this.wpb(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().vpb_1); } if (0 === (seen1 & 1)) $this.xpb_1 = null; else $this.xpb_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.xpb_1 = prf; } protoOf(AuthenticationExtensionsClientOutputsJSON).toString = function () { return 'AuthenticationExtensionsClientOutputsJSON(prf=' + this.xpb_1 + ')'; }; protoOf(AuthenticationExtensionsClientOutputsJSON).hashCode = function () { return this.xpb_1 == null ? 0 : this.xpb_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.xpb_1, tmp0_other_with_cast.xpb_1)) return false; return true; }; function Companion_43() { } var Companion_instance_92; function Companion_getInstance_60() { return Companion_instance_92; } function $serializer_37() { $serializer_instance_37 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.AuthenticationExtensionsPRFOutputsJSON', this, 1); tmp0_serialDesc.n4g('enabled', true); this.ypb_1 = tmp0_serialDesc; } protoOf($serializer_37).k45 = function () { return this.ypb_1; }; protoOf($serializer_37).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.ypb_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.q49(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.q49(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return AuthenticationExtensionsPRFOutputsJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_37).zpb = function (encoder, value) { var tmp0_desc = this.ypb_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.apc_1 === false)) { tmp1_output.u4a(tmp0_desc, 0, BooleanSerializer_getInstance(), value.apc_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_37).l45 = function (encoder, value) { return this.zpb(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().ypb_1); } if (0 === (seen1 & 1)) $this.apc_1 = false; else $this.apc_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.apc_1 = enabled; } protoOf(AuthenticationExtensionsPRFOutputsJSON).toString = function () { return 'AuthenticationExtensionsPRFOutputsJSON(enabled=' + this.apc_1 + ')'; }; protoOf(AuthenticationExtensionsPRFOutputsJSON).hashCode = function () { return this.apc_1 == null ? 0 : getBooleanHashCode(this.apc_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.apc_1 == tmp0_other_with_cast.apc_1)) return false; return true; }; function Companion_44() { } protoOf(Companion_44).h4s = function () { return $serializer_getInstance_50(); }; var Companion_instance_93; function Companion_getInstance_61() { return Companion_instance_93; } function $serializer_38() { $serializer_instance_38 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.AuthenticationResponseJSON', this, 6); tmp0_serialDesc.n4g('id', false); tmp0_serialDesc.n4g('rawId', false); tmp0_serialDesc.n4g('response', false); tmp0_serialDesc.n4g('authenticatorAttachment', true); tmp0_serialDesc.n4g('clientExtensionResults', false); tmp0_serialDesc.n4g('type', false); this.bpc_1 = tmp0_serialDesc; } protoOf($serializer_38).k45 = function () { return this.bpc_1; }; protoOf($serializer_38).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.bpc_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.c49(tmp0_desc); if (tmp10_input.r49()) { tmp4_local0 = tmp10_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.o49(tmp0_desc, 2, $serializer_getInstance_51(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.o49(tmp0_desc, 4, $serializer_getInstance_48(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.m49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.o49(tmp0_desc, 2, $serializer_getInstance_51(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.o49(tmp0_desc, 4, $serializer_getInstance_48(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.m49(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.d49(tmp0_desc); return AuthenticationResponseJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_38).cpc = function (encoder, value) { var tmp0_desc = this.bpc_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.lpb_1); tmp1_output.q4a(tmp0_desc, 1, value.mpb_1); tmp1_output.s4a(tmp0_desc, 2, $serializer_getInstance_51(), value.npb_1); if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.opb_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.opb_1); } tmp1_output.s4a(tmp0_desc, 4, $serializer_getInstance_48(), value.ppb_1); tmp1_output.q4a(tmp0_desc, 5, value.qpb_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_38).l45 = function (encoder, value) { return this.cpc(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().bpc_1); } $this.lpb_1 = id; $this.mpb_1 = rawId; $this.npb_1 = response; if (0 === (seen1 & 8)) $this.opb_1 = null; else $this.opb_1 = authenticatorAttachment; $this.ppb_1 = clientExtensionResults; $this.qpb_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.lpb_1 + ', rawId=' + this.mpb_1 + ', response=' + this.npb_1 + ', authenticatorAttachment=' + this.opb_1 + ', clientExtensionResults=' + this.ppb_1 + ', type=' + this.qpb_1 + ')'; }; protoOf(AuthenticationResponseJSON).hashCode = function () { var result = getStringHashCode(this.lpb_1); result = imul(result, 31) + getStringHashCode(this.mpb_1) | 0; result = imul(result, 31) + this.npb_1.hashCode() | 0; result = imul(result, 31) + (this.opb_1 == null ? 0 : getStringHashCode(this.opb_1)) | 0; result = imul(result, 31) + this.ppb_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.qpb_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.lpb_1 === tmp0_other_with_cast.lpb_1)) return false; if (!(this.mpb_1 === tmp0_other_with_cast.mpb_1)) return false; if (!this.npb_1.equals(tmp0_other_with_cast.npb_1)) return false; if (!(this.opb_1 == tmp0_other_with_cast.opb_1)) return false; if (!this.ppb_1.equals(tmp0_other_with_cast.ppb_1)) return false; if (!(this.qpb_1 === tmp0_other_with_cast.qpb_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.n4g('attestationObject', true); tmp0_serialDesc.n4g('authenticatorData', false); tmp0_serialDesc.n4g('clientDataJSON', false); tmp0_serialDesc.n4g('publicKey', true); tmp0_serialDesc.n4g('userHandle', true); tmp0_serialDesc.n4g('signature', true); this.dpc_1 = tmp0_serialDesc; } protoOf($serializer_39).k45 = function () { return this.dpc_1; }; protoOf($serializer_39).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.dpc_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.c49(tmp0_desc); if (tmp10_input.r49()) { tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.d49(tmp0_desc); return AuthenticatorAssertionResponseJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_39).epc = function (encoder, value) { var tmp0_desc = this.dpc_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.fpb_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.fpb_1); } tmp1_output.q4a(tmp0_desc, 1, value.gpb_1); tmp1_output.q4a(tmp0_desc, 2, value.hpb_1); if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.ipb_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ipb_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.jpb_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, StringSerializer_getInstance(), value.jpb_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.kpb_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, StringSerializer_getInstance(), value.kpb_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_39).l45 = function (encoder, value) { return this.epc(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().dpc_1); } if (0 === (seen1 & 1)) $this.fpb_1 = null; else $this.fpb_1 = attestationObject; $this.gpb_1 = authenticatorData; $this.hpb_1 = clientDataJSON; if (0 === (seen1 & 8)) $this.ipb_1 = null; else $this.ipb_1 = publicKey; if (0 === (seen1 & 16)) $this.jpb_1 = null; else $this.jpb_1 = userHandle; if (0 === (seen1 & 32)) $this.kpb_1 = null; else $this.kpb_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.fpb_1 + ', authenticatorData=' + this.gpb_1 + ', clientDataJSON=' + this.hpb_1 + ', publicKey=' + this.ipb_1 + ', userHandle=' + this.jpb_1 + ', signature=' + this.kpb_1 + ')'; }; protoOf(AuthenticatorAssertionResponseJSON).hashCode = function () { var result = this.fpb_1 == null ? 0 : getStringHashCode(this.fpb_1); result = imul(result, 31) + getStringHashCode(this.gpb_1) | 0; result = imul(result, 31) + getStringHashCode(this.hpb_1) | 0; result = imul(result, 31) + (this.ipb_1 == null ? 0 : getStringHashCode(this.ipb_1)) | 0; result = imul(result, 31) + (this.jpb_1 == null ? 0 : getStringHashCode(this.jpb_1)) | 0; result = imul(result, 31) + (this.kpb_1 == null ? 0 : getStringHashCode(this.kpb_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.fpb_1 == tmp0_other_with_cast.fpb_1)) return false; if (!(this.gpb_1 === tmp0_other_with_cast.gpb_1)) return false; if (!(this.hpb_1 === tmp0_other_with_cast.hpb_1)) return false; if (!(this.ipb_1 == tmp0_other_with_cast.ipb_1)) return false; if (!(this.jpb_1 == tmp0_other_with_cast.jpb_1)) return false; if (!(this.kpb_1 == tmp0_other_with_cast.kpb_1)) return false; return true; }; function Companion_45() { } var Companion_instance_94; function Companion_getInstance_62() { return Companion_instance_94; } function $serializer_40() { $serializer_instance_40 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.passkey.model.ClientDataJSON', this, 4); tmp0_serialDesc.n4g('type', false); tmp0_serialDesc.n4g('challenge', false); tmp0_serialDesc.n4g('origin', false); tmp0_serialDesc.n4g('crossOrigin', false); this.fpc_1 = tmp0_serialDesc; } protoOf($serializer_40).k45 = function () { return this.fpc_1; }; protoOf($serializer_40).e4h = 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(), BooleanSerializer_getInstance()]; }; protoOf($serializer_40).m45 = function (decoder) { var tmp0_desc = this.fpc_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 = false; var tmp8_input = decoder.c49(tmp0_desc); if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.e49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.e49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return ClientDataJSON_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_40).gpc = function (encoder, value) { var tmp0_desc = this.fpc_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.rpb_1); tmp1_output.q4a(tmp0_desc, 1, value.spb_1); tmp1_output.q4a(tmp0_desc, 2, value.tpb_1); tmp1_output.i4a(tmp0_desc, 3, value.upb_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_40).l45 = function (encoder, value) { return this.gpc(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 (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_52().fpc_1); } $this.rpb_1 = type; $this.spb_1 = challenge; $this.tpb_1 = origin; $this.upb_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) { this.rpb_1 = type; this.spb_1 = challenge; this.tpb_1 = origin; this.upb_1 = crossOrigin; } protoOf(ClientDataJSON).toString = function () { return 'ClientDataJSON(type=' + this.rpb_1 + ', challenge=' + this.spb_1 + ', origin=' + this.tpb_1 + ', crossOrigin=' + this.upb_1 + ')'; }; protoOf(ClientDataJSON).hashCode = function () { var result = getStringHashCode(this.rpb_1); result = imul(result, 31) + getStringHashCode(this.spb_1) | 0; result = imul(result, 31) + getStringHashCode(this.tpb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.upb_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.rpb_1 === tmp0_other_with_cast.rpb_1)) return false; if (!(this.spb_1 === tmp0_other_with_cast.spb_1)) return false; if (!(this.tpb_1 === tmp0_other_with_cast.tpb_1)) return false; if (!(this.upb_1 === tmp0_other_with_cast.upb_1)) return false; return true; }; function SavePasswordUseCase() { } function CreateCredentialUsernameUseCase(learningSpace) { this.ipc_1 = learningSpace; } function ParseCredentialUsernameUseCase() { } protoOf(ParseCredentialUsernameUseCase).gp9 = 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.jpc_1 = repoOrDb; } protoOf(DeletePermanentlyUseCase).kpc = function (items, $completion) { var timeNow = systemTimeInMillis(); var tmp = this.jpc_1.g7g(); // 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.zeg_1; destination.i1(tmp$ret$0); } var tmp_0 = destination; return tmp.yeg(tmp_0, 3, timeNow, $completion); }; function RestoreDeletedItemUseCase$invoke$slambda($itemsByType, this$0, $timeNow, $items, resultContinuation) { this.tpc_1 = $itemsByType; this.upc_1 = this$0; this.vpc_1 = $timeNow; this.wpc_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(RestoreDeletedItemUseCase$invoke$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; var tmp_0 = this; tmp_0.ypc_1 = this.tpc_1; var tmp_1 = this; tmp_1.zpc_1 = this.ypc_1.q2().w(); this.hd_1 = 1; continue $sm; case 1: if (!this.zpc_1.f()) { this.hd_1 = 4; continue $sm; } this.apd_1 = this.zpc_1.e(); var tmp_2 = this; tmp_2.bpd_1 = this.apd_1; this.cpd_1 = this.bpd_1.s2(); if (this.cpd_1 === 7) { this.hd_1 = 2; var tmp_3 = this.upc_1.dpd_1.r7e(); var this_0 = this.bpd_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.feh_1); } suspendResult = tmp_3.lbe(destination, false, this.vpc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: this.hd_1 = 1; continue $sm; case 4: this.hd_1 = 5; var tmp_4 = this.upc_1.dpd_1.g7g(); var this_1 = this.wpc_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.zeg_1); } suspendResult = tmp_4.yeg(destination_0, 2, this.vpc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).ony = function (it, completion) { var i = new RestoreDeletedItemUseCase$invoke$slambda(this.tpc_1, this.upc_1, this.vpc_1, this.wpc_1, completion); i.xpc_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.nny(it, $completion); }; l.$arity = 1; return l; } function RestoreDeletedItemUseCase(repoOrDb) { this.dpd_1 = repoOrDb; } protoOf(RestoreDeletedItemUseCase).kpc = 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.eeh_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.dpd_1, VOID, RestoreDeletedItemUseCase$invoke$slambda_0(itemsByType, this, timeNow, items, null), $completion); }; function toEpubTocItem(_this__u8e3s4, $this, indentLevel, parentUids) { var uid = $this.fpd_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp8_uid = $this.fpd_1.atomicfu$incrementAndGet(); var tmp0_safe_receiver = _this__u8e3s4.xoa_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.noa_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.yoa_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.nob_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.xoa_1; var tmp10_href = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.ooa_1; var tmp5_safe_receiver = _this__u8e3s4.zoa_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.mob_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.fpd_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp0_safe_receiver = firstOrNull(_this__u8e3s4.moc_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.eoc_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zoc_1; var tmp3_label = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp4_href = _this__u8e3s4.noc_1.tob_1; // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.poc_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.opd_1 = _this__u8e3s4; this.ppd_1 = opfPackage; this.qpd_1 = readItemText; } protoOf($invokeCOROUTINE$31).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.rpd_1 = this.ppd_1.dof(); if (!(this.rpd_1 == null) ? startsWith(this.rpd_1.yod_1, 'application/xhtml') : false) { this.hd_1 = 2; suspendResult = this.qpd_1(this.rpd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0; if (!(this.rpd_1 == null)) { tmp_0 = this.rpd_1.yod_1 === 'application/x-dtbncx+xml'; } else { tmp_0 = false; } if (tmp_0) { this.hd_1 = 1; suspendResult = this.qpd_1(this.rpd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.spd_1 = null; this.hd_1 = 3; continue $sm; } } case 1: var docStr = suspendResult; var this_0 = this.opd_1.epd_1; var this_1 = this_0.n46(); var this_2 = serializer(this_1, createKType(getKClass(NcxDocument), arrayOf([]), false)); var ncxDoc = this_0.m46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), docStr); var tmp_2 = this; var this_3 = ncxDoc.woc_1.ioc_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.opd_1, 0, emptySet()); var list = plus(listOf_0(it), it.wpd_1); addAll(destination, list); } tmp_2.spd_1 = destination; this.hd_1 = 3; continue $sm; case 2: var docStr_0 = suspendResult; var this_4 = this.opd_1.epd_1; var this_5 = this_4.n46(); var this_6 = serializer(this_5, createKType(getKClass(NavigationDocument), arrayOf([]), false)); var navDoc = this_4.m46(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), docStr_0); var tmp_3 = this; var this_7 = first_0(navDoc.iob_1.roa_1).dob_1.mob_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.opd_1, 0, emptySet()); var list_0 = plus(listOf_0(it_0), it_0.wpd_1); addAll(destination_0, list_0); } tmp_3.spd_1 = destination_0; this.hd_1 = 3; continue $sm; case 3: return this.spd_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function GetEpubTableOfContentsUseCase(xml) { this.epd_1 = xml; this.fpd_1 = atomic$int$1(0); } protoOf(GetEpubTableOfContentsUseCase).ape = function (opfPackage, readItemText, $completion) { var tmp = new $invokeCOROUTINE$31(this, opfPackage, readItemText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_46() { Companion_instance_95 = this; this.bpe_1 = Companion_getInstance_73().epe_1; } var Companion_instance_95; function Companion_getInstance_63() { if (Companion_instance_95 == null) new Companion_46(); return Companion_instance_95; } function FilterUsernameUseCase() { Companion_getInstance_63(); } protoOf(FilterUsernameUseCase).fpe = 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_63().bpe_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.gpe_1 = learningSpace; } protoOf(GetApiUrlUseCaseDirect).gp9 = function (path) { return requirePostfix(this.gpe_1.mnt_1, '/') + removePrefix(path, '/'); }; function VersionInfo(versionString, buildTime) { this.hpe_1 = versionString; this.ipe_1 = buildTime; } protoOf(VersionInfo).toString = function () { return 'VersionInfo(versionString=' + this.hpe_1 + ', buildTime=' + this.ipe_1.toString() + ')'; }; protoOf(VersionInfo).hashCode = function () { var result = getStringHashCode(this.hpe_1); result = imul(result, 31) + this.ipe_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.hpe_1 === tmp0_other_with_cast.hpe_1)) return false; if (!this.ipe_1.equals(tmp0_other_with_cast.ipe_1)) return false; return true; }; function GetVersionUseCase() { } function HideKeyboardUseCase() { } function GetHtmlContentDisplayEngineOptionsUseCase(optionsList) { this.lpe_1 = optionsList; } protoOf(GetHtmlContentDisplayEngineOptionsUseCase).jpe = function () { return this.lpe_1; }; function GetHtmlContentDisplayEngineUseCase(settings, getOptionsUseCase) { this.mpe_1 = settings; this.npe_1 = getOptionsUseCase; } protoOf(GetHtmlContentDisplayEngineUseCase).jpe = function () { // Inline function 'com.russhwolf.settings.get' call var this_0 = this.mpe_1; var key = 'com.ustadmobile.htmlcontentdisplayengine'; var settingInt = this_0.sm7(key, 0); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.npe_1.jpe().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.htmlcontentdisplayengine.GetHtmlContentDisplayEngineUseCase.invoke.' call if (element.ope_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.npe_1.jpe()) : tmp0_elvis_lhs; }; function Companion_47() { this.rpe_1 = 'com.ustadmobile.htmlcontentdisplayengine'; } var Companion_instance_96; function Companion_getInstance_64() { return Companion_instance_96; } function SetHtmlContentDisplayEngineUseCase(settings) { this.spe_1 = settings; } function ClazzInviteRedeemException(message, stringResource) { Exception_init_$Init$(message, this); captureStack(this, ClazzInviteRedeemException); this.tpe_1 = stringResource; } protoOf(ClazzInviteRedeemException).upe = function () { return this.tpe_1; }; function ClazzInviteRedeemUseCase$invoke$slambda($effectiveDb, $clazzInvite, $enrolmentUid, resultContinuation) { this.dpf_1 = $effectiveDb; this.epf_1 = $clazzInvite; this.fpf_1 = $enrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemUseCase$invoke$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.dpf_1.n7e().g94(this.epf_1.w9n_1, this.fpf_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.dpf_1.y7g(); suspendResult = tmp_0.f9n(1, this.epf_1.w9n_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).ony = function (it, completion) { var i = new ClazzInviteRedeemUseCase$invoke$slambda(this.dpf_1, this.epf_1, this.fpf_1, completion); i.gpf_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.nny(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$32(_this__u8e3s4, inviteCode, isAccepting, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ppf_1 = _this__u8e3s4; this.qpf_1 = inviteCode; this.rpf_1 = isAccepting; this.spf_1 = personUid; } protoOf($invokeCOROUTINE$32).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp_0 = this; var tmp0_elvis_lhs = this.ppf_1.zpf_1; tmp_0.tpf_1 = tmp0_elvis_lhs == null ? this.ppf_1.ypf_1 : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = this.tpf_1.y7g().d9n(this.qpf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.upf_1 = suspendResult; var tmp_1 = this; var tmp1_safe_receiver = this.upf_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h9o_1; var tmp_2; if (tmp2_elvis_lhs == null) { throw new ClazzInviteRedeemException('Invite not found', strings_getInstance().mno_1); } else { tmp_2 = tmp2_elvis_lhs; } tmp_1.vpf_1 = tmp_2; var tmp_3 = this.vpf_1.d9o_1; if (tmp_3 === 3) { throw new ClazzInviteRedeemException('Invite code is revoked', strings_getInstance().rnr_1); } var tmp_4 = this.vpf_1.d9o_1; if (!(tmp_4 === 0)) { throw new ClazzInviteRedeemException('Invite already used', strings_getInstance().gnr_1); } if (this.vpf_1.e9o_1.c7(systemTimeInMillis()) < 0) { throw new ClazzInviteRedeemException('Invite code is expired', strings_getInstance().qnr_1); } if (this.rpf_1) { this.hd_1 = 3; var tmp_5 = ClazzEnrolment_init_$Create$(this.vpf_1.z9n_1, this.spf_1, this.vpf_1.y9n_1.mb()); var tmp3_elvis_lhs = this.upf_1.i9o_1; suspendResult = this.ppf_1.xpf_1.eoz(tmp_5, tmp3_elvis_lhs == null ? 'UTC' : tmp3_elvis_lhs, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; var tmp_6 = this.tpf_1.y7g(); suspendResult = tmp_6.f9n(2, this.vpf_1.w9n_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: return new ClazzRedeemResult(this.ppf_1.apg_1.coj(strings_getInstance().onr_1)); case 3: this.wpf_1 = suspendResult; this.hd_1 = 4; suspendResult = withDoorTransactionAsync(this.tpf_1, VOID, ClazzInviteRedeemUseCase$invoke$slambda_0(this.tpf_1, this.vpf_1, this.wpf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return new ClazzRedeemResult(this.ppf_1.apg_1.coj(strings_getInstance().mnr_1)); case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzInviteRedeemUseCase(enrolIntoCourseUseCase, db, repo, systemImpl) { this.xpf_1 = enrolIntoCourseUseCase; this.ypf_1 = db; this.zpf_1 = repo; this.apg_1 = systemImpl; } protoOf(ClazzInviteRedeemUseCase).bpg = function (inviteCode, isAccepting, personUid, $completion) { var tmp = new $invokeCOROUTINE$32(this, inviteCode, isAccepting, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function ClazzRedeemResult(message) { this.cpg_1 = message; } protoOf(ClazzRedeemResult).toString = function () { return 'ClazzRedeemResult(message=' + this.cpg_1 + ')'; }; protoOf(ClazzRedeemResult).hashCode = function () { return getStringHashCode(this.cpg_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.cpg_1 === tmp0_other_with_cast.cpg_1)) return false; return true; }; function $invokeCOROUTINE$33(_this__u8e3s4, viewUri, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lpg_1 = _this__u8e3s4; this.mpg_1 = viewUri; this.npg_1 = personUid; } protoOf($invokeCOROUTINE$33).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.opg_1 = indexOf(this.mpg_1, _Char___init__impl__6a9atx(63)); var tmp_0 = this; var tmp_1; if (this.opg_1 > 0) { var tmp_2 = UMFileUtil_getInstance(); var this_0 = this.mpg_1; var startIndex = this.opg_1; tmp_1 = tmp_2.parseURLQueryString(this_0.substring(startIndex)); } else { tmp_1 = emptyMap(); } tmp_0.ppg_1 = tmp_1; this.hd_1 = 1; suspendResult = this.lpg_1.qpg_1.bpg(first_1(this.ppg_1.p2()), true, this.npg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function EnrollToCourseFromInviteCodeUseCase(clazzInviteRedeemUseCase) { this.qpg_1 = clazzInviteRedeemUseCase; } protoOf(EnrollToCourseFromInviteCodeUseCase).rpg = function (viewUri, personUid, $completion) { var tmp = new $invokeCOROUTINE$33(this, viewUri, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function isValidUserName($this, username) { return startsWith(username, '@'); } function ParseInviteUseCase(phoneNumValidatorUseCase, validateEmailUseCase) { this.spg_1 = phoneNumValidatorUseCase; this.tpg_1 = validateEmailUseCase; } protoOf(ParseInviteUseCase).gp9 = 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.tpg_1.gp9(item_0) == null)) { tmp = new InviteViaContactChip(item_0, true, 1); } else if (this.spg_1.upg(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_97 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.vpg_1 = [new ArrayListSerializer(StringSerializer_getInstance()), null, null, null]; } protoOf(Companion_48).h4s = function () { return $serializer_getInstance_53(); }; var Companion_instance_97; function Companion_getInstance_65() { if (Companion_instance_97 == null) new Companion_48(); return Companion_instance_97; } function $serializer_41() { $serializer_instance_41 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.invite.SendClazzInvitesUseCase.SendClazzInvitesRequest', this, 4); tmp0_serialDesc.n4g('contacts', false); tmp0_serialDesc.n4g('clazzUid', false); tmp0_serialDesc.n4g('role', false); tmp0_serialDesc.n4g('personUid', false); this.wpg_1 = tmp0_serialDesc; } protoOf($serializer_41).k45 = function () { return this.wpg_1; }; protoOf($serializer_41).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_65().vpg_1[0], LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_41).m45 = function (decoder) { var tmp0_desc = this.wpg_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.c49(tmp0_desc); var tmp9_cached = Companion_getInstance_65().vpg_1; if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.i49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.i49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.o49(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.i49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.i49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return SendClazzInvitesRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_41).xpg = function (encoder, value) { var tmp0_desc = this.wpg_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_65().vpg_1; tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.ypg_1); tmp1_output.m4a(tmp0_desc, 1, value.zpg_1); tmp1_output.m4a(tmp0_desc, 2, value.aph_1); tmp1_output.m4a(tmp0_desc, 3, value.bph_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_41).l45 = function (encoder, value) { return this.xpg(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().wpg_1); } $this.ypg_1 = contacts; $this.zpg_1 = clazzUid; $this.aph_1 = role; $this.bph_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_65(); this.ypg_1 = contacts; this.zpg_1 = clazzUid; this.aph_1 = role; this.bph_1 = personUid; } protoOf(SendClazzInvitesRequest).toString = function () { return 'SendClazzInvitesRequest(contacts=' + this.ypg_1 + ', clazzUid=' + this.zpg_1.toString() + ', role=' + this.aph_1.toString() + ', personUid=' + this.bph_1.toString() + ')'; }; protoOf(SendClazzInvitesRequest).hashCode = function () { var result = hashCode(this.ypg_1); result = imul(result, 31) + this.zpg_1.hashCode() | 0; result = imul(result, 31) + this.aph_1.hashCode() | 0; result = imul(result, 31) + this.bph_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.ypg_1, tmp0_other_with_cast.ypg_1)) return false; if (!this.zpg_1.equals(tmp0_other_with_cast.zpg_1)) return false; if (!this.aph_1.equals(tmp0_other_with_cast.aph_1)) return false; if (!this.bph_1.equals(tmp0_other_with_cast.bph_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.lph_1 = _this__u8e3s4; this.mph_1 = request; } protoOf($invokeCOROUTINE$34).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; var tmp_0 = this; tmp_0.nph_1 = this.lph_1.uph_1; var tmp_1 = this; tmp_1.oph_1 = this.lph_1.vph_1.mnt_1 + 'api/invite/sendclazzinvites'; var tmp_2 = this; tmp_2.pph_1 = this.nph_1; var tmp_3 = this; tmp_3.qph_1 = this.pph_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.oph_1); contentType(this_0, Application_getInstance().p2s_1); setBodyJson(this_0, this.lph_1.wph_1, Companion_getInstance_65().h4s(), this.mph_1); tmp_4.rph_1 = this_0; this.rph_1.q39_1 = Companion_getInstance().g2y_1; var tmp_5 = this; tmp_5.sph_1 = this.qph_1; var tmp_6 = this; tmp_6.tph_1 = this.rph_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.tph_1, this.sph_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_7 = Napier_getInstance(); tmp_7.e5f(VOID, VOID, SendClazzInvitesUseCaseSendToServerImpl$invoke$lambda); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_8 = this.kd_1; if (tmp_8 instanceof Error) { var e = this.kd_1; var tmp_9 = Napier_getInstance(); tmp_9.e5f(VOID, VOID, SendClazzInvitesUseCaseSendToServerImpl$invoke$lambda_0(e)); throw e; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function SendClazzInvitesUseCaseSendToServerImpl(httpClient, learningSpace, json) { this.uph_1 = httpClient; this.vph_1 = learningSpace; this.wph_1 = json; } protoOf(SendClazzInvitesUseCaseSendToServerImpl).cph = function (request, $completion) { var tmp = new $invokeCOROUTINE$34(this, request, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SetLangResult(waitForRestart) { this.xph_1 = waitForRestart; } protoOf(SetLangResult).toString = function () { return 'SetLangResult(waitForRestart=' + this.xph_1 + ')'; }; protoOf(SetLangResult).hashCode = function () { return getBooleanHashCode(this.xph_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.xph_1 === tmp0_other_with_cast.xph_1)) return false; return true; }; function SetLanguageUseCase() { } function LaunchOpenLicensesUseCase() { } function GoToLearningSpaceUseCase() { } function GetLocalAccountsSupportedUseCase(localAccountsSupported) { this.bpi_1 = localAccountsSupported; } protoOf(GetLocalAccountsSupportedUseCase).jpe = function () { return this.bpi_1; }; function MakeLinkUseCase(learningSpace) { this.cpi_1 = learningSpace; } protoOf(MakeLinkUseCase).dpi = function (destName, args) { var tmp = UMFileUtil_getInstance(); Companion_getInstance_96(); return appendQueryArgs_0(tmp.epi([this.cpi_1.mnt_1, '/umapp/#/']) + destName, toQueryString(args)); }; function GetDefaultDestinationUseCase(systemUrlConfig, learningSpace) { this.fpi_1 = systemUrlConfig; this.gpi_1 = learningSpace; } protoOf(GetDefaultDestinationUseCase).jpe = function () { var tmp; if (this.gpi_1.mnt_1 === this.fpi_1.io2_1 ? true : this.gpi_1.ont()) { Companion_getInstance_168(); tmp = 'ContentEntryListHome'; } else { Companion_getInstance_139(); tmp = 'CourseListHome'; } return tmp; }; function OnClickLinkUseCase_init_$Init$(navController, accountManager, openExternalLinkUseCase, apiUrlConfig, $this) { OnClickLinkUseCase.call($this, navController, accountManager, openExternalLinkUseCase, apiUrlConfig.lo2_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.hpi_1 = navController; this.ipi_1 = accountManager; this.jpi_1 = openExternalLinkUseCase; this.kpi_1 = userCanSelectServer; } protoOf(OnClickLinkUseCase).lpi = function (link, target) { navigateToLink(this.hpi_1, link, this.ipi_1, this.jpi_1, VOID, VOID, this.kpi_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).rmg = 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_98; function Companion_getInstance_66() { return Companion_instance_98; } 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.ifv_1 = tmp0_elvis_lhs == null ? new Long(0, 0) : tmp0_elvis_lhs; return Unit_instance; }; } function $invokeCOROUTINE$35(_this__u8e3s4, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.upi_1 = _this__u8e3s4; this.vpi_1 = existingAllocations; this.wpi_1 = groupUid; this.xpi_1 = clazzUid; this.ypi_1 = assignmentUid; this.zpi_1 = numReviewsPerSubmission; this.apj_1 = allocateRemaining; this.bpj_1 = resetAllocations; } protoOf($invokeCOROUTINE$35).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 8; this.hd_1 = 1; suspendResult = this.upi_1.vpj_1.k7f().g7t(this.xpi_1, this.wpi_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cpj_1 = suspendResult; var tmp_0 = this; tmp_0.dpj_1 = this.cpj_1; var tmp_1 = this; tmp_1.epj_1 = this.dpj_1; var tmp_2 = this; tmp_2.fpj_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.dpj_1, 10)); this.gpj_1 = this.epj_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.gpj_1.f()) { this.hd_1 = 7; continue $sm; } this.hpj_1 = this.gpj_1.e(); var tmp_3 = this; tmp_3.ipj_1 = this.hpj_1; var tmp_4 = this; tmp_4.jpj_1 = this.upi_1; var tmp_5 = this; var this_0 = this.vpi_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.jfv_1.equals(this.ipj_1)) { destination.i1(element); } } tmp_5.kpj_1 = this.upi_1.xpj(destination, this.zpi_1); var tmp_6 = this; tmp_6.lpj_1 = this.zpi_1; if (this.kpj_1.u() >= this.lpj_1) { this.mpj_1 = this.kpj_1; this.hd_1 = 6; continue $sm; } else { var tmp_7 = this; tmp_7.npj_1 = until(0, this.lpj_1 - this.kpj_1.u() | 0); var tmp_8 = this; tmp_8.opj_1 = this.npj_1; var tmp_9 = this; tmp_9.ppj_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.npj_1, 10)); this.qpj_1 = this.opj_1.w(); this.hd_1 = 3; continue $sm; } case 3: if (!this.qpj_1.f()) { this.hd_1 = 5; continue $sm; } this.rpj_1 = this.qpj_1.e(); var tmp_10 = this; tmp_10.spj_1 = this.rpj_1; var tmp_11 = this; tmp_11.tpj_1 = new PeerReviewerAllocation(); var tmp_12 = this; tmp_12.upj_1 = this.tpj_1; this.hd_1 = 4; var tmp_13 = get_doorPrimaryKeyManager(this.upi_1.vpj_1); suspendResult = tmp_13.i63(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var ARGUMENT = suspendResult; this.upj_1.hfv_1 = ARGUMENT; this.upj_1.jfv_1 = this.ipj_1; this.upj_1.kfv_1 = this.ypi_1; var ARGUMENT_0 = this.tpj_1; this.ppj_1.i1(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 5: var ARGUMENT_1 = this.ppj_1; this.mpj_1 = plus(this.kpj_1, ARGUMENT_1); this.hd_1 = 6; continue $sm; case 6: var existingAllocationsForSubmitter = this.mpj_1; var ARGUMENT_2 = to(this.ipj_1, existingAllocationsForSubmitter); this.fpj_1.i1(ARGUMENT_2); this.hd_1 = 2; continue $sm; case 7: var ARGUMENT_3 = this.fpj_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.bpj_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).kkq(VOID, new Long(0, 0))); } while (inductionVariable <= last); } if (this.apj_1) { var this_1 = this.cpj_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.ifv_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.zpi_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.ifv_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.jfv_1.equals(allocation.jfv_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.ifv_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.jfv_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 8) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function UpdatePeerReviewAllocationUseCase(db, systemImpl) { this.vpj_1 = db; this.wpj_1 = systemImpl; } protoOf(UpdatePeerReviewAllocationUseCase).xpj = function (_this__u8e3s4, maxSize) { return _this__u8e3s4.u() <= maxSize ? _this__u8e3s4 : _this__u8e3s4.z(0, maxSize); }; protoOf(UpdatePeerReviewAllocationUseCase).ypj = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) { var tmp = new $invokeCOROUTINE$35(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UpdatePeerReviewAllocationUseCase).zpj = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion, $super) { resetAllocations = resetAllocations === VOID ? false : resetAllocations; return $super === VOID ? this.ypj(existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) : $super.ypj.call(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); }; function AddNewPersonUseCase$invoke$slambda($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, $relationship, resultContinuation) { this.ipk_1 = $effectiveDb; this.jpk_1 = $person; this.kpk_1 = $systemPermissions; this.lpk_1 = $createPersonParentApprovalIfMinor; this.mpk_1 = $addedByPersonUid; this.npk_1 = $relationship; CoroutineImpl.call(this, resultContinuation); } protoOf(AddNewPersonUseCase$invoke$slambda).yoj = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddNewPersonUseCase$invoke$slambda).he = function (p1, $completion) { return this.yoj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddNewPersonUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; suspendResult = this.ipk_1.h7e().insertAsync(this.jpk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ppk_1 = suspendResult; this.qpk_1 = this.jpk_1.z96_1.equals(new Long(0, 0)) ? this.ppk_1 : this.jpk_1.z96_1; this.hd_1 = 2; suspendResult = this.ipk_1.j7g().wi0(new SystemPermission(VOID, this.qpk_1, VOID, this.kpk_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: if (isDateOfBirthAMinor(Companion_getInstance_6().bmh(this.jpk_1.i97_1)) ? this.lpk_1 : false) { this.hd_1 = 3; var tmp_0 = this.ipk_1.r7f(); var tmp1_ppjApprovalTiemstamp = systemTimeInMillis(); suspendResult = tmp_0.ogt(new PersonParentJoin(VOID, VOID, VOID, VOID, VOID, this.mpk_1, this.qpk_1, this.npk_1, VOID, VOID, VOID, 1, tmp1_ppjApprovalTiemstamp), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: return this.qpk_1; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddNewPersonUseCase$invoke$slambda).ony = function (it, completion) { var i = new AddNewPersonUseCase$invoke$slambda(this.ipk_1, this.jpk_1, this.kpk_1, this.lpk_1, this.mpk_1, this.npk_1, completion); i.opk_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.yoj(it, $completion); }; l.$arity = 1; return l; } function AddNewPersonUseCase(db, repo) { this.rpk_1 = db; this.spk_1 = repo; } protoOf(AddNewPersonUseCase).tpk = function (person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) { var tmp0_elvis_lhs = this.spk_1; var effectiveDb = tmp0_elvis_lhs == null ? this.rpk_1 : tmp0_elvis_lhs; return withDoorTransactionAsync(effectiveDb, VOID, AddNewPersonUseCase$invoke$slambda_0(effectiveDb, person, systemPermissions, createPersonParentApprovalIfMinor, addedByPersonUid, relationship, null), $completion); }; protoOf(AddNewPersonUseCase).upk = 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_7(); 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.tpk(person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) : $super.tpk.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.vpk_1 = errors; } protoOf(BulkAddPersonException).toString = function () { var tmp0_elvis_lhs = this.message; return (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + ' ' + joinToString(this.vpk_1); }; function $serializer_42() { $serializer_instance_42 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsDataError', this, 3); tmp0_serialDesc.n4g('lineNum', false); tmp0_serialDesc.n4g('colName', false); tmp0_serialDesc.n4g('invalidValue', false); this.wpk_1 = tmp0_serialDesc; } protoOf($serializer_42).k45 = function () { return this.wpk_1; }; protoOf($serializer_42).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.wpk_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.c49(tmp0_desc); if (tmp7_input.r49()) { tmp4_local0 = tmp7_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.d49(tmp0_desc); return BulkAddPersonsDataError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_42).xpk = function (encoder, value) { var tmp0_desc = this.wpk_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.l4a(tmp0_desc, 0, value.ypk_1); tmp1_output.q4a(tmp0_desc, 1, value.zpk_1); tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.apl_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_42).l45 = function (encoder, value) { return this.xpk(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().wpk_1); } $this.ypk_1 = lineNum; $this.zpk_1 = colName; $this.apl_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.ypk_1 + ', colName=' + this.zpk_1 + ', invalidValue=' + this.apl_1 + ')'; }; protoOf(BulkAddPersonsDataError).hashCode = function () { var result = this.ypk_1; result = imul(result, 31) + getStringHashCode(this.zpk_1) | 0; result = imul(result, 31) + (this.apl_1 == null ? 0 : getStringHashCode(this.apl_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.ypk_1 === tmp0_other_with_cast.ypk_1)) return false; if (!(this.zpk_1 === tmp0_other_with_cast.zpk_1)) return false; if (!(this.apl_1 == tmp0_other_with_cast.apl_1)) return false; return true; }; function BulkAddPersonsFromLocalUriUseCase() { } function Companion_50() { } var Companion_instance_99; function Companion_getInstance_67() { return Companion_instance_99; } function $serializer_43() { $serializer_instance_43 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsUseCase.BulkAddUsersResult', this, 1); tmp0_serialDesc.n4g('numImported', false); this.cpl_1 = tmp0_serialDesc; } protoOf($serializer_43).k45 = function () { return this.cpl_1; }; protoOf($serializer_43).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance()]; }; protoOf($serializer_43).m45 = function (decoder) { var tmp0_desc = this.cpl_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_input = decoder.c49(tmp0_desc); if (tmp5_input.r49()) { tmp4_local0 = tmp5_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.d49(tmp0_desc); return BulkAddUsersResult_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_43).dpl = function (encoder, value) { var tmp0_desc = this.cpl_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.l4a(tmp0_desc, 0, value.epl_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_43).l45 = function (encoder, value) { return this.dpl(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().cpl_1); } $this.epl_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.epl_1 = numImported; } protoOf(BulkAddUsersResult).toString = function () { return 'BulkAddUsersResult(numImported=' + this.epl_1 + ')'; }; protoOf(BulkAddUsersResult).hashCode = function () { return this.epl_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.epl_1 === tmp0_other_with_cast.epl_1)) return false; return true; }; function IPhoneNumberUtil() { } function formatInternationalOrNull(_this__u8e3s4, number) { var tmp; try { tmp = _this__u8e3s4.gpl(_this__u8e3s4.fpl(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.hpl_1 = showPoweredBy; } protoOf(GetShowPoweredByUseCase).jpe = function () { return this.hpl_1; }; function Companion_51() { this.ipl_1 = 'en'; } var Companion_instance_100; function Companion_getInstance_68() { return Companion_instance_100; } function $invokeCOROUTINE$36(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rpl_1 = _this__u8e3s4; } protoOf($invokeCOROUTINE$36).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.spl_1 = plus(listOf_0(this.rpl_1.apm_1.zpl_1), this.rpl_1.apm_1.tpl_1); this.hd_1 = 1; suspendResult = this.rpl_1.bpm_1.q7f().ghs(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.spl_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function GetLocaleForSiteTermsUseCase(supportedLangConfig, repo) { this.apm_1 = supportedLangConfig; this.bpm_1 = repo; } protoOf(GetLocaleForSiteTermsUseCase).cpm = function ($completion) { var tmp = new $invokeCOROUTINE$36(this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickSendSmsUseCase() { } function Companion_52() { this.dpm_1 = 'dismissed-social-warning-'; } var Companion_instance_101; function Companion_getInstance_69() { return Companion_instance_101; } function DismissSocialWarningUseCase(settings) { this.epm_1 = settings; } protoOf(DismissSocialWarningUseCase).ip1 = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); // Inline function 'com.russhwolf.settings.set' call this.epm_1.vm7(key, true); }; function Companion_53() { this.fpm_1 = 'dismissed-social-warning-'; this.gpm_1 = 'https://beinternetawesome.withgoogle.com'; } var Companion_instance_102; function Companion_getInstance_70() { return Companion_instance_102; } function ShowSocialWarningUseCase(settings) { this.hpm_1 = settings; } protoOf(ShowSocialWarningUseCase).gp9 = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); return !this.hpm_1.wm7(key, false); }; function GetOfflineStorageAvailableSpace() { } function Companion_54() { this.jpm_1 = 'offlineStoragePath'; } var Companion_instance_103; function Companion_getInstance_71() { return Companion_instance_103; } function GetOfflineStorageOptionsUseCase() { } function GetOfflineStorageSettingUseCase(getOfflineStorageOptionsUseCase, settings) { this.kpm_1 = getOfflineStorageOptionsUseCase; this.lpm_1 = settings; } protoOf(GetOfflineStorageSettingUseCase).jpe = function () { var setting = this.lpm_1.um7('offlineStoragePath'); var options = this.kpm_1.jpe(); // 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.npm_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.mpm_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.npm_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.mpm_1.equals(tmp0_other_with_cast.mpm_1)) return false; if (!(this.npm_1 === tmp0_other_with_cast.npm_1)) return false; return true; }; function SetOfflineStorageSettingUseCase(settings) { this.opm_1 = settings; } function DeleteUrisUseCase() { } function IsTempFileCheckerUseCase() { } function ChunkIterator(chunkInfo) { this.ppm_1 = chunkInfo; this.qpm_1 = 0; } protoOf(ChunkIterator).f = function () { return this.qpm_1 < this.ppm_1.vpm_1; }; protoOf(ChunkIterator).e = function () { // Inline function 'kotlin.also' call var this_0 = this.ppm_1.v(this.qpm_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.upload.ChunkIterator.next.' call this.qpm_1 = this.qpm_1 + 1 | 0; return this_0; }; function Chunk(start, end, isLastChunk, size) { size = size === VOID ? end.mc(start).mb() : size; this.wpm_1 = start; this.xpm_1 = end; this.ypm_1 = isLastChunk; this.zpm_1 = size; } protoOf(Chunk).toString = function () { return 'Chunk(start=' + this.wpm_1.toString() + ', end=' + this.xpm_1.toString() + ', isLastChunk=' + this.ypm_1 + ', size=' + this.zpm_1 + ')'; }; protoOf(Chunk).hashCode = function () { var result = this.wpm_1.hashCode(); result = imul(result, 31) + this.xpm_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ypm_1) | 0; result = imul(result, 31) + this.zpm_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.wpm_1.equals(tmp0_other_with_cast.wpm_1)) return false; if (!this.xpm_1.equals(tmp0_other_with_cast.xpm_1)) return false; if (!(this.ypm_1 === tmp0_other_with_cast.ypm_1)) return false; if (!(this.zpm_1 === tmp0_other_with_cast.zpm_1)) return false; return true; }; function ChunkInfo(totalSize, chunkSize, fromByte) { fromByte = fromByte === VOID ? new Long(0, 0) : fromByte; this.rpm_1 = totalSize; this.spm_1 = chunkSize; this.tpm_1 = fromByte; this.upm_1 = this.rpm_1.mc(this.tpm_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.upm_1; var other = this.spm_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.upm_1; var other_0 = this.spm_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.vpm_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.spm_1)).lc(this.tpm_1); // Inline function 'kotlin.math.min' call // Inline function 'kotlin.Long.plus' call var other = this.spm_1; var a = start.lc(toLong(other)); var b = this.rpm_1; var end = a.c7(b) <= 0 ? a : b; var isLastChunk = index === (this.vpm_1 - 1 | 0); return new Chunk(start, end, isLastChunk); }; function UploadProgress(bytesTransferred, totalBytes) { this.apn_1 = bytesTransferred; this.bpn_1 = totalBytes; } protoOf(UploadProgress).toString = function () { return 'UploadProgress(bytesTransferred=' + this.apn_1.toString() + ', totalBytes=' + this.bpn_1.toString() + ')'; }; protoOf(UploadProgress).hashCode = function () { var result = this.apn_1.hashCode(); result = imul(result, 31) + this.bpn_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.apn_1.equals(tmp0_other_with_cast.apn_1)) return false; if (!this.bpn_1.equals(tmp0_other_with_cast.bpn_1)) return false; return true; }; function LastChunkResponse(body, statusCode, headers) { this.cpn_1 = body; this.dpn_1 = statusCode; this.epn_1 = headers; } protoOf(LastChunkResponse).toString = function () { return 'LastChunkResponse(body=' + this.cpn_1 + ', statusCode=' + this.dpn_1 + ', headers=' + this.epn_1 + ')'; }; protoOf(LastChunkResponse).hashCode = function () { var result = this.cpn_1 == null ? 0 : getStringHashCode(this.cpn_1); result = imul(result, 31) + this.dpn_1 | 0; result = imul(result, 31) + hashCode(this.epn_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.cpn_1 == tmp0_other_with_cast.cpn_1)) return false; if (!(this.dpn_1 === tmp0_other_with_cast.dpn_1)) return false; if (!equals(this.epn_1, tmp0_other_with_cast.epn_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.hpn_1 = 524288; } var Companion_instance_104; function Companion_getInstance_72() { return Companion_instance_104; } 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$40(_this__u8e3s4, name, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qpn_1 = _this__u8e3s4; this.rpn_1 = name; } protoOf($invokeCOROUTINE$40).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.id_1 = 3; var tmp_0 = this; tmp_0.spn_1 = this.qpn_1.ypn_1; var tmp_1 = this; tmp_1.tpn_1 = this.spn_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, removeSuffix(this.qpn_1.zpn_1.mnt_1, '/') + '/api/username/getsuggestion'); parameter(this_0, 'name', this.rpn_1); tmp_2.upn_1 = this_0; this.upn_1.q39_1 = Companion_getInstance().g2y_1; var tmp_3 = this; tmp_3.vpn_1 = this.tpn_1; var tmp_4 = this; tmp_4.wpn_1 = this.upn_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.wpn_1, this.vpn_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xpn_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.xpn_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var usernameSuggestion = suspendResult; var tmp_5 = Napier_getInstance(); tmp_5.e5f(VOID, VOID, GetUsernameSuggestionUseCase$invoke$lambda(usernameSuggestion)); return usernameSuggestion; case 3: this.id_1 = 4; var tmp_6 = this.kd_1; if (tmp_6 instanceof Error) { var e = this.kd_1; var tmp_7 = Napier_getInstance(); tmp_7.e5f(VOID, VOID, GetUsernameSuggestionUseCase$invoke$lambda_0(e)); throw e; } else { throw this.kd_1; } case 4: throw this.kd_1; case 5: this.id_1 = 4; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 4) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function GetUsernameSuggestionUseCase(httpClient, learningSpace) { this.ypn_1 = httpClient; this.zpn_1 = learningSpace; } protoOf(GetUsernameSuggestionUseCase).apo = function (name, $completion) { var tmp = new $invokeCOROUTINE$40(this, name, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function StartUserSessionUseCase(accountManager) { this.bpo_1 = accountManager; } protoOf(StartUserSessionUseCase).cpo = function (session, nextDest, navController, goOptions, dontSetCurrentSession) { // Inline function 'kotlin.takeIf' call var this_0 = this.bpo_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.enx(session); } navigateToViewUri(navController, appendSelectedAccount(nextDest, session.enu_1.z96_1, session.fnu_1), goOptions); }; protoOf(StartUserSessionUseCase).dpo = function (session, nextDest, navController, goOptions, dontSetCurrentSession, $super) { var tmp; if (nextDest === VOID) { Companion_getInstance_139(); 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.cpo(session, nextDest, navController, goOptions, dontSetCurrentSession); tmp_0 = Unit_instance; } else { tmp_0 = $super.cpo.call(this, session, nextDest, navController, goOptions, dontSetCurrentSession); } return tmp_0; }; function ValidateEmailUseCase() { } protoOf(ValidateEmailUseCase).gp9 = 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_105 = this; this.cpe_1 = 3; this.dpe_1 = 30; this.epe_1 = setOf([new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95))]); } protoOf(Companion_56).epo = function (character) { return isLetter(character) ? true : isDigit(character) ? true : this.epe_1.a1(new Char(character)) ? true : false; }; var Companion_instance_105; function Companion_getInstance_73() { if (Companion_instance_105 == null) new Companion_56(); return Companion_instance_105; } function ValidateUsernameUseCase_0() { Companion_getInstance_73(); } protoOf(ValidateUsernameUseCase_0).gp9 = function (username) { var tmp; if (username.length < 3) { tmp = Companion_getInstance_74().gpo_1; } else { if (username.length > 30) { tmp = Companion_getInstance_74().hpo_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_74().ipo_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_73().epo(element)) { tmp$ret$1 = false; break $l$block; } } tmp$ret$1 = true; } if (!tmp$ret$1) { tmp = Companion_getInstance_74().jpo_1; } else { tmp = Companion_getInstance_74().fpo_1; } } } } return tmp; }; function Companion_57() { Companion_instance_106 = this; this.fpo_1 = new ValidationResult(); this.gpo_1 = new ValidationResult(strings_getInstance().vn7_1); this.hpo_1 = new ValidationResult(strings_getInstance().wn7_1); this.ipo_1 = new ValidationResult(strings_getInstance().xn7_1); this.jpo_1 = new ValidationResult(strings_getInstance().yn7_1); } var Companion_instance_106; function Companion_getInstance_74() { if (Companion_instance_106 == null) new Companion_57(); return Companion_instance_106; } function ValidationResult(errorMessage) { Companion_getInstance_74(); errorMessage = errorMessage === VOID ? null : errorMessage; this.kpo_1 = errorMessage; } protoOf(ValidationResult).toString = function () { return 'ValidationResult(errorMessage=' + this.kpo_1 + ')'; }; protoOf(ValidationResult).hashCode = function () { return this.kpo_1 == null ? 0 : this.kpo_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.kpo_1, tmp0_other_with_cast.kpo_1)) return false; return true; }; function isAnonymous(_this__u8e3s4) { return ((_this__u8e3s4.xj3_1 == null ? _this__u8e3s4.vj3_1 == null : false) ? _this__u8e3s4.yj3_1 == null : false) ? _this__u8e3s4.wj3_1 == null : false; } function _get_isIdOnly__t0wrie(_this__u8e3s4, $this) { var tmp; var tmp_0; if (_this__u8e3s4.uip_1 == null ? _this__u8e3s4.vip_1 == null : false) { var tmp_1 = _this__u8e3s4.wip_1; tmp_0 = tmp_1 === 0; } else { tmp_0 = false; } if (tmp_0) { tmp = _this__u8e3s4.xip_1 == null; } else { tmp = false; } return tmp; } function StoreActivitiesUseCase$invoke$slambda($activityEntities, $timeNow, this$0, resultContinuation) { this.tpo_1 = $activityEntities; this.upo_1 = $timeNow; this.vpo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StoreActivitiesUseCase$invoke$slambda).cpq = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(StoreActivitiesUseCase$invoke$slambda).he = function (p1, $completion) { return this.cpq(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(StoreActivitiesUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 18; var tmp_0 = this; var this_0 = this.tpo_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.dpq_1.cl0(VOID, VOID, VOID, VOID, VOID, VOID, this.upo_1)); } tmp_0.xpo_1 = destination; this.hd_1 = 1; suspendResult = this.vpo_1.jpq_1.b7f().nip(this.xpo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var this_1 = this.xpo_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.vpo_1)) { destination_0.i1(element); } } tmp_1.ypo_1 = destination_0; this.zpo_1 = this.ypo_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.zpo_1.f()) { this.hd_1 = 5; continue $sm; } this.app_1 = this.zpo_1.e(); var tmp_2 = this; tmp_2.bpp_1 = this.app_1; this.hd_1 = 3; suspendResult = this.vpo_1.jpq_1.b7f().oip(this.bpp_1.sip_1, this.bpp_1.vip_1, this.upo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; suspendResult = this.vpo_1.jpq_1.b7f().pip(this.bpp_1.sip_1, this.bpp_1.uip_1, this.bpp_1.vip_1, this.bpp_1.wip_1, this.bpp_1.xip_1, this.upo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 2; continue $sm; case 5: var tmp_3 = this; var this_2 = this.tpo_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.epq_1; addAll(destination_1, list); } tmp_3.cpp_1 = destination_1; var tmp_4 = this; var this_3 = this.tpo_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.fpq_1; addAll(destination_2, list_0); } tmp_4.dpp_1 = destination_2; this.hd_1 = 6; var tmp_5 = this.vpo_1.ipq_1.q7g(); var this_4 = this.dpp_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.fiv_1); } suspendResult = tmp_5.civ(toList(distinct(destination_3)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.epp_1 = suspendResult; this.fpp_1 = toSet(this.epp_1); this.hd_1 = 7; var tmp_6 = this.vpo_1.jpq_1.q7g(); var this_5 = this.dpp_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.fpp_1.a1(element_2.fiv_1)) { destination_4.i1(element_2); } } suspendResult = tmp_6.biv(destination_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var tmp_7 = this; var this_6 = this.cpp_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.lix_1.equals(new Long(0, 0))) { first.i1(element_3); } else { second.i1(element_3); } } tmp_7.gpp_1 = new Pair(first, second); this.hpp_1 = this.gpp_1.y6(); this.ipp_1 = this.gpp_1.z6(); this.hd_1 = 8; suspendResult = this.vpo_1.jpq_1.p7g().aix(this.hpp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: var tmp_8 = this; tmp_8.jpp_1 = this.ipp_1; this.kpp_1 = this.jpp_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.kpp_1.f()) { this.hd_1 = 11; continue $sm; } this.lpp_1 = this.kpp_1.e(); var tmp_9 = this; tmp_9.mpp_1 = this.lpp_1; this.npp_1 = this.vpo_1.jpq_1.p7g(); this.opp_1 = this.mpp_1.gix_1; this.ppp_1 = this.mpp_1.lix_1; this.qpp_1 = this.mpp_1.jix_1; this.rpp_1 = this.mpp_1.kix_1; this.spp_1 = this.mpp_1.iix_1; this.tpp_1 = this.mpp_1.hix_1; this.hd_1 = 10; suspendResult = this.npp_1.bix(this.opp_1, this.tpp_1, this.qpp_1, this.spp_1, this.rpp_1, this.ppp_1, this.upo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: this.hd_1 = 9; continue $sm; case 11: var tmp_10 = this; tmp_10.upp_1 = this.cpp_1; this.vpp_1 = this.upp_1.w(); this.hd_1 = 12; continue $sm; case 12: if (!this.vpp_1.f()) { this.hd_1 = 14; continue $sm; } this.wpp_1 = this.vpp_1.e(); var tmp_11 = this; tmp_11.xpp_1 = this.wpp_1; this.hd_1 = 13; suspendResult = this.vpo_1.jpq_1.p7g().cix(this.xpp_1.gix_1, this.xpp_1.hix_1, this.xpp_1.kix_1, this.upo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 13: this.hd_1 = 12; continue $sm; case 14: this.hd_1 = 15; var tmp_12 = this.vpo_1.jpq_1.r7g(); var this_7 = this.tpo_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.gpq_1; addAll(destination_5, list_1); } suspendResult = tmp_12.xit(destination_5, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: var tmp_13 = this; var this_8 = this.tpo_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.hpq_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.ypp_1 = tmp_14; if (this.ypp_1 == null) { this.zpp_1 = null; this.hd_1 = 17; continue $sm; } else { var tmp_15 = this; tmp_15.apq_1 = this.ypp_1; var tmp_16 = this; tmp_16.bpq_1 = this.apq_1; this.hd_1 = 16; suspendResult = this.vpo_1.jpq_1.s7g().fjd(this.bpq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: this.zpp_1 = this.apq_1; this.hd_1 = 17; continue $sm; case 17: return this.zpp_1; case 18: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 18) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(StoreActivitiesUseCase$invoke$slambda).ony = function (it, completion) { var i = new StoreActivitiesUseCase$invoke$slambda(this.tpo_1, this.upo_1, this.vpo_1, completion); i.wpo_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.cpq(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$41(_this__u8e3s4, activityEntities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.spq_1 = _this__u8e3s4; this.tpq_1 = activityEntities; } protoOf($invokeCOROUTINE$41).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.upq_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.spq_1.jpq_1, VOID, StoreActivitiesUseCase$invoke$slambda_0(this.tpq_1, this.upq_1, this.spq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function StoreActivitiesUseCase(db, repo) { this.ipq_1 = db; var tmp = this; tmp.jpq_1 = repo == null ? this.ipq_1 : repo; } protoOf(StoreActivitiesUseCase).vpq = function (activityEntities, $completion) { var tmp = new $invokeCOROUTINE$41(this, activityEntities, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function XapiException(responseCode, message, cause) { cause = cause === VOID ? null : cause; Exception_init_$Init$_1(message, cause, this); captureStack(this, XapiException); this.wpq_1 = responseCode; } function XapiJson$_init_$lambda_lhwgtd($this$Json) { $this$Json.x4q_1 = false; $this$Json.z4q_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.xpq_1 = json; } protoOf(XapiJson).toString = function () { return 'XapiJson(json=' + this.xpq_1 + ')'; }; protoOf(XapiJson).hashCode = function () { return hashCode(this.xpq_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.xpq_1, tmp0_other_with_cast.xpq_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_8().dn(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().i2s(timestampStr).amh(); } 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().i2s(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.ypq_1 = statementUuids; } protoOf(StatementStoreResult).toString = function () { return 'StatementStoreResult(statementUuids=' + this.ypq_1 + ')'; }; protoOf(StatementStoreResult).hashCode = function () { return hashCode(this.ypq_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.ypq_1, tmp0_other_with_cast.ypq_1)) return false; return true; }; function storeStatements($this, statements, xapiSession, $completion) { var tmp = new $storeStatementsCOROUTINE$42($this, statements, xapiSession, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function XapiStatementResource$storeStatements$slambda($statementEntities, this$0, $xapiSession, resultContinuation) { this.vpr_1 = $statementEntities; this.wpr_1 = this$0; this.xpr_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiStatementResource$storeStatements$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(XapiStatementResource$storeStatements$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(XapiStatementResource$storeStatements$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 18; var tmp$ret$0; l$ret$1: do { var this_0 = this.vpr_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.sps_1; var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = tmp0_safe_receiver.wjf_1 ? tmp0_safe_receiver.ejf_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.zpr_1 = this.wpr_1.kok_1.t7g(); this.aps_1 = this.xpr_1.gjz_1; this.bps_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = this.zpr_1.yjy(true, this.bps_1, this.aps_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: this.hd_1 = 2; continue $sm; case 2: this.hd_1 = 3; var tmp_2 = this.wpr_1.kok_1.d7f(); var this_1 = this.vpr_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.sps_1; if (tmp0_safe_receiver_0 == null) null; else { destination.i1(tmp0_safe_receiver_0); } } suspendResult = tmp_2.kje(destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; var tmp_3 = this.wpr_1.kok_1.u7g(); var this_2 = this.vpr_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.tps_1; if (tmp0_safe_receiver_1 == null) null; else { destination_0.i1(tmp0_safe_receiver_1); } } suspendResult = tmp_3.ajw(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_4 = this; var this_3 = this.vpr_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.ups_1; var list = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs; addAll(destination_1, list); } tmp_4.cps_1 = destination_1; var tmp_5 = this; var this_4 = this.cps_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.xps_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.cj4_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.dps_1 = tmp_7; if (this.dps_1 == null) { this.eps_1 = null; this.hd_1 = 6; continue $sm; } else { var tmp_8 = this; tmp_8.fps_1 = this.dps_1; var tmp_9 = this; tmp_9.gps_1 = this.fps_1; this.hd_1 = 5; suspendResult = insertOrUpdateActorsIfNameChanged(this.wpr_1.kok_1.e7f(), this.gps_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 5: this.eps_1 = this.fps_1; this.hd_1 = 6; continue $sm; case 6: var tmp_10 = this; var this_5 = this.cps_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.xps_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.cj4_1; if (tmp_11 === 2) { destination_5.i1(element_4); } } tmp_10.hps_1 = destination_5; this.hd_1 = 7; var tmp_12 = this.wpr_1.fok_1.e7f(); var this_6 = this.hps_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.sj3_1); } suspendResult = tmp_12.yj2(destination_6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.ips_1 = suspendResult; var tmp_13 = this; var this_7 = this.cps_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.yps_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.sj3_1, element_6); } tmp_13.jps_1 = destination_8; var tmp_14 = this; tmp_14.kps_1 = this.hps_1; this.lps_1 = this.kps_1.w(); this.hd_1 = 8; continue $sm; case 8: if (!this.lps_1.f()) { this.hd_1 = 14; continue $sm; } this.mps_1 = this.lps_1.e(); var tmp_15 = this; tmp_15.nps_1 = this.mps_1; var tmp_16 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_10 = this.ips_1.w(); while (tmp0_iterator_10.f()) { var element_7 = tmp0_iterator_10.e(); if (element_7.uj4_1.equals(this.nps_1.sj3_1)) { tmp$ret$2 = element_7; break l$ret$3; } } tmp$ret$2 = null; } while (false); tmp_16.ops_1 = tmp$ret$2; var tmp_17 = this; var tmp_18; if (!isAnonymous(this.nps_1)) { var tmp_19 = this.nps_1.aj4_1; var tmp0_safe_receiver_2 = this.ops_1; tmp_18 = !tmp_19.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.vj4_1); } else { tmp_18 = true; } tmp_17.pps_1 = tmp_18; var tmp_20 = this; var this_8 = this.cps_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.zps_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.pj8_1.equals(this.nps_1.sj3_1)) { destination_10.i1(element_9); } } tmp_20.qps_1 = destination_10; var tmp_21 = this; var this_9 = this.qps_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.jps_1.q(element_10.qj8_1); if (tmp0_safe_receiver_3 == null) null; else { destination_11.i1(tmp0_safe_receiver_3); } } tmp_21.rps_1 = destination_11; this.hd_1 = 9; suspendResult = insertOrUpdateActorsIfNameChanged(this.wpr_1.kok_1.e7f(), this.rps_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: if (!this.pps_1 ? !(this.ops_1 == null) : false) { this.hd_1 = 12; var tmp_22 = this.wpr_1.kok_1.o7g(); var this_10 = this.qps_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.yl0(VOID, VOID, this.ops_1.wj4_1)); } suspendResult = insertOrUpdateIfLastModChanged(tmp_22, destination_12, this.ops_1.wj4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; suspendResult = this.wpr_1.kok_1.e7f().wj2(listOf_0(this.nps_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 10: this.hd_1 = 11; suspendResult = this.wpr_1.kok_1.o7g().lj8(this.qps_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 11: this.hd_1 = 13; continue $sm; case 12: this.hd_1 = 13; continue $sm; case 13: this.hd_1 = 8; continue $sm; case 14: this.hd_1 = 15; var tmp_23 = this.wpr_1.kok_1.a7f(); var this_11 = this.vpr_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.vps_1; var tmp0_safe_receiver_5 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.apt_1; if (tmp0_safe_receiver_5 == null) null; else { destination_13.i1(tmp0_safe_receiver_5); } } suspendResult = tmp_23.cjx(destination_13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: this.hd_1 = 16; var tmp_24 = this.wpr_1.kok_1.n7g(); var this_12 = this.vpr_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.vps_1; var tmp1_elvis_lhs = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.bpt_1; var list_2 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; addAll(destination_14, list_2); } suspendResult = tmp_24.ajy(destination_14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 16: this.hd_1 = 17; var this_13 = this.vpr_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.wps_1; var list_3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0; addAll(destination_15, list_3); } suspendResult = this.wpr_1.jok_1.vpq(destination_15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 17: return Unit_instance; case 18: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 18) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(XapiStatementResource$storeStatements$slambda).ony = function (it, completion) { var i = new XapiStatementResource$storeStatements$slambda(this.vpr_1, this.wpr_1, this.xpr_1, completion); i.ypr_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.nny(it, $completion); }; l.$arity = 1; return l; } function $storeStatementsCOROUTINE$42(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hpr_1 = _this__u8e3s4; this.ipr_1 = statements; this.jpr_1 = xapiSession; } protoOf($storeStatementsCOROUTINE$42).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.kpr_1 = identifierHash(agent(this.jpr_1, this.hpr_1.hok_1), this.hpr_1.gok_1); var tmp_0 = this; var it = knownActorUidToPersonUidsMap(this.jpr_1, this.hpr_1.lok_1); var tmp_1; if (!it.r(this.kpr_1)) { tmp_1 = plus_3(it, to(this.kpr_1, this.jpr_1.ljz_1)); } else { tmp_1 = it; } tmp_0.lpr_1 = tmp_1; var tmp_2 = this; var this_0 = this.ipr_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.umd().toString(); var tmp1_elvis_lhs = element.ipt_1; var tmp4_timestamp = tmp1_elvis_lhs == null ? timeNowStr : tmp1_elvis_lhs; var tmp0_elvis_lhs = xapiRequireValidUuidOrNullAsString(element.cpt_1); var tmp5_id = tmp0_elvis_lhs == null ? randomUuidAsString() : tmp0_elvis_lhs; var tmp2_name = this.jpr_1.njz_1; var tmp3_homePage = this.hpr_1.hok_1.mnt_1; var tmp6_authority = new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(tmp3_homePage, tmp2_name)); var exactStatement = element.opt(tmp5_id, VOID, VOID, VOID, VOID, VOID, tmp4_timestamp, timeNowStr, tmp6_authority); var tmp7_stringHasher = this.hpr_1.gok_1; var tmp8_exactJson = this.hpr_1.lok_1.l46(Companion_getInstance_90().h4s(), exactStatement); var tmp9_primaryKeyManager = get_doorPrimaryKeyManager(this.hpr_1.fok_1); var tmp10_hasherFactory = this.hpr_1.iok_1; var tmp11_json = this.hpr_1.lok_1; var tmp12_learningSpace = this.hpr_1.hok_1; var list = toEntities_3(exactStatement, tmp7_stringHasher, tmp9_primaryKeyManager, tmp10_hasherFactory, tmp11_json, this.jpr_1, this.lpr_1, tmp8_exactJson, false, tmp12_learningSpace); addAll(destination, list); } tmp_2.mpr_1 = destination; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.hpr_1.kok_1, VOID, XapiStatementResource$storeStatements$slambda_0(this.mpr_1, this.hpr_1, this.jpr_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_1 = this.mpr_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.sps_1; var tmp_3; if (tmp0_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = Uuid_init_$Create$(tmp0_safe_receiver.uje_1, tmp0_safe_receiver.vje_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $postCOROUTINE$44(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ypt_1 = _this__u8e3s4; this.zpt_1 = statements; this.apu_1 = xapiSession; } protoOf($postCOROUTINE$44).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = storeStatements(this.ypt_1, this.zpt_1, this.apu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return ARGUMENT.ypq_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function XapiStatementResource(db, repo, xxHasher, learningSpace, xapiJson, hasherFactory, storeActivitiesUseCase) { this.fok_1 = db; this.gok_1 = xxHasher; this.hok_1 = learningSpace; this.iok_1 = hasherFactory; this.jok_1 = storeActivitiesUseCase; var tmp = this; tmp.kok_1 = repo == null ? this.fok_1 : repo; this.lok_1 = xapiJson.xpq_1; } protoOf(XapiStatementResource).mok = function (statements, xapiSession, $completion) { var tmp = new $postCOROUTINE$44(this, statements, xapiSession, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function XapiGroupAndPersonUidMap(group, actorUidToPersonUidMap) { this.zol_1 = group; this.aom_1 = actorUidToPersonUidMap; } protoOf(XapiGroupAndPersonUidMap).toString = function () { return 'XapiGroupAndPersonUidMap(group=' + this.zol_1 + ', actorUidToPersonUidMap=' + this.aom_1 + ')'; }; protoOf(XapiGroupAndPersonUidMap).hashCode = function () { var result = this.zol_1.hashCode(); result = imul(result, 31) + hashCode(this.aom_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.zol_1.equals(tmp0_other_with_cast.zol_1)) return false; if (!equals(this.aom_1, tmp0_other_with_cast.aom_1)) return false; return true; }; function $invokeCOROUTINE$46(_this__u8e3s4, groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jpu_1 = _this__u8e3s4; this.kpu_1 = groupSetUid; this.lpu_1 = groupNum; this.mpu_1 = clazzUid; this.npu_1 = assignmentUid; this.opu_1 = accountPersonUid; } protoOf($invokeCOROUTINE$46).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.jpu_1.vol_1.m7e().pd4(this.kpu_1, this.lpu_1, this.mpu_1, this.npu_1, this.opu_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.wd6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toXapiAgent(tmp0_safe_receiver, this.jpu_1.wol_1); var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = element.vd6_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.md5_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.jpu_1.wol_1.mnt_1, 'cgs-' + this.kpu_1.toString() + '-' + this.lpu_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.jpu_1.xol_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function CreateXapiGroupForCourseGroupUseCase(repo, learningSpace, stringHasher) { this.vol_1 = repo; this.wol_1 = learningSpace; this.xol_1 = stringHasher; } protoOf(CreateXapiGroupForCourseGroupUseCase).yol = function (groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new $invokeCOROUTINE$46(this, groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function insertOrUpdateActorsIfNameChanged(_this__u8e3s4, actors, $completion) { var tmp = new $insertOrUpdateActorsIfNameChangedCOROUTINE$47(_this__u8e3s4, actors, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateActorsIfNameChangedCOROUTINE$47(_this__u8e3s4, actors, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xpu_1 = _this__u8e3s4; this.ypu_1 = actors; } protoOf($insertOrUpdateActorsIfNameChangedCOROUTINE$47).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; suspendResult = this.xpu_1.vj2(this.ypu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zpu_1 = systemTimeInMillis(); var tmp_0 = this; tmp_0.apv_1 = this.ypu_1; this.bpv_1 = this.apv_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.bpv_1.f()) { this.hd_1 = 4; continue $sm; } this.cpv_1 = this.bpv_1.e(); var tmp_1 = this; tmp_1.dpv_1 = this.cpv_1; this.hd_1 = 3; suspendResult = this.xpu_1.xj2(this.dpv_1.sj3_1, this.dpv_1.uj3_1, this.zpu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 2; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function insertOrUpdateIfLastModChanged(_this__u8e3s4, memberJoins, lastModTime, $completion) { var tmp = new $insertOrUpdateIfLastModChangedCOROUTINE$48(_this__u8e3s4, memberJoins, lastModTime, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateIfLastModChangedCOROUTINE$48(_this__u8e3s4, memberJoins, lastModTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mpv_1 = _this__u8e3s4; this.npv_1 = memberJoins; this.opv_1 = lastModTime; } protoOf($insertOrUpdateIfLastModChangedCOROUTINE$48).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; suspendResult = this.mpv_1.kj8(this.npv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this; tmp_0.ppv_1 = this.npv_1; this.qpv_1 = this.ppv_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.qpv_1.f()) { this.hd_1 = 4; continue $sm; } this.rpv_1 = this.qpv_1.e(); var tmp_1 = this; tmp_1.spv_1 = this.rpv_1; this.hd_1 = 3; suspendResult = this.mpv_1.mj8(this.spv_1.pj8_1, this.spv_1.qj8_1, this.opv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 2; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function agent(_this__u8e3s4, learningSpace) { var tmp0_account = new XapiAccount(learningSpace.mnt_1, _this__u8e3s4.njz_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.yjz_1; if (charSequenceLength(this_0) > 0) { tmp = json.m46(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), _this__u8e3s4.yjz_1); } else { tmp = emptyMap(); } return tmp; } function authorizationHeader(_this__u8e3s4) { return 'Basic ' + encodeBase64(_this__u8e3s4.gjz_1.toString() + ':' + _this__u8e3s4.wjz_1); } function get_registrationUuid(_this__u8e3s4) { return Uuid_init_$Create$(_this__u8e3s4.ijz_1, _this__u8e3s4.jjz_1); } function get_resultProgressExtension(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.gpt_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ypv_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.zpv_1 = string; this.apw_1 = stringResource; } protoOf(FormattedStatementResponse).bpw = function () { return !(this.zpv_1 == null) ? true : !(this.apw_1 == null); }; protoOf(FormattedStatementResponse).toString = function () { return 'FormattedStatementResponse(string=' + this.zpv_1 + ', stringResource=' + this.apw_1 + ')'; }; protoOf(FormattedStatementResponse).hashCode = function () { var result = this.zpv_1 == null ? 0 : getStringHashCode(this.zpv_1); result = imul(result, 31) + (this.apw_1 == null ? 0 : this.apw_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.zpv_1 == tmp0_other_with_cast.zpv_1)) return false; if (!equals(this.apw_1, tmp0_other_with_cast.apw_1)) return false; return true; }; function Companion_58() { Companion_instance_107 = this; var tmp = this; tmp.cpw_1 = listOf([2, 7, 8, 5, 6]); } var Companion_instance_107; function Companion_getInstance_75() { if (Companion_instance_107 == null) new Companion_58(); return Companion_instance_107; } function FormatStatementResponseUseCase$invoke$slambda($activityEntity, $statement, this$0, resultContinuation) { this.lpw_1 = $activityEntity; this.mpw_1 = $statement; this.npw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(FormatStatementResponseUseCase$invoke$slambda).zpw = function ($this$flow, $completion) { var tmp = this.apx($this$flow, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).he = function (p1, $completion) { return this.zpw((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 11; var tmp_0 = this; var tmp0_safe_receiver = this.lpw_1; tmp_0.ppw_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wip_1; this.qpw_1 = this.mpw_1.ljf_1; var tmp_1; if (this.qpw_1 == null ? true : this.ppw_1 == null) { tmp_1 = true; } else { tmp_1 = this.ppw_1 === 0; } if (tmp_1) { this.hd_1 = 10; var tmp1_safe_receiver = this.qpw_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.opw_1.n1e(new FormattedStatementResponse(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; continue $sm; } case 1: this.rpw_1 = this.ppw_1; if (Companion_getInstance_75().cpw_1.a1(this.rpw_1)) { var tmp_3 = this; tmp_3.spw_1 = listOfNotNull([this.npw_1.bpx_1, this.npw_1.cpx_1]); this.tpw_1 = this.spw_1.w(); this.hd_1 = 5; continue $sm; } else { if (this.rpw_1 === 1) { this.upw_1 = toBooleanStrictOrNull(this.qpw_1); this.hd_1 = 4; var tmp_4; if (this.upw_1 === true) { tmp_4 = strings_getInstance().vnq_1; } else if (this.upw_1 === false) { tmp_4 = strings_getInstance().wnq_1; } else { tmp_4 = null; } suspendResult = this.opw_1.n1e(new FormattedStatementResponse(null, tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_5; if (this.rpw_1 === 3) { tmp_5 = true; } else { tmp_5 = this.rpw_1 === 4; } if (tmp_5) { this.hd_1 = 3; var this_0 = htmlToPlainText(replace(this.qpw_1, '[,]', ', ')); suspendResult = this.opw_1.n1e(new FormattedStatementResponse(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; var this_1 = htmlToPlainText(this.qpw_1); suspendResult = this.opw_1.n1e(new FormattedStatementResponse(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 2: this.hd_1 = 9; continue $sm; case 3: this.hd_1 = 9; continue $sm; case 4: this.hd_1 = 9; continue $sm; case 5: if (!this.tpw_1.f()) { this.hd_1 = 8; continue $sm; } this.vpw_1 = this.tpw_1.e(); var tmp_6 = this; tmp_6.wpw_1 = this.vpw_1; this.hd_1 = 6; suspendResult = this.wpw_1.p7g().dix(this.mpw_1.zje_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.xpw_1 = suspendResult; var tmp_7 = this; var tmp0_subject = this.ppw_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.ppw_1 === 8) { tmp_11 = 'scale'; } else { tmp_11 = 'choices'; } var propPrefix = tmp_11; var responseIds = split(this.qpw_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.xpw_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); if (element.jix_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.kix_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.qpw_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.xpw_1.w(); while (tmp0_iterator_2.f()) { var element_0 = tmp0_iterator_2.e(); if (element_0.jix_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.kix_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.xpw_1.w(); while (tmp0_iterator_3.f()) { var element_1 = tmp0_iterator_3.e(); if (element_1.jix_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.kix_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.qpw_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.xpw_1.w(); while (tmp0_iterator_5.f()) { var element_2 = tmp0_iterator_5.e(); if (element_2.jix_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.kix_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.ypw_1 = tmp_8; this.hd_1 = 7; var tmp1_elvis_lhs_2 = this.ypw_1; var this_4 = htmlToPlainText(tmp1_elvis_lhs_2 == null ? this.qpw_1 : tmp1_elvis_lhs_2); suspendResult = this.opw_1.n1e(new FormattedStatementResponse(toString(trim(isCharSequence(this_4) ? this_4 : THROW_CCE()))), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.hd_1 = 5; continue $sm; case 8: this.hd_1 = 9; continue $sm; case 9: return Unit_instance; case 10: return Unit_instance; case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(FormatStatementResponseUseCase$invoke$slambda).apx = function ($this$flow, completion) { var i = new FormatStatementResponseUseCase$invoke$slambda(this.lpw_1, this.mpw_1, this.npw_1, completion); i.opw_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.zpw($this$flow, $completion); }; l.$arity = 1; return l; } function FormatStatementResponseUseCase(db, repo) { Companion_getInstance_75(); this.bpx_1 = db; this.cpx_1 = repo; } protoOf(FormatStatementResponseUseCase).dpx = function (statement, activityEntity) { return flow(FormatStatementResponseUseCase$invoke$slambda_0(activityEntity, statement, this, null)); }; function Companion_59() { Companion_instance_108 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.epx_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null]; } var Companion_instance_108; function Companion_getInstance_76() { if (Companion_instance_108 == null) new Companion_59(); return Companion_instance_108; } function $serializer_44() { $serializer_instance_44 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.Attachment', this, 6); tmp0_serialDesc.n4g('usageType', true); tmp0_serialDesc.n4g('display', true); tmp0_serialDesc.n4g('description', true); tmp0_serialDesc.n4g('contentType', true); tmp0_serialDesc.n4g('length', true); tmp0_serialDesc.n4g('sha2', true); this.fpx_1 = tmp0_serialDesc; } protoOf($serializer_44).k45 = function () { return this.fpx_1; }; protoOf($serializer_44).e4h = function () { var tmp0_cached = Companion_getInstance_76().epx_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).m45 = function (decoder) { var tmp0_desc = this.fpx_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.c49(tmp0_desc); var tmp11_cached = Companion_getInstance_76().epx_1; if (tmp10_input.r49()) { tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.q49(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.q49(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.i49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.q49(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.q49(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.i49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.d49(tmp0_desc); return Attachment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_44).gpx = function (encoder, value) { var tmp0_desc = this.fpx_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_76().epx_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.hpx_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.hpx_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.ipx_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, tmp2_cached[1], value.ipx_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.jpx_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, tmp2_cached[2], value.jpx_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.kpx_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.kpx_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !value.lpx_1.equals(new Long(0, 0))) { tmp1_output.m4a(tmp0_desc, 4, value.lpx_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.mpx_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, StringSerializer_getInstance(), value.mpx_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_44).l45 = function (encoder, value) { return this.gpx(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().fpx_1); } if (0 === (seen1 & 1)) $this.hpx_1 = null; else $this.hpx_1 = usageType; if (0 === (seen1 & 2)) $this.ipx_1 = null; else $this.ipx_1 = display; if (0 === (seen1 & 4)) $this.jpx_1 = null; else $this.jpx_1 = description; if (0 === (seen1 & 8)) $this.kpx_1 = null; else $this.kpx_1 = contentType; if (0 === (seen1 & 16)) $this.lpx_1 = new Long(0, 0); else $this.lpx_1 = length; if (0 === (seen1 & 32)) $this.mpx_1 = null; else $this.mpx_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_76(); 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.hpx_1 = usageType; this.ipx_1 = display; this.jpx_1 = description; this.kpx_1 = contentType; this.lpx_1 = length; this.mpx_1 = sha2; } protoOf(Attachment).toString = function () { return 'Attachment(usageType=' + this.hpx_1 + ', display=' + this.ipx_1 + ', description=' + this.jpx_1 + ', contentType=' + this.kpx_1 + ', length=' + this.lpx_1.toString() + ', sha2=' + this.mpx_1 + ')'; }; protoOf(Attachment).hashCode = function () { var result = this.hpx_1 == null ? 0 : getStringHashCode(this.hpx_1); result = imul(result, 31) + (this.ipx_1 == null ? 0 : hashCode(this.ipx_1)) | 0; result = imul(result, 31) + (this.jpx_1 == null ? 0 : hashCode(this.jpx_1)) | 0; result = imul(result, 31) + (this.kpx_1 == null ? 0 : getStringHashCode(this.kpx_1)) | 0; result = imul(result, 31) + this.lpx_1.hashCode() | 0; result = imul(result, 31) + (this.mpx_1 == null ? 0 : getStringHashCode(this.mpx_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.hpx_1 == tmp0_other_with_cast.hpx_1)) return false; if (!equals(this.ipx_1, tmp0_other_with_cast.ipx_1)) return false; if (!equals(this.jpx_1, tmp0_other_with_cast.jpx_1)) return false; if (!(this.kpx_1 == tmp0_other_with_cast.kpx_1)) return false; if (!this.lpx_1.equals(tmp0_other_with_cast.lpx_1)) return false; if (!(this.mpx_1 == tmp0_other_with_cast.mpx_1)) return false; return true; }; function Companion_60() { } var Companion_instance_109; function Companion_getInstance_77() { return Companion_instance_109; } function $serializer_45() { $serializer_instance_45 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAccount', this, 2); tmp0_serialDesc.n4g('homePage', false); tmp0_serialDesc.n4g('name', false); this.npx_1 = tmp0_serialDesc; } protoOf($serializer_45).k45 = function () { return this.npx_1; }; protoOf($serializer_45).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.npx_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.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.m49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return XapiAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_45).opx = function (encoder, value) { var tmp0_desc = this.npx_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.q4a(tmp0_desc, 0, value.ppx_1); tmp1_output.q4a(tmp0_desc, 1, value.qpx_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_45).l45 = function (encoder, value) { return this.opx(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().npx_1); } $this.ppx_1 = homePage; $this.qpx_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.ppx_1 = homePage; this.qpx_1 = name; } protoOf(XapiAccount).toString = function () { return 'XapiAccount(homePage=' + this.ppx_1 + ', name=' + this.qpx_1 + ')'; }; protoOf(XapiAccount).hashCode = function () { var result = getStringHashCode(this.ppx_1); result = imul(result, 31) + getStringHashCode(this.qpx_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.ppx_1 === tmp0_other_with_cast.ppx_1)) return false; if (!(this.qpx_1 === tmp0_other_with_cast.qpx_1)) return false; return true; }; function Companion_61() { 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.rpx_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_110; function Companion_getInstance_78() { if (Companion_instance_110 == null) new Companion_61(); return Companion_instance_110; } function $serializer_46() { $serializer_instance_46 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivity.Interaction', this, 2); tmp0_serialDesc.n4g('id', true); tmp0_serialDesc.n4g('description', true); this.spx_1 = tmp0_serialDesc; } protoOf($serializer_46).k45 = function () { return this.spx_1; }; protoOf($serializer_46).e4h = function () { var tmp0_cached = Companion_getInstance_78().rpx_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).m45 = function (decoder) { var tmp0_desc = this.spx_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.c49(tmp0_desc); var tmp7_cached = Companion_getInstance_78().rpx_1; if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return Interaction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_46).tpx = function (encoder, value) { var tmp0_desc = this.spx_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_78().rpx_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.upx_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.upx_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.vpx_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, tmp2_cached[1], value.vpx_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_46).l45 = function (encoder, value) { return this.tpx(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().spx_1); } if (0 === (seen1 & 1)) $this.upx_1 = null; else $this.upx_1 = id; if (0 === (seen1 & 2)) $this.vpx_1 = null; else $this.vpx_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_78(); id = id === VOID ? null : id; description = description === VOID ? null : description; this.upx_1 = id; this.vpx_1 = description; } protoOf(Interaction).toString = function () { return 'Interaction(id=' + this.upx_1 + ', description=' + this.vpx_1 + ')'; }; protoOf(Interaction).hashCode = function () { var result = this.upx_1 == null ? 0 : getStringHashCode(this.upx_1); result = imul(result, 31) + (this.vpx_1 == null ? 0 : hashCode(this.vpx_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.upx_1 == tmp0_other_with_cast.upx_1)) return false; if (!equals(this.vpx_1, tmp0_other_with_cast.vpx_1)) return false; return true; }; function Companion_62() { Companion_instance_111 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.wpx_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_111; function Companion_getInstance_79() { if (Companion_instance_111 == null) new Companion_62(); return Companion_instance_111; } function $serializer_47() { $serializer_instance_47 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('Activity', this, 12); tmp0_serialDesc.n4g('name', true); tmp0_serialDesc.n4g('description', true); tmp0_serialDesc.n4g('type', true); tmp0_serialDesc.n4g('extensions', true); tmp0_serialDesc.n4g('moreInfo', true); tmp0_serialDesc.n4g('interactionType', true); tmp0_serialDesc.n4g('correctResponsePattern', true); tmp0_serialDesc.n4g('choices', true); tmp0_serialDesc.n4g('scale', true); tmp0_serialDesc.n4g('source', true); tmp0_serialDesc.n4g('target', true); tmp0_serialDesc.n4g('steps', true); this.xpx_1 = tmp0_serialDesc; } protoOf($serializer_47).k45 = function () { return this.xpx_1; }; protoOf($serializer_47).e4h = function () { var tmp0_cached = Companion_getInstance_79().wpx_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).m45 = function (decoder) { var tmp0_desc = this.xpx_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.c49(tmp0_desc); var tmp17_cached = Companion_getInstance_79().wpx_1; if (tmp16_input.r49()) { tmp4_local0 = tmp16_input.q49(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.q49(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.q49(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.q49(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.q49(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.q49(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.q49(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.q49(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.q49(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.q49(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.q49(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.q49(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.q49(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.q49(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.q49(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.q49(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.q49(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.q49(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.q49(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.q49(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.d49(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).ypx = function (encoder, value) { var tmp0_desc = this.xpx_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_79().wpx_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.zpx_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, tmp2_cached[0], value.zpx_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.apy_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, tmp2_cached[1], value.apy_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.bpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.bpy_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.cpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, tmp2_cached[3], value.cpy_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.dpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, StringSerializer_getInstance(), value.dpy_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.epy_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, value.epy_1); } if (tmp1_output.y4a(tmp0_desc, 6) ? true : !(value.fpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 6, tmp2_cached[6], value.fpy_1); } if (tmp1_output.y4a(tmp0_desc, 7) ? true : !(value.gpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 7, tmp2_cached[7], value.gpy_1); } if (tmp1_output.y4a(tmp0_desc, 8) ? true : !(value.hpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 8, tmp2_cached[8], value.hpy_1); } if (tmp1_output.y4a(tmp0_desc, 9) ? true : !(value.ipy_1 == null)) { tmp1_output.u4a(tmp0_desc, 9, tmp2_cached[9], value.ipy_1); } if (tmp1_output.y4a(tmp0_desc, 10) ? true : !(value.jpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 10, tmp2_cached[10], value.jpy_1); } if (tmp1_output.y4a(tmp0_desc, 11) ? true : !(value.kpy_1 == null)) { tmp1_output.u4a(tmp0_desc, 11, tmp2_cached[11], value.kpy_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_47).l45 = function (encoder, value) { return this.ypx(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().xpx_1); } if (0 === (seen1 & 1)) $this.zpx_1 = null; else $this.zpx_1 = name; if (0 === (seen1 & 2)) $this.apy_1 = null; else $this.apy_1 = description; if (0 === (seen1 & 4)) $this.bpy_1 = null; else $this.bpy_1 = type; if (0 === (seen1 & 8)) $this.cpy_1 = null; else $this.cpy_1 = extensions; if (0 === (seen1 & 16)) $this.dpy_1 = null; else $this.dpy_1 = moreInfo; if (0 === (seen1 & 32)) $this.epy_1 = null; else $this.epy_1 = interactionType; if (0 === (seen1 & 64)) $this.fpy_1 = null; else $this.fpy_1 = correctResponsePattern; if (0 === (seen1 & 128)) $this.gpy_1 = null; else $this.gpy_1 = choices; if (0 === (seen1 & 256)) $this.hpy_1 = null; else $this.hpy_1 = scale; if (0 === (seen1 & 512)) $this.ipy_1 = null; else $this.ipy_1 = source; if (0 === (seen1 & 1024)) $this.jpy_1 = null; else $this.jpy_1 = target; if (0 === (seen1 & 2048)) $this.kpy_1 = null; else $this.kpy_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_79(); 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.zpx_1 = name; this.apy_1 = description; this.bpy_1 = type; this.cpy_1 = extensions; this.dpy_1 = moreInfo; this.epy_1 = interactionType; this.fpy_1 = correctResponsePattern; this.gpy_1 = choices; this.hpy_1 = scale; this.ipy_1 = source; this.jpy_1 = target; this.kpy_1 = steps; } protoOf(XapiActivity).toString = function () { return 'XapiActivity(name=' + this.zpx_1 + ', description=' + this.apy_1 + ', type=' + this.bpy_1 + ', extensions=' + this.cpy_1 + ', moreInfo=' + this.dpy_1 + ', interactionType=' + this.epy_1 + ', correctResponsePattern=' + this.fpy_1 + ', choices=' + this.gpy_1 + ', scale=' + this.hpy_1 + ', source=' + this.ipy_1 + ', target=' + this.jpy_1 + ', steps=' + this.kpy_1 + ')'; }; protoOf(XapiActivity).hashCode = function () { var result = this.zpx_1 == null ? 0 : hashCode(this.zpx_1); result = imul(result, 31) + (this.apy_1 == null ? 0 : hashCode(this.apy_1)) | 0; result = imul(result, 31) + (this.bpy_1 == null ? 0 : getStringHashCode(this.bpy_1)) | 0; result = imul(result, 31) + (this.cpy_1 == null ? 0 : hashCode(this.cpy_1)) | 0; result = imul(result, 31) + (this.dpy_1 == null ? 0 : getStringHashCode(this.dpy_1)) | 0; result = imul(result, 31) + (this.epy_1 == null ? 0 : this.epy_1.hashCode()) | 0; result = imul(result, 31) + (this.fpy_1 == null ? 0 : hashCode(this.fpy_1)) | 0; result = imul(result, 31) + (this.gpy_1 == null ? 0 : hashCode(this.gpy_1)) | 0; result = imul(result, 31) + (this.hpy_1 == null ? 0 : hashCode(this.hpy_1)) | 0; result = imul(result, 31) + (this.ipy_1 == null ? 0 : hashCode(this.ipy_1)) | 0; result = imul(result, 31) + (this.jpy_1 == null ? 0 : hashCode(this.jpy_1)) | 0; result = imul(result, 31) + (this.kpy_1 == null ? 0 : hashCode(this.kpy_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.zpx_1, tmp0_other_with_cast.zpx_1)) return false; if (!equals(this.apy_1, tmp0_other_with_cast.apy_1)) return false; if (!(this.bpy_1 == tmp0_other_with_cast.bpy_1)) return false; if (!equals(this.cpy_1, tmp0_other_with_cast.cpy_1)) return false; if (!(this.dpy_1 == tmp0_other_with_cast.dpy_1)) return false; if (!equals(this.epy_1, tmp0_other_with_cast.epy_1)) return false; if (!equals(this.fpy_1, tmp0_other_with_cast.fpy_1)) return false; if (!equals(this.gpy_1, tmp0_other_with_cast.gpy_1)) return false; if (!equals(this.hpy_1, tmp0_other_with_cast.hpy_1)) return false; if (!equals(this.ipy_1, tmp0_other_with_cast.ipy_1)) return false; if (!equals(this.jpy_1, tmp0_other_with_cast.jpy_1)) return false; if (!equals(this.kpy_1, tmp0_other_with_cast.kpy_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.dpq_1 = activityEntity; this.epq_1 = activityLangMapEntries; this.fpq_1 = activityInteractionEntities; this.gpq_1 = activityExtensionEntities; this.hpq_1 = statementContextActivityJoin; } protoOf(ActivityEntities).lpy = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) { return new ActivityEntities(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).mpy = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin, $super) { activityEntity = activityEntity === VOID ? this.dpq_1 : activityEntity; activityLangMapEntries = activityLangMapEntries === VOID ? this.epq_1 : activityLangMapEntries; activityInteractionEntities = activityInteractionEntities === VOID ? this.fpq_1 : activityInteractionEntities; activityExtensionEntities = activityExtensionEntities === VOID ? this.gpq_1 : activityExtensionEntities; statementContextActivityJoin = statementContextActivityJoin === VOID ? this.hpq_1 : statementContextActivityJoin; return $super === VOID ? this.lpy(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) : $super.lpy.call(this, activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).toString = function () { return 'ActivityEntities(activityEntity=' + this.dpq_1 + ', activityLangMapEntries=' + this.epq_1 + ', activityInteractionEntities=' + this.fpq_1 + ', activityExtensionEntities=' + this.gpq_1 + ', statementContextActivityJoin=' + this.hpq_1 + ')'; }; protoOf(ActivityEntities).hashCode = function () { var result = this.dpq_1.hashCode(); result = imul(result, 31) + hashCode(this.epq_1) | 0; result = imul(result, 31) + hashCode(this.fpq_1) | 0; result = imul(result, 31) + hashCode(this.gpq_1) | 0; result = imul(result, 31) + (this.hpq_1 == null ? 0 : this.hpq_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.dpq_1.equals(tmp0_other_with_cast.dpq_1)) return false; if (!equals(this.epq_1, tmp0_other_with_cast.epq_1)) return false; if (!equals(this.fpq_1, tmp0_other_with_cast.fpq_1)) return false; if (!equals(this.gpq_1, tmp0_other_with_cast.gpq_1)) return false; if (!equals(this.hpq_1, tmp0_other_with_cast.hpq_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.dm7(activityId); var tmp9_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.gpy_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.hpy_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.ipy_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.jpy_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.kpy_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.bpy_1; var tmp_9 = _this__u8e3s4 == null ? null : _this__u8e3s4.dpy_1; var tmp13_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.epy_1; var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.qpy_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.fpy_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.n46(); // 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.l46(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.zpx_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.apy_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.cpy_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.dm7(key), xapiRequireValidIRI(key, activityId + ' extension ' + key + ' is not a valid IRI'), json.l46(Companion_instance_23.h4s(), 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.dm7(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.dm7('' + propId + _this__u8e3s4.upx_1); var tmp = new ActivityInteractionEntity(activityUid, aieHash, propId, _this__u8e3s4.upx_1); var tmp0_safe_receiver = _this__u8e3s4.vpx_1; return to(tmp, toEmptyIfNull(tmp0_safe_receiver == null ? null : toEntities$toLangMapEntries(tmp0_safe_receiver, activityUid, $stringHasher, propName + '-' + _this__u8e3s4.upx_1, aieHash))); } function Companion_63() { } protoOf(Companion_63).h4s = function () { return XapiActorSerializer_getInstance(); }; protoOf(Companion_63).p4h = function (typeParamsSerializers) { return this.h4s(); }; var Companion_instance_112; function Companion_getInstance_80() { return Companion_instance_112; } function XapiActor() { } function XapiActorSerializer() { XapiActorSerializer_instance = this; JsonContentPolymorphicSerializer.call(this, getKClass(XapiActor)); } protoOf(XapiActorSerializer).f4s = 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.a3c(); 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_113.h4s(); break; case 4: tmp_0 = Companion_getInstance_85().h4s(); 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.upy() == null)) { var tmp0_safe_receiver = _this__u8e3s4.upy(); var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qpx_1; var tmp1_safe_receiver = _this__u8e3s4.upy(); tmp = '' + tmp_0 + '@' + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ppx_1); } else if (!(_this__u8e3s4.rpy() == null)) { tmp = _this__u8e3s4.rpy(); } else if (!(_this__u8e3s4.spy() == null)) { tmp = _this__u8e3s4.spy(); } else if (!(_this__u8e3s4.tpy() == null)) { tmp = _this__u8e3s4.tpy(); } 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.dm7(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.xps_1 = actor; this.yps_1 = groupMemberAgents; this.zps_1 = groupMemberJoins; } protoOf(ActorEntities).toString = function () { return 'ActorEntities(actor=' + this.xps_1 + ', groupMemberAgents=' + this.yps_1 + ', groupMemberJoins=' + this.zps_1 + ')'; }; protoOf(ActorEntities).hashCode = function () { var result = this.xps_1.hashCode(); result = imul(result, 31) + hashCode(this.yps_1) | 0; result = imul(result, 31) + hashCode(this.zps_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.xps_1.equals(tmp0_other_with_cast.xps_1)) return false; if (!equals(this.yps_1, tmp0_other_with_cast.yps_1)) return false; if (!equals(this.zps_1, tmp0_other_with_cast.zps_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).h4s = function () { return $serializer_getInstance_60(); }; var Companion_instance_113; function Companion_getInstance_81() { return Companion_instance_113; } function $serializer_48() { $serializer_instance_48 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAgent', this, 6); tmp0_serialDesc.n4g('name', true); tmp0_serialDesc.n4g('mbox', true); tmp0_serialDesc.n4g('mbox_sha1sum', true); tmp0_serialDesc.n4g('openid', true); tmp0_serialDesc.n4g('objectType', true); tmp0_serialDesc.n4g('account', true); this.ypy_1 = tmp0_serialDesc; } protoOf($serializer_48).k45 = function () { return this.ypy_1; }; protoOf($serializer_48).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.ypy_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.c49(tmp0_desc); if (tmp10_input.r49()) { tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.q49(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.q49(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.d49(tmp0_desc); return XapiAgent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_48).zpy = function (encoder, value) { var tmp0_desc = this.ypy_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.apz_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.apz_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.bpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, StringSerializer_getInstance(), value.bpz_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.cpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.cpz_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.dpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.dpz_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.epz_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.epz_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.fpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, $serializer_getInstance_57(), value.fpz_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_48).l45 = function (encoder, value) { return this.zpy(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().ypy_1); } if (0 === (seen1 & 1)) $this.apz_1 = null; else $this.apz_1 = name; if (0 === (seen1 & 2)) $this.bpz_1 = null; else $this.bpz_1 = mbox; if (0 === (seen1 & 4)) $this.cpz_1 = null; else $this.cpz_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.dpz_1 = null; else $this.dpz_1 = openid; if (0 === (seen1 & 16)) $this.epz_1 = null; else $this.epz_1 = objectType; if (0 === (seen1 & 32)) $this.fpz_1 = null; else $this.fpz_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.apz_1 = name; this.bpz_1 = mbox; this.cpz_1 = mbox_sha1sum; this.dpz_1 = openid; this.epz_1 = objectType; this.fpz_1 = account; } protoOf(XapiAgent).rpy = function () { return this.bpz_1; }; protoOf(XapiAgent).spy = function () { return this.cpz_1; }; protoOf(XapiAgent).tpy = function () { return this.dpz_1; }; protoOf(XapiAgent).gpz = function () { return this.epz_1; }; protoOf(XapiAgent).upy = function () { return this.fpz_1; }; protoOf(XapiAgent).toString = function () { return 'XapiAgent(name=' + this.apz_1 + ', mbox=' + this.bpz_1 + ', mbox_sha1sum=' + this.cpz_1 + ', openid=' + this.dpz_1 + ', objectType=' + this.epz_1 + ', account=' + this.fpz_1 + ')'; }; protoOf(XapiAgent).hashCode = function () { var result = this.apz_1 == null ? 0 : getStringHashCode(this.apz_1); result = imul(result, 31) + (this.bpz_1 == null ? 0 : getStringHashCode(this.bpz_1)) | 0; result = imul(result, 31) + (this.cpz_1 == null ? 0 : getStringHashCode(this.cpz_1)) | 0; result = imul(result, 31) + (this.dpz_1 == null ? 0 : getStringHashCode(this.dpz_1)) | 0; result = imul(result, 31) + (this.epz_1 == null ? 0 : this.epz_1.hashCode()) | 0; result = imul(result, 31) + (this.fpz_1 == null ? 0 : this.fpz_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.apz_1 == tmp0_other_with_cast.apz_1)) return false; if (!(this.bpz_1 == tmp0_other_with_cast.bpz_1)) return false; if (!(this.cpz_1 == tmp0_other_with_cast.cpz_1)) return false; if (!(this.dpz_1 == tmp0_other_with_cast.dpz_1)) return false; 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; 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.bpz_1; var tmp7_actorMbox_sha1sum = _this__u8e3s4.cpz_1; var tmp8_actorOpenid = _this__u8e3s4.dpz_1; var tmp1_safe_receiver = _this__u8e3s4.fpz_1; var tmp9_actorAccountName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qpx_1; var tmp2_safe_receiver = _this__u8e3s4.fpz_1; var tmp10_actorAccountHomePage = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ppx_1; var tmp3_safe_receiver = _this__u8e3s4.apz_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.dm7(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_114 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.hpz_1 = [null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_114; function Companion_getInstance_82() { if (Companion_instance_114 == null) new Companion_65(); return Companion_instance_114; } function $serializer_49() { $serializer_instance_49 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiContext', this, 9); tmp0_serialDesc.n4g('instructor', true); tmp0_serialDesc.n4g('registration', true); tmp0_serialDesc.n4g('language', true); tmp0_serialDesc.n4g('platform', true); tmp0_serialDesc.n4g('revision', true); tmp0_serialDesc.n4g('team', true); tmp0_serialDesc.n4g('statement', true); tmp0_serialDesc.n4g('contextActivities', true); tmp0_serialDesc.n4g('extensions', true); this.ipz_1 = tmp0_serialDesc; } protoOf($serializer_49).k45 = function () { return this.ipz_1; }; protoOf($serializer_49).e4h = function () { var tmp0_cached = Companion_getInstance_82().hpz_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).m45 = function (decoder) { var tmp0_desc = this.ipz_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.c49(tmp0_desc); var tmp14_cached = Companion_getInstance_82().hpz_1; if (tmp13_input.r49()) { tmp4_local0 = tmp13_input.q49(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.q49(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.q49(tmp0_desc, 6, $serializer_getInstance_67(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.q49(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.q49(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.q49(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.q49(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.q49(tmp0_desc, 6, $serializer_getInstance_67(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.q49(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.q49(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.d49(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).jpz = function (encoder, value) { var tmp0_desc = this.ipz_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_82().hpz_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.kpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, XapiActorSerializer_getInstance(), value.kpz_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.lpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, StringSerializer_getInstance(), value.lpz_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.mpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.mpz_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.npz_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.npz_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.opz_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, StringSerializer_getInstance(), value.opz_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.ppz_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, XapiActorSerializer_getInstance(), value.ppz_1); } if (tmp1_output.y4a(tmp0_desc, 6) ? true : !(value.qpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 6, $serializer_getInstance_67(), value.qpz_1); } if (tmp1_output.y4a(tmp0_desc, 7) ? true : !(value.rpz_1 == null)) { tmp1_output.u4a(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), value.rpz_1); } if (tmp1_output.y4a(tmp0_desc, 8) ? true : !(value.spz_1 == null)) { tmp1_output.u4a(tmp0_desc, 8, tmp2_cached[8], value.spz_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_49).l45 = function (encoder, value) { return this.jpz(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().ipz_1); } if (0 === (seen1 & 1)) $this.kpz_1 = null; else $this.kpz_1 = instructor; if (0 === (seen1 & 2)) $this.lpz_1 = null; else $this.lpz_1 = registration; if (0 === (seen1 & 4)) $this.mpz_1 = null; else $this.mpz_1 = language; if (0 === (seen1 & 8)) $this.npz_1 = null; else $this.npz_1 = platform; if (0 === (seen1 & 16)) $this.opz_1 = null; else $this.opz_1 = revision; if (0 === (seen1 & 32)) $this.ppz_1 = null; else $this.ppz_1 = team; if (0 === (seen1 & 64)) $this.qpz_1 = null; else $this.qpz_1 = statement; if (0 === (seen1 & 128)) $this.rpz_1 = null; else $this.rpz_1 = contextActivities; if (0 === (seen1 & 256)) $this.spz_1 = null; else $this.spz_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_82(); 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.kpz_1 = instructor; this.lpz_1 = registration; this.mpz_1 = language; this.npz_1 = platform; this.opz_1 = revision; this.ppz_1 = team; this.qpz_1 = statement; this.rpz_1 = contextActivities; this.spz_1 = extensions; } protoOf(XapiContext).toString = function () { return 'XapiContext(instructor=' + this.kpz_1 + ', registration=' + this.lpz_1 + ', language=' + this.mpz_1 + ', platform=' + this.npz_1 + ', revision=' + this.opz_1 + ', team=' + this.ppz_1 + ', statement=' + this.qpz_1 + ', contextActivities=' + this.rpz_1 + ', extensions=' + this.spz_1 + ')'; }; protoOf(XapiContext).hashCode = function () { var result = this.kpz_1 == null ? 0 : hashCode(this.kpz_1); result = imul(result, 31) + (this.lpz_1 == null ? 0 : getStringHashCode(this.lpz_1)) | 0; result = imul(result, 31) + (this.mpz_1 == null ? 0 : getStringHashCode(this.mpz_1)) | 0; result = imul(result, 31) + (this.npz_1 == null ? 0 : getStringHashCode(this.npz_1)) | 0; result = imul(result, 31) + (this.opz_1 == null ? 0 : getStringHashCode(this.opz_1)) | 0; result = imul(result, 31) + (this.ppz_1 == null ? 0 : hashCode(this.ppz_1)) | 0; result = imul(result, 31) + (this.qpz_1 == null ? 0 : this.qpz_1.hashCode()) | 0; result = imul(result, 31) + (this.rpz_1 == null ? 0 : this.rpz_1.hashCode()) | 0; result = imul(result, 31) + (this.spz_1 == null ? 0 : hashCode(this.spz_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.kpz_1, tmp0_other_with_cast.kpz_1)) return false; if (!(this.lpz_1 == tmp0_other_with_cast.lpz_1)) return false; if (!(this.mpz_1 == tmp0_other_with_cast.mpz_1)) return false; if (!(this.npz_1 == tmp0_other_with_cast.npz_1)) return false; if (!(this.opz_1 == tmp0_other_with_cast.opz_1)) return false; if (!equals(this.ppz_1, tmp0_other_with_cast.ppz_1)) return false; if (!equals(this.qpz_1, tmp0_other_with_cast.qpz_1)) return false; if (!equals(this.rpz_1, tmp0_other_with_cast.rpz_1)) return false; if (!equals(this.spz_1, tmp0_other_with_cast.spz_1)) return false; return true; }; function Companion_66() { } var Companion_instance_115; function Companion_getInstance_83() { return Companion_instance_115; } 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.tpz_1 = parent; this.upz_1 = grouping; this.vpz_1 = category; this.wpz_1 = other; } protoOf(XapiContextActivities).toString = function () { return 'XapiContextActivities(parent=' + this.tpz_1 + ', grouping=' + this.upz_1 + ', category=' + this.vpz_1 + ', other=' + this.wpz_1 + ')'; }; protoOf(XapiContextActivities).hashCode = function () { var result = this.tpz_1 == null ? 0 : hashCode(this.tpz_1); result = imul(result, 31) + (this.upz_1 == null ? 0 : hashCode(this.upz_1)) | 0; result = imul(result, 31) + (this.vpz_1 == null ? 0 : hashCode(this.vpz_1)) | 0; result = imul(result, 31) + (this.wpz_1 == null ? 0 : hashCode(this.wpz_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.tpz_1, tmp0_other_with_cast.tpz_1)) return false; if (!equals(this.upz_1, tmp0_other_with_cast.upz_1)) return false; if (!equals(this.vpz_1, tmp0_other_with_cast.vpz_1)) return false; if (!equals(this.wpz_1, tmp0_other_with_cast.wpz_1)) return false; return true; }; function deserialize$propertyToObjectList(jsonObject, jsonDecoder, propName) { var jsonElement = jsonObject.ba(propName); var tmp; if (!(jsonElement == null)) { tmp = decodeListOrSingleObjectAsList(jsonDecoder.g4s(), Companion_instance_123.h4s(), jsonElement); } else { tmp = null; } return tmp; } function XapiContextActivitiesSerializer() { XapiContextActivitiesSerializer_instance = this; this.xpz_1 = Companion_getInstance_84().h4s().k45(); } protoOf(XapiContextActivitiesSerializer).k45 = function () { return this.xpz_1; }; protoOf(XapiContextActivitiesSerializer).zpz = function (encoder, value) { encoder.t4a(Companion_getInstance_84().h4s(), toSurrogate(value)); }; protoOf(XapiContextActivitiesSerializer).l45 = function (encoder, value) { return this.zpz(encoder, value instanceof XapiContextActivities ? value : THROW_CCE()); }; protoOf(XapiContextActivitiesSerializer).m45 = 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.e4s(); 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_116 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.ypz_1 = [new ArrayListSerializer($serializer_getInstance_67()), new ArrayListSerializer($serializer_getInstance_67()), new ArrayListSerializer($serializer_getInstance_67()), new ArrayListSerializer($serializer_getInstance_67())]; } protoOf(Companion_67).h4s = function () { return $serializer_getInstance_62(); }; var Companion_instance_116; function Companion_getInstance_84() { if (Companion_instance_116 == null) new Companion_67(); return Companion_instance_116; } function $serializer_50() { $serializer_instance_50 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('XapiContextActivities', this, 4); tmp0_serialDesc.n4g('parent', true); tmp0_serialDesc.n4g('grouping', true); tmp0_serialDesc.n4g('category', true); tmp0_serialDesc.n4g('other', true); this.aq0_1 = tmp0_serialDesc; } protoOf($serializer_50).k45 = function () { return this.aq0_1; }; protoOf($serializer_50).e4h = function () { var tmp0_cached = Companion_getInstance_84().ypz_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).m45 = function (decoder) { var tmp0_desc = this.aq0_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.c49(tmp0_desc); var tmp9_cached = Companion_getInstance_84().ypz_1; if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.q49(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.q49(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.q49(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.q49(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return XapiContextActivitiesSurrogate_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_50).bq0 = function (encoder, value) { var tmp0_desc = this.aq0_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_84().ypz_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.cq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, tmp2_cached[0], value.cq0_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.dq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, tmp2_cached[1], value.dq0_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.eq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, tmp2_cached[2], value.eq0_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.fq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, tmp2_cached[3], value.fq0_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_50).l45 = function (encoder, value) { return this.bq0(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().aq0_1); } if (0 === (seen1 & 1)) $this.cq0_1 = null; else $this.cq0_1 = parent; if (0 === (seen1 & 2)) $this.dq0_1 = null; else $this.dq0_1 = grouping; if (0 === (seen1 & 4)) $this.eq0_1 = null; else $this.eq0_1 = category; if (0 === (seen1 & 8)) $this.fq0_1 = null; else $this.fq0_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_84(); parent = parent === VOID ? null : parent; grouping = grouping === VOID ? null : grouping; category = category === VOID ? null : category; other = other === VOID ? null : other; this.cq0_1 = parent; this.dq0_1 = grouping; this.eq0_1 = category; this.fq0_1 = other; } function toSurrogate(_this__u8e3s4) { return new XapiContextActivitiesSurrogate(_this__u8e3s4.tpz_1, _this__u8e3s4.upz_1, _this__u8e3s4.vpz_1, _this__u8e3s4.wpz_1); } function toEntities_1(_this__u8e3s4, stringHasher, json, statementUuid) { var tmp = toEntities$toEntitiesInternal(_this__u8e3s4.tpz_1, stringHasher, json, statementUuid, 1); var tmp_0 = plus(tmp, toEntities$toEntitiesInternal(_this__u8e3s4.upz_1, stringHasher, json, statementUuid, 2)); var tmp_1 = plus(tmp_0, toEntities$toEntitiesInternal(_this__u8e3s4.vpz_1, stringHasher, json, statementUuid, 3)); return plus(tmp_1, toEntities$toEntitiesInternal(_this__u8e3s4.wpz_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.dm7(item.hq0_1); var scajToHash = stringHasher.dm7('' + contextType + '-' + item.hq0_1); var statementContextActivityJoin = new StatementContextActivityJoin(statementUuid.rmd(), statementUuid.smd(), scajToHash, contextType, activityUid, item.hq0_1); var tmp0_safe_receiver = item.iq0_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toEntities(tmp0_safe_receiver, item.hq0_1, stringHasher, json); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.mpy(VOID, VOID, VOID, VOID, statementContextActivityJoin); var tmp$ret$0 = tmp2_elvis_lhs == null ? new ActivityEntities(new ActivityEntity(activityUid, item.hq0_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_117 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.xpy_1 = [null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_60())]; } protoOf(Companion_68).h4s = function () { return $serializer_getInstance_63(); }; var Companion_instance_117; function Companion_getInstance_85() { if (Companion_instance_117 == null) new Companion_68(); return Companion_instance_117; } function $serializer_51() { $serializer_instance_51 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiGroup', this, 7); tmp0_serialDesc.n4g('name', true); tmp0_serialDesc.n4g('mbox', true); tmp0_serialDesc.n4g('mbox_sha1sum', true); tmp0_serialDesc.n4g('openid', true); tmp0_serialDesc.n4g('objectType', true); tmp0_serialDesc.n4g('account', true); tmp0_serialDesc.n4g('member', true); this.jq0_1 = tmp0_serialDesc; } protoOf($serializer_51).k45 = function () { return this.jq0_1; }; protoOf($serializer_51).e4h = function () { var tmp0_cached = Companion_getInstance_85().xpy_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).m45 = function (decoder) { var tmp0_desc = this.jq0_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.c49(tmp0_desc); var tmp12_cached = Companion_getInstance_85().xpy_1; if (tmp11_input.r49()) { tmp4_local0 = tmp11_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.q49(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.q49(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.o49(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.q49(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.q49(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.q49(tmp0_desc, 5, $serializer_getInstance_57(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.o49(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.d49(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).kq0 = function (encoder, value) { var tmp0_desc = this.jq0_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_85().xpy_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.lq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.lq0_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.mq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, StringSerializer_getInstance(), value.mq0_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.nq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.nq0_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.oq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.oq0_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.pq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.pq0_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.qq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, $serializer_getInstance_57(), value.qq0_1); } if (tmp1_output.y4a(tmp0_desc, 6) ? true : !equals(value.rq0_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 6, tmp2_cached[6], value.rq0_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_51).l45 = function (encoder, value) { return this.kq0(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().jq0_1); } if (0 === (seen1 & 1)) $this.lq0_1 = null; else $this.lq0_1 = name; if (0 === (seen1 & 2)) $this.mq0_1 = null; else $this.mq0_1 = mbox; if (0 === (seen1 & 4)) $this.nq0_1 = null; else $this.nq0_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.oq0_1 = null; else $this.oq0_1 = openid; if (0 === (seen1 & 16)) $this.pq0_1 = null; else $this.pq0_1 = objectType; if (0 === (seen1 & 32)) $this.qq0_1 = null; else $this.qq0_1 = account; if (0 === (seen1 & 64)) $this.rq0_1 = emptyList(); else $this.rq0_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_85(); 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.lq0_1 = name; this.mq0_1 = mbox; this.nq0_1 = mbox_sha1sum; this.oq0_1 = openid; this.pq0_1 = objectType; this.qq0_1 = account; this.rq0_1 = member; } protoOf(XapiGroup).rpy = function () { return this.mq0_1; }; protoOf(XapiGroup).spy = function () { return this.nq0_1; }; protoOf(XapiGroup).tpy = function () { return this.oq0_1; }; protoOf(XapiGroup).gpz = function () { return this.pq0_1; }; protoOf(XapiGroup).upy = function () { return this.qq0_1; }; protoOf(XapiGroup).toString = function () { return 'XapiGroup(name=' + this.lq0_1 + ', mbox=' + this.mq0_1 + ', mbox_sha1sum=' + this.nq0_1 + ', openid=' + this.oq0_1 + ', objectType=' + this.pq0_1 + ', account=' + this.qq0_1 + ', member=' + this.rq0_1 + ')'; }; protoOf(XapiGroup).hashCode = function () { var result = this.lq0_1 == null ? 0 : getStringHashCode(this.lq0_1); result = imul(result, 31) + (this.mq0_1 == null ? 0 : getStringHashCode(this.mq0_1)) | 0; result = imul(result, 31) + (this.nq0_1 == null ? 0 : getStringHashCode(this.nq0_1)) | 0; result = imul(result, 31) + (this.oq0_1 == null ? 0 : getStringHashCode(this.oq0_1)) | 0; result = imul(result, 31) + (this.pq0_1 == null ? 0 : this.pq0_1.hashCode()) | 0; result = imul(result, 31) + (this.qq0_1 == null ? 0 : this.qq0_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.rq0_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.lq0_1 == tmp0_other_with_cast.lq0_1)) return false; if (!(this.mq0_1 == tmp0_other_with_cast.mq0_1)) return false; if (!(this.nq0_1 == tmp0_other_with_cast.nq0_1)) return false; if (!(this.oq0_1 == tmp0_other_with_cast.oq0_1)) return false; if (!equals(this.pq0_1, tmp0_other_with_cast.pq0_1)) return false; if (!equals(this.qq0_1, tmp0_other_with_cast.qq0_1)) return false; if (!equals(this.rq0_1, tmp0_other_with_cast.rq0_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.rq0_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.cm7(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.fm7(toByteArray(element.w6_1)); } var memberHash = hasher.gm7(); var tmp_0; if (get_isAnonymous(_this__u8e3s4)) { tmp_0 = primaryKeyManager.h63(68); } else { tmp_0 = identifierHash(_this__u8e3s4, stringHasher); } var tmp2_actorUid = tmp_0; var tmp4_actorName = _this__u8e3s4.lq0_1; var tmp5_actorMbox = _this__u8e3s4.mq0_1; var tmp6_actorMbox_sha1sum = _this__u8e3s4.nq0_1; var tmp7_actorOpenid = _this__u8e3s4.oq0_1; var tmp0_safe_receiver = _this__u8e3s4.qq0_1; var tmp8_actorAccountName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qpx_1; var tmp1_safe_receiver = _this__u8e3s4.qq0_1; var tmp9_actorAccountHomePage = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ppx_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.sj3_1, item_1.x6_1.sj3_1, modTime); destination_1.i1(tmp$ret$8); } return new ActorEntities(groupActor, tmp_1, destination_1); } function get_isAnonymous(_this__u8e3s4) { return (_this__u8e3s4.mq0_1 == null ? _this__u8e3s4.oq0_1 == null : false) ? _this__u8e3s4.qq0_1 == null : false; } function sam$kotlin_Comparator$0_0(function_0) { this.sq0_1 = function_0; } protoOf(sam$kotlin_Comparator$0_0).pa = function (a, b) { return this.sq0_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.tq0_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_118 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.tq0_1 = lazy(tmp_0, XapiInteractionType$Companion$_anonymous__3zafad); } protoOf(Companion_69).uq0 = 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.ppy_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).h4s = function () { return _get_$cachedSerializer__te6jhj_0(this); }; protoOf(Companion_69).p4h = function (typeParamsSerializers) { return this.h4s(); }; var Companion_instance_118; function Companion_getInstance_86() { XapiInteractionType_initEntries(); if (Companion_instance_118 == null) new Companion_69(); return Companion_instance_118; } 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_86(); } var $ENTRIES_0; function XapiInteractionType(name, ordinal, jsonFieldValue, dbFlag) { Enum.call(this, name, ordinal); this.ppy_1 = jsonFieldValue; this.qpy_1 = dbFlag; } function XapiInteractionTypeSerializer() { } protoOf(XapiInteractionTypeSerializer).k45 = 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()).k45(); }; protoOf(XapiInteractionTypeSerializer).m45 = function (decoder) { return Companion_getInstance_86().uq0(decoder.x48()); }; protoOf(XapiInteractionTypeSerializer).vq0 = function (encoder, value) { encoder.f4a(value.ppy_1); }; protoOf(XapiInteractionTypeSerializer).l45 = function (encoder, value) { return this.vq0(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.wq0_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_119 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.wq0_1 = lazy(tmp_0, XapiObjectType$Companion$_anonymous__v4av7w); } protoOf(Companion_70).h4s = function () { return _get_$cachedSerializer__te6jhj_1(this); }; protoOf(Companion_70).p4h = function (typeParamsSerializers) { return this.h4s(); }; var Companion_instance_119; function Companion_getInstance_87() { XapiObjectType_initEntries(); if (Companion_instance_119 == null) new Companion_70(); return Companion_instance_119; } 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_87(); } function XapiObjectType(name, ordinal) { Enum.call(this, name, ordinal); } function XapiObjectTypeSerializer() { } protoOf(XapiObjectTypeSerializer).k45 = 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()).k45(); }; protoOf(XapiObjectTypeSerializer).m45 = function (decoder) { var strValue = decoder.x48(); return valueOf(strValue); }; protoOf(XapiObjectTypeSerializer).xq0 = function (encoder, value) { encoder.f4a(value.toString()); }; protoOf(XapiObjectTypeSerializer).l45 = function (encoder, value) { return this.xq0(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_120; function Companion_getInstance_88() { return Companion_instance_120; } function $serializer_52() { $serializer_instance_52 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult.Score', this, 4); tmp0_serialDesc.n4g('scaled', true); tmp0_serialDesc.n4g('raw', true); tmp0_serialDesc.n4g('min', true); tmp0_serialDesc.n4g('max', true); this.yq0_1 = tmp0_serialDesc; } protoOf($serializer_52).k45 = function () { return this.yq0_1; }; protoOf($serializer_52).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.yq0_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.c49(tmp0_desc); if (tmp8_input.r49()) { tmp4_local0 = tmp8_input.q49(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.q49(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.q49(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.q49(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.q49(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.q49(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.d49(tmp0_desc); return Score_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_52).zq0 = function (encoder, value) { var tmp0_desc = this.yq0_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.aq1_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, FloatSerializer_getInstance(), value.aq1_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.bq1_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, FloatSerializer_getInstance(), value.bq1_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.cq1_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, FloatSerializer_getInstance(), value.cq1_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.dq1_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, FloatSerializer_getInstance(), value.dq1_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_52).l45 = function (encoder, value) { return this.zq0(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().yq0_1); } if (0 === (seen1 & 1)) $this.aq1_1 = null; else $this.aq1_1 = scaled; if (0 === (seen1 & 2)) $this.bq1_1 = null; else $this.bq1_1 = raw; if (0 === (seen1 & 4)) $this.cq1_1 = null; else $this.cq1_1 = min; if (0 === (seen1 & 8)) $this.dq1_1 = null; else $this.dq1_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.aq1_1 = scaled; this.bq1_1 = raw; this.cq1_1 = min; this.dq1_1 = max; } protoOf(Score).toString = function () { return 'Score(scaled=' + this.aq1_1 + ', raw=' + this.bq1_1 + ', min=' + this.cq1_1 + ', max=' + this.dq1_1 + ')'; }; protoOf(Score).hashCode = function () { var result = this.aq1_1 == null ? 0 : getNumberHashCode(this.aq1_1); result = imul(result, 31) + (this.bq1_1 == null ? 0 : getNumberHashCode(this.bq1_1)) | 0; result = imul(result, 31) + (this.cq1_1 == null ? 0 : getNumberHashCode(this.cq1_1)) | 0; result = imul(result, 31) + (this.dq1_1 == null ? 0 : getNumberHashCode(this.dq1_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.aq1_1, tmp0_other_with_cast.aq1_1)) return false; if (!equals(this.bq1_1, tmp0_other_with_cast.bq1_1)) return false; if (!equals(this.cq1_1, tmp0_other_with_cast.cq1_1)) return false; if (!equals(this.dq1_1, tmp0_other_with_cast.dq1_1)) return false; return true; }; function Companion_72() { 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.eq1_1 = [null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_121; function Companion_getInstance_89() { if (Companion_instance_121 == null) new Companion_72(); return Companion_instance_121; } function $serializer_53() { $serializer_instance_53 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult', this, 6); tmp0_serialDesc.n4g('completion', true); tmp0_serialDesc.n4g('success', true); tmp0_serialDesc.n4g('score', true); tmp0_serialDesc.n4g('duration', true); tmp0_serialDesc.n4g('response', true); tmp0_serialDesc.n4g('extensions', true); this.fq1_1 = tmp0_serialDesc; } protoOf($serializer_53).k45 = function () { return this.fq1_1; }; protoOf($serializer_53).e4h = function () { var tmp0_cached = Companion_getInstance_89().eq1_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).m45 = 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_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.c49(tmp0_desc); var tmp11_cached = Companion_getInstance_89().eq1_1; if (tmp10_input.r49()) { tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.q49(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.q49(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.q49(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.q49(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.q49(tmp0_desc, 2, $serializer_getInstance_64(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.q49(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.d49(tmp0_desc); return XapiResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_53).gq1 = function (encoder, value) { var tmp0_desc = this.fq1_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_89().eq1_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.tpv_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, BooleanSerializer_getInstance(), value.tpv_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.upv_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, BooleanSerializer_getInstance(), value.upv_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.vpv_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, $serializer_getInstance_64(), value.vpv_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.wpv_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.wpv_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.xpv_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, StringSerializer_getInstance(), value.xpv_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.ypv_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, tmp2_cached[5], value.ypv_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_53).l45 = function (encoder, value) { return this.gq1(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().fq1_1); } if (0 === (seen1 & 1)) $this.tpv_1 = null; else $this.tpv_1 = completion; if (0 === (seen1 & 2)) $this.upv_1 = null; else $this.upv_1 = success; if (0 === (seen1 & 4)) $this.vpv_1 = null; else $this.vpv_1 = score; if (0 === (seen1 & 8)) $this.wpv_1 = null; else $this.wpv_1 = duration; if (0 === (seen1 & 16)) $this.xpv_1 = null; else $this.xpv_1 = response; if (0 === (seen1 & 32)) $this.ypv_1 = null; else $this.ypv_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_89(); 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.tpv_1 = completion; this.upv_1 = success; this.vpv_1 = score; this.wpv_1 = duration; this.xpv_1 = response; this.ypv_1 = extensions; } protoOf(XapiResult).toString = function () { return 'XapiResult(completion=' + this.tpv_1 + ', success=' + this.upv_1 + ', score=' + this.vpv_1 + ', duration=' + this.wpv_1 + ', response=' + this.xpv_1 + ', extensions=' + this.ypv_1 + ')'; }; protoOf(XapiResult).hashCode = function () { var result = this.tpv_1 == null ? 0 : getBooleanHashCode(this.tpv_1); result = imul(result, 31) + (this.upv_1 == null ? 0 : getBooleanHashCode(this.upv_1)) | 0; result = imul(result, 31) + (this.vpv_1 == null ? 0 : this.vpv_1.hashCode()) | 0; result = imul(result, 31) + (this.wpv_1 == null ? 0 : getStringHashCode(this.wpv_1)) | 0; result = imul(result, 31) + (this.xpv_1 == null ? 0 : getStringHashCode(this.xpv_1)) | 0; result = imul(result, 31) + (this.ypv_1 == null ? 0 : hashCode(this.ypv_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.tpv_1 == tmp0_other_with_cast.tpv_1)) return false; if (!(this.upv_1 == tmp0_other_with_cast.upv_1)) return false; if (!equals(this.vpv_1, tmp0_other_with_cast.vpv_1)) return false; if (!(this.wpv_1 == tmp0_other_with_cast.wpv_1)) return false; if (!(this.xpv_1 == tmp0_other_with_cast.xpv_1)) return false; if (!equals(this.ypv_1, tmp0_other_with_cast.ypv_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_122 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.ppt_1 = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_56()), null]; } protoOf(Companion_73).h4s = function () { return $serializer_getInstance_66(); }; var Companion_instance_122; function Companion_getInstance_90() { if (Companion_instance_122 == null) new Companion_73(); return Companion_instance_122; } function $serializer_54() { $serializer_instance_54 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatement', this, 12); tmp0_serialDesc.n4g('id', true); tmp0_serialDesc.n4g('actor', false); tmp0_serialDesc.n4g('verb', false); tmp0_serialDesc.n4g('object', false); tmp0_serialDesc.n4g('result', true); tmp0_serialDesc.n4g('context', true); tmp0_serialDesc.n4g('timestamp', true); tmp0_serialDesc.n4g('stored', true); tmp0_serialDesc.n4g('authority', true); tmp0_serialDesc.n4g('version', true); tmp0_serialDesc.n4g('attachments', true); tmp0_serialDesc.n4g('objectType', true); this.hq1_1 = tmp0_serialDesc; } protoOf($serializer_54).k45 = function () { return this.hq1_1; }; protoOf($serializer_54).e4h = function () { var tmp0_cached = Companion_getInstance_90().ppt_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).m45 = function (decoder) { var tmp0_desc = this.hq1_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.c49(tmp0_desc); var tmp17_cached = Companion_getInstance_90().ppt_1; if (tmp16_input.r49()) { tmp4_local0 = tmp16_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.o49(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.o49(tmp0_desc, 2, $serializer_getInstance_69(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.o49(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.q49(tmp0_desc, 4, $serializer_getInstance_65(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.q49(tmp0_desc, 5, $serializer_getInstance_61(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.q49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.q49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.q49(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.q49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.q49(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.q49(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.o49(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.o49(tmp0_desc, 2, $serializer_getInstance_69(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.o49(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.q49(tmp0_desc, 4, $serializer_getInstance_65(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.q49(tmp0_desc, 5, $serializer_getInstance_61(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.q49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.q49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.q49(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.q49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.q49(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.q49(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.d49(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).iq1 = function (encoder, value) { var tmp0_desc = this.hq1_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_90().ppt_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.cpt_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.cpt_1); } tmp1_output.s4a(tmp0_desc, 1, XapiActorSerializer_getInstance(), value.dpt_1); tmp1_output.s4a(tmp0_desc, 2, $serializer_getInstance_69(), value.ept_1); tmp1_output.s4a(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), value.fpt_1); if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.gpt_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, $serializer_getInstance_65(), value.gpt_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.hpt_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, $serializer_getInstance_61(), value.hpt_1); } if (tmp1_output.y4a(tmp0_desc, 6) ? true : !(value.ipt_1 == null)) { tmp1_output.u4a(tmp0_desc, 6, StringSerializer_getInstance(), value.ipt_1); } if (tmp1_output.y4a(tmp0_desc, 7) ? true : !(value.jpt_1 == null)) { tmp1_output.u4a(tmp0_desc, 7, StringSerializer_getInstance(), value.jpt_1); } if (tmp1_output.y4a(tmp0_desc, 8) ? true : !(value.kpt_1 == null)) { tmp1_output.u4a(tmp0_desc, 8, XapiActorSerializer_getInstance(), value.kpt_1); } if (tmp1_output.y4a(tmp0_desc, 9) ? true : !(value.lpt_1 == null)) { tmp1_output.u4a(tmp0_desc, 9, StringSerializer_getInstance(), value.lpt_1); } if (tmp1_output.y4a(tmp0_desc, 10) ? true : !(value.mpt_1 == null)) { tmp1_output.u4a(tmp0_desc, 10, tmp2_cached[10], value.mpt_1); } if (tmp1_output.y4a(tmp0_desc, 11) ? true : !(value.npt_1 == null)) { tmp1_output.u4a(tmp0_desc, 11, XapiObjectTypeSerializer_instance, value.npt_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_54).l45 = function (encoder, value) { return this.iq1(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().hq1_1); } if (0 === (seen1 & 1)) $this.cpt_1 = null; else $this.cpt_1 = id; $this.dpt_1 = actor; $this.ept_1 = verb; $this.fpt_1 = object; if (0 === (seen1 & 16)) $this.gpt_1 = null; else $this.gpt_1 = result; if (0 === (seen1 & 32)) $this.hpt_1 = null; else $this.hpt_1 = context; if (0 === (seen1 & 64)) $this.ipt_1 = null; else $this.ipt_1 = timestamp; if (0 === (seen1 & 128)) $this.jpt_1 = null; else $this.jpt_1 = stored; if (0 === (seen1 & 256)) $this.kpt_1 = null; else $this.kpt_1 = authority; if (0 === (seen1 & 512)) $this.lpt_1 = null; else $this.lpt_1 = version; if (0 === (seen1 & 1024)) $this.mpt_1 = null; else $this.mpt_1 = attachments; if (0 === (seen1 & 2048)) $this.npt_1 = null; else $this.npt_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_90(); 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.cpt_1 = id; this.dpt_1 = actor; this.ept_1 = verb; this.fpt_1 = object; this.gpt_1 = result; this.hpt_1 = context; this.ipt_1 = timestamp; this.jpt_1 = stored; this.kpt_1 = authority; this.lpt_1 = version; this.mpt_1 = attachments; this.npt_1 = objectType; } protoOf(XapiStatement).gpz = function () { return this.npt_1; }; protoOf(XapiStatement).jq1 = 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).opt = function (id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, $super) { id = id === VOID ? this.cpt_1 : id; actor = actor === VOID ? this.dpt_1 : actor; verb = verb === VOID ? this.ept_1 : verb; object = object === VOID ? this.fpt_1 : object; result = result === VOID ? this.gpt_1 : result; context = context === VOID ? this.hpt_1 : context; timestamp = timestamp === VOID ? this.ipt_1 : timestamp; stored = stored === VOID ? this.jpt_1 : stored; authority = authority === VOID ? this.kpt_1 : authority; version = version === VOID ? this.lpt_1 : version; attachments = attachments === VOID ? this.mpt_1 : attachments; objectType = objectType === VOID ? this.npt_1 : objectType; return $super === VOID ? this.jq1(id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType) : $super.jq1.call(this, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType); }; protoOf(XapiStatement).toString = function () { return 'XapiStatement(id=' + this.cpt_1 + ', actor=' + this.dpt_1 + ', verb=' + this.ept_1 + ', object=' + this.fpt_1 + ', result=' + this.gpt_1 + ', context=' + this.hpt_1 + ', timestamp=' + this.ipt_1 + ', stored=' + this.jpt_1 + ', authority=' + this.kpt_1 + ', version=' + this.lpt_1 + ', attachments=' + this.mpt_1 + ', objectType=' + this.npt_1 + ')'; }; protoOf(XapiStatement).hashCode = function () { var result = this.cpt_1 == null ? 0 : getStringHashCode(this.cpt_1); result = imul(result, 31) + hashCode(this.dpt_1) | 0; result = imul(result, 31) + this.ept_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.fpt_1) | 0; result = imul(result, 31) + (this.gpt_1 == null ? 0 : this.gpt_1.hashCode()) | 0; result = imul(result, 31) + (this.hpt_1 == null ? 0 : this.hpt_1.hashCode()) | 0; result = imul(result, 31) + (this.ipt_1 == null ? 0 : getStringHashCode(this.ipt_1)) | 0; result = imul(result, 31) + (this.jpt_1 == null ? 0 : getStringHashCode(this.jpt_1)) | 0; result = imul(result, 31) + (this.kpt_1 == null ? 0 : hashCode(this.kpt_1)) | 0; result = imul(result, 31) + (this.lpt_1 == null ? 0 : getStringHashCode(this.lpt_1)) | 0; result = imul(result, 31) + (this.mpt_1 == null ? 0 : hashCode(this.mpt_1)) | 0; result = imul(result, 31) + (this.npt_1 == null ? 0 : this.npt_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.cpt_1 == tmp0_other_with_cast.cpt_1)) return false; if (!equals(this.dpt_1, tmp0_other_with_cast.dpt_1)) return false; if (!this.ept_1.equals(tmp0_other_with_cast.ept_1)) return false; if (!equals(this.fpt_1, tmp0_other_with_cast.fpt_1)) return false; if (!equals(this.gpt_1, tmp0_other_with_cast.gpt_1)) return false; if (!equals(this.hpt_1, tmp0_other_with_cast.hpt_1)) return false; if (!(this.ipt_1 == tmp0_other_with_cast.ipt_1)) return false; if (!(this.jpt_1 == tmp0_other_with_cast.jpt_1)) return false; if (!equals(this.kpt_1, tmp0_other_with_cast.kpt_1)) return false; if (!(this.lpt_1 == tmp0_other_with_cast.lpt_1)) return false; if (!equals(this.mpt_1, tmp0_other_with_cast.mpt_1)) return false; if (!equals(this.npt_1, tmp0_other_with_cast.npt_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.sps_1 = statementEntity; this.tps_1 = statementEntityJson; this.ups_1 = actorEntities; this.vps_1 = verbEntities; this.wps_1 = activityEntities; } protoOf(StatementEntities).toString = function () { return 'StatementEntities(statementEntity=' + this.sps_1 + ', statementEntityJson=' + this.tps_1 + ', actorEntities=' + this.ups_1 + ', verbEntities=' + this.vps_1 + ', activityEntities=' + this.wps_1 + ')'; }; protoOf(StatementEntities).hashCode = function () { var result = this.sps_1 == null ? 0 : this.sps_1.hashCode(); result = imul(result, 31) + (this.tps_1 == null ? 0 : this.tps_1.hashCode()) | 0; result = imul(result, 31) + (this.ups_1 == null ? 0 : hashCode(this.ups_1)) | 0; result = imul(result, 31) + (this.vps_1 == null ? 0 : this.vps_1.hashCode()) | 0; result = imul(result, 31) + (this.wps_1 == null ? 0 : hashCode(this.wps_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.sps_1, tmp0_other_with_cast.sps_1)) return false; if (!equals(this.tps_1, tmp0_other_with_cast.tps_1)) return false; if (!equals(this.ups_1, tmp0_other_with_cast.ups_1)) return false; if (!equals(this.vps_1, tmp0_other_with_cast.vps_1)) return false; if (!equals(this.wps_1, tmp0_other_with_cast.wps_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.cpt_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.fpt_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.hpt_1; var contextRegistration = xapiRequireValidUuidOrNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lpz_1, 'Invalid context registration uuid'); var statementActorEntities = toEntities_0(_this__u8e3s4.dpt_1, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp3_safe_receiver = _this__u8e3s4.kpt_1; var authorityActor = tmp3_safe_receiver == null ? null : toEntities_0(tmp3_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp4_safe_receiver = _this__u8e3s4.hpt_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.kpz_1; var contextInstructorActorEntities = tmp5_safe_receiver == null ? null : toEntities_0(tmp5_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var statementObjectForeignKeys = objectForeignKeys(_this__u8e3s4.fpt_1, stringHasher, statementUuid); var tmp34_statementIdHi = statementUuid.rmd(); var tmp35_statementIdLo = statementUuid.smd(); var tmp_3; var tmp_4; var tmp6_safe_receiver = _this__u8e3s4.dpt_1.upy(); if ((tmp6_safe_receiver == null ? null : tmp6_safe_receiver.ppx_1) === learningSpace.mnt_1) { var tmp7_safe_receiver = _this__u8e3s4.dpt_1.upy(); tmp_4 = (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.qpx_1) === xapiSession.njz_1; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = xapiSession.ljz_1; } else { tmp_3 = new Long(0, 0); } var tmp36_statementActorPersonUid = tmp_3; var tmp37_statementActorUid = statementActorEntities.xps_1.sj3_1; var tmp9_safe_receiver = authorityActor == null ? null : authorityActor.xps_1; var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.sj3_1; var tmp38_authorityActorUid = tmp10_elvis_lhs == null ? new Long(0, 0) : tmp10_elvis_lhs; var tmp39_statementVerbUid = stringHasher.dm7(xapiRequireValidIRI(_this__u8e3s4.ept_1.kq1_1, 'Statement ' + statementUuid + ' VerbID ' + _this__u8e3s4.ept_1.kq1_1 + ' is not a valid IRI')); var tmp11_safe_receiver = _this__u8e3s4.gpt_1; var tmp40_resultCompletion = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.tpv_1; var tmp12_safe_receiver = _this__u8e3s4.gpt_1; var tmp41_resultSuccess = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.upv_1; var tmp13_safe_receiver = _this__u8e3s4.gpt_1; var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.vpv_1; var tmp42_resultScoreScaled = tmp14_safe_receiver == null ? null : tmp14_safe_receiver.aq1_1; var tmp15_safe_receiver = _this__u8e3s4.gpt_1; var tmp16_safe_receiver = tmp15_safe_receiver == null ? null : tmp15_safe_receiver.vpv_1; var tmp43_resultScoreRaw = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.bq1_1; var tmp17_safe_receiver = _this__u8e3s4.gpt_1; var tmp18_safe_receiver = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.vpv_1; var tmp44_resultScoreMin = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.cq1_1; var tmp19_safe_receiver = _this__u8e3s4.gpt_1; var tmp20_safe_receiver = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.vpv_1; var tmp45_resultScoreMax = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.dq1_1; var tmp21_safe_receiver = _this__u8e3s4.gpt_1; var tmp46_resultDuration = xapiRequireDurationOrNullAsLong(tmp21_safe_receiver == null ? null : tmp21_safe_receiver.wpv_1); var tmp22_safe_receiver = _this__u8e3s4.gpt_1; var tmp47_resultResponse = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.xpv_1; var tmp23_safe_receiver = _this__u8e3s4.ipt_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.rmd(); var tmp50_contextRegistrationHi = tmp26_elvis_lhs == null ? new Long(0, 0) : tmp26_elvis_lhs; var tmp28_elvis_lhs = contextRegistration == null ? null : contextRegistration.smd(); var tmp51_contextRegistrationLo = tmp28_elvis_lhs == null ? new Long(0, 0) : tmp28_elvis_lhs; var tmp29_safe_receiver = _this__u8e3s4.hpt_1; var tmp52_contextPlatform = tmp29_safe_receiver == null ? null : tmp29_safe_receiver.npz_1; var tmp31_safe_receiver = contextInstructorActorEntities == null ? null : contextInstructorActorEntities.xps_1; var tmp32_elvis_lhs = tmp31_safe_receiver == null ? null : tmp31_safe_receiver.sj3_1; var tmp53_contextInstructorActorUid = tmp32_elvis_lhs == null ? new Long(0, 0) : tmp32_elvis_lhs; var tmp54_statementContentEntryUid = xapiSession.qjz_1; var tmp55_statementClazzUid = xapiSession.ojz_1; var tmp56_statementCbUid = xapiSession.pjz_1; var tmp_6; if (isCompletionOrProgress(_this__u8e3s4)) { var tmp_7; if (xapiSession.qjz_1.equals(new Long(0, 0))) { tmp_7 = true; } else { var tmp_8 = _this__u8e3s4.fpt_1; var tmp33_safe_receiver = tmp_8 instanceof XapiActivityStatementObject ? tmp_8 : null; tmp_7 = (tmp33_safe_receiver == null ? null : tmp33_safe_receiver.hq0_1) === xapiSession.sjz_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.fpt_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.rmd(), statementUuid.smd(), 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.ept_1, stringHasher); var tmp62_safe_receiver = _this__u8e3s4.hpt_1; var tmp63_safe_receiver = tmp62_safe_receiver == null ? null : tmp62_safe_receiver.rpz_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.fpt_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.gpt_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tpv_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).f4s = 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.a3c(); 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_123.h4s(); break; case 3: tmp_2 = Companion_instance_113.h4s(); break; case 4: tmp_2 = Companion_getInstance_85().h4s(); break; case 0: tmp_2 = Companion_instance_124.h4s(); break; case 1: tmp_2 = Companion_getInstance_90().h4s(); 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).h4s = function () { return $serializer_getInstance_67(); }; var Companion_instance_123; function Companion_getInstance_91() { return Companion_instance_123; } function $serializer_55() { $serializer_instance_55 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivityStatementObject', this, 3); tmp0_serialDesc.n4g('objectType', true); tmp0_serialDesc.n4g('id', false); tmp0_serialDesc.n4g('definition', true); this.oq1_1 = tmp0_serialDesc; } protoOf($serializer_55).k45 = function () { return this.oq1_1; }; protoOf($serializer_55).e4h = 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).m45 = 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_input = decoder.c49(tmp0_desc); if (tmp7_input.r49()) { tmp4_local0 = tmp7_input.q49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.q49(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.q49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.q49(tmp0_desc, 2, $serializer_getInstance_59(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.d49(tmp0_desc); return XapiActivityStatementObject_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_55).pq1 = function (encoder, value) { var tmp0_desc = this.oq1_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.gq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.gq0_1); } tmp1_output.q4a(tmp0_desc, 1, value.hq0_1); if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.iq0_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, $serializer_getInstance_59(), value.iq0_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_55).l45 = function (encoder, value) { return this.pq1(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().oq1_1); } if (0 === (seen1 & 1)) $this.gq0_1 = null; else $this.gq0_1 = objectType; $this.hq0_1 = id; if (0 === (seen1 & 4)) $this.iq0_1 = null; else $this.iq0_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.gq0_1 = objectType; this.hq0_1 = id; this.iq0_1 = definition; } protoOf(XapiActivityStatementObject).gpz = function () { return this.gq0_1; }; protoOf(XapiActivityStatementObject).toString = function () { return 'XapiActivityStatementObject(objectType=' + this.gq0_1 + ', id=' + this.hq0_1 + ', definition=' + this.iq0_1 + ')'; }; protoOf(XapiActivityStatementObject).hashCode = function () { var result = this.gq0_1 == null ? 0 : this.gq0_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.hq0_1) | 0; result = imul(result, 31) + (this.iq0_1 == null ? 0 : this.iq0_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.gq0_1, tmp0_other_with_cast.gq0_1)) return false; if (!(this.hq0_1 === tmp0_other_with_cast.hq0_1)) return false; if (!equals(this.iq0_1, tmp0_other_with_cast.iq0_1)) return false; return true; }; function objectForeignKeys(_this__u8e3s4, stringHasher, statementUuid) { var tmp; if (_this__u8e3s4 instanceof XapiActivityStatementObject) { tmp = new Pair(stringHasher.dm7(_this__u8e3s4.hq0_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.rq1_1); tmp = new Pair(uuid.rmd(), uuid.smd()); } else { if (_this__u8e3s4 instanceof XapiStatement) { var tmp_0 = statementUuid.rmd(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = statementUuid.smd().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.iq0_1, _this__u8e3s4.hq0_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.rmd(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = parentStatementUuid.smd().lc(toLong(1)); tmp = toEntities_3(_this__u8e3s4.opt(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.gpz(); 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).h4s = function () { return $serializer_getInstance_68(); }; var Companion_instance_124; function Companion_getInstance_92() { return Companion_instance_124; } function $serializer_56() { $serializer_instance_56 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatementRef', this, 2); tmp0_serialDesc.n4g('objectType', false); tmp0_serialDesc.n4g('id', false); this.sq1_1 = tmp0_serialDesc; } protoOf($serializer_56).k45 = function () { return this.sq1_1; }; protoOf($serializer_56).e4h = 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).m45 = function (decoder) { var tmp0_desc = this.sq1_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.c49(tmp0_desc); if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.m49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return XapiStatementRef_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_56).tq1 = function (encoder, value) { var tmp0_desc = this.sq1_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.s4a(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.qq1_1); tmp1_output.q4a(tmp0_desc, 1, value.rq1_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_56).l45 = function (encoder, value) { return this.tq1(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().sq1_1); } $this.qq1_1 = objectType; $this.rq1_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).gpz = function () { return this.qq1_1; }; protoOf(XapiStatementRef).toString = function () { return 'XapiStatementRef(objectType=' + this.qq1_1 + ', id=' + this.rq1_1 + ')'; }; protoOf(XapiStatementRef).hashCode = function () { var result = this.qq1_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.rq1_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.qq1_1.equals(tmp0_other_with_cast.qq1_1)) return false; if (!(this.rq1_1 === tmp0_other_with_cast.rq1_1)) return false; return true; }; function Companion_76() { 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.uq1_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_125; function Companion_getInstance_93() { if (Companion_instance_125 == null) new Companion_76(); return Companion_instance_125; } function $serializer_57() { $serializer_instance_57 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiVerb', this, 2); tmp0_serialDesc.n4g('id', true); tmp0_serialDesc.n4g('display', true); this.vq1_1 = tmp0_serialDesc; } protoOf($serializer_57).k45 = function () { return this.vq1_1; }; protoOf($serializer_57).e4h = function () { var tmp0_cached = Companion_getInstance_93().uq1_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).m45 = function (decoder) { var tmp0_desc = this.vq1_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.c49(tmp0_desc); var tmp7_cached = Companion_getInstance_93().uq1_1; if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.q49(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.q49(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return XapiVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_57).wq1 = function (encoder, value) { var tmp0_desc = this.vq1_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_93().uq1_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.kq1_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, StringSerializer_getInstance(), value.kq1_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.lq1_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, tmp2_cached[1], value.lq1_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_57).l45 = function (encoder, value) { return this.wq1(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().vq1_1); } if (0 === (seen1 & 1)) $this.kq1_1 = null; else $this.kq1_1 = id; if (0 === (seen1 & 2)) $this.lq1_1 = null; else $this.lq1_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_93(); id = id === VOID ? null : id; display = display === VOID ? null : display; this.kq1_1 = id; this.lq1_1 = display; } protoOf(XapiVerb).toString = function () { return 'XapiVerb(id=' + this.kq1_1 + ', display=' + this.lq1_1 + ')'; }; protoOf(XapiVerb).hashCode = function () { var result = this.kq1_1 == null ? 0 : getStringHashCode(this.kq1_1); result = imul(result, 31) + (this.lq1_1 == null ? 0 : hashCode(this.lq1_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.kq1_1 == tmp0_other_with_cast.kq1_1)) return false; if (!equals(this.lq1_1, tmp0_other_with_cast.lq1_1)) return false; return true; }; function get_VERB_COMPLETED() { return VERB_COMPLETED; } var VERB_COMPLETED; function VerbEntities(verbEntity, verbLangMapEntries) { this.apt_1 = verbEntity; this.bpt_1 = verbLangMapEntries; } protoOf(VerbEntities).toString = function () { return 'VerbEntities(verbEntity=' + this.apt_1 + ', verbLangMapEntries=' + this.bpt_1 + ')'; }; protoOf(VerbEntities).hashCode = function () { var result = this.apt_1.hashCode(); result = imul(result, 31) + hashCode(this.bpt_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.apt_1.equals(tmp0_other_with_cast.apt_1)) return false; if (!equals(this.bpt_1, tmp0_other_with_cast.bpt_1)) return false; return true; }; function toVerbEntities(_this__u8e3s4, xxHasher) { var verbIri = xapiRequireValidIRI(_this__u8e3s4.kq1_1); var verbUid = xxHasher.dm7(verbIri); var tmp = new VerbEntity(verbUid, _this__u8e3s4.kq1_1); var tmp0_safe_receiver = _this__u8e3s4.lq1_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.dm7(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.aq2_1, $this.dq2_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.cq2_1(); // Inline function 'kotlin.time.Companion.milliseconds' call Companion_getInstance_8(); 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.iq2(false); var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = $this.eq2_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.fq2_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.rq2_1 = this$0; this.sq2_1 = $usageDurationVal; this.tq2_1 = $timeSinceActive; CoroutineImpl.call(this, resultContinuation); } protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.rq2_1.zq1_1.mok(listOf_0(createXapiStatement(this.rq2_1, this.sq2_1.lc(this.tq2_1), 100, true)), this.rq2_1.aq2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).p1n = function ($this$launch, completion) { var i = new NonInteractiveContentXapiStatementRecorder$onComplete$slambda(this.rq2_1, this.sq2_1, this.tq2_1, completion); i.uq2_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function NonInteractiveContentXapiStatementRecorder(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, xapiSession, scope, xapiActivityProvider, learningSpace) { this.xq1_1 = saveStatementOnClearUseCase; this.yq1_1 = saveStatementOnUnloadUseCase; this.zq1_1 = xapiStatementResource; this.aq2_1 = xapiSession; this.bq2_1 = scope; this.cq2_1 = xapiActivityProvider; this.dq2_1 = learningSpace; this.eq2_1 = atomic$long$1(new Long(0, 0)); this.fq2_1 = atomic$int$1(0); this.gq2_1 = atomic$long$1(new Long(0, 0)); this.hq2_1 = atomic$boolean$1(false); } protoOf(NonInteractiveContentXapiStatementRecorder).iq2 = function (active) { var tmp = Napier_getInstance(); tmp.y5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onActiveChanged$lambda(active)); if (active) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.gq2_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.gq2_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.eq2_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).vq2 = function (progress) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.fq2_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).wq2 = function (oneCompletionStatementOnly) { var tmp = Napier_getInstance(); tmp.y5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$lambda); var tmp_0; var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = this.hq2_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.eq2_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.gq2_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.fq2_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.bq2_1, VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$slambda_0(this, usageDurationVal, timeSinceActive, null)); } }; protoOf(NonInteractiveContentXapiStatementRecorder).qm7 = function () { this.xq1_1.xq2(listOf_0(createFinalStatement(this)), this.aq2_1); }; protoOf(NonInteractiveContentXapiStatementRecorder).yq2 = function () { var tmp0_safe_receiver = this.yq1_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.xq2(listOf_0(createFinalStatement(this)), this.aq2_1); } }; function NonInteractiveContentXapiStatementRecorderFactory(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, learningSpace) { this.zq2_1 = saveStatementOnClearUseCase; this.aq3_1 = saveStatementOnUnloadUseCase; this.bq3_1 = xapiStatementResource; this.cq3_1 = learningSpace; } protoOf(NonInteractiveContentXapiStatementRecorderFactory).dq3 = function (xapiSession, scope, xapiActivityProvider) { return new NonInteractiveContentXapiStatementRecorder(this.zq2_1, this.aq3_1, this.bq3_1, xapiSession, scope, xapiActivityProvider, this.cq3_1); }; function SaveStatementOnClearUseCase() { } function SaveStatementOnUnloadUseCase() { } function Companion_77() { Companion_instance_126 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.eq3_1 = [new ArrayListSerializer($serializer_getInstance_66()), null]; } protoOf(Companion_77).h4s = function () { return $serializer_getInstance_70(); }; var Companion_instance_126; function Companion_getInstance_94() { if (Companion_instance_126 == null) new Companion_77(); return Companion_instance_126; } function $serializer_58() { $serializer_instance_58 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.savestatementonclear.XapiStatementsAndSession', this, 2); tmp0_serialDesc.n4g('statements', false); tmp0_serialDesc.n4g('session', false); this.fq3_1 = tmp0_serialDesc; } protoOf($serializer_58).k45 = function () { return this.fq3_1; }; protoOf($serializer_58).e4h = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_94().eq3_1[0], $serializer_getInstance_6()]; }; protoOf($serializer_58).m45 = function (decoder) { var tmp0_desc = this.fq3_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.c49(tmp0_desc); var tmp7_cached = Companion_getInstance_94().eq3_1; if (tmp6_input.r49()) { tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.o49(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.o49(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.o49(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.d49(tmp0_desc); return XapiStatementsAndSession_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_58).gq3 = function (encoder, value) { var tmp0_desc = this.fq3_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_94().eq3_1; tmp1_output.s4a(tmp0_desc, 0, tmp2_cached[0], value.hq3_1); tmp1_output.s4a(tmp0_desc, 1, $serializer_getInstance_6(), value.iq3_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_58).l45 = function (encoder, value) { return this.gq3(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().fq3_1); } $this.hq3_1 = statements; $this.iq3_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_94(); this.hq3_1 = statements; this.iq3_1 = session; } protoOf(XapiStatementsAndSession).toString = function () { return 'XapiStatementsAndSession(statements=' + this.hq3_1 + ', session=' + this.iq3_1 + ')'; }; protoOf(XapiStatementsAndSession).hashCode = function () { var result = hashCode(this.hq3_1); result = imul(result, 31) + this.iq3_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.hq3_1, tmp0_other_with_cast.hq3_1)) return false; if (!this.iq3_1.equals(tmp0_other_with_cast.iq3_1)) return false; return true; }; function ResumeOrStartXapiSessionUseCase() { } function UstadMobileConstants() { UstadMobileConstants_instance = this; this.jq3_1 = 'UTF-8'; this.kq3_1 = 0; this.lq3_1 = 'UTC'; this.mq3_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.nq3_1 = ['ar', 'arc', 'dv', 'fa', 'ha', 'he', 'khw', 'ks', 'ku', 'ps', 'ur', 'yi']; this.oq3_1 = 13; this.pq3_1 = 18; this.qq3_1 = 10000; this.rq3_1 = 512; } var UstadMobileConstants_instance; function UstadMobileConstants_getInstance() { if (UstadMobileConstants_instance == null) new UstadMobileConstants(); return UstadMobileConstants_instance; } function Companion_78() { Companion_instance_127 = this; this.sq3_1 = new UstadGoOptions(null, false); } var Companion_instance_127; function Companion_getInstance_95() { if (Companion_instance_127 == null) new Companion_78(); return Companion_instance_127; } function UstadGoOptions(popUpToViewName, popUpToInclusive, clearStack, serializer) { Companion_getInstance_95(); popUpToViewName = popUpToViewName === VOID ? null : popUpToViewName; popUpToInclusive = popUpToInclusive === VOID ? false : popUpToInclusive; clearStack = clearStack === VOID ? false : clearStack; serializer = serializer === VOID ? null : serializer; this.tq3_1 = popUpToViewName; this.uq3_1 = popUpToInclusive; this.vq3_1 = clearStack; this.wq3_1 = serializer; } protoOf(UstadGoOptions).toString = function () { return 'UstadGoOptions(popUpToViewName=' + this.tq3_1 + ', popUpToInclusive=' + this.uq3_1 + ', clearStack=' + this.vq3_1 + ', serializer=' + this.wq3_1 + ')'; }; protoOf(UstadGoOptions).hashCode = function () { var result = this.tq3_1 == null ? 0 : getStringHashCode(this.tq3_1); result = imul(result, 31) + getBooleanHashCode(this.uq3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vq3_1) | 0; result = imul(result, 31) + (this.wq3_1 == null ? 0 : hashCode(this.wq3_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.tq3_1 == tmp0_other_with_cast.tq3_1)) return false; if (!(this.uq3_1 === tmp0_other_with_cast.uq3_1)) return false; if (!(this.vq3_1 === tmp0_other_with_cast.vq3_1)) return false; if (!equals(this.wq3_1, tmp0_other_with_cast.wq3_1)) return false; return true; }; function UiLanguage(langCode, langDisplay) { this.xq3_1 = langCode; this.yq3_1 = langDisplay; } protoOf(UiLanguage).toString = function () { return 'UiLanguage(langCode=' + this.xq3_1 + ', langDisplay=' + this.yq3_1 + ')'; }; protoOf(UiLanguage).hashCode = function () { var result = getStringHashCode(this.xq3_1); result = imul(result, 31) + getStringHashCode(this.yq3_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.xq3_1 === tmp0_other_with_cast.xq3_1)) return false; if (!(this.yq3_1 === tmp0_other_with_cast.yq3_1)) return false; return true; }; function Companion_79() { Companion_instance_128 = this; this.zq3_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.zq3_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.aq4_1 = destination; this.bq4_1 = 'ustadmobileContent'; this.cq4_1 = ''; this.PREFKEY_LOCALE = 'locale'; this.dq4_1 = 2; this.eq4_1 = 4; this.fq4_1 = 'ref'; this.gq4_1 = 67108864; this.hq4_1 = 'dlenabled'; this.iq4_1 = 16; this.jq4_1 = 32; this.kq4_1 = 64; this.lq4_1 = 'umclient'; this.mq4_1 = '/umapp/#/'; this.nq4_1 = 'sitedata'; this.oq4_1 = 'container'; this.pq4_1 = 'attachments'; this.qq4_1 = 'rootViewName'; this.rq4_1 = 'client_id'; } protoOf(Companion_79).sq4 = function () { return this.PREFKEY_LOCALE; }; var Companion_instance_128; function Companion_getInstance_96() { if (Companion_instance_128 == null) new Companion_79(); return Companion_instance_128; } function UstadMobileSystemCommon(settings, langConfig) { Companion_getInstance_96(); this.tq4_1 = settings; this.uq4_1 = langConfig; this.vq4_1 = null; } protoOf(UstadMobileSystemCommon).wq4 = function () { Companion_getInstance_139(); return 'CourseListHome'; }; protoOf(UstadMobileSystemCommon).xq4 = 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.coj(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.yq4_1 = visible; this.zq4_1 = text; this.aq5_1 = enabled; this.bq5_1 = onClick; } protoOf(ActionBarButtonUiState).cq5 = function (visible, text, enabled, onClick) { return new ActionBarButtonUiState(visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).dq5 = function (visible, text, enabled, onClick, $super) { visible = visible === VOID ? this.yq4_1 : visible; text = text === VOID ? this.zq4_1 : text; enabled = enabled === VOID ? this.aq5_1 : enabled; onClick = onClick === VOID ? this.bq5_1 : onClick; return $super === VOID ? this.cq5(visible, text, enabled, onClick) : $super.cq5.call(this, visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).toString = function () { return 'ActionBarButtonUiState(visible=' + this.yq4_1 + ', text=' + this.zq4_1 + ', enabled=' + this.aq5_1 + ', onClick=' + this.bq5_1 + ')'; }; protoOf(ActionBarButtonUiState).hashCode = function () { var result = getBooleanHashCode(this.yq4_1); result = imul(result, 31) + (this.zq4_1 == null ? 0 : getStringHashCode(this.zq4_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.aq5_1) | 0; result = imul(result, 31) + hashCode(this.bq5_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.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 AppActionButton(icon, contentDescription, onClick, id) { this.eq5_1 = icon; this.fq5_1 = contentDescription; this.gq5_1 = onClick; this.hq5_1 = id; } protoOf(AppActionButton).toString = function () { return 'AppActionButton(icon=' + this.eq5_1 + ', contentDescription=' + this.fq5_1 + ', onClick=' + this.gq5_1 + ', id=' + this.hq5_1 + ')'; }; protoOf(AppActionButton).hashCode = function () { var result = this.eq5_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.fq5_1) | 0; result = imul(result, 31) + hashCode(this.gq5_1) | 0; result = imul(result, 31) + getStringHashCode(this.hq5_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.eq5_1.equals(tmp0_other_with_cast.eq5_1)) return false; if (!(this.fq5_1 === tmp0_other_with_cast.fq5_1)) return false; if (!equals(this.gq5_1, tmp0_other_with_cast.gq5_1)) return false; if (!(this.hq5_1 === tmp0_other_with_cast.hq5_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.iq5_1 = visible; this.jq5_1 = searchText; this.kq5_1 = onSearchTextChanged; } protoOf(AppBarSearchUiState).lq5 = function (visible, searchText, onSearchTextChanged) { return new AppBarSearchUiState(visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).mq5 = function (visible, searchText, onSearchTextChanged, $super) { visible = visible === VOID ? this.iq5_1 : visible; searchText = searchText === VOID ? this.jq5_1 : searchText; onSearchTextChanged = onSearchTextChanged === VOID ? this.kq5_1 : onSearchTextChanged; return $super === VOID ? this.lq5(visible, searchText, onSearchTextChanged) : $super.lq5.call(this, visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).toString = function () { return 'AppBarSearchUiState(visible=' + this.iq5_1 + ', searchText=' + this.jq5_1 + ', onSearchTextChanged=' + this.kq5_1 + ')'; }; protoOf(AppBarSearchUiState).hashCode = function () { var result = getBooleanHashCode(this.iq5_1); result = imul(result, 31) + getStringHashCode(this.jq5_1) | 0; result = imul(result, 31) + hashCode(this.kq5_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.iq5_1 === tmp0_other_with_cast.iq5_1)) return false; if (!(this.jq5_1 === tmp0_other_with_cast.jq5_1)) return false; if (!equals(this.kq5_1, tmp0_other_with_cast.kq5_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.nq5_1 = fabState; this.oq5_1 = loadingState; this.pq5_1 = title; this.qq5_1 = navigationVisible; this.rq5_1 = hideBottomNavigation; this.sq5_1 = hideSettingsIcon; this.tq5_1 = userAccountIconVisible; this.uq5_1 = searchState; this.vq5_1 = actionBarButtonState; this.wq5_1 = overflowItems; this.xq5_1 = hideAppBar; this.yq5_1 = actionButtons; this.zq5_1 = leadingActionButton; this.aq6_1 = appBarColors; } protoOf(AppUiState).bq6 = 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).cq6 = function (fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors, $super) { fabState = fabState === VOID ? this.nq5_1 : fabState; loadingState = loadingState === VOID ? this.oq5_1 : loadingState; title = title === VOID ? this.pq5_1 : title; navigationVisible = navigationVisible === VOID ? this.qq5_1 : navigationVisible; hideBottomNavigation = hideBottomNavigation === VOID ? this.rq5_1 : hideBottomNavigation; hideSettingsIcon = hideSettingsIcon === VOID ? this.sq5_1 : hideSettingsIcon; userAccountIconVisible = userAccountIconVisible === VOID ? this.tq5_1 : userAccountIconVisible; searchState = searchState === VOID ? this.uq5_1 : searchState; actionBarButtonState = actionBarButtonState === VOID ? this.vq5_1 : actionBarButtonState; overflowItems = overflowItems === VOID ? this.wq5_1 : overflowItems; hideAppBar = hideAppBar === VOID ? this.xq5_1 : hideAppBar; actionButtons = actionButtons === VOID ? this.yq5_1 : actionButtons; leadingActionButton = leadingActionButton === VOID ? this.zq5_1 : leadingActionButton; appBarColors = appBarColors === VOID ? this.aq6_1 : appBarColors; return $super === VOID ? this.bq6(fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors) : $super.bq6.call(this, fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors); }; protoOf(AppUiState).toString = function () { return 'AppUiState(fabState=' + this.nq5_1 + ', loadingState=' + this.oq5_1 + ', title=' + this.pq5_1 + ', navigationVisible=' + this.qq5_1 + ', hideBottomNavigation=' + this.rq5_1 + ', hideSettingsIcon=' + this.sq5_1 + ', userAccountIconVisible=' + this.tq5_1 + ', searchState=' + this.uq5_1 + ', actionBarButtonState=' + this.vq5_1 + ', overflowItems=' + this.wq5_1 + ', hideAppBar=' + this.xq5_1 + ', actionButtons=' + this.yq5_1 + ', leadingActionButton=' + this.zq5_1 + ', appBarColors=' + this.aq6_1 + ')'; }; protoOf(AppUiState).hashCode = function () { var result = this.nq5_1.hashCode(); result = imul(result, 31) + this.oq5_1.hashCode() | 0; result = imul(result, 31) + (this.pq5_1 == null ? 0 : getStringHashCode(this.pq5_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.qq5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rq5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.sq5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tq5_1) | 0; result = imul(result, 31) + this.uq5_1.hashCode() | 0; result = imul(result, 31) + this.vq5_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.wq5_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xq5_1) | 0; result = imul(result, 31) + hashCode(this.yq5_1) | 0; result = imul(result, 31) + (this.zq5_1 == null ? 0 : this.zq5_1.hashCode()) | 0; result = imul(result, 31) + this.aq6_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.nq5_1.equals(tmp0_other_with_cast.nq5_1)) return false; if (!this.oq5_1.equals(tmp0_other_with_cast.oq5_1)) return false; if (!(this.pq5_1 == tmp0_other_with_cast.pq5_1)) return false; if (!(this.qq5_1 === tmp0_other_with_cast.qq5_1)) return false; if (!(this.rq5_1 === tmp0_other_with_cast.rq5_1)) return false; if (!(this.sq5_1 === tmp0_other_with_cast.sq5_1)) return false; if (!(this.tq5_1 === tmp0_other_with_cast.tq5_1)) return false; if (!this.uq5_1.equals(tmp0_other_with_cast.uq5_1)) return false; if (!this.vq5_1.equals(tmp0_other_with_cast.vq5_1)) return false; if (!equals(this.wq5_1, tmp0_other_with_cast.wq5_1)) return false; if (!(this.xq5_1 === tmp0_other_with_cast.xq5_1)) return false; if (!equals(this.yq5_1, tmp0_other_with_cast.yq5_1)) return false; if (!equals(this.zq5_1, tmp0_other_with_cast.zq5_1)) return false; if (!this.aq6_1.equals(tmp0_other_with_cast.aq6_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.dq6_1 = visible; this.eq6_1 = text; this.fq6_1 = icon; this.gq6_1 = onClick; } protoOf(FabUiState).hq6 = function (visible, text, icon, onClick) { return new FabUiState(visible, text, icon, onClick); }; protoOf(FabUiState).iq6 = function (visible, text, icon, onClick, $super) { visible = visible === VOID ? this.dq6_1 : visible; text = text === VOID ? this.eq6_1 : text; icon = icon === VOID ? this.fq6_1 : icon; onClick = onClick === VOID ? this.gq6_1 : onClick; return $super === VOID ? this.hq6(visible, text, icon, onClick) : $super.hq6.call(this, visible, text, icon, onClick); }; protoOf(FabUiState).toString = function () { return 'FabUiState(visible=' + this.dq6_1 + ', text=' + this.eq6_1 + ', icon=' + this.fq6_1 + ', onClick=' + this.gq6_1 + ')'; }; protoOf(FabUiState).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) + this.fq6_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.gq6_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.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.equals(tmp0_other_with_cast.fq6_1)) return false; if (!equals(this.gq6_1, tmp0_other_with_cast.gq6_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_129 = this; this.jq6_1 = new LoadingUiState(State_INDETERMINATE_getInstance()); this.kq6_1 = new LoadingUiState(State_NOT_LOADING_getInstance()); } var Companion_instance_129; function Companion_getInstance_97() { if (Companion_instance_129 == null) new Companion_80(); return Companion_instance_129; } 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_97(); loadingState = loadingState === VOID ? State_NOT_LOADING_getInstance() : loadingState; this.lq6_1 = loadingState; } protoOf(LoadingUiState).toString = function () { return 'LoadingUiState(loadingState=' + this.lq6_1 + ')'; }; protoOf(LoadingUiState).hashCode = function () { return this.lq6_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.lq6_1.equals(tmp0_other_with_cast.lq6_1)) return false; return true; }; function OverflowItem(label, onClick) { this.mq6_1 = label; this.nq6_1 = onClick; } protoOf(OverflowItem).toString = function () { return 'OverflowItem(label=' + this.mq6_1 + ', onClick=' + this.nq6_1 + ')'; }; protoOf(OverflowItem).hashCode = function () { var result = getStringHashCode(this.mq6_1); result = imul(result, 31) + hashCode(this.nq6_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.mq6_1 === tmp0_other_with_cast.mq6_1)) return false; if (!equals(this.nq6_1, tmp0_other_with_cast.nq6_1)) return false; return true; }; function Snack(message, action, onAction) { action = action === VOID ? null : action; onAction = onAction === VOID ? null : onAction; this.oq6_1 = message; this.pq6_1 = action; this.qq6_1 = onAction; } protoOf(Snack).toString = function () { return 'Snack(message=' + this.oq6_1 + ', action=' + this.pq6_1 + ', onAction=' + this.qq6_1 + ')'; }; protoOf(Snack).hashCode = function () { var result = getStringHashCode(this.oq6_1); result = imul(result, 31) + (this.pq6_1 == null ? 0 : getStringHashCode(this.pq6_1)) | 0; result = imul(result, 31) + (this.qq6_1 == null ? 0 : hashCode(this.qq6_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.oq6_1 === tmp0_other_with_cast.oq6_1)) return false; if (!(this.pq6_1 == tmp0_other_with_cast.pq6_1)) return false; if (!equals(this.qq6_1, tmp0_other_with_cast.qq6_1)) return false; return true; }; function SnackBarDispatcher() { } function TabItem(viewName, args, label) { this.sq6_1 = viewName; this.tq6_1 = args; this.uq6_1 = label; } protoOf(TabItem).toString = function () { return 'TabItem(viewName=' + this.sq6_1 + ', args=' + this.tq6_1 + ', label=' + this.uq6_1 + ')'; }; protoOf(TabItem).hashCode = function () { var result = getStringHashCode(this.sq6_1); result = imul(result, 31) + hashCode(this.tq6_1) | 0; result = imul(result, 31) + getStringHashCode(this.uq6_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.sq6_1 === tmp0_other_with_cast.sq6_1)) return false; if (!equals(this.tq6_1, tmp0_other_with_cast.tq6_1)) return false; if (!(this.uq6_1 === tmp0_other_with_cast.uq6_1)) return false; return true; }; function UstadContextMenuItem(label, onClick) { this.vq6_1 = label; this.wq6_1 = onClick; } protoOf(UstadContextMenuItem).toString = function () { return 'UstadContextMenuItem(label=' + this.vq6_1 + ', onClick=' + this.wq6_1 + ')'; }; protoOf(UstadContextMenuItem).hashCode = function () { var result = getStringHashCode(this.vq6_1); result = imul(result, 31) + hashCode(this.wq6_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.vq6_1 === tmp0_other_with_cast.vq6_1)) return false; if (!equals(this.wq6_1, tmp0_other_with_cast.wq6_1)) return false; return true; }; function BuildConfigMap(delegate) { this.xq6_1 = delegate; } protoOf(BuildConfigMap).ba = function (key) { return this.xq6_1.q(key); }; function Companion_81() { this.yq6_1 = '1,2,4'; } var Companion_instance_130; function Companion_getInstance_98() { return Companion_instance_130; } 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.zq6_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().cq7_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.zq6_1.a1(element_0.fq7_1)) { destination_1.i1(element_0); } } tmp_0.aq7_1 = destination_1; var tmp_1 = this; var tmp_2 = strings_getInstance().dmi_1; tmp_1.bq7_1 = plus(this.aq7_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.gq7_1 = settings; } protoOf(SettingsLocaleSettingDelegate).hq7 = function (value) { if (!(value == null)) { this.gq7_1.tm7('locale', value); } else { this.gq7_1.u2o('locale'); } }; protoOf(SettingsLocaleSettingDelegate).iq7 = function () { return this.gq7_1.um7('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.jq7().xq3_1; } else { tmp = setting; } return tmp; } function Companion_82() { this.kq7_1 = 'locale'; this.lq7_1 = 'com.ustadmobile.presetlocale'; this.mq7_1 = 'localePresetDone'; this.nq7_1 = 'en,fa,ps,ar,tg,bn,ne,my,rw,ru'; this.oq7_1 = ''; } var Companion_instance_131; function Companion_getInstance_99() { return Companion_instance_131; } 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.tpl_1 = systemLocales; this.upl_1 = localeSettingDelegate; this.vpl_1 = availableLanguagesConfig; this.wpl_1 = fallbackLocaleCode; var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = sorted(split(this.vpl_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().mq3_1.q(item); var tmp$ret$0 = new UiLanguage(item, tmp0_elvis_lhs == null ? item : tmp0_elvis_lhs); destination.i1(tmp$ret$0); } tmp.xpl_1 = destination; var tmp_0 = this; // Inline function 'kotlin.collections.associateBy' call var this_1 = this.xpl_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.xq3_1; destination_0.s(tmp$ret$3, element); } tmp_0.ypl_1 = destination_0; this.zpl_1 = displayLocaleForLangSetting(this, this.iq7()); if (!this.ypl_1.r(this.wpl_1)) throw IllegalStateException_init_$Create$('available languages ' + this.vpl_1 + ' does not ' + ("include fallback: '" + this.wpl_1 + "'")); } protoOf(SupportedLanguagesConfig).hq7 = function (value) { this.upl_1.hq7(value); this.zpl_1 = displayLocaleForLangSetting(this, value); }; protoOf(SupportedLanguagesConfig).iq7 = function () { return this.upl_1.iq7(); }; protoOf(SupportedLanguagesConfig).pq7 = function (systemImpl) { var tmp0_elvis_lhs = this.iq7(); 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.qq7(systemImpl).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.getCurrentLanguage.' call if (element.xq3_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).rq7 = function (useDeviceLangDisplay) { Companion_getInstance_96(); return plus(listOf_0(new UiLanguage('', useDeviceLangDisplay)), this.xpl_1); }; protoOf(SupportedLanguagesConfig).qq7 = function (systemImpl) { return this.rq7(systemImpl.coj(strings_getInstance().jn4_1)); }; protoOf(SupportedLanguagesConfig).sq7 = function (preferredLocales) { // Inline function 'kotlin.collections.map' call var this_0 = this.xpl_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.xq3_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.ypl_1.q(tmp$ret$8)); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? ensureNotNull(this.ypl_1.q(this.wpl_1)) : tmp1_elvis_lhs; }; protoOf(SupportedLanguagesConfig).jq7 = function (preferredLocales, $super) { preferredLocales = preferredLocales === VOID ? this.tpl_1 : preferredLocales; return $super === VOID ? this.sq7(preferredLocales) : $super.sq7.call(this, preferredLocales); }; function Companion_83() { } protoOf(Companion_83).tq7 = 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_132; function Companion_getInstance_100() { return Companion_instance_132; } function SystemUrlConfig(systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? null : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? null : newPersonalAccountsLearningSpaceUrl; this.io2_1 = systemBaseUrl; this.jo2_1 = presetLearningSpaceUrl; this.ko2_1 = newPersonalAccountsLearningSpaceUrl; this.lo2_1 = this.jo2_1 == null; } protoOf(SystemUrlConfig).uq7 = function (systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { return new SystemUrlConfig(systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).vq7 = function (systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl, $super) { systemBaseUrl = systemBaseUrl === VOID ? this.io2_1 : systemBaseUrl; presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? this.jo2_1 : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? this.ko2_1 : newPersonalAccountsLearningSpaceUrl; return $super === VOID ? this.uq7(systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) : $super.uq7.call(this, systemBaseUrl, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).toString = function () { return 'SystemUrlConfig(systemBaseUrl=' + this.io2_1 + ', presetLearningSpaceUrl=' + this.jo2_1 + ', newPersonalAccountsLearningSpaceUrl=' + this.ko2_1 + ')'; }; protoOf(SystemUrlConfig).hashCode = function () { var result = getStringHashCode(this.io2_1); result = imul(result, 31) + (this.jo2_1 == null ? 0 : getStringHashCode(this.jo2_1)) | 0; result = imul(result, 31) + (this.ko2_1 == null ? 0 : getStringHashCode(this.ko2_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.io2_1 === tmp0_other_with_cast.io2_1)) return false; if (!(this.jo2_1 == tmp0_other_with_cast.jo2_1)) return false; if (!(this.ko2_1 == tmp0_other_with_cast.ko2_1)) return false; return true; }; function Companion_84() { this.wq7_1 = 'com.ustadmobile.gopts'; this.xq7_1 = 'com.ustadmobile.showpoweredbymsg'; this.yq7_1 = 'com.ustadmobile.system.systemBaseUrl'; this.zq7_1 = 'com.ustadmobile.system.presetLsUrl'; this.aq8_1 = 'com.ustadmobile.system.newPersonalAccountsLsUrl'; } var Companion_instance_133; function Companion_getInstance_101() { return Companion_instance_133; } 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.z58(); // 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.x58(tmp$ret$0, null); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); return new GetUsernameSuggestionUseCase(tmp$ret$1, $this$singleton.od()); } 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.i57(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.v56(); // 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.w5b(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.i57(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.w56(); var tmp_8 = this_1.v56(); var tmp_9 = this_1.x56(); // 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.w5b(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.z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.z58(); // 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.x58(tmp$ret$2, null); return new EnrolIntoCourseUseCase(tmp_1, tmp$ret$3.rk2_1); } function commonDomainDiModule$lambda$lambda_0($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.z58(); // 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.x58(tmp$ret$0, null).rk2_1; // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.z58(); // 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.x58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.z58(); // 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.x58(tmp$ret$2, null).rk2_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null).uk2(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.z58(); // 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.x58(tmp$ret$2, null); return new GetLocaleForSiteTermsUseCase(tmp_1, tmp$ret$3.uk2()); } 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.z58(); // 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.x58(tmp$ret$0, null); return new RequestEnrolmentUseCase(tmp$ret$1.uk2()); } function commonDomainDiModule$lambda$lambda_6($this$singleton) { return new MakeLinkUseCase($this$singleton.od()); } function commonDomainDiModule$lambda$lambda_7($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.z58(); // 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.x58(tmp$ret$0, null); return new CreateNewClazzUseCase(tmp$ret$1.uk2()); } function commonDomainDiModule$lambda$lambda_8($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); return new ParseInviteUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_10($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.z58(); // 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.x58(tmp$ret$0, null).uk2(); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.z58(); // 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.x58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$provider.z58(); // 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.x58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.z58(); // 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.x58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$provider.z58(); // 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.x58(tmp$ret$8, null); return new SubmitMarkUseCase(tmp_1, tmp_2, tmp_5, tmp_8, tmp_11, tmp$ret$9); } function commonDomainDiModule$lambda$lambda_11($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.z58(); // 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.x58(tmp$ret$0, null).uk2(); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.z58(); // 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.x58(tmp$ret$2, null); return new CreateXapiGroupForCourseGroupUseCase(tmp_1, tmp_2, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_12($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instanceOrNull' call var tmp_2 = $this$singleton.z58(); // 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.y58(tmp$ret$2, 2); return new FormatStatementResponseUseCase(tmp_1, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_13($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.z58(); // 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 tmp$ret$1 = tmp.x58(tmp$ret$0, null); return new GetDefaultDestinationUseCase(tmp$ret$1, $this$singleton.od()); } function commonDomainDiModule$lambda$lambda_14($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.z58(); // 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.x58(tmp$ret$0, null); return new CheckRegistrationAllowedUseCase(tmp$ret$1); } function commonDomainDiModule$lambda$lambda_15($this$singleton) { return new CreateCredentialUsernameUseCase($this$singleton.od()); } function commonDomainDiModule$lambda$lambda_16($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.i57(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.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(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.w56(); var tmp_38 = this_7.v56(); var tmp_39 = this_7.x56(); // 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.w5b(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.i57(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.w56(); var tmp_45 = this_8.v56(); var tmp_46 = this_8.x56(); // 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.w5b(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.i57(tmp$ret$54, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = Companion_getInstance_17().pnt_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.v56(); // 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.w5b(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.i57(tmp$ret$60, null, null); // Inline function 'org.kodein.di.singleton' call var creator_9 = commonDomainDiModule$lambda$lambda_9; var tmp_55 = $this$$receiver.w56(); var tmp_56 = $this$$receiver.v56(); var tmp_57 = $this$$receiver.x56(); // 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.w5b(tmp$ret$63); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_59 = typeToken(createKType(getKClass(SubmitMarkUseCase), arrayOf([]), false)); var tmp$ret$64 = isInterface(tmp_59, TypeToken) ? tmp_59 : THROW_CCE(); var tmp_60 = $this$$receiver.i57(tmp$ret$64, null, null); // Inline function 'org.kodein.di.provider' 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.v56(); // Inline function 'org.kodein.type.generic' call var tmp_63 = typeToken(createKType(getKClass(SubmitMarkUseCase), arrayOf([]), false)); var tmp$ret$68 = isInterface(tmp_63, TypeToken) ? tmp_63 : THROW_CCE(); var tmp$ret$69 = new Provider(tmp_62, tmp$ret$68, creator_10); tmp_60.w5b(tmp$ret$69); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_64 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$70 = isInterface(tmp_64, TypeToken) ? tmp_64 : THROW_CCE(); var tmp_65 = $this$$receiver.i57(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_66 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$72 = isInterface(tmp_66, TypeToken) ? tmp_66 : THROW_CCE(); var this_11 = new ImplWithScope(tmp$ret$72, scope_10); var creator_11 = commonDomainDiModule$lambda$lambda_11; var tmp_67 = this_11.v56(); // Inline function 'org.kodein.type.generic' call var tmp_68 = typeToken(createKType(getKClass(CreateXapiGroupForCourseGroupUseCase), arrayOf([]), false)); var tmp$ret$74 = isInterface(tmp_68, TypeToken) ? tmp_68 : THROW_CCE(); var tmp$ret$75 = new Provider(tmp_67, tmp$ret$74, creator_11); tmp_65.w5b(tmp$ret$75); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_69 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$76 = isInterface(tmp_69, TypeToken) ? tmp_69 : THROW_CCE(); var tmp_70 = $this$$receiver.i57(tmp$ret$76, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_11 = $learningSpaceScope; // Inline function 'org.kodein.type.generic' call var tmp_71 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$78 = isInterface(tmp_71, TypeToken) ? tmp_71 : THROW_CCE(); var this_12 = new ImplWithScope(tmp$ret$78, scope_11); var creator_12 = commonDomainDiModule$lambda$lambda_12; var tmp_72 = this_12.w56(); var tmp_73 = this_12.v56(); var tmp_74 = this_12.x56(); // Inline function 'org.kodein.type.generic' call var tmp_75 = typeToken(createKType(getKClass(FormatStatementResponseUseCase), arrayOf([]), false)); var tmp$ret$80 = isInterface(tmp_75, TypeToken) ? tmp_75 : THROW_CCE(); var tmp$ret$81 = new Singleton(tmp_72, tmp_73, tmp_74, tmp$ret$80, null, true, creator_12); tmp_70.w5b(tmp$ret$81); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_76 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$82 = isInterface(tmp_76, TypeToken) ? tmp_76 : THROW_CCE(); var tmp_77 = $this$$receiver.i57(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.w56(); var tmp_80 = this_13.v56(); var tmp_81 = this_13.x56(); // Inline function 'org.kodein.type.generic' call var tmp_82 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), 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.w5b(tmp$ret$87); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_83 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), arrayOf([]), false)); var tmp$ret$88 = isInterface(tmp_83, TypeToken) ? tmp_83 : THROW_CCE(); var tmp_84 = $this$$receiver.i57(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.w56(); var tmp_87 = this_14.v56(); var tmp_88 = this_14.x56(); // Inline function 'org.kodein.type.generic' call var tmp_89 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), 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.w5b(tmp$ret$93); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_90 = typeToken(createKType(getKClass(CreateCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$94 = isInterface(tmp_90, TypeToken) ? tmp_90 : THROW_CCE(); var tmp_91 = $this$$receiver.i57(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.w56(); var tmp_94 = this_15.v56(); var tmp_95 = this_15.x56(); // Inline function 'org.kodein.type.generic' call var tmp_96 = typeToken(createKType(getKClass(CreateCredentialUsernameUseCase), 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.w5b(tmp$ret$99); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_97 = typeToken(createKType(getKClass(ParseCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$100 = isInterface(tmp_97, TypeToken) ? tmp_97 : THROW_CCE(); var tmp_98 = $this$$receiver.i57(tmp$ret$100, null, null); // Inline function 'org.kodein.di.singleton' call var creator_16 = commonDomainDiModule$lambda$lambda_16; var tmp_99 = $this$$receiver.w56(); var tmp_100 = $this$$receiver.v56(); var tmp_101 = $this$$receiver.x56(); // Inline function 'org.kodein.type.generic' call var tmp_102 = typeToken(createKType(getKClass(ParseCredentialUsernameUseCase), arrayOf([]), false)); var tmp$ret$102 = isInterface(tmp_102, TypeToken) ? tmp_102 : THROW_CCE(); var tmp$ret$103 = new Singleton(tmp_99, tmp_100, tmp_101, tmp$ret$102, null, true, creator_16); tmp_98.w5b(tmp$ret$103); return Unit_instance; }; } function CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, $this) { CourseTerminologyStrings.call($this, toTerminologyEntries(courseTerminology, json, systemImpl), courseTerminology.j8h_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_134 = this; this.bq8_1 = new CourseTerminologyStrings(emptyList()); } var Companion_instance_134; function Companion_getInstance_102() { if (Companion_instance_134 == null) new Companion_85(); return Companion_instance_134; } function CourseTerminologyStrings(terminologyEntries, terminologyKey) { Companion_getInstance_102(); terminologyKey = terminologyKey === VOID ? null : terminologyKey; this.cq8_1 = terminologyEntries; this.dq8_1 = terminologyKey; } protoOf(CourseTerminologyStrings).eq8 = function (messageId) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.cq8_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.locale.CourseTerminologyStrings.get.' call if (element.gq8_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.hq8_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.cq8_1, this.cq8_1); }; protoOf(CourseTerminologyStrings).hashCode = function () { return hashCode(this.cq8_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.eq8(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.fq8_1 = id; this.gq8_1 = stringResource; this.hq8_1 = term; this.iq8_1 = errorMessage; } protoOf(TerminologyEntry).jq8 = function (id, stringResource, term, errorMessage) { return new TerminologyEntry(id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).kq8 = function (id, stringResource, term, errorMessage, $super) { id = id === VOID ? this.fq8_1 : id; stringResource = stringResource === VOID ? this.gq8_1 : stringResource; term = term === VOID ? this.hq8_1 : term; errorMessage = errorMessage === VOID ? this.iq8_1 : errorMessage; return $super === VOID ? this.jq8(id, stringResource, term, errorMessage) : $super.jq8.call(this, id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).toString = function () { return 'TerminologyEntry(id=' + this.fq8_1 + ', stringResource=' + this.gq8_1 + ', term=' + this.hq8_1 + ', errorMessage=' + this.iq8_1 + ')'; }; protoOf(TerminologyEntry).hashCode = function () { var result = getStringHashCode(this.fq8_1); result = imul(result, 31) + this.gq8_1.hashCode() | 0; result = imul(result, 31) + (this.hq8_1 == null ? 0 : getStringHashCode(this.hq8_1)) | 0; result = imul(result, 31) + (this.iq8_1 == null ? 0 : getStringHashCode(this.iq8_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.fq8_1 === tmp0_other_with_cast.fq8_1)) return false; if (!this.gq8_1.equals(tmp0_other_with_cast.gq8_1)) return false; if (!(this.hq8_1 == tmp0_other_with_cast.hq8_1)) return false; if (!(this.iq8_1 == tmp0_other_with_cast.iq8_1)) return false; return true; }; function ClazzEnrolmentListConstants() { ClazzEnrolmentListConstants_instance = this; var tmp = this; var tmp_0 = to(1000, strings_getInstance().dn5_1); var tmp_1 = to(1001, strings_getInstance().qmy_1); var tmp_2 = to(1003, strings_getInstance().qnf_1); tmp.lq8_1 = mapOf([tmp_0, tmp_1, tmp_2, to(1002, strings_getInstance().nn8_1)]); var tmp_3 = this; var tmp_4 = to(202, strings_getInstance().fmy_1); var tmp_5 = to(201, strings_getInstance().pmx_1); var tmp_6 = to(203, strings_getInstance().qmx_1); tmp_3.mq8_1 = mapOf([tmp_4, tmp_5, tmp_6, to(200, strings_getInstance().emy_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().wms_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().xms_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().yms_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().zms_1; var tmp_7 = new MessageIdOption2(tmp_6, 203); var tmp_8 = strings_getInstance().cmt_1; var tmp_9 = new MessageIdOption2(tmp_8, 205); var tmp_10 = strings_getInstance().amt_1; var tmp_11 = new MessageIdOption2(tmp_10, 206); var tmp_12 = strings_getInstance().bmt_1; tmp.nq8_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().gmm_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().cmm_1; var tmp_3 = new MessageIdOption2(tmp_2, 102); var tmp_4 = strings_getInstance().bmm_1; tmp.oq8_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().vnh_1; Companion_getInstance_4(); var tmp_1 = new MessageIdOption2(tmp_0, 102); var tmp_2 = strings_getInstance().vnj_1; Companion_getInstance_4(); tmp.pq8_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().qms_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().rms_1; var tmp_3 = new MessageIdOption2(tmp_2, 101); var tmp_4 = strings_getInstance().sms_1; var tmp_5 = new MessageIdOption2(tmp_4, 102); var tmp_6 = strings_getInstance().tms_1; var tmp_7 = new MessageIdOption2(tmp_6, 103); var tmp_8 = strings_getInstance().ums_1; var tmp_9 = new MessageIdOption2(tmp_8, 104); var tmp_10 = strings_getInstance().vms_1; var tmp_11 = new MessageIdOption2(tmp_10, 105); var tmp_12 = strings_getInstance().cmy_1; var tmp_13 = new MessageIdOption2(tmp_12, 106); var tmp_14 = strings_getInstance().dmy_1; tmp.qq8_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().hmu_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().imu_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().jmu_1; var tmp_5 = new MessageIdOption2(tmp_4, 3); var tmp_6 = strings_getInstance().kmu_1; var tmp_7 = new MessageIdOption2(tmp_6, 4); var tmp_8 = strings_getInstance().nmu_1; var tmp_9 = new MessageIdOption2(tmp_8, 5); var tmp_10 = strings_getInstance().lmu_1; var tmp_11 = new MessageIdOption2(tmp_10, 6); var tmp_12 = strings_getInstance().mmu_1; var tmp_13 = new MessageIdOption2(tmp_12, 7); var tmp_14 = strings_getInstance().pmk_1; var tmp_15 = new MessageIdOption2(tmp_14, 8); var tmp_16 = strings_getInstance().omu_1; var tmp_17 = new MessageIdOption2(tmp_16, 9); var tmp_18 = strings_getInstance().qmk_1; tmp.rq8_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().emy_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().pmx_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().bmm_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().qmx_1; tmp.sq8_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().omk_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().nmk_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().pmk_1; tmp.cq7_1 = listOf([tmp_1, tmp_3, new MessageIdOption2(tmp_4, 4)]); var tmp_5 = this; var tmp_6 = strings_getInstance().qmk_1; tmp_5.dq7_1 = plus(listOf_0(new MessageIdOption2(tmp_6, 0)), this.cq7_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().jmv_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().imv_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().lnb_1; var tmp_5 = new MessageIdOption2(tmp_4, 4); var tmp_6 = strings_getInstance().pmk_1; tmp.tq8_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().dn5_1; var tmp_1 = new MessageIdOption2(tmp_0, 1000); var tmp_2 = strings_getInstance().qmy_1; tmp.uq8_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.vq8_1 = listOf([new MessageIdOption2(strings_getInstance().smw_1, Companion_instance_29.dkw_1), new MessageIdOption2(strings_getInstance().tmw_1, Companion_instance_29.xkv_1), new MessageIdOption2(strings_getInstance().umw_1, Companion_instance_29.ykv_1), new MessageIdOption2(strings_getInstance().vmw_1, Companion_instance_29.zkv_1), new MessageIdOption2(strings_getInstance().wmw_1, Companion_instance_29.akw_1), new MessageIdOption2(strings_getInstance().xmw_1, Companion_instance_29.bkw_1), new MessageIdOption2(strings_getInstance().ymw_1, Companion_instance_29.ckw_1)]); var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = this.vq8_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.fq7_1, item.eq7_1); destination.i1(tmp$ret$0); } tmp.wq8_1 = toMap(destination); this.xq8_1 = mapOf([to(Companion_instance_29.skv_1, strings_getInstance().pmw_1), to(Companion_instance_29.tkv_1, strings_getInstance().nmw_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().xnj_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().ynj_1; tmp.yq8_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.zq8_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.aq9_1 = asSharedFlow(this.zq8_1); } protoOf(CommandFlowUstadNavController).bq9 = function (viewName, args, goOptions) { this.zq8_1.c1i(new NavigateNavCommand(viewName, args, goOptions)); }; protoOf(CommandFlowUstadNavController).cq9 = function (viewName, inclusive) { this.zq8_1.c1i(new PopNavCommand(viewName, inclusive)); }; function NavCommand(timestamp) { this.dq9_1 = timestamp; } function NavigateNavCommand(viewName, args, goOptions) { NavCommand.call(this, systemTimeInMillis()); this.fq9_1 = viewName; this.gq9_1 = args; this.hq9_1 = goOptions; } protoOf(NavigateNavCommand).toString = function () { return 'NavigateNavCommand(viewName=' + this.fq9_1 + ', args=' + this.gq9_1 + ', goOptions=' + this.hq9_1 + ')'; }; protoOf(NavigateNavCommand).hashCode = function () { var result = getStringHashCode(this.fq9_1); result = imul(result, 31) + hashCode(this.gq9_1) | 0; result = imul(result, 31) + this.hq9_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.fq9_1 === tmp0_other_with_cast.fq9_1)) return false; if (!equals(this.gq9_1, tmp0_other_with_cast.gq9_1)) return false; if (!this.hq9_1.equals(tmp0_other_with_cast.hq9_1)) return false; return true; }; function PopNavCommand(viewName, inclusive) { NavCommand.call(this, systemTimeInMillis()); this.jq9_1 = viewName; this.kq9_1 = inclusive; } protoOf(PopNavCommand).toString = function () { return 'PopNavCommand(viewName=' + this.jq9_1 + ', inclusive=' + this.kq9_1 + ')'; }; protoOf(PopNavCommand).hashCode = function () { var result = getStringHashCode(this.jq9_1); result = imul(result, 31) + getBooleanHashCode(this.kq9_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.jq9_1 === tmp0_other_with_cast.jq9_1)) return false; if (!(this.kq9_1 === tmp0_other_with_cast.kq9_1)) return false; return true; }; function NavResult(key, timestamp, result) { this.lq9_1 = key; this.mq9_1 = timestamp; this.nq9_1 = result; } protoOf(NavResult).toString = function () { return 'NavResult(key=' + this.lq9_1 + ', timestamp=' + this.mq9_1.toString() + ', result=' + toString_0(this.nq9_1) + ')'; }; protoOf(NavResult).hashCode = function () { var result = getStringHashCode(this.lq9_1); result = imul(result, 31) + this.mq9_1.hashCode() | 0; result = imul(result, 31) + (this.nq9_1 == null ? 0 : hashCode(this.nq9_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.lq9_1 === tmp0_other_with_cast.lq9_1)) return false; if (!this.mq9_1.equals(tmp0_other_with_cast.mq9_1)) return false; if (!equals(this.nq9_1, tmp0_other_with_cast.nq9_1)) return false; return true; }; function NavResultDest(viewName, key) { this.oq9_1 = viewName; this.pq9_1 = key; } function NavResultReturner() { } function NavResultReturnerImpl$resultFlowForKey$o$collect$slambda($$this$unsafeFlow, $key, resultContinuation) { this.aqa_1 = $$this$unsafeFlow; this.bqa_1 = $key; CoroutineImpl.call(this, resultContinuation); } protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).gqa = function (value, $completion) { var tmp = this.hqa(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.eqa_1 = this.aqa_1; var tmp_1 = this; tmp_1.fqa_1 = this.cqa_1; if (this.fqa_1.lq9_1 === this.bqa_1) { this.hd_1 = 3; suspendResult = this.eqa_1.n1e(this.fqa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 2: if (false) { this.hd_1 = 1; continue $sm; } this.hd_1 = 4; continue $sm; case 3: this.dqa_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).hqa = function (value, completion) { var i = new NavResultReturnerImpl$resultFlowForKey$o$collect$slambda(this.aqa_1, this.bqa_1, completion); i.cqa_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.gqa(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$49(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qqa_1 = _this__u8e3s4; this.rqa_1 = collector; } protoOf($collectCOROUTINE$49).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.sqa_1 = this.rqa_1; this.hd_1 = 1; var tmp_1 = NavResultReturnerImpl$resultFlowForKey$o$collect$slambda_0(this.sqa_1, this.qqa_1.uqa_1, null); suspendResult = this.qqa_1.tqa_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) { this.vqa_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).n1e = function (value, $completion) { return this.vqa_1(value, $completion); }; function _no_name_provided__qut3iv_0($this, $key) { this.tqa_1 = $this; this.uqa_1 = $key; } protoOf(_no_name_provided__qut3iv_0).wqa = function (collector, $completion) { var tmp = new $collectCOROUTINE$49(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_0).u1c = function (collector, $completion) { return this.wqa(collector, $completion); }; function NavResultReturnerImpl() { this.xqa_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); } protoOf(NavResultReturnerImpl).qq9 = function (key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = this.xqa_1; // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_0(this_0, key); }; protoOf(NavResultReturnerImpl).rq9 = function (result) { this.xqa_1.c1i(result); }; function UstadNavController() { } function BitmaskFlag(flagVal, stringResource, enabled) { enabled = enabled === VOID ? false : enabled; this.yqa_1 = flagVal; this.zqa_1 = stringResource; this.aqb_1 = enabled; } protoOf(BitmaskFlag).bqb = function (flagVal, stringResource, enabled) { return new BitmaskFlag(flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).cqb = function (flagVal, stringResource, enabled, $super) { flagVal = flagVal === VOID ? this.yqa_1 : flagVal; stringResource = stringResource === VOID ? this.zqa_1 : stringResource; enabled = enabled === VOID ? this.aqb_1 : enabled; return $super === VOID ? this.bqb(flagVal, stringResource, enabled) : $super.bqb.call(this, flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).toString = function () { return 'BitmaskFlag(flagVal=' + this.yqa_1.toString() + ', stringResource=' + this.zqa_1 + ', enabled=' + this.aqb_1 + ')'; }; protoOf(BitmaskFlag).hashCode = function () { var result = this.yqa_1.hashCode(); result = imul(result, 31) + this.zqa_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.aqb_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.yqa_1.equals(tmp0_other_with_cast.yqa_1)) return false; if (!this.zqa_1.equals(tmp0_other_with_cast.zqa_1)) return false; if (!(this.aqb_1 === tmp0_other_with_cast.aqb_1)) return false; return true; }; function ListPagingSource(list) { PagingSource.call(this); this.eqb_1 = list; } protoOf(ListPagingSource).w5s = function (params, $completion) { var tmp0_elvis_lhs = params.s2(); var startFrom = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; var loadSize = params.b55_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.eqb_1.u(); var b = startFrom + loadSize | 0; var tmp$ret$0 = Math.min(a, b); var subList = this.eqb_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.eqb_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).j55 = function (params, $completion) { return this.w5s(params, $completion); }; function RefreshCommand(time) { time = time === VOID ? systemTimeInMillis() : time; this.fqb_1 = time; } function generateUid(_this__u8e3s4) { return toLong(_this__u8e3s4.ba5_1.hashCode()).rc(32).vc(toLong(_this__u8e3s4.ca5_1.hashCode())); } function get_totalAttendeeStatusRecorded(_this__u8e3s4) { return (_this__u8e3s4.ha5_1 + _this__u8e3s4.ja5_1 | 0) + _this__u8e3s4.ia5_1 | 0; } function Activity(id, aType, lang) { lang = lang === VOID ? 'en' : lang; this.xp8_1 = aType; this.yp8_1 = lang; this.ap9_1 = null; this.bp9_1 = null; this.cp9_1 = null; this.dp9_1 = null; this.ep9_1 = new JsonObject(mapOf_0(to('id', JsonPrimitive_0(id)))); this.zp8_1 = id; } protoOf(Activity).gqb = function (key, value) { // Inline function 'kotlin.collections.isNullOrEmpty' call var this_0 = this.dp9_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.dp9_1 = LinkedHashMap_init_$Create$(); } // Inline function 'kotlin.collections.set' call ensureNotNull(this.dp9_1).s(key, value); }; function Companion_86() { this.sp8_1 = 1; } protoOf(Companion_86).hqb = function (xpp, parseFlags) { var tcxml = new TinCanXML(); var activity = null; var evtType = xpp.f7e(); var storeActivities = (parseFlags & this.sp8_1) === this.sp8_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.e7e() == null); } else { tmp = false; } if (tmp) { tagName = ensureNotNull(xpp.e7e()); if (!inExtensions) { if (tagName === 'activity') { activity = new Activity(ensureNotNull(xpp.g7e(null, 'id')), ensureNotNull(xpp.g7e(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).cp9_1 = xpp.d7e(); } 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).bp9_1 = xpp.d7e(); } 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).ap9_1 = xpp.d7e(); } else { if (xpp.e7e() === 'extensions') { inExtensions = true; } } } } } } else { if (tagName === 'extension') { extKey = ensureNotNull(xpp.g7e(null, 'key')); var tmp_7; var tmp_8 = xpp.e(); if (tmp_8 === 4) { var tmp0_elvis_lhs = xpp.d7e(); tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; } else { tmp_7 = ''; } extVal = tmp_7; ensureNotNull(activity).gqb(extKey, extVal); } } } else { var tmp_9 = evtType; if (tmp_9 === 3) { if (!(xpp.e7e() == null)) { if (xpp.e7e() === 'activity') { if (!(ensureNotNull(activity).cp9_1 == null)) { tcxml.up8_1 = activity; if (!storeActivities) { break $l$1; } } } else if (xpp.e7e() === 'extensions') { inExtensions = false; } } } } evtType = xpp.e(); } while (false); var tmp_10 = evtType; } while (!(tmp_10 === 1)); return tcxml; }; protoOf(Companion_86).tp8 = function (xpp, parseFlags, $super) { parseFlags = parseFlags === VOID ? 0 : parseFlags; return $super === VOID ? this.hqb(xpp, parseFlags) : $super.hqb.call(this, xpp, parseFlags); }; var Companion_instance_135; function Companion_getInstance_103() { return Companion_instance_135; } function TinCanXML() { this.up8_1 = null; this.vp8_1 = false; this.wp8_1 = null; } function Companion_87() { this.iqb_1 = 1000; } var Companion_instance_136; function Companion_getInstance_104() { return Companion_instance_136; } function UsernameSuggestionUseCase(filterUsernameUseCase, db) { this.jqb_1 = filterUsernameUseCase; this.kqb_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.oof_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.entryByUri.' call if (element.sof_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.aog_1; } function requireBodyUrlForUri(_this__u8e3s4, uri) { return requireEntryByUri(_this__u8e3s4, uri).aog_1; } function DiTag() { this.lqb_1 = 13; this.mqb_1 = 81; this.nqb_1 = 1; this.oqb_1 = 0; this.pqb_1 = 32; this.qqb_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.u1a(); 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.zqb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EventCollator2$receiveEvent$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EventCollator2$receiveEvent$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EventCollator2$receiveEvent$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = delay(this.zqb_1.bqc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zqb_1.fqc_1 = null; this.hd_1 = 2; suspendResult = this.zqb_1.dqc_1(tryReceiveAll(this.zqb_1.eqc_1, this.zqb_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EventCollator2$receiveEvent$slambda).p1n = function ($this$launch, completion) { var i = new EventCollator2$receiveEvent$slambda(this.zqb_1, completion); i.aqc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function EventCollator2(maxWaitTime, coroutineScope, capacity, onBufferOverflow, onCollate) { this.bqc_1 = maxWaitTime; this.cqc_1 = coroutineScope; this.dqc_1 = onCollate; this.eqc_1 = Channel(capacity, onBufferOverflow); this.fqc_1 = null; } protoOf(EventCollator2).m6y = function (event) { this.eqc_1.q1a(event); if (this.fqc_1 == null) { var tmp = this; tmp.fqc_1 = launch(this.cqc_1, VOID, VOID, EventCollator2$receiveEvent$slambda_0(this, null)); } }; function ExceptionWithStringResource() { } function Companion_88() { Companion_instance_137 = this; this.gqc_1 = -1; this.hqc_1 = new MessageIdOption2(strings_getInstance().qmk_1, this.gqc_1); } var Companion_instance_137; function Companion_getInstance_105() { if (Companion_instance_137 == null) new Companion_88(); return Companion_instance_137; } function MessageIdOption2(stringResource, value) { Companion_getInstance_105(); this.eq7_1 = stringResource; this.fq7_1 = value; } protoOf(MessageIdOption2).toString = function () { return 'MessageIdOption2(stringResource=' + this.eq7_1 + ', value=' + this.fq7_1 + ')'; }; protoOf(MessageIdOption2).hashCode = function () { var result = this.eq7_1.hashCode(); result = imul(result, 31) + this.fq7_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.eq7_1.equals(tmp0_other_with_cast.eq7_1)) return false; if (!(this.fq7_1 === tmp0_other_with_cast.fq7_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.iqc_1 = fieldMessageId; this.jqc_1 = flag; this.kqc_1 = order; } protoOf(SortOrderOption).toString = function () { return 'SortOrderOption(fieldMessageId=' + this.iqc_1 + ', flag=' + this.jqc_1 + ', order=' + this.kqc_1 + ')'; }; protoOf(SortOrderOption).hashCode = function () { var result = this.iqc_1.hashCode(); result = imul(result, 31) + this.jqc_1 | 0; result = imul(result, 31) + (this.kqc_1 == null ? 0 : getBooleanHashCode(this.kqc_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.iqc_1.equals(tmp0_other_with_cast.iqc_1)) return false; if (!(this.jqc_1 === tmp0_other_with_cast.jqc_1)) return false; if (!(this.kqc_1 == tmp0_other_with_cast.kqc_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.hp9_1 = _Char___init__impl__6a9atx(47); this.ip9_1 = 'file:///'; this.jp9_1 = new Long(1073741824, 0); this.kp9_1 = new Long(1048576, 0); this.lp9_1 = new Long(1024, 0); } protoOf(UMFileUtil).epi = 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).mp9 = 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).lqc = 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.lqc(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.mqc(item.s2()), Companion_instance_258.mqc(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.nqc(key)).z5(_Char___init__impl__6a9atx(61)); var tmp = Companion_instance_258; var tmp_0 = ht.q(key); sb.y5(tmp.nqc((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE())); } return sb.toString(); }; protoOf(UMFileUtil).oqc = 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).pqc = function (fileSize) { var fileSizeMb = roundTo(fileSize.zc() / 1048576, 2); return '' + fileSizeMb + ' MB'; }; var UMFileUtil_instance; function UMFileUtil_getInstance() { if (UMFileUtil_instance == null) new UMFileUtil(); return UMFileUtil_instance; } function Companion_89() { this.qqc_1 = '/#/'; } protoOf(Companion_89).rqc = 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).sqc = function (url, divider, $super) { divider = divider === VOID ? '/#/' : divider; return $super === VOID ? this.rqc(url, divider) : $super.rqc.call(this, url, divider); }; var Companion_instance_138; function Companion_getInstance_106() { return Companion_instance_138; } function UstadUrlComponents$arguments$delegate$lambda(this$0) { return function () { var parsedParams = UMFileUtil_getInstance().lqc(this$0.dom_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.mqc(item.s2()), Companion_instance_258.mqc(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.dom_1; if (charSequenceLength(this_0) === 0) { tmp = this$0.com_1; } else { tmp = this$0.com_1 + '?' + this$0.dom_1; } return tmp; }; } function UstadUrlComponents(learningSpace, viewName, queryString) { this.bom_1 = learningSpace; this.com_1 = viewName; this.dom_1 = queryString; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.eom_1 = lazy(tmp_0, UstadUrlComponents$arguments$delegate$lambda(this)); var tmp_1 = this; tmp_1.fom_1 = lazy_0(UstadUrlComponents$viewUri$delegate$lambda(this)); } protoOf(UstadUrlComponents).tqc = function () { // Inline function 'kotlin.getValue' call var this_0 = this.fom_1; viewUri$factory(); return this_0.t2(); }; protoOf(UstadUrlComponents).uqc = function (divider) { return UMFileUtil_getInstance().epi([this.bom_1, divider, this.tqc()]); }; protoOf(UstadUrlComponents).gom = function (divider, $super) { var tmp; if (divider === VOID) { Companion_getInstance_96(); tmp = '/umapp/#/'; } else { tmp = divider; } divider = tmp; return $super === VOID ? this.uqc(divider) : $super.uqc.call(this, divider); }; protoOf(UstadUrlComponents).toString = function () { return 'UstadUrlComponents(learningSpace=' + this.bom_1 + ', viewName=' + this.com_1 + ', queryString=' + this.dom_1 + ')'; }; protoOf(UstadUrlComponents).hashCode = function () { var result = getStringHashCode(this.bom_1); result = imul(result, 31) + getStringHashCode(this.com_1) | 0; result = imul(result, 31) + getStringHashCode(this.dom_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.bom_1 === tmp0_other_with_cast.bom_1)) return false; if (!(this.com_1 === tmp0_other_with_cast.com_1)) return false; if (!(this.dom_1 === tmp0_other_with_cast.dom_1)) return false; return true; }; function viewUri$factory() { return getPropertyCallableRef('viewUri', 1, KProperty1, function (receiver) { return receiver.tqc(); }, 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.m46(ListSerializer(Companion_instance_80.h4s()), tmp1_safe_receiver); } return tmp_0; } function paramMap(_this__u8e3s4, json) { var tmp0_safe_receiver = _this__u8e3s4.ybd_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.m46(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.hbx_1 * 100 / (_this__u8e3s4.fbx_1 + _this__u8e3s4.hbx_1); return roundToInt(this_0); } function textLength(_this__u8e3s4, limitType) { var tmp; if (limitType === 1) { var tmp0_safe_receiver = _this__u8e3s4.ic3_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.ic3_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.x7y_1) ? _this__u8e3s4.x7y_1.c7(_this__u8e3s4.v7y_1) > 0 : false) return _this__u8e3s4.x7y_1; else return _this__u8e3s4.v7y_1; } function maxScoreSummedIfModule(_this__u8e3s4, allBlocks) { var tmp = _this__u8e3s4.o7y_1; if (!(tmp === 100)) return _this__u8e3s4.y7y_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.q7y_1.equals(_this__u8e3s4.n7y_1)) { numModBlocks = numModBlocks + 1 | 0; var tmp_0 = totalModPoints; var tmp1_elvis_lhs = element.y7y_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.i8h_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().joh_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.coj(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.hq8_1; var tmp$ret$0 = to(item.fq8_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).z58(); // 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.x58(tmp$ret$0, null).boa(); var trigger = _this__u8e3s4.x57(); // 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.b58(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().tmw_1; case 1: return strings_getInstance().umw_1; case 2: return strings_getInstance().vmw_1; case 3: return strings_getInstance().wmw_1; case 4: return strings_getInstance().xmw_1; case 5: return strings_getInstance().ymw_1; case 6: return strings_getInstance().smw_1; default: return strings_getInstance().dmi_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.upe(); 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.coj(tmp1_safe_receiver); } var tmp3_elvis_lhs = tmp; var tmp_0; if (tmp3_elvis_lhs == null) { var tmp_1 = systemImpl.coj(strings_getInstance().mmi_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$50(_this__u8e3s4, endpointUrl, timeout, json, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function verifySite$lambda($timeout) { return function ($this$timeout) { $this$timeout.s3t($timeout); return Unit_instance; }; } function $verifySiteCOROUTINE$50(_this__u8e3s4, endpointUrl, timeout, json, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dqd_1 = _this__u8e3s4; this.eqd_1 = endpointUrl; this.fqd_1 = timeout; this.gqd_1 = json; } protoOf($verifySiteCOROUTINE$50).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hqd_1 = UMFileUtil_getInstance().epi([this.eqd_1, 'Site', 'verify']); var tmp_0 = this; tmp_0.iqd_1 = this.dqd_1; var tmp_1 = this; tmp_1.jqd_1 = this.hqd_1; var tmp_2 = this; tmp_2.kqd_1 = this.iqd_1; var tmp_3 = this; tmp_3.lqd_1 = this.kqd_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.jqd_1); header(this_0, 'cache-control', 'no-cache'); timeout(this_0, verifySite$lambda(this.fqd_1)); tmp_4.mqd_1 = this_0; this.mqd_1.q39_1 = Companion_getInstance().f2y_1; var tmp_5 = this; tmp_5.nqd_1 = this.lqd_1; var tmp_6 = this; tmp_6.oqd_1 = this.mqd_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.oqd_1, this.nqd_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pqd_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.pqd_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var responseStr = suspendResult; return this.gqd_1.m46(Companion_instance_31.h4s(), responseStr); case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function toMap_1(_this__u8e3s4) { var tmp; if (_this__u8e3s4 instanceof MapStringValues) { tmp = _this__u8e3s4.qqd_1; } else { // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.i2o(); // 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.h2o(item)); destination.i1(tmp$ret$0); } tmp = toMap(destination); } return tmp; } function toLocalMidnight(_this__u8e3s4, timeZoneId) { return toLocalMidnight_0(_this__u8e3s4, Companion_getInstance_9().rmg(timeZoneId)); } function toLocalEndOfDay(_this__u8e3s4, timeZoneId) { return toLocalEndOfDay_0(_this__u8e3s4, Companion_getInstance_9().rmg(timeZoneId)); } function isDateOfBirthAnAdult(_this__u8e3s4) { return ageInYears(_this__u8e3s4) >= UstadMobileConstants_getInstance().pq3_1; } function isDateOfBirthAMinor(_this__u8e3s4) { return ageInYears(_this__u8e3s4) < UstadMobileConstants_getInstance().oq3_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.umd(), Companion_getInstance_9().qmg_1).cme(); } function hasFlag(_this__u8e3s4, flag) { return (_this__u8e3s4 & flag) === flag; } function decodeStringMapFromString(_this__u8e3s4, string) { return _this__u8e3s4.m46(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), string); } function encodeStringMapToString(_this__u8e3s4, stringMap) { return _this__u8e3s4.l46(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.i4q(ListSerializer(serializer), element); } else { if (element instanceof JsonObject) { tmp = listOf_0(_this__u8e3s4.i4q(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.omh(), LocalTime_init_$Create$(0, 0, 0)); } function toLocalEndOfDay_1(_this__u8e3s4) { return LocalDateTime_init_$Create$(_this__u8e3s4.omh(), LocalTime_init_$Create$(23, 59, 59)); } function chopOffSeconds(_this__u8e3s4) { if (_this__u8e3s4.mmh() > 0 ? true : _this__u8e3s4.nmh() > 0) { return LocalDateTime_init_$Create$(_this__u8e3s4.omh(), LocalTime_init_$Create$(_this__u8e3s4.kmh(), _this__u8e3s4.lmh())); } else { return _this__u8e3s4; } } function chopOffSeconds_0(_this__u8e3s4) { if (_this__u8e3s4.mmh() > 0 ? true : _this__u8e3s4.nmh() > 0) return LocalTime_init_$Create$(_this__u8e3s4.kmh(), _this__u8e3s4.lmh()); 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 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.nqc(item.s2()) + '=' + Companion_instance_258.nqc(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.h1i(); // 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.rqd_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).n1e = function (value, $completion) { return this.rqd_1(value, $completion); }; function whenSubscribed$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.aqe_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$o$collect$slambda).c1j = function (value, $completion) { var tmp = this.d1j(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(whenSubscribed$o$collect$slambda).he = function (p1, $completion) { return this.c1j((!(p1 == null) ? typeof p1 === 'number' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(whenSubscribed$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.cqe_1 = this.aqe_1; var tmp_1 = this; tmp_1.dqe_1 = this.bqe_1; this.hd_1 = 1; var it = this.dqe_1; suspendResult = this.cqe_1.n1e(it > 0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(whenSubscribed$o$collect$slambda).d1j = function (value, completion) { var i = new whenSubscribed$o$collect$slambda(this.aqe_1, completion); i.bqe_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.c1j(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$51(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mqe_1 = _this__u8e3s4; this.nqe_1 = collector; } protoOf($collectCOROUTINE$51).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.oqe_1 = this.nqe_1; this.hd_1 = 1; var tmp_1 = whenSubscribed$o$collect$slambda_0(this.oqe_1, null); suspendResult = this.mqe_1.pqe_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_1($this) { this.pqe_1 = $this; } protoOf(_no_name_provided__qut3iv_1).qqe = function (collector, $completion) { var tmp = new $collectCOROUTINE$51(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_1).u1c = function (collector, $completion) { return this.qqe(collector, $completion); }; function whenSubscribed$slambda($block, resultContinuation) { this.zqe_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$slambda).bqf = function (active, $completion) { var tmp = this.cqf(active, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(whenSubscribed$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(whenSubscribed$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (this.aqf_1) { this.hd_1 = 1; suspendResult = this.zqe_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(whenSubscribed$slambda).cqf = function (active, completion) { var i = new whenSubscribed$slambda(this.zqe_1, completion); i.aqf_1 = active; return i; }; function whenSubscribed$slambda_0($block, resultContinuation) { var i = new whenSubscribed$slambda($block, resultContinuation); var l = function (active, $completion) { return i.bqf(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_95().sq3_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_138.sqc(link); learningSpaceUrl._v = urlComponents.bom_1; viewUri._v = urlComponents.tqc(); } 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.umd(), UstadMobileConstants_getInstance().pq3_1, Companion_getInstance_10().fmf_1, Companion_getInstance_9().qmg_1).amh(); } 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.boa().mnt_1) : false) { openExternalLinkUseCase.lpi(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.bq9(viewName, args, goOptions); } function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(function_0) { this.dqf_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1).ko0 = function (endpointUrl) { return this.dqf_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.mqf_1 = $accountName; this.nqf_1 = $learningSpaceUrl; this.oqf_1 = $accountManager; this.pqf_1 = $dontSetCurrentSession; this.qqf_1 = $this_navigateToLink; this.rqf_1 = $viewUri; this.sqf_1 = $goOptions; this.tqf_1 = $forceAccountSelection; this.uqf_1 = $maxDateOfBirth; this.vqf_1 = $checkRegistrationAllowedUseCase; CoroutineImpl.call(this, resultContinuation); } protoOf(navigateToLink$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(navigateToLink$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(navigateToLink$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 16; if (!(this.mqf_1 == null) ? !(this.nqf_1._v == null) : false) { this.hd_1 = 9; continue $sm; } else { if ((!this.tqf_1 ? !isTemporary(this.oqf_1.ko9().dnu_1) : false) ? this.nqf_1._v == null ? true : this.oqf_1.boa().mnt_1 === this.nqf_1._v : false) { navigateToViewUri(this.qqf_1, this.rqf_1._v, this.sqf_1); this.hd_1 = 15; continue $sm; } else { if (!(this.nqf_1._v == null)) { this.hd_1 = 1; var tmp_0 = navigateToLink$slambda$lambda_0(this.nqf_1); suspendResult = this.oqf_1.coa(this.uqf_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.zqf_1 = false; this.hd_1 = 2; continue $sm; } } } case 1: this.aqg_1 = suspendResult; this.zqf_1 = this.aqg_1 === 0; this.hd_1 = 2; continue $sm; case 2: if (this.zqf_1) { this.yqf_1 = true; this.hd_1 = 5; continue $sm; } else { if (this.nqf_1._v == null) { this.hd_1 = 3; suspendResult = this.oqf_1.doa(this.uqf_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.bqg_1 = false; this.hd_1 = 4; continue $sm; } } case 3: this.cqg_1 = suspendResult; this.bqg_1 = this.cqg_1 === 0; this.hd_1 = 4; continue $sm; case 4: this.yqf_1 = this.bqg_1; this.hd_1 = 5; continue $sm; case 5: if (this.yqf_1) { var tmp_1 = this; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_116(); this_0.s('next', this.rqf_1._v); Companion_getInstance_125(); this_0.s('noSessionChange', this.pqf_1.toString()); var tmp0_safe_receiver = this.nqf_1._v; if (tmp0_safe_receiver == null) null; else { Companion_getInstance_116(); this_0.s('learningSpaceUrl', tmp0_safe_receiver); } tmp_1.dqg_1 = this_0.f3(); this.eqg_1 = this.nqf_1._v; if (this.eqg_1 == null) { this.fqg_1 = null; this.hd_1 = 8; continue $sm; } else { var tmp_2 = this; tmp_2.gqg_1 = this.eqg_1; var tmp_3 = this; tmp_3.hqg_1 = this.gqg_1; var tmp_4 = this; var tmp0_safe_receiver_0 = this.vqf_1; tmp_4.iqg_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0(new LearningSpace(this.hqg_1)); if (this.iqg_1 == null) { this.jqg_1 = null; this.hd_1 = 7; continue $sm; } else { this.hd_1 = 6; suspendResult = this.iqg_1.zoh(this.rqf_1._v, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } else { var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_116(); this_1.s('next', this.rqf_1._v); Companion_getInstance_125(); this_1.s('noSessionChange', this.pqf_1.toString()); var tmp0_safe_receiver_1 = this.nqf_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_116(); this_1.s('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_116(); this_1.s('maxDob', this.uqf_1.toString()); var args = this_1.f3(); this.qqf_1.bq9('AccountList', toMap_0(args), this.sqf_1); this.hd_1 = 15; continue $sm; } case 6: this.jqg_1 = suspendResult; this.hd_1 = 7; continue $sm; case 7: this.fqg_1 = this.jqg_1; this.hd_1 = 8; continue $sm; case 8: this.kqg_1 = this.fqg_1; var tmp_5; if (this.kqg_1 === false) { tmp_5 = 'Login'; } else { tmp_5 = 'AddAccountSelectNewOrExisting'; } this.qqf_1.dp6(tmp_5, this.dqg_1); this.hd_1 = 15; continue $sm; case 9: this.hd_1 = 10; var tmp_6 = navigateToLink$slambda$lambda(this.nqf_1); suspendResult = this.oqf_1.lo9(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.hd_1 = 11; continue $sm; case 11: if (!tmp0_iterator.f()) { this.hd_1 = 13; continue $sm; } var element = tmp0_iterator.e(); if (element.enu_1.a97_1 === substringBefore_0(this.mqf_1, '@')) { this.xqf_1 = element; this.hd_1 = 14; continue $sm; } else { this.hd_1 = 12; continue $sm; } case 12: this.hd_1 = 11; continue $sm; case 13: this.xqf_1 = null; if (false) { this.hd_1 = 9; continue $sm; } this.hd_1 = 14; continue $sm; case 14: var session = this.xqf_1; if (!(session == null)) { var this_2 = this.oqf_1; var tmp_7; if (!this.pqf_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.enx(session); } navigateToViewUri(this.qqf_1, this.rqf_1._v, this.sqf_1); } this.hd_1 = 15; continue $sm; case 15: return Unit_instance; case 16: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 16) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(navigateToLink$slambda).p1n = function ($this$launch, completion) { var i = new navigateToLink$slambda(this.mqf_1, this.nqf_1, this.oqf_1, this.pqf_1, this.qqf_1, this.rqf_1, this.sqf_1, this.tqf_1, this.uqf_1, this.vqf_1, completion); i.wqf_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function isGuestUser(_this__u8e3s4) { return _this__u8e3s4.a97_1 == null; } function toUmAccount(_this__u8e3s4, endpointUrl) { return new UmAccount(_this__u8e3s4.z96_1, _this__u8e3s4.a97_1, '', endpointUrl, _this__u8e3s4.b97_1, _this__u8e3s4.c97_1); } function personFullName(_this__u8e3s4) { var tmp0_elvis_lhs = _this__u8e3s4.b97_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.c97_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); } function toXapiAgent(_this__u8e3s4, learningSpace) { var tmp = personFullName(_this__u8e3s4); var tmp0_elvis_lhs = _this__u8e3s4.a97_1; var tmp1_name = tmp0_elvis_lhs == null ? _this__u8e3s4.z96_1.toString() : tmp0_elvis_lhs; var tmp2_homePage = learningSpace.mnt_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 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 requirePostfix(_this__u8e3s4, postFix, ignoreCase) { ignoreCase = ignoreCase === VOID ? false : ignoreCase; return endsWith(_this__u8e3s4, postFix, ignoreCase) ? _this__u8e3s4 : _this__u8e3s4 + postFix; } function appendSelectedAccount(_this__u8e3s4, personUid, learningSpace) { Companion_getInstance_125(); var tmp = to('selectedAccountPersonUid', personUid.toString()); Companion_getInstance_125(); return appendQueryArgs(_this__u8e3s4, mapOf([tmp, to('selectedAccountEndpointUrl', learningSpace.mnt_1)])); } 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 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.umd() : instant; return gmtOffsetString(offsetAt(_this__u8e3s4, instant)) + ' ' + _this__u8e3s4.umg(); } function get_progressAsFloat(_this__u8e3s4) { var tmp = _this__u8e3s4.vcc_1.zc(); // Inline function 'kotlin.takeIf' call var this_0 = _this__u8e3s4.ucc_1.zc(); // 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$52(_this__u8e3s4, entity, groupFlag, $completion); tmp_0.jd_1 = Unit_instance; tmp_0.kd_1 = null; return tmp_0.ud(); } function localFirstThenRepoIfFalse(_this__u8e3s4, block, $completion) { var tmp = new $localFirstThenRepoIfFalseCOROUTINE$53(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function ScopedGrantResult(sgUid) { this.pqh_1 = sgUid; } protoOf(ScopedGrantResult).toString = function () { return 'ScopedGrantResult(sgUid=' + this.pqh_1.toString() + ')'; }; protoOf(ScopedGrantResult).hashCode = function () { return this.pqh_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.pqh_1.equals(tmp0_other_with_cast.pqh_1)) return false; return true; }; function grantScopedPermission(_this__u8e3s4, toPerson, permissions, scopeTableId, scopeEntityUid, $completion) { return grantScopedPermission_0(_this__u8e3s4, toPerson.l97_1, permissions, scopeTableId, scopeEntityUid, $completion); } function grantScopedPermission_0(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion) { var tmp = new $grantScopedPermissionCOROUTINE$54(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function localFirstThenRepoIfNull(_this__u8e3s4, block, $completion) { var tmp = new $localFirstThenRepoIfNullCOROUTINE$55(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertPersonAndGroupCOROUTINE$52(_this__u8e3s4, entity, groupFlag, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tqg_1 = _this__u8e3s4; this.uqg_1 = entity; this.vqg_1 = groupFlag; } protoOf($insertPersonAndGroupCOROUTINE$52).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp_0 = this; var this_0 = new PersonGroup(); this_0.bgb_1 = 'Person individual group'; this_0.dgb_1 = this.vqg_1; tmp_0.wqg_1 = this_0; this.hd_1 = 1; suspendResult = this.tqg_1.x7e().insertAsync(this.wqg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xqg_1 = suspendResult; this.wqg_1.wga_1 = this.xqg_1; this.uqg_1.l97_1 = this.wqg_1.wga_1; this.hd_1 = 2; suspendResult = this.tqg_1.h7e().insertAsync(this.uqg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.yqg_1 = suspendResult; this.uqg_1.z96_1 = this.yqg_1; this.hd_1 = 3; suspendResult = this.tqg_1.y7e().insertAsync(PersonGroupMember_init_$Create$(this.uqg_1.z96_1, this.uqg_1.l97_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; Companion_getInstance_2(); var tmp_1 = new Long(-1, 2147483647); suspendResult = grantScopedPermission(this.tqg_1, this.uqg_1, tmp_1, 9, this.uqg_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return this.uqg_1; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $localFirstThenRepoIfFalseCOROUTINE$53(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hqh_1 = _this__u8e3s4; this.iqh_1 = block; } protoOf($localFirstThenRepoIfFalseCOROUTINE$53).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1 = this.hqh_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r5j(); tmp_0.jqh_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.kqh_1 = this.jqh_1; if (this.kqh_1 == null) { this.lqh_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.mqh_1 = this.kqh_1; var tmp_4 = this; tmp_4.nqh_1 = this.mqh_1; this.hd_1 = 1; suspendResult = this.iqh_1(this.nqh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.lqh_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.oqh_1 = this.lqh_1; if (this.oqh_1 === true) return this.oqh_1; this.hd_1 = 3; suspendResult = this.iqh_1(this.hqh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return suspendResult; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $grantScopedPermissionCOROUTINE$54(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yqh_1 = _this__u8e3s4; this.zqh_1 = toGroupUid; this.aqi_1 = permissions; this.bqi_1 = scopeTableId; this.cqi_1 = scopeEntityUid; } protoOf($grantScopedPermissionCOROUTINE$54).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.yqh_1.s7f(); var this_0 = new ScopedGrant(); this_0.rhl_1 = this.zqh_1; this_0.qhl_1 = this.aqi_1; this_0.ohl_1 = this.bqi_1; this_0.phl_1 = this.cqi_1; suspendResult = tmp_0.uhk(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $localFirstThenRepoIfNullCOROUTINE$55(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lqi_1 = _this__u8e3s4; this.mqi_1 = block; } protoOf($localFirstThenRepoIfNullCOROUTINE$55).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1 = this.lqi_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r5j(); tmp_0.nqi_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.oqi_1 = this.nqi_1; if (this.oqi_1 == null) { this.pqi_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.qqi_1 = this.oqi_1; var tmp_4 = this; tmp_4.rqi_1 = this.qqi_1; this.hd_1 = 1; suspendResult = this.mqi_1(this.rqi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.pqi_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.sqi_1 = this.pqi_1; if (!(this.sqi_1 == null)) return this.sqi_1; this.hd_1 = 3; suspendResult = this.mqi_1(this.lqi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return suspendResult; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function withLearningSpace(_this__u8e3s4, learningSpace) { var tmp0_elvis_lhs = _this__u8e3s4.eik_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.cik_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.bik_1; var tmp_0 = tmp & 8; return tmp_0 === 8; } function setIfNoValueSetYet(_this__u8e3s4, key, value) { if (_this__u8e3s4.ba(key) == null) { _this__u8e3s4.tqi(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.ymh() / 3600 | 0; // Inline function 'kotlin.mod' call var r = _this__u8e3s4.ymh() % 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.mjl_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yjj_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.ljl_1.sjj_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.ll5(); while (!((_this__u8e3s4.e().equals(EventType_END_ELEMENT_getInstance()) ? _this__u8e3s4.ll5() === (initDepth - 1 | 0) : false) ? _this__u8e3s4.dc().equals(initTagName) : false)) { switch (_this__u8e3s4.ql5().za_1) { case 1: if (_this__u8e3s4.dc().hl9() === 'img') { var tmp1_elvis_lhs = _this__u8e3s4.g7e(null, 'alt'); var textVal = tmp1_elvis_lhs == null ? _this__u8e3s4.g7e(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.ol5())); break; default: break; } } return this_0.toString(); } function emptyStringValues() { return new MapStringValues(emptyMap()); } function Companion_90() { } protoOf(Companion_90).v4e = function () { return new MapStringValues(emptyMap()); }; protoOf(Companion_90).h4s = function () { return new StringValuesSerializer(); }; protoOf(Companion_90).p4h = function (typeParamsSerializers) { return this.h4s(); }; var Companion_instance_139; function Companion_getInstance_107() { return Companion_instance_139; } function IStringValues() { } function MapStringValues(map) { this.qqd_1 = map; } protoOf(MapStringValues).h2o = function (key) { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.qqd_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).i2o = function () { return this.qqd_1.o2(); }; function asIStringValues(_this__u8e3s4) { return new MapStringValues(_this__u8e3s4); } function StringValuesSerializer() { this.uqi_1 = MapSerializer(serializer_0(StringCompanionObject_instance), ListSerializer(serializer_0(StringCompanionObject_instance))); this.vqi_1 = SerialDescriptor('StringValuesSerializer', this.uqi_1.k45()); } protoOf(StringValuesSerializer).k45 = function () { return this.vqi_1; }; protoOf(StringValuesSerializer).m45 = function (decoder) { var stringMap = decoder.b49(this.uqi_1); return new MapStringValues(stringMap); }; protoOf(StringValuesSerializer).wqi = function (encoder, value) { encoder.t4a(this.uqi_1, toMap_1(value)); }; protoOf(StringValuesSerializer).l45 = function (encoder, value) { return this.wqi(encoder, (!(value == null) ? isInterface(value, IStringValues) : false) ? value : THROW_CCE()); }; function Companion_91() { this.xqi_1 = 'errCode'; this.yqi_1 = 'msg'; this.zqi_1 = 'stacktraceKey'; this.aqj_1 = 'fromUri'; this.bqj_1 = 'ErrorReport'; } var Companion_instance_140; function Companion_getInstance_108() { return Companion_instance_140; } function Companion_92() { this.cqj_1 = 'HolidayCalendarDetail'; } var Companion_instance_141; function Companion_getInstance_109() { return Companion_instance_141; } function Companion_93() { this.dqj_1 = 'InviteViaLink'; } var Companion_instance_142; function Companion_getInstance_110() { return Companion_instance_142; } function Companion_94() { this.eqj_1 = 'LanguageDetailView'; } var Companion_instance_143; function Companion_getInstance_111() { return Companion_instance_143; } function Companion_95() { this.fqj_1 = 'LanguageEditEditView'; } var Companion_instance_144; function Companion_getInstance_112() { return Companion_instance_144; } function Companion_96() { this.gqj_1 = 'ScopedGrantDetail'; } var Companion_instance_145; function Companion_getInstance_113() { return Companion_instance_145; } function Companion_97() { this.hqj_1 = 'SiteTermsDetailView'; this.iqj_1 = 'SiteTermsDetailAcceptTerms'; this.jqj_1 = 'useDisplayLocale'; this.kqj_1 = 'showAccept'; } var Companion_instance_146; function Companion_getInstance_114() { return Companion_instance_146; } function Companion_98() { Companion_instance_147 = this; this.lqj_1 = 'entity'; this.mqj_1 = new Long(200, 0); } var Companion_instance_147; function Companion_getInstance_115() { if (Companion_instance_147 == null) new Companion_98(); return Companion_instance_147; } 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.pqj_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_148 = this; this.qqj_1 = 'entityUid'; this.rqj_1 = 'containerUid'; this.sqj_1 = 'parentUid'; this.tqj_1 = 'parentTitle'; this.uqj_1 = 'entryid'; this.vqj_1 = 'statementVerUid'; this.wqj_1 = 'contextRegistrationIdHi'; this.xqj_1 = 'contextRegistrationIdLo'; this.yqj_1 = 'learnerGroupUid'; this.zqj_1 = 'noiframe'; this.aqk_1 = 'schoolUid'; this.bqk_1 = 'content_type'; this.cqk_1 = 'filterBySchoolUid'; this.dqk_1 = 'filterByRole'; this.eqk_1 = 'listMode'; this.fqk_1 = 'getResultMode'; this.gqk_1 = 'listAddMode'; this.hqk_1 = 'filterByPermission'; this.iqk_1 = 'clazzUid'; this.jqk_1 = 'filterByPersonGroupUid'; this.kqk_1 = 'filterByEnrolmentRole'; this.lqk_1 = 'clazzAssignmentUid'; this.mqk_1 = 'clazzAssignmentSubmitterUid'; this.nqk_1 = 'personUid'; this.oqk_1 = 'next'; this.pqk_1 = 'site'; this.qqk_1 = 'learningSpaceUrl'; this.rqk_1 = 'openLink'; this.sqk_1 = 'account'; this.tqk_1 = 'accountEndpoint'; this.uqk_1 = 'snack_message'; this.vqk_1 = 'argCode'; this.wqk_1 = 'argCodeTable'; this.xqk_1 = 'argEntityName'; this.yqk_1 = ''; this.zqk_1 = 'root'; this.aql_1 = 'current'; this.bql_1 = 'goToComplete'; this.cql_1 = 'saveDb'; this.dql_1 = 'popUpToOnFinish'; this.eql_1 = 'result_dest'; this.fql_1 = 'result_viewname'; this.gql_1 = 'registration_allowed'; this.hql_1 = 'result_key'; this.iql_1 = 'intMsg'; this.jql_1 = 'title'; this.kql_1 = 'navChild'; this.lql_1 = 'activeTabIndex'; this.mql_1 = 'maxDob'; this.nql_1 = new Long(1, -955361223); } var Companion_instance_148; function Companion_getInstance_116() { if (Companion_instance_148 == null) new Companion_99(); return Companion_instance_148; } function DetailViewModel(di, savedStateHandle, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); var tmp = this; Companion_getInstance_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.jqm_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.iqo_1 = errorReport; this.jqo_1 = fieldsEnabled; } protoOf(ErrorReportUiState).toString = function () { return 'ErrorReportUiState(errorReport=' + this.iqo_1 + ', fieldsEnabled=' + this.jqo_1 + ')'; }; protoOf(ErrorReportUiState).hashCode = function () { var result = this.iqo_1 == null ? 0 : hashCode(this.iqo_1); result = imul(result, 31) + getBooleanHashCode(this.jqo_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.iqo_1, tmp0_other_with_cast.iqo_1)) return false; if (!(this.jqo_1 === tmp0_other_with_cast.jqo_1)) return false; return true; }; function HolidayCalendarDetailUIState(holidayCalendar, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; holidayList = holidayList === VOID ? emptyList() : holidayList; this.kqo_1 = holidayCalendar; this.lqo_1 = holidayList; } protoOf(HolidayCalendarDetailUIState).toString = function () { return 'HolidayCalendarDetailUIState(holidayCalendar=' + this.kqo_1 + ', holidayList=' + this.lqo_1 + ')'; }; protoOf(HolidayCalendarDetailUIState).hashCode = function () { var result = this.kqo_1 == null ? 0 : hashCode(this.kqo_1); result = imul(result, 31) + hashCode(this.lqo_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.kqo_1, tmp0_other_with_cast.kqo_1)) return false; if (!equals(this.lqo_1, tmp0_other_with_cast.lqo_1)) return false; return true; }; function Companion_100() { this.mqo_1 = 'HolidayCalendarEdit'; } var Companion_instance_149; function Companion_getInstance_117() { return Companion_instance_149; } function HolidayCalendarEditUiState(holidayCalendar, fieldsEnabled, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; holidayList = holidayList === VOID ? emptyList() : holidayList; this.nqo_1 = holidayCalendar; this.oqo_1 = fieldsEnabled; this.pqo_1 = holidayList; } protoOf(HolidayCalendarEditUiState).toString = function () { return 'HolidayCalendarEditUiState(holidayCalendar=' + this.nqo_1 + ', fieldsEnabled=' + this.oqo_1 + ', holidayList=' + this.pqo_1 + ')'; }; protoOf(HolidayCalendarEditUiState).hashCode = function () { var result = this.nqo_1 == null ? 0 : hashCode(this.nqo_1); result = imul(result, 31) + getBooleanHashCode(this.oqo_1) | 0; result = imul(result, 31) + (this.pqo_1 == null ? 0 : hashCode(this.pqo_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.nqo_1, tmp0_other_with_cast.nqo_1)) return false; if (!(this.oqo_1 === tmp0_other_with_cast.oqo_1)) return false; if (!equals(this.pqo_1, tmp0_other_with_cast.pqo_1)) return false; return true; }; function Companion_101() { this.qqo_1 = 'HolidayCalendarList'; } var Companion_instance_150; function Companion_getInstance_118() { return Companion_instance_150; } function HolidayCalendarListUiState(holidayCalendarList) { var tmp; if (holidayCalendarList === VOID) { // Inline function 'kotlin.collections.listOf' call tmp = emptyList(); } else { tmp = holidayCalendarList; } holidayCalendarList = tmp; this.rqo_1 = holidayCalendarList; } protoOf(HolidayCalendarListUiState).toString = function () { return 'HolidayCalendarListUiState(holidayCalendarList=' + this.rqo_1 + ')'; }; protoOf(HolidayCalendarListUiState).hashCode = function () { return hashCode(this.rqo_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.rqo_1, tmp0_other_with_cast.rqo_1)) return false; return true; }; function LanguageDetailUiState(language) { language = language === VOID ? null : language; this.sqo_1 = language; } protoOf(LanguageDetailUiState).toString = function () { return 'LanguageDetailUiState(language=' + this.sqo_1 + ')'; }; protoOf(LanguageDetailUiState).hashCode = function () { return this.sqo_1 == null ? 0 : this.sqo_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.sqo_1, tmp0_other_with_cast.sqo_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.tqo_1 = language; this.uqo_1 = fieldsEnabled; this.vqo_1 = languageNameError; this.wqo_1 = twoLettersCodeError; this.xqo_1 = threeLettersCodeError; } protoOf(LanguageEditUiState).toString = function () { return 'LanguageEditUiState(language=' + this.tqo_1 + ', fieldsEnabled=' + this.uqo_1 + ', languageNameError=' + this.vqo_1 + ', twoLettersCodeError=' + this.wqo_1 + ', threeLettersCodeError=' + this.xqo_1 + ')'; }; protoOf(LanguageEditUiState).hashCode = function () { var result = this.tqo_1 == null ? 0 : this.tqo_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.uqo_1) | 0; result = imul(result, 31) + (this.vqo_1 == null ? 0 : getStringHashCode(this.vqo_1)) | 0; result = imul(result, 31) + (this.wqo_1 == null ? 0 : getStringHashCode(this.wqo_1)) | 0; result = imul(result, 31) + (this.xqo_1 == null ? 0 : getStringHashCode(this.xqo_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.tqo_1, tmp0_other_with_cast.tqo_1)) return false; if (!(this.uqo_1 === tmp0_other_with_cast.uqo_1)) return false; if (!(this.vqo_1 == tmp0_other_with_cast.vqo_1)) return false; if (!(this.wqo_1 == tmp0_other_with_cast.wqo_1)) return false; if (!(this.xqo_1 == tmp0_other_with_cast.xqo_1)) return false; return true; }; function Companion_102() { this.yqo_1 = 'LanguageList'; } var Companion_instance_151; function Companion_getInstance_119() { return Companion_instance_151; } function LanguageListUiState(languageList, sortOptions, sortOrder) { languageList = languageList === VOID ? emptyList() : languageList; var tmp; if (sortOptions === VOID) { var tmp_0 = strings_getInstance().lmk_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().lmk_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().ymk_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().ymk_1; var tmp_7 = new SortOrderOption(tmp_6, 4, false); var tmp_8 = strings_getInstance().zmk_1; var tmp_9 = new SortOrderOption(tmp_8, 5, true); var tmp_10 = strings_getInstance().zmk_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.zqo_1 = languageList; this.aqp_1 = sortOptions; this.bqp_1 = sortOrder; } protoOf(LanguageListUiState).toString = function () { return 'LanguageListUiState(languageList=' + this.zqo_1 + ', sortOptions=' + this.aqp_1 + ', sortOrder=' + this.bqp_1 + ')'; }; protoOf(LanguageListUiState).hashCode = function () { var result = hashCode(this.zqo_1); result = imul(result, 31) + hashCode(this.aqp_1) | 0; result = imul(result, 31) + this.bqp_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.zqo_1, tmp0_other_with_cast.zqo_1)) return false; if (!equals(this.aqp_1, tmp0_other_with_cast.aqp_1)) return false; if (!this.bqp_1.equals(tmp0_other_with_cast.bqp_1)) return false; return true; }; function LeavingReasonEditViewModel$slambda$slambda($savedStateHandle, resultContinuation) { this.kqp_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda).mqp = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.mqp(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.lqp_1.o7e(); Companion_getInstance_116(); var tmp0_safe_receiver = this.kqp_1.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.rfi(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).ony = function (it, completion) { var i = new LeavingReasonEditViewModel$slambda$slambda(this.kqp_1, completion); i.lqp_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.mqp(it, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda_1).vqp = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.vqp($completion); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = new LeavingReason(); this_0.o95_1 = ''; return this_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).f79 = 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.vqp($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.tqq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel...' call var nextValue = prevValue.yqq(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_103() { this.zqq_1 = 'LeavingReasonEdit'; } var Companion_instance_152; function Companion_getInstance_120() { return Companion_instance_152; } function LeavingReasonEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.iqr_1 = this$0; this.jqr_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.lqr_1 = Companion_getInstance_11().h4s(); this.hd_1 = 1; var tmp_0 = LeavingReasonEditViewModel$slambda$slambda_0(this.jqr_1, null); var tmp_1 = LeavingReasonEditViewModel$slambda$slambda_2(null); suspendResult = this.iqr_1.zqn(this.lqr_1, VOID, VOID, tmp_0, tmp_1, LeavingReasonEditViewModel$slambda$lambda(this.iqr_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.iqr_1.tqq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yqq(VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(LeavingReasonEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new LeavingReasonEditViewModel$slambda(this.iqr_1, this.jqr_1, completion); i.kqr_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.uqr_1 = $commitDelay; this.vqr_1 = $entity; this.wqr_1 = $this; this.xqr_1 = $key; this.yqr_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.uqr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vqr_1 == null)) { this.hd_1 = 2; suspendResult = this.wqr_1.vqn(this.wqr_1.pqm_1, this.xqr_1, this.yqr_1, this.vqr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new LeavingReasonEditViewModel$onEntityChanged$slambda(this.uqr_1, this.vqr_1, this.wqr_1, this.xqr_1, this.yqr_1, completion); i.zqr_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'LeavingReasonEdit'); this.tqq_1 = MutableStateFlow(new LeavingReasonEditUiState(VOID, VOID, false)); this.uqq_1 = asStateFlow(this.tqq_1); var tmp = this.gqn(); launch(tmp, VOID, VOID, LeavingReasonEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(LeavingReasonEditViewModel).aqs = function (leavingReason) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel.onEntityChanged.' call var nextValue = prevValue.yqq(leavingReason); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_11().h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.wqs_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.vqq_1 = leavingReason; this.wqq_1 = reasonTitleError; this.xqq_1 = fieldsEnabled; } protoOf(LeavingReasonEditUiState).bqt = function (leavingReason, reasonTitleError, fieldsEnabled) { return new LeavingReasonEditUiState(leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).yqq = function (leavingReason, reasonTitleError, fieldsEnabled, $super) { leavingReason = leavingReason === VOID ? this.vqq_1 : leavingReason; reasonTitleError = reasonTitleError === VOID ? this.wqq_1 : reasonTitleError; fieldsEnabled = fieldsEnabled === VOID ? this.xqq_1 : fieldsEnabled; return $super === VOID ? this.bqt(leavingReason, reasonTitleError, fieldsEnabled) : $super.bqt.call(this, leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).toString = function () { return 'LeavingReasonEditUiState(leavingReason=' + this.vqq_1 + ', reasonTitleError=' + this.wqq_1 + ', fieldsEnabled=' + this.xqq_1 + ')'; }; protoOf(LeavingReasonEditUiState).hashCode = function () { var result = this.vqq_1 == null ? 0 : hashCode(this.vqq_1); result = imul(result, 31) + (this.wqq_1 == null ? 0 : getStringHashCode(this.wqq_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xqq_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.vqq_1, tmp0_other_with_cast.vqq_1)) return false; if (!(this.wqq_1 == tmp0_other_with_cast.wqq_1)) return false; if (!(this.xqq_1 === tmp0_other_with_cast.xqq_1)) return false; return true; }; function Companion_104() { this.cqt_1 = 'ReportFilterEdit'; } var Companion_instance_153; function Companion_getInstance_121() { return Companion_instance_153; } 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.dqt_1 = fieldError; this.eqt_1 = conditionsError; this.fqt_1 = valuesError; this.gqt_1 = fieldsEnabled; this.hqt_1 = reportFilter; this.iqt_1 = uidAndLabelList; this.jqt_1 = createNewFilter; this.kqt_1 = reportFilterValueVisible; this.lqt_1 = reportFilterBetweenValueVisible; this.mqt_1 = reportFilterUidAndLabelListVisible; } protoOf(ReportFilterEditUiState).toString = function () { return 'ReportFilterEditUiState(fieldError=' + this.dqt_1 + ', conditionsError=' + this.eqt_1 + ', valuesError=' + this.fqt_1 + ', fieldsEnabled=' + this.gqt_1 + ', reportFilter=' + this.hqt_1 + ', uidAndLabelList=' + this.iqt_1 + ', createNewFilter=' + this.jqt_1 + ', reportFilterValueVisible=' + this.kqt_1 + ', reportFilterBetweenValueVisible=' + this.lqt_1 + ', reportFilterUidAndLabelListVisible=' + this.mqt_1 + ')'; }; protoOf(ReportFilterEditUiState).hashCode = function () { var result = this.dqt_1 == null ? 0 : getStringHashCode(this.dqt_1); result = imul(result, 31) + (this.eqt_1 == null ? 0 : getStringHashCode(this.eqt_1)) | 0; result = imul(result, 31) + (this.fqt_1 == null ? 0 : getStringHashCode(this.fqt_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.gqt_1) | 0; result = imul(result, 31) + (this.hqt_1 == null ? 0 : this.hqt_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.iqt_1) | 0; result = imul(result, 31) + getStringHashCode(this.jqt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kqt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lqt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mqt_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.dqt_1 == tmp0_other_with_cast.dqt_1)) return false; if (!(this.eqt_1 == tmp0_other_with_cast.eqt_1)) return false; if (!(this.fqt_1 == tmp0_other_with_cast.fqt_1)) return false; if (!(this.gqt_1 === tmp0_other_with_cast.gqt_1)) return false; if (!equals(this.hqt_1, tmp0_other_with_cast.hqt_1)) return false; if (!equals(this.iqt_1, tmp0_other_with_cast.iqt_1)) return false; if (!(this.jqt_1 === tmp0_other_with_cast.jqt_1)) return false; if (!(this.kqt_1 === tmp0_other_with_cast.kqt_1)) return false; if (!(this.lqt_1 === tmp0_other_with_cast.lqt_1)) return false; if (!(this.mqt_1 === tmp0_other_with_cast.mqt_1)) return false; return true; }; function ScopedGrantDetailUiState(entity, bitmaskList) { entity = entity === VOID ? null : entity; bitmaskList = bitmaskList === VOID ? emptyList() : bitmaskList; this.nqt_1 = entity; this.oqt_1 = bitmaskList; } protoOf(ScopedGrantDetailUiState).toString = function () { return 'ScopedGrantDetailUiState(entity=' + this.nqt_1 + ', bitmaskList=' + this.oqt_1 + ')'; }; protoOf(ScopedGrantDetailUiState).hashCode = function () { var result = this.nqt_1 == null ? 0 : hashCode(this.nqt_1); result = imul(result, 31) + hashCode(this.oqt_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.nqt_1, tmp0_other_with_cast.nqt_1)) return false; if (!equals(this.oqt_1, tmp0_other_with_cast.oqt_1)) return false; return true; }; function Companion_105() { this.pqt_1 = 'ScopedGrantEdit'; this.qqt_1 = 'grantToGroup'; this.rqt_1 = 'grantToName'; this.sqt_1 = 'grantTableId'; this.tqt_1 = 'grantEntityUid'; this.uqt_1 = 'permissionList'; } var Companion_instance_154; function Companion_getInstance_122() { return Companion_instance_154; } 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.vqt_1 = entity; this.wqt_1 = bitmaskList; } protoOf(ScopedGrantEditUiState).toString = function () { return 'ScopedGrantEditUiState(entity=' + this.vqt_1 + ', bitmaskList=' + this.wqt_1 + ')'; }; protoOf(ScopedGrantEditUiState).hashCode = function () { var result = this.vqt_1 == null ? 0 : hashCode(this.vqt_1); result = imul(result, 31) + hashCode(this.wqt_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.vqt_1, tmp0_other_with_cast.vqt_1)) return false; if (!equals(this.wqt_1, tmp0_other_with_cast.wqt_1)) return false; return true; }; function Companion_106() { Companion_instance_155 = this; this.xqt_1 = new Long(200, 0); this.yqt_1 = 'initPicUri'; } var Companion_instance_155; function Companion_getInstance_123() { if (Companion_instance_155 == null) new Companion_106(); return Companion_instance_155; } function UstadEditViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_123(); UstadViewModel.call(this, di, savedStateHandle, destinationName); this.wqs_1 = null; var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.xqs_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } protoOf(UstadEditViewModel).yqs = function (detailViewName, entityUid, result, detailViewExtraArgs) { Companion_getInstance_116(); var popUpToViewName = this.pqm_1.ba('result_viewname'); Companion_getInstance_116(); var saveToKey = this.pqm_1.ba('result_key'); Companion_getInstance_125(); var createdNewEntity = this.pqm_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_125(); this_0.s('entityUid', entityUid.toString()); var tmp = this_0.f3(); Companion_getInstance_116(); this.rqm_1.bq9(detailViewName, tmp, new UstadGoOptions('', true)); } else { this.aqt(result); } }; protoOf(UstadEditViewModel).zqs = function (detailViewName, entityUid, result, detailViewExtraArgs, $super) { detailViewExtraArgs = detailViewExtraArgs === VOID ? emptyMap() : detailViewExtraArgs; var tmp; if ($super === VOID) { this.yqs(detailViewName, entityUid, result, detailViewExtraArgs); tmp = Unit_instance; } else { tmp = $super.yqs.call(this, detailViewName, entityUid, result, detailViewExtraArgs); } return tmp; }; protoOf(UstadEditViewModel).zqt = function (newEntityStringResource, editEntityStringResource) { var tmp; if (!this.xqs_1.equals(new Long(0, 0))) { tmp = true; } else { Companion_getInstance_115(); tmp = !(this.pqm_1.ba('entity') == null); } var isEditing = tmp; var tmp_0 = this.pqn(); var tmp_1; if (isEditing) { tmp_1 = editEntityStringResource; } else { tmp_1 = newEntityStringResource; } return tmp_0.coj(tmp_1); }; protoOf(UstadEditViewModel).aqu = function (prevFieldValue, currentFieldValue, currentErrorMessage) { return currentErrorMessage == null ? null : !equals(prevFieldValue, currentFieldValue) ? null : currentErrorMessage; }; function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.lqu_1 = this$0; this.mqu_1 = $fabStringResource; this.nqu_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).bqf = function (hasAddPermission, $completion) { var tmp = this.cqf(hasAddPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; setAddNewItemUiState(this.lqu_1, this.oqu_1, this.mqu_1, this.nqu_1); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).cqf = function (hasAddPermission, completion) { var i = new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this.lqu_1, this.mqu_1, this.nqu_1, completion); i.oqu_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.bqf(hasAddPermission, $completion); }; l.$arity = 1; return l; } function setAddNewItemUiState($this, hasAddPermission, fabStringResource, onSetAddItemVisibility) { var tmp; if (hasAddPermission ? $this.pqv().equals(ListViewMode_BROWSER_getInstance()) : false) { var tmp_0 = $this.pqn().coj(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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.setAddNewItemUiState.' call var nextValue = prevValue.cq6(fabState); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } onSetAddItemVisibility(hasAddPermission ? $this.pqv().equals(ListViewMode_PICKER_getInstance()) : false); } function Companion_107() { this.qqv_1 = 'listMode'; } var Companion_instance_156; function Companion_getInstance_124() { return Companion_instance_156; } function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) { this.rqv_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).n1e = function (value, $completion) { return this.rqv_1(value, $completion); }; function UstadListViewModel$searchEvtCollator$slambda(this$0, resultContinuation) { this.aqw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$searchEvtCollator$slambda).cqw = function (it, $completion) { var tmp = this.dqw(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).he = function (p1, $completion) { return this.cqw((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_elvis_lhs = lastOrNull(this.bqw_1); this.aqw_1.eqw(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).dqw = function (it, completion) { var i = new UstadListViewModel$searchEvtCollator$slambda(this.aqw_1, completion); i.bqw_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.cqw(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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.createSearchEnabledState..' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.uq5_1.mq5(VOID, searchText)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this$0.oqv_1.m6y(searchText); return Unit_instance; }; } function UstadListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.fqw(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda($hasPermissionFlow, this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.oqw_1 = $hasPermissionFlow; this.pqw_1 = this$0; this.qqw_1 = $fabStringResource; this.rqw_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.oqw_1()); var tmp_1 = UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda_0(this.pqw_1, this.qqw_1, this.rqw_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).f79 = function (completion) { return new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda(this.oqw_1, this.pqw_1, this.qqw_1, this.rqw_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.d88($completion); }; l.$arity = 0; return l; } function UstadListViewModel$onClickAdd$ref_0($boundThis) { var l = function () { $boundThis.fqw(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel(di, savedStateHandle, initialState, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); this.kqv_1 = MutableStateFlow(initialState); this.lqv_1 = asStateFlow(this.kqv_1); this.mqv_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.nqv_1 = asSharedFlow(this.mqv_1); var tmp = this; var tmp_0 = new Long(200, 0); var tmp_1 = this.gqn(); var tmp_2 = BufferOverflow_DROP_OLDEST_getInstance(); tmp.oqv_1 = new EventCollator2(tmp_0, tmp_1, 1, tmp_2, UstadListViewModel$searchEvtCollator$slambda_0(this, null)); } protoOf(UstadListViewModel).pqv = function () { var tmp; var tmp_0; Companion_getInstance_116(); if (this.pqm_1.ba('listMode') === ListViewMode_PICKER_getInstance().pqj_1) { tmp_0 = true; } else { var tmp_1; Companion_getInstance_116(); if (!(this.pqm_1.ba('result_viewname') == null)) { Companion_getInstance_116(); tmp_1 = !(this.pqm_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).sqw = function (visible) { return new AppBarSearchUiState(visible, VOID, UstadListViewModel$createSearchEnabledState$lambda(this)); }; protoOf(UstadListViewModel).tqw = function (visible, $super) { visible = visible === VOID ? true : visible; return $super === VOID ? this.sqw(visible) : $super.sqw.call(this, visible); }; protoOf(UstadListViewModel).uqw = function (hasPermissionFlow, fabStringResource, onSetAddListItemVisibility, $completion) { return whenSubscribed(this.kqv_1, UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda_0(hasPermissionFlow, this, fabStringResource, onSetAddListItemVisibility, null), $completion); }; protoOf(UstadListViewModel).vqw = function (hasAddPermission, stringResource, onClick) { var tmp; if (hasAddPermission ? this.pqv().equals(ListViewMode_BROWSER_getInstance()) : false) { tmp = new FabUiState(true, this.pqn().coj(stringResource), FabIcon_ADD_getInstance(), onClick); } else { tmp = new FabUiState(false); } return tmp; }; protoOf(UstadListViewModel).wqw = 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.vqw(hasAddPermission, stringResource, onClick) : $super.vqw.call(this, hasAddPermission, stringResource, onClick); }; protoOf(UstadListViewModel).xqw = function (editViewName, extraArgs) { var resultDest = this.qqn(); var tmp; if (!(resultDest == null)) { Companion_getInstance_116(); var tmp_0 = to('result_viewname', resultDest.oq9_1); Companion_getInstance_116(); tmp = plus_0(mapOf([tmp_0, to('result_key', resultDest.pq9_1)]), extraArgs); } else { tmp = extraArgs; } var args = tmp; this.rqm_1.dp6(editViewName, args); }; protoOf(UstadListViewModel).yqw = function (editViewName, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.xqw(editViewName, extraArgs); tmp = Unit_instance; } else { tmp = $super.xqw.call(this, editViewName, extraArgs); } return tmp; }; protoOf(UstadListViewModel).zqw = function (detailViewName, entityUid, result, extraArgs) { var resultDest = this.qqn(); if (!(resultDest == null)) { this.aqt(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_125(); this_0.s('entityUid', entityUid.toString()); var tmp$ret$2 = this_0.f3(); this.rqm_1.dp6(detailViewName, tmp$ret$2); } }; protoOf(UstadListViewModel).aqx = function (detailViewName, entityUid, result, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.zqw(detailViewName, entityUid, result, extraArgs); tmp = Unit_instance; } else { tmp = $super.zqw.call(this, detailViewName, entityUid, result, extraArgs); } return tmp; }; protoOf(UstadListViewModel).bqx = function (browseStringResource, selectStringResource) { var tmp = this.pqn(); var tmp_0; if (this.pqv().equals(ListViewMode_BROWSER_getInstance())) { tmp_0 = browseStringResource; } else { tmp_0 = selectStringResource; } return tmp.coj(tmp_0); }; function UstadViewModel$filteredResultFlowForKey$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) { this.kqx_1 = $$this$unsafeFlow; this.lqx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).gqa = function (value, $completion) { var tmp = this.hqa(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.oqx_1 = this.kqx_1; var tmp_1 = this; tmp_1.pqx_1 = this.mqx_1; var it = this.pqx_1; var isNew = it.mq9_1.c7(this.lqx_1.eqn_1) > 0; if (isNew) { _set_lastNavResultTimestampCollected__txfbew(this.lqx_1, it.mq9_1); } if (isNew) { this.hd_1 = 3; suspendResult = this.oqx_1.n1e(this.pqx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 2: if (false) { this.hd_1 = 1; continue $sm; } this.hd_1 = 4; continue $sm; case 3: this.nqx_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).hqa = function (value, completion) { var i = new UstadViewModel$filteredResultFlowForKey$o$collect$slambda(this.kqx_1, this.lqx_1, completion); i.mqx_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.gqa(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$59(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yqx_1 = _this__u8e3s4; this.zqx_1 = collector; } protoOf($collectCOROUTINE$59).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.aqy_1 = this.zqx_1; this.hd_1 = 1; var tmp_1 = UstadViewModel$filteredResultFlowForKey$o$collect$slambda_0(this.aqy_1, this.yqx_1.cqy_1, null); suspendResult = this.yqx_1.bqy_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _set_lastNavResultTimestampCollected__txfbew($this, value) { $this.eqn_1 = value; $this.pqm_1.tqi('collectedTs', value.toString()); } function Companion_108() { Companion_instance_157 = this; this.dqy_1 = 'entityState'; this.eqy_1 = 'collectedTs'; this.fqy_1 = 'initState'; this.gqy_1 = 'timeZone'; this.hqy_1 = 'parentUid'; this.iqy_1 = 'courseBlockUid'; this.jqy_1 = 'entityUid'; this.kqy_1 = 'serverUrl'; this.lqy_1 = 'next'; this.mqy_1 = 'maxDob'; var tmp = this; Companion_getInstance_139(); Companion_getInstance_168(); Companion_getInstance_189(); Companion_getInstance_203(); tmp.nqy_1 = listOf(['CourseListHome', 'ContentEntryListHome', 'ConversationListHome', 'PersonListHome']); this.oqy_1 = 'openLink'; this.pqy_1 = 'account'; this.qqy_1 = 'popUpToOnFinish'; this.rqy_1 = 'inviteCode'; this.sqy_1 = 'clazzUid'; this.tqy_1 = 'entryid'; this.uqy_1 = 'personUid'; this.vqy_1 = 't'; this.wqy_1 = 'noSessionChange'; this.xqy_1 = 'selectedAccountPersonUid'; this.yqy_1 = 'selectedAccountEndpointUrl'; this.zqy_1 = 'result_viewname'; this.aqz_1 = 'result_key'; } var Companion_instance_157; function Companion_getInstance_125() { if (Companion_instance_157 == null) new Companion_108(); return Companion_instance_157; } function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) { this.bqz_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).n1e = function (value, $completion) { return this.bqz_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(function_0) { this.cqz_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0).lpi = function (url, target) { return this.cqz_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.fqn(); // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(this$0.u57()).z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(this$0.u57()).z58(); // 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.x58(tmp$ret$2, null); return OnClickLinkUseCase_init_$Create$(this$0.rqm_1, tmp, tmp_2, tmp$ret$3); }; } function _no_name_provided__qut3iv_2($this, this$0) { this.bqy_1 = $this; this.cqy_1 = this$0; } protoOf(_no_name_provided__qut3iv_2).wqa = function (collector, $completion) { var tmp = new $collectCOROUTINE$59(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_2).u1c = function (collector, $completion) { return this.wqa(collector, $completion); }; function UstadViewModel$getJson$slambda(this$0, $deserializer, $jsonStr, resultContinuation) { this.lqz_1 = this$0; this.mqz_1 = $deserializer; this.nqz_1 = $jsonStr; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$getJson$slambda).pqz = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel$getJson$slambda).he = function (p1, $completion) { return this.pqz((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$getJson$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return this.lqz_1.g4s().m46(this.mqz_1, this.nqz_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadViewModel$getJson$slambda).p1n = function ($this$withContext, completion) { var i = new UstadViewModel$getJson$slambda(this.lqz_1, this.mqz_1, this.nqz_1, completion); i.oqz_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.pqz($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$setJson$slambda(this$0, $serializer, $value, resultContinuation) { this.yqz_1 = this$0; this.zqz_1 = $serializer; this.ar0_1 = $value; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$setJson$slambda).cr0 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel$setJson$slambda).he = function (p1, $completion) { return this.cr0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$setJson$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return this.yqz_1.g4s().l46(this.zqz_1, this.ar0_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadViewModel$setJson$slambda).p1n = function ($this$withContext, completion) { var i = new UstadViewModel$setJson$slambda(this.yqz_1, this.zqz_1, this.ar0_1, completion); i.br0_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.cr0($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchIfHasPermission$slambda(this$0, $permissionCheck, $block, $onSetFieldsEnabled, resultContinuation) { this.lr0_1 = this$0; this.mr0_1 = $permissionCheck; this.nr0_1 = $block; this.or0_1 = $onSetFieldsEnabled; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$launchIfHasPermission$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel$launchIfHasPermission$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$launchIfHasPermission$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 8; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 7; this.rr0_1 = this.lr0_1.kqn(); if (this.rr0_1 == null) { this.sr0_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = localFirstThenRepoIfFalse(this.rr0_1, this.mr0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.sr0_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: this.tr0_1 = this.sr0_1; if (this.tr0_1 === false) { this.lr0_1.rqm_1.bq9('Error', emptyMap(), new UstadGoOptions(this.lr0_1.qqm_1, true)); this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.nr0_1(this.pr0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.hd_1 = 5; continue $sm; case 5: this.qr0_1 = Unit_instance; this.id_1 = 8; this.hd_1 = 6; continue $sm; case 6: this.id_1 = 8; l$ret$5: do { var this_0 = this.lr0_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(VOID, Companion_getInstance_97().kq6_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$5; } } } while (false); var tmp1_safe_receiver = this.or0_1; if (tmp1_safe_receiver == null) null; else tmp1_safe_receiver(true); return Unit_instance; case 7: this.id_1 = 8; var t = this.kd_1; l$ret$3: do { var this_1 = this.lr0_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(VOID, Companion_getInstance_97().kq6_1); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp1_safe_receiver_0 = this.or0_1; if (tmp1_safe_receiver_0 == null) null; else tmp1_safe_receiver_0(true); throw t; case 8: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 8) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadViewModel$launchIfHasPermission$slambda).p1n = function ($this$launch, completion) { var i = new UstadViewModel$launchIfHasPermission$slambda(this.lr0_1, this.mr0_1, this.nr0_1, this.or0_1, completion); i.pr0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchWithLoadingIndicator$slambda($onSetFieldsEnabled, this$0, $block, resultContinuation) { this.cr1_1 = $onSetFieldsEnabled; this.dr1_1 = this$0; this.er1_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 4; this.cr1_1(false); l$ret$1: do { var this_0 = this.dr1_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(VOID, Companion_getInstance_97().jq6_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.vq5_1.dq5(VOID, VOID, false)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.er1_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.gr1_1 = suspendResult; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.cr1_1(true); l$ret$7: do { var this_1 = this.dr1_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(VOID, Companion_getInstance_97().kq6_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.vq5_1.dq5(VOID, VOID, true)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$7; } } } while (false); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.cr1_1(true); l$ret$5: do { var this_2 = this.dr1_1.tqm_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.cq6(VOID, Companion_getInstance_97().kq6_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.vq5_1.dq5(VOID, VOID, true)); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); throw t; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).p1n = function ($this$launch, completion) { var i = new UstadViewModel$launchWithLoadingIndicator$slambda(this.cr1_1, this.dr1_1, this.er1_1, completion); i.fr1_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.o1n($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$56(_this__u8e3s4, _this__u8e3s4_0, key, deserializer, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pr1_1 = _this__u8e3s4; this.qr1_1 = _this__u8e3s4_0; this.rr1_1 = key; this.sr1_1 = deserializer; } protoOf($getJsonCOROUTINE$56).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.tr1_1 = this.qr1_1.ba(this.rr1_1); if (!(this.tr1_1 == null)) { this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_0, UstadViewModel$getJson$slambda_0(this.pr1_1, this.sr1_1, this.tr1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.ur1_1 = null; this.hd_1 = 2; continue $sm; } case 1: this.ur1_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.ur1_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $setJsonCOROUTINE$57(_this__u8e3s4, _this__u8e3s4_0, key, serializer, value, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dr2_1 = _this__u8e3s4; this.er2_1 = _this__u8e3s4_0; this.fr2_1 = key; this.gr2_1 = serializer; this.hr2_1 = value; } protoOf($setJsonCOROUTINE$57).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_0, UstadViewModel$setJson$slambda_0(this.dr2_1, this.gr2_1, this.hr2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var jsonStr = suspendResult; this.er2_1.tqi(this.fr2_1, jsonStr); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $loadEntityCOROUTINE$58(_this__u8e3s4, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qr2_1 = _this__u8e3s4; this.rr2_1 = serializer; this.sr2_1 = loadFromStateKeys; this.tr2_1 = savedStateKey; this.ur2_1 = onLoadFromDb; this.vr2_1 = makeDefault; this.wr2_1 = uiUpdate; } protoOf($loadEntityCOROUTINE$58).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 19; var tmp_0 = this; tmp_0.xr2_1 = this.sr2_1; this.yr2_1 = this.xr2_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.yr2_1.f()) { this.hd_1 = 3; continue $sm; } this.zr2_1 = this.yr2_1.e(); var tmp_1 = this; tmp_1.ar3_1 = this.zr2_1; this.hd_1 = 2; suspendResult = this.qr2_1.uqn(this.qr2_1.pqm_1, this.ar3_1, this.rr2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.br3_1 = suspendResult; if (!(this.br3_1 == null)) { this.wr2_1(this.br3_1); return this.br3_1; } this.hd_1 = 1; continue $sm; case 3: this.cr3_1 = this.ur2_1; if (this.cr3_1 == null) { this.dr3_1 = null; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.cr3_1(this.qr2_1.jqn(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.dr3_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.er3_1 = this.dr3_1; if (!(this.er3_1 == null)) { this.wr2_1(this.er3_1); } this.id_1 = 13; this.gr3_1 = this.qr2_1.kqn(); if (this.gr3_1 == null) { this.hr3_1 = null; this.hd_1 = 8; continue $sm; } else { var tmp_2 = this; tmp_2.ir3_1 = this.gr3_1; var tmp_3 = this; tmp_3.jr3_1 = this.ir3_1; this.kr3_1 = this.ur2_1; if (this.kr3_1 == null) { this.lr3_1 = null; this.hd_1 = 7; continue $sm; } else { this.hd_1 = 6; suspendResult = this.kr3_1(this.jr3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 6: this.lr3_1 = suspendResult; this.hd_1 = 7; continue $sm; case 7: this.hr3_1 = this.lr3_1; this.hd_1 = 8; continue $sm; case 8: this.mr3_1 = this.hr3_1; if (this.mr3_1 == null) { this.hd_1 = 9; suspendResult = this.vr2_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.nr3_1 = this.mr3_1; this.hd_1 = 10; continue $sm; } case 9: this.nr3_1 = suspendResult; this.hd_1 = 10; continue $sm; case 10: this.or3_1 = this.nr3_1; if (!(this.or3_1 == null)) { this.hd_1 = 11; suspendResult = this.qr2_1.vqn(this.qr2_1.pqm_1, this.tr2_1, this.rr2_1, this.or3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 12; continue $sm; } case 11: this.hd_1 = 12; continue $sm; case 12: this.wr2_1(this.or3_1); this.fr3_1 = this.or3_1; this.id_1 = 19; this.hd_1 = 18; continue $sm; case 13: this.id_1 = 19; var tmp_4 = this.kd_1; if (tmp_4 instanceof Exception) { this.pr3_1 = this.kd_1; if (!(this.er3_1 == null)) { this.hd_1 = 14; suspendResult = this.qr2_1.vqn(this.qr2_1.pqm_1, this.tr2_1, this.rr2_1, this.er3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 15; continue $sm; } } else { throw this.kd_1; } case 14: this.hd_1 = 15; continue $sm; case 15: this.qr3_1 = this.er3_1; if (this.qr3_1 == null) { this.hd_1 = 16; suspendResult = this.vr2_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.rr3_1 = this.qr3_1; this.hd_1 = 17; continue $sm; } case 16: var this_0 = suspendResult; this.wr2_1(this_0); this.rr3_1 = this_0; this.hd_1 = 17; continue $sm; case 17: this.fr3_1 = this.rr3_1; this.hd_1 = 18; continue $sm; case 18: this.id_1 = 19; return this.fr3_1; case 19: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 19) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function UstadViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_125(); ViewModel_init_$Init$(this); this.oqm_1 = di; this.pqm_1 = savedStateHandle; this.qqm_1 = destinationName; this.rqm_1 = new CommandFlowUstadNavController(); this.sqm_1 = this.rqm_1.aq9_1; this.tqm_1 = MutableStateFlow(new AppUiState()); this.uqm_1 = asStateFlow(this.tqm_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.vqm_1 = Instance(this, tmp$ret$0, null).u5d(this, accountManager$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.fqn().boa(); var trigger = this.x57(); // 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.b58(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.wqm_1 = Instance(this_0, tmp$ret$5, null).u5d(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.fqn().boa(); var trigger_0 = this.x57(); // 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.b58(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.xqm_1 = Instance(this_1, tmp$ret$10, 1).u5d(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.yqm_1 = Instance(this, tmp$ret$12, null).u5d(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.zqm_1 = Instance(this, tmp$ret$14, null).u5d(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.aqn_1 = Instance(this, tmp$ret$16, null).u5d(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.bqn_1 = Instance(this, tmp$ret$18, null).u5d(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.cqn_1 = Instance(this, tmp$ret$20, null).u5d(this, systemImpl$factory()); var tmp_19 = this; tmp_19.dqn_1 = lazy_0(UstadViewModel$onClickLinkUseCase$delegate$lambda(this)); var tmp_20 = this; var tmp0_safe_receiver = this.pqm_1.ba('collectedTs'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_20.eqn_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; if (this.eqn_1.equals(new Long(0, 0))) { _set_lastNavResultTimestampCollected__txfbew(this, systemTimeInMillis()); } } protoOf(UstadViewModel).u57 = function () { return this.oqm_1; }; protoOf(UstadViewModel).fqn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.vqm_1; accountManager$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).gqn = function () { return get_viewModelScope(this); }; protoOf(UstadViewModel).hqn = function () { return this.fqn().ko9().enu_1.z96_1; }; protoOf(UstadViewModel).iqn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.wqm_1; activeDataLayer$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).jqn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.xqm_1; activeDb$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).kqn = function () { return this.iqn().rk2_1; }; protoOf(UstadViewModel).lqn = function () { return this.iqn().uk2(); }; protoOf(UstadViewModel).mqn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.yqm_1; navResultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).g4s = function () { // Inline function 'kotlin.getValue' call var this_0 = this.zqm_1; json$factory_2(); return this_0.t2(); }; protoOf(UstadViewModel).nqn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.aqn_1; snackDispatcher$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).oqn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.bqn_1; resultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).pqn = function () { // Inline function 'kotlin.getValue' call var this_0 = this.cqn_1; systemImpl$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).qqn = function () { var popUpToViewName = this.pqm_1.ba('result_viewname'); var saveToKey = this.pqm_1.ba('result_key'); var tmp; if (!(popUpToViewName == null) ? !(saveToKey == null) : false) { tmp = new NavResultDest(popUpToViewName, saveToKey); } else { tmp = null; } return tmp; }; protoOf(UstadViewModel).rqn = function (value) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel..' call var nextValue = prevValue.cq6(VOID, value); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(UstadViewModel).sqn = function () { return this.tqm_1.t2().oq5_1; }; protoOf(UstadViewModel).tqn = function (_this__u8e3s4, key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = _this__u8e3s4.qq9(key); // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_2(this_0, this); }; protoOf(UstadViewModel).uqn = function (_this__u8e3s4, key, deserializer, $completion) { var tmp = new $getJsonCOROUTINE$56(this, _this__u8e3s4, key, deserializer, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).vqn = function (_this__u8e3s4, key, serializer, value, $completion) { var tmp = new $setJsonCOROUTINE$57(this, _this__u8e3s4, key, serializer, value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).bqu = 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.bq9(viewName, args, goOptions); }; protoOf(UstadViewModel).aqt = function (result) { var resultDest = this.qqn(); if (!(resultDest == null)) { this.mqn().rq9(new NavResult(resultDest.pq9_1, systemTimeInMillis(), result)); this.rqm_1.cq9(resultDest.oq9_1, false); } else { Companion_getInstance_116(); this.rqm_1.cq9('', true); } }; protoOf(UstadViewModel).wqn = 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.cqo(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.cqo(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.qqm_1; navArgs.s(key_1, value); } if (!(currentValue == null)) { // Inline function 'kotlin.collections.set' call Companion_getInstance_115(); var value_0 = this.g4s().l46(serializer, currentValue); navArgs.s('entity', value_0); } this.rqm_1.bq9(nextViewName, toMap_0(navArgs), goOptions); }; protoOf(UstadViewModel).xqn = function (nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination, $super) { args = args === VOID ? emptyMap() : args; goOptions = goOptions === VOID ? Companion_getInstance_95().sq3_1 : goOptions; var tmp; if (overwriteDestination === VOID) { tmp = this instanceof UstadEditViewModel; } else { tmp = overwriteDestination; } overwriteDestination = tmp; var tmp_0; if ($super === VOID) { this.wqn(nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); tmp_0 = Unit_instance; } else { tmp_0 = $super.wqn.call(this, nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); } return tmp_0; }; protoOf(UstadViewModel).yqn = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) { var tmp = new $loadEntityCOROUTINE$58(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).zqn = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion, $super) { var tmp; if (loadFromStateKeys === VOID) { Companion_getInstance_115(); tmp = listOf(['entityState', 'entity']); } else { tmp = loadFromStateKeys; } loadFromStateKeys = tmp; savedStateKey = savedStateKey === VOID ? first_0(loadFromStateKeys) : savedStateKey; return $super === VOID ? this.yqn(serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) : $super.yqn.call(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); }; protoOf(UstadViewModel).aqo = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block) { if (setLoadingState) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.launchIfHasPermission.' call var nextValue = prevValue.cq6(VOID, Companion_getInstance_97().jq6_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } if (onSetFieldsEnabled == null) null; else onSetFieldsEnabled(false); var tmp = this.gqn(); launch(tmp, VOID, VOID, UstadViewModel$launchIfHasPermission$slambda_0(this, permissionCheck, block, onSetFieldsEnabled, null)); }; protoOf(UstadViewModel).bqo = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block, $super) { setLoadingState = setLoadingState === VOID ? false : setLoadingState; onSetFieldsEnabled = onSetFieldsEnabled === VOID ? null : onSetFieldsEnabled; var tmp; if ($super === VOID) { this.aqo(permissionCheck, setLoadingState, onSetFieldsEnabled, block); tmp = Unit_instance; } else { tmp = $super.aqo.call(this, permissionCheck, setLoadingState, onSetFieldsEnabled, block); } return tmp; }; protoOf(UstadViewModel).cqo = function (_this__u8e3s4, key) { putFromSavedStateIfPresent(_this__u8e3s4, this.pqm_1, key); }; protoOf(UstadViewModel).dqo = 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.cqo(_this__u8e3s4, element); } }; protoOf(UstadViewModel).cqu = function (onSetFieldsEnabled, block) { var tmp = this.gqn(); launch(tmp, VOID, VOID, UstadViewModel$launchWithLoadingIndicator$slambda_0(onSetFieldsEnabled, this, block, null)); }; protoOf(UstadViewModel).eqo = 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).u5d(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.fqn().ko9().enu_1; if (isGuestUser(it) ? true : requireAdultAccount ? !isDateOfBirthAnAdult(Companion_getInstance_6().bmh(it.i97_1)) : false) { var tmp_0 = this.qqm_1 + '?' + toQueryString(args); var tmp_1 = this.fqn(); var tmp_2 = UstadViewModel$ifLoggedInElseNavigateToLoginWithNextDestSet$lambda; navigateToLink(this.rqm_1, tmp_0, tmp_1, new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(tmp_2), new UstadGoOptions(this.qqm_1, true), VOID, ifLoggedInElseNavigateToLoginWithNextDestSet$lambda(apiUrlConfig$delegate).lo2_1); } else { block(); } }; protoOf(UstadViewModel).fqo = function (requireAdultAccount, args, block, $super) { requireAdultAccount = requireAdultAccount === VOID ? false : requireAdultAccount; var tmp; if ($super === VOID) { this.eqo(requireAdultAccount, args, block); tmp = Unit_instance; } else { tmp = $super.eqo.call(this, requireAdultAccount, args, block); } return tmp; }; protoOf(UstadViewModel).gqo = function (contentEntryUid, clazzUid, cbUid) { var registrationUuid = uuid4(); var activityId = this.fqn().boa().mnt_1 + 'ns/xapi/contentEntry/' + contentEntryUid.toString(); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this.u57()).z58(); // 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.x58(tmp$ret$0, null); var tmp_1 = get_doorPrimaryKeyManager(this.jqn()); var tmp1_xseUid = tmp_1.h63(400122); var tmp2_xseAccountPersonUid = this.hqn(); var tmp0_elvis_lhs = this.fqn().ko9().enu_1.a97_1; var tmp3_xseAccountUsername = tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs; var tmp4_xseRootActivityUid = xxStringHasher.dm7(activityId); var tmp5_xseRegistrationHi = registrationUuid.rmd(); var tmp6_xseRegistrationLo = registrationUuid.smd(); 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).hqo = function (contentEntryUid, clazzUid, cbUid, $super) { contentEntryUid = contentEntryUid === VOID ? new Long(0, 0) : contentEntryUid; var tmp; if (clazzUid === VOID) { var tmp0_safe_receiver = this.pqm_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.pqm_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.gqo(contentEntryUid, clazzUid, cbUid) : $super.gqo.call(this, contentEntryUid, clazzUid, cbUid); }; function accountManager$factory() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.fqn(); }, null); } function activeDataLayer$factory() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.iqn(); }, null); } function activeDb$factory() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.jqn(); }, null); } function navResultReturner$factory() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.mqn(); }, null); } function json$factory_1() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.g4s(); }, null); } function snackDispatcher$factory() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.nqn(); }, null); } function resultReturner$factory() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.oqn(); }, null); } function systemImpl$factory() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.pqn(); }, null); } function accountManager$factory_0() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.fqn(); }, null); } function activeDataLayer$factory_0() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.iqn(); }, null); } function activeDb$factory_0() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.jqn(); }, null); } function navResultReturner$factory_0() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.mqn(); }, null); } function json$factory_2() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.g4s(); }, null); } function snackDispatcher$factory_0() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.nqn(); }, null); } function resultReturner$factory_0() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.oqn(); }, null); } function systemImpl$factory_0() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.pqn(); }, null); } function Companion_109() { this.sr3_1 = 'OpenLicenses'; } var Companion_instance_158; function Companion_getInstance_126() { return Companion_instance_158; } function OpenLicensesViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'EpubContent'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.about.OpenLicensesViewModel.' call var tmp0_title = this.pqn().coj(strings_getInstance().rnm_1); var nextValue = prevValue.cq6(VOID, VOID, tmp0_title, false, true, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } function AddAccountSelectNewOrExistingViewModel$getCredentials$slambda$lambda($credentialResult) { return function () { return 'Error occurred: ' + $credentialResult.tr3_1; }; } function _get_supportLangConfig__jc22wi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qr4_1; supportLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.rr4_1; setLanguageUseCase$factory_0(); return this_0.t2(); } function _get_decodeUserHandleUseCase__wbsil7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sr4_1; decodeUserHandleUseCase$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tr4_1; apiUrlConfig$factory_2(); return this_0.t2(); } function _get_impl__d88w17($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ur4_1; impl$factory_0(); return this_0.t2(); } function _get_getCredentialUseCase__qofq9r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wr4_1; getCredentialUseCase$factory_0(); return this_0.t2(); } function _get_parseCredentialUsernameUseCase__8m48wk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yr4_1; parseCredentialUsernameUseCase$factory_0(); return this_0.t2(); } function getCredentials($this) { var tmp = $this.gqn(); launch(tmp, VOID, VOID, AddAccountSelectNewOrExistingViewModel$getCredentials$slambda_0($this, null)); } function onLoginWithUsernameAndPasswordFromCredentialManager($this, credentialUsername, password) { var tmp = $this.gqn(); launch(tmp, VOID, VOID, AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda_0($this, credentialUsername, password, null)); } function goToNextDestAfterSignIn($this, person, serverUrl) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = $this.u57(); var context = new LearningSpace(serverUrl); var trigger = this_0.x57(); // 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.b58(tmp$ret$0, context); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).z58(); // Inline function 'org.kodein.type.generic' call var tmp_2 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$3 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); var getDefaultDestinationUseCase = tmp_1.x58(tmp$ret$3, null); Companion_getInstance_116(); var tmp0_elvis_lhs = $this.pqm_1.ba('next'); var nextDestVal = tmp0_elvis_lhs == null ? getDefaultDestinationUseCase.jpe() : tmp0_elvis_lhs; var tmp_3 = Napier_getInstance(); tmp_3.e5f(VOID, VOID, AddAccountSelectNewOrExistingViewModel$goToNextDestAfterSignIn$lambda(nextDestVal)); $this.bqu($this.rqm_1, appendSelectedAccount(nextDestVal, person.z96_1, new LearningSpace(serverUrl)), new UstadGoOptions(VOID, VOID, true)); } function Companion_110() { this.zr4_1 = 'AddAccountSelectNewOrExisting'; } var Companion_instance_159; function Companion_getInstance_127() { return Companion_instance_159; } function AddAccountSelectNewOrExistingViewModel$getCredentials$slambda(this$0, resultContinuation) { this.ir5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.id_1 = 5; this.kr5_1 = _get_getCredentialUseCase__qofq9r(this.ir5_1); if (this.kr5_1 == null) { this.lr5_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.kr5_1.cpb(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.lr5_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.mr5_1 = this.lr5_1; var tmp_0 = this.mr5_1; if (tmp_0 instanceof PasskeyCredentialResult) { var tmp_1 = this; var tmp1_elvis_lhs = this.mr5_1.tr5_1.npb_1.jpb_1; var tmp_2; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('userHandle not found'); } else { tmp_2 = tmp1_elvis_lhs; } tmp_1.nr5_1 = tmp_2; this.or5_1 = _get_decodeUserHandleUseCase__wbsil7(this.ir5_1).gp9(this.nr5_1); this.pr5_1 = this.or5_1.y6(); this.qr5_1 = this.or5_1.z6(); this.hd_1 = 3; suspendResult = this.ir5_1.fqn().joa(this.mr5_1.tr5_1, this.pr5_1.mnt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_3 = this.mr5_1; if (tmp_3 instanceof PasswordCredentialResult) { onLoginWithUsernameAndPasswordFromCredentialManager(this.ir5_1, this.mr5_1.rr5_1, this.mr5_1.sr5_1); this.hd_1 = 4; continue $sm; } else { var tmp_4 = this.mr5_1; if (tmp_4 instanceof Error_1) { var tmp_5 = Napier_getInstance(); tmp_5.m5f(VOID, VOID, AddAccountSelectNewOrExistingViewModel$getCredentials$slambda$lambda(this.mr5_1)); this.hd_1 = 4; continue $sm; } else { if (this.mr5_1 == null) { this.hd_1 = 4; continue $sm; } else { this.hd_1 = 4; continue $sm; } } } } case 3: var account = suspendResult; goToNextDestAfterSignIn(this.ir5_1, account.zky(), this.pr5_1.mnt_1); this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.hd_1 = 7; continue $sm; case 5: this.id_1 = 6; var tmp_6 = this.kd_1; if (tmp_6 instanceof Exception) { var e = this.kd_1; Napier_getInstance().k5f('AddAccountSelectNewOrExistingViewModel: getCredentials: Error occurred', e); this.hd_1 = 7; continue $sm; } else { throw this.kd_1; } case 6: throw this.kd_1; case 7: this.id_1 = 6; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).p1n = function ($this$launch, completion) { var i = new AddAccountSelectNewOrExistingViewModel$getCredentials$slambda(this.ir5_1, completion); i.jr5_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda(this$0, $credentialUsername, $password, resultContinuation) { this.cr6_1 = this$0; this.dr6_1 = $credentialUsername; this.er6_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.gr6_1 = null; this.hr6_1 = _get_parseCredentialUsernameUseCase__8m48wk(this.cr6_1).gp9(this.dr6_1); this.ir6_1 = this.hr6_1.y6(); this.jr6_1 = this.hr6_1.z6(); this.hd_1 = 1; continue $sm; case 1: this.id_1 = 4; this.id_1 = 3; this.hd_1 = 2; var tmp_0 = this.cr6_1.fqn(); var this_0 = this.jr6_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.er6_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); Companion_getInstance_116(); var tmp1_safe_receiver = this.cr6_1.pqm_1.ba('maxDob'); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toLong_0(tmp1_safe_receiver); suspendResult = tmp_0.koa(tmp_1, tmp_2, this.ir6_1.mnt_1, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.cr6_1.vr4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var account = suspendResult; var tmp_3 = this; goToNextDestAfterSignIn(this.cr6_1, account.zky(), this.ir6_1.mnt_1); tmp_3.kr6_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; case 3: this.id_1 = 4; var tmp_4 = this.kd_1; if (tmp_4 instanceof AdultAccountRequiredException) { var e = this.kd_1; var tmp_5 = this; this.gr6_1 = _get_impl__d88w17(this.cr6_1).coj(strings_getInstance().enf_1); tmp_5.kr6_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { var tmp_6 = this.kd_1; if (tmp_6 instanceof UnauthorizedException) { var e_0 = this.kd_1; var tmp_7 = this; this.gr6_1 = _get_impl__d88w17(this.cr6_1).coj(strings_getInstance().vmi_1); tmp_7.kr6_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { var tmp_8 = this.kd_1; if (tmp_8 instanceof ConsentNotGrantedException) { var e_1 = this.kd_1; var tmp_9 = this; this.gr6_1 = _get_impl__d88w17(this.cr6_1).coj(strings_getInstance().dnf_1); tmp_9.kr6_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { var tmp_10 = this.kd_1; if (tmp_10 instanceof Exception) { var e_2 = this.kd_1; var tmp_11 = this; this.gr6_1 = _get_impl__d88w17(this.cr6_1).coj(strings_getInstance().wmi_1); tmp_11.kr6_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { throw this.kd_1; } } } } case 4: this.id_1 = 5; var t = this.kd_1; this.cr6_1.rqn(Companion_getInstance_97().kq6_1); if (!(this.gr6_1 == null)) { this.cr6_1.nqn().rq6(new Snack(toString(this.gr6_1))); } throw t; case 5: throw this.kd_1; case 6: this.id_1 = 5; this.cr6_1.rqn(Companion_getInstance_97().kq6_1); if (!(this.gr6_1 == null)) { this.cr6_1.nqn().rq6(new Snack(toString(this.gr6_1))); } return Unit_instance; } } catch ($p) { var e_3 = $p; if (this.id_1 === 5) { throw e_3; } else { this.hd_1 = this.id_1; this.kd_1 = e_3; } } while (true); }; protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).p1n = function ($this$launch, completion) { var i = new AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda(this.cr6_1, this.dr6_1, this.er6_1, completion); i.fr6_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AddAccountSelectNewOrExistingViewModel$goToNextDestAfterSignIn$lambda($nextDestVal) { return function () { return 'AddAccountSelectNewOrExistingViewModel: go to next destination: ' + $nextDestVal; }; } function AddAccountSelectNewOrExistingViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'AddAccountSelectNewOrExisting'); this.pr4_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.qr4_1 = Instance(this, tmp$ret$0, null).u5d(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.rr4_1 = Instance(this, tmp$ret$2, null).u5d(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.sr4_1 = Instance(this, tmp$ret$4, null).u5d(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.tr4_1 = Instance(this, tmp$ret$6, null).u5d(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.ur4_1 = Instance(this, tmp$ret$8, null).u5d(this, impl$factory()); var tmp_9 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_9.vr4_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.wr4_1 = InstanceOrNull(this, tmp$ret$10, null).u5d(this, getCredentialUseCase$factory()); this.xr4_1 = asStateFlow(this.pr4_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.yr4_1 = Instance(this, tmp$ret$12, null).u5d(this, parseCredentialUsernameUseCase$factory()); this.tqm_1.r1l(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, false, VOID, VOID, VOID, true)); var allLanguages = _get_supportLangConfig__jc22wi(this).qq7(this.pqn()); var currentLanguage = _get_supportLangConfig__jc22wi(this).pq7(this.pqn()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pr4_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.s1l(prevValue, nextValue)) { break $l$block; } } } getCredentials(this); } protoOf(AddAccountSelectNewOrExistingViewModel).lr6 = function () { this.mr6(true); }; protoOf(AddAccountSelectNewOrExistingViewModel).nr6 = function () { this.mr6(false); }; protoOf(AddAccountSelectNewOrExistingViewModel).mr6 = function (isNewUser) { var tmp; if (isNewUser) { Companion_getInstance_212(); tmp = 'new'; } else { Companion_getInstance_212(); 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.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_125(); this.cqo(this_0, 'next'); Companion_getInstance_212(); this_0.s('newOrExisting', userType); var tmp0_safe_receiver = _get_apiUrlConfig__mldllg_0(this).jo2_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call Companion_getInstance_116(); 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).jo2_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).ko2_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.rqm_1.dp6(destination, args); }; protoOf(AddAccountSelectNewOrExistingViewModel).xr6 = function (uiLanguage) { if (!uiLanguage.equals(this.pr4_1.t2().yr6_1)) { var result = _get_setLanguageUseCase__st7nci(this).zph(uiLanguage, 'AddAccountSelectNewOrExisting', this.rqm_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.pr4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectneworexisting.AddAccountSelectNewOrExistingViewModel.onLanguageSelected.' call var nextValue = prevValue.br7(uiLanguage, VOID, result.xph_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } }; function AddAccountSelectNewOrExistingUiState(currentLanguage, languageList, showWaitForRestart) { currentLanguage = currentLanguage === VOID ? new UiLanguage('en', 'English') : currentLanguage; languageList = languageList === VOID ? listOf_0(currentLanguage) : languageList; showWaitForRestart = showWaitForRestart === VOID ? false : showWaitForRestart; this.yr6_1 = currentLanguage; this.zr6_1 = languageList; this.ar7_1 = showWaitForRestart; } protoOf(AddAccountSelectNewOrExistingUiState).cr7 = function (currentLanguage, languageList, showWaitForRestart) { return new AddAccountSelectNewOrExistingUiState(currentLanguage, languageList, showWaitForRestart); }; protoOf(AddAccountSelectNewOrExistingUiState).br7 = function (currentLanguage, languageList, showWaitForRestart, $super) { currentLanguage = currentLanguage === VOID ? this.yr6_1 : currentLanguage; languageList = languageList === VOID ? this.zr6_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.ar7_1 : showWaitForRestart; return $super === VOID ? this.cr7(currentLanguage, languageList, showWaitForRestart) : $super.cr7.call(this, currentLanguage, languageList, showWaitForRestart); }; protoOf(AddAccountSelectNewOrExistingUiState).toString = function () { return 'AddAccountSelectNewOrExistingUiState(currentLanguage=' + this.yr6_1 + ', languageList=' + this.zr6_1 + ', showWaitForRestart=' + this.ar7_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUiState).hashCode = function () { var result = this.yr6_1.hashCode(); result = imul(result, 31) + hashCode(this.zr6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ar7_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.yr6_1.equals(tmp0_other_with_cast.yr6_1)) return false; if (!equals(this.zr6_1, tmp0_other_with_cast.zr6_1)) return false; if (!(this.ar7_1 === tmp0_other_with_cast.ar7_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.yr7_1; apiUrlConfig$factory_4(); return this_0.t2(); } function Companion_111() { this.cr8_1 = 'AddAccountSelectUserType'; } var Companion_instance_160; function Companion_getInstance_128() { return Companion_instance_160; } 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.yr7_1 = Instance(this, tmp$ret$0, null).u5d(this, apiUrlConfig$factory_3()); this.zr7_1 = MutableStateFlow(new AddAccountSelectNewOrExistingUserTypeUiState()); var tmp_1 = this; Companion_getInstance_212(); var tmp_2 = savedStateHandle.ba('newOrExisting'); Companion_getInstance_212(); tmp_1.ar8_1 = tmp_2 === 'new'; this.br8_1 = _get_apiUrlConfig__mldllg_1(this).ko2_1; var tmp_3; if (this.ar8_1) { tmp_3 = this.pqn().coj(strings_getInstance().znp_1); } else { tmp_3 = this.pqn().coj(strings_getInstance().anq_1); } var tmp0_title = tmp_3; this.tqm_1.r1l(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.zr7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectusertype.AddAccountSelectNewOrExistingUserTypeViewModel.' call var nextValue = prevValue.j6t(!(this.br8_1 == null)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).er8 = function () { return asStateFlow(this.zr7_1); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).fr8 = function () { var tmp; Companion_getInstance_212(); var tmp_0 = this.pqm_1.ba('newOrExisting'); Companion_getInstance_212(); 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.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_212(); this_0.s('personalAccount', 'true'); Companion_getInstance_116(); var tmp0_elvis_lhs = this.br8_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.rqm_1.dp6(tmp_1, tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).gr8 = 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.dqo(this_0, Companion_getInstance_212().vr6_1); var tmp$ret$2 = this_0.f3(); this.rqm_1.dp6('LearningSpaceList', tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).hr8 = function () { }; function AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount) { showAddPersonalAccount = showAddPersonalAccount === VOID ? false : showAddPersonalAccount; this.dr8_1 = showAddPersonalAccount; } protoOf(AddAccountSelectNewOrExistingUserTypeUiState).j6t = function (showAddPersonalAccount) { return new AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount); }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).toString = function () { return 'AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount=' + this.dr8_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).hashCode = function () { return getBooleanHashCode(this.dr8_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.dr8_1 === tmp0_other_with_cast.dr8_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.qr8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda).qnx = function (it, $completion) { var tmp = this.rnx(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda).he = function (p1, $completion) { return this.qnx(p1 instanceof UserSessionWithPersonAndLearningSpace ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.qr8_1.tr9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hra(this.rr8_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AccountListViewModel$slambda$slambda).rnx = function (it, completion) { var i = new AccountListViewModel$slambda$slambda(this.qr8_1, completion); i.rr8_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.qnx(it, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.qra_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda$slambda).sra = function (accountList, $completion) { var tmp = this.tra(accountList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.sra((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var currentUserSessionUid = this.qra_1.fqn().ko9().dnu_1.pij_1; var this_0 = this.rra_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var isFilteredOutActiveAccount = this.qra_1.pr9_1 === 'header' ? element.dnu_1.pij_1.equals(currentUserSessionUid) : false; var isFilteredOutByEndpoint = !(this.qra_1.or9_1 == null) ? !(element.fnu_1.mnt_1 === this.qra_1.or9_1) : false; var isFilteredOutByDateOfBirth = this.qra_1.qr9_1.c7(new Long(0, 0)) > 0 ? element.enu_1.i97_1.c7(this.qra_1.qr9_1) > 0 : false; if (!(((isFilteredOutActiveAccount ? true : isFilteredOutByEndpoint) ? true : isFilteredOutByDateOfBirth) ? true : isTemporary(element.dnu_1))) { destination.i1(element); } } var accountsToDisplay = destination; l$ret$1: do { var this_1 = this.qra_1.tr9_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.hra(VOID, accountsToDisplay); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AccountListViewModel$slambda$slambda$slambda).tra = function (accountList, completion) { var i = new AccountListViewModel$slambda$slambda$slambda(this.qra_1, completion); i.rra_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.sra(accountList, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.crb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda_1).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda_1).g79 = function ($completion) { return this.d88($completion); }; protoOf(AccountListViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.crb_1.fqn().aoa(); var tmp_1 = AccountListViewModel$slambda$slambda$slambda_0(this.crb_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda$slambda_1).f79 = function (completion) { return new AccountListViewModel$slambda$slambda_1(this.crb_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.d88($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.u57(); var trigger = this_0.x57(); // 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.b58(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).z58(); // 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.x58(tmp$ret$3, null); }; } function _get_apiUrlConfig__mldllg_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.rr9_1; apiUrlConfig$factory_6(); return this_0.t2(); } function _get_shareAppUseCase__louoas($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sr9_1; shareAppUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vr9_1; getVersionUseCase$factory_0(); return this_0.t2(); } function _get_launchOpenLicensesUseCase__f5qz1z($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wr9_1; launchOpenLicensesUseCase$factory_0(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xr9_1; getShowPoweredByUseCase$factory_0(); return this_0.t2(); } function Companion_112() { this.drb_1 = 'AccountList'; this.erb_1 = 'filterByLearningSpace'; this.frb_1 = 'activeAccountMode'; this.grb_1 = 'header'; this.hrb_1 = 'inlist'; } var Companion_instance_161; function Companion_getInstance_129() { return Companion_instance_161; } function sam$kotlinx_coroutines_flow_FlowCollector$0_5(function_0) { this.irb_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_5).n1e = function (value, $completion) { return this.irb_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0(function_0) { this.jrb_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0).lpi = function (url, target) { return this.jrb_1(url, target); }; function AccountListViewModel$slambda(this$0, resultContinuation) { this.srb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.srb_1.fqn().yo9(); var tmp_1 = AccountListViewModel$slambda$slambda_0(this.srb_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new AccountListViewModel$slambda(this.srb_1, completion); i.trb_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda_1(this$0, resultContinuation) { this.crc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.crc_1.tr9_1, AccountListViewModel$slambda$slambda_2(this.crc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new AccountListViewModel$slambda_1(this.crc_1, completion); i.drc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickLogout$slambda(this$0, $currentSession, resultContinuation) { this.mrc_1 = this$0; this.nrc_1 = $currentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickLogout$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$onClickLogout$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickLogout$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.mrc_1.fqn().ioa(this.nrc_1, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_$receiver = this.mrc_1.rqm_1; Companion_getInstance_139(); var tmp1_link = 'CourseListHome'; var tmp2_accountManager = this.mrc_1.fqn(); 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.mrc_1).lo2_1; var tmp5_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp6_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_2(this.mrc_1).jo2_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.mrc_1)); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickLogout$slambda).p1n = function ($this$launch, completion) { var i = new AccountListViewModel$onClickLogout$slambda(this.mrc_1, this.nrc_1, completion); i.orc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickAddAccount$slambda(this$0, $args, resultContinuation) { this.xrc_1 = this$0; this.yrc_1 = $args; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickAddAccount$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$onClickAddAccount$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickAddAccount$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; if (!(this.xrc_1.yr9_1 == null)) { this.hd_1 = 1; suspendResult = this.xrc_1.yr9_1.p7f().jhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ard_1 = false; this.hd_1 = 2; continue $sm; } case 1: var tmp0_safe_receiver = suspendResult; var ARGUMENT = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vhn_1; this.ard_1 = ARGUMENT === false; this.hd_1 = 2; continue $sm; case 2: if (this.ard_1) { var this_0 = LinkedHashMap_init_$Create$(); this.xrc_1.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_212(); this_0.s('newOrExisting', 'existing'); Companion_getInstance_116(); this_0.s('learningSpaceUrl', toString_0(_get_apiUrlConfig__mldllg_2(this.xrc_1).jo2_1)); var arg = this_0.f3(); this.xrc_1.rqm_1.dp6('Login', arg); this.hd_1 = 3; continue $sm; } else { this.xrc_1.rqm_1.dp6('AddAccountSelectNewOrExisting', this.yrc_1); this.hd_1 = 3; continue $sm; } case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickAddAccount$slambda).p1n = function ($this$launch, completion) { var i = new AccountListViewModel$onClickAddAccount$slambda(this.xrc_1, this.yrc_1, completion); i.zrc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickDeleteAccount$slambda(this$0, $session, resultContinuation) { this.jrd_1 = this$0; this.krd_1 = $session; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickDeleteAccount$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$onClickDeleteAccount$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickDeleteAccount$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.jrd_1.fqn().ioa(this.krd_1, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickDeleteAccount$slambda).p1n = function ($this$launch, completion) { var i = new AccountListViewModel$onClickDeleteAccount$slambda(this.jrd_1, this.krd_1, completion); i.lrd_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickOpenLicenses$slambda($launchUseCaseVal, resultContinuation) { this.urd_1 = $launchUseCaseVal; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickOpenLicenses$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$onClickOpenLicenses$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickOpenLicenses$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.urd_1.d88(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AccountListViewModel$onClickOpenLicenses$slambda).p1n = function ($this$launch, completion) { var i = new AccountListViewModel$onClickOpenLicenses$slambda(this.urd_1, completion); i.vrd_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.o1n($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).z58(); // 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.x58(tmp$ret$0, null); tmp = new StartUserSessionUseCase(tmp$ret$1); } else { tmp = startUserSessionUseCase; } startUserSessionUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'AccountList'); this.nr9_1 = startUserSessionUseCase; this.or9_1 = savedStateHandle.ba('filterByLearningSpace'); var tmp_2 = this; var tmp0_elvis_lhs = savedStateHandle.ba('activeAccountMode'); tmp_2.pr9_1 = tmp0_elvis_lhs == null ? 'header' : tmp0_elvis_lhs; var tmp_3 = this; Companion_getInstance_116(); var tmp0_safe_receiver = savedStateHandle.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.qr9_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.rr9_1 = Instance(this, tmp$ret$2, null).u5d(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.sr9_1 = InstanceOrNull(this, tmp$ret$4, null).u5d(this, shareAppUseCase$factory()); this.tr9_1 = MutableStateFlow(new AccountListUiState(VOID, VOID, _get_apiUrlConfig__mldllg_2(this).lo2_1, VOID, VOID, !(_get_shareAppUseCase__louoas(this) == null))); this.ur9_1 = asStateFlow(this.tr9_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.vr9_1 = InstanceOrNull(this, tmp$ret$6, null).u5d(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.wr9_1 = InstanceOrNull(this, tmp$ret$8, null).u5d(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.xr9_1 = InstanceOrNull(this, tmp$ret$10, null).u5d(this, getShowPoweredByUseCase$factory()); var tmp_14 = this; var tmp0_safe_receiver_0 = _get_apiUrlConfig__mldllg_2(this).jo2_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.x57(); // 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.b58(tmp$ret$12, context); var tmp$ret$14 = On(di, tmp$ret$13, trigger); var tmp_18 = get_direct(tmp$ret$14).z58(); // 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.x58(tmp$ret$15, null).rk2_1; } tmp_14.yr9_1 = tmp_15; var tmp_20 = this; Companion_getInstance_125(); 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_20.zr9_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_21; if (savedStateHandle.ba('listMode') === ListViewMode_PICKER_getInstance().pqj_1) { tmp_21 = this.pqn().coj(strings_getInstance().pna_1); } else { tmp_21 = this.pqn().coj(strings_getInstance().tml_1); } var tmp0_title = tmp_21; this.tqm_1.r1l(new AppUiState(VOID, VOID, tmp0_title, false, VOID, VOID, false)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tr9_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.jpe(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hpe_1; var tmp_22 = 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.jpe(); var nextValue = prevValue.hra(VOID, VOID, VOID, tmp_22, tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'kotlin.takeIf' call var this_1 = this.gqn(); // Inline function 'kotlin.contracts.contract' call var tmp_23; // Inline function 'com.ustadmobile.core.viewmodel.account.list.AccountListViewModel.' call if (this.pr9_1 === 'header') { tmp_23 = this_1; } else { tmp_23 = null; } var tmp1_safe_receiver_0 = tmp_23; if (tmp1_safe_receiver_0 == null) null; else { launch(tmp1_safe_receiver_0, VOID, VOID, AccountListViewModel$slambda_0(this, null)); } var tmp_24 = this.gqn(); launch(tmp_24, VOID, VOID, AccountListViewModel$slambda_2(this, null)); } protoOf(AccountListViewModel).wrd = function () { var tmp0_elvis_lhs = this.tr9_1.t2().ara_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var currentSession = tmp; var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, AccountListViewModel$onClickLogout$slambda_0(this, currentSession, null)); }; protoOf(AccountListViewModel).xrd = function () { var tmp0_safe_receiver = this.tr9_1.t2().ara_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.enu_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z96_1; var tmp; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp2_elvis_lhs; } var personUid = tmp; Companion_getInstance_125(); this.rqm_1.dp6('PersonDetailView', mapOf_0(to('entityUid', personUid.toString()))); }; protoOf(AccountListViewModel).yrd = 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.or9_1 == null)) { Companion_getInstance_125(); this_0.s('serverUrl', this.or9_1); } Companion_getInstance_125(); Companion_getInstance_125(); this.dqo(this_0, listOf(['next', 'noSessionChange'])); Companion_getInstance_125(); Companion_getInstance_125(); var tmp0_elvis_lhs = this.pqm_1.ba('maxDob'); this_0.s('maxDob', tmp0_elvis_lhs == null ? '0' : tmp0_elvis_lhs); var args = this_0.f3(); var tmp = this.gqn(); launch(tmp, VOID, VOID, AccountListViewModel$onClickAddAccount$slambda_0(this, args, null)); }; protoOf(AccountListViewModel).zrd = function (sessionWithPersonAndLearningSpace) { var tmp; if (sessionWithPersonAndLearningSpace.enu_1.h97_1) { Companion_getInstance_168(); tmp = 'ContentEntryListHome'; } else { Companion_getInstance_139(); tmp = 'CourseListHome'; } var viewName = tmp; var tmp1_$this = this.nr9_1; var tmp2_navController = this.rqm_1; Companion_getInstance_125(); var tmp0_elvis_lhs = this.pqm_1.ba('next'); var tmp3_nextDest = tmp0_elvis_lhs == null ? viewName : tmp0_elvis_lhs; var tmp4_dontSetCurrentSession = this.zr9_1; tmp1_$this.dpo(sessionWithPersonAndLearningSpace, tmp3_nextDest, tmp2_navController, VOID, tmp4_dontSetCurrentSession); }; protoOf(AccountListViewModel).are = function (session) { var tmp = this.gqn(); launch(tmp, VOID, VOID, AccountListViewModel$onClickDeleteAccount$slambda_0(this, session, null)); }; protoOf(AccountListViewModel).bre = function () { var launchUseCaseVal = _get_launchOpenLicensesUseCase__f5qz1z(this); if (!(launchUseCaseVal == null)) { var tmp = this.gqn(); launch(tmp, VOID, VOID, AccountListViewModel$onClickOpenLicenses$slambda_0(launchUseCaseVal, null)); } else { this.rqm_1.dp6('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.ara_1 = headerAccount; this.bra_1 = accountsList; this.cra_1 = showAccountEndpoint; this.dra_1 = version; this.era_1 = showPoweredBy; this.fra_1 = shareAppOptionVisible; this.gra_1 = shareAppBottomSheetVisible; } protoOf(AccountListUiState).cre = function () { return !(this.ara_1 == null) ? !this.ara_1.enu_1.z96_1.equals(new Long(0, 0)) : false; }; protoOf(AccountListUiState).dre = function () { return !(this.ara_1 == null) ? !isGuestUser(this.ara_1.enu_1) : false; }; protoOf(AccountListUiState).ere = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) { return new AccountListUiState(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).hra = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible, $super) { headerAccount = headerAccount === VOID ? this.ara_1 : headerAccount; accountsList = accountsList === VOID ? this.bra_1 : accountsList; showAccountEndpoint = showAccountEndpoint === VOID ? this.cra_1 : showAccountEndpoint; version = version === VOID ? this.dra_1 : version; showPoweredBy = showPoweredBy === VOID ? this.era_1 : showPoweredBy; shareAppOptionVisible = shareAppOptionVisible === VOID ? this.fra_1 : shareAppOptionVisible; shareAppBottomSheetVisible = shareAppBottomSheetVisible === VOID ? this.gra_1 : shareAppBottomSheetVisible; return $super === VOID ? this.ere(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) : $super.ere.call(this, headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).toString = function () { return 'AccountListUiState(headerAccount=' + this.ara_1 + ', accountsList=' + this.bra_1 + ', showAccountEndpoint=' + this.cra_1 + ', version=' + this.dra_1 + ', showPoweredBy=' + this.era_1 + ', shareAppOptionVisible=' + this.fra_1 + ', shareAppBottomSheetVisible=' + this.gra_1 + ')'; }; protoOf(AccountListUiState).hashCode = function () { var result = this.ara_1 == null ? 0 : this.ara_1.hashCode(); result = imul(result, 31) + hashCode(this.bra_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cra_1) | 0; result = imul(result, 31) + getStringHashCode(this.dra_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.era_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fra_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gra_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.ara_1, tmp0_other_with_cast.ara_1)) return false; if (!equals(this.bra_1, tmp0_other_with_cast.bra_1)) return false; if (!(this.cra_1 === tmp0_other_with_cast.cra_1)) return false; if (!(this.dra_1 === tmp0_other_with_cast.dra_1)) return false; if (!(this.era_1 === tmp0_other_with_cast.era_1)) return false; if (!(this.fra_1 === tmp0_other_with_cast.fra_1)) return false; if (!(this.gra_1 === tmp0_other_with_cast.gra_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.u57()); // 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).u5d(null, getLocalDelegateReference('dataLayer', KProperty0, false, function () { return THROW_ISE(); })); // Inline function 'kotlin.takeIf' call var this_1 = _this__u8e3s4.gqn(); // 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.fre_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_6).n1e = function (value, $completion) { return this.fre_1(value, $completion); }; function launchSetTitleFromClazzUid$slambda$slambda($updateUi, resultContinuation) { this.ore_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda$slambda).qre = function (it, $completion) { var tmp = this.rre(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).he = function (p1, $completion) { return this.qre((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; this.ore_1(this.pre_1); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).rre = function (it, completion) { var i = new launchSetTitleFromClazzUid$slambda$slambda(this.ore_1, completion); i.pre_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.qre(it, $completion); }; l.$arity = 1; return l; } function launchSetTitleFromClazzUid$slambda($clazzUid, $dataLayer$delegate, $updateUi, resultContinuation) { this.arf_1 = $clazzUid; this.brf_1 = $dataLayer$delegate; this.crf_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(launchSetTitleFromClazzUid$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(launchSetTitleFromClazzUid$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = launchSetTitleFromClazzUid$lambda(this.brf_1).uk2().i7e().t8d(this.arf_1); var tmp_1 = launchSetTitleFromClazzUid$slambda$slambda_0(this.crf_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(launchSetTitleFromClazzUid$slambda).p1n = function ($this$launch, completion) { var i = new launchSetTitleFromClazzUid$slambda(this.arf_1, this.brf_1, this.crf_1, completion); i.drf_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function parseAndUpdateTerminologyStringsIfNeeded(currentTerminologyStrings, terminology, systemImpl, json, onUpdate) { var tmp = currentTerminologyStrings == null ? null : currentTerminologyStrings.dq8_1; if (!equals(tmp, terminology == null ? null : terminology.j8h_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.i7e().t8d(clazzUid); var tmp_0 = collectClazzNameAndUpdateTitle$slambda_0(appUiState, null); return tmp.u1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_7(tmp_0), $completion); } function sam$kotlinx_coroutines_flow_FlowCollector$0_7(function_0) { this.erf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_7).n1e = function (value, $completion) { return this.erf_1(value, $completion); }; function collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation) { this.nrf_1 = $appUiState; CoroutineImpl.call(this, resultContinuation); } protoOf(collectClazzNameAndUpdateTitle$slambda).qre = function (clazzTitle, $completion) { var tmp = this.rre(clazzTitle, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(collectClazzNameAndUpdateTitle$slambda).he = function (p1, $completion) { return this.qre((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(collectClazzNameAndUpdateTitle$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.nrf_1; var tmp_0; if (!(this.nrf_1.t2().pq5_1 == this.orf_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.cq6(VOID, VOID, this.orf_1); if (tmp0_safe_receiver.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(collectClazzNameAndUpdateTitle$slambda).rre = function (clazzTitle, completion) { var i = new collectClazzNameAndUpdateTitle$slambda(this.nrf_1, completion); i.orf_1 = clazzTitle; return i; }; function collectClazzNameAndUpdateTitle$slambda_0($appUiState, resultContinuation) { var i = new collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation); var l = function (clazzTitle, $completion) { return i.qre(clazzTitle, $completion); }; l.$arity = 1; return l; } function get_blockTypeStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.o7y_1; var tmp; if (tmp0_subject === 102) { tmp = strings_getInstance().rn2_1; } else { if (tmp0_subject === 104) { tmp = strings_getInstance().en4_1; } else { if (tmp0_subject === 100) { tmp = strings_getInstance().hnh_1; } else { if (tmp0_subject === 103) { tmp = strings_getInstance().rn3_1; } else { if (tmp0_subject === 105) { tmp = strings_getInstance().mnh_1; } else { tmp = strings_getInstance().dmi_1; } } } } } return tmp; } function CoursePermissionConstants() { CoursePermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().knn_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1, 0)); var tmp_2 = strings_getInstance().qnn_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().hnj_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(2, 0)); var tmp_6 = strings_getInstance().lnn_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(4, 0)); var tmp_8 = strings_getInstance().mnn_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(8, 0)); var tmp_10 = strings_getInstance().nnn_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(16, 0)); var tmp_12 = strings_getInstance().cn2_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(32, 0)); var tmp_14 = strings_getInstance().en2_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(64, 0)); var tmp_16 = strings_getInstance().onn_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(128, 0)); var tmp_18 = strings_getInstance().pnn_1; PermissionFlags_getInstance(); tmp.prf_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$60(_this__u8e3s4, entity, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function titleStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.wdl_1; var tmp; if (tmp0_subject === 1000) { tmp = strings_getInstance().oml_1; } else { if (tmp0_subject === 1001) { tmp = strings_getInstance().tmy_1; } else { tmp = null; } } return tmp; } function getTitleForCoursePermission$slambda($entity, resultContinuation) { this.lrg_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda).nrg = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda).he = function (p1, $completion) { return this.nrg(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(getTitleForCoursePermission$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.mrg_1.k7e().ae8(this.lrg_1.vdl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(getTitleForCoursePermission$slambda).ony = function (it, completion) { var i = new getTitleForCoursePermission$slambda(this.lrg_1, completion); i.mrg_1 = it; return i; }; function getTitleForCoursePermission$slambda_0($entity, resultContinuation) { var i = new getTitleForCoursePermission$slambda($entity, resultContinuation); var l = function (it, $completion) { return i.nrg(it, $completion); }; l.$arity = 1; return l; } function getTitleForCoursePermission$slambda_1($entity, resultContinuation) { this.wrg_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda_1).yrg = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda_1).he = function (p1, $completion) { return this.yrg(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(getTitleForCoursePermission$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.xrg_1.h7e(); var tmp0_safe_receiver = this.wrg_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xdl_1; suspendResult = tmp_0.gg5(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(getTitleForCoursePermission$slambda_1).ony = function (it, completion) { var i = new getTitleForCoursePermission$slambda_1(this.wrg_1, completion); i.xrg_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.yrg(it, $completion); }; l.$arity = 1; return l; } function $getTitleForCoursePermissionCOROUTINE$60(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.yrf_1 = _this__u8e3s4; this.zrf_1 = entity; } protoOf($getTitleForCoursePermissionCOROUTINE$60).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1 = get_direct(this.yrf_1.u57()).z58(); var tmp_2 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); tmp_0.arg_1 = tmp_1.x58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; var tmp0_safe_receiver = this.zrf_1; tmp_3.brg_1 = tmp0_safe_receiver == null ? null : titleStringResource(tmp0_safe_receiver); if (!(this.brg_1 == null)) { this.hd_1 = 2; var tmp_4 = this.yrf_1.lqn(); suspendResult = localFirstThenRepoIfNull(tmp_4, getTitleForCoursePermission$slambda_0(this.zrf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_5 = this.yrf_1.lqn(); suspendResult = localFirstThenRepoIfNull(tmp_5, getTitleForCoursePermission$slambda_2(this.zrf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp5_elvis_lhs = suspendResult; this.crg_1 = tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs; this.hd_1 = 3; continue $sm; case 2: var terminology = suspendResult; var tmp2_elvis_lhs = terminology == null ? null : toTerminologyEntries(terminology, this.arg_1, this.yrf_1.pqn()); 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.gq8_1.equals(this.brg_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.hq8_1; tmp_6.crg_1 = tmp4_elvis_lhs == null ? this.yrf_1.pqn().coj(this.brg_1) : tmp4_elvis_lhs; this.hd_1 = 3; continue $sm; case 3: return this.crg_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_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.hrh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).jrh = function (it, $completion) { var tmp = this.krh(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.jrh((p1 == null ? true : p1 instanceof ClazzAndDetailPermissions) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_safe_receiver = this.irh_1; var clazz = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8k_1; var tmp_0; if (clazz == null) { tmp_0 = emptyList(); } else { var tmp_1; var tmp_2 = clazz.v8e_1; Companion_getInstance_4(); if (hasFlag_0(tmp_2, new Long(1, 0))) { tmp_1 = this.irh_1.u8k_1; } else { tmp_1 = false; } tmp_0 = createTabList(this.hrh_1, tmp_1, this.irh_1.v8k_1, this.irh_1.w8k_1); } var tabList = tmp_0; l$ret$1: do { var this_0 = this.hrh_1.hri_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.kri(tabList); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).krh = function (it, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda$slambda(this.hrh_1, completion); i.irh_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.jrh(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.tri_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.tri_1.jqn().i7e().r8d(this.tri_1.hqn(), this.tri_1.jqm_1); var tmp_1 = ClazzDetailViewModel$slambda$slambda$slambda$slambda_0(this.tri_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda(this.tri_1, completion); i.uri_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.drj_1 = $this_launch; this.erj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.drj_1, VOID, VOID, ClazzDetailViewModel$slambda$slambda$slambda_0(this.erj_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailViewModel$slambda$slambda).f79 = function (completion) { return new ClazzDetailViewModel$slambda$slambda(this.drj_1, this.erj_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.d88($completion); }; l.$arity = 0; return l; } function createTabList($this, showAttendance, showMembers, showProgressReport) { Companion_getInstance_116(); var tabs = mutableListOf([new TabItem('CourseDetailOverviewView', mapOf_0(to('entityUid', $this.jqm_1.toString())), $this.pqn().coj(strings_getInstance().tni_1))]); if (showMembers) { Companion_getInstance_116(); tabs.i1(new TabItem('CourseMembers', mapOf_0(to('clazzUid', $this.jqm_1.toString())), capitalizeFirstLetter($this.pqn().coj(strings_getInstance().jn1_1)))); } if (showProgressReport) { Companion_getInstance_116(); tabs.i1(new TabItem('Gradebook', mapOf_0(to('clazzUid', $this.jqm_1.toString())), $this.pqn().coj(strings_getInstance().jnp_1))); } if (showAttendance) { Companion_getInstance_116(); tabs.i1(new TabItem('CourseLogListAttendanceView', mapOf_0(to('clazzUid', $this.jqm_1.toString())), $this.pqn().coj(strings_getInstance().hml_1))); } Companion_getInstance_116(); tabs.i1(new TabItem('CourseGroups', mapOf_0(to('clazzUid', $this.jqm_1.toString())), $this.pqn().coj(strings_getInstance().tn0_1))); return toList(tabs); } function Companion_113() { this.frj_1 = 'Course'; } var Companion_instance_162; function Companion_getInstance_130() { return Companion_instance_162; } function sam$kotlinx_coroutines_flow_FlowCollector$0_8(function_0) { this.grj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_8).n1e = function (value, $completion) { return this.grj_1(value, $completion); }; function ClazzDetailViewModel$slambda(this$0, resultContinuation) { this.prj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.prj_1.hri_1, ClazzDetailViewModel$slambda$slambda_0(this.qrj_1, this.prj_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzDetailViewModel$slambda(this.prj_1, completion); i.qrj_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Course'); this.hri_1 = MutableStateFlow(new ClazzDetailUiState()); this.iri_1 = asStateFlow(this.hri_1); var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzDetailViewModel$slambda_0(this, null)); } function ClazzDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.jri_1 = tabs; } protoOf(ClazzDetailUiState).kri = function (tabs) { return new ClazzDetailUiState(tabs); }; protoOf(ClazzDetailUiState).toString = function () { return 'ClazzDetailUiState(tabs=' + this.jri_1 + ')'; }; protoOf(ClazzDetailUiState).hashCode = function () { return hashCode(this.jri_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.jri_1, tmp0_other_with_cast.jri_1)) return false; return true; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.zrj_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).drk = function (value, $completion) { var tmp = this.erk(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).he = function (p1, $completion) { return this.drk(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.brk_1 = this.zrj_1; var tmp_1 = this; tmp_1.crk_1 = this.ark_1; this.hd_1 = 1; var it = this.crk_1; suspendResult = this.brk_1.n1e(it.rdo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).erk = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.zrj_1, completion); i.ark_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.drk(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$61(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nrk_1 = _this__u8e3s4; this.ork_1 = collector; } protoOf($collectCOROUTINE$61).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.prk_1 = this.ork_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.prk_1, null); suspendResult = this.nrk_1.qrk_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.zrk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).brl = function (courseBlockList, $completion) { var tmp = this.crl(courseBlockList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.brl((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.zrk_1.zrl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nrm(VOID, VOID, this.arl_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).crl = function (courseBlockList, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.zrk_1, completion); i.arl_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.brl(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.wrm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).yrm = function (blockStatuses, $completion) { var tmp = this.zrm(blockStatuses, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.yrm((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.wrm_1.zrl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nrm(VOID, VOID, VOID, this.xrm_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).zrm = function (blockStatuses, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this.wrm_1, completion); i.xrm_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.yrm(blockStatuses, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.irn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.irn_1.lqn().j7e().ccm(this.irn_1.jqm_1, false, false, systemTimeInMillis(), this.irn_1.hqn()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.irn_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.irn_1, completion); i.jrn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.srn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.srn_1.lqn().d7f().mje(this.srn_1.jqm_1, listOf_0(this.srn_1.hqn()), this.srn_1.hqn()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(this.srn_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this.srn_1, completion); i.trn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_3($this) { this.qrk_1 = $this; } protoOf(_no_name_provided__qut3iv_3).qqe = function (collector, $completion) { var tmp = new $collectCOROUTINE$61(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_3).u1c = function (collector, $completion) { return this.qqe(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda($this_launch, this$0, resultContinuation) { this.cro_1 = $this_launch; this.dro_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).bqf = function (hasViewPermission, $completion) { var tmp = this.cqf(hasViewPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; if (this.ero_1) { launch(this.cro_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.dro_1, null)); launch(this.cro_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_2(this.dro_1, null)); } else { l$ret$1: do { var this_0 = this.dro_1.zrl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nrm(VOID, VOID, emptyList()); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).cqf = function (hasViewPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.cro_1, this.dro_1, completion); i.ero_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.bqf(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.zrl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel......' call var nextValue = prevValue.nrm(VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.s1l(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).pro = function (clazzWithDisplayDetails, permissions, $completion) { var tmp = this.qro(clazzWithDisplayDetails, permissions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).on = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof ClazzAndDisplayDetails) ? p1 : THROW_CCE(); return this.pro(tmp, p2 instanceof PermissionTriple ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.nro_1; var tmp_0; if (this.oro_1.rdo_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).qro = function (clazzWithDisplayDetails, permissions, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.nro_1 = clazzWithDisplayDetails; i.oro_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.pro(clazzWithDisplayDetails, permissions, $completion); }; l.$arity = 2; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.zro_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).brp = function (it, $completion) { var tmp = this.crp(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.brp((p1 == null ? true : p1 instanceof ClazzAndDisplayDetails) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.zro_1.zrl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nrm(this.arp_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_currentTerminologyStrings = this.zro_1.zrl_1.t2().krm_1; var tmp0_safe_receiver = this.arp_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k8l_1; var tmp3_json = this.zro_1.g4s(); var tmp4_systemImpl = this.zro_1.pqn(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$lambda(this.zro_1)); l$ret$3: do { var this_1 = this.zro_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.arp_1; var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.j8l_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m8e_1; var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).crp = function (it, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.zro_1, completion); i.arp_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.brp(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) { this.lrp_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).drk = function (value, $completion) { var tmp = this.erk(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).he = function (p1, $completion) { return this.drk(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.nrp_1 = this.lrp_1; var tmp_1 = this; tmp_1.orp_1 = this.mrp_1; this.hd_1 = 1; var it = this.orp_1; suspendResult = this.nrp_1.n1e(it.sdo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).erk = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1(this.lrp_1, completion); i.mrp_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.drk(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$62(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xrp_1 = _this__u8e3s4; this.yrp_1 = collector; } protoOf($collectCOROUTINE$62).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.zrp_1 = this.yrp_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_2(this.zrp_1, null); suspendResult = this.xrp_1.arq_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_4($this) { this.arq_1 = $this; } protoOf(_no_name_provided__qut3iv_4).qqe = function (collector, $completion) { var tmp = new $collectCOROUTINE$62(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_4).u1c = function (collector, $completion) { return this.qqe(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.jrq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).bqf = function (hasEditPermission, $completion) { var tmp = this.cqf(hasEditPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.jrq_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(prevValue.nq5_1.iq6(this.krq_1)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.jrq_1.zrl_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.nrm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.krq_1); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).cqf = function (hasEditPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.jrq_1, completion); i.krq_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.bqf(hasEditPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) { this.trq_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).drk = function (value, $completion) { var tmp = this.erk(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).he = function (p1, $completion) { return this.drk(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.vrq_1 = this.trq_1; var tmp_1 = this; tmp_1.wrq_1 = this.urq_1; this.hd_1 = 1; var it = this.wrq_1; suspendResult = this.vrq_1.n1e(it.tdo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).erk = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3(this.trq_1, completion); i.urq_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.drk(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$63(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.frr_1 = _this__u8e3s4; this.grr_1 = collector; } protoOf($collectCOROUTINE$63).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.hrr_1 = this.grr_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_4(this.hrr_1, null); suspendResult = this.frr_1.irr_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_5($this) { this.irr_1 = $this; } protoOf(_no_name_provided__qut3iv_5).qqe = function (collector, $completion) { var tmp = new $collectCOROUTINE$63(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_5).u1c = function (collector, $completion) { return this.qqe(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.rrr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).bqf = function (canAddStudent, $completion) { var tmp = this.cqf(canAddStudent, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.rrr_1.zrl_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nrm(VOID, VOID, VOID, VOID, this.srr_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).cqf = function (canAddStudent, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.rrr_1, completion); i.srr_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.bqf(canAddStudent, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.brs_1 = $permissionFlow; this.crs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.brs_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_3(this_0)); suspendResult = collectLatest(tmp_0, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.drs_1, this.crs_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda(this.brs_1, this.crs_1, completion); i.drs_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_0($permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_1(this$0, $permissionFlow, resultContinuation) { this.mrs_1 = this$0; this.nrs_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.mrs_1.lqn().i7e().s8d(this.mrs_1.jqm_1, systemTimeInMillis(), this.mrs_1.hqn()); var tmp_1 = combine(tmp_0, this.nrs_1, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_2 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.mrs_1, null); suspendResult = tmp_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_1(this.mrs_1, this.nrs_1, completion); i.ors_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_2(this$0, $permissionFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_1(this$0, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_3($permissionFlow, this$0, resultContinuation) { this.xrs_1 = $permissionFlow; this.yrs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.xrs_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_4(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.yrs_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this.xrs_1, this.yrs_1, completion); i.zrs_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda_4($permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_3($permissionFlow, this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_5($permissionFlow, this$0, resultContinuation) { this.irt_1 = $permissionFlow; this.jrt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.irt_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_5(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.jrt_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_5(this.irt_1, this.jrt_1, completion); i.krt_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda($this_launch, $permissionFlow, this$0, resultContinuation) { this.trt_1 = $this_launch; this.urt_1 = $permissionFlow; this.vrt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.trt_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_0(this.urt_1, this.vrt_1, null)); launch(this.trt_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_2(this.vrt_1, this.urt_1, null)); launch(this.trt_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_4(this.urt_1, this.vrt_1, null)); launch(this.trt_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_6(this.urt_1, this.vrt_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).f79 = function (completion) { return new ClazzDetailOverviewViewModel$slambda$slambda(this.trt_1, this.urt_1, this.vrt_1, completion); }; function ClazzDetailOverviewViewModel$slambda$slambda_0($this_launch, $permissionFlow, this$0, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda$slambda($this_launch, $permissionFlow, this$0, resultContinuation); var l = function ($completion) { return i.d88($completion); }; l.$arity = 0; return l; } function _get_setClipboardStringUseCase__31i1s1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.brm_1; setClipboardStringUseCase$factory_0(); return this_0.t2(); } function onClickEdit($this) { Companion_getInstance_116(); $this.rqm_1.dp6('CourseEdit', mapOf_0(to('entityUid', $this.jqm_1.toString()))); } function Companion_114() { this.wrt_1 = 'CourseDetailOverviewView'; } var Companion_instance_163; function Companion_getInstance_131() { return Companion_instance_163; } function sam$kotlinx_coroutines_flow_FlowCollector$0_9(function_0) { this.xrt_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_9).n1e = function (value, $completion) { return this.xrt_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, $permissionFlow, resultContinuation) { this.gru_1 = this$0; this.hru_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDetailOverviewViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.gru_1.zrl_1, ClazzDetailOverviewViewModel$slambda$slambda_0(this.iru_1, this.hru_1, this.gru_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzDetailOverviewViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda(this.gru_1, this.hru_1, completion); i.iru_1 = $this$launch; return i; }; function ClazzDetailOverviewViewModel$slambda_0(this$0, $permissionFlow, resultContinuation) { var i = new ClazzDetailOverviewViewModel$slambda(this$0, $permissionFlow, resultContinuation); var l = function ($this$launch, $completion) { return i.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'CourseDetailOverviewView' : destinationName; DetailViewModel.call(this, di, savedStateHandle, destinationName); this.zrl_1 = MutableStateFlow(new ClazzDetailOverviewUiState()); this.arm_1 = asStateFlow(this.zrl_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.brm_1 = Instance(this, tmp$ret$0, null).u5d(this, setClipboardStringUseCase$factory()); this.crm_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.drm_1 = asSharedFlow(this.crm_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.' call var tmp_1 = this.pqn().coj(strings_getInstance().pmv_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.cq6(new FabUiState(false, tmp_1, tmp_2, ClazzDetailOverviewViewModel$onClickEdit$ref(this))); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.lqn().i7g(); var tmp_4 = this.hqn(); PermissionFlags_getInstance(); var tmp_5 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_6 = new Long(2, 0); PermissionFlags_getInstance(); var permissionFlow = shareIn(tmp_3.cdl(tmp_4, this.jqm_1, tmp_5, tmp_6, new Long(8, 0)), this.gqn(), Companion_getInstance_12().p1i()); var tmp_7 = this.gqn(); launch(tmp_7, VOID, VOID, ClazzDetailOverviewViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzDetailOverviewViewModel).jru = function (code) { _get_setClipboardStringUseCase__31i1s1(this).ip1(code); this.nqn().rq6(new Snack(this.pqn().coj(strings_getInstance().rn8_1))); }; protoOf(ClazzDetailOverviewViewModel).kru = function (courseBlock) { Companion_getInstance_125(); var tmp = to('entityUid', courseBlock.n7y_1.toString()); Companion_getInstance_125(); var navArgs = mapOf([tmp, to('clazzUid', this.jqm_1.toString())]); var tmp0_subject = courseBlock.o7y_1; if (tmp0_subject === 100) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zrl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.onClickCourseBlock.' call var nextValue = prevValue.nrm(VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.jrm_1, courseBlock.n7y_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.crm_1.c1i(new RefreshCommand()); } else { if (tmp0_subject === 102) { this.rqm_1.dp6('CourseText', navArgs); } else { if (tmp0_subject === 103) { this.rqm_1.dp6('CourseAssignment', navArgs); } else { if (tmp0_subject === 105) { this.rqm_1.dp6('CourseDiscussion', navArgs); } else { if (tmp0_subject === 104) { Companion_getInstance_159(); Companion_getInstance_125(); var tmp_0 = to('entityUid', courseBlock.f7z_1.toString()); Companion_getInstance_125(); var tmp_1 = to('clazzUid', this.jqm_1.toString()); Companion_getInstance_125(); this.rqm_1.dp6('ContentEntry', mapOf([tmp_0, tmp_1, to('courseBlockUid', courseBlock.n7y_1.toString())])); } } } } } }; protoOf(ClazzDetailOverviewViewModel).lru = function () { Companion_getInstance_125(); this.rqm_1.dp6('CoursePermissionList', mapOf_0(to('clazzUid', this.jqm_1.toString()))); }; 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.grm_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.tco_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q7y_1; if (!this$0.jrm_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) { 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; this.erm_1 = clazzAndDetail; this.frm_1 = scheduleList; this.grm_1 = courseBlockList; this.hrm_1 = blockStatusesForActiveUser; this.irm_1 = clazzCodeVisible; this.jrm_1 = collapsedBlockUids; this.krm_1 = terminologyStrings; this.lrm_1 = managePermissionVisible; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.mrm_1 = lazy(tmp_0, ClazzDetailOverviewUiState$displayBlockList$delegate$lambda(this)); } protoOf(ClazzDetailOverviewUiState).mru = function () { var tmp0_safe_receiver = this.erm_1; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j8l_1; }; protoOf(ClazzDetailOverviewUiState).nru = function () { var tmp; var tmp0_safe_receiver = this.erm_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j8l_1; if (isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t8e_1)) { tmp = true; } else { var tmp2_safe_receiver = this.erm_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j8l_1; tmp = isDateSet(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.u8e_1); } return tmp; }; protoOf(ClazzDetailOverviewUiState).oru = function () { var tmp0_safe_receiver = this.erm_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m8l_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).pru = function () { var tmp0_safe_receiver = this.erm_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n8l_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).qru = function () { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.grm_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.tco_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7y_1; if (tmp_0 === 100) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } return tmp$ret$0; }; protoOf(ClazzDetailOverviewUiState).rru = function () { var tmp2_safe_receiver = this.krm_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.eq8(strings_getInstance().tmy_1); var tmp = (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs) + ': ' + this.pru() + ', '; var tmp0_safe_receiver = this.krm_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.eq8(strings_getInstance().oml_1); return tmp + ((tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ': ' + this.oru()); }; protoOf(ClazzDetailOverviewUiState).sru = function () { return this.lrm_1; }; protoOf(ClazzDetailOverviewUiState).tru = function () { // Inline function 'kotlin.getValue' call var this_0 = this.mrm_1; displayBlockList$factory(); return this_0.t2(); }; protoOf(ClazzDetailOverviewUiState).uru = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible) { return new ClazzDetailOverviewUiState(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible); }; protoOf(ClazzDetailOverviewUiState).nrm = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, $super) { clazzAndDetail = clazzAndDetail === VOID ? this.erm_1 : clazzAndDetail; scheduleList = scheduleList === VOID ? this.frm_1 : scheduleList; courseBlockList = courseBlockList === VOID ? this.grm_1 : courseBlockList; blockStatusesForActiveUser = blockStatusesForActiveUser === VOID ? this.hrm_1 : blockStatusesForActiveUser; clazzCodeVisible = clazzCodeVisible === VOID ? this.irm_1 : clazzCodeVisible; collapsedBlockUids = collapsedBlockUids === VOID ? this.jrm_1 : collapsedBlockUids; terminologyStrings = terminologyStrings === VOID ? this.krm_1 : terminologyStrings; managePermissionVisible = managePermissionVisible === VOID ? this.lrm_1 : managePermissionVisible; return $super === VOID ? this.uru(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible) : $super.uru.call(this, clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible); }; protoOf(ClazzDetailOverviewUiState).toString = function () { return 'ClazzDetailOverviewUiState(clazzAndDetail=' + this.erm_1 + ', scheduleList=' + this.frm_1 + ', courseBlockList=' + this.grm_1 + ', blockStatusesForActiveUser=' + this.hrm_1 + ', clazzCodeVisible=' + this.irm_1 + ', collapsedBlockUids=' + this.jrm_1 + ', terminologyStrings=' + this.krm_1 + ', managePermissionVisible=' + this.lrm_1 + ')'; }; protoOf(ClazzDetailOverviewUiState).hashCode = function () { var result = this.erm_1 == null ? 0 : this.erm_1.hashCode(); result = imul(result, 31) + hashCode(this.frm_1) | 0; result = imul(result, 31) + hashCode(this.grm_1) | 0; result = imul(result, 31) + hashCode(this.hrm_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.irm_1) | 0; result = imul(result, 31) + hashCode(this.jrm_1) | 0; result = imul(result, 31) + (this.krm_1 == null ? 0 : this.krm_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.lrm_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.erm_1, tmp0_other_with_cast.erm_1)) return false; if (!equals(this.frm_1, tmp0_other_with_cast.frm_1)) return false; if (!equals(this.grm_1, tmp0_other_with_cast.grm_1)) return false; if (!equals(this.hrm_1, tmp0_other_with_cast.hrm_1)) return false; if (!(this.irm_1 === tmp0_other_with_cast.irm_1)) return false; if (!equals(this.jrm_1, tmp0_other_with_cast.jrm_1)) return false; if (!equals(this.krm_1, tmp0_other_with_cast.krm_1)) return false; if (!(this.lrm_1 === tmp0_other_with_cast.lrm_1)) return false; return true; }; function setClipboardStringUseCase$factory() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1(receiver); }, null); } function setClipboardStringUseCase$factory_0() { return getPropertyCallableRef('setClipboardStringUseCase', 1, KProperty1, function (receiver) { return _get_setClipboardStringUseCase__31i1s1(receiver); }, null); } function displayBlockList$factory() { return getPropertyCallableRef('displayBlockList', 1, KProperty1, function (receiver) { return receiver.tru(); }, null); } function ClazzEditViewModel$slambda$slambda$slambda$lambda(this$0) { return function ($this$shallowCopy) { $this$shallowCopy.f8h_1 = new CoursePicture(this$0.xqs_1); return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.drv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda).hrv = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.hrv(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.erv_1.i7e(); var tmp_1; if (!this.drv_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.frv_1 = tmp_1; if (this.frv_1 == null) { this.grv_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.frv_1.o8d(this.drv_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.grv_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var dbResult = this.grv_1; var hasPicture = !((dbResult == null ? null : dbResult.f8h_1) == null); var tmp_2; if (dbResult == null ? true : hasPicture) { tmp_2 = dbResult; } else { tmp_2 = shallowCopy_3(dbResult, ClazzEditViewModel$slambda$slambda$slambda$lambda(this.drv_1)); } return tmp_2; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda).ony = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda(this.drv_1, completion); i.erv_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.hrv(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.qrv_1 = this$0; this.rrv_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).wrv = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).g79 = function ($completion) { return this.wrv($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; tmp_0.srv_1 = new ClazzWithHolidayCalendarAndAndTerminology(); var tmp_1 = this; tmp_1.trv_1 = this.srv_1; this.trv_1.l8e_1 = this.qrv_1.brx_1; this.trv_1.m8e_1 = ''; this.trv_1.r8e_1 = true; this.trv_1.t8e_1 = systemTimeInMillis(); this.trv_1.d8f_1 = getDefaultTimeZoneId(); var tmp_2 = this.trv_1; Companion_getInstance_116(); var tmp0_safe_receiver = this.rrv_1.ba('schoolUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.w8e_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_3 = this; var this_0 = this.qrv_1.lqn().k7e(); var tmp_4; if (!this.trv_1.y8e_1.equals(new Long(0, 0))) { tmp_4 = this_0; } else { tmp_4 = null; } tmp_3.urv_1 = tmp_4; if (this.urv_1 == null) { this.vrv_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.urv_1.ae8(this.trv_1.y8e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.vrv_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.vrv_1; this.trv_1.e8h_1 = ARGUMENT; this.trv_1.f8h_1 = new CoursePicture(this.qrv_1.brx_1); this.trv_1.j8f_1 = this.qrv_1.hqn(); return this.srv_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).f79 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_1(this.qrv_1, this.rrv_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.wrv($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.zrw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.lrx(VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.urx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).yrx = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.yrx(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.vrx_1.h7f(); var tmp_1; if (!this.urx_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.wrx_1 = tmp_1; if (this.wrx_1 == null) { this.xrx_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.wrx_1.the(this.urx_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.xrx_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.xrx_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).ony = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_3(this.urx_1, completion); i.vrx_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.yrx(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).hry = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).g79 = function ($completion) { return this.hry($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).f79 = 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.hry($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.zrw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.lrx(VOID, VOID, VOID, VOID, VOID, it == null ? emptyList() : it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.qry_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).yry = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.yry(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp_0 = this; var this_0 = this.rry_1.j7e(); var tmp_1; if (!this.qry_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.sry_1 = tmp_1; if (this.sry_1 == null) { this.try_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.sry_1.bcm(this.qry_1.xqs_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.try_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.ury_1 = this.try_1; this.vry_1 = this.ury_1 == null ? emptyList() : this.ury_1; var tmp_2 = this; var this_1 = this.rry_1.a7g(); var tmp_3; if (!this.qry_1.xqs_1.equals(new Long(0, 0))) { tmp_3 = this_1; } else { tmp_3 = null; } tmp_2.wry_1 = tmp_3; if (this.wry_1 == null) { this.xry_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = this.wry_1.mfu(this.qry_1.xqs_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 3: this.xry_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var tmp3_elvis_lhs = this.xry_1; var assignmentPeerAllocations = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs; var this_2 = this.vry_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.cco_1); var tmp0_elvis_lhs = item.dco_1; var tmp_5 = tmp0_elvis_lhs == null ? new CourseBlockPicture(ensureNotNull(item.cco_1).n7y_1) : tmp0_elvis_lhs; var tmp_6 = item.eco_1; var tmp_7 = item.fco_1; var tmp_8 = item.gco_1; var tmp_9 = item.hco_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.kfv_1; var tmp0_safe_receiver = item.gco_1; if (tmp_10.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h7u_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).ony = function (db, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_7(this.qry_1, completion); i.rry_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.yry(db, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_9(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).hrz = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).g79 = function ($completion) { return this.hrz($completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).f79 = 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.hrz($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.zrw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.lrx(VOID, VOID, VOID, VOID, VOID, VOID, it == null ? emptyList() : it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_0($returnedSchedule) { return function (it) { return it.nhf_1.equals($returnedSchedule.nhf_1); }; } function ClazzEditViewModel$slambda$slambda$slambda$slambda(this$0, $newSchedules, resultContinuation) { this.qrz_1 = this$0; this.rrz_1 = $newSchedules; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).cr0 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.cr0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return this.qrz_1.g4s().l46(ListSerializer(Companion_instance_29.h4s()), this.rrz_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).p1n = function ($this$withContext, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda$slambda(this.qrz_1, this.rrz_1, completion); i.srz_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.cr0($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_11(this$0, $savedStateHandle, resultContinuation) { this.bs0_1 = this$0; this.cs0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.ds0_1.nq9_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.es0_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.bs0_1.zrw_1.t2().irx_1; tmp_3.fs0_1 = replaceOrAppend(tmp_4, this.es0_1, ClazzEditViewModel$slambda$slambda$slambda$lambda_0(this.es0_1)); l$ret$1: do { var this_0 = this.bs0_1.zrw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lrx(VOID, VOID, VOID, VOID, VOID, this.fs0_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 1; var tmp_5 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_5, ClazzEditViewModel$slambda$slambda$slambda$slambda_0(this.bs0_1, this.fs0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.cs0_1.tqi('schedule', ARGUMENT); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).hqa = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_11(this.bs0_1, this.cs0_1, completion); i.ds0_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_13(this$0, resultContinuation) { this.os0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.ps0_1.nq9_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.qs0_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.os0_1.zrw_1.t2().jrx_1; var tmp1_safe_receiver = this.os0_1.zrw_1.t2().erx_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l8e_1; tmp_3.rs0_1 = this.os0_1.urw_1.ypa(tmp_4, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.qs0_1); this.hd_1 = 1; suspendResult = updateCourseBlockList(this.os0_1, this.rs0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).hqa = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_13(this.os0_1, completion); i.ps0_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_1($timeZoneId) { return function ($this$shallowCopy) { $this$shallowCopy.d8f_1 = $timeZoneId; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_15(this$0, resultContinuation) { this.as1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.bs1_1.nq9_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.as1_1.zrw_1.t2().erx_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_3(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_1(timeZoneId)); } this.as1_1.cs1(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).hqa = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_15(this.as1_1, completion); i.bs1_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_2($newTerminology) { return function ($this$shallowCopy) { $this$shallowCopy.y8e_1 = $newTerminology.g8h_1; $this$shallowCopy.e8h_1 = $newTerminology; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_17(this$0, resultContinuation) { this.ls1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.ms1_1.nq9_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.ls1_1.zrw_1.t2().erx_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_3(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_2(newTerminology)); } this.ls1_1.cs1(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).hqa = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_17(this.ls1_1, completion); i.ms1_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_3($newDescription) { return function ($this$shallowCopy) { $this$shallowCopy.n8e_1 = $newDescription; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_19(this$0, resultContinuation) { this.vs1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.ws1_1.nq9_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.vs1_1.zrw_1.t2().erx_1; var tmp_2; if (tmp1_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = shallowCopy_3(tmp1_safe_receiver, ClazzEditViewModel$slambda$slambda$slambda$lambda_3(newDescription)); } this.vs1_1.cs1(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).hqa = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_19(this.vs1_1, completion); i.ws1_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.fs2_1 = this$0; this.gs2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda).is2 = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.is2((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_33.h4s(); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_0(this.fs2_1, null); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_2(this.fs2_1, this.gs2_1, null); suspendResult = this.fs2_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEditViewModel$slambda$slambda$lambda(this.fs2_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_123(); var tmp1_safe_receiver = this_0 == null ? null : this_0.f8h_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m8h_1; setIfNoValueSetYet(this.gs2_1, 'initPicUri', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); return this_0; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda).p1n = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda(this.fs2_1, this.gs2_1, completion); i.hs2_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.is2($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.rs2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_1).ts2 = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.ts2((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_instance_29.h4s()); var tmp_1 = listOf_0('schedule'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_4(this.rs2_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.rs2_1.zqn(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_0(this.rs2_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_1).p1n = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda_1(this.rs2_1, completion); i.ss2_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.ts2($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.cs3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_3).es3 = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.es3((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_13().h4s()); var tmp_1 = listOf_0('courseblocks'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_8(this.cs3_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_10(null); suspendResult = this.cs3_1.zqn(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_1(this.cs3_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_3).p1n = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda_3(this.cs3_1, completion); i.ds3_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.es3($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.ns3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_5).cr0 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_5).he = function (p1, $completion) { return this.cr0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.ns3_1.g4s(); var value = this.ns3_1.zrw_1.t2(); var this_1 = this_0.n46(); var this_2 = serializer(this_1, createKType(getKClass(ClazzEditUiState), arrayOf([]), false)); return this_0.l46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), value); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_5).p1n = function ($this$withContext, completion) { var i = new ClazzEditViewModel$slambda$slambda_5(this.ns3_1, completion); i.os3_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.cr0($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_7(this$0, $savedStateHandle, resultContinuation) { this.xs3_1 = this$0; this.ys3_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_7).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_7).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.xs3_1.tqn(this.xs3_1.oqn(), 'Schedule'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_12(this.xs3_1, this.ys3_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_7).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_7(this.xs3_1, this.ys3_1, completion); i.zs3_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_9(this$0, resultContinuation) { this.is4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_9).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_9).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.is4_1.tqn(this.is4_1.oqn(), 'courseblock'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_14(this.is4_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_9).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_9(this.is4_1, completion); i.js4_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_11(this$0, resultContinuation) { this.ss4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_11).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_11).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_11).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.ss4_1.tqn(this.ss4_1.oqn(), 'timeZone'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_16(this.ss4_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_11).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_11(this.ss4_1, completion); i.ts4_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_13(this$0, resultContinuation) { this.cs5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_13).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_13).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_13).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.cs5_1.tqn(this.cs5_1.oqn(), 'terminology'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_18(this.cs5_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_13).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_13(this.cs5_1, completion); i.ds5_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_15(this$0, resultContinuation) { this.ms5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_15).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda_15).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda$slambda_15).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.ms5_1.tqn(this.ms5_1.oqn(), 'clazzDescriptionHtml'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_20(this.ms5_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda_15).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_15(this.ms5_1, completion); i.ns5_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda($clazzUid) { return function ($this$shallowCopy) { $this$shallowCopy.uhf_1 = $clazzUid; return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0(it) { return it.nhf_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_1(it) { return it.lk8_1.n7y_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2(it) { return it.h7u_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_3(it) { return it.hfv_1; } function ClazzEditViewModel$onClickSave$slambda$slambda(this$0, $initEntity, $updateImage, $coursePictureVal, $entity, $initState, $courseBlockListVal, $updatedCourseBlockPictures, resultContinuation) { this.xs5_1 = this$0; this.ys5_1 = $initEntity; this.zs5_1 = $updateImage; this.as6_1 = $coursePictureVal; this.bs6_1 = $entity; this.cs6_1 = $initState; this.ds6_1 = $courseBlockListVal; this.es6_1 = $updatedCourseBlockPictures; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 20; if (this.xs5_1.xqs_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_createNewClazzUseCase__mo489e(this.xs5_1).joy(this.ys5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.xs5_1.lqn().i7e().p8d(this.ys5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.hd_1 = 3; continue $sm; case 2: this.hd_1 = 3; continue $sm; case 3: if (this.zs5_1 ? !(this.as6_1 == null) : false) { this.as6_1.l8h_1 = systemTimeInMillis(); this.hd_1 = 4; suspendResult = this.xs5_1.jqn().x7f().ae5(this.as6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 5; continue $sm; } case 4: this.hd_1 = 5; continue $sm; case 5: this.gs6_1 = this.bs6_1.l8e_1; var tmp_0 = this; var this_0 = this.xs5_1.zrw_1.t2().irx_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_4(item, ClazzEditViewModel$onClickSave$slambda$slambda$lambda(this.gs6_1))); } tmp_0.hs6_1 = destination; this.hd_1 = 6; suspendResult = this.xs5_1.lqn().h7f().rhe(this.hs6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; var tmp_1 = this.xs5_1.lqn().h7f(); suspendResult = deactivateByUids(tmp_1, findKeysNotInOtherList(this.cs6_1.irx_1, this.hs6_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.is6_1 = this.xs5_1.vrw_1.apb(this.ds6_1); this.hd_1 = 8; var tmp_2 = this.xs5_1.lqn().j7e(); var this_1 = this.is6_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.lk8_1); } suspendResult = tmp_2.ecm(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.hd_1 = 9; var tmp_3 = this.xs5_1.lqn().j7e(); suspendResult = deactivateByUids_0(tmp_3, findKeysNotInOtherList(this.cs6_1.jrx_1, this.is6_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.ds6_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.sk8_1; if (tmp0_safe_receiver == null) null; else { destination_1.i1(tmp0_safe_receiver); } } tmp_4.js6_1 = destination_1; this.hd_1 = 10; suspendResult = this.xs5_1.lqn().k7f().l7t(this.js6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp_5 = this; var this_3 = this.cs6_1.jrx_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.sk8_1; if (tmp0_safe_receiver_0 == null) null; else { destination_2.i1(tmp0_safe_receiver_0); } } tmp_5.ks6_1 = findKeysNotInOtherList(destination_2, this.js6_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2); var tmp_6 = this; var this_4 = this.xs5_1.lqn().k7f(); var tmp_7; if (!this.ks6_1.c1()) { tmp_7 = this_4; } else { tmp_7 = null; } tmp_6.ls6_1 = tmp_7; if (this.ls6_1 == null) { this.ms6_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.ls6_1.m7t(this.ks6_1, false, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 11: var tmp_8 = this; tmp_8.ms6_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: var tmp_9 = this; var this_5 = this.ds6_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.uk8_1; addAll(destination_3, list); } tmp_9.ns6_1 = destination_3; var tmp_10 = this; var this_6 = this.cs6_1.jrx_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.uk8_1; addAll(destination_4, list_0); } tmp_10.os6_1 = destination_4; this.hd_1 = 13; var tmp_11 = this.xs5_1.lqn().a7g(); suspendResult = deactivateByUids_1(tmp_11, findKeysNotInOtherList(this.os6_1, this.ns6_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_3), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 13: this.hd_1 = 14; suspendResult = this.xs5_1.lqn().a7g().nfu(this.ns6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 14: var tmp_12 = this; var this_7 = this.ds6_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.pk8_1; if (tmp0_safe_receiver_1 == null) null; else { destination_5.i1(tmp0_safe_receiver_1); } } tmp_12.ps6_1 = destination_5; this.qs6_1 = this.ps6_1.w(); this.hd_1 = 15; continue $sm; case 15: if (!this.qs6_1.f()) { this.hd_1 = 17; continue $sm; } this.rs6_1 = this.qs6_1.e(); var tmp_13 = this; tmp_13.ss6_1 = this.rs6_1; this.hd_1 = 16; suspendResult = this.xs5_1.xrw_1.ep5(this.ss6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 16: this.hd_1 = 15; continue $sm; case 17: var tmp_14 = this; var this_8 = this.xs5_1.jqn().k7g(); var tmp_15; if (!this.es6_1.c1()) { tmp_15 = this_8; } else { tmp_15 = null; } tmp_14.ts6_1 = tmp_15; if (this.ts6_1 == null) { this.us6_1 = null; this.hd_1 = 19; continue $sm; } else { this.hd_1 = 18; suspendResult = this.ts6_1.bd2(this.es6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 18: var tmp_16 = this; tmp_16.us6_1 = Unit_instance; this.hd_1 = 19; continue $sm; case 19: Napier_getInstance().c5f('onClickSave: transaction block done'); return Unit_instance; case 20: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 20) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new ClazzEditViewModel$onClickSave$slambda$slambda(this.xs5_1, this.ys5_1, this.zs5_1, this.as6_1, this.bs6_1, this.cs6_1, this.ds6_1, this.es6_1, completion); i.fs6_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.nny(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda$lambda($updatedBlock) { return function (it) { return it.lk8_1.n7y_1.equals($updatedBlock.lk8_1.n7y_1); }; } function _get_createNewClazzUseCase__mo489e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.crx_1; createNewClazzUseCase$factory_0(); return this_0.t2(); } function updateCourseBlockList($this, newCourseBlockList, $completion) { var tmp = new $updateCourseBlockListCOROUTINE$64($this, newCourseBlockList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function hasErrors(_this__u8e3s4, $this) { return (!(_this__u8e3s4.frx_1 == null) ? true : !(_this__u8e3s4.grx_1 == null)) ? true : !(_this__u8e3s4.hrx_1 == null); } function updateCourseBlock($this, updatedBlock) { var tmp = $this.gqn(); launch(tmp, VOID, VOID, ClazzEditViewModel$updateCourseBlock$slambda_0($this, updatedBlock, null)); } function Companion_115() { this.gs7_1 = 'CourseEdit'; this.hs7_1 = 'Schedule'; this.is7_1 = 'schedule'; this.js7_1 = 'courseblock'; this.ks7_1 = 'timeZone'; this.ls7_1 = 'terminology'; this.ms7_1 = 'courseblocks'; this.ns7_1 = 'clazzDescriptionHtml'; } var Companion_instance_164; function Companion_getInstance_132() { return Companion_instance_164; } function sam$kotlinx_coroutines_flow_FlowCollector$0_10(function_0) { this.os7_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_10).n1e = function (value, $completion) { return this.os7_1(value, $completion); }; function ClazzEditViewModel$slambda(this$0, resultContinuation) { this.xs7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda).as8 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; if (!this.xs7_1.xqs_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.ys7_1.i7g(); var tmp_1 = this.xs7_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ddl(tmp_1, this.xs7_1.xqs_1, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_2 = this.ys7_1.j7g(); var tmp_3 = this.xs7_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_2.ri0(tmp_3, new Long(512, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.zs7_1 = suspendResult; this.hd_1 = 3; continue $sm; case 2: this.zs7_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: return this.zs7_1; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda).ony = function (it, completion) { var i = new ClazzEditViewModel$slambda(this.xs7_1, completion); i.ys7_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.as8(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda_1($savedStateHandle, this$0, resultContinuation) { this.js8_1 = $savedStateHandle; this.ks8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; var tmp_0 = async(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_0(this.ks8_1, this.js8_1, null)); var tmp_1 = async(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_2(this.ks8_1, null)); suspendResult = awaitAll([tmp_0, tmp_1, async(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_4(this.ks8_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_125(); if (this.js8_1.ba('initState') == null) { var tmp_2 = this; Companion_getInstance_125(); tmp_2.ms8_1 = 'initState'; this.hd_1 = 2; var tmp_3 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_3, ClazzEditViewModel$slambda$slambda_6(this.ks8_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: var ARGUMENT = suspendResult; this.js8_1.tqi(this.ms8_1, ARGUMENT); this.hd_1 = 3; continue $sm; case 3: launch(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_8(this.ks8_1, this.js8_1, null)); launch(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_10(this.ks8_1, null)); launch(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_12(this.ks8_1, null)); launch(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_14(this.ks8_1, null)); launch(this.ls8_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_16(this.ks8_1, null)); l$ret$1: do { var this_0 = this.ks8_1.zrw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lrx(true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ks8_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_4 = Companion_getInstance_97().kq6_1; var tmp_5 = this.ks8_1.pqn().coj(strings_getInstance().dn3_1); var nextValue_0 = prevValue_0.cq6(VOID, tmp_4, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_5, VOID, ClazzEditViewModel$onClickSave$ref(this.ks8_1))); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new ClazzEditViewModel$slambda_1(this.js8_1, this.ks8_1, completion); i.ls8_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlockList$slambda(this$0, $newCourseBlockList, resultContinuation) { this.vs8_1 = this$0; this.ws8_1 = $newCourseBlockList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).cr0 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).he = function (p1, $completion) { return this.cr0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return this.vs8_1.g4s().l46(ListSerializer(Companion_getInstance_13().h4s()), this.ws8_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).p1n = function ($this$withContext, completion) { var i = new ClazzEditViewModel$updateCourseBlockList$slambda(this.vs8_1, this.ws8_1, completion); i.xs8_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.cr0($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.gs9_1 = $commitDelay; this.hs9_1 = $entity; this.is9_1 = $this; this.js9_1 = $key; this.ks9_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.gs9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.hs9_1 == null)) { this.hd_1 = 2; suspendResult = this.is9_1.vqn(this.is9_1.pqm_1, this.js9_1, this.ks9_1, this.hs9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$onEntityChanged$slambda(this.gs9_1, this.hs9_1, this.is9_1, this.js9_1, this.ks9_1, completion); i.ls9_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.o1n($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.v8e_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.m8e_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.m8e_1 = tmp_0; var tmp_1 = $this$shallowCopy; var tmp_2 = Companion_getInstance_6().bmh($initEntity.t8e_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs = $initEntity.d8f_1; var tmp$ret$1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; tmp_1.t8e_1 = toLocalMidnight(tmp_2, tmp$ret$1).amh(); var tmp_3; var tmp_4 = $this$shallowCopy.u8e_1; Companion_getInstance_2(); if (!tmp_4.equals(new Long(-1, 2147483647))) { var tmp_5 = $this$shallowCopy; var tmp_6 = Companion_getInstance_6().bmh($initEntity.u8e_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs_0 = $initEntity.d8f_1; var tmp$ret$2 = tmp0_elvis_lhs_0 == null ? 'UTC' : tmp0_elvis_lhs_0; tmp_5.u8e_1 = toLocalEndOfDay(tmp_6, tmp$ret$2).amh(); 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.zrw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave..' call var nextValue = prevValue.lrx(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda(this$0, $entity, $initEntity, resultContinuation) { this.us9_1 = this$0; this.vs9_1 = $entity; this.ws9_1 = $initEntity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onClickSave$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 12; this.hd_1 = 1; Companion_getInstance_125(); suspendResult = this.us9_1.uqn(this.us9_1.pqm_1, 'initState', Companion_getInstance_133().h4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xs9_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.xs9_1 == null) { return Unit_instance; } else { tmp_1 = this.xs9_1; } tmp_0.ys9_1 = tmp_1; Napier_getInstance().c5f('onClickSave: start transaction'); this.zs9_1 = this.us9_1.zrw_1.t2().jrx_1; this.asa_1 = this.vs9_1.f8h_1; var tmp_2 = this; var tmp_3; if (!(this.asa_1 == null)) { Companion_getInstance_123(); var tmp_4 = this.us9_1.pqm_1.ba('initPicUri'); var tmp1_safe_receiver = this.vs9_1.f8h_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m8h_1; tmp_3 = !(tmp_4 === (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs)); } else { tmp_3 = false; } tmp_2.bsa_1 = tmp_3; var tmp_5 = this; var this_0 = this.zs9_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.mk8_1; var imageUriNow = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s7z_1; var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.ys9_1.jrx_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = element_0.mk8_1; var tmp_6 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.q7z_1; var tmp1_safe_receiver_0 = element.mk8_1; if (equals(tmp_6, tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.q7z_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.mk8_1; var initImageUri = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.s7z_1; var tmp3_safe_receiver = element.mk8_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.csa_1 = destination; this.hd_1 = 2; var tmp_9 = this.us9_1.jqn(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzEditViewModel$onClickSave$slambda$slambda_0(this.us9_1, this.ws9_1, this.bsa_1, this.asa_1, this.vs9_1, this.ys9_1, this.zs9_1, this.csa_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Napier_getInstance().c5f('onClickSave: transaction done'); var tmp_10 = this; tmp_10.dsa_1 = this.zs9_1; this.esa_1 = this.dsa_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.esa_1.f()) { this.hd_1 = 6; continue $sm; } this.fsa_1 = this.esa_1.e(); var tmp_11 = this; tmp_11.gsa_1 = this.fsa_1; this.hsa_1 = this.gsa_1.nk8_1; if (this.hsa_1 == null) { this.isa_1 = null; this.hd_1 = 5; continue $sm; } else { var tmp_12 = this; tmp_12.jsa_1 = this.hsa_1; var tmp_13 = this; tmp_13.ksa_1 = this.jsa_1; this.hd_1 = 4; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_1 = this.ys9_1.jrx_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_2 = element_1.mk8_1; var tmp_14 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.q7z_1; var tmp1_safe_receiver_2 = this.gsa_1.mk8_1; if (equals(tmp_14, tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.q7z_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.mk8_1; suspendResult = this.us9_1.wrw_1.xpa(this.ksa_1, null, this.gsa_1.ok8_1, tmp1_safe_receiver_3 == null ? null : tmp1_safe_receiver_3.s7z_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.isa_1 = this.jsa_1; this.hd_1 = 5; continue $sm; case 5: this.hd_1 = 3; continue $sm; case 6: var tmp_15 = this; var this_1 = this.us9_1.yrw_1; var tmp_16; if (this.bsa_1) { tmp_16 = this_1; } else { tmp_16 = null; } tmp_15.lsa_1 = tmp_16; if (this.lsa_1 == null) { this.msa_1 = null; this.hd_1 = 8; continue $sm; } else { this.hd_1 = 7; var tmp_17 = this.vs9_1.l8e_1; var tmp3_safe_receiver_0 = this.asa_1; suspendResult = this.lsa_1.nor(tmp_17, 125, tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.m8h_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 7: var tmp_18 = this; tmp_18.msa_1 = Unit_instance; this.hd_1 = 8; continue $sm; case 8: var tmp_19 = this; tmp_19.nsa_1 = this.csa_1; this.osa_1 = this.nsa_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.osa_1.f()) { this.hd_1 = 11; continue $sm; } this.psa_1 = this.osa_1.e(); var tmp_20 = this; tmp_20.qsa_1 = this.psa_1; this.hd_1 = 10; var tmp_21 = this.qsa_1.q7z_1; suspendResult = this.us9_1.yrw_1.nor(tmp_21, 6677, this.qsa_1.s7z_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: this.hd_1 = 9; continue $sm; case 11: Napier_getInstance().c5f('onClickSave: done'); this.us9_1.zqs('Course', this.vs9_1.l8e_1, this.vs9_1); return Unit_instance; case 12: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 12) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickSave$slambda).f79 = function (completion) { return new ClazzEditViewModel$onClickSave$slambda(this.us9_1, this.vs9_1, this.ws9_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.d88($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$onCourseBlockMoved$slambda(this$0, $newList, resultContinuation) { this.bsb_1 = this$0; this.csb_1 = $newList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = updateCourseBlockList(this.bsb_1, this.csb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$onCourseBlockMoved$slambda(this.bsb_1, this.csb_1, completion); i.dsb_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda(this$0, $updatedBlock, resultContinuation) { this.msb_1 = this$0; this.nsb_1 = $updatedBlock; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlock$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$updateCourseBlock$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$updateCourseBlock$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.msb_1.zrw_1.t2().jrx_1; suspendResult = updateCourseBlockList(this.msb_1, replace_0(tmp_0, this.nsb_1, ClazzEditViewModel$updateCourseBlock$slambda$lambda(this.nsb_1)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$updateCourseBlock$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$updateCourseBlock$slambda(this.msb_1, this.nsb_1, completion); i.osb_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onClickDeleteCourseBlock$slambda(this$0, $block, resultContinuation) { this.xsb_1 = this$0; this.ysb_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.xsb_1.zrw_1.t2().jrx_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.lk8_1.n7y_1.equals(this.ysb_1.lk8_1.n7y_1)) { destination.i1(element); } } suspendResult = updateCourseBlockList(this.xsb_1, destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEditViewModel$onClickDeleteCourseBlock$slambda(this.xsb_1, this.ysb_1, completion); i.zsb_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function $updateCourseBlockListCOROUTINE$64(_this__u8e3s4, newCourseBlockList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ds7_1 = _this__u8e3s4; this.es7_1 = newCourseBlockList; } protoOf($updateCourseBlockListCOROUTINE$64).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; l$ret$1: do { var this_0 = this.ds7_1.zrw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lrx(VOID, VOID, VOID, VOID, VOID, VOID, this.es7_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.fs7_1 = this.ds7_1.pqm_1; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_0, ClazzEditViewModel$updateCourseBlockList$slambda_0(this.ds7_1, this.es7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.fs7_1.tqi('courseblocks', ARGUMENT); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_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)).z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(onActiveLearningSpace(di)).z58(); // 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.x58(tmp$ret$2, null).rk2_1; // Inline function 'org.kodein.di.instance' call var tmp_6 = get_direct(onActiveLearningSpace(di)).z58(); // 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.x58(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)).z58(); // 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.x58(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)).z58(); // 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.x58(tmp$ret$0_1, null); } else { tmp_11 = enqueueSavePictureUseCase; } enqueueSavePictureUseCase = tmp_11; UstadEditViewModel.call(this, di, savedStateHandle, 'CourseEdit'); this.urw_1 = addOrUpdateCourseBlockUseCase; this.vrw_1 = updateCourseBlocksOnReorderOrCommitUseCase; this.wrw_1 = saveContentEntryUseCase; this.xrw_1 = importContentUseCase; this.yrw_1 = enqueueSavePictureUseCase; this.zrw_1 = MutableStateFlow(new ClazzEditUiState()); this.arx_1 = asStateFlow(this.zrw_1); var tmp_14 = this; Companion_getInstance_125(); 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.jqn()); Companion_getInstance_4(); tmp_15 = tmp_16.h63(6); } else { tmp_15 = tmp1_elvis_lhs; } tmp_14.brx_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.crx_1 = Instance(this_0, tmp$ret$10, null).u5d(this, createNewClazzUseCase$factory()); var title = this.zqt(strings_getInstance().fnj_1, strings_getInstance().hnj_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.' call var tmp0_loadingState = Companion_getInstance_97().jq6_1; var nextValue = new AppUiState(VOID, tmp0_loadingState, title, VOID, true); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_19 = ClazzEditViewModel$slambda_0(this, null); this.bqo(tmp_19, VOID, VOID, ClazzEditViewModel$slambda_2(savedStateHandle, this, null)); } protoOf(ClazzEditViewModel).cs1 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zrw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.erx_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u8e_1; var tmp6_clazzEndDateError = this.aqu(tmp, entity == null ? null : entity.u8e_1, prevValue.grx_1); var tmp0_safe_receiver = prevValue.erx_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8e_1; var tmp7_clazzStartDateError = this.aqu(tmp_0, entity == null ? null : entity.t8e_1, prevValue.frx_1); var tmp4_safe_receiver = prevValue.erx_1; var tmp_1 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.m8e_1; var tmp8_clazzNameError = this.aqu(tmp_1, entity == null ? null : entity.m8e_1, prevValue.hrx_1); var nextValue = prevValue.lrx(VOID, entity, tmp7_clazzStartDateError, tmp6_clazzEndDateError, tmp8_clazzNameError); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_33.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_2 = this; var tmp_3 = this.gqn(); tmp_2.wqs_1 = launch(tmp_3, VOID, VOID, ClazzEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEditViewModel).asc = function (checked) { var tmp0_safe_receiver = this.zrw_1.t2().erx_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_3(tmp0_safe_receiver, ClazzEditViewModel$onCheckedAttendanceChanged$lambda(checked)); } this.cs1(tmp); }; protoOf(ClazzEditViewModel).bsc = function () { this.xqn('ScheduleEdit', 'Schedule', null, Companion_instance_29.h4s()); }; protoOf(ClazzEditViewModel).csc = function (schedule) { this.xqn('ScheduleEdit', 'Schedule', schedule, Companion_instance_29.h4s()); }; protoOf(ClazzEditViewModel).dsc = function (schedule) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.zrw_1.t2().irx_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.nhf_1.equals(schedule.nhf_1)) { destination.i1(element); } } var newSchedules = destination; this.pqm_1.tqi('schedule', this.g4s().l46(ListSerializer(Companion_instance_29.h4s()), newSchedules)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zrw_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickDeleteSchedule.' call var nextValue = prevValue.lrx(VOID, VOID, VOID, VOID, VOID, newSchedules); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzEditViewModel).esc = function (blockType) { if (blockType === 104) { Companion_getInstance_168(); var tmp = Companion_getInstance_13().h4s(); Companion_getInstance_116(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_116(); var tmp_1 = to('clazzUid', this.brx_1.toString()); Companion_getInstance_173(); var tmp_2 = to('blockType', (104).toString()); this.xqn('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_173(); 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_173(); this_0.s('blockType', blockType.toString()); Companion_getInstance_116(); this_0.s('clazzUid', this.brx_1.toString()); if (blockType === 103) { var tmp0_safe_receiver = this.zrw_1.t2().erx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e8h_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.g4s().l46(Companion_instance_34.h4s(), tmp1_safe_receiver)); } } var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_getInstance_13().h4s(); this.xqn(viewName, keyName, null, tmp3_serializer, tmp2_args); }; protoOf(ClazzEditViewModel).os5 = function () { var tmp0_elvis_lhs = this.zrw_1.t2().erx_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var initEntity = tmp; if (this.sqn().equals(Companion_getInstance_97().jq6_1)) { Napier_getInstance().c5f('onClickSave: indeterminate'); return Unit_instance; } if (initEntity.t8e_1.equals(new Long(0, 0))) { Napier_getInstance().c5f('onClickSave: clazzstarttime = 0'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zrw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue = prevValue.lrx(VOID, VOID, this.pqn().coj(strings_getInstance().rmn_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } if (initEntity.u8e_1.c7(initEntity.t8e_1) <= 0) { Napier_getInstance().c5f('onClickSave: endbeforestart'); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zrw_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.lrx(VOID, VOID, VOID, this.pqn().coj(strings_getInstance().lnl_1)); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } // Inline function 'kotlin.text.isNullOrBlank' call var this_2 = initEntity.m8e_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.zrw_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.lrx(VOID, VOID, VOID, VOID, this.pqn().coj(strings_getInstance().vnl_1)); if (this_3.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (hasErrors(this.zrw_1.t2(), this)) { Napier_getInstance().c5f('onClickSave: hasErrors'); return Unit_instance; } var entity = shallowCopy_3(initEntity, ClazzEditViewModel$onClickSave$lambda(initEntity)); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.zrw_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.lrx(VOID, entity); if (this_4.s1l(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_0 = ClazzEditViewModel$onClickSave$lambda_0(this); this.cqu(tmp_0, ClazzEditViewModel$onClickSave$slambda_0(this, entity, initEntity, null)); }; protoOf(ClazzEditViewModel).fsc = function (from, to) { // Inline function 'kotlin.apply' call var this_0 = toMutableList(this.zrw_1.t2().jrx_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.vrw_1.zpa(reorderedList, to); var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzEditViewModel$onCourseBlockMoved$slambda_0(this, newList, null)); }; protoOf(ClazzEditViewModel).gsc = function () { Companion_getInstance_116(); var tmp = to('result_key', 'timeZone'); Companion_getInstance_116(); this.rqm_1.dp6('TimeZoneList', mapOf([tmp, to('result_viewname', this.qqm_1)])); }; protoOf(ClazzEditViewModel).hsc = function () { }; protoOf(ClazzEditViewModel).isc = function () { this.xqn('CourseTerminologyList', 'terminology', null, Companion_instance_34.h4s()); }; protoOf(ClazzEditViewModel).jsc = function (block) { updateCourseBlock(this, block.xk8(block.lk8_1.dkm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true))); }; protoOf(ClazzEditViewModel).ksc = function (block) { updateCourseBlock(this, block.xk8(block.lk8_1.dkm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false))); }; protoOf(ClazzEditViewModel).lsc = function (block) { updateCourseBlock(this, block.xk8(block.lk8_1.dkm(VOID, VOID, block.lk8_1.p7y_1 + 1 | 0))); }; protoOf(ClazzEditViewModel).msc = function (block) { updateCourseBlock(this, block.xk8(block.lk8_1.dkm(VOID, VOID, block.lk8_1.p7y_1 - 1 | 0))); }; protoOf(ClazzEditViewModel).nsc = function (block) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzEditViewModel$onClickDeleteCourseBlock$slambda_0(this, block, null)); }; protoOf(ClazzEditViewModel).osc = function (block) { var tmp0_subject = block.lk8_1.o7y_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_173(); var tmp1_nextViewName = 'CourseBlockEdit'; var tmp2_key = 'courseblock'; var tmp3_serializer = Companion_getInstance_13().h4s(); this.xqn(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_13().h4s(); // 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_116(); this_0.s('clazzUid', this.brx_1.toString()); var tmp0_safe_receiver = this.zrw_1.t2().erx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e8h_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.g4s().l46(Companion_instance_34.h4s(), tmp1_safe_receiver)); } var tmp7_args = this_0.f3(); this.xqn(tmp4_nextViewName, tmp5_key, block, tmp6_serializer, tmp7_args); } } }; function CourseBlockUiState(block) { this.psc_1 = block; } protoOf(CourseBlockUiState).qsc = function () { var tmp; var tmp_0 = this.psc_1.lk8_1.o7y_1; if (!(tmp_0 === 100)) { tmp = this.psc_1.lk8_1.p7y_1 < 3; } else { tmp = false; } return tmp; }; protoOf(CourseBlockUiState).rsc = function () { return this.psc_1.lk8_1.p7y_1 > 0; }; protoOf(CourseBlockUiState).ssc = function () { return !this.psc_1.lk8_1.e7z_1; }; protoOf(CourseBlockUiState).tsc = function () { return this.psc_1.lk8_1.e7z_1; }; function Companion_116() { 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.rsa_1 = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_7()), new ArrayListSerializer($serializer_getInstance_8()), null]; this.ssa_1 = 3; } protoOf(Companion_116).h4s = function () { return $serializer_getInstance_71(); }; var Companion_instance_165; function Companion_getInstance_133() { if (Companion_instance_165 == null) new Companion_116(); return Companion_instance_165; } function $serializer_59() { $serializer_instance_59 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditUiState', this, 8); tmp0_serialDesc.n4g('fieldsEnabled', true); tmp0_serialDesc.n4g('entity', true); tmp0_serialDesc.n4g('clazzStartDateError', true); tmp0_serialDesc.n4g('clazzEndDateError', true); tmp0_serialDesc.n4g('clazzNameError', true); tmp0_serialDesc.n4g('clazzSchedules', true); tmp0_serialDesc.n4g('courseBlockList', true); tmp0_serialDesc.n4g('timeZone', true); this.usc_1 = tmp0_serialDesc; } protoOf($serializer_59).k45 = function () { return this.usc_1; }; protoOf($serializer_59).e4h = function () { var tmp0_cached = Companion_getInstance_133().rsa_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_59).m45 = function (decoder) { var tmp0_desc = this.usc_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.c49(tmp0_desc); var tmp13_cached = Companion_getInstance_133().rsa_1; if (tmp12_input.r49()) { tmp4_local0 = tmp12_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.q49(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.o49(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.o49(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.m49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.q49(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.q49(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.o49(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.o49(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.m49(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.d49(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_59).vsc = function (encoder, value) { var tmp0_desc = this.usc_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_133().rsa_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.drx_1 === false)) { tmp1_output.i4a(tmp0_desc, 0, value.drx_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.erx_1 == null)) { tmp1_output.u4a(tmp0_desc, 1, $serializer_getInstance_9(), value.erx_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.frx_1 == null)) { tmp1_output.u4a(tmp0_desc, 2, StringSerializer_getInstance(), value.frx_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.grx_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.grx_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.hrx_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, StringSerializer_getInstance(), value.hrx_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !equals(value.irx_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 5, tmp2_cached[5], value.irx_1); } if (tmp1_output.y4a(tmp0_desc, 6) ? true : !equals(value.jrx_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 6, tmp2_cached[6], value.jrx_1); } if (tmp1_output.y4a(tmp0_desc, 7) ? true : !(value.krx_1 === 'UTC')) { tmp1_output.q4a(tmp0_desc, 7, value.krx_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_59).l45 = function (encoder, value) { return this.vsc(encoder, value instanceof ClazzEditUiState ? value : THROW_CCE()); }; var $serializer_instance_59; function $serializer_getInstance_71() { if ($serializer_instance_59 == null) new $serializer_59(); return $serializer_instance_59; } function ClazzEditUiState_init_$Init$(seen1, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_71().usc_1); } if (0 === (seen1 & 1)) $this.drx_1 = false; else $this.drx_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.erx_1 = null; else $this.erx_1 = entity; if (0 === (seen1 & 4)) $this.frx_1 = null; else $this.frx_1 = clazzStartDateError; if (0 === (seen1 & 8)) $this.grx_1 = null; else $this.grx_1 = clazzEndDateError; if (0 === (seen1 & 16)) $this.hrx_1 = null; else $this.hrx_1 = clazzNameError; if (0 === (seen1 & 32)) $this.irx_1 = emptyList(); else $this.irx_1 = clazzSchedules; if (0 === (seen1 & 64)) $this.jrx_1 = emptyList(); else $this.jrx_1 = courseBlockList; if (0 === (seen1 & 128)) $this.krx_1 = 'UTC'; else $this.krx_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_133(); 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.drx_1 = fieldsEnabled; this.erx_1 = entity; this.frx_1 = clazzStartDateError; this.grx_1 = clazzEndDateError; this.hrx_1 = clazzNameError; this.irx_1 = clazzSchedules; this.jrx_1 = courseBlockList; this.krx_1 = timeZone; } protoOf(ClazzEditUiState).wsc = function () { var tmp; var tmp0_safe_receiver = this.erx_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v8e_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).xsc = function (courseBlockAndEditEntities) { return new CourseBlockUiState(courseBlockAndEditEntities); }; protoOf(ClazzEditUiState).ysc = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) { return new ClazzEditUiState(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).lrx = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.drx_1 : fieldsEnabled; entity = entity === VOID ? this.erx_1 : entity; clazzStartDateError = clazzStartDateError === VOID ? this.frx_1 : clazzStartDateError; clazzEndDateError = clazzEndDateError === VOID ? this.grx_1 : clazzEndDateError; clazzNameError = clazzNameError === VOID ? this.hrx_1 : clazzNameError; clazzSchedules = clazzSchedules === VOID ? this.irx_1 : clazzSchedules; courseBlockList = courseBlockList === VOID ? this.jrx_1 : courseBlockList; timeZone = timeZone === VOID ? this.krx_1 : timeZone; return $super === VOID ? this.ysc(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) : $super.ysc.call(this, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).toString = function () { return 'ClazzEditUiState(fieldsEnabled=' + this.drx_1 + ', entity=' + this.erx_1 + ', clazzStartDateError=' + this.frx_1 + ', clazzEndDateError=' + this.grx_1 + ', clazzNameError=' + this.hrx_1 + ', clazzSchedules=' + this.irx_1 + ', courseBlockList=' + this.jrx_1 + ', timeZone=' + this.krx_1 + ')'; }; protoOf(ClazzEditUiState).hashCode = function () { var result = getBooleanHashCode(this.drx_1); result = imul(result, 31) + (this.erx_1 == null ? 0 : this.erx_1.hashCode()) | 0; result = imul(result, 31) + (this.frx_1 == null ? 0 : getStringHashCode(this.frx_1)) | 0; result = imul(result, 31) + (this.grx_1 == null ? 0 : getStringHashCode(this.grx_1)) | 0; result = imul(result, 31) + (this.hrx_1 == null ? 0 : getStringHashCode(this.hrx_1)) | 0; result = imul(result, 31) + hashCode(this.irx_1) | 0; result = imul(result, 31) + hashCode(this.jrx_1) | 0; result = imul(result, 31) + getStringHashCode(this.krx_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.drx_1 === tmp0_other_with_cast.drx_1)) return false; if (!equals(this.erx_1, tmp0_other_with_cast.erx_1)) return false; if (!(this.frx_1 == tmp0_other_with_cast.frx_1)) return false; if (!(this.grx_1 == tmp0_other_with_cast.grx_1)) return false; if (!(this.hrx_1 == tmp0_other_with_cast.hrx_1)) return false; if (!equals(this.irx_1, tmp0_other_with_cast.irx_1)) return false; if (!equals(this.jrx_1, tmp0_other_with_cast.jrx_1)) return false; if (!(this.krx_1 === tmp0_other_with_cast.krx_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.n7y_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.o7y_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.q7y_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.q7y_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.n7y_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.ray_1)) { var blockForStatus = moduleBlockUids.q(element_3.ray_1); if ((blockForStatus == null ? null : isCompleteable(blockForStatus)) === true) { numCompleteableBlocksInModule = numCompleteableBlocksInModule + 1 | 0; } var tmp3_safe_receiver = blockForStatus == null ? null : blockForStatus.y7y_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.vay_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.y7y_1; totalPointsScored = tmp_3 + tmp4_safe_receiver * (tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs); numBlocksWithScoreResult = numBlocksWithScoreResult + 1 | 0; } if (element_3.tay_1) { numModsComplete = numModsComplete + 1 | 0; } var tmp6_safe_receiver = element_3.uay_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.qay_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.ray_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.o7y_1); } function markFor(_this__u8e3s4, maxPoints) { _init_properties_BlockStatusExt_kt__pb774u(); var scaledMarkVal = _this__u8e3s4.vay_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$65(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hsd_1 = _this__u8e3s4; this.isd_1 = params; } protoOf($loadCOROUTINE$65).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hsd_1.d6d(); this.hd_1 = 1; suspendResult = this.hsd_1.psd_1.j55(this.isd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jsd_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.hsd_1.qsd_1.d7f(); var tmp_1 = this.jsd_1; var tmp0_safe_receiver = tmp_1 instanceof Page ? tmp_1 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w54_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.u96_1; var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.z96_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.lje(this.hsd_1.rsd_1, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs, this.hsd_1.ssd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var blockResults = suspendResult; var tmp3_subject = this.jsd_1; var tmp_3; if (tmp3_subject instanceof Page) { var tmp_4 = this.jsd_1; var studentListResultCasted = tmp_4 instanceof Page ? tmp_4 : THROW_CCE(); var this_0 = studentListResultCasted.w54_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.qay_1; var tmp0_safe_receiver_2 = item.u96_1; if (tmp_5.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.z96_1)) { destination_1.i1(element_0); } } destination_0.i1(new StudentAndBlockStatuses(item, destination_1)); } tmp_3 = new Page(destination_0, studentListResultCasted.x54_1, studentListResultCasted.y54_1, studentListResultCasted.z54_1, studentListResultCasted.a55_1); } else { if (tmp3_subject instanceof Error_0) { tmp_3 = new Error_0(this.jsd_1.v54_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $loadHttpCOROUTINE$66(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bse_1 = _this__u8e3s4; this.cse_1 = params; } protoOf($loadHttpCOROUTINE$66).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var tmp_1 = this.bse_1.psd_1; tmp_0.dse_1 = isInterface(tmp_1, PagingSourceWithHttpLoader) ? tmp_1 : null; if (this.dse_1 == null) { this.ese_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.dse_1.s6f(this.cse_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ese_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.ese_1; return tmp1_elvis_lhs == null ? true : tmp1_elvis_lhs; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzGradebookPagingSource(studentListPagingSource, db, clazzUid, accountPersonUid) { DelegatedInvalidationPagingSource.call(this, studentListPagingSource); this.psd_1 = studentListPagingSource; this.qsd_1 = db; this.rsd_1 = clazzUid; this.ssd_1 = accountPersonUid; } protoOf(ClazzGradebookPagingSource).fse = function (params, $completion) { var tmp = new $loadCOROUTINE$65(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).j55 = function (params, $completion) { return this.fse(params, $completion); }; protoOf(ClazzGradebookPagingSource).r6f = function (params, $completion) { var tmp = new $loadHttpCOROUTINE$66(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).s6f = function (params, $completion) { return this.r6f(params, $completion); }; function ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ose_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).qse = function (courseBlockList, $completion) { var tmp = this.rse(courseBlockList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.qse((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.ose_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ysf(this.pse_1, this.ose_1.tsf_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).rse = function (courseBlockList, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this.ose_1, completion); i.pse_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.qse(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.hsg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).qre = function (it, $completion) { var tmp = this.rre(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.qre((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.hsg_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(VOID, VOID, this.isg_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).rre = function (it, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this.hsg_1, completion); i.isg_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.qre(it, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.rsg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.rsg_1.lqn().j7e().icm(this.rsg_1.ssf_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_0(this.rsg_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda(this.rsg_1, completion); i.ssg_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.bsh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.bsh_1.lqn().i7e().v8d(this.bsh_1.ssf_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_2(this.bsh_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda_1(this.bsh_1, completion); i.csh_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.lsh_1 = $this_launch; this.msh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzGradebookViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.lsh_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_0(this.msh_1, null)); launch(this.lsh_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_2(this.msh_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzGradebookViewModel$slambda$slambda).f79 = function (completion) { return new ClazzGradebookViewModel$slambda$slambda(this.lsh_1, this.msh_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.d88($completion); }; l.$arity = 0; return l; } function Companion_117() { this.nsh_1 = 'Gradebook'; } var Companion_instance_166; function Companion_getInstance_134() { return Companion_instance_166; } function sam$kotlinx_coroutines_flow_FlowCollector$0_11(function_0) { this.osh_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_11).n1e = function (value, $completion) { return this.osh_1(value, $completion); }; function ClazzGradebookViewModel$studentPagingSource$lambda(this$0) { return function () { var tmp = this$0.lqn().n7e(); return new ClazzGradebookPagingSource(tmp.e94(this$0.ssf_1, 1000, 1, '%', 0, this$0.hqn(), systemTimeInMillis()), this$0.jqn(), this$0.ssf_1, this$0.hqn()); }; } function ClazzGradebookViewModel$slambda(this$0, resultContinuation) { this.xsh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzGradebookViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.xsh_1.kqv_1, ClazzGradebookViewModel$slambda$slambda_0(this.ysh_1, this.xsh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzGradebookViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda(this.xsh_1, completion); i.ysh_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.o1n($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_125(); 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.ssf_1 = tmp_0; var tmp_1 = this; tmp_1.tsf_1 = ClazzGradebookViewModel$studentPagingSource$lambda(this); var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, ClazzGradebookViewModel$slambda_0(this, null)); } protoOf(ClazzGradebookViewModel).eqw = function (searchText) { }; protoOf(ClazzGradebookViewModel).fqw = 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.usf_1 = courseBlocks; this.vsf_1 = results; this.wsf_1 = isFullScreen; this.xsf_1 = scale; } protoOf(ClazzGradebookUiState).zsh = function (courseBlocks, results, isFullScreen, scale) { return new ClazzGradebookUiState(courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).ysf = function (courseBlocks, results, isFullScreen, scale, $super) { courseBlocks = courseBlocks === VOID ? this.usf_1 : courseBlocks; results = results === VOID ? this.vsf_1 : results; isFullScreen = isFullScreen === VOID ? this.wsf_1 : isFullScreen; scale = scale === VOID ? this.xsf_1 : scale; return $super === VOID ? this.zsh(courseBlocks, results, isFullScreen, scale) : $super.zsh.call(this, courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).toString = function () { return 'ClazzGradebookUiState(courseBlocks=' + this.usf_1 + ', results=' + this.vsf_1 + ', isFullScreen=' + this.wsf_1 + ', scale=' + this.xsf_1 + ')'; }; protoOf(ClazzGradebookUiState).hashCode = function () { var result = hashCode(this.usf_1); result = imul(result, 31) + hashCode(this.vsf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wsf_1) | 0; result = imul(result, 31) + getNumberHashCode(this.xsf_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.usf_1, tmp0_other_with_cast.usf_1)) return false; if (!equals(this.vsf_1, tmp0_other_with_cast.vsf_1)) return false; if (!(this.wsf_1 === tmp0_other_with_cast.wsf_1)) return false; if (!equals(this.xsf_1, tmp0_other_with_cast.xsf_1)) return false; return true; }; function get_thumbnailUri(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.ccq_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t7z_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.ecq_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.aay_1; } else { tmp = tmp2_elvis_lhs; } return tmp; } function maxScoreForBlock(_this__u8e3s4, block) { var blockVal = block.bcq_1; var tmp; var tmp_0 = blockVal == null ? null : blockVal.o7y_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.bcq_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q7y_1, blockVal.n7y_1)) { var tmp1_safe_receiver = element.bcq_1; tmp_2 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y7y_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.bcq_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.y7y_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.bcq_1; if (equals(tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.q7y_1, blockVal.n7y_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.y7y_1; } return tmp; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this$0, resultContinuation) { this.isi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).ksi = function (inviteAndClazz, $completion) { var tmp = this.lsi(inviteAndClazz, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.ksi((p1 == null ? true : p1 instanceof ClazzInviteAndClazz) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.isi_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_0; var tmp0_safe_receiver = this.jsi_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j9o_1) == null)) { tmp_0 = Companion_getInstance_97().kq6_1; } else { tmp_0 = Companion_getInstance_97().jq6_1; } var nextValue = prevValue.cq6(VOID, tmp_0); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.isi_1.hsj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.jsi_1; var nextValue_0 = prevValue_0.osj(this.jsi_1, !((tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.j9o_1) == null)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).lsi = function (inviteAndClazz, completion) { var i = new ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this.isi_1, completion); i.jsi_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.ksi(inviteAndClazz, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.xsj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.xsj_1.lqn().y7g().e9n(this.xsj_1.ksj_1); var tmp_1 = ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda_0(this.xsj_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).f79 = function (completion) { return new ClazzInviteRedeemViewModel$lambda$slambda$slambda(this.xsj_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.d88($completion); }; l.$arity = 0; return l; } function _get_clazzInviteRedeemUseCase__c3cagh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jsj_1; clazzInviteRedeemUseCase$factory_0(); return this_0.t2(); } function Companion_118() { this.ysj_1 = 'ClazzInviteRedeem'; } var Companion_instance_167; function Companion_getInstance_135() { return Companion_instance_167; } function sam$kotlinx_coroutines_flow_FlowCollector$0_12(function_0) { this.zsj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_12).n1e = function (value, $completion) { return this.zsj_1(value, $completion); }; function ClazzInviteRedeemViewModel$lambda$slambda(this$0, resultContinuation) { this.isk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.isk_1.hsj_1, ClazzInviteRedeemViewModel$lambda$slambda$slambda_0(this.isk_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzInviteRedeemViewModel$lambda$slambda(this.isk_1, completion); i.jsk_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.o1n($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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel..' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.gqn(); launch(tmp, VOID, VOID, ClazzInviteRedeemViewModel$lambda$slambda_0(this$0, null)); return Unit_instance; }; } function ClazzInviteRedeemViewModel$processDecision$slambda(this$0, $isAccepting, resultContinuation) { this.ssk_1 = this$0; this.tsk_1 = $isAccepting; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; l$ret$1: do { var this_0 = this.ssk_1.hsj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.osj(VOID, false); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_clazzInviteRedeemUseCase__c3cagh(this.ssk_1).bpg(this.ssk_1.ksj_1, this.tsk_1, this.ssk_1.fqn().zo9().rky_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; this.ssk_1.nqn().rq6(new Snack(result.cpg_1)); Companion_getInstance_139(); this.ssk_1.rqm_1.bq9('CourseListHome', emptyMap(), new UstadGoOptions(VOID, VOID, true)); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; l$ret$3: do { var this_1 = this.ssk_1.hsj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_errorText = stringResourceOrMessage(e, this.ssk_1.pqn()); var nextValue_0 = prevValue_0.osj(VOID, true, tmp0_errorText); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).p1n = function ($this$launch, completion) { var i = new ClazzInviteRedeemViewModel$processDecision$slambda(this.ssk_1, this.tsk_1, completion); i.usk_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ClazzInviteRedeem'); this.hsj_1 = MutableStateFlow(new ClazzInviteRedeemUiState()); this.isj_1 = asStateFlow(this.hsj_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.jsj_1 = Instance(this_0, tmp$ret$0, null).u5d(this, clazzInviteRedeemUseCase$factory()); var tmp_1 = this; Companion_getInstance_125(); 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.ksj_1 = tmp_2; Companion_getInstance_125(); var tmp_3 = mapOf_0(to('inviteCode', this.ksj_1)); this.eqo(false, tmp_3, ClazzInviteRedeemViewModel$lambda(this)); } protoOf(ClazzInviteRedeemViewModel).vsk = function (isAccepting) { // Inline function 'kotlin.takeIf' call var this_0 = this.gqn(); // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel.processDecision.' call if (this.hsj_1.t2().msj_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.lsj_1 = clazzInvite; this.msj_1 = enabled; this.nsj_1 = errorText; } protoOf(ClazzInviteRedeemUiState).wsk = function () { var tmp0_safe_receiver = this.lsj_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j9o_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d9o_1; return tmp === 0; }; protoOf(ClazzInviteRedeemUiState).xsk = function () { var tmp; if (this.msj_1) { var tmp0_safe_receiver = this.lsj_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j9o_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d9o_1; tmp = tmp_0 === 0; } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).ysk = function () { var tmp; var tmp0_safe_receiver = this.lsj_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j9o_1) == null)) { var tmp1_safe_receiver = this.lsj_1.j9o_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d9o_1; tmp = !(tmp_0 === 0); } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).zsk = function (clazzInvite, enabled, errorText) { return new ClazzInviteRedeemUiState(clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).osj = function (clazzInvite, enabled, errorText, $super) { clazzInvite = clazzInvite === VOID ? this.lsj_1 : clazzInvite; enabled = enabled === VOID ? this.msj_1 : enabled; errorText = errorText === VOID ? this.nsj_1 : errorText; return $super === VOID ? this.zsk(clazzInvite, enabled, errorText) : $super.zsk.call(this, clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).toString = function () { return 'ClazzInviteRedeemUiState(clazzInvite=' + this.lsj_1 + ', enabled=' + this.msj_1 + ', errorText=' + this.nsj_1 + ')'; }; protoOf(ClazzInviteRedeemUiState).hashCode = function () { var result = this.lsj_1 == null ? 0 : this.lsj_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.msj_1) | 0; result = imul(result, 31) + (this.nsj_1 == null ? 0 : getStringHashCode(this.nsj_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.lsj_1, tmp0_other_with_cast.lsj_1)) return false; if (!(this.msj_1 === tmp0_other_with_cast.msj_1)) return false; if (!(this.nsj_1 == tmp0_other_with_cast.nsj_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.vsl_1; parseInviteUseCase$factory_0(); return this_0.t2(); } function _get_sendClazzInvitesUseCase__utu0z8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wsl_1; sendClazzInvitesUseCase$factory_0(); return this_0.t2(); } function _get_hideKeyboardUseCase__8r7d6l($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bsm_1; hideKeyboardUseCase$factory_0(); return this_0.t2(); } function sendContactsToServer($this, contacts, $completion) { var tmp = new $sendContactsToServerCOROUTINE$67($this, contacts, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_119() { this.nsm_1 = 'invite_via_contact'; this.osm_1 = 'person_role'; this.psm_1 = 'clazz_uid'; } var Companion_instance_168; function Companion_getInstance_136() { return Companion_instance_168; } function ClazzInviteViaContactViewModel$onClickSend$ref($boundThis) { var l = function () { $boundThis.qsm(); return Unit_instance; }; l.callableName = 'onClickSend'; return l; } function ClazzInviteViaContactViewModel$onClickSend$slambda(this$0, resultContinuation) { this.zsm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp0_safe_receiver = _get_hideKeyboardUseCase__8r7d6l(this.zsm_1); if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.kpe(); } this.bsn_1 = this.zsm_1.zsl_1.t2().fsn_1; if (this.bsn_1.c1()) { this.csn_1 = this.zsm_1.zsl_1.t2().gsn_1; var this_0 = this.csn_1; if (!(this_0 == null ? true : isBlank(this_0))) { this.dsn_1 = _get_parseInviteUseCase__fcfumo(this.zsm_1).gp9(this.csn_1); this.hd_1 = 4; suspendResult = sendContactsToServer(this.zsm_1, this.dsn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } } else { this.hd_1 = 1; continue $sm; } case 1: this.hd_1 = 2; suspendResult = sendContactsToServer(this.zsm_1, this.bsn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: var noContactFoundMessage = this.zsm_1.pqn().coj(strings_getInstance().dnr_1); l$ret$1: do { var this_1 = this.zsm_1.zsl_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.hsn(noContactFoundMessage); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.zsm_1.isn(noContactFoundMessage); return Unit_instance; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).p1n = function ($this$launch, completion) { var i = new ClazzInviteViaContactViewModel$onClickSend$slambda(this.zsm_1, completion); i.asn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function $sendContactsToServerCOROUTINE$67(_this__u8e3s4, contacts, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ksm_1 = _this__u8e3s4; this.lsm_1 = contacts; } protoOf($sendContactsToServerCOROUTINE$67).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.lsm_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.ksn_1) { destination.i1(element); } } tmp_0.msm_1 = destination; if (this.msm_1.c1()) { var noValidContactFoundMessage = this.ksm_1.pqn().coj(strings_getInstance().cnr_1); l$ret$1: do { var this_1 = this.ksm_1.zsl_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.hsn(noValidContactFoundMessage); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.ksm_1.isn(noValidContactFoundMessage); return Unit_instance; } this.id_1 = 2; this.hd_1 = 1; var tmp_1 = _get_sendClazzInvitesUseCase__utu0z8(this.ksm_1); var this_2 = this.msm_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.jsn_1); } suspendResult = tmp_1.cph(new SendClazzInvitesRequest(destination_0, this.ksm_1.xsl_1, this.ksm_1.ysl_1, this.ksm_1.fqn().ko9().enu_1.z96_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ksm_1.nqn().rq6(new Snack(this.ksm_1.pqn().coj(strings_getInstance().dns_1))); Companion_getInstance_203(); this.ksm_1.rqm_1.cq9('People', true); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_2 = this.kd_1; if (tmp_2 instanceof Error) { var e = this.kd_1; var tmp_3 = this.ksm_1.nqn(); var tmp_4 = this.ksm_1.pqn().coj(strings_getInstance().mmi_1); var tmp0_elvis_lhs = e.message; tmp_3.rq6(new Snack(tmp_4 + ': ' + (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_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.vsl_1 = Instance(this, tmp$ret$0, null).u5d(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.wsl_1 = Instance(this_0, tmp$ret$2, null).u5d(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.xsl_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.ysl_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; this.zsl_1 = MutableStateFlow(new ClazzInviteViaContactUiState()); this.asm_1 = asStateFlow(this.zsl_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.bsm_1 = InstanceOrNull(this, tmp$ret$4, null).u5d(this, hideKeyboardUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_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.pqn().coj(strings_getInstance().ynq_1), VOID, true); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tqm_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.' call var tmp_7 = this.pqn().coj(strings_getInstance().vml_1); var nextValue_0 = prevValue_0.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, ClazzInviteViaContactViewModel$onClickSend$ref(this))); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzInviteViaContactViewModel).qsm = function () { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzInviteViaContactViewModel$onClickSend$slambda_0(this, null)); }; protoOf(ClazzInviteViaContactViewModel).isn = function (error) { this.nqn().rq6(new Snack(error)); }; protoOf(ClazzInviteViaContactViewModel).msn = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.zsl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onClickChipSubmit.' call var nextValue = prevValue.hsn(VOID, plus(prevValue.fsn_1, _get_parseInviteUseCase__fcfumo(this).gp9(text))); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } return last(tmp$ret$1.fsn_1); }; protoOf(ClazzInviteViaContactViewModel).nsn = function (removedChipTexts) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.zsl_1.t2().fsn_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.jsn_1)) { destination.i1(element); } } var newChips = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.zsl_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onChipsRemoved.' call var nextValue = prevValue.hsn(VOID, newChips); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzInviteViaContactViewModel).osn = function (newValue) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zsl_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onTextFieldValueChanged.' call var nextValue = prevValue.hsn(VOID, VOID, newValue); if (this_0.s1l(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.esn_1 = contactError; this.fsn_1 = chips; this.gsn_1 = textFieldValue; } protoOf(ClazzInviteViaContactUiState).psn = function (contactError, chips, textFieldValue) { return new ClazzInviteViaContactUiState(contactError, chips, textFieldValue); }; protoOf(ClazzInviteViaContactUiState).hsn = function (contactError, chips, textFieldValue, $super) { contactError = contactError === VOID ? this.esn_1 : contactError; chips = chips === VOID ? this.fsn_1 : chips; textFieldValue = textFieldValue === VOID ? this.gsn_1 : textFieldValue; return $super === VOID ? this.psn(contactError, chips, textFieldValue) : $super.psn.call(this, contactError, chips, textFieldValue); }; protoOf(ClazzInviteViaContactUiState).toString = function () { return 'ClazzInviteViaContactUiState(contactError=' + this.esn_1 + ', chips=' + this.fsn_1 + ', textFieldValue=' + this.gsn_1 + ')'; }; protoOf(ClazzInviteViaContactUiState).hashCode = function () { var result = this.esn_1 == null ? 0 : getStringHashCode(this.esn_1); result = imul(result, 31) + hashCode(this.fsn_1) | 0; result = imul(result, 31) + (this.gsn_1 == null ? 0 : getStringHashCode(this.gsn_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.esn_1 == tmp0_other_with_cast.esn_1)) return false; if (!equals(this.fsn_1, tmp0_other_with_cast.fsn_1)) return false; if (!(this.gsn_1 == tmp0_other_with_cast.gsn_1)) return false; return true; }; function InviteViaContactChip(text, isValid, inviteType) { this.jsn_1 = text; this.ksn_1 = isValid; this.lsn_1 = inviteType; } protoOf(InviteViaContactChip).toString = function () { return 'InviteViaContactChip(text=' + this.jsn_1 + ', isValid=' + this.ksn_1 + ', inviteType=' + this.lsn_1 + ')'; }; protoOf(InviteViaContactChip).hashCode = function () { var result = getStringHashCode(this.jsn_1); result = imul(result, 31) + getBooleanHashCode(this.ksn_1) | 0; result = imul(result, 31) + this.lsn_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.jsn_1 === tmp0_other_with_cast.jsn_1)) return false; if (!(this.ksn_1 === tmp0_other_with_cast.ksn_1)) return false; if (!(this.lsn_1 === tmp0_other_with_cast.lsn_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.nso_1; makeLinkUseCase$factory_0(); return this_0.t2(); } function _get_setClipboardStringUseCase__31i1s1_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pso_1; setClipboardStringUseCase$factory_2(); return this_0.t2(); } function _get_shareTextUseCase__god44g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qso_1; shareTextUseCase$factory_0(); return this_0.t2(); } function Companion_120() { this.sso_1 = 'InviteWithLink'; } var Companion_instance_169; function Companion_getInstance_137() { return Companion_instance_169; } function ClazzInviteViaLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'InviteWithLink'); this.lso_1 = MutableStateFlow(new ClazzInviteViaLinkUiState()); this.mso_1 = asStateFlow(this.lso_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.nso_1 = Instance(this_0, tmp$ret$0, null).u5d(this, makeLinkUseCase$factory()); var tmp_1 = this; Companion_getInstance_125(); 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.oso_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.pso_1 = Instance(this, tmp$ret$2, null).u5d(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.qso_1 = InstanceOrNull(this, tmp$ret$4, null).u5d(this, shareTextUseCase$factory()); var tmp_7 = this; var tmp_8 = _get_makeLinkUseCase__qbv742(this); Companion_getInstance_125(); tmp_7.rso_1 = tmp_8.dpi('JoinWithCode', mapOf_0(to('inviteCode', this.oso_1))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.ClazzInviteViaLinkViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().wn8_1)); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.lso_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.ClazzInviteViaLinkViewModel.' call var nextValue_0 = prevValue_0.vso(this.rso_1, !(_get_shareTextUseCase__god44g(this) == null)); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzInviteViaLinkViewModel).wso = function () { _get_setClipboardStringUseCase__31i1s1_0(this).ip1(this.rso_1); this.nqn().rq6(new Snack(this.pqn().coj(strings_getInstance().rn8_1))); }; function ClazzInviteViaLinkUiState(inviteLink, showShareLinkButton) { inviteLink = inviteLink === VOID ? null : inviteLink; showShareLinkButton = showShareLinkButton === VOID ? false : showShareLinkButton; this.tso_1 = inviteLink; this.uso_1 = showShareLinkButton; } protoOf(ClazzInviteViaLinkUiState).vso = function (inviteLink, showShareLinkButton) { return new ClazzInviteViaLinkUiState(inviteLink, showShareLinkButton); }; protoOf(ClazzInviteViaLinkUiState).toString = function () { return 'ClazzInviteViaLinkUiState(inviteLink=' + this.tso_1 + ', showShareLinkButton=' + this.uso_1 + ')'; }; protoOf(ClazzInviteViaLinkUiState).hashCode = function () { var result = this.tso_1 == null ? 0 : getStringHashCode(this.tso_1); result = imul(result, 31) + getBooleanHashCode(this.uso_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.tso_1 == tmp0_other_with_cast.tso_1)) return false; if (!(this.uso_1 === tmp0_other_with_cast.uso_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.usp_1; requestEnrolmentUseCase$factory_0(); return this_0.t2(); } function Companion_121() { this.vsp_1 = 'JoinWithCode'; } var Companion_instance_170; function Companion_getInstance_138() { 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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel..' call var nextValue = prevValue.cq6(VOID, VOID, this$0.pqn().coj(strings_getInstance().gnj_1)); if (this_0.s1l(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.ssp_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onClickJoin..' call var nextValue = prevValue.zsp(VOID, VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function JoinWithCodeViewModel$onClickJoin$slambda(this$0, resultContinuation) { this.isq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(JoinWithCodeViewModel$onClickJoin$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; var tmp_0 = _get_requestEnrolmentUseCase__62wq8f(this.isq_1); var tmp_1 = this.isq_1.ssp_1.t2().xsp_1; var tmp_2 = this.isq_1.fqn().ko9().enu_1; suspendResult = tmp_0.hp1(tmp_1, tmp_2, 1000, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.isq_1.nqn().rq6(new Snack(this.isq_1.pqn().coj(strings_getInstance().gnn_1))); if (!(this.isq_1.qqn() == null)) { this.isq_1.aqt(null); } else { Companion_getInstance_139(); this.isq_1.rqm_1.bq9('CourseListHome', emptyMap(), new UstadGoOptions(VOID, VOID, true)); } this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_3 = this.kd_1; if (tmp_3 instanceof Error) { var e = this.kd_1; var tmp_4; if (e instanceof IllegalArgumentException) { tmp_4 = strings_getInstance().mno_1; } else { if (e instanceof AlreadyHasPendingRequestException) { tmp_4 = strings_getInstance().fnn_1; } else { if (e instanceof AlreadyEnroledInClassException) { tmp_4 = strings_getInstance().sna_1; } else { tmp_4 = strings_getInstance().mmi_1; } } } var errorMessage = tmp_4; l$ret$1: do { var this_0 = this.isq_1.ssp_1; while (true) { var prevValue = this_0.t2(); var tmp_5 = this.isq_1.pqn().coj(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.zsp(tmp_5 + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).f79 = function (completion) { return new JoinWithCodeViewModel$onClickJoin$slambda(this.isq_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.d88($completion); }; l.$arity = 0; return l; } function JoinWithCodeViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'JoinWithCode'); var tmp = this; Companion_getInstance_125(); var tmp0_elvis_lhs = savedStateHandle.ba('inviteCode'); tmp.ssp_1 = MutableStateFlow(new JoinWithCodeUiState(VOID, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)); this.tsp_1 = asStateFlow(this.ssp_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.usp_1 = Instance(this_0, tmp$ret$0, null).u5d(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_125(); this.cqo(this_1, 'inviteCode'); var tmp_2 = this_1.f3(); this.fqo(VOID, tmp_2, JoinWithCodeViewModel$lambda(this)); } protoOf(JoinWithCodeViewModel).jsq = function (codeVal) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ssp_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onCodeValueChange.' call var nextValue = prevValue.zsp(null, codeVal); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(JoinWithCodeViewModel).ksq = function () { var tmp = JoinWithCodeViewModel$onClickJoin$lambda(this); this.cqu(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.wsp_1 = codeError; this.xsp_1 = code; this.ysp_1 = fieldsEnabled; } protoOf(JoinWithCodeUiState).lsq = function (codeError, code, fieldsEnabled) { return new JoinWithCodeUiState(codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).zsp = function (codeError, code, fieldsEnabled, $super) { codeError = codeError === VOID ? this.wsp_1 : codeError; code = code === VOID ? this.xsp_1 : code; fieldsEnabled = fieldsEnabled === VOID ? this.ysp_1 : fieldsEnabled; return $super === VOID ? this.lsq(codeError, code, fieldsEnabled) : $super.lsq.call(this, codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).toString = function () { return 'JoinWithCodeUiState(codeError=' + this.wsp_1 + ', code=' + this.xsp_1 + ', fieldsEnabled=' + this.ysp_1 + ')'; }; protoOf(JoinWithCodeUiState).hashCode = function () { var result = this.wsp_1 == null ? 0 : getStringHashCode(this.wsp_1); result = imul(result, 31) + getStringHashCode(this.xsp_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ysp_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.wsp_1 == tmp0_other_with_cast.wsp_1)) return false; if (!(this.xsp_1 === tmp0_other_with_cast.xsp_1)) return false; if (!(this.ysp_1 === tmp0_other_with_cast.ysp_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.usq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda).bqf = function (hasPermission, $completion) { var tmp = this.cqf(hasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.usq_1.kqv_1; while (true) { var prevValue = this_0.t2(); var tmp0_newClazzListOptionVisible = this.vsq_1 ? this.usq_1.pqv().equals(ListViewMode_PICKER_getInstance()) : false; var nextValue = prevValue.hsr(tmp0_newClazzListOptionVisible, VOID, VOID, VOID, VOID, VOID, this.vsq_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzListViewModel$slambda$slambda$slambda).cqf = function (hasPermission, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda(this.usq_1, completion); i.vsq_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.bqf(hasPermission, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda(this$0, resultContinuation) { this.qsr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.qsr_1.lqn().j7g(); var tmp_1 = this.qsr_1.fqn().zo9().rky_1; PermissionFlags_getInstance(); var tmp_2 = distinctUntilChanged(tmp_0.si0(tmp_1, new Long(512, 0))); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_0(this.qsr_1, null); suspendResult = tmp_2.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda$slambda).f79 = function (completion) { return new ClazzListViewModel$slambda$slambda(this.qsr_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.d88($completion); }; l.$arity = 0; return l; } function ClazzListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.zsr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda_1).bss = function (it, $completion) { var tmp = this.css(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.bss((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.zsr_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hsr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ass_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzListViewModel$slambda$slambda$slambda_1).css = function (it, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda_1(this.zsr_1, completion); i.ass_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.bss(it, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.lss_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda_1).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda_1).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzListViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.lss_1.lqn().h7g(); var tmp_1 = this.lss_1.hqn(); var tmp_2 = tmp_0.ney(tmp_1, 1); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_2(this.lss_1, null); suspendResult = tmp_2.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda$slambda_1).f79 = function (completion) { return new ClazzListViewModel$slambda$slambda_1(this.lss_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.d88($completion); }; l.$arity = 0; return l; } function Companion_122() { Companion_instance_171 = this; this.mss_1 = 'CourseList'; this.nss_1 = 'CourseListHome'; this.oss_1 = listOf(['CourseList', 'CourseListHome']); this.pss_1 = 'excludeAlreadySelectedClazzList'; } var Companion_instance_171; function Companion_getInstance_139() { if (Companion_instance_171 == null) new Companion_122(); return Companion_instance_171; } function sam$kotlinx_coroutines_flow_FlowCollector$0_13(function_0) { this.qss_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_13).n1e = function (value, $completion) { return this.qss_1(value, $completion); }; function ClazzListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().i7e().q8d(toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_1), this$0.fqn().zo9().rky_1, this$0.rst_1, this$0.kqv_1.t2().zsq_1.jqc_1, this$0.kqv_1.t2().bsr_1, systemTimeInMillis(), this$0.sst_1); }; } function ClazzListViewModel$slambda(this$0, resultContinuation) { this.csu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.csu_1.kqv_1, ClazzListViewModel$slambda$slambda_0(this.csu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzListViewModel$slambda(this.csu_1, completion); i.dsu_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda_1(this$0, resultContinuation) { this.msu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.msu_1.kqv_1, ClazzListViewModel$slambda$slambda_2(this.msu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzListViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzListViewModel$slambda_1(this.msu_1, completion); i.nsu_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$onClickCancelEnrolmentRequest$slambda(this$0, $enrolmentRequest, resultContinuation) { this.wsu_1 = this$0; this.xsu_1 = $enrolmentRequest; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.wsu_1.lqn().h7g(); var tmp_1 = this.xsu_1.eez_1; suspendResult = tmp_0.oey(tmp_1, 4, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wsu_1.nqn().rq6(new Snack(this.wsu_1.pqn().coj(strings_getInstance().hnn_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).p1n = function ($this$launch, completion) { var i = new ClazzListViewModel$onClickCancelEnrolmentRequest$slambda(this.wsu_1, this.xsu_1, completion); i.ysu_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_139(); 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.rst_1 = tmp_2; var tmp_3 = this; Companion_getInstance_116(); 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.sst_1 = tmp_4; var tmp_5 = this; tmp_5.tst_1 = ClazzListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.' call var tmp0_searchState = this.tqw(); var tmp1_title = this.bqx(strings_getInstance().sni_1, strings_getInstance().sni_1); var tmp2_fabState = this.wqw(!this.hqn().equals(new Long(0, 0)), strings_getInstance().tni_1); var nextValue = prevValue.cq6(tmp2_fabState, VOID, tmp1_title, true, VOID, VOID, VOID, tmp0_searchState); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kqv_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.pqn().coj(get_dayStringResource(element_0)); result.s(element_0, tmp$ret$11); } var tmp1_clazzList = this.tst_1; var nextValue_0 = prevValue_0.hsr(VOID, tmp1_clazzList, VOID, VOID, VOID, VOID, VOID, VOID, VOID, result); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.gqn(); launch(tmp_6, VOID, VOID, ClazzListViewModel$slambda_0(this, null)); var tmp_7 = this.gqn(); launch(tmp_7, VOID, VOID, ClazzListViewModel$slambda_2(this, null)); } protoOf(ClazzListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzListViewModel).fqw = function () { this.yqw('CourseEdit'); }; protoOf(ClazzListViewModel).zsu = function () { Companion_getInstance_116(); Companion_getInstance_4(); this.rqm_1.dp6('JoinWithCode', mapOf_0(to('argCodeTable', (6).toString()))); }; protoOf(ClazzListViewModel).asv = function (entry) { this.aqx('Course', entry.l8e_1, entry); }; protoOf(ClazzListViewModel).bsv = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onSortOrderChanged.' call var nextValue = prevValue.hsr(VOID, VOID, VOID, sortOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzListViewModel).csv = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onClickFilterChip.' call var nextValue = prevValue.hsr(VOID, VOID, VOID, VOID, VOID, filterOption.fq7_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzListViewModel).dsv = function (enrolmentRequest) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzListViewModel$onClickCancelEnrolmentRequest$slambda_0(this, enrolmentRequest, null)); }; function Companion_123() { Companion_instance_172 = this; var tmp = this; var tmp_0 = strings_getInstance().lmk_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().lmk_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().hml_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().hml_1; tmp.esv_1 = listOf([tmp_1, tmp_3, tmp_5, new SortOrderOption(tmp_6, 4, false)]); } var Companion_instance_172; function Companion_getInstance_140() { if (Companion_instance_172 == null) new Companion_123(); 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_140(); 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_140().esv_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().inj_1; tmp_1 = listOf([new MessageIdOption2(tmp_2, 5), new MessageIdOption2(strings_getInstance().vmz_1, 0)]); } else { tmp_1 = filterOptions; } filterOptions = tmp_1; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.umd(), Companion_getInstance_9().tmh()) : localDateTimeNow; this.wsq_1 = newClazzListOptionVisible; this.xsq_1 = clazzList; this.ysq_1 = sortOptions; this.zsq_1 = activeSortOrderOption; this.asr_1 = fieldsEnabled; this.bsr_1 = selectedChipId; this.csr_1 = canAddNewCourse; this.dsr_1 = pendingEnrolments; this.esr_1 = filterOptions; this.fsr_1 = dayOfWeekStrings; this.gsr_1 = localDateTimeNow; } protoOf(ClazzListUiState).fsv = 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).hsr = function (newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow, $super) { newClazzListOptionVisible = newClazzListOptionVisible === VOID ? this.wsq_1 : newClazzListOptionVisible; clazzList = clazzList === VOID ? this.xsq_1 : clazzList; sortOptions = sortOptions === VOID ? this.ysq_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.zsq_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.asr_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.bsr_1 : selectedChipId; canAddNewCourse = canAddNewCourse === VOID ? this.csr_1 : canAddNewCourse; pendingEnrolments = pendingEnrolments === VOID ? this.dsr_1 : pendingEnrolments; filterOptions = filterOptions === VOID ? this.esr_1 : filterOptions; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.fsr_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.gsr_1 : localDateTimeNow; return $super === VOID ? this.fsv(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) : $super.fsv.call(this, newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow); }; protoOf(ClazzListUiState).toString = function () { return 'ClazzListUiState(newClazzListOptionVisible=' + this.wsq_1 + ', clazzList=' + this.xsq_1 + ', sortOptions=' + this.ysq_1 + ', activeSortOrderOption=' + this.zsq_1 + ', fieldsEnabled=' + this.asr_1 + ', selectedChipId=' + this.bsr_1 + ', canAddNewCourse=' + this.csr_1 + ', pendingEnrolments=' + this.dsr_1 + ', filterOptions=' + this.esr_1 + ', dayOfWeekStrings=' + this.fsr_1 + ', localDateTimeNow=' + this.gsr_1 + ')'; }; protoOf(ClazzListUiState).hashCode = function () { var result = getBooleanHashCode(this.wsq_1); result = imul(result, 31) + hashCode(this.xsq_1) | 0; result = imul(result, 31) + hashCode(this.ysq_1) | 0; result = imul(result, 31) + this.zsq_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.asr_1) | 0; result = imul(result, 31) + this.bsr_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.csr_1) | 0; result = imul(result, 31) + hashCode(this.dsr_1) | 0; result = imul(result, 31) + hashCode(this.esr_1) | 0; result = imul(result, 31) + hashCode(this.fsr_1) | 0; result = imul(result, 31) + this.gsr_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.wsq_1 === tmp0_other_with_cast.wsq_1)) return false; if (!equals(this.xsq_1, tmp0_other_with_cast.xsq_1)) return false; if (!equals(this.ysq_1, tmp0_other_with_cast.ysq_1)) return false; if (!this.zsq_1.equals(tmp0_other_with_cast.zsq_1)) return false; if (!(this.asr_1 === tmp0_other_with_cast.asr_1)) return false; if (!(this.bsr_1 === tmp0_other_with_cast.bsr_1)) return false; if (!(this.csr_1 === tmp0_other_with_cast.csr_1)) return false; if (!equals(this.dsr_1, tmp0_other_with_cast.dsr_1)) return false; if (!equals(this.esr_1, tmp0_other_with_cast.esr_1)) return false; if (!equals(this.fsr_1, tmp0_other_with_cast.fsr_1)) return false; if (!this.gsr_1.equals(tmp0_other_with_cast.gsr_1)) return false; return true; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).qsv = function (entity, permissions, $completion) { var tmp = this.rsv(entity, permissions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).on = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof CoursePermission) ? p1 : THROW_CCE(); return this.qsv(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.osv_1; var tmp_0; if (this.psv_1.bdo_1) { tmp_0 = this_0; } else { tmp_0 = null; } return new Pair(tmp_0, this.psv_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).rsv = function (entity, permissions, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.osv_1 = entity; i.psv_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.qsv(entity, permissions, $completion); }; l.$arity = 2; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.asw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).hsw = function (it, $completion) { var tmp = this.isw(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.hsw(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.csw_1 = this.bsw_1; this.dsw_1 = this.csw_1.y6(); this.esw_1 = this.csw_1.z6(); this.fsw_1 = this.esw_1; this.gsw_1 = this.fsw_1.z6(); l$ret$1: do { var this_0 = this.asw_1.fsx_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.dsw_1 == null)) { tmp_0 = CoursePermissionConstants_getInstance().prf_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.ksx(this.dsw_1, tmp_0); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.asw_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(prevValue_0.nq5_1.iq6(this.gsw_1)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.dsw_1 == null)) { this.hd_1 = 1; suspendResult = getTitleForCoursePermission(this.asw_1, this.dsw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: var title = suspendResult; l$ret$5: do { var this_2 = this.asw_1.tqm_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.cq6(VOID, VOID, title); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).isw = function (it, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.asw_1, completion); i.bsw_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.hsw(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $permissionFlow, this$0, resultContinuation) { this.tsx_1 = $entityFlow; this.usx_1 = $permissionFlow; this.vsx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.tsx_1, this.usx_1, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null))); suspendResult = collectLatest(tmp_0, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.vsx_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda(this.tsx_1, this.usx_1, this.vsx_1, completion); i.wsx_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $permissionFlow, this$0, resultContinuation) { this.fsy_1 = $this_launch; this.gsy_1 = $entityFlow; this.hsy_1 = $permissionFlow; this.isy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.fsy_1, VOID, VOID, CoursePermissionDetailViewModel$slambda$slambda$slambda_0(this.gsy_1, this.hsy_1, this.isy_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).f79 = function (completion) { return new CoursePermissionDetailViewModel$slambda$slambda(this.fsy_1, this.gsy_1, this.hsy_1, this.isy_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.d88($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_125(); var tmp0_safe_receiver = $this.fsx_1.t2().isx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tdl_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_125(); $this.cqo(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); $this.rqm_1.dp6('CoursePermissionEdit', tmp$ret$2); } function Companion_124() { this.jsy_1 = 'CoursePermissionDetail'; } var Companion_instance_173; function Companion_getInstance_141() { 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.ssy_1 = this$0; this.tsy_1 = $entityFlow; this.usy_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.ssy_1.fsx_1, CoursePermissionDetailViewModel$slambda$slambda_0(this.vsy_1, this.tsy_1, this.usy_1, this.ssy_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CoursePermissionDetailViewModel$slambda(this.ssy_1, this.tsy_1, this.usy_1, completion); i.vsy_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CoursePermissionDetail'); this.fsx_1 = MutableStateFlow(new CoursePermissionDetailUiState()); this.gsx_1 = asStateFlow(this.fsx_1); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.hsx_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var entityFlow = this.lqn().i7g().j7t(this.jqm_1, this.hsx_1); var tmp_0 = this.lqn().i7g(); var tmp_1 = this.hqn(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = tmp_0.adl(tmp_1, this.hsx_1, tmp_2, new Long(2, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissiondetail.CoursePermissionDetailViewModel.' call var tmp_3 = this.pqn().coj(strings_getInstance().pmv_1); var tmp_4 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.cq6(new FabUiState(VOID, tmp_3, tmp_4, CoursePermissionDetailViewModel$onClickEdit$ref(this))); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_5 = this.gqn(); 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.isx_1 = coursePermission; this.jsx_1 = permissionLabels; } protoOf(CoursePermissionDetailUiState).ksx = function (coursePermission, permissionLabels) { return new CoursePermissionDetailUiState(coursePermission, permissionLabels); }; protoOf(CoursePermissionDetailUiState).toString = function () { return 'CoursePermissionDetailUiState(coursePermission=' + this.isx_1 + ', permissionLabels=' + this.jsx_1 + ')'; }; protoOf(CoursePermissionDetailUiState).hashCode = function () { var result = this.isx_1 == null ? 0 : this.isx_1.hashCode(); result = imul(result, 31) + hashCode(this.jsx_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.isx_1, tmp0_other_with_cast.isx_1)) return false; if (!equals(this.jsx_1, tmp0_other_with_cast.jsx_1)) return false; return true; }; function CoursePermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.esz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda).gsz = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.gsz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.fsz_1.i7g().wdk(this.esz_1.xqs_1, this.esz_1.gt0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new CoursePermissionEditViewModel$slambda$slambda(this.esz_1, completion); i.fsz_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.gsz(db, $completion); }; l.$arity = 1; return l; } function CoursePermissionEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.pt0_1 = this$0; this.qt0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda_1).mdr = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.mdr($completion); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.pt0_1.jqn()); Companion_getInstance_5(); suspendResult = tmp_0.i63(10012, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; Companion_getInstance_125(); var tmp0_safe_receiver = this.qt0_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.qt0_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_125(); var tmp4_safe_receiver = this.qt0_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).f79 = function (completion) { return new CoursePermissionEditViewModel$slambda$slambda_1(this.pt0_1, this.qt0_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.mdr($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.et0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel...' call var nextValue = prevValue.ut0(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CoursePermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.dt1_1 = this$0; this.et1_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.dt1_1.lqn().i7g().xdk(this.et1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new CoursePermissionEditViewModel$onClickSave$slambda$slambda(this.dt1_1, this.et1_1, completion); i.ft1_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.nny(it, $completion); }; l.$arity = 1; return l; } function Companion_125() { this.gt1_1 = 'CoursePermissionEdit'; this.ht1_1 = 'grantToRole'; } var Companion_instance_174; function Companion_getInstance_142() { return Companion_instance_174; } function CoursePermissionEditViewModel$slambda(this$0, resultContinuation) { this.qt1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda).as8 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.rt1_1.i7g(); var tmp_1 = this.qt1_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ddl(tmp_1, this.qt1_1.gt0_1, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda).ony = function (it, completion) { var i = new CoursePermissionEditViewModel$slambda(this.qt1_1, completion); i.rt1_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.as8(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.et0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel..' call var nextValue = prevValue.ut0(VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.at2_1 = this$0; this.bt2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = Companion_getInstance_5().h4s(); var tmp_1 = CoursePermissionEditViewModel$slambda$slambda_0(this.at2_1, null); var tmp_2 = CoursePermissionEditViewModel$slambda$slambda_2(this.at2_1, this.bt2_1, null); suspendResult = this.at2_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, CoursePermissionEditViewModel$slambda$lambda(this.at2_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dt2_1 = suspendResult; this.hd_1 = 2; suspendResult = getTitleForCoursePermission(this.at2_1, this.dt2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$1: do { var this_0 = this.at2_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.at2_1.pqn().coj(strings_getInstance().dn3_1); var nextValue = prevValue.cq6(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, CoursePermissionEditViewModel$onClickSave$ref(this.at2_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.at2_1.et0_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ut0(VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new CoursePermissionEditViewModel$slambda_1(this.at2_1, this.bt2_1, completion); i.ct2_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.o1n($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.et0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onClickSave..' call var nextValue = prevValue.ut0(VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.mt2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.mt2_1.et0_1.t2().rt0_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.nt2_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.mt2_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, CoursePermissionEditViewModel$onClickSave$slambda$slambda_0(this.mt2_1, this.nt2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_116(); var popUpToOnFinish = this.mt2_1.pqm_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.mt2_1.rqm_1.cq9(popUpToOnFinish, false); } else { this.mt2_1.zqs('CoursePermissionDetail', this.nt2_1.tdl_1, this.nt2_1); } return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).f79 = function (completion) { return new CoursePermissionEditViewModel$onClickSave$slambda(this.mt2_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.d88($completion); }; l.$arity = 0; return l; } function CoursePermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CoursePermissionEdit'); this.et0_1 = MutableStateFlow(new CoursePermissionEditUiState()); this.ft0_1 = asStateFlow(this.et0_1); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.gt0_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.et0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue = prevValue.ut0(VOID, VOID, CoursePermissionConstants_getInstance().prf_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue_0 = prevValue_0.cq6(VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = CoursePermissionEditViewModel$slambda_0(this, null); var tmp_1 = CoursePermissionEditViewModel$lambda(this); this.bqo(tmp_0, VOID, tmp_1, CoursePermissionEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(CoursePermissionEditViewModel).ot2 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.et0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onTogglePermission.' call var entityVal = prevValue.rt0_1; var tmp; if (!(entityVal == null)) { tmp = prevValue.ut0(entityVal.ykm(VOID, VOID, VOID, VOID, VOID, VOID, toggleFlag(entityVal.zdl_1, flag))); } else { tmp = prevValue; } var nextValue = tmp; if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(CoursePermissionEditViewModel).os5 = function () { var tmp = CoursePermissionEditViewModel$onClickSave$lambda(this); this.cqu(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.rt0_1 = entity; this.st0_1 = fieldsEnabled; this.tt0_1 = permissionLabels; } protoOf(CoursePermissionEditUiState).pt2 = function (entity, fieldsEnabled, permissionLabels) { return new CoursePermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).ut0 = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.rt0_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.st0_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.tt0_1 : permissionLabels; return $super === VOID ? this.pt2(entity, fieldsEnabled, permissionLabels) : $super.pt2.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).toString = function () { return 'CoursePermissionEditUiState(entity=' + this.rt0_1 + ', fieldsEnabled=' + this.st0_1 + ', permissionLabels=' + this.tt0_1 + ')'; }; protoOf(CoursePermissionEditUiState).hashCode = function () { var result = this.rt0_1 == null ? 0 : this.rt0_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.st0_1) | 0; result = imul(result, 31) + hashCode(this.tt0_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.rt0_1, tmp0_other_with_cast.rt0_1)) return false; if (!(this.st0_1 === tmp0_other_with_cast.st0_1)) return false; if (!equals(this.tt0_1, tmp0_other_with_cast.tt0_1)) return false; return true; }; function CoursePermissionListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function CoursePermissionListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.yt2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).at3 = function (it, $completion) { var tmp = this.bt3(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.at3(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_container = this.zt2_1; var hasViewPermission = tmp0_container.y6(); var hasEditPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.yt2_1.kqv_1; while (true) { var prevValue = this_0.t2(); var tmp1_permissionLabels = CoursePermissionConstants_getInstance().prf_1; var this_1 = this.yt2_1.dt4_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.it4(tmp2_permissionsList, tmp1_permissionLabels, VOID, hasEditPermission); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.yt2_1.tqm_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.cq6(prevValue_0.nq5_1.iq6(hasEditPermission)); if (this_2.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).bt3 = function (it, completion) { var i = new CoursePermissionListViewModel$slambda$slambda$slambda(this.yt2_1, completion); i.zt2_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.at3(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$slambda$slambda(this$0, resultContinuation) { this.rt4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(CoursePermissionListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.rt4_1.lqn().i7g(); var tmp_1 = this.rt4_1.hqn(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.adl(tmp_1, this.rt4_1.ct4_1, tmp_2, new Long(2, 0))); var tmp_4 = CoursePermissionListViewModel$slambda$slambda$slambda_0(this.rt4_1, null); suspendResult = tmp_3.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionListViewModel$slambda$slambda).f79 = function (completion) { return new CoursePermissionListViewModel$slambda$slambda(this.rt4_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.d88($completion); }; l.$arity = 0; return l; } function Companion_126() { this.st4_1 = 'CoursePermissionList'; this.tt4_1 = 'permissionResult'; } var Companion_instance_175; function Companion_getInstance_143() { return Companion_instance_175; } function sam$kotlinx_coroutines_flow_FlowCollector$0_14(function_0) { this.ut4_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_14).n1e = function (value, $completion) { return this.ut4_1(value, $completion); }; function CoursePermissionListViewModel$pagingSource$lambda(this$0) { return function () { return this$0.lqn().i7g().vdk(this$0.ct4_1, false); }; } function CoursePermissionListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.fqw(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CoursePermissionListViewModel$slambda(this$0, resultContinuation) { this.dt5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.dt5_1.kqv_1, CoursePermissionListViewModel$slambda$slambda_0(this.dt5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CoursePermissionListViewModel$slambda(this.dt5_1, completion); i.et5_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$onClickDeleteEntry$slambda(this$0, $coursePermission, resultContinuation) { this.nt5_1 = this$0; this.ot5_1 = $coursePermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.nt5_1.lqn().i7g().yca(this.ot5_1.tdl_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).p1n = function ($this$launch, completion) { var i = new CoursePermissionListViewModel$onClickDeleteEntry$slambda(this.nt5_1, this.ot5_1, completion); i.pt5_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.o1n($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_116(); 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.ct4_1 = tmp_0; var tmp_1 = this; tmp_1.dt4_1 = CoursePermissionListViewModel$pagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.' call var tmp3_title = this.pqn().coj(strings_getInstance().hn1_1); var tmp0_text = this.pqn().coj(strings_getInstance().hn1_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.cq6(tmp4_fabState, VOID, tmp3_title); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, CoursePermissionListViewModel$slambda_0(this, null)); } protoOf(CoursePermissionListViewModel).eqw = function (searchText) { }; protoOf(CoursePermissionListViewModel).fqw = function () { Companion_getInstance_116(); var tmp = to('clazzUid', this.ct4_1.toString()); Companion_getInstance_116(); var goToOnPersonSelectedArg = appendQueryArgs('CoursePermissionEdit', mapOf([tmp, to('popUpToOnFinish', this.qqm_1)])); Companion_getInstance_203(); var tmp_0 = Companion_getInstance_5().h4s(); // 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_116(); this_0.s('listMode', ListViewMode_PICKER_getInstance().pqj_1); this_0.s('goToOnPersonSelected', goToOnPersonSelectedArg); var tmp$ret$2 = this_0.f3(); this.xqn('People', 'permissionResult', null, tmp_0, tmp$ret$2); }; protoOf(CoursePermissionListViewModel).qt5 = 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_125(); this_0.s('entityUid', coursePermission.tdl_1.toString()); Companion_getInstance_125(); this.cqo(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); this.rqm_1.dp6('CoursePermissionDetail', tmp$ret$2); }; protoOf(CoursePermissionListViewModel).rt5 = function (coursePermission) { var tmp = this.gqn(); 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.et4_1 = permissionsList; this.ft4_1 = permissionLabels; this.gt4_1 = courseTerminology; this.ht4_1 = showDeleteOption; } protoOf(CoursePermissionListUiState).st5 = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption) { return new CoursePermissionListUiState(permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).it4 = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption, $super) { permissionsList = permissionsList === VOID ? this.et4_1 : permissionsList; permissionLabels = permissionLabels === VOID ? this.ft4_1 : permissionLabels; courseTerminology = courseTerminology === VOID ? this.gt4_1 : courseTerminology; showDeleteOption = showDeleteOption === VOID ? this.ht4_1 : showDeleteOption; return $super === VOID ? this.st5(permissionsList, permissionLabels, courseTerminology, showDeleteOption) : $super.st5.call(this, permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).toString = function () { return 'CoursePermissionListUiState(permissionsList=' + this.et4_1 + ', permissionLabels=' + this.ft4_1 + ', courseTerminology=' + this.gt4_1 + ', showDeleteOption=' + this.ht4_1 + ')'; }; protoOf(CoursePermissionListUiState).hashCode = function () { var result = hashCode(this.et4_1); result = imul(result, 31) + hashCode(this.ft4_1) | 0; result = imul(result, 31) + (this.gt4_1 == null ? 0 : hashCode(this.gt4_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ht4_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.et4_1, tmp0_other_with_cast.et4_1)) return false; if (!equals(this.ft4_1, tmp0_other_with_cast.ft4_1)) return false; if (!equals(this.gt4_1, tmp0_other_with_cast.gt4_1)) return false; if (!(this.ht4_1 === tmp0_other_with_cast.ht4_1)) return false; return true; }; function avatarName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.l7w_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.m7w_1; } else { tmp = _this__u8e3s4.l7w_1.toString(); } return tmp; } function avatarColorName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.l7w_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.m7w_1; } else { tmp = _this__u8e3s4.l7w_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().xng_1; TextLimitType_LIMIT_WORDS_instance = new TextLimitType('LIMIT_WORDS', 0, tmp, 1); var tmp_0 = strings_getInstance().yng_1; TextLimitType_LIMIT_CHARS_instance = new TextLimitType('LIMIT_CHARS', 1, tmp_0, 2); } var MarkingType_TEACHER_instance; var MarkingType_PEERS_instance; function Companion_127() { } protoOf(Companion_127).lkb = 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.vt5_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_144() { 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.yt5_1 = stringResource; this.zt5_1 = value; } function MarkingType(name, ordinal, value) { Enum.call(this, name, ordinal); this.vt5_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().ln6_1); Companion_getInstance_1(); var tmp_1 = to(2, strings_getInstance().kn6_1); Companion_getInstance_1(); tmp.at6_1 = mapOf([tmp_0, tmp_1, to(0, strings_getInstance().mn6_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.fae_1.c7(new Long(0, 0)) > 0) { var tmp_0 = _this__u8e3s4.fae_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.zcb_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.xcb_1; var tmp_0 = tmp1_elvis_lhs == null ? 'application/octet-stream' : tmp1_elvis_lhs; var tmp2_elvis_lhs = _this__u8e3s4.ycb_1; return new OpenBlobItem(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs, toLong(_this__u8e3s4.acc_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.lbx_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbx_1; var tmp1_safe_receiver = element.lbx_1; if (equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.cbx_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().lbx_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ibx_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().lbx_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.ibx_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.lbx_1; if (equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.ibx_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.lbx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fbx_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.ukc_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.lbx_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.hbx_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.vkc_1 = roundToInt(tmp$ret$3 / latestUnique.u()); return this_0; } function _no_name_provided__qut3iv_6($this) { this.bt6_1 = $this; } protoOf(_no_name_provided__qut3iv_6).o = function () { return this.bt6_1.w(); }; protoOf(_no_name_provided__qut3iv_6).ct6 = function (element) { // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.hasUpdatedMarks.' call var tmp0_safe_receiver = element.lbx_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbx_1; return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; }; protoOf(_no_name_provided__qut3iv_6).p = function (element) { return this.ct6(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.qcc_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tcb_1, item.ec3_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.dt6_1 = block; this.et6_1 = assignmentMark; this.ft6_1 = assignmentStatus; } protoOf(UstadAssignmentSubmissionHeaderUiState).toString = function () { return 'UstadAssignmentSubmissionHeaderUiState(block=' + this.dt6_1 + ', assignmentMark=' + this.et6_1 + ', assignmentStatus=' + this.ft6_1 + ')'; }; protoOf(UstadAssignmentSubmissionHeaderUiState).hashCode = function () { var result = this.dt6_1 == null ? 0 : this.dt6_1.hashCode(); result = imul(result, 31) + (this.et6_1 == null ? 0 : this.et6_1.hashCode()) | 0; result = imul(result, 31) + (this.ft6_1 == null ? 0 : this.ft6_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.dt6_1, tmp0_other_with_cast.dt6_1)) return false; if (!equals(this.et6_1, tmp0_other_with_cast.et6_1)) return false; if (!(this.ft6_1 == tmp0_other_with_cast.ft6_1)) return false; return true; }; function UstadCourseAssignmentMarkListItemUiState(mark, localDateTimeNow, dayOfWeekStrings) { mark = mark === VOID ? new CourseAssignmentMarkAndMarkerName() : mark; this.gt6_1 = mark; this.ht6_1 = localDateTimeNow; this.it6_1 = dayOfWeekStrings; } protoOf(UstadCourseAssignmentMarkListItemUiState).jt6 = function () { var tmp0_safe_receiver = this.gt6_1.lbx_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbx_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).kt6 = function () { var tmp0_elvis_lhs = this.gt6_1.mbx_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.gt6_1.nbx_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); }; protoOf(UstadCourseAssignmentMarkListItemUiState).lt6 = function () { return !(this.jt6() === 0); }; protoOf(UstadCourseAssignmentMarkListItemUiState).mt6 = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.gt6_1.lbx_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.hbx_1; return !(it == null) ? !(it === 0.0) : false; }; protoOf(UstadCourseAssignmentMarkListItemUiState).toString = function () { return 'UstadCourseAssignmentMarkListItemUiState(mark=' + this.gt6_1 + ', localDateTimeNow=' + this.ht6_1 + ', dayOfWeekStrings=' + this.it6_1 + ')'; }; protoOf(UstadCourseAssignmentMarkListItemUiState).hashCode = function () { var result = this.gt6_1.hashCode(); result = imul(result, 31) + this.ht6_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.it6_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.gt6_1.equals(tmp0_other_with_cast.gt6_1)) return false; if (!this.ht6_1.equals(tmp0_other_with_cast.ht6_1)) return false; if (!equals(this.it6_1, tmp0_other_with_cast.it6_1)) return false; return true; }; function Companion_128() { this.nt6_1 = 'CourseAssignment'; } var Companion_instance_177; function Companion_getInstance_145() { return Companion_instance_177; } function ClazzAssignmentDetailViewModel$slambda(this$0, resultContinuation) { this.wt6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailViewModel$slambda).zt6 = function (clazzAssignment, permissionPair, $completion) { var tmp = this.at7(clazzAssignment, permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailViewModel$slambda).on = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof ClazzAssignment) ? p1 : THROW_CCE(); return this.zt6(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_container = this.yt6_1; var hasCourseViewPermission = tmp0_container.y6(); var hasLearnerRecordPermission = tmp0_container.z6(); var tmp_0; if (hasCourseViewPermission) { var tmp_1; var tmp1_safe_receiver = this.xt6_1; var tmp_2 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u7u_1; if (tmp_2 === 2) { tmp_1 = true; } else { tmp_1 = hasLearnerRecordPermission; } var hasSubmissionsTab = tmp_1; Companion_getInstance_125(); var tmp_3 = to('entityUid', this.wt6_1.jqm_1.toString()); Companion_getInstance_125(); var tabArgs = mapOf([tmp_3, to('clazzUid', this.wt6_1.yt7_1.toString())]); var tabs = mutableListOf([new TabItem('CourseAssignmentDetailOverviewView', tabArgs, this.wt6_1.pqn().coj(strings_getInstance().tn5_1))]); if (hasSubmissionsTab) { var tmp_4; var tmp_5; if (!hasLearnerRecordPermission) { var tmp2_safe_receiver = this.xt6_1; var tmp_6 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u7u_1; tmp_5 = tmp_6 === 2; } else { tmp_5 = false; } if (tmp_5) { tmp_4 = this.wt6_1.pqn().coj(strings_getInstance().nng_1); } else { tmp_4 = this.wt6_1.pqn().coj(strings_getInstance().cnh_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.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailViewModel$slambda).at7 = function (clazzAssignment, permissionPair, completion) { var i = new ClazzAssignmentDetailViewModel$slambda(this.wt6_1, completion); i.xt6_1 = clazzAssignment; i.yt6_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.zt6(clazzAssignment, permissionPair, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.yt7_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var assignmentFlow = this.lqn().k7f().j7t(this.jqm_1, this.yt7_1); var tmp_0 = this.lqn().i7g(); var tmp_1 = this.fqn().zo9().rky_1; PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = distinctUntilChanged(tmp_0.adl(tmp_1, this.yt7_1, tmp_2, new Long(128, 0))); var tmp_3 = this; tmp_3.xt7_1 = combine(assignmentFlow, permissionFlow, ClazzAssignmentDetailViewModel$slambda_0(this, null)); } function ClazzAssignmentDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.zt7_1 = tabs; } protoOf(ClazzAssignmentDetailUiState).toString = function () { return 'ClazzAssignmentDetailUiState(tabs=' + this.zt7_1 + ')'; }; protoOf(ClazzAssignmentDetailUiState).hashCode = function () { return hashCode(this.zt7_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.zt7_1, tmp0_other_with_cast.zt7_1)) return false; return true; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.it8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).kt8 = function (it, $completion) { var tmp = this.lt8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.kt8((p1 == null ? true : p1 instanceof AssignmentProgressSummary) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.it8_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rt8(this.jt8_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).lt8 = function (it, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this.it8_1, completion); i.jt8_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.kt8(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.at9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.at9_1.lqn().k7f().e7t(this.at9_1.cta_1, this.at9_1.dta_1, this.at9_1.hqn(), this.at9_1.pqn().coj(strings_getInstance().xnf_1)); var tmp_1 = ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda_0(this.at9_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this.at9_1, completion); i.bt9_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.o1n($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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel....' call var nextValue = prevValue.cq6(VOID, VOID, title); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this$0, resultContinuation) { this.nta_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.nta_1.lqn().k7e().ze7(this.nta_1.cta_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.nta_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rt8(VOID, VOID, VOID, VOID, terminology); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this.nta_1, completion); i.ota_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1($this_launch, this$0, resultContinuation) { this.xta_1 = $this_launch; this.yta_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.xta_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda_0(this.yta_1, null)); launchSetTitleFromClazzUid(this.yta_1, this.yta_1.dta_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$lambda(this.yta_1)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).f79 = function (completion) { return new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1(this.xta_1, this.yta_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.d88($completion); }; l.$arity = 0; return l; } function Companion_129() { this.zta_1 = 'CourseAssignmentSubmissionsTab'; } var Companion_instance_178; function Companion_getInstance_146() { return Companion_instance_178; } function sam$kotlinx_coroutines_flow_FlowCollector$0_15(function_0) { this.atb_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_15).n1e = function (value, $completion) { return this.atb_1(value, $completion); }; function ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().k7f().f7t(this$0.cta_1, this$0.dta_1, this$0.hqn(), this$0.pqn().coj(strings_getInstance().xnf_1), toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_1), this$0.kqv_1.t2().pt8_1.jqc_1); }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this$0, resultContinuation) { this.jtb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; launch(this.ktb_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_0(this.jtb_1, null)); this.hd_1 = 1; suspendResult = whenSubscribed(this.jtb_1.kqv_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_2(this.ktb_1, this.jtb_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this.jtb_1, completion); i.ktb_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.o1n($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_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.cta_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this; Companion_getInstance_125(); 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.dta_1 = tmp_2; var tmp_3 = this; tmp_3.eta_1 = ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.' call var nextValue = prevValue.rt8(VOID, this.eta_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_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.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.tqw()); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = this.gqn(); launch(tmp_4, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda_0(this, null)); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).ltb = function (assignmentSubmitter) { var tmp = to('assignmentUid', this.cta_1.toString()); var tmp_0 = to('submitterUid', assignmentSubmitter.l7w_1.toString()); Companion_getInstance_125(); this.rqm_1.dp6('CourseAssignmentSubmitter', mapOf([tmp, tmp_0, to('clazzUid', this.dta_1.toString())])); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).mtb = function (sortOrderOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.onChangeSortOption.' call var nextValue = prevValue.rt8(VOID, VOID, VOID, sortOrderOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).fqw = function () { }; function Companion_130() { Companion_instance_179 = this; var tmp = this; var tmp_0 = strings_getInstance().lmk_1; var tmp_1 = new SortOrderOption(tmp_0, 5, true); var tmp_2 = strings_getInstance().lmk_1; tmp.ntb_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 6, false)]); } var Companion_instance_179; function Companion_getInstance_147() { if (Companion_instance_179 == null) new Companion_130(); return Companion_instance_179; } function ClazzAssignmentDetailSubmissionsTabUiState$_init_$lambda_ecu5q() { return new EmptyPagingSource(); } function ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { Companion_getInstance_147(); 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_147().ntb_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; courseTerminology = courseTerminology === VOID ? null : courseTerminology; this.mt8_1 = progressSummary; this.nt8_1 = assignmentSubmitterList; this.ot8_1 = sortOptions; this.pt8_1 = sortOption; this.qt8_1 = courseTerminology; } protoOf(ClazzAssignmentDetailSubmissionsTabUiState).otb = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { return new ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).rt8 = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology, $super) { progressSummary = progressSummary === VOID ? this.mt8_1 : progressSummary; assignmentSubmitterList = assignmentSubmitterList === VOID ? this.nt8_1 : assignmentSubmitterList; sortOptions = sortOptions === VOID ? this.ot8_1 : sortOptions; sortOption = sortOption === VOID ? this.pt8_1 : sortOption; courseTerminology = courseTerminology === VOID ? this.qt8_1 : courseTerminology; return $super === VOID ? this.otb(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) : $super.otb.call(this, progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).toString = function () { return 'ClazzAssignmentDetailSubmissionsTabUiState(progressSummary=' + this.mt8_1 + ', assignmentSubmitterList=' + this.nt8_1 + ', sortOptions=' + this.ot8_1 + ', sortOption=' + this.pt8_1 + ', courseTerminology=' + this.qt8_1 + ')'; }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).hashCode = function () { var result = this.mt8_1 == null ? 0 : hashCode(this.mt8_1); result = imul(result, 31) + hashCode(this.nt8_1) | 0; result = imul(result, 31) + hashCode(this.ot8_1) | 0; result = imul(result, 31) + this.pt8_1.hashCode() | 0; result = imul(result, 31) + (this.qt8_1 == null ? 0 : hashCode(this.qt8_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.mt8_1, tmp0_other_with_cast.mt8_1)) return false; if (!equals(this.nt8_1, tmp0_other_with_cast.nt8_1)) return false; if (!equals(this.ot8_1, tmp0_other_with_cast.ot8_1)) return false; if (!this.pt8_1.equals(tmp0_other_with_cast.pt8_1)) return false; if (!equals(this.qt8_1, tmp0_other_with_cast.qt8_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).p7w_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).o7w_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.ptb_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function AssignmentSubmitterSummaryUiState(person) { this.ptb_1 = person; } protoOf(AssignmentSubmitterSummaryUiState).toString = function () { return AssignmentSubmitterSummaryUiState__toString_impl_fdil8u(this.ptb_1); }; protoOf(AssignmentSubmitterSummaryUiState).hashCode = function () { return AssignmentSubmitterSummaryUiState__hashCode_impl_6dnbk1(this.ptb_1); }; protoOf(AssignmentSubmitterSummaryUiState).equals = function (other) { return AssignmentSubmitterSummaryUiState__equals_impl_zhk063(this.ptb_1, other); }; function get_listItemUiState(_this__u8e3s4) { return _AssignmentSubmitterSummaryUiState___init__impl__s3rgxm(_this__u8e3s4); } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ytb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).gqa = function (it, $completion) { var tmp = this.hqa(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.ztb_1.nq9_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.ytb_1.rtd(newSubmissionHtml); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).hqa = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this.ytb_1, completion); i.ztb_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.gqa(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ate_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).cte = function (assignmentData, $completion) { var tmp = this.dte(assignmentData, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.cte((p1 == null ? true : p1 instanceof ClazzAssignmentCourseBlockAndSubmitterUid) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.ate_1.xtc_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.bte_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7z_1; Companion_getInstance_1(); var isEnrolledButNotInGroup = equals(tmp_0, new Long(-1, -1)); var tmp1_safe_receiver = this.bte_1; var tmp9_assignment = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k7z_1; var tmp2_safe_receiver = this.bte_1; var tmp10_courseBlock = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.l7z_1; var tmp3_safe_receiver = this.bte_1; var tmp11_courseBlockPicture = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m7z_1; var tmp5_safe_receiver = this.bte_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.o7z_1; var tmp12_submitterUid = tmp6_elvis_lhs == null ? new Long(0, 0) : tmp6_elvis_lhs; var tmp4_safe_receiver = this.bte_1; var tmp13_courseGroupSet = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.n7z_1; var tmp_1; if (isEnrolledButNotInGroup) { tmp_1 = this.ate_1.pqn().coj(strings_getInstance().mnk_1); } else { tmp_1 = null; } var tmp14_unassignedError = tmp_1; var tmp7_safe_receiver = this.bte_1; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.p7z_1; var tmp15_showModerateOptions = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs; var nextValue = prevValue.ftf(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.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).dte = function (assignmentData, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.ate_1, completion); i.bte_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.cte(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).qtf = function (submissions, submissionFiles, $completion) { var tmp = this.rtf(submissions, submissionFiles, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).on = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.qtf(tmp, (!(p2 == null) ? isInterface(p2, List) : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return combineWithSubmissionFiles(this.otf_1, this.ptf_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).rtf = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.otf_1 = submissions; i.ptf_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.qtf(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.atg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ctg = function (it, $completion) { var tmp = this.dtg(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.ctg((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.atg_1.xtc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.btg_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).dtg = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.atg_1, completion); i.btg_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.ctg(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.mtg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).otg = function (it, $completion) { var tmp = this.ptg(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.otg((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.mtg_1.xtc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ntg_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ptg = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.mtg_1, completion); i.ntg_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.otg(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.ytg_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).cth = function (value, $completion) { var tmp = this.dth(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).he = function (p1, $completion) { return this.cth(p1 instanceof ClazzAssignmentDetailoverviewSubmissionUiState ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.ath_1 = this.ytg_1; var tmp_1 = this; tmp_1.bth_1 = this.ztg_1; this.hd_1 = 1; var tmp0_safe_receiver = this.bth_1.eth_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ec3_1; suspendResult = this.ath_1.n1e(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).dth = function (value, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.ytg_1, completion); i.ztg_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.cth(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$68(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nth_1 = _this__u8e3s4; this.oth_1 = collector; } protoOf($collectCOROUTINE$68).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.pth_1 = this.oth_1; this.hd_1 = 1; var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.pth_1, null); suspendResult = this.nth_1.qth_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.zth_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).bti = function (it, $completion) { var tmp = this.cti(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.bti((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.zth_1.xtc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ftf(VOID, VOID, VOID, VOID, VOID, this.ati_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).cti = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.zth_1, completion); i.ati_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.bti(it, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_7($this) { this.qth_1 = $this; } protoOf(_no_name_provided__qut3iv_7).dti = function (collector, $completion) { var tmp = new $collectCOROUTINE$68(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_7).u1c = function (collector, $completion) { return this.dti(collector, $completion); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.mti_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).oti = function (submissionUid, $completion) { var tmp = this.pti(submissionUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.oti(p1 instanceof Long ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.mti_1.jqn().m7f().uca(this.nti_1)); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.mti_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).pti = function (submissionUid, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.mti_1, completion); i.nti_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.oti(submissionUid, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1($entityFlow, this$0, resultContinuation) { this.yti_1 = $entityFlow; this.zti_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.zti_1, null); suspendResult = this.yti_1.b1i(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1(this.yti_1, this.zti_1, completion); i.atj_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.o1n($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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel....' call var nextValue = prevValue.cq6(VOID, VOID, title); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.jtj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.ltj_1 = this.jtj_1.lqn().l7f().pc2(this.jtj_1.hqn(), this.jtj_1.jqm_1); this.mtj_1 = this.jtj_1.lqn().m7f().vca(this.jtj_1.hqn(), this.jtj_1.jqm_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.ltj_1, this.mtj_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.jtj_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this.jtj_1, completion); i.ktj_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.vtj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.vtj_1.lqn().n7f().jbw(this.vtj_1.hqn(), this.vtj_1.jqm_1); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.vtj_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this.vtj_1, completion); i.wtj_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.ftk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.ftk_1.ztc_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_7(this_0)); suspendResult = collectLatest(tmp_0, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.ftk_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7(this.ftk_1, completion); i.gtk_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation) { this.ptk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.ptk_1.tqn(this.ptk_1.mqn(), 'submissionHtml'); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_0(this.ptk_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this.ptk_1, completion); i.qtk_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1($this_launch, this$0, $entityFlow, resultContinuation) { this.ztk_1 = $this_launch; this.atl_1 = this$0; this.btl_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.ztk_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_2(this.btl_1, this.atl_1, null)); launchSetTitleFromClazzUid(this.atl_1, this.atl_1.itd_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$lambda(this.atl_1)); launch(this.ztk_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_4(this.atl_1, null)); launch(this.ztk_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_6(this.atl_1, null)); launch(this.ztk_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_8(this.atl_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).f79 = function (completion) { return new ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1(this.ztk_1, this.atl_1, this.btl_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.d88($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this$0, $file, resultContinuation) { this.ktl_1 = this$0; this.ltl_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.ktl_1.lqn().m7f(); var tmp0_safe_receiver = this.ltl_1.qcc_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.scb_1; suspendResult = tmp_0.yca(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).ony = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this.ktl_1, this.ltl_1, completion); i.mtl_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.nny(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.xtc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.ftf(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.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_saveAndUploadUseCase__bjy5rj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jtd_1; saveAndUploadUseCase$factory_0(); return this_0.t2(); } function _get_cancelTransferJobUseCase__o6e2y4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ktd_1; cancelTransferJobUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ltd_1; openBlobUiUseCase$factory_0(); return this_0.t2(); } function _get_ustadAccountManager__el9prc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ntd_1; ustadAccountManager$factory_0(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.otd_1; showSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ptd_1; dismissSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qtd_1; openExternalLinkUseCase$factory_0(); return this_0.t2(); } function newCourseAssignmentSubmission($this) { var tmp = get_doorPrimaryKeyManager($this.jqn()); Companion_getInstance_1(); var tmp0_casUid = tmp.h63(522); var tmp1_casAssignmentUid = $this.jqm_1; var tmp2_casClazzUid = $this.itd_1; var tmp3_casSubmitterPersonUid = $this.fqn().ko9().enu_1.z96_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.qcc_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.mtd_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.gs(); } var tmp_0 = $this; var tmp_1 = $this.gqn(); tmp_0.mtd_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_131() { this.ntl_1 = 'latestSubmission'; this.otl_1 = 'submissionHtml'; this.ptl_1 = 'CourseAssignmentDetailOverviewView'; } var Companion_instance_180; function Companion_getInstance_148() { return Companion_instance_180; } function sam$kotlinx_coroutines_flow_FlowCollector$0_16(function_0) { this.qtl_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_16).n1e = function (value, $completion) { return this.qtl_1(value, $completion); }; function ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().o7f().iad(this$0.hqn(), this$0.jqm_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().o7f().kad(this$0.jqm_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$slambda(this$0, $savedStateHandle, $entityFlow, resultContinuation) { this.ztl_1 = this$0; this.atm_1 = $savedStateHandle; this.btm_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.ztl_1.uqn(this.atm_1, 'latestSubmission', Companion_getInstance_1().h4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dtm_1 = suspendResult; this.etm_1 = this.dtm_1 == null ? newCourseAssignmentSubmission(this.ztl_1) : this.dtm_1; l$ret$1: do { var this_0 = this.ztl_1.ztc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ftm(this.etm_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.ctm_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_0(this.ztl_1, null)); this.hd_1 = 2; suspendResult = whenSubscribed(this.ztl_1.xtc_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_2(this.ctm_1, this.ztl_1, this.btm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda(this.ztl_1, this.atm_1, this.btm_1, completion); i.ctm_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda(this$0, resultContinuation) { this.otm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; _get_dismissSocialWarningUseCase__st8mv5(this.otm_1).ip1(toString_0(_get_ustadAccountManager__el9prc(this.otm_1).ko9().enu_1.a97_1)); l$ret$1: do { var this_0 = this.otm_1.xtc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ftf(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.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda(this.otm_1, completion); i.ptm_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda($text) { return function ($this$shallowCopy) { $this$shallowCopy.ic3_1 = $text; return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda($submissionToSave, this$0, resultContinuation) { this.ytm_1 = $submissionToSave; this.ztm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.ytm_1 == null)) { this.hd_1 = 2; suspendResult = this.ztm_1.vqn(this.ztm_1.pqm_1, 'latestSubmission', Companion_getInstance_1().h4s(), this.ytm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda(this.ytm_1, this.ztm_1, completion); i.atn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda(this$0, $submitterUid, resultContinuation) { this.jtn_1 = this$0; this.ktn_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 4; this.hd_1 = 2; var tmp_0 = this.jtn_1.lqn().o7f(); var this_0 = new Comments(); this_0.eae_1 = this.ktn_1; this_0.dae_1 = this.jtn_1.hqn(); this_0.fae_1 = this.jtn_1.xtc_1.t2().ite_1; this_0.bae_1 = this.jtn_1.jqm_1; this_0.aae_1 = this.jtn_1.btd_1.t2(); this_0.iae_1 = systemTimeInMillis(); suspendResult = tmp_0.gad(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.jtn_1.btd_1.r1l(''); tmp_1.mtn_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.jtn_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.jtn_1.rqn(Companion_getInstance_97().kq6_1); throw t; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda(this.jtn_1, this.ktn_1, completion); i.ltn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda(this$0, resultContinuation) { this.vtn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 4; this.hd_1 = 2; var tmp_0 = this.vtn_1.lqn().o7f(); var this_0 = new Comments(); this_0.eae_1 = new Long(0, 0); this_0.dae_1 = this.vtn_1.hqn(); this_0.bae_1 = this.vtn_1.jqm_1; this_0.aae_1 = this.vtn_1.dtd_1.t2(); this_0.iae_1 = systemTimeInMillis(); suspendResult = tmp_0.gad(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.vtn_1.dtd_1.r1l(''); tmp_1.xtn_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.vtn_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.vtn_1.rqn(Companion_getInstance_97().kq6_1); throw t; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda(this.vtn_1, completion); i.wtn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this$0, $size, $mimeType, $fileName, $uri, resultContinuation) { this.gto_1 = this$0; this.hto_1 = $size; this.ito_1 = $mimeType; this.jto_1 = $fileName; this.kto_1 = $uri; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.gto_1.jqn()); suspendResult = tmp_0.i63(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mto_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.gto_1.ztc_1.t2().eth_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ec3_1; tmp_1.nto_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.oto_1 = this.gto_1.xtc_1.t2().ite_1; this.pto_1 = this.hto_1.mb(); this.qto_1 = this.gto_1.jqm_1; this.rto_1 = this.gto_1.itd_1; this.sto_1 = new CourseAssignmentSubmissionFile(this.mto_1, this.nto_1, this.oto_1, this.qto_1, this.rto_1, this.ito_1, this.jto_1, this.kto_1, this.pto_1); this.hd_1 = 2; suspendResult = this.gto_1.jqn().m7f().tca(listOf_0(this.sto_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 4; this.hd_1 = 3; var tmp_2 = _get_saveAndUploadUseCase__bjy5rj(this.gto_1); var tmp_3 = this.sto_1.scb_1; suspendResult = tmp_2.aor(listOf_0(new SaveLocalUriAsBlobItem(this.kto_1, tmp_3, 90, this.ito_1, VOID, true)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.id_1 = 6; this.hd_1 = 5; continue $sm; case 4: this.id_1 = 6; var tmp_4 = this.kd_1; if (tmp_4 instanceof Error) { var e = this.kd_1; Napier_getInstance().g5f('WARNING: Exception attempting to save/enqueue submission file', e); this.hd_1 = 5; continue $sm; } else { throw this.kd_1; } case 5: this.id_1 = 6; return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this.gto_1, this.hto_1, this.ito_1, this.jto_1, this.kto_1, completion); i.lto_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda(this$0, $submission, resultContinuation) { this.btp_1 = this$0; this.ctp_1 = $submission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 6; this.id_1 = 5; this.hd_1 = 2; suspendResult = this.btp_1.wtc_1.eoj(this.btp_1.lqn(), this.btp_1.xtc_1.t2().ite_1, this.btp_1.jqm_1, this.btp_1.fqn().ko9().enu_1.z96_1, this.ctp_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.btp_1.ztc_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ftm(newCourseAssignmentSubmission(this.btp_1)); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.ftp_1 = tmp$ret$0.eth_1; l$ret$3: do { var this_1 = this.btp_1.xtc_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.ftp_1 == null)) { this.hd_1 = 3; suspendResult = this.btp_1.vqn(this.btp_1.pqm_1, 'latestSubmission', Companion_getInstance_1().h4s(), this.ftp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: var tmp_1 = this; this.btp_1.nqn().rq6(new Snack(this.btp_1.pqn().coj(strings_getInstance().ln6_1))); tmp_1.etp_1 = Unit_instance; this.id_1 = 7; this.hd_1 = 8; continue $sm; case 5: this.id_1 = 6; var tmp_2 = this.kd_1; if (tmp_2 instanceof Exception) { var e = this.kd_1; var tmp_3 = this; Napier_getInstance().k5f('Exception submitting assignment: ' + e, e); l$ret$7: do { var this_2 = this.btp_1.xtc_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, e.message); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); tmp_3.etp_1 = Unit_instance; this.id_1 = 7; this.hd_1 = 8; continue $sm; } else { throw this.kd_1; } case 6: this.id_1 = 7; var t = this.kd_1; l$ret$9: do { var this_3 = this.btp_1.xtc_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.s1l(prevValue_2, nextValue_2)) { break l$ret$9; } } } while (false); this.btp_1.rqn(Companion_getInstance_97().kq6_1); throw t; case 7: throw this.kd_1; case 8: this.id_1 = 7; l$ret$11: do { var this_4 = this.btp_1.xtc_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_4.s1l(prevValue_3, nextValue_3)) { break l$ret$11; } } } while (false); this.btp_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 7) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda(this.btp_1, this.ctp_1, completion); i.dtp_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda(this$0, $file, resultContinuation) { this.otp_1 = this$0; this.ptp_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; var tmp_0 = this.otp_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda_0(this.otp_1, this.ptp_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var tmp0_safe_receiver = this.ptp_1.rcc_1; tmp_1.rtp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tcc_1; if (this.rtp_1 == null) { this.stp_1 = null; this.hd_1 = 4; continue $sm; } else { var tmp_2 = this; tmp_2.ttp_1 = this.rtp_1; var tmp_3 = this; tmp_3.utp_1 = this.ttp_1; this.vtp_1 = _get_cancelTransferJobUseCase__o6e2y4(this.otp_1); if (this.vtp_1 == null) { this.wtp_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.vtp_1.c1j(this.utp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 2: var tmp_4 = this; tmp_4.wtp_1 = Unit_instance; this.hd_1 = 3; continue $sm; case 3: this.stp_1 = this.ttp_1; this.hd_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda(this.otp_1, this.ptp_1, completion); i.qtp_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation) { this.ftq_1 = this$0; this.gtq_1 = $submissionFile; this.htq_1 = $intent; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.jtq_1 = _get_openBlobUiUseCase__fzusqz(this.ftq_1); if (this.jtq_1 == null) { this.ktq_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.gtq_1); suspendResult = this.jtq_1.eop(tmp_0, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda$lambda(this.ftq_1), this.htq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.ktq_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda(this.ftq_1, this.gtq_1, this.htq_1, completion); i.itq_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation) { this.ttq_1 = this$0; this.utq_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.ttq_1.lqn().o7f().had(this.utq_1.zad_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ttq_1.nqn().rq6(new Snack(this.ttq_1.pqn().coj(strings_getInstance().hmj_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this.ttq_1, this.utq_1, completion); i.vtq_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.o1n($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).z58(); // 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.x58(tmp$ret$0, null); tmp = new SubmitAssignmentUseCase(tmp$ret$1); } else { tmp = submitAssignmentUseCase; } submitAssignmentUseCase = tmp; DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); this.wtc_1 = submitAssignmentUseCase; this.xtc_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.pqn().xq4())); this.ytc_1 = asStateFlow(this.xtc_1); this.ztc_1 = MutableStateFlow(new ClazzAssignmentDetailoverviewSubmissionUiState()); this.atd_1 = asStateFlow(this.ztc_1); this.btd_1 = MutableStateFlow(''); this.ctd_1 = asStateFlow(this.btd_1); this.dtd_1 = MutableStateFlow(''); this.etd_1 = asStateFlow(this.dtd_1); var tmp_2 = this; tmp_2.ftd_1 = ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this); var tmp_3 = this; tmp_3.gtd_1 = ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this); this.htd_1 = null; var tmp_4 = this; Companion_getInstance_125(); 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.itd_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.jtd_1 = Instance(this_0, tmp$ret$2, null).u5d(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.ktd_1 = InstanceOrNull(this_1, tmp$ret$4, null).u5d(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.ltd_1 = InstanceOrNull(this_2, tmp$ret$6, null).u5d(this, openBlobUiUseCase$factory()); this.mtd_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.ntd_1 = Instance(di, tmp$ret$8, null).u5d(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.otd_1 = Instance(di, tmp$ret$10, null).u5d(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.ptd_1 = Instance(di, tmp$ret$12, null).u5d(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.qtd_1 = Instance(di, tmp$ret$14, null).u5d(this, openExternalLinkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.xtc_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp_20 = this.hqn(); var tmp_21 = this.fqn().ko9().enu_1.ykq(); var tmp0_safe_receiver_0 = this.fqn().ko9().gnu_1; var nextValue = prevValue.ftf(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.a98_1, VOID, VOID, VOID, VOID, VOID, VOID, _get_showSocialWarningUseCase__ft8jc6(this).gp9(toString_0(_get_ustadAccountManager__el9prc(this).ko9().enu_1.a97_1))); if (this_3.s1l(prevValue, nextValue)) { break $l$block; } } } var entityFlow = shareIn(this.lqn().k7f().n7t(this.jqm_1, this.itd_1, this.fqn().zo9().rky_1), this.gqn(), Companion_getInstance_12().p1i()); var tmp_22 = this.gqn(); 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.xtc_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp0_privateComments = this.ftd_1; var tmp1_courseComments = this.gtd_1; var nextValue_0 = prevValue_0.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_courseComments, tmp0_privateComments); if (this_4.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzAssignmentDetailOverviewViewModel).wtq = function () { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).xtq = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xtc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickMarksFilterChip.' call var nextValue = prevValue.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.fq7_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).rtd = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.ztc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onChangeSubmissionText.' call var tmp0_safe_receiver = prevValue.eth_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_0(tmp0_safe_receiver, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda(text)); } var nextValue = prevValue.ftm(tmp); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var submissionToSave = tmp$ret$1.eth_1; var tmp0_safe_receiver_0 = this.htd_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_0 = this; var tmp_1 = this.gqn(); tmp_0.htd_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda_0(submissionToSave, this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ytq = function (text) { this.btd_1.r1l(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ztq = function () { var submitterUid = this.xtc_1.t2().ite_1; if (submitterUid.c7(new Long(0, 0)) <= 0) return Unit_instance; if (this.sqn().equals(Companion_getInstance_97().jq6_1)) return Unit_instance; this.rqn(Companion_getInstance_97().jq6_1); var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda_0(this, submitterUid, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).atr = function (text) { this.dtd_1.r1l(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).btr = function () { if (this.sqn().equals(Companion_getInstance_97().jq6_1)) return Unit_instance; this.rqn(Companion_getInstance_97().jq6_1); var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ctr = function (uri, fileName, mimeType, size) { var tmp0_safe_receiver = this.xtc_1.t2().ete_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7u_1; var assignmentSizeLimit = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; if (size.c7(toLong(imul(imul(assignmentSizeLimit, 1024), 1024))) > 0) { this.nqn().rq6(new Snack(this.pqn().coj(strings_getInstance().xmt_1))); return Unit_instance; } var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda_0(this, size, mimeType, fileName, uri, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).dtr = function () { if (!this.xtc_1.t2().pte_1) return Unit_instance; var tmp0_elvis_lhs = this.ztc_1.t2().eth_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.xtc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickSubmit.' call var nextValue = prevValue.ftf(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.rqn(Companion_getInstance_97().jq6_1); var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda_0(this, submission, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).etr = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xtc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.ftf(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.btf_1, submission.ec3_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).ftr = function () { Companion_getInstance_125(); var tmp0_safe_receiver = this.xtc_1.t2().hte_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u7z_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_125(); this.rqm_1.dp6('CourseGroupSet', mapOf([tmp, to('clazzUid', this.itd_1.toString())])); }; protoOf(ClazzAssignmentDetailOverviewViewModel).gtr = function (file) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda_0(this, file, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).htr = function (file) { openSubmissionFileAsBlob(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentDetailOverviewViewModel).itr = function (comments) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq($this) { return latestUniqueMarksByMarker($this.mte_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().fnl_1; var tmp_4 = new MessageIdOption2(tmp_3, 1); var tmp_5 = strings_getInstance().vmz_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.umd(), Companion_getInstance_9().tmh()) : 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.ete_1 = assignment; this.fte_1 = courseBlock; this.gte_1 = courseBlockPicture; this.hte_1 = courseGroupSet; this.ite_1 = submitterUid; this.jte_1 = editableSubmissionFiles; this.kte_1 = submissionTooLong; this.lte_1 = submissions; this.mte_1 = markList; this.nte_1 = courseComments; this.ote_1 = privateComments; this.pte_1 = fieldsEnabled; this.qte_1 = selectedChipId; this.rte_1 = gradeFilterChips; this.ste_1 = submissionHeaderUiState; this.tte_1 = unassignedError; this.ute_1 = submissionError; this.vte_1 = activeUserPersonUid; this.wte_1 = activeUserPersonName; this.xte_1 = activeUserPictureUri; this.yte_1 = courseTerminology; this.zte_1 = localDateTimeNow; this.atf_1 = dayOfWeekStringMap; this.btf_1 = collapsedSubmissions; this.ctf_1 = openingFileSubmissionState; this.dtf_1 = showModerateOptions; this.etf_1 = showSocialWarning; } protoOf(ClazzAssignmentDetailOverviewUiState).jtr = function () { var tmp0_safe_receiver = this.fte_1; return isDateSet(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7y_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).ktr = function () { return this.ltr(); }; protoOf(ClazzAssignmentDetailOverviewUiState).mtr = function () { // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = this.tte_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ClazzAssignmentDetailOverviewUiState).ntr = function () { var tmp0_safe_receiver = this.ete_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m7u_1) === true; }; protoOf(ClazzAssignmentDetailOverviewUiState).otr = function () { return this.ite_1.c7(new Long(0, 0)) > 0; }; protoOf(ClazzAssignmentDetailOverviewUiState).ptr = function () { var tmp; if (this.otr()) { var tmp0_safe_receiver = this.ete_1; tmp = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n7u_1) === true; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).qtr = function () { var timeNow = systemTimeInMillis(); var tmp0_safe_receiver = this.fte_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7y_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.fte_1; if (isDateSet(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.x7y_1)) { var tmp3_safe_receiver = this.fte_1; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.x7y_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).ltr = function () { if (!this.otr()) return false; if (!this.qtr()) return false; var tmp; var tmp0_safe_receiver = this.ete_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t7u_1; if (tmp_0 === 1) { // Inline function 'kotlin.collections.isNotEmpty' call tmp = !this.lte_1.c1(); } else { tmp = false; } if (tmp) { return false; } return true; }; protoOf(ClazzAssignmentDetailOverviewUiState).rtr = function () { var tmp; var tmp_0; if (this.ltr()) { var tmp0_safe_receiver = this.ete_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p7u_1) === true; } else { tmp_0 = false; } if (tmp_0) { tmp = this.jte_1.u() < this.ete_1.s7u_1; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).str = function () { return this.otr() ? submissionStatusFor(this.mte_1, this.lte_1) : null; }; protoOf(ClazzAssignmentDetailOverviewUiState).ttr = function () { return !(this.utr() == null); }; protoOf(ClazzAssignmentDetailOverviewUiState).vtr = 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.utr(); return !(it == null) ? !(it.vkc_1 === 0) : false; }; protoOf(ClazzAssignmentDetailOverviewUiState).wtr = function () { var tmp; var tmp0_safe_receiver = this.ete_1; if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7u_1) === true) { tmp = this.ltr(); } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).xtr = function () { var tmp; if (this.qte_1 === 1) { tmp = _get_latestUniqueMarksByMarker__e0a3pq(this); } else { tmp = this.mte_1; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).utr = function () { return averageMark(this.mte_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).ytr = function () { var tmp0_safe_receiver = this.ete_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k7u_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).ztr = 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).ftf = 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.ete_1 : assignment; courseBlock = courseBlock === VOID ? this.fte_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.gte_1 : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? this.hte_1 : courseGroupSet; submitterUid = submitterUid === VOID ? this.ite_1 : submitterUid; editableSubmissionFiles = editableSubmissionFiles === VOID ? this.jte_1 : editableSubmissionFiles; submissionTooLong = submissionTooLong === VOID ? this.kte_1 : submissionTooLong; submissions = submissions === VOID ? this.lte_1 : submissions; markList = markList === VOID ? this.mte_1 : markList; courseComments = courseComments === VOID ? this.nte_1 : courseComments; privateComments = privateComments === VOID ? this.ote_1 : privateComments; fieldsEnabled = fieldsEnabled === VOID ? this.pte_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.qte_1 : selectedChipId; gradeFilterChips = gradeFilterChips === VOID ? this.rte_1 : gradeFilterChips; submissionHeaderUiState = submissionHeaderUiState === VOID ? this.ste_1 : submissionHeaderUiState; unassignedError = unassignedError === VOID ? this.tte_1 : unassignedError; submissionError = submissionError === VOID ? this.ute_1 : submissionError; activeUserPersonUid = activeUserPersonUid === VOID ? this.vte_1 : activeUserPersonUid; activeUserPersonName = activeUserPersonName === VOID ? this.wte_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.xte_1 : activeUserPictureUri; courseTerminology = courseTerminology === VOID ? this.yte_1 : courseTerminology; localDateTimeNow = localDateTimeNow === VOID ? this.zte_1 : localDateTimeNow; dayOfWeekStringMap = dayOfWeekStringMap === VOID ? this.atf_1 : dayOfWeekStringMap; collapsedSubmissions = collapsedSubmissions === VOID ? this.btf_1 : collapsedSubmissions; openingFileSubmissionState = openingFileSubmissionState === VOID ? this.ctf_1 : openingFileSubmissionState; showModerateOptions = showModerateOptions === VOID ? this.dtf_1 : showModerateOptions; showSocialWarning = showSocialWarning === VOID ? this.etf_1 : showSocialWarning; return $super === VOID ? this.ztr(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.ztr.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.ete_1 + ', courseBlock=' + this.fte_1 + ', courseBlockPicture=' + this.gte_1 + ', courseGroupSet=' + this.hte_1 + ', submitterUid=' + this.ite_1.toString() + ', editableSubmissionFiles=' + this.jte_1 + ', submissionTooLong=' + this.kte_1 + ', submissions=' + this.lte_1 + ', markList=' + this.mte_1 + ', courseComments=' + this.nte_1 + ', privateComments=' + this.ote_1 + ', fieldsEnabled=' + this.pte_1 + ', selectedChipId=' + this.qte_1 + ', gradeFilterChips=' + this.rte_1 + ', submissionHeaderUiState=' + this.ste_1 + ', unassignedError=' + this.tte_1 + ', submissionError=' + this.ute_1 + ', activeUserPersonUid=' + this.vte_1.toString() + ', activeUserPersonName=' + this.wte_1 + ', activeUserPictureUri=' + this.xte_1 + ', courseTerminology=' + this.yte_1 + ', localDateTimeNow=' + this.zte_1 + ', dayOfWeekStringMap=' + this.atf_1 + ', collapsedSubmissions=' + this.btf_1 + ', openingFileSubmissionState=' + this.ctf_1 + ', showModerateOptions=' + this.dtf_1 + ', showSocialWarning=' + this.etf_1 + ')'; }; protoOf(ClazzAssignmentDetailOverviewUiState).hashCode = function () { var result = this.ete_1 == null ? 0 : this.ete_1.hashCode(); result = imul(result, 31) + (this.fte_1 == null ? 0 : this.fte_1.hashCode()) | 0; result = imul(result, 31) + (this.gte_1 == null ? 0 : this.gte_1.hashCode()) | 0; result = imul(result, 31) + (this.hte_1 == null ? 0 : hashCode(this.hte_1)) | 0; result = imul(result, 31) + this.ite_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.jte_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kte_1) | 0; result = imul(result, 31) + hashCode(this.lte_1) | 0; result = imul(result, 31) + hashCode(this.mte_1) | 0; result = imul(result, 31) + hashCode(this.nte_1) | 0; result = imul(result, 31) + hashCode(this.ote_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pte_1) | 0; result = imul(result, 31) + this.qte_1 | 0; result = imul(result, 31) + hashCode(this.rte_1) | 0; result = imul(result, 31) + this.ste_1.hashCode() | 0; result = imul(result, 31) + (this.tte_1 == null ? 0 : getStringHashCode(this.tte_1)) | 0; result = imul(result, 31) + (this.ute_1 == null ? 0 : getStringHashCode(this.ute_1)) | 0; result = imul(result, 31) + this.vte_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.wte_1) | 0; result = imul(result, 31) + (this.xte_1 == null ? 0 : getStringHashCode(this.xte_1)) | 0; result = imul(result, 31) + (this.yte_1 == null ? 0 : hashCode(this.yte_1)) | 0; result = imul(result, 31) + this.zte_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.atf_1) | 0; result = imul(result, 31) + hashCode(this.btf_1) | 0; result = imul(result, 31) + (this.ctf_1 == null ? 0 : this.ctf_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.dtf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.etf_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.ete_1, tmp0_other_with_cast.ete_1)) return false; if (!equals(this.fte_1, tmp0_other_with_cast.fte_1)) return false; if (!equals(this.gte_1, tmp0_other_with_cast.gte_1)) return false; if (!equals(this.hte_1, tmp0_other_with_cast.hte_1)) return false; if (!this.ite_1.equals(tmp0_other_with_cast.ite_1)) return false; if (!equals(this.jte_1, tmp0_other_with_cast.jte_1)) return false; if (!(this.kte_1 === tmp0_other_with_cast.kte_1)) return false; if (!equals(this.lte_1, tmp0_other_with_cast.lte_1)) return false; if (!equals(this.mte_1, tmp0_other_with_cast.mte_1)) return false; if (!equals(this.nte_1, tmp0_other_with_cast.nte_1)) return false; if (!equals(this.ote_1, tmp0_other_with_cast.ote_1)) return false; if (!(this.pte_1 === tmp0_other_with_cast.pte_1)) return false; if (!(this.qte_1 === tmp0_other_with_cast.qte_1)) return false; if (!equals(this.rte_1, tmp0_other_with_cast.rte_1)) return false; if (!this.ste_1.equals(tmp0_other_with_cast.ste_1)) return false; if (!(this.tte_1 == tmp0_other_with_cast.tte_1)) return false; if (!(this.ute_1 == tmp0_other_with_cast.ute_1)) return false; if (!this.vte_1.equals(tmp0_other_with_cast.vte_1)) return false; if (!(this.wte_1 === tmp0_other_with_cast.wte_1)) return false; if (!(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; if (!equals(this.btf_1, tmp0_other_with_cast.btf_1)) return false; if (!equals(this.ctf_1, tmp0_other_with_cast.ctf_1)) return false; if (!(this.dtf_1 === tmp0_other_with_cast.dtf_1)) return false; if (!(this.etf_1 === tmp0_other_with_cast.etf_1)) return false; return true; }; function ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission) { editableSubmission = editableSubmission === VOID ? null : editableSubmission; this.eth_1 = editableSubmission; } protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).ftm = function (editableSubmission) { return new ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission); }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).toString = function () { return 'ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission=' + this.eth_1 + ')'; }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).hashCode = function () { return this.eth_1 == null ? 0 : this.eth_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.eth_1, tmp0_other_with_cast.eth_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.its_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).bqf = function (noSubmissions, $completion) { var tmp = this.cqf(noSubmissions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; if (!this.jts_1 ? this.its_1.itt_1.t2().ott_1 : false) { l$ret$1: do { var this_0 = this.its_1.itt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wtt(VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).cqf = function (noSubmissions, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda(this.its_1, completion); i.jts_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.bqf(noSubmissions, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.ftu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.ftu_1.jqn().l7f(); var tmp0_safe_receiver = this.ftu_1.itt_1.t2().gtu(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h7u_1; var tmp_1 = tmp_0.oc2(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_0(this.ftu_1, null); suspendResult = tmp_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).f79 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda$slambda(this.ftu_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.d88($completion); }; l.$arity = 0; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.ptu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.qtu_1.nq9_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.ptu_1.itt_1.t2().gtu(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lk8_1; this.ptu_1.rtu(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dkm(VOID, VOID, VOID, VOID, VOID, descriptionHtml)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).hqa = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this.ptu_1, completion); i.qtu_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$lambda($groupSet) { return function ($this$shallowCopy) { $this$shallowCopy.k7u_1 = $groupSet.u7z_1; return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.atv_1 = $commitDelay; this.btv_1 = $entity; this.ctv_1 = $this; this.dtv_1 = $key; this.etv_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.atv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.btv_1 == null)) { this.hd_1 = 2; suspendResult = this.ctv_1.vqn(this.ctv_1.pqm_1, this.dtv_1, this.etv_1, this.btv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1(this.atv_1, this.btv_1, this.ctv_1, this.dtv_1, this.etv_1, completion); i.ftv_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.otv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.ptv_1.nq9_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.otv_1.itt_1; while (true) { var prevValue = this_0.t2(); var tmp3_safe_receiver = prevValue.gtu(); var tmp_2; if (tmp3_safe_receiver == null) { tmp_2 = null; } else { var tmp0_safe_receiver = prevValue.gtu(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_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.u7z_1.equals(new Long(0, 0))) { tmp_5 = groupSet; } else { tmp_5 = null; } var tmp2_safe_receiver = tmp_5; tmp_2 = tmp3_safe_receiver.xk8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_4, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.v7z_1); } var nextValue = prevValue.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.ttt_1.btw(tmp_2), VOID, null); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var newState = tmp$ret$0; var this_1 = this.otv_1; var entity = newState.gtu(); var serializer = Companion_getInstance_13().h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_6 = this_1; var tmp_7 = this_1.gqn(); tmp_6.wqs_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.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).hqa = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this.otv_1, completion); i.ptv_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.ktw_1 = $commitDelay; this.ltw_1 = $entity; this.mtw_1 = $this; this.ntw_1 = $key; this.otw_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.ktw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.ltw_1 == null)) { this.hd_1 = 2; suspendResult = this.mtw_1.vqn(this.mtw_1.pqm_1, this.ntw_1, this.otw_1, this.ltw_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3(this.ktw_1, this.ltw_1, this.mtw_1, this.ntw_1, this.otw_1, completion); i.ptw_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.ytw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.ztw_1.nq9_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.ytw_1.itt_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.ttt_1.qtv_1; var nextValue = prevValue.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.ttt_1.btw(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xk8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, allocations))); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var newState = tmp$ret$0; var this_1 = this.ytw_1; var entity = newState.gtu(); var serializer = Companion_getInstance_13().h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_2 = this_1; var tmp_3 = this_1.gqn(); tmp_2.wqs_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.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).hqa = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this.ytw_1, completion); i.ztw_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.gqa(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda).jtx = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.jtx(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).ony = function (it, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(completion); i.itx_1 = it; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.jtx(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.stx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).ttx = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.ttx($completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.stx_1.jqn()); var assignmentUid = tmp_0.h63(520); var this_0 = new CourseBlock(); var tmp_1 = this_0; var tmp_2 = get_doorPrimaryKeyManager(this.stx_1.jqn()); tmp_1.n7y_1 = tmp_2.h63(124); var tmp_3 = this_0; tmp_3.o7y_1 = 103; this_0.f7z_1 = assignmentUid; var tmp_4 = this_0; tmp_4.t7y_1 = 102; this_0.y7y_1 = 10.0; this_0.z7y_1 = 0.0; var this_1 = new ClazzAssignment(); this_1.h7u_1 = assignmentUid; this_1.z7u_1 = this.stx_1.ltt_1; return new CourseBlockAndEditEntities(this_0, VOID, VOID, VOID, VOID, VOID, VOID, this_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).f79 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda_1(this.stx_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.ttx($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.itt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel...' call var tmp = prevValue.ttt_1.btw(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.sk8_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k7u_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.wtt(VOID, VOID, VOID, VOID, $courseTerminology, VOID, VOID, tmp, tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.cty_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).cr0 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.cr0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.cty_1.g4s(); var value = this.cty_1.itt_1.t2(); var this_1 = this_0.n46(); var this_2 = serializer(this_1, createKType(getKClass(ClazzAssignmentEditUiState), arrayOf([]), false)); return this_0.l46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), value); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).p1n = function ($this$withContext, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_3(this.cty_1, completion); i.dty_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.cr0($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.mty_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.mty_1.itt_1, ClazzAssignmentEditViewModel$slambda$slambda$slambda_0(this.mty_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_5(this.mty_1, completion); i.nty_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.wty_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.wty_1.mqn(); Companion_getInstance_173(); var tmp_1 = this.wty_1.tqn(tmp_0, 'courseBlockDesc'); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_2(this.wty_1, null); suspendResult = tmp_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_7(this.wty_1, completion); i.xty_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_9(this$0, resultContinuation) { this.gtz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.gtz_1.tqn(this.gtz_1.mqn(), 'groupSet'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_4(this.gtz_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_9(this.gtz_1, completion); i.htz_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_11(this$0, resultContinuation) { this.qtz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.qtz_1.tqn(this.qtz_1.mqn(), 'peerAllocationsResult'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_6(this.qtz_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_11(this.qtz_1, completion); i.rtz_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$slambda(this$0, $initStateJson, resultContinuation) { this.au0_1 = this$0; this.bu0_1 = $initStateJson; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).du0 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.du0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return this.au0_1.g4s().m46(Companion_getInstance_150().h4s(), this.bu0_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).p1n = function ($this$withContext, completion) { var i = new ClazzAssignmentEditViewModel$onClickSave$slambda$slambda(this.au0_1, this.bu0_1, completion); i.cu0_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.du0($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$lambda($this$shallowCopy) { $this$shallowCopy.k7u_1 = new Long(0, 0); return Unit_instance; } function _get_snackDisaptcher__bp310a($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ktt_1; snackDisaptcher$factory_0(); return this_0.t2(); } function hasErrors_0(_this__u8e3s4, $this) { return ((((((!(_this__u8e3s4.rtt_1 == null) ? true : !(_this__u8e3s4.ttt_1.xtv_1 == null)) ? true : !(_this__u8e3s4.ttt_1.wtv_1 == null)) ? true : !(_this__u8e3s4.ttt_1.ztv_1 == null)) ? true : !(_this__u8e3s4.ptt_1 == null)) ? true : !(_this__u8e3s4.stt_1 == null)) ? true : !(_this__u8e3s4.vtt_1 == null)) ? true : _this__u8e3s4.ttt_1.fu0(); } function checkNoSubmissionsMade($this, $completion) { var tmp = $this.jqn().l7f(); var tmp0_safe_receiver = $this.itt_1.t2().gtu(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h7u_1; return tmp.nc2(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, $completion); } function Companion_132() { this.gu0_1 = 'groupSet'; this.hu0_1 = 'peerAllocationsResult'; this.iu0_1 = 'terminology'; this.ju0_1 = 'CourseAssignmentEdit'; this.ku0_1 = 5; this.lu0_1 = 100; this.mu0_1 = 'groupSubmissionOn'; } var Companion_instance_181; function Companion_getInstance_149() { return Companion_instance_181; } function sam$kotlinx_coroutines_flow_FlowCollector$0_17(function_0) { this.nu0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_17).n1e = function (value, $completion) { return this.nu0_1(value, $completion); }; function ClazzAssignmentEditViewModel$_init_$lambda_wdhfey(db, systemImpl) { return new UpdatePeerReviewAllocationUseCase(db, systemImpl); } function ClazzAssignmentEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.wu0_1 = this$0; this.xu0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; suspendResult = this.wu0_1.uqn(this.xu0_1, 'terminology', Companion_instance_34.h4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zu0_1 = suspendResult; this.hd_1 = 2; var tmp_0 = Companion_getInstance_13().h4s(); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda_2(this.wu0_1, null); suspendResult = this.wu0_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzAssignmentEditViewModel$slambda$lambda(this.xu0_1, this.wu0_1, this.zu0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Companion_getInstance_125(); if (this.xu0_1.ba('initState') == null) { var tmp_3 = this; Companion_getInstance_125(); tmp_3.au1_1 = 'initState'; this.hd_1 = 3; var tmp_4 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_4, ClazzAssignmentEditViewModel$slambda$slambda_4(this.wu0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; continue $sm; } case 3: var ARGUMENT = suspendResult; this.xu0_1.tqi(this.au1_1, ARGUMENT); this.hd_1 = 4; continue $sm; case 4: l$ret$1: do { var this_0 = this.wu0_1.itt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bu1(true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.wu0_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_5 = Companion_getInstance_97().kq6_1; var tmp_6 = this.wu0_1.pqn().coj(strings_getInstance().pmr_1); var nextValue_0 = prevValue_0.cq6(VOID, tmp_5, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_6, VOID, ClazzAssignmentEditViewModel$onClickSave$ref(this.wu0_1))); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.yu0_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_6(this.wu0_1, null)); launch(this.yu0_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_8(this.wu0_1, null)); launch(this.yu0_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_10(this.wu0_1, null)); launch(this.yu0_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_12(this.wu0_1, null)); return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda(this.wu0_1, this.xu0_1, completion); i.yu0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onAssignmentChanged$slambda($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$onAssignmentChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_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.hd_1 = 2; suspendResult = this.mu1_1.vqn(this.mu1_1.pqm_1, this.nu1_1, this.ou1_1, this.lu1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onAssignmentChanged$slambda(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$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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.yu1_1 = $commitDelay; this.zu1_1 = $entity; this.au2_1 = $this; this.bu2_1 = $key; this.cu2_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.yu1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.zu1_1 == null)) { this.hd_1 = 2; suspendResult = this.au2_1.vqn(this.au2_1.pqm_1, this.bu2_1, this.cu2_1, this.zu1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda(this.yu1_1, this.zu1_1, this.au2_1, this.bu2_1, this.cu2_1, completion); i.du2_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.mu2_1 = $commitDelay; this.nu2_1 = $entity; this.ou2_1 = $this; this.pu2_1 = $key; this.qu2_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.mu2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.nu2_1 == null)) { this.hd_1 = 2; suspendResult = this.ou2_1.vqn(this.ou2_1.pqm_1, this.pu2_1, this.qu2_1, this.nu2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onPictureChanged$slambda(this.mu2_1, this.nu2_1, this.ou2_1, this.pu2_1, this.qu2_1, completion); i.ru2_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.o1n($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.itt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onClickSave..' call var nextValue = prevValue.bu1(true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.au3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 11; var tmp_0 = this; Companion_getInstance_125(); tmp_0.bu3_1 = this.au3_1.pqm_1.ba('initState'); if (this.bu3_1 == null) { this.cu3_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_1 = this; tmp_1.du3_1 = this.bu3_1; var tmp_2 = this; tmp_2.eu3_1 = this.du3_1; this.hd_1 = 1; var tmp_3 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_3, ClazzAssignmentEditViewModel$onClickSave$slambda$slambda_0(this.au3_1, this.eu3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.cu3_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.fu3_1 = this.cu3_1; var tmp_4 = this; var tmp_5; if (this.fu3_1 == null) { return Unit_instance; } else { tmp_5 = this.fu3_1; } tmp_4.gu3_1 = tmp_5; var tmp_6 = this; var tmp2_safe_receiver = this.au3_1.itt_1.t2().gtu(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.sk8_1; var tmp_7; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_7 = tmp3_elvis_lhs; } tmp_6.hu3_1 = tmp_7; var tmp_8 = this; var tmp4_safe_receiver = this.au3_1.itt_1.t2().gtu(); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.lk8_1; var tmp_9; if (tmp5_elvis_lhs == null) { return Unit_instance; } else { tmp_9 = tmp5_elvis_lhs; } tmp_8.iu3_1 = tmp_9; if (!this.hu3_1.p7u_1 ? !this.hu3_1.v7u_1 : false) { l$ret$1: do { var this_0 = this.au3_1.itt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wtt(VOID, VOID, VOID, VOID, VOID, this.au3_1.pqn().coj(strings_getInstance().wnj_1)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var it = this.iu3_1.y7y_1; if (it == null ? true : it <= 0.0) { l$ret$3: do { var this_1 = this.au3_1.itt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.ttt_1.btw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.au3_1.pqn().coj(strings_getInstance().rmn_1))); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.iu3_1.v7y_1.c7(this.iu3_1.u7y_1) <= 0) { l$ret$5: do { var this_2 = this.au3_1.itt_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.ttt_1.btw(VOID, VOID, VOID, VOID, VOID, VOID, this.au3_1.pqn().coj(strings_getInstance().on9_1))); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); } if (this.iu3_1.x7y_1.c7(this.iu3_1.v7y_1) < 0) { l$ret$7: do { var this_3 = this.au3_1.itt_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_2.ttt_1.btw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.au3_1.pqn().coj(strings_getInstance().cn6_1))); if (this_3.s1l(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); } var containsArg = this.hu3_1.r7u_1; if (!(5 <= containsArg ? containsArg <= 100 : false)) { l$ret$9: do { var this_4 = this.au3_1.itt_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.wtt(VOID, VOID, VOID, VOID, VOID, VOID, this.au3_1.pqn().doj(strings_getInstance().eng_1, ['5', '100'])); if (this_4.s1l(prevValue_3, nextValue_3)) { break l$ret$9; } } } while (false); } var this_5 = this.iu3_1.r7y_1; if (this_5 == null ? true : isBlank(this_5)) { l$ret$11: do { var this_6 = this.au3_1.itt_1; while (true) { var prevValue_4 = this_6.t2(); var nextValue_4 = prevValue_4.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_4.ttt_1.btw(VOID, VOID, VOID, VOID, VOID, this.au3_1.pqn().coj(strings_getInstance().vnl_1))); if (this_6.s1l(prevValue_4, nextValue_4)) { break l$ret$11; } } } while (false); } if (this.au3_1.itt_1.t2().utt_1 ? this.hu3_1.k7u_1.equals(new Long(0, 0)) : false) { l$ret$13: do { var this_7 = this.au3_1.itt_1; while (true) { var prevValue_5 = this_7.t2(); var nextValue_5 = prevValue_5.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.au3_1.pqn().coj(strings_getInstance().rmn_1)); if (this_7.s1l(prevValue_5, nextValue_5)) { break l$ret$13; } } } while (false); } this.ju3_1 = null; var tmp6_safe_receiver = this.gu3_1.gtu(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.sk8_1; if (!equals(tmp7_safe_receiver == null ? null : tmp7_safe_receiver.k7u_1, this.hu3_1.k7u_1)) { this.hd_1 = 3; suspendResult = checkNoSubmissionsMade(this.au3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ku3_1 = false; this.hd_1 = 4; continue $sm; } case 3: this.lu3_1 = suspendResult; this.ku3_1 = !this.lu3_1; this.hd_1 = 4; continue $sm; case 4: if (this.ku3_1) { this.ju3_1 = this.au3_1.pqn().coj(strings_getInstance().mmi_1) + 'Cannot change groups after submissions made'; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 5; continue $sm; } case 5: var tmp_10; var tmp8_safe_receiver = this.gu3_1.gtu(); var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.sk8_1; if (!((tmp9_safe_receiver == null ? null : tmp9_safe_receiver.u7u_1) === this.hu3_1.u7u_1)) { tmp_10 = this.ju3_1 == null; } else { tmp_10 = false; } if (tmp_10) { this.hd_1 = 6; suspendResult = checkNoSubmissionsMade(this.au3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.mu3_1 = false; this.hd_1 = 7; continue $sm; } case 6: this.nu3_1 = suspendResult; this.mu3_1 = !this.nu3_1; this.hd_1 = 7; continue $sm; case 7: if (this.mu3_1) { this.ju3_1 = this.au3_1.pqn().coj(strings_getInstance().mmi_1) + 'Cannot change marking type after submissions made'; this.hd_1 = 8; continue $sm; } else { this.hd_1 = 8; continue $sm; } case 8: var tmp_11; var tmp_12 = this.hu3_1.u7u_1; if (tmp_12 === 2) { tmp_11 = this.hu3_1.a7v_1 < 1; } else { tmp_11 = false; } if (tmp_11) { l$ret$15: do { var this_8 = this.au3_1.itt_1; while (true) { var prevValue_6 = this_8.t2(); var nextValue_6 = prevValue_6.wtt(VOID, VOID, VOID, this.au3_1.pqn().coj(strings_getInstance().wng_1)); if (this_8.s1l(prevValue_6, nextValue_6)) { break l$ret$15; } } } while (false); } this.ou3_1 = this.ju3_1; if (hasErrors_0(this.au3_1.itt_1.t2(), this.au3_1) ? true : !(this.ou3_1 == null)) { var tmp10_safe_receiver = this.ou3_1; if (tmp10_safe_receiver == null) null; else { _get_snackDisaptcher__bp310a(this.au3_1).rq6(new Snack(tmp10_safe_receiver)); } return Unit_instance; } var tmp_13; var tmp_14 = this.hu3_1.u7u_1; if (tmp_14 === 2) { var tmp11_safe_receiver = this.gu3_1.gtu(); var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.sk8_1; tmp_13 = !((tmp12_safe_receiver == null ? null : tmp12_safe_receiver.a7v_1) === this.hu3_1.a7v_1); } else { tmp_13 = false; } if (tmp_13) { this.hd_1 = 9; var tmp_15 = this.au3_1.htt_1(this.au3_1.jqn(), this.au3_1.pqn()); var tmp13_safe_receiver = this.au3_1.itt_1.t2().gtu(); var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.uk8_1; suspendResult = tmp_15.zpj(tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs, this.hu3_1.k7u_1, this.hu3_1.z7u_1, this.hu3_1.h7u_1, this.hu3_1.a7v_1, true, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; continue $sm; } case 9: var newAllocations = suspendResult; l$ret$17: do { var this_9 = this.au3_1.itt_1; while (true) { var prevValue_7 = this_9.t2(); var tmp0_safe_receiver = prevValue_7.ttt_1.qtv_1; var nextValue_7 = prevValue_7.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_7.ttt_1.btw(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xk8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newAllocations))); if (this_9.s1l(prevValue_7, nextValue_7)) { break l$ret$17; } } } while (false); this.hd_1 = 10; continue $sm; case 10: var this_10 = this.au3_1.itt_1; var tmp_16; var tmp_17; var tmp0_safe_receiver_0 = this_10.t2().gtu(); var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.sk8_1; if (!equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k7u_1, new Long(0, 0))) { tmp_17 = !this_10.t2().utt_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.ttt_1.qtv_1; var tmp_18; if (tmp1_safe_receiver_0 == null) { tmp_18 = null; } else { var tmp0_safe_receiver_1 = prevValue_8.ttt_1.qtv_1.sk8_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.xk8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_19, null); } var nextValue_8 = prevValue_8.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_8.ttt_1.btw(tmp_18)); if (tmp15_safe_receiver.s1l(prevValue_8, nextValue_8)) { break l$ret$19; } } } while (false); } this.au3_1.aqt(this.au3_1.itt_1.t2().gtu()); return Unit_instance; case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).f79 = function (completion) { return new ClazzAssignmentEditViewModel$onClickSave$slambda(this.au3_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.d88($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.htt_1 = peerReviewAllocationUseCaseFactory; var tmp_0 = this; var tmp0_completionCriteriaOptions = Companion_getInstance_150().eu0_1; var tmp1_timeZone = Companion_getInstance_9().tmh().umg(); tmp_0.itt_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.jtt_1 = asStateFlow(this.itt_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.ktt_1 = Instance(this, tmp$ret$0, null).u5d(this, snackDisaptcher$factory()); var tmp_3 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.ltt_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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.' call var tmp0_loadingState = Companion_getInstance_97().jq6_1; var tmp1_title = this.zqt(strings_getInstance().un5_1, strings_getInstance().vn5_1); var nextValue = prevValue.cq6(VOID, tmp0_loadingState, tmp1_title, VOID, true, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_4 = this.gqn(); launch(tmp_4, VOID, VOID, ClazzAssignmentEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ClazzAssignmentEditViewModel).pu3 = function (groupSubmissionOn) { this.pqm_1.tqi('groupSubmissionOn', groupSubmissionOn.toString()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.itt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onGroupSubmissionOnChanged.' call var tmp; if (!(prevValue.vtt_1 == null) ? groupSubmissionOn : false) { tmp = prevValue.vtt_1; } else { tmp = null; } var nextValue = prevValue.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, groupSubmissionOn, tmp); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentEditViewModel).qu3 = function (assignment) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.itt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onAssignmentChanged.' call var tmp8_safe_receiver = prevValue.ttt_1.qtv_1; var tmp9_courseBlockEditUiState = prevValue.ttt_1.btw(tmp8_safe_receiver == null ? null : tmp8_safe_receiver.xk8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, assignment)); var tmp; var tmp_0; if (!(prevValue.stt_1 == null)) { var tmp_1 = assignment == null ? null : assignment.r7u_1; var tmp6_safe_receiver = prevValue.gtu(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.sk8_1; tmp_0 = tmp_1 == (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.r7u_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.stt_1; } else { tmp = null; } var tmp10_sizeLimitError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.rtt_1 == null)) { tmp_4 = (assignment == null ? null : assignment.p7u_1) === false; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = !assignment.v7u_1; } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.rtt_1; } else { tmp_2 = null; } var tmp11_submissionRequiredError = tmp_2; var tmp_5; var tmp_6; var tmp_7; if (!(prevValue.ptt_1 == null)) { var tmp_8 = assignment == null ? null : assignment.a7v_1; var tmp1_safe_receiver = prevValue.gtu(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.sk8_1; tmp_7 = tmp_8 == (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a7v_1); } else { tmp_7 = false; } if (tmp_7) { var tmp_9 = assignment == null ? null : assignment.u7u_1; tmp_6 = tmp_9 === 2; } else { tmp_6 = false; } if (tmp_6) { tmp_5 = prevValue.ptt_1; } else { tmp_5 = null; } var tmp12_reviewerCountError = tmp_5; var nextValue = prevValue.wtt(VOID, VOID, VOID, tmp12_reviewerCountError, VOID, tmp11_submissionRequiredError, tmp10_sizeLimitError, tmp9_courseBlockEditUiState); if (this_0.s1l(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.gtu(); var serializer = Companion_getInstance_13().h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp_10 = this; var tmp_11 = this.gqn(); tmp_10.wqs_1 = launch(tmp_11, VOID, VOID, ClazzAssignmentEditViewModel$onAssignmentChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).rtu = function (courseBlock) { if (courseBlock == null) { Napier_getInstance().g5f('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.itt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onCourseBlockChanged.' call var tmp0_safe_receiver = prevValue.gtu(); var prevBlock = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lk8_1; var tmp8_$this = prevValue.ttt_1; var tmp1_safe_receiver = prevValue.gtu(); var tmp9_block = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xk8(courseBlock); var tmp5_safe_receiver = prevValue.ttt_1.qtv_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.lk8_1; var tmp10_caMaxPointsError = this.aqu(tmp6_safe_receiver == null ? null : tmp6_safe_receiver.y7y_1, courseBlock.y7y_1, prevValue.ttt_1.xtv_1); var tmp; var tmp_0; var tmp_1; if (!(prevValue.ttt_1.wtv_1 == null)) { tmp_1 = equals(prevBlock == null ? null : prevBlock.v7y_1, courseBlock.v7y_1); } else { tmp_1 = false; } if (tmp_1) { tmp_0 = prevBlock.u7y_1.equals(courseBlock.u7y_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.ttt_1.wtv_1; } else { tmp = null; } var tmp11_caDeadlineError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.ttt_1.ztv_1 == null)) { tmp_4 = equals(prevBlock == null ? null : prevBlock.v7y_1, courseBlock.v7y_1); } else { tmp_4 = false; } if (tmp_4) { tmp_3 = prevBlock.x7y_1.equals(courseBlock.x7y_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.ttt_1.ztv_1; } else { tmp_2 = null; } var tmp12_caGracePeriodError = tmp_2; var tmp2_safe_receiver = prevValue.ttt_1.qtv_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lk8_1; var tmp13_caTitleError = this.aqu(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.r7y_1, courseBlock.r7y_1, prevValue.ttt_1.vtv_1); var nextValue = prevValue.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp8_$this.btw(tmp9_block, VOID, VOID, VOID, VOID, tmp13_caTitleError, tmp11_caDeadlineError, tmp10_caMaxPointsError, VOID, tmp12_caGracePeriodError)); if (this_0.s1l(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.gtu(); var serializer = Companion_getInstance_13().h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_5 = this; var tmp_6 = this.gqn(); tmp_5.wqs_1 = launch(tmp_6, VOID, VOID, ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).ru3 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.itt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.ttt_1.qtv_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.ttt_1.qtv_1.mk8_1; tmp = tmp1_safe_receiver.xk8(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hkm(VOID, VOID, pictureUri)); } var nextValue = prevValue.wtt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.ttt_1.btw(tmp)); if (this_0.s1l(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.gtu(); var serializer = Companion_getInstance_13().h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_0 = this; var tmp_1 = this.gqn(); tmp_0.wqs_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentEditViewModel$onPictureChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).su3 = function () { var tmp = serializer_0(StringCompanionObject_instance); Companion_getInstance_125(); var tmp0_safe_receiver = this.itt_1.t2().gtu(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z7u_1; this.xqn('CourseGroups', 'groupSet', null, tmp, mapOf_0(to('clazzUid', (tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs).toString()))); }; protoOf(ClazzAssignmentEditViewModel).tu3 = function () { var tmp0_safe_receiver = this.itt_1.t2().gtu(); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_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.h4s()); var tmp_1 = this.g4s(); var tmp_2 = ListSerializer(Companion_instance_18.h4s()); var tmp2_safe_receiver = this.itt_1.t2().gtu(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.uk8_1; var tmp_3 = to('allocations', tmp_1.l46(tmp_2, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs)); var tmp_4 = to('groupSetUid', assignmentVal.k7u_1.toString()); Companion_getInstance_125(); var tmp_5 = to('clazzUid', assignmentVal.z7u_1.toString()); var tmp_6 = to('numReviewers', assignmentVal.a7v_1.toString()); Companion_getInstance_116(); this.xqn('PeerReviewerAllocationEdit', 'peerAllocationsResult', null, tmp_0, mapOf([tmp_3, tmp_4, tmp_5, tmp_6, to('clazzAssignmentUid', assignmentVal.h7u_1.toString())])); }; protoOf(ClazzAssignmentEditViewModel).os5 = function () { if (!this.itt_1.t2().mtt_1) return Unit_instance; var tmp = ClazzAssignmentEditViewModel$onClickSave$lambda(this); this.cqu(tmp, ClazzAssignmentEditViewModel$onClickSave$slambda_0(this, null)); }; function Companion_133() { Companion_instance_182 = this; this.eu0_1 = listOf([CompletionCriteria_ASSIGNMENT_SUBMITTED_getInstance(), CompletionCriteria_ASSIGNMENT_GRADED_getInstance()]); } protoOf(Companion_133).h4s = function () { return $serializer_getInstance_72(); }; var Companion_instance_182; function Companion_getInstance_150() { if (Companion_instance_182 == null) new Companion_133(); return Companion_instance_182; } function $serializer_60() { $serializer_instance_60 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditUiState', this, 10); tmp0_serialDesc.n4g('fieldsEnabled', true); tmp0_serialDesc.n4g('markingTypeEnabled', true); tmp0_serialDesc.n4g('groupSetEnabled', true); tmp0_serialDesc.n4g('reviewerCountError', true); tmp0_serialDesc.n4g('courseTerminology', true); tmp0_serialDesc.n4g('submissionRequiredError', true); tmp0_serialDesc.n4g('sizeLimitError', true); tmp0_serialDesc.n4g('courseBlockEditUiState', true); tmp0_serialDesc.n4g('groupSubmissionOn', true); tmp0_serialDesc.n4g('groupSetError', true); this.uu3_1 = tmp0_serialDesc; } protoOf($serializer_60).k45 = function () { return this.uu3_1; }; protoOf($serializer_60).e4h = 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_74(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_60).m45 = function (decoder) { var tmp0_desc = this.uu3_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.c49(tmp0_desc); if (tmp14_input.r49()) { tmp4_local0 = tmp14_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.e49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.e49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.q49(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.q49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.o49(tmp0_desc, 7, $serializer_getInstance_74(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.e49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.q49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.e49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.e49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.q49(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.q49(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.q49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.o49(tmp0_desc, 7, $serializer_getInstance_74(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.e49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.q49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.d49(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_60).vu3 = function (encoder, value) { var tmp0_desc = this.uu3_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.mtt_1 === false)) { tmp1_output.i4a(tmp0_desc, 0, value.mtt_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.ntt_1 === true)) { tmp1_output.i4a(tmp0_desc, 1, value.ntt_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.ott_1 === true)) { tmp1_output.i4a(tmp0_desc, 2, value.ott_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.ptt_1 == null)) { tmp1_output.u4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ptt_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.qtt_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, $serializer_getInstance_10(), value.qtt_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.rtt_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, StringSerializer_getInstance(), value.rtt_1); } if (tmp1_output.y4a(tmp0_desc, 6) ? true : !(value.stt_1 == null)) { tmp1_output.u4a(tmp0_desc, 6, StringSerializer_getInstance(), value.stt_1); } if (tmp1_output.y4a(tmp0_desc, 7) ? true : !value.ttt_1.equals(new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_150().eu0_1))) { tmp1_output.s4a(tmp0_desc, 7, $serializer_getInstance_74(), value.ttt_1); } if (tmp1_output.y4a(tmp0_desc, 8) ? true : !(value.utt_1 === false)) { tmp1_output.i4a(tmp0_desc, 8, value.utt_1); } if (tmp1_output.y4a(tmp0_desc, 9) ? true : !(value.vtt_1 == null)) { tmp1_output.u4a(tmp0_desc, 9, StringSerializer_getInstance(), value.vtt_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_60).l45 = function (encoder, value) { return this.vu3(encoder, value instanceof ClazzAssignmentEditUiState ? value : THROW_CCE()); }; var $serializer_instance_60; function $serializer_getInstance_72() { if ($serializer_instance_60 == null) new $serializer_60(); return $serializer_instance_60; } 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_72().uu3_1); } if (0 === (seen1 & 1)) $this.mtt_1 = false; else $this.mtt_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.ntt_1 = true; else $this.ntt_1 = markingTypeEnabled; if (0 === (seen1 & 4)) $this.ott_1 = true; else $this.ott_1 = groupSetEnabled; if (0 === (seen1 & 8)) $this.ptt_1 = null; else $this.ptt_1 = reviewerCountError; if (0 === (seen1 & 16)) $this.qtt_1 = null; else $this.qtt_1 = courseTerminology; if (0 === (seen1 & 32)) $this.rtt_1 = null; else $this.rtt_1 = submissionRequiredError; if (0 === (seen1 & 64)) $this.stt_1 = null; else $this.stt_1 = sizeLimitError; if (0 === (seen1 & 128)) $this.ttt_1 = new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_150().eu0_1); else $this.ttt_1 = courseBlockEditUiState; if (0 === (seen1 & 256)) $this.utt_1 = false; else $this.utt_1 = groupSubmissionOn; if (0 === (seen1 & 512)) $this.vtt_1 = null; else $this.vtt_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_150(); 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_150().eu0_1) : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? false : groupSubmissionOn; groupSetError = groupSetError === VOID ? null : groupSetError; this.mtt_1 = fieldsEnabled; this.ntt_1 = markingTypeEnabled; this.ott_1 = groupSetEnabled; this.ptt_1 = reviewerCountError; this.qtt_1 = courseTerminology; this.rtt_1 = submissionRequiredError; this.stt_1 = sizeLimitError; this.ttt_1 = courseBlockEditUiState; this.utt_1 = groupSubmissionOn; this.vtt_1 = groupSetError; } protoOf(ClazzAssignmentEditUiState).gtu = function () { return this.ttt_1.qtv_1; }; protoOf(ClazzAssignmentEditUiState).wu3 = function () { var tmp0_safe_receiver = this.gtu(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u7u_1; return tmp === 2; }; protoOf(ClazzAssignmentEditUiState).xu3 = function () { var tmp0_safe_receiver = this.gtu(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v7u_1) === true; }; protoOf(ClazzAssignmentEditUiState).yu3 = function () { var tmp0_safe_receiver = this.gtu(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sk8_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p7u_1) === true; }; protoOf(ClazzAssignmentEditUiState).bu1 = function (fieldsEnabled) { return this.wtt(fieldsEnabled, VOID, VOID, VOID, VOID, VOID, VOID, this.ttt_1.btw(VOID, VOID, VOID, fieldsEnabled)); }; protoOf(ClazzAssignmentEditUiState).zu3 = 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).wtt = function (fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.mtt_1 : fieldsEnabled; markingTypeEnabled = markingTypeEnabled === VOID ? this.ntt_1 : markingTypeEnabled; groupSetEnabled = groupSetEnabled === VOID ? this.ott_1 : groupSetEnabled; reviewerCountError = reviewerCountError === VOID ? this.ptt_1 : reviewerCountError; courseTerminology = courseTerminology === VOID ? this.qtt_1 : courseTerminology; submissionRequiredError = submissionRequiredError === VOID ? this.rtt_1 : submissionRequiredError; sizeLimitError = sizeLimitError === VOID ? this.stt_1 : sizeLimitError; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.ttt_1 : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? this.utt_1 : groupSubmissionOn; groupSetError = groupSetError === VOID ? this.vtt_1 : groupSetError; return $super === VOID ? this.zu3(fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError) : $super.zu3.call(this, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError); }; protoOf(ClazzAssignmentEditUiState).toString = function () { return 'ClazzAssignmentEditUiState(fieldsEnabled=' + this.mtt_1 + ', markingTypeEnabled=' + this.ntt_1 + ', groupSetEnabled=' + this.ott_1 + ', reviewerCountError=' + this.ptt_1 + ', courseTerminology=' + this.qtt_1 + ', submissionRequiredError=' + this.rtt_1 + ', sizeLimitError=' + this.stt_1 + ', courseBlockEditUiState=' + this.ttt_1 + ', groupSubmissionOn=' + this.utt_1 + ', groupSetError=' + this.vtt_1 + ')'; }; protoOf(ClazzAssignmentEditUiState).hashCode = function () { var result = getBooleanHashCode(this.mtt_1); result = imul(result, 31) + getBooleanHashCode(this.ntt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ott_1) | 0; result = imul(result, 31) + (this.ptt_1 == null ? 0 : getStringHashCode(this.ptt_1)) | 0; result = imul(result, 31) + (this.qtt_1 == null ? 0 : hashCode(this.qtt_1)) | 0; result = imul(result, 31) + (this.rtt_1 == null ? 0 : getStringHashCode(this.rtt_1)) | 0; result = imul(result, 31) + (this.stt_1 == null ? 0 : getStringHashCode(this.stt_1)) | 0; result = imul(result, 31) + this.ttt_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.utt_1) | 0; result = imul(result, 31) + (this.vtt_1 == null ? 0 : getStringHashCode(this.vtt_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.mtt_1 === tmp0_other_with_cast.mtt_1)) return false; if (!(this.ntt_1 === tmp0_other_with_cast.ntt_1)) return false; if (!(this.ott_1 === tmp0_other_with_cast.ott_1)) return false; if (!(this.ptt_1 == tmp0_other_with_cast.ptt_1)) return false; if (!equals(this.qtt_1, tmp0_other_with_cast.qtt_1)) return false; if (!(this.rtt_1 == tmp0_other_with_cast.rtt_1)) return false; if (!(this.stt_1 == tmp0_other_with_cast.stt_1)) return false; if (!this.ttt_1.equals(tmp0_other_with_cast.ttt_1)) return false; if (!(this.utt_1 === tmp0_other_with_cast.utt_1)) return false; if (!(this.vtt_1 == tmp0_other_with_cast.vtt_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.iu4_1 = this$0; this.ju4_1 = $savedStateHandle; this.ku4_1 = $primaryKeyManager; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).eu5 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.eu5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 9; this.hd_1 = 1; suspendResult = this.iu4_1.uqn(this.ju4_1, 'allocations', ListSerializer(Companion_instance_18.h4s()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mu4_1 = suspendResult; this.hd_1 = 2; suspendResult = this.lu4_1.k7f().h7t(this.iu4_1.fu6_1, this.iu4_1.iu6_1, systemTimeInMillis(), this.iu4_1.pqn().coj(strings_getInstance().xnf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.nu4_1 = suspendResult; Napier_getInstance().c5f('Number of submitters: ' + this.nu4_1.u()); var tmp_0 = this; tmp_0.ou4_1 = this.nu4_1; var tmp_1 = this; tmp_1.pu4_1 = this.ou4_1; var tmp_2 = this; tmp_2.qu4_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.ou4_1, 10)); this.ru4_1 = this.pu4_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.ru4_1.f()) { this.hd_1 = 8; continue $sm; } this.su4_1 = this.ru4_1.e(); var tmp_3 = this; tmp_3.tu4_1 = this.su4_1; this.uu4_1 = new AssignmentSubmitterSummary(this.tu4_1.y7x_1, this.tu4_1.x7x_1); var tmp_4 = this; var tmp0_safe_receiver = this.mu4_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.jfv_1.equals(this.tu4_1.y7x_1)) { destination.i1(element); } } tmp_5 = destination; } var tmp1_elvis_lhs = tmp_5; tmp_4.vu4_1 = trimToSize(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.iu4_1.gu6_1); var tmp_6 = this; tmp_6.wu4_1 = this.iu4_1.gu6_1; if (this.vu4_1.u() < this.wu4_1) { var tmp_7 = this; tmp_7.yu4_1 = until(this.vu4_1.u(), this.wu4_1); var tmp_8 = this; tmp_8.zu4_1 = this.yu4_1; var tmp_9 = this; tmp_9.au5_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.yu4_1, 10)); this.bu5_1 = this.zu4_1.w(); this.hd_1 = 4; continue $sm; } else { var tmp_10 = this; tmp_10.xu4_1 = this.vu4_1; this.hd_1 = 7; continue $sm; } case 4: if (!this.bu5_1.f()) { this.hd_1 = 6; continue $sm; } this.cu5_1 = this.bu5_1.e(); var tmp_11 = this; tmp_11.du5_1 = this.cu5_1; this.hd_1 = 5; suspendResult = this.ku4_1.i63(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var ARGUMENT = suspendResult; var ARGUMENT_0 = new PeerReviewerAllocation(ARGUMENT, VOID, this.tu4_1.y7x_1, this.iu4_1.hu6_1); this.au5_1.i1(ARGUMENT_0); this.hd_1 = 4; continue $sm; case 6: var ARGUMENT_1 = this.au5_1; this.xu4_1 = plus(this.vu4_1, ARGUMENT_1); this.hd_1 = 7; continue $sm; case 7: var ARGUMENT_2 = this.xu4_1; var ARGUMENT_3 = new AssignmentSubmitterAndAllocations(this.uu4_1, ARGUMENT_2); this.qu4_1.i1(ARGUMENT_3); this.hd_1 = 3; continue $sm; case 8: return this.qu4_1; case 9: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 9) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda(this.iu4_1, this.ju4_1, this.ku4_1, completion); i.lu4_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.eu5(db, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).ru6 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.ru6($completion); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).f79 = 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.ru6($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.du6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel...' call var nextValue = prevValue.tu6(it == null ? emptyList() : it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PeerReviewerAllocationEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_134() { this.uu6_1 = 'allocations'; this.vu6_1 = 'groupSetUid'; this.wu6_1 = 'numReviewers'; this.xu6_1 = 'PeerReviewerAllocationEdit'; } var Companion_instance_183; function Companion_getInstance_151() { return Companion_instance_183; } function PeerReviewerAllocationEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.gu7_1 = this$0; this.hu7_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.ju7_1 = get_doorPrimaryKeyManager(this.gu7_1.jqn()); this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_14().h4s()); var tmp_1 = PeerReviewerAllocationEditViewModel$slambda$slambda_0(this.gu7_1, this.hu7_1, this.ju7_1, null); var tmp_2 = PeerReviewerAllocationEditViewModel$slambda$slambda_2(null); suspendResult = this.gu7_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, PeerReviewerAllocationEditViewModel$slambda$lambda(this.gu7_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.gu7_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.gu7_1.pqn().coj(strings_getInstance().pmr_1); var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, true, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, PeerReviewerAllocationEditViewModel$onClickSave$ref(this.gu7_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda(this.gu7_1, this.hu7_1, completion); i.iu7_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda($allocation) { return function (it) { return it.hfv_1.equals($allocation.hfv_1); }; } function PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this$0, resultContinuation) { this.su7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.su7_1.du6_1.t2().su6_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var list = element.nkc_1; addAll(destination, list); } suspendResult = this.su7_1.cu6_1.ypj(destination, this.su7_1.iu6_1, this.su7_1.fu6_1, this.su7_1.hu6_1, this.su7_1.gu6_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.su7_1.du6_1; while (true) { var prevValue = this_1.t2(); var this_2 = prevValue.su6_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.jfv_1.equals(item.mkc_1.l7w_1)) { destination_1.i1(element_0); } } destination_0.i1(new AssignmentSubmitterAndAllocations(item.mkc_1, destination_1)); } var nextValue = prevValue.tu6(destination_0); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).p1n = function ($this$launch, completion) { var i = new PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this.su7_1, completion); i.tu7_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.o1n($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)).z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(di).z58(); // 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.x58(tmp$ret$2, null); tmp = new UpdatePeerReviewAllocationUseCase(tmp_2, tmp$ret$3); } else { tmp = updatePeerReviewAllocationUseCase; } updatePeerReviewAllocationUseCase = tmp; UstadEditViewModel.call(this, di, savedStateHandle, 'PeerReviewerAllocationEdit'); this.cu6_1 = updatePeerReviewAllocationUseCase; this.du6_1 = MutableStateFlow(new PeerReviewerAllocationEditUIState()); this.eu6_1 = asStateFlow(this.du6_1); var tmp_5 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_5.fu6_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.gu6_1 = tmp1_elvis_lhs_0 == null ? 1 : tmp1_elvis_lhs_0; var tmp_7 = this; Companion_getInstance_116(); 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.hu6_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.iu6_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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().qnk_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.gqn(); launch(tmp_9, VOID, VOID, PeerReviewerAllocationEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(PeerReviewerAllocationEditViewModel).uu7 = function (allocation) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.du6_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.su6_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.mkc_1.l7w_1.equals(allocation.jfv_1)) { tmp = item.pkc(VOID, replace_0(item.nkc_1, allocation, PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda(allocation))); } else { tmp = item; } var tmp$ret$0 = tmp; destination.i1(tmp$ret$0); } var nextValue = prevValue.tu6(destination); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PeerReviewerAllocationEditViewModel).vu7 = function () { var tmp = this.gqn(); launch(tmp, VOID, VOID, PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda_0(this, null)); }; protoOf(PeerReviewerAllocationEditViewModel).os5 = function () { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.flatMapTo' call var this_0 = this.du6_1.t2().su6_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.nkc_1; addAll(destination, list); } this.aqt(destination); }; function PeerReviewerAllocationEditUIState(submitterListWithAllocations) { submitterListWithAllocations = submitterListWithAllocations === VOID ? emptyList() : submitterListWithAllocations; this.su6_1 = submitterListWithAllocations; } protoOf(PeerReviewerAllocationEditUIState).wu7 = function (allocation) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.su6_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call if (element.mkc_1.l7w_1.equals(allocation.jfv_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.nkc_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.hfv_1.equals(allocation.hfv_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.ifv_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.su6_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.mkc_1.l7w_1.equals(allocation.jfv_1) ? !otherMarkersAlreadySelected.a1(element_1.mkc_1.l7w_1) : false) { destination_1.i1(element_1); } } return destination_1; }; protoOf(PeerReviewerAllocationEditUIState).tu6 = function (submitterListWithAllocations) { return new PeerReviewerAllocationEditUIState(submitterListWithAllocations); }; protoOf(PeerReviewerAllocationEditUIState).toString = function () { return 'PeerReviewerAllocationEditUIState(submitterListWithAllocations=' + this.su6_1 + ')'; }; protoOf(PeerReviewerAllocationEditUIState).hashCode = function () { return hashCode(this.su6_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.su6_1, tmp0_other_with_cast.su6_1)) return false; return true; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.fu8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).hu8 = function (it, $completion) { var tmp = this.iu8(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.hu8((p1 == null ? true : p1 instanceof CourseBlockAndAssignment) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.fu8_1.fu9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.oua(VOID, this.gu8_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).iu8 = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this.fu8_1, completion); i.gu8_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.hu8(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.xua_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.xua_1.lqn().j7e().hcm(this.xua_1.ju9_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda_0(this.xua_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.xua_1, completion); i.yua_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.o1n($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).qtf = function (submissions, submissionFiles, $completion) { var tmp = this.rtf(submissions, submissionFiles, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).on = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.qtf(tmp, (!(p2 == null) ? isInterface(p2, List) : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return combineWithSubmissionFiles(this.hub_1, this.iub_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).rtf = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(completion); i.hub_1 = submissions; i.iub_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.qtf(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.rub_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).ctg = function (it, $completion) { var tmp = this.dtg(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.ctg((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.rub_1.fu9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.oua(VOID, VOID, VOID, this.sub_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).dtg = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this.rub_1, completion); i.sub_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.ctg(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.buc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).otg = function (it, $completion) { var tmp = this.ptg(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.otg((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.buc_1.fu9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.oua(VOID, VOID, VOID, VOID, VOID, this.cuc_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).ptg = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this.buc_1, completion); i.cuc_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.otg(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.luc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_assignmentSubmitterNameUseCase__ts4wyt(this.luc_1).yon(this.luc_1.ku9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var submitterName = suspendResult; l$ret$1: do { var this_0 = this.luc_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(VOID, VOID, submitterName); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.luc_1, completion); i.muc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.vuc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.wuc_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.vuc_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.vuc_1, completion); i.wuc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.fud_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hud_1 = this.fud_1.lqn().l7f().lc2(this.fud_1.ku9_1, this.fud_1.ju9_1); this.iud_1 = this.fud_1.lqn().m7f().wca(this.fud_1.ku9_1, this.fud_1.ju9_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.hud_1, this.iud_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this.fud_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this.fud_1, completion); i.gud_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.rud_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.rud_1.lqn().n7f().kbw(this.rud_1.ku9_1, this.rud_1.ju9_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_6(this.rud_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this.rud_1, completion); i.sud_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.o1n($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.bue_1 = this$0; this.cue_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).eue = function (permissionPair, $completion) { var tmp = this.fue(permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.eue(p1 instanceof AssignmentPermissionAndActiveUserSubmitterUid ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; if (this.due_1.kdp_1) { l$ret$1: do { var this_0 = this.bue_1.fu9_1; while (true) { var prevValue = this_0.t2(); var tmp0_privateCommentsList = this.bue_1.mu9_1; var tmp1_activeUserPersonUid = this.bue_1.hqn(); var tmp2_activeUserSubmitterId = this.due_1.mdp_1; var tmp_0; if (this.due_1.jdp_1) { var this_1 = new CourseAssignmentMark(); this_1.fbx_1 = -1.0; tmp_0 = this_1; } else { tmp_0 = null; } var tmp3_draftMark = tmp_0; var tmp4_showModerateOptions = this.due_1.ldp_1; var nextValue = prevValue.oua(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.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.cue_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.bue_1, null)); launch(this.cue_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.bue_1, null)); launch(this.cue_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_4(this.bue_1, null)); launch(this.cue_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_6(this.bue_1, null)); } else { l$ret$3: do { var this_2 = this.bue_1.fu9_1; while (true) { var prevValue_0 = this_2.t2(); var tmp0_submissionList = emptyList(); var tmp1_marks = emptyList(); var nextValue_0 = prevValue_0.oua(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.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).fue = function (permissionPair, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda(this.bue_1, this.cue_1, completion); i.due_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.eue(permissionPair, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.oue_1 = $permissionFlow; this.pue_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.oue_1); suspendResult = collectLatest(tmp_0, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda_0(this.pue_1, this.que_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda(this.oue_1, this.pue_1, completion); i.que_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda($this_launch, $permissionFlow, this$0, resultContinuation) { this.zue_1 = $this_launch; this.auf_1 = $permissionFlow; this.buf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.zue_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda_0(this.auf_1, this.buf_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).f79 = function (completion) { return new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda(this.zue_1, this.auf_1, this.buf_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.d88($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.fu9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.oua(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.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_assignmentSubmitterNameUseCase__ts4wyt($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nu9_1; assignmentSubmitterNameUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pu9_1; openBlobUiUseCase$factory_2(); return this_0.t2(); } function _get_submitMarkUseCase__y8b5kx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qu9_1; submitMarkUseCase$factory_0(); return this_0.t2(); } function openSubmissionFileAsBlob_0($this, file, intent) { var tmp0_elvis_lhs = file.qcc_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.ou9_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.gs(); } var tmp_0 = $this; var tmp_1 = $this.gqn(); tmp_0.ou9_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_135() { this.cuf_1 = 'assignmentUid'; this.duf_1 = 'submitterUid'; this.euf_1 = 'CourseAssignmentSubmitter'; } var Companion_instance_184; function Companion_getInstance_152() { return Companion_instance_184; } function sam$kotlinx_coroutines_flow_FlowCollector$0_18(function_0) { this.fuf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_18).n1e = function (value, $completion) { return this.fuf_1(value, $completion); }; function ClazzAssignmentSubmitterDetailViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().o7f().jad(this$0.ku9_1, this$0.ju9_1, false); }; } function ClazzAssignmentSubmitterDetailViewModel$slambda(this$0, $permissionFlow, resultContinuation) { this.ouf_1 = this$0; this.puf_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.ouf_1.fu9_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda_0(this.quf_1, this.puf_1, this.ouf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda(this.ouf_1, this.puf_1, completion); i.quf_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda(this$0, resultContinuation) { this.zuf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 4; this.hd_1 = 2; var tmp_0 = this.zuf_1.lqn().o7f(); var this_0 = new Comments(); this_0.eae_1 = this.zuf_1.ku9_1; this_0.fae_1 = this.zuf_1.fu9_1.t2().gua_1; this_0.dae_1 = this.zuf_1.hqn(); this_0.bae_1 = this.zuf_1.ju9_1; this_0.aae_1 = this.zuf_1.hu9_1.t2(); this_0.iae_1 = systemTimeInMillis(); suspendResult = tmp_0.gad(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.zuf_1.hu9_1.r1l(''); tmp_1.bug_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.zuf_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.zuf_1.rqn(Companion_getInstance_97().kq6_1); throw t; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda(this.zuf_1, completion); i.aug_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda(this$0, $assignment, $draftMark, $submissions, $courseBlock, resultContinuation) { this.kug_1 = this$0; this.lug_1 = $assignment; this.mug_1 = $draftMark; this.nug_1 = $submissions; this.oug_1 = $courseBlock; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 4; this.id_1 = 3; this.hd_1 = 2; var tmp_0 = _get_submitMarkUseCase__y8b5kx(this.kug_1); var tmp_1 = this.kug_1.fqn().ko9().enu_1; var this_0 = this.nug_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.ckb_1); } suspendResult = tmp_0.hom(tmp_1, this.lug_1, this.kug_1.lu9_1, this.kug_1.ku9_1, this.mug_1, destination, this.oug_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.kug_1.fu9_1; while (true) { var prevValue = this_1.t2(); var this_2 = new CourseAssignmentMark(); this_2.fbx_1 = -1.0; var nextValue = prevValue.oua(VOID, VOID, VOID, VOID, VOID, VOID, this_2); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); tmp_2.qug_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; case 3: this.id_1 = 4; var tmp_3 = this.kd_1; if (tmp_3 instanceof Exception) { var e = this.kd_1; var tmp_4 = this; this.kug_1.nqn().rq6(new Snack('Error: ' + e.message)); Napier_getInstance().g5f('Exception submitting mark:', e); tmp_4.qug_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 6; continue $sm; } else { throw this.kd_1; } case 4: this.id_1 = 5; var t = this.kd_1; l$ret$5: do { var this_3 = this.kug_1.fu9_1; while (true) { var prevValue_0 = this_3.t2(); var nextValue_0 = prevValue_0.oua(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_3.s1l(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); throw t; case 5: throw this.kd_1; case 6: this.id_1 = 5; l$ret$7: do { var this_4 = this.kug_1.fu9_1; while (true) { var prevValue_1 = this_4.t2(); var nextValue_1 = prevValue_1.oua(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_4.s1l(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 5) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda(this.kug_1, this.lug_1, this.mug_1, this.nug_1, this.oug_1, completion); i.pug_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation) { this.zug_1 = this$0; this.auh_1 = $submissionFile; this.buh_1 = $intent; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.duh_1 = _get_openBlobUiUseCase__fzusqz_0(this.zug_1); if (this.duh_1 == null) { this.euh_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.auh_1); suspendResult = this.duh_1.eop(tmp_0, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda$lambda(this.zug_1), this.buh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.euh_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda(this.zug_1, this.auh_1, this.buh_1, completion); i.cuh_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation) { this.nuh_1 = this$0; this.ouh_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.nuh_1.lqn().o7f().had(this.ouh_1.zad_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nuh_1.nqn().rq6(new Snack(this.nuh_1.pqn().coj(strings_getInstance().hmj_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).p1n = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda(this.nuh_1, this.ouh_1, completion); i.puh_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignmentSubmitter'); this.fu9_1 = MutableStateFlow(new ClazzAssignmentSubmitterDetailUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.pqn().xq4())); this.gu9_1 = asStateFlow(this.fu9_1); this.hu9_1 = MutableStateFlow(''); this.iu9_1 = asStateFlow(this.hu9_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.ju9_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.ku9_1 = tmp_2; var tmp_3 = this; Companion_getInstance_125(); 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.lu9_1 = tmp_4; var tmp_5 = this; tmp_5.mu9_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.fqn().boa(); var trigger = this.x57(); // 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.b58(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.nu9_1 = Instance(this_0, tmp$ret$3, null).u5d(this, assignmentSubmitterNameUseCase$factory()); this.ou9_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.pu9_1 = InstanceOrNull(this_1, tmp$ret$5, null).u5d(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.qu9_1 = Instance(this_2, tmp$ret$7, null).u5d(this, submitMarkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.fu9_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.' call var tmp_14 = this.fqn().ko9().enu_1.ykq(); var tmp0_safe_receiver_2 = this.fqn().ko9().gnu_1; var nextValue = prevValue.oua(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.b98_1); if (this_3.s1l(prevValue, nextValue)) { break $l$block; } } } var permissionFlow = this.lqn().i7g().edl(this.hqn(), this.ju9_1, this.lu9_1, this.ku9_1); var tmp_15 = this.gqn(); launch(tmp_15, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzAssignmentSubmitterDetailViewModel).quh = function (text) { this.hu9_1.r1l(text); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ruh = function () { if (this.sqn().equals(Companion_getInstance_97().jq6_1)) return Unit_instance; this.rqn(Companion_getInstance_97().jq6_1); var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).suh = function (draftMark) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fu9_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.xu9_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fbx_1; if (tmp_0 == (draftMark == null ? null : draftMark.fbx_1)) { tmp = prevValue.ru9_1; } else { tmp = null; } var tmp2_submitMarkError = tmp; var nextValue = prevValue.oua(tmp2_submitMarkError, VOID, VOID, VOID, VOID, VOID, draftMark); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).tuh = function () { if (!this.fu9_1.t2().uuh()) return Unit_instance; var tmp0_elvis_lhs = this.fu9_1.t2().xu9_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var draftMark = tmp; var submissions = this.fu9_1.t2().uu9_1; var tmp1_elvis_lhs = this.fu9_1.t2().su9_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.ocp_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.pcp_1; var tmp_2; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp3_elvis_lhs; } var assignment = tmp_2; if (draftMark.fbx_1 === -1.0) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fu9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue = prevValue.oua(this.pqn().coj(strings_getInstance().rmn_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } else { if (draftMark.fbx_1 < 0.0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.fu9_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.oua(this.pqn().coj(strings_getInstance().wng_1)); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } else { var tmp_3 = draftMark.fbx_1; var tmp4_elvis_lhs = courseBlock.y7y_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.fu9_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.oua(this.pqn().coj(strings_getInstance().unl_1)); if (this_2.s1l(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.fu9_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.oua(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.s1l(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_4 = this.gqn(); launch(tmp_4, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda_0(this, assignment, draftMark, submissions, courseBlock, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).vuh = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fu9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickGradeFilterChip.' call var nextValue = prevValue.oua(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.fq7_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).etr = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.fu9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.oua(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.lua_1, submission.ec3_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).htr = function (file) { openSubmissionFileAsBlob_0(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).itr = function (comments) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq_0($this) { return latestUniqueMarksByMarker($this.wu9_1); } function sam$kotlin_Comparator$0_1(function_0) { this.wuh_1 = function_0; } protoOf(sam$kotlin_Comparator$0_1).pa = function (a, b) { return this.wuh_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.lbx_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ibx_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.lbx_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ibx_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().fnl_1; var tmp_2 = new MessageIdOption2(tmp_1, 1); var tmp_3 = strings_getInstance().vmz_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.umd(), Companion_getInstance_9().tmh()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? emptySet() : collapsedSubmissions; openingFileState = openingFileState === VOID ? null : openingFileState; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; this.ru9_1 = submitMarkError; this.su9_1 = block; this.tu9_1 = gradeFilterChips; this.uu9_1 = submissionList; this.vu9_1 = submissionAttachments; this.wu9_1 = marks; this.xu9_1 = draftMark; this.yu9_1 = markSubmissionInProgress; this.zu9_1 = markNextStudentVisible; this.aua_1 = fieldsEnabled; this.bua_1 = markListSelectedChipId; this.cua_1 = markListFilterOptions; this.dua_1 = privateCommentsList; this.eua_1 = newPrivateCommentTextVisible; this.fua_1 = activeUserPersonUid; this.gua_1 = activeUserSubmitterId; this.hua_1 = activeUserPersonName; this.iua_1 = activeUserPictureUri; this.jua_1 = localDateTimeNow; this.kua_1 = dayOfWeekStrings; this.lua_1 = collapsedSubmissions; this.mua_1 = openingFileState; this.nua_1 = showModerateOptions; } protoOf(ClazzAssignmentSubmitterDetailUiState).uuh = function () { var tmp; if (!this.yu9_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.su9_1; var tmp_0; if (!((it == null ? null : it.pcp_1) == null)) { tmp_0 = !(it.ocp_1 == null); } else { tmp_0 = false; } tmp = tmp_0; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).str = function () { return submissionStatusFor(this.wu9_1, this.uu9_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).xuh = 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.lbx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fbx_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).yuh = function (mark) { return new UstadCourseAssignmentMarkListItemUiState(mark, this.jua_1, this.kua_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).zuh = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.wu9_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.lbx_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbx_1, this.gua_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().dnk_1; } else { tmp = strings_getInstance().tng_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).aui = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.wu9_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.lbx_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbx_1, this.gua_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().enk_1; } else { tmp = strings_getInstance().ung_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).xtr = function () { var tmp; if (this.bua_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.wu9_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).bui = function () { return hasUpdatedMarks(this.wu9_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).cui = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.wu9_1.c1(); }; protoOf(ClazzAssignmentSubmitterDetailUiState).dui = 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).oua = 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.ru9_1 : submitMarkError; block = block === VOID ? this.su9_1 : block; gradeFilterChips = gradeFilterChips === VOID ? this.tu9_1 : gradeFilterChips; submissionList = submissionList === VOID ? this.uu9_1 : submissionList; submissionAttachments = submissionAttachments === VOID ? this.vu9_1 : submissionAttachments; marks = marks === VOID ? this.wu9_1 : marks; draftMark = draftMark === VOID ? this.xu9_1 : draftMark; markSubmissionInProgress = markSubmissionInProgress === VOID ? this.yu9_1 : markSubmissionInProgress; markNextStudentVisible = markNextStudentVisible === VOID ? this.zu9_1 : markNextStudentVisible; fieldsEnabled = fieldsEnabled === VOID ? this.aua_1 : fieldsEnabled; markListSelectedChipId = markListSelectedChipId === VOID ? this.bua_1 : markListSelectedChipId; markListFilterOptions = markListFilterOptions === VOID ? this.cua_1 : markListFilterOptions; privateCommentsList = privateCommentsList === VOID ? this.dua_1 : privateCommentsList; newPrivateCommentTextVisible = newPrivateCommentTextVisible === VOID ? this.eua_1 : newPrivateCommentTextVisible; activeUserPersonUid = activeUserPersonUid === VOID ? this.fua_1 : activeUserPersonUid; activeUserSubmitterId = activeUserSubmitterId === VOID ? this.gua_1 : activeUserSubmitterId; activeUserPersonName = activeUserPersonName === VOID ? this.hua_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.iua_1 : activeUserPictureUri; localDateTimeNow = localDateTimeNow === VOID ? this.jua_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.kua_1 : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? this.lua_1 : collapsedSubmissions; openingFileState = openingFileState === VOID ? this.mua_1 : openingFileState; showModerateOptions = showModerateOptions === VOID ? this.nua_1 : showModerateOptions; return $super === VOID ? this.dui(submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions) : $super.dui.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.ru9_1 + ', block=' + this.su9_1 + ', gradeFilterChips=' + this.tu9_1 + ', submissionList=' + this.uu9_1 + ', submissionAttachments=' + this.vu9_1 + ', marks=' + this.wu9_1 + ', draftMark=' + this.xu9_1 + ', markSubmissionInProgress=' + this.yu9_1 + ', markNextStudentVisible=' + this.zu9_1 + ', fieldsEnabled=' + this.aua_1 + ', markListSelectedChipId=' + this.bua_1 + ', markListFilterOptions=' + this.cua_1 + ', privateCommentsList=' + this.dua_1 + ', newPrivateCommentTextVisible=' + this.eua_1 + ', activeUserPersonUid=' + this.fua_1.toString() + ', activeUserSubmitterId=' + this.gua_1.toString() + ', activeUserPersonName=' + this.hua_1 + ', activeUserPictureUri=' + this.iua_1 + ', localDateTimeNow=' + this.jua_1 + ', dayOfWeekStrings=' + this.kua_1 + ', collapsedSubmissions=' + this.lua_1 + ', openingFileState=' + this.mua_1 + ', showModerateOptions=' + this.nua_1 + ')'; }; protoOf(ClazzAssignmentSubmitterDetailUiState).hashCode = function () { var result = this.ru9_1 == null ? 0 : getStringHashCode(this.ru9_1); result = imul(result, 31) + (this.su9_1 == null ? 0 : this.su9_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.tu9_1) | 0; result = imul(result, 31) + hashCode(this.uu9_1) | 0; result = imul(result, 31) + hashCode(this.vu9_1) | 0; result = imul(result, 31) + hashCode(this.wu9_1) | 0; result = imul(result, 31) + (this.xu9_1 == null ? 0 : hashCode(this.xu9_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.yu9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zu9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.aua_1) | 0; result = imul(result, 31) + this.bua_1 | 0; result = imul(result, 31) + hashCode(this.cua_1) | 0; result = imul(result, 31) + hashCode(this.dua_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.eua_1) | 0; result = imul(result, 31) + this.fua_1.hashCode() | 0; result = imul(result, 31) + this.gua_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.hua_1) | 0; result = imul(result, 31) + (this.iua_1 == null ? 0 : getStringHashCode(this.iua_1)) | 0; result = imul(result, 31) + this.jua_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.kua_1) | 0; result = imul(result, 31) + hashCode(this.lua_1) | 0; result = imul(result, 31) + (this.mua_1 == null ? 0 : this.mua_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.nua_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.ru9_1 == tmp0_other_with_cast.ru9_1)) return false; if (!equals(this.su9_1, tmp0_other_with_cast.su9_1)) return false; if (!equals(this.tu9_1, tmp0_other_with_cast.tu9_1)) return false; if (!equals(this.uu9_1, tmp0_other_with_cast.uu9_1)) return false; if (!equals(this.vu9_1, tmp0_other_with_cast.vu9_1)) return false; if (!equals(this.wu9_1, tmp0_other_with_cast.wu9_1)) return false; if (!equals(this.xu9_1, tmp0_other_with_cast.xu9_1)) return false; if (!(this.yu9_1 === tmp0_other_with_cast.yu9_1)) return false; if (!(this.zu9_1 === tmp0_other_with_cast.zu9_1)) return false; if (!(this.aua_1 === tmp0_other_with_cast.aua_1)) return false; if (!(this.bua_1 === tmp0_other_with_cast.bua_1)) return false; if (!equals(this.cua_1, tmp0_other_with_cast.cua_1)) return false; if (!equals(this.dua_1, tmp0_other_with_cast.dua_1)) return false; if (!(this.eua_1 === tmp0_other_with_cast.eua_1)) return false; if (!this.fua_1.equals(tmp0_other_with_cast.fua_1)) return false; if (!this.gua_1.equals(tmp0_other_with_cast.gua_1)) return false; if (!(this.hua_1 === tmp0_other_with_cast.hua_1)) return false; if (!(this.iua_1 == tmp0_other_with_cast.iua_1)) return false; if (!this.jua_1.equals(tmp0_other_with_cast.jua_1)) return false; if (!equals(this.kua_1, tmp0_other_with_cast.kua_1)) return false; if (!equals(this.lua_1, tmp0_other_with_cast.lua_1)) return false; if (!equals(this.mua_1, tmp0_other_with_cast.mua_1)) return false; if (!(this.nua_1 === tmp0_other_with_cast.nua_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.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel......' call var nextValue = prevValue.tui(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.cuj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).euj = function (nameAndTerminology, $completion) { var tmp = this.fuj(nameAndTerminology, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.euj((p1 == null ? true : p1 instanceof ClazzNameAndTerminology) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp1_currentTerminologyStrings = this.cuj_1.kqv_1.t2().qui_1; var tmp0_safe_receiver = this.duj_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o8m_1; var tmp3_json = this.cuj_1.g4s(); var tmp4_systemImpl = this.cuj_1.pqn(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzMemberListViewModel$slambda$slambda$slambda$slambda$lambda(this.cuj_1)); l$ret$1: do { var this_0 = this.cuj_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver_0 = this.duj_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.n8m_1; var nextValue = prevValue.cq6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).fuj = function (nameAndTerminology, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this.cuj_1, completion); i.duj_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.euj(nameAndTerminology, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.ouj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).at3 = function (it, $completion) { var tmp = this.bt3(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.at3(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.ouj_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tui(VOID, VOID, VOID, VOID, this.puj_1.bdo_1, this.puj_1.cdo_1, this.puj_1.cdo_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).bt3 = function (it, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this.ouj_1, completion); i.puj_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.at3(it, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.yuj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.yuj_1.lqn().i7e().u8d(this.yuj_1.cul_1); var tmp_1 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_0(this.yuj_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda(this.yuj_1, completion); i.zuj_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.pul_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.pul_1.jqn().i7g(); var tmp_1 = this.pul_1.hqn(); PermissionFlags_getInstance(); var tmp_2 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.adl(tmp_1, this.pul_1.cul_1, tmp_2, new Long(8, 0))); var tmp_4 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_2(this.pul_1, null); suspendResult = tmp_3.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda_1(this.pul_1, completion); i.qul_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda(this$0, $this_launch, resultContinuation) { this.zul_1 = this$0; this.aum_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzMemberListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.zul_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tui(VOID, VOID, VOID, this.zul_1.ful_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.aum_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_0(this.zul_1, null)); launch(this.aum_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_2(this.zul_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzMemberListViewModel$slambda$slambda).f79 = function (completion) { return new ClazzMemberListViewModel$slambda$slambda(this.zul_1, this.aum_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.d88($completion); }; l.$arity = 0; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this$0, resultContinuation) { this.jum_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).yrg = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).he = function (p1, $completion) { return this.yrg(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.kum_1.i7e().m8d(this.jum_1.cul_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.i8f_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).ony = function (it, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this.jum_1, completion); i.kum_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.yrg(it, $completion); }; l.$arity = 1; return l; } function _get_sendClazzInvitesUseCase__utu0z8_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.aul_1; sendClazzInvitesUseCase$factory_2(); return this_0.t2(); } function _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.bul_1; approveOrDeclinePendingEnrolmentUseCase$factory_0(); return this_0.t2(); } function getMembersAsPagingSource($this, roleId) { var tmp0_$this = $this.lqn().n7e(); var tmp1_clazzUid = $this.cul_1; var tmp2_sortOrder = $this.kqv_1.t2().mui_1.jqc_1; var tmp3_filter = $this.kqv_1.t2().oui_1; var tmp4_searchText = toQueryLikeParam($this.tqm_1.t2().uq5_1.jq5_1); var tmp5_accountPersonUid = $this.hqn(); var tmp6_currentTime = systemTimeInMillis(); PermissionFlags_getInstance(); var tmp7_permission = new Long(8192, 0); return tmp0_$this.d94(tmp1_clazzUid, roleId, tmp2_sortOrder, tmp4_searchText, tmp3_filter, tmp5_accountPersonUid, tmp6_currentTime, tmp7_permission); } function Companion_136() { this.lum_1 = 'CourseMembers'; } var Companion_instance_185; function Companion_getInstance_153() { return Companion_instance_185; } function sam$kotlinx_coroutines_flow_FlowCollector$0_19(function_0) { this.mum_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_19).n1e = function (value, $completion) { return this.mum_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.lqn().y7g().g9n(this$0.fqn().ko9().dnu_1.uij_1, this$0.cul_1, systemTimeInMillis()); }; } function ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this$0) { return function () { var tmp0_$this = this$0.lqn().h7g(); var tmp1_clazzUid = this$0.cul_1; var tmp2_searchText = toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_1); var tmp4_sortOrder = this$0.kqv_1.t2().mui_1.jqc_1; return tmp0_$this.pey(tmp1_clazzUid, false, 1, tmp2_searchText, tmp4_sortOrder); }; } function ClazzMemberListViewModel$slambda(this$0, resultContinuation) { this.vum_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.vum_1.kqv_1, ClazzMemberListViewModel$slambda$slambda_0(this.vum_1, this.wum_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda(this.vum_1, completion); i.wum_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda(this$0, $enrolmentDetails, $approved, resultContinuation) { this.fun_1 = this$0; this.gun_1 = $enrolmentDetails; this.hun_1 = $approved; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d(this.fun_1).soz(this.gun_1, this.hun_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this.fun_1.nqn(); var tmp_1 = this.fun_1.pqn(); var tmp_2 = this.hun_1 ? strings_getInstance().inn_1 : strings_getInstance().jnn_1; var tmp0_elvis_lhs = this.gun_1.iez_1; tmp_0.rq6(new Snack(tmp_1.doj(tmp_2, [tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs]))); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_3 = this.kd_1; if (tmp_3 instanceof Error) { var e = this.kd_1; var tmp_4 = this.fun_1.nqn(); var tmp_5 = this.fun_1.pqn().coj(strings_getInstance().mmi_1); var tmp1_elvis_lhs = e.message; tmp_4.rq6(new Snack(tmp_5 + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs))); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).p1n = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda(this.fun_1, this.gun_1, this.hun_1, completion); i.iun_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda(this$0, $role, resultContinuation) { this.run_1 = this$0; this.sun_1 = $role; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.run_1.kqn(); var tmp_1; if (this.sun_1 === 1000) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.uun_1 = tmp_1; if (this.uun_1 == null) { this.vun_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.uun_1, ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda_0(this.run_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.vun_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var clazzCode = this.vun_1; var tmp_2; if (this.sun_1 === 1000) { tmp_2 = strings_getInstance().pml_1; } else { tmp_2 = strings_getInstance().rmy_1; } var titleStringResource = tmp_2; var tmp1_safe_receiver = this.run_1.kqv_1.t2().qui_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.eq8(titleStringResource); var title = tmp2_elvis_lhs == null ? this.run_1.pqn().coj(titleStringResource) : tmp2_elvis_lhs; Companion_getInstance_116(); var tmp_3 = to('clazzUid', this.run_1.cul_1.toString()); Companion_getInstance_116(); var tmp_4 = to('popUpToOnFinish', this.run_1.qqm_1); var goToOnPersonSelectedArg = appendQueryArgs('EnrolmentEdit', mapOf([tmp_3, tmp_4, to('role', this.sun_1.toString())])); var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_203(); this_1.s('exlcudeFromClazz', this.run_1.cul_1.toString()); Companion_getInstance_116(); this_1.s('listMode', ListViewMode_PICKER_getInstance().pqj_1); this_1.s('goToOnPersonSelected', goToOnPersonSelectedArg); Companion_getInstance_203(); this_1.s('showAddViaContact', 'true'); Companion_getInstance_203(); this_1.s('role', this.sun_1.toString()); Companion_getInstance_125(); this_1.s('t', title); Companion_getInstance_203(); PermissionFlags_getInstance(); this_1.s('rptsl', (new Long(2048, 0)).toString()); if (!(clazzCode == null)) { Companion_getInstance_203(); this_1.s('showAddViaInviteLink', clazzCode); } var args = this_1.f3(); Companion_getInstance_203(); this.run_1.rqm_1.dp6('People', args); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).p1n = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda(this.run_1, this.sun_1, completion); i.tun_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickRevokeInvite$slambda(this$0, $contact, resultContinuation) { this.euo_1 = this$0; this.fuo_1 = $contact; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.euo_1.lqn().y7g().h9n(this.fuo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).p1n = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickRevokeInvite$slambda(this.euo_1, this.fuo_1, completion); i.guo_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickResendInvite$slambda(this$0, $clazzInvite, resultContinuation) { this.puo_1 = this$0; this.quo_1 = $clazzInvite; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_sendClazzInvitesUseCase__utu0z8_0(this.puo_1).cph(new SendClazzInvitesRequest(listOf_0(this.quo_1.b9o_1), this.quo_1.z9n_1, this.quo_1.y9n_1, this.puo_1.fqn().ko9().enu_1.z96_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.puo_1.nqn().rq6(new Snack(this.puo_1.pqn().coj(strings_getInstance().ens_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).p1n = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickResendInvite$slambda(this.puo_1, this.quo_1, completion); i.ruo_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.o1n($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.aul_1 = Instance(this_0, tmp$ret$0, null).u5d(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.fqn().boa(); var trigger = this.x57(); // 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.b58(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.bul_1 = Instance(this_1, tmp$ret$5, null).u5d(this, approveOrDeclinePendingEnrolmentUseCase$factory()); var tmp_6 = this; Companion_getInstance_116(); 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.cul_1 = tmp_7; var tmp_8 = this; tmp_8.dul_1 = ClazzMemberListViewModel$teacherListPagingSource$lambda(this); var tmp_9 = this; tmp_9.eul_1 = ClazzMemberListViewModel$studentListPagingSource$lambda(this); var tmp_10 = this; tmp_10.ful_1 = ClazzMemberListViewModel$pendingInvitesPagingSource$lambda(this); var tmp_11 = this; tmp_11.gul_1 = ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.kqv_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.pqn().coj(get_dayStringResource(element)); result.s(element, tmp$ret$7); } var nextValue = prevValue.tui(this.eul_1, this.dul_1, this.gul_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, result); if (this_2.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.tqm_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.' call var nextValue_0 = prevValue_0.cq6(VOID, VOID, VOID, true, VOID, VOID, VOID, this.tqw(), new ActionBarButtonUiState(false)); if (this_4.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_12 = this.gqn(); launch(tmp_12, VOID, VOID, ClazzMemberListViewModel$slambda_0(this, null)); } protoOf(ClazzMemberListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).fqw = function () { }; protoOf(ClazzMemberListViewModel).csv = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onClickFilterChip.' call var nextValue = prevValue.tui(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filterOption.fq7_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).suo = function (enrolmentDetails, approved) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda_0(this, enrolmentDetails, approved, null)); }; protoOf(ClazzMemberListViewModel).tuo = function (role) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickAddNewMember$slambda_0(this, role, null)); }; protoOf(ClazzMemberListViewModel).uuo = function (entry) { Companion_getInstance_116(); var tmp0_safe_receiver = entry.u96_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z96_1; var tmp = to('personUid', (tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs).toString()); Companion_getInstance_116(); this.rqm_1.dp6('CourseEnrolments', mapOf([tmp, to('clazzUid', this.cul_1.toString())])); }; protoOf(ClazzMemberListViewModel).bsv = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onSortOrderChanged.' call var nextValue = prevValue.tui(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, sortOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).vuo = function (contact) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRevokeInvite$slambda_0(this, contact, null)); }; protoOf(ClazzMemberListViewModel).wuo = function (clazzInvite) { var tmp = this.gqn(); 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().ymj_1; var tmp_5 = new SortOrderOption(tmp_4, 1, true); var tmp_6 = strings_getInstance().ymj_1; var tmp_7 = new SortOrderOption(tmp_6, 2, false); var tmp_8 = strings_getInstance().xmj_1; var tmp_9 = new SortOrderOption(tmp_8, 3, true); var tmp_10 = strings_getInstance().xmj_1; var tmp_11 = new SortOrderOption(tmp_10, 4, false); var tmp_12 = strings_getInstance().lmx_1; var tmp_13 = new SortOrderOption(tmp_12, 7, true); var tmp_14 = strings_getInstance().lmx_1; var tmp_15 = new SortOrderOption(tmp_14, 8, false); var tmp_16 = strings_getInstance().mmx_1; var tmp_17 = new SortOrderOption(tmp_16, 9, true); var tmp_18 = strings_getInstance().mmx_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().cn0_1; tmp_20 = listOf([new MessageIdOption2(tmp_21, 1), new MessageIdOption2(strings_getInstance().vmz_1, 0)]); } else { tmp_20 = filterOptions; } filterOptions = tmp_20; terminologyStrings = terminologyStrings === VOID ? null : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.umd(), Companion_getInstance_9().tmh()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.eui_1 = studentList; this.fui_1 = teacherList; this.gui_1 = pendingStudentList; this.hui_1 = pendingInviteList; this.iui_1 = addTeacherVisible; this.jui_1 = addStudentVisible; this.kui_1 = pendingInviteListVisible; this.lui_1 = sortOptions; this.mui_1 = activeSortOrderOption; this.nui_1 = fieldsEnabled; this.oui_1 = selectedChipId; this.pui_1 = filterOptions; this.qui_1 = terminologyStrings; this.rui_1 = localDateTimeNow; this.sui_1 = dayOfWeekStrings; } protoOf(ClazzMemberListUiState).xuo = 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).tui = function (studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings, $super) { studentList = studentList === VOID ? this.eui_1 : studentList; teacherList = teacherList === VOID ? this.fui_1 : teacherList; pendingStudentList = pendingStudentList === VOID ? this.gui_1 : pendingStudentList; pendingInviteList = pendingInviteList === VOID ? this.hui_1 : pendingInviteList; addTeacherVisible = addTeacherVisible === VOID ? this.iui_1 : addTeacherVisible; addStudentVisible = addStudentVisible === VOID ? this.jui_1 : addStudentVisible; pendingInviteListVisible = pendingInviteListVisible === VOID ? this.kui_1 : pendingInviteListVisible; sortOptions = sortOptions === VOID ? this.lui_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.mui_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.nui_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.oui_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.pui_1 : filterOptions; terminologyStrings = terminologyStrings === VOID ? this.qui_1 : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? this.rui_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.sui_1 : dayOfWeekStrings; return $super === VOID ? this.xuo(studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) : $super.xuo.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.eui_1 + ', teacherList=' + this.fui_1 + ', pendingStudentList=' + this.gui_1 + ', pendingInviteList=' + this.hui_1 + ', addTeacherVisible=' + this.iui_1 + ', addStudentVisible=' + this.jui_1 + ', pendingInviteListVisible=' + this.kui_1 + ', sortOptions=' + this.lui_1 + ', activeSortOrderOption=' + this.mui_1 + ', fieldsEnabled=' + this.nui_1 + ', selectedChipId=' + this.oui_1 + ', filterOptions=' + this.pui_1 + ', terminologyStrings=' + this.qui_1 + ', localDateTimeNow=' + this.rui_1 + ', dayOfWeekStrings=' + this.sui_1 + ')'; }; protoOf(ClazzMemberListUiState).hashCode = function () { var result = hashCode(this.eui_1); result = imul(result, 31) + hashCode(this.fui_1) | 0; result = imul(result, 31) + hashCode(this.gui_1) | 0; result = imul(result, 31) + hashCode(this.hui_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iui_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jui_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kui_1) | 0; result = imul(result, 31) + hashCode(this.lui_1) | 0; result = imul(result, 31) + this.mui_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nui_1) | 0; result = imul(result, 31) + this.oui_1 | 0; result = imul(result, 31) + hashCode(this.pui_1) | 0; result = imul(result, 31) + (this.qui_1 == null ? 0 : this.qui_1.hashCode()) | 0; result = imul(result, 31) + this.rui_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.sui_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.eui_1, tmp0_other_with_cast.eui_1)) return false; if (!equals(this.fui_1, tmp0_other_with_cast.fui_1)) return false; if (!equals(this.gui_1, tmp0_other_with_cast.gui_1)) return false; if (!equals(this.hui_1, tmp0_other_with_cast.hui_1)) return false; if (!(this.iui_1 === tmp0_other_with_cast.iui_1)) return false; if (!(this.jui_1 === tmp0_other_with_cast.jui_1)) return false; if (!(this.kui_1 === tmp0_other_with_cast.kui_1)) return false; if (!equals(this.lui_1, tmp0_other_with_cast.lui_1)) return false; if (!this.mui_1.equals(tmp0_other_with_cast.mui_1)) return false; if (!(this.nui_1 === tmp0_other_with_cast.nui_1)) return false; if (!(this.oui_1 === tmp0_other_with_cast.oui_1)) return false; if (!equals(this.pui_1, tmp0_other_with_cast.pui_1)) return false; if (!equals(this.qui_1, tmp0_other_with_cast.qui_1)) return false; if (!this.rui_1.equals(tmp0_other_with_cast.rui_1)) return false; if (!equals(this.sui_1, tmp0_other_with_cast.sui_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.gup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).kup = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.kup(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.hup_1.n7e(); var tmp_1; if (!this.gup_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.iup_1 = tmp_1; if (this.iup_1 == null) { this.jup_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.iup_1.z93(this.gup_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.jup_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.jup_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda(this.gup_1, completion); i.hup_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.kup(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.tup_1 = $savedStateHandle; this.uup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).xup = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.xup($completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.vup_1 = new ClazzEnrolmentWithLeavingReason(); var tmp_1 = this; tmp_1.wup_1 = this.vup_1; var tmp_2 = this.wup_1; Companion_getInstance_116(); var tmp0_safe_receiver = this.tup_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.x8i_1 = tmp_3; var tmp_4 = this.wup_1; Companion_getInstance_116(); var tmp2_safe_receiver = this.tup_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.w8i_1 = tmp_5; this.wup_1.y8i_1 = systemTimeInMillis(); var tmp_6 = this.wup_1; var tmp4_safe_receiver = this.tup_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.a8j_1 = tmp_7; this.hd_1 = 1; suspendResult = this.uup_1.lqn().i7e().w8d(this.wup_1.x8i_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.wup_1.m95_1 = ARGUMENT; return this.vup_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).f79 = function (completion) { return new ClazzEnrolmentEditViewModel$slambda$slambda_1(this.tup_1, this.uup_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.xup($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.vuq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel...' call var nextValue = prevValue.fur(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEnrolmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.our_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).qur = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.qur((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.our_1.lqn().k7e(); var tmp0_safe_receiver = this.our_1.vuq_1.t2().yuq_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x8i_1; suspendResult = tmp_0.ye7(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).p1n = function ($this$async, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda_3(this.our_1, completion); i.pur_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.qur($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function _get_enrolIntoCourseUseCase__jh2n4b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xuq_1; enrolIntoCourseUseCase$factory_0(); return this_0.t2(); } function hasErrors_1(_this__u8e3s4, $this) { return (!(_this__u8e3s4.zuq_1 == null) ? true : !(_this__u8e3s4.aur_1 == null)) ? true : !(_this__u8e3s4.bur_1 == null); } function Companion_137() { this.rur_1 = 'EnrolmentEdit'; this.sur_1 = 'role'; } var Companion_instance_186; function Companion_getInstance_154() { return Companion_instance_186; } function ClazzEnrolmentEditViewModel$slambda(this$0, resultContinuation) { this.bus_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.cus_1.i7g().ydk(this.bus_1.hqn(), this.bus_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda).ony = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda(this.bus_1, completion); i.cus_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.as8(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.lus_1 = this$0; this.mus_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; var tmp_0 = Companion_instance_35.h4s(); var tmp_1 = ClazzEnrolmentEditViewModel$slambda$slambda_0(this.lus_1, null); var tmp_2 = ClazzEnrolmentEditViewModel$slambda$slambda_2(this.mus_1, this.lus_1, null); suspendResult = this.lus_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEnrolmentEditViewModel$slambda$lambda(this.lus_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = this.lus_1.jqn().i7g(); var tmp_4 = this.lus_1.hqn(); var tmp0_safe_receiver = this.lus_1.vuq_1.t2().yuq_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x8i_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.bdl(tmp_4, tmp_5, tmp_6, new Long(16, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ous_1 = suspendResult; this.pus_1 = this.ous_1.y6(); this.qus_1 = this.ous_1.z6(); var tmp_7 = this; tmp_7.rus_1 = async(this.nus_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda$slambda_4(this.lus_1, null)); var tmp_8 = this; var this_0 = ArrayList_init_$Create$(); if (this.pus_1) { this_0.i1(1000); } if (this.qus_1) { this_0.i1(1001); } tmp_8.sus_1 = this_0.f3(); this.hd_1 = 3; suspendResult = this.rus_1.hw(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.lus_1.pqn(), this.lus_1.g4s()); } var terminologyStrings = tmp_9; l$ret$1: do { var this_1 = this.lus_1.vuq_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.fur(VOID, VOID, VOID, VOID, true, terminologyStrings, this.sus_1); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.lus_1.tqm_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_10 = Companion_getInstance_97().kq6_1; var tmp_11 = this.lus_1.pqn().coj(strings_getInstance().dn3_1); var nextValue_0 = prevValue_0.cq6(VOID, tmp_10, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_11, VOID, ClazzEnrolmentEditViewModel$onClickSave$ref(this.lus_1))); if (this_2.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new ClazzEnrolmentEditViewModel$slambda_1(this.lus_1, this.mus_1, completion); i.nus_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.but_1 = $commitDelay; this.cut_1 = $entity; this.dut_1 = $this; this.eut_1 = $key; this.fut_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.but_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.cut_1 == null)) { this.hd_1 = 2; suspendResult = this.dut_1.vqn(this.dut_1.pqm_1, this.eut_1, this.fut_1, this.cut_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEnrolmentEditViewModel$onEntityChanged$slambda(this.but_1, this.cut_1, this.dut_1, this.eut_1, this.fut_1, completion); i.gut_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$slambda(this$0, $entity, $timeZoneVal, resultContinuation) { this.put_1 = this$0; this.qut_1 = $entity; this.rut_1 = $timeZoneVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; if (this.put_1.xqs_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_enrolIntoCourseUseCase__jh2n4b(this.put_1).eoz(this.qut_1, this.rut_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.put_1.jqn().n7e().a94(this.qut_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.hd_1 = 3; continue $sm; case 2: this.hd_1 = 3; continue $sm; case 3: Companion_getInstance_116(); var popUpToOnFinish = this.put_1.pqm_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.put_1.rqm_1.cq9(popUpToOnFinish, false); } else { this.put_1.aqt(this.qut_1); } return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEnrolmentEditViewModel$onClickSave$slambda(this.put_1, this.qut_1, this.rut_1, completion); i.sut_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EnrolmentEdit'); this.vuq_1 = MutableStateFlow(new ClazzEnrolmentEditUiState(VOID, VOID, VOID, VOID, false)); this.wuq_1 = asStateFlow(this.vuq_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.xuq_1 = Instance(this_0, tmp$ret$0, null).u5d(this, enrolIntoCourseUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.' call var nextValue = prevValue.cq6(VOID, Companion_getInstance_97().jq6_1, this.zqt(strings_getInstance().vmx_1, strings_getInstance().umx_1)); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzEnrolmentEditViewModel$slambda_0(this, null); this.bqo(tmp_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ClazzEnrolmentEditViewModel).tut = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vuq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.yuq_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a8j_1; var tmp_0 = this.aqu(tmp, entity == null ? null : entity.a8j_1, prevValue.zuq_1); var tmp2_safe_receiver = prevValue.yuq_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y8i_1; var nextValue = prevValue.fur(entity, tmp_0, this.aqu(tmp_1, entity == null ? null : entity.y8i_1, prevValue.aur_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_35.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_2 = this; var tmp_3 = this.gqn(); tmp_2.wqs_1 = launch(tmp_3, VOID, VOID, ClazzEnrolmentEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEnrolmentEditViewModel).os5 = function () { if (this.sqn().equals(Companion_getInstance_97().jq6_1)) return Unit_instance; var tmp0_elvis_lhs = this.vuq_1.t2().yuq_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; var timeZoneVal = entity.m95_1; if (timeZoneVal == null) { this.nqn().rq6(new Snack('Error: no time zone for course')); return Unit_instance; } this.rqn(Companion_getInstance_97().jq6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vuq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue = prevValue.fur(VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } if (entity.a8j_1 === 0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.vuq_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.fur(VOID, this.pqn().coj(strings_getInstance().rmn_1)); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } if (entity.y8i_1.c7(toLong(imul(get_MS_PER_HOUR(), 24))) <= 0) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.vuq_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.fur(VOID, VOID, this.pqn().coj(strings_getInstance().rmn_1)); if (this_2.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (entity.z8i_1.c7(entity.y8i_1) <= 0) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.vuq_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.fur(VOID, VOID, VOID, this.pqn().coj(strings_getInstance().on9_1)); if (this_3.s1l(prevValue_2, nextValue_2)) { break $l$block_2; } } } } if (hasErrors_1(this.vuq_1.t2(), this)) { $l$block_3: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.vuq_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.fur(VOID, VOID, VOID, VOID, true); if (this_4.s1l(prevValue_3, nextValue_3)) { break $l$block_3; } } } return Unit_instance; } var tmp_0 = this.gqn(); 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.yuq_1 = clazzEnrolment; this.zuq_1 = roleSelectedError; this.aur_1 = startDateError; this.bur_1 = endDateError; this.cur_1 = fieldsEnabled; this.dur_1 = courseTerminology; this.eur_1 = roleOptions; } protoOf(ClazzEnrolmentEditUiState).uut = function () { var tmp0_safe_receiver = this.yuq_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a8j_1; return tmp === 1000; }; protoOf(ClazzEnrolmentEditUiState).vut = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) { return new ClazzEnrolmentEditUiState(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).fur = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions, $super) { clazzEnrolment = clazzEnrolment === VOID ? this.yuq_1 : clazzEnrolment; roleSelectedError = roleSelectedError === VOID ? this.zuq_1 : roleSelectedError; startDateError = startDateError === VOID ? this.aur_1 : startDateError; endDateError = endDateError === VOID ? this.bur_1 : endDateError; fieldsEnabled = fieldsEnabled === VOID ? this.cur_1 : fieldsEnabled; courseTerminology = courseTerminology === VOID ? this.dur_1 : courseTerminology; roleOptions = roleOptions === VOID ? this.eur_1 : roleOptions; return $super === VOID ? this.vut(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) : $super.vut.call(this, clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).toString = function () { return 'ClazzEnrolmentEditUiState(clazzEnrolment=' + this.yuq_1 + ', roleSelectedError=' + this.zuq_1 + ', startDateError=' + this.aur_1 + ', endDateError=' + this.bur_1 + ', fieldsEnabled=' + this.cur_1 + ', courseTerminology=' + this.dur_1 + ', roleOptions=' + this.eur_1 + ')'; }; protoOf(ClazzEnrolmentEditUiState).hashCode = function () { var result = this.yuq_1 == null ? 0 : hashCode(this.yuq_1); result = imul(result, 31) + (this.zuq_1 == null ? 0 : getStringHashCode(this.zuq_1)) | 0; result = imul(result, 31) + (this.aur_1 == null ? 0 : getStringHashCode(this.aur_1)) | 0; result = imul(result, 31) + (this.bur_1 == null ? 0 : getStringHashCode(this.bur_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.cur_1) | 0; result = imul(result, 31) + (this.dur_1 == null ? 0 : this.dur_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.eur_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.yuq_1, tmp0_other_with_cast.yuq_1)) return false; if (!(this.zuq_1 == tmp0_other_with_cast.zuq_1)) return false; if (!(this.aur_1 == tmp0_other_with_cast.aur_1)) return false; if (!(this.bur_1 == tmp0_other_with_cast.bur_1)) return false; if (!(this.cur_1 === tmp0_other_with_cast.cur_1)) return false; if (!equals(this.dur_1, tmp0_other_with_cast.dur_1)) return false; if (!equals(this.eur_1, tmp0_other_with_cast.eur_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.euu_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).drk = function (value, $completion) { var tmp = this.erk(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).he = function (p1, $completion) { return this.drk(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.guu_1 = this.euu_1; var tmp_1 = this; tmp_1.huu_1 = this.fuu_1; this.hd_1 = 1; var it = this.huu_1; suspendResult = this.guu_1.n1e(it.tdo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).erk = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$o$collect$slambda(this.euu_1, completion); i.fuu_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.drk(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$69(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.quu_1 = _this__u8e3s4; this.ruu_1 = collector; } protoOf($collectCOROUTINE$69).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.suu_1 = this.ruu_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$o$collect$slambda_0(this.suu_1, null); suspendResult = this.quu_1.tuu_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.cuv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).drk = function (it, $completion) { var tmp = this.erk(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.drk(p1 instanceof PermissionTriple ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_container = this.duv_1; var canEditTeacherEnrolments = tmp0_container.y6(); var canEditStudentEnrolments = tmp0_container.z6(); l$ret$1: do { var this_0 = this.cuv_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.luv(VOID, VOID, VOID, canEditTeacherEnrolments, canEditStudentEnrolments); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).erk = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this.cuv_1, completion); i.duv_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.drk(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.uuv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).wuv = function (it, $completion) { var tmp = this.xuv(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.wuv((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.uuv_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.luv(this.vuv_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).xuv = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this.uuv_1, completion); i.vuv_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.wuv(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.guw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).bqf = function (canViewMembers, $completion) { var tmp = this.cqf(canViewMembers, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1; if (this.huw_1) { tmp_1 = this.guw_1.lqn().n7e().y93(this.guw_1.kux_1, this.guw_1.jux_1); } else { tmp_1 = flowOf(emptyList()); } tmp_0.iuw_1 = tmp_1; this.hd_1 = 1; var tmp_2 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda_0(this.guw_1, null); suspendResult = this.iuw_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).cqf = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this.guw_1, completion); i.huw_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.bqf(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.tux_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).bqf = function (value, $completion) { var tmp = this.cqf(value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.wux_1 = this.tux_1; var tmp_1 = this; tmp_1.xux_1 = this.uux_1; if (this.xux_1) { this.hd_1 = 3; suspendResult = this.wux_1.n1e(this.xux_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 2: if (false) { this.hd_1 = 1; continue $sm; } this.hd_1 = 4; continue $sm; case 3: this.vux_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).cqf = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda(this.tux_1, completion); i.uux_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.bqf(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$70(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.guy_1 = _this__u8e3s4; this.huy_1 = collector; } protoOf($collectCOROUTINE$70).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.iuy_1 = this.huy_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.iuy_1, null); suspendResult = this.guy_1.juy_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function _no_name_provided__qut3iv_8($this) { this.juy_1 = $this; } protoOf(_no_name_provided__qut3iv_8).qqe = function (collector, $completion) { var tmp = new $collectCOROUTINE$70(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_8).u1c = function (collector, $completion) { return this.qqe(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.suy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).bqf = function (canViewMembers, $completion) { var tmp = this.cqf(canViewMembers, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (this.tuy_1) { this.hd_1 = 1; suspendResult = this.suy_1.lqn().n7e().f94(this.suy_1.kux_1, this.suy_1.jux_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: var courseAndPersonName = suspendResult; var tmp_0 = courseAndPersonName == null ? null : courseAndPersonName.y9a_1; var personName = '' + tmp_0 + ' ' + (courseAndPersonName == null ? null : courseAndPersonName.z9a_1); l$ret$1: do { var this_0 = this.suy_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.luv(VOID, personName, courseAndPersonName == null ? null : courseAndPersonName.x9a_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.suy_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(VOID, VOID, personName); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).cqf = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this.suy_1, completion); i.tuy_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.bqf(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.cuz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.cuz_1.lqn().k7e().ye7(this.cuz_1.jux_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.cuz_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.luv(VOID, VOID, VOID, VOID, VOID, terminology); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda(this.cuz_1, completion); i.duz_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation) { this.muz_1 = $permissionFlow; this.nuz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.muz_1); var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_0(this.nuz_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_1(this.muz_1, this.nuz_1, completion); i.ouz_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_3($canViewMembersFlow, this$0, resultContinuation) { this.xuz_1 = $canViewMembersFlow; this.yuz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.xuz_1); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_2(this.yuz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_3(this.xuz_1, this.yuz_1, completion); i.zuz_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_5($canViewMembersFlow, this$0, resultContinuation) { this.iv0_1 = $canViewMembersFlow; this.jv0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = distinctUntilChanged(this.iv0_1); var tmp_0 = new _no_name_provided__qut3iv_8(this_0); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_4(this.jv0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_5(this.iv0_1, this.jv0_1, completion); i.kv0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_9($this) { this.tuu_1 = $this; } protoOf(_no_name_provided__qut3iv_9).qqe = function (collector, $completion) { var tmp = new $collectCOROUTINE$69(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_9).u1c = function (collector, $completion) { return this.qqe(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda($this_launch, this$0, $permissionFlow, $canViewMembersFlow, resultContinuation) { this.tv0_1 = $this_launch; this.uv0_1 = this$0; this.vv0_1 = $permissionFlow; this.wv0_1 = $canViewMembersFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.tv0_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_0(this.uv0_1, null)); launch(this.tv0_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_2(this.vv0_1, this.uv0_1, null)); launch(this.tv0_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_4(this.wv0_1, this.uv0_1, null)); launch(this.tv0_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_6(this.wv0_1, this.uv0_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).f79 = function (completion) { return new ClazzEnrolmentListViewModel$slambda$slambda(this.tv0_1, this.uv0_1, this.vv0_1, this.wv0_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.d88($completion); }; l.$arity = 0; return l; } function Companion_138() { this.xv0_1 = 'CourseEnrolments'; } var Companion_instance_187; function Companion_getInstance_155() { return Companion_instance_187; } function sam$kotlinx_coroutines_flow_FlowCollector$0_20(function_0) { this.yv0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_20).n1e = function (value, $completion) { return this.yv0_1(value, $completion); }; function ClazzEnrolmentListViewModel$slambda(this$0, resultContinuation) { this.hv1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.hv1_1.jqn().i7g(); var tmp_2 = this.hv1_1.hqn(); PermissionFlags_getInstance(); var tmp_3 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_4 = new Long(8, 0); PermissionFlags_getInstance(); tmp_0.jv1_1 = shareIn(tmp_1.cdl(tmp_2, this.hv1_1.jux_1, tmp_3, tmp_4, new Long(8192, 0)), this.hv1_1.gqn(), Companion_getInstance_12().p1i()); var tmp_5 = this; var this_0 = this.jv1_1; tmp_5.kv1_1 = new _no_name_provided__qut3iv_9(this_0); this.hd_1 = 1; suspendResult = whenSubscribed(this.hv1_1.kqv_1, ClazzEnrolmentListViewModel$slambda$slambda_0(this.iv1_1, this.hv1_1, this.jv1_1, this.kv1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzEnrolmentListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda(this.hv1_1, completion); i.iv1_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.o1n($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_116(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.jux_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_116(); 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.kux_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda_0(this, null)); } protoOf(ClazzEnrolmentListViewModel).lv1 = function (enrolment) { var tmp = Companion_instance_35.h4s(); Companion_getInstance_116(); this.xqn('EnrolmentEdit', '', null, tmp, mapOf_0(to('entityUid', enrolment.v8i_1.toString())), VOID, true); }; protoOf(ClazzEnrolmentListViewModel).mv1 = function () { Companion_getInstance_116(); this.rqm_1.dp6('PersonDetailView', mapOf_0(to('entityUid', this.kux_1.toString()))); }; protoOf(ClazzEnrolmentListViewModel).eqw = function (searchText) { }; protoOf(ClazzEnrolmentListViewModel).fqw = 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.euv_1 = enrolmentList; this.fuv_1 = personName; this.guv_1 = courseName; this.huv_1 = canEditTeacherEnrolments; this.iuv_1 = canEditStudentEnrolments; this.juv_1 = courseTerminology; this.kuv_1 = timeZone; } protoOf(ClazzEnrolmentListUiState).nv1 = function (enrolment) { var tmp; var tmp_0 = enrolment.a8j_1; if (tmp_0 === 1001) { tmp = this.huv_1; } else { tmp = this.huv_1; } var tmp0_canEdit = tmp; var tmp1_timeZone = this.kuv_1; return new ClazzEnrolmentListItemUiState(tmp0_canEdit, enrolment, tmp1_timeZone); }; protoOf(ClazzEnrolmentListUiState).ov1 = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) { return new ClazzEnrolmentListUiState(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).luv = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone, $super) { enrolmentList = enrolmentList === VOID ? this.euv_1 : enrolmentList; personName = personName === VOID ? this.fuv_1 : personName; courseName = courseName === VOID ? this.guv_1 : courseName; canEditTeacherEnrolments = canEditTeacherEnrolments === VOID ? this.huv_1 : canEditTeacherEnrolments; canEditStudentEnrolments = canEditStudentEnrolments === VOID ? this.iuv_1 : canEditStudentEnrolments; courseTerminology = courseTerminology === VOID ? this.juv_1 : courseTerminology; timeZone = timeZone === VOID ? this.kuv_1 : timeZone; return $super === VOID ? this.ov1(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) : $super.ov1.call(this, enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).toString = function () { return 'ClazzEnrolmentListUiState(enrolmentList=' + this.euv_1 + ', personName=' + this.fuv_1 + ', courseName=' + this.guv_1 + ', canEditTeacherEnrolments=' + this.huv_1 + ', canEditStudentEnrolments=' + this.iuv_1 + ', courseTerminology=' + this.juv_1 + ', timeZone=' + this.kuv_1 + ')'; }; protoOf(ClazzEnrolmentListUiState).hashCode = function () { var result = hashCode(this.euv_1); result = imul(result, 31) + (this.fuv_1 == null ? 0 : getStringHashCode(this.fuv_1)) | 0; result = imul(result, 31) + (this.guv_1 == null ? 0 : getStringHashCode(this.guv_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.huv_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iuv_1) | 0; result = imul(result, 31) + (this.juv_1 == null ? 0 : hashCode(this.juv_1)) | 0; result = imul(result, 31) + getStringHashCode(this.kuv_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.euv_1, tmp0_other_with_cast.euv_1)) return false; if (!(this.fuv_1 == tmp0_other_with_cast.fuv_1)) return false; if (!(this.guv_1 == tmp0_other_with_cast.guv_1)) return false; if (!(this.huv_1 === tmp0_other_with_cast.huv_1)) return false; if (!(this.iuv_1 === tmp0_other_with_cast.iuv_1)) return false; if (!equals(this.juv_1, tmp0_other_with_cast.juv_1)) return false; if (!(this.kuv_1 === tmp0_other_with_cast.kuv_1)) return false; return true; }; function ClazzEnrolmentListItemUiState(canEdit, enrolment, timeZone) { canEdit = canEdit === VOID ? false : canEdit; this.pv1_1 = canEdit; this.qv1_1 = enrolment; this.rv1_1 = timeZone; } protoOf(ClazzEnrolmentListItemUiState).toString = function () { return 'ClazzEnrolmentListItemUiState(canEdit=' + this.pv1_1 + ', enrolment=' + this.qv1_1 + ', timeZone=' + this.rv1_1 + ')'; }; protoOf(ClazzEnrolmentListItemUiState).hashCode = function () { var result = getBooleanHashCode(this.pv1_1); result = imul(result, 31) + hashCode(this.qv1_1) | 0; result = imul(result, 31) + getStringHashCode(this.rv1_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.pv1_1 === tmp0_other_with_cast.pv1_1)) return false; if (!equals(this.qv1_1, tmp0_other_with_cast.qv1_1)) return false; if (!(this.rv1_1 === tmp0_other_with_cast.rv1_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().pn9_1); RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_instance = new RecordAttendanceOption('RECORD_ATTENDANCE_NEW_SCHEDULE', 1, strings_getInstance().qn9_1); } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.av2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).cv2 = function (clazz, $completion) { var tmp = this.dv2(clazz, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.cv2((p1 == null ? true : p1 instanceof Clazz) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.av2_1.kqv_1; var tmp_0; var tmp_1 = this_0.t2().fv2_1; var tmp0_safe_receiver = this.bv2_1; if (!(tmp_1 === (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d8f_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.bv2_1; var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.d8f_1; var nextValue = prevValue.mv2(VOID, tmp1_elvis_lhs == null ? 'UTC' : tmp1_elvis_lhs); if (tmp0_safe_receiver_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var this_1 = this.av2_1.tqm_1; var tmp_2; var tmp_3 = this_1.t2().pq5_1; var tmp0_safe_receiver_2 = this.bv2_1; if (!(tmp_3 == (tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.m8e_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.bv2_1; var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.m8e_1); if (tmp1_safe_receiver.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).dv2 = function (clazz, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this.av2_1, completion); i.bv2_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.cv2(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.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.......' call var nextValue = prevValue.mv2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = Unit_instance; break $l$block; } } } tmp = tmp$ret$1; } else { this$0.pv3(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).av4 = function (hasPermission, hasLogs, $completion) { var tmp = this.bv4(hasPermission, hasLogs, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).on = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(); return this.av4(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return new PermissionAndExistingLogs(this.yv3_1, this.zv3_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).bv4 = function (hasPermission, hasLogs, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1(completion); i.yv3_1 = hasPermission; i.zv3_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.av4(hasPermission, hasLogs, $completion); }; l.$arity = 2; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.kv4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).mv4 = function (it, $completion) { var tmp = this.nv4(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.mv4(p1 instanceof PermissionAndExistingLogs ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = ArrayList_init_$Create$(); if (this.lv4_1.ov4_1) { this_0.i1(RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_getInstance()); } if (this.lv4_1.ov4_1 ? this.lv4_1.pv4_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.kv4_1.kqv_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.mv2(VOID, VOID, options); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.kv4_1.tqm_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_0 = !options.c1(); var tmp_1 = this.kv4_1.pqn().coj(strings_getInstance().smu_1); var tmp_2 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.cq6(new FabUiState(tmp_0, tmp_1, tmp_2, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda$lambda(options, this.kv4_1))); if (this_2.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).nv4 = function (it, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this.kv4_1, completion); i.lv4_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.mv4(it, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.yv4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.yv4_1.lqn().i7e().n8d(this.yv4_1.nv3_1); var tmp_1 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_0(this.yv4_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this.yv4_1, completion); i.zv4_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.iv5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.iv5_1.lqn().i7g(); var tmp_2 = this.iv5_1.hqn(); PermissionFlags_getInstance(); tmp_0.kv5_1 = tmp_1.zdk(tmp_2, this.iv5_1.nv3_1, new Long(64, 0)); var tmp_3 = this; var tmp_4 = this.iv5_1.lqn().g7f(); tmp_3.lv5_1 = tmp_4.ea4(this.iv5_1.nv3_1, 8); this.hd_1 = 1; var tmp_5 = combine(this.kv5_1, this.lv5_1, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_6 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_4(this.iv5_1, null); suspendResult = tmp_5.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1(this.iv5_1, completion); i.jv5_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.uv5_1 = $this_launch; this.vv5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.uv5_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_0(this.vv5_1, null)); launch(this.uv5_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_2(this.vv5_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).f79 = function (completion) { return new ClazzLogListAttendanceViewModel$slambda$slambda(this.uv5_1, this.vv5_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.d88($completion); }; l.$arity = 0; return l; } function RecordAttendanceOption(name, ordinal, stringResource) { Enum.call(this, name, ordinal); this.yv5_1 = stringResource; } function PermissionAndExistingLogs(hasRecordPermission, hasExistingLogs) { this.ov4_1 = hasRecordPermission; this.pv4_1 = hasExistingLogs; } protoOf(PermissionAndExistingLogs).toString = function () { return 'PermissionAndExistingLogs(hasRecordPermission=' + this.ov4_1 + ', hasExistingLogs=' + this.pv4_1 + ')'; }; protoOf(PermissionAndExistingLogs).hashCode = function () { var result = getBooleanHashCode(this.ov4_1); result = imul(result, 31) + getBooleanHashCode(this.pv4_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.ov4_1 === tmp0_other_with_cast.ov4_1)) return false; if (!(this.pv4_1 === tmp0_other_with_cast.pv4_1)) return false; return true; }; function Companion_139() { this.zv5_1 = 'CourseLogListAttendanceView'; } var Companion_instance_188; function Companion_getInstance_156() { return Companion_instance_188; } function sam$kotlinx_coroutines_flow_FlowCollector$0_21(function_0) { this.av6_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_21).n1e = function (value, $completion) { return this.av6_1(value, $completion); }; function ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp = this$0.lqn().g7f(); return tmp.ca4(this$0.nv3_1, 8); }; } function ClazzLogListAttendanceViewModel$slambda(this$0, resultContinuation) { this.jv6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.jv6_1.kqv_1, ClazzLogListAttendanceViewModel$slambda$slambda_0(this.kv6_1, this.jv6_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda(this.jv6_1, completion); i.kv6_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda(this$0, resultContinuation) { this.tv6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.tv6_1.lqn().g7f().fa4(this.tv6_1.nv3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var mostRecentLogUid = suspendResult; var this_0 = this.tv6_1.rqm_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_116(); tmp0_safe_receiver.dp6('EditAttendance', mapOf_0(to('entityUid', mostRecentLogUid.toString()))); } this.tv6_1.vv6(); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda(this.tv6_1, completion); i.uv6_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.o1n($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_116(); 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.nv3_1 = tmp_1; var tmp_2 = this; tmp_2.ov3_1 = ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.' call var nextValue = prevValue.mv2(VOID, VOID, VOID, this.ov3_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.gqn(); launch(tmp_3, VOID, VOID, ClazzLogListAttendanceViewModel$slambda_0(this, null)); } protoOf(ClazzLogListAttendanceViewModel).vv6 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.mv2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzLogListAttendanceViewModel).eqw = function (searchText) { }; protoOf(ClazzLogListAttendanceViewModel).fqw = function () { }; protoOf(ClazzLogListAttendanceViewModel).pv3 = function (option) { var tmp0 = option.za_1; if (tmp0 === 1) { Companion_getInstance_125(); var tmp = to('timeZone', this.kqv_1.t2().fv2_1); Companion_getInstance_116(); this.xqw('ClazzLogEdit', mapOf([tmp, to('clazzUid', this.nv3_1.toString())])); this.vv6(); } else if (tmp0 === 0) { if (this.sqn().equals(Companion_getInstance_97().jq6_1)) return Unit_instance; this.rqn(Companion_getInstance_97().jq6_1); var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda_0(this, null)); } }; protoOf(ClazzLogListAttendanceViewModel).wv6 = function (clazzLog) { Companion_getInstance_116(); var tmp = to('entityUid', clazzLog.aa5_1.toString()); Companion_getInstance_125(); this.rqm_1.dp6('EditAttendance', mapOf([tmp, to('clazzUid', this.nv3_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_9().tmh().umg() : 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().bmv_1, 7), new MessageIdOption2(strings_getInstance().bmx_1, 30), new MessageIdOption2(strings_getInstance().nmz_1, 90)]) : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? false : createNewOptionsVisible; this.ev2_1 = graphData; this.fv2_1 = timeZoneId; this.gv2_1 = recordAttendanceOptions; this.hv2_1 = clazzLogsList; this.iv2_1 = fieldsEnabled; this.jv2_1 = selectedChipId; this.kv2_1 = viewIdToNumDays; this.lv2_1 = createNewOptionsVisible; } protoOf(ClazzLogListAttendanceUiState).xv6 = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) { return new ClazzLogListAttendanceUiState(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).mv2 = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible, $super) { graphData = graphData === VOID ? this.ev2_1 : graphData; timeZoneId = timeZoneId === VOID ? this.fv2_1 : timeZoneId; recordAttendanceOptions = recordAttendanceOptions === VOID ? this.gv2_1 : recordAttendanceOptions; clazzLogsList = clazzLogsList === VOID ? this.hv2_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.iv2_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.jv2_1 : selectedChipId; viewIdToNumDays = viewIdToNumDays === VOID ? this.kv2_1 : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.lv2_1 : createNewOptionsVisible; return $super === VOID ? this.xv6(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) : $super.xv6.call(this, graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).toString = function () { return 'ClazzLogListAttendanceUiState(graphData=' + this.ev2_1 + ', timeZoneId=' + this.fv2_1 + ', recordAttendanceOptions=' + this.gv2_1 + ', clazzLogsList=' + this.hv2_1 + ', fieldsEnabled=' + this.iv2_1 + ', selectedChipId=' + this.jv2_1 + ', viewIdToNumDays=' + this.kv2_1 + ', createNewOptionsVisible=' + this.lv2_1 + ')'; }; protoOf(ClazzLogListAttendanceUiState).hashCode = function () { var result = this.ev2_1 == null ? 0 : this.ev2_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.fv2_1) | 0; result = imul(result, 31) + hashCode(this.gv2_1) | 0; result = imul(result, 31) + hashCode(this.hv2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iv2_1) | 0; result = imul(result, 31) + this.jv2_1 | 0; result = imul(result, 31) + hashCode(this.kv2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lv2_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.ev2_1, tmp0_other_with_cast.ev2_1)) return false; if (!(this.fv2_1 === tmp0_other_with_cast.fv2_1)) return false; if (!equals(this.gv2_1, tmp0_other_with_cast.gv2_1)) return false; if (!equals(this.hv2_1, tmp0_other_with_cast.hv2_1)) return false; if (!(this.iv2_1 === tmp0_other_with_cast.iv2_1)) return false; if (!(this.jv2_1 === tmp0_other_with_cast.jv2_1)) return false; if (!equals(this.kv2_1, tmp0_other_with_cast.kv2_1)) return false; if (!(this.lv2_1 === tmp0_other_with_cast.lv2_1)) return false; return true; }; function ClazzLogEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda).hv7 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.hv7(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditViewModel$slambda$slambda).ony = function (it, completion) { var i = new ClazzLogEditViewModel$slambda$slambda(completion); i.gv7_1 = it; return i; }; function ClazzLogEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzLogEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.hv7(it, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.qv7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda_1).rv7 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.rv7($completion); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = new ClazzLog(); this_0.ba5_1 = this.qv7_1.sv8_1; this_0.ca5_1 = systemTimeInMillis(); return this_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).f79 = function (completion) { return new ClazzLogEditViewModel$slambda$slambda_1(this.qv7_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.rv7($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.qv8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel...' call var nextValue = prevValue.xv8(VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_140() { this.yv8_1 = 'ClazzLogEdit'; } var Companion_instance_189; function Companion_getInstance_157() { return Companion_instance_189; } function ClazzLogEditViewModel$slambda(this$0, resultContinuation) { this.hv9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_36.h4s(); var tmp_1 = ClazzLogEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzLogEditViewModel$slambda$slambda_2(this.hv9_1, null); suspendResult = this.hv9_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzLogEditViewModel$slambda$lambda(this.hv9_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.hv9_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.hv9_1.pqn().coj(strings_getInstance().rmj_1); var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, ClazzLogEditViewModel$onClickSave$ref(this.hv9_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.hv9_1.qv8_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.xv8(true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogEditViewModel$slambda(this.hv9_1, completion); i.iv9_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.rv9_1 = $commitDelay; this.sv9_1 = $entity; this.tv9_1 = $this; this.uv9_1 = $key; this.vv9_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.rv9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.sv9_1 == null)) { this.hd_1 = 2; suspendResult = this.tv9_1.vqn(this.tv9_1.pqm_1, this.uv9_1, this.vv9_1, this.sv9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogEditViewModel$onEntityChanged$slambda(this.rv9_1, this.sv9_1, this.tv9_1, this.uv9_1, this.vv9_1, completion); i.wv9_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$onClickSave$lambda($this$shallowCopy) { $this$shallowCopy.aa5_1 = generateUid($this$shallowCopy); return Unit_instance; } function ClazzLogEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ClazzLogEdit'); var tmp = this; Companion_getInstance_125(); var tmp0_elvis_lhs = savedStateHandle.ba('timeZone'); tmp.pv8_1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; this.qv8_1 = MutableStateFlow(new ClazzLogEditUiState(VOID, VOID, this.pv8_1)); this.rv8_1 = asStateFlow(this.qv8_1); var tmp_0 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.sv8_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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().qn9_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$slambda_0(this, null)); } protoOf(ClazzLogEditViewModel).xv9 = function (clazzLog) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qv8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.uv8_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ca5_1; var nextValue = prevValue.xv8(VOID, clazzLog, VOID, this.aqu(tmp, clazzLog == null ? null : clazzLog.ca5_1, prevValue.wv8_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_36.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_0 = this; var tmp_1 = this.gqn(); tmp_0.wqs_1 = launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$onEntityChanged$slambda_0(commitDelay, clazzLog, this, key, serializer, null)); }; protoOf(ClazzLogEditViewModel).os5 = function () { var tmp0_elvis_lhs = this.qv8_1.t2().uv8_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var clazzLog = tmp; var errorMsg = !isDateSet(clazzLog.ca5_1) ? strings_getInstance().rmn_1 : clazzLog.ca5_1.c7(systemTimeInMillis()) > 0 ? strings_getInstance().snm_1 : null; if (!(errorMsg == null)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qv8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onClickSave.' call var nextValue = prevValue.xv8(VOID, VOID, VOID, this.pqn().coj(errorMsg)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } var clazzLogWithUid = shallowCopy_6(clazzLog, ClazzLogEditViewModel$onClickSave$lambda); var newClazzLogJson = this.g4s().l46(Companion_instance_36.h4s(), clazzLogWithUid); var tmp_0 = to('newclazzlog', newClazzLogJson); Companion_getInstance_125(); this.rqm_1.dp6('EditAttendance', mapOf([tmp_0, to('clazzUid', this.sv8_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.tv8_1 = fieldsEnabled; this.uv8_1 = clazzLog; this.vv8_1 = timeZone; this.wv8_1 = dateError; } protoOf(ClazzLogEditUiState).yv9 = function (fieldsEnabled, clazzLog, timeZone, dateError) { return new ClazzLogEditUiState(fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).xv8 = function (fieldsEnabled, clazzLog, timeZone, dateError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.tv8_1 : fieldsEnabled; clazzLog = clazzLog === VOID ? this.uv8_1 : clazzLog; timeZone = timeZone === VOID ? this.vv8_1 : timeZone; dateError = dateError === VOID ? this.wv8_1 : dateError; return $super === VOID ? this.yv9(fieldsEnabled, clazzLog, timeZone, dateError) : $super.yv9.call(this, fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).toString = function () { return 'ClazzLogEditUiState(fieldsEnabled=' + this.tv8_1 + ', clazzLog=' + this.uv8_1 + ', timeZone=' + this.vv8_1 + ', dateError=' + this.wv8_1 + ')'; }; protoOf(ClazzLogEditUiState).hashCode = function () { var result = getBooleanHashCode(this.tv8_1); result = imul(result, 31) + (this.uv8_1 == null ? 0 : this.uv8_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.vv8_1) | 0; result = imul(result, 31) + (this.wv8_1 == null ? 0 : getStringHashCode(this.wv8_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.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; if (!(this.wv8_1 == tmp0_other_with_cast.wv8_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.ca5_1; // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var tmp$ret$1 = b.ca5_1; return compareValues(tmp, tmp$ret$1); } function ClazzLogEditAttendanceViewModel$slambda$slambda(this$0, $newClazzLogVal, resultContinuation) { this.hva_1 = this$0; this.iva_1 = $newClazzLogVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).kva = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).he = function (p1, $completion) { return this.kva(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.jva_1.g7f(); suspendResult = tmp_0.da4(this.hva_1.nvb_1, 8, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var dbLogList = suspendResult; var tmp_1; if (!(this.iva_1 == null)) { var this_0 = plus(dbLogList, listOf_0(this.iva_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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).ony = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda(this.hva_1, this.iva_1, completion); i.jva_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.kva(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).wvb = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).g79 = function ($completion) { return this.wvb($completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).f79 = 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.wvb($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.ivb_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var nextValue = prevValue.dvc(VOID, VOID, it == null ? emptyList() : it, VOID, $hasEditPermission); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$slambda$slambda_3(this$0, resultContinuation) { this.mvc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.mvc_1.lqn().i7e().w8d(this.mvc_1.ivb_1.t2().ovc().ba5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var timeZone = suspendResult; l$ret$1: do { var this_0 = this.mvc_1.ivb_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dvc(VOID, VOID, VOID, VOID, VOID, timeZone == null ? 'UTC' : timeZone); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda_3(this.mvc_1, completion); i.nvc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); 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.x9z_1; if (tmp_1 === 1) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$0 = count; } tmp.ha5_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.x9z_1; if (tmp_4 === 2) { count_0 = count_0 + 1 | 0; checkCountOverflow(count_0); } } tmp$ret$2 = count_0; } tmp_2.ia5_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.x9z_1; if (tmp_7 === 4) { count_1 = count_1 + 1 | 0; checkCountOverflow(count_1); } } tmp$ret$4 = count_1; } tmp_5.ja5_1 = tmp$ret$4; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this$0, $clazzLogsToSave, $attendanceRecordsToSave, resultContinuation) { this.xvc_1 = this$0; this.yvc_1 = $clazzLogsToSave; this.zvc_1 = $attendanceRecordsToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.xvc_1.lqn().g7f().ga4(this.yvc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.xvc_1.lqn().f7f().a9z(this.zvc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this.xvc_1, this.yvc_1, this.zvc_1, completion); i.avd_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.nny(it, $completion); }; l.$arity = 1; return l; } function _get_newClazzLog__zdra0r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kvb_1; newClazzLog$factory(); return this_0.t2(); } function _set_currentClazzLogIndex__l00dbq($this, value) { $this.pqm_1.tqi('activeIndex', toString_0(value)); } function _get_currentClazzLogIndex__yy31c2($this) { var tmp0_safe_receiver = $this.pqm_1.ba('activeIndex'); return tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); } function savePersonAndAttendanceRecords($this, clazzLogUid, records, $completion) { var tmp = new $savePersonAndAttendanceRecordsCOROUTINE$71($this, clazzLogUid, records, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function commitAttendanceRecordsToState($this, $completion) { var tmp = new $commitAttendanceRecordsToStateCOROUTINE$72($this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_141() { this.dve_1 = 'newclazzlog'; this.eve_1 = 'EditAttendance'; this.fve_1 = 'activeIndex'; this.gve_1 = 'log_'; this.hve_1 = 'logsToSave'; } var Companion_instance_190; function Companion_getInstance_158() { return Companion_instance_190; } function sam$kotlin_Comparator$0_2(function_0) { this.ive_1 = function_0; } protoOf(sam$kotlin_Comparator$0_2).pa = function (a, b) { return this.ive_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.g4s().m46(Companion_instance_36.h4s(), tmp0_safe_receiver); } return tmp; }; } function ClazzLogEditAttendanceViewModel$slambda(this$0, resultContinuation) { this.rve_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.sve_1.i7g(); var tmp_1 = this.rve_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ddl(tmp_1, this.rve_1.nvb_1, new Long(32, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).ony = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda(this.rve_1, completion); i.sve_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.as8(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda_1(this$0, resultContinuation) { this.bvf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.dvf_1 = _get_newClazzLog__zdra0r(this.bvf_1); this.hd_1 = 1; var tmp_0 = this.bvf_1.jqn().i7g(); var tmp_1 = this.bvf_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ddl(tmp_1, this.bvf_1.nvb_1, new Long(64, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.evf_1 = suspendResult; this.hd_1 = 2; var tmp_2 = ListSerializer(Companion_instance_36.h4s()); var tmp_3 = ClazzLogEditAttendanceViewModel$slambda$slambda_0(this.bvf_1, this.dvf_1, null); var tmp_4 = ClazzLogEditAttendanceViewModel$slambda$slambda_2(null); suspendResult = this.bvf_1.zqn(tmp_2, VOID, VOID, tmp_3, tmp_4, ClazzLogEditAttendanceViewModel$slambda$lambda(this.bvf_1, this.evf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: launch(this.cvf_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda$slambda_4(this.bvf_1, null)); var currentClazzLogIndexVal = _get_currentClazzLogIndex__yy31c2(this.bvf_1); var tmp_5; if (!(currentClazzLogIndexVal == null)) { tmp_5 = currentClazzLogIndexVal; } else if (!(this.dvf_1 == null)) { var tmp0_elvis_lhs = this.bvf_1.ivb_1.t2().fvf(this.dvf_1.aa5_1); tmp_5 = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; } else if (!this.bvf_1.xqs_1.equals(new Long(0, 0))) { var tmp1_elvis_lhs = this.bvf_1.ivb_1.t2().fvf(this.bvf_1.xqs_1); tmp_5 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; } else { tmp_5 = this.bvf_1.ivb_1.t2().zvb_1.u() - 1 | 0; } var startIndex = tmp_5; this.bvf_1.gvf(this.bvf_1.ivb_1.t2().zvb_1.v(startIndex), true); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda_1(this.bvf_1, completion); i.cvf_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda($clazzLog, this$0, resultContinuation) { this.pvf_1 = $clazzLog; this.qvf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 9; this.svf_1 = 'log_' + this.pvf_1.aa5_1.toString(); this.hd_1 = 1; suspendResult = this.qvf_1.uqn(this.qvf_1.pqm_1, this.svf_1, ListSerializer(Companion_instance_38.h4s()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tvf_1 = suspendResult; if (this.tvf_1 == null) { this.hd_1 = 2; suspendResult = this.qvf_1.lqn().f7f().z9y(this.pvf_1.ba5_1, this.pvf_1.aa5_1, this.pvf_1.ca5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.uvf_1 = this.tvf_1; this.hd_1 = 8; continue $sm; } case 2: this.vvf_1 = suspendResult; var tmp_0 = this; tmp_0.wvf_1 = this.vvf_1; var tmp_1 = this; tmp_1.xvf_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.vvf_1, 10)); this.yvf_1 = this.wvf_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.yvf_1.f()) { this.hd_1 = 6; continue $sm; } this.zvf_1 = this.yvf_1.e(); var tmp_2 = this; tmp_2.avg_1 = this.zvf_1; if (this.avg_1.ra0_1 == null) { this.cvg_1 = this.avg_1.pa0_1; var tmp_3 = this; tmp_3.dvg_1 = new ClazzLogAttendanceRecord(); var tmp_4 = this; tmp_4.evg_1 = this.dvg_1; this.hd_1 = 4; var tmp_5 = get_doorPrimaryKeyManager(this.qvf_1.jqn()); suspendResult = tmp_5.i63(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_6 = this; tmp_6.bvg_1 = this.avg_1; this.hd_1 = 5; continue $sm; } case 4: this.fvg_1 = suspendResult; this.evg_1.u9z_1 = this.fvg_1; var tmp_7 = this.evg_1; var tmp0_safe_receiver = this.avg_1.pa0_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z96_1; tmp_7.w9z_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.evg_1.v9z_1 = this.pvf_1.aa5_1; this.gvg_1 = this.dvg_1; this.hvg_1 = this.avg_1.qa0_1; this.bvg_1 = new PersonAndClazzLogAttendanceRecord(this.cvg_1, this.hvg_1, this.gvg_1); this.hd_1 = 5; continue $sm; case 5: this.ivg_1 = this.bvg_1; this.xvf_1.i1(this.ivg_1); this.hd_1 = 3; continue $sm; case 6: this.jvg_1 = this.xvf_1; var tmp_8 = this; tmp_8.kvg_1 = this.jvg_1; this.hd_1 = 7; suspendResult = savePersonAndAttendanceRecords(this.qvf_1, this.pvf_1.aa5_1, this.kvg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.uvf_1 = this.jvg_1; this.hd_1 = 8; continue $sm; case 8: var personAndAttendanceRecords = this.uvf_1; l$ret$1: do { var this_0 = this.qvf_1.ivb_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dvc(personAndAttendanceRecords, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.qvf_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_9; if (!prevValue_0.vq5_1.yq4_1) { var tmp_10 = this.qvf_1.ivb_1.t2().bvc_1; var tmp_11 = this.qvf_1.pqn().coj(strings_getInstance().dn3_1); tmp_9 = prevValue_0.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(tmp_10, tmp_11, VOID, ClazzLogEditAttendanceViewModel$onClickSave$ref(this.qvf_1))); } else { tmp_9 = prevValue_0; } var nextValue_0 = tmp_9; if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 9: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 9) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda(this.pvf_1, this.qvf_1, completion); i.rvf_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda($record) { return function (it) { var tmp0_safe_receiver = it.pa0_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z96_1; var tmp1_safe_receiver = $record.pa0_1; return equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z96_1); }; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this$0, resultContinuation) { this.tvg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = commitAttendanceRecordsToState(this.tvg_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this.tvg_1, completion); i.uvg_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$lambda($status) { return function ($this$shallowCopy) { $this$shallowCopy.x9z_1 = $status; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this$0, resultContinuation) { this.dvh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = commitAttendanceRecordsToState(this.dvh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this.dvh_1, completion); i.evh_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda(this$0, resultContinuation) { this.nvh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 11; this.hd_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.pvh_1 = this.nvh_1.mvb_1; var tmp_1 = this; tmp_1.qvh_1 = null; this.hd_1 = 2; suspendResult = this.pvh_1.u24(this.qvh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; continue $sm; case 3: this.id_1 = 10; var tmp_2 = this; tmp_2.svh_1 = ArrayList_init_$Create$(); var tmp_3 = this; tmp_3.tvh_1 = ArrayList_init_$Create$(); this.hd_1 = 4; suspendResult = this.nvh_1.uqn(this.nvh_1.pqm_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.uvh_1 = suspendResult; this.vvh_1 = this.uvh_1 == null ? emptyList() : this.uvh_1; var tmp_4 = this; tmp_4.wvh_1 = this.vvh_1; this.xvh_1 = this.wvh_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.xvh_1.f()) { this.hd_1 = 7; continue $sm; } this.yvh_1 = this.xvh_1.e(); var tmp_5 = this; tmp_5.zvh_1 = this.yvh_1; var tmp_6 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.nvh_1.ivb_1.t2().zvb_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.aa5_1.equals(this.zvh_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.avi_1 = tmp$ret$0; this.hd_1 = 6; suspendResult = this.nvh_1.uqn(this.nvh_1.pqm_1, 'log_' + this.zvh_1.toString(), ListSerializer(Companion_instance_38.h4s()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.bvi_1 = suspendResult; var tmp_7 = this; var tmp_8; if (this.bvi_1 == null) { tmp_8 = null; } else { var this_0 = this.bvi_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.ra0_1; if (tmp0_safe_receiver == null) null; else { destination.i1(tmp0_safe_receiver); } } tmp_8 = destination; } tmp_7.cvi_1 = tmp_8; this.dvi_1 = this.cvi_1 == null ? emptyList() : this.cvi_1; var this_1 = this.svh_1; var element_1 = shallowCopy_6(this.avi_1, ClazzLogEditAttendanceViewModel$onClickSave$slambda$lambda(this.dvi_1)); this_1.i1(element_1); var this_2 = this.tvh_1; var elements = this.dvi_1; addAll(this_2, elements); this.hd_1 = 5; continue $sm; case 7: this.hd_1 = 8; var tmp_9 = this.nvh_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda_0(this.nvh_1, this.svh_1, this.tvh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.rvh_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 9: this.id_1 = 11; this.pvh_1.f24(this.qvh_1); if (!(_get_newClazzLog__zdra0r(this.nvh_1) == null)) { this.nvh_1.rqm_1.cq9('ClazzLogEdit', true); } else { this.nvh_1.aqt(this.nvh_1.ivb_1.t2().ovc()); } return Unit_instance; case 10: this.id_1 = 11; var t = this.kd_1; this.pvh_1.f24(this.qvh_1); throw t; case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda(this.nvh_1, completion); i.ovh_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function $savePersonAndAttendanceRecordsCOROUTINE$71(_this__u8e3s4, clazzLogUid, records, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jvd_1 = _this__u8e3s4; this.kvd_1 = clazzLogUid; this.lvd_1 = records; } protoOf($savePersonAndAttendanceRecordsCOROUTINE$71).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.mvd_1 = 'log_' + this.kvd_1.toString(); this.hd_1 = 1; suspendResult = this.jvd_1.vqn(this.jvd_1.pqm_1, this.mvd_1, ListSerializer(Companion_instance_38.h4s()), this.lvd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.jvd_1.uqn(this.jvd_1.pqm_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.nvd_1 = suspendResult; this.ovd_1 = this.nvd_1 == null ? null : toSet(this.nvd_1); this.pvd_1 = this.ovd_1 == null ? emptySet() : this.ovd_1; if (!this.pvd_1.a1(this.kvd_1)) { this.qvd_1 = plus_2(this.pvd_1, this.kvd_1); this.hd_1 = 3; suspendResult = this.jvd_1.vqn(this.jvd_1.pqm_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), toList(this.qvd_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $commitAttendanceRecordsToStateCOROUTINE$72(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zvd_1 = _this__u8e3s4; } protoOf($commitAttendanceRecordsToStateCOROUTINE$72).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; var tmp_0 = this; tmp_0.ave_1 = this.zvd_1.mvb_1; var tmp_1 = this; tmp_1.bve_1 = null; this.hd_1 = 1; suspendResult = this.ave_1.u24(this.bve_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 5; this.hd_1 = 3; suspendResult = savePersonAndAttendanceRecords(this.zvd_1, this.zvd_1.ivb_1.t2().ovc().aa5_1, this.zvd_1.ivb_1.t2().xvb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.cve_1 = suspendResult; this.id_1 = 6; this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.ave_1.f24(this.bve_1); return Unit_instance; case 5: this.id_1 = 6; var t = this.kd_1; this.ave_1.f24(this.bve_1); throw t; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ClazzLogEditAttendanceViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EditAttendance'); this.ivb_1 = MutableStateFlow(new ClazzLogEditAttendanceUiState()); this.jvb_1 = asStateFlow(this.ivb_1); var tmp = this; tmp.kvb_1 = lazy_0(ClazzLogEditAttendanceViewModel$newClazzLog$delegate$lambda(savedStateHandle, this)); this.lvb_1 = null; this.mvb_1 = Mutex(); var tmp_0 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.nvb_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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().smu_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzLogEditAttendanceViewModel$slambda_0(this, null); this.bqo(tmp_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda_2(this, null)); } protoOf(ClazzLogEditAttendanceViewModel).gvf = function (clazzLog, forceLoad) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = this.ivb_1.t2().zvb_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onChangeClazzLog.' call if (item.aa5_1.equals(clazzLog.aa5_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.ivb_1.t2().yvb_1 : false) return Unit_instance; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ivb_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.zvb_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.aa5_1.equals(clazzLog.aa5_1)) { tmp$ret$3 = index_0; break $l$block_0; } index_0 = index_0 + 1 | 0; } tmp$ret$3 = -1; } var nextValue = prevValue.dvc(VOID, tmp$ret$3, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block_1; } } } var tmp0_safe_receiver = this.lvb_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.lvb_1 = launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda_0(clazzLog, this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).evi = function (clazzLog, forceLoad, $super) { forceLoad = forceLoad === VOID ? false : forceLoad; var tmp; if ($super === VOID) { this.gvf(clazzLog, forceLoad); tmp = Unit_instance; } else { tmp = $super.gvf.call(this, clazzLog, forceLoad); } return tmp; }; protoOf(ClazzLogEditAttendanceViewModel).fvi = function (record) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ivb_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClazzLogAttendanceChanged.' call var nextValue = prevValue.dvc(replace_0(prevValue.xvb_1, record, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda(record))); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp = this.gqn(); launch(tmp, VOID, VOID, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).gvi = function (status) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ivb_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.xvb_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.ra0_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.zk9(VOID, VOID, tmp); destination.i1(tmp$ret$0); } var nextValue = prevValue.dvc(destination); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).os5 = function () { var tmp = this.gqn(); 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.xvb_1 = clazzLogAttendanceRecordList; this.yvb_1 = currentClazzLogIndex; this.zvb_1 = clazzLogsList; this.avc_1 = fieldsEnabled; this.bvc_1 = canEdit; this.cvc_1 = timeZone; } protoOf(ClazzLogEditAttendanceUiState).fvf = 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.zvb_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceUiState.indexOfClazzLogUid.' call if (item.aa5_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).ovc = function () { return this.zvb_1.v(this.yvb_1); }; protoOf(ClazzLogEditAttendanceUiState).hvi = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) { return new ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).dvc = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone, $super) { clazzLogAttendanceRecordList = clazzLogAttendanceRecordList === VOID ? this.xvb_1 : clazzLogAttendanceRecordList; currentClazzLogIndex = currentClazzLogIndex === VOID ? this.yvb_1 : currentClazzLogIndex; clazzLogsList = clazzLogsList === VOID ? this.zvb_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.avc_1 : fieldsEnabled; canEdit = canEdit === VOID ? this.bvc_1 : canEdit; timeZone = timeZone === VOID ? this.cvc_1 : timeZone; return $super === VOID ? this.hvi(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) : $super.hvi.call(this, clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).toString = function () { return 'ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList=' + this.xvb_1 + ', currentClazzLogIndex=' + this.yvb_1 + ', clazzLogsList=' + this.zvb_1 + ', fieldsEnabled=' + this.avc_1 + ', canEdit=' + this.bvc_1 + ', timeZone=' + this.cvc_1 + ')'; }; protoOf(ClazzLogEditAttendanceUiState).hashCode = function () { var result = hashCode(this.xvb_1); result = imul(result, 31) + this.yvb_1 | 0; result = imul(result, 31) + hashCode(this.zvb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.avc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.bvc_1) | 0; result = imul(result, 31) + getStringHashCode(this.cvc_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.xvb_1, tmp0_other_with_cast.xvb_1)) return false; if (!(this.yvb_1 === tmp0_other_with_cast.yvb_1)) return false; if (!equals(this.zvb_1, tmp0_other_with_cast.zvb_1)) return false; if (!(this.avc_1 === tmp0_other_with_cast.avc_1)) return false; if (!(this.bvc_1 === tmp0_other_with_cast.bvc_1)) return false; if (!(this.cvc_1 === tmp0_other_with_cast.cvc_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().wno_1; break; case 4: tmp = strings_getInstance().xno_1; break; case 3: tmp = strings_getInstance().yno_1; break; case 2: tmp = strings_getInstance().zno_1; break; case 1: tmp = strings_getInstance().anp_1; break; case 0: tmp = strings_getInstance().bnp_1; break; default: noWhenBranchMatchedException(); break; } return tmp; } function get_contentTypeStringResource(_this__u8e3s4) { var tmp; if (!_this__u8e3s4.waw_1) { tmp = strings_getInstance().dnd_1; } else { var tmp0_subject = _this__u8e3s4.bax_1; var tmp_0; if (tmp0_subject === 1) { tmp_0 = strings_getInstance().xmm_1; } else { if (tmp0_subject === 2) { tmp_0 = strings_getInstance().vmm_1; } else { if (tmp0_subject === 3) { tmp_0 = strings_getInstance().wmm_1; } else { if (tmp0_subject === 4) { tmp_0 = strings_getInstance().ina_1; } else { if (tmp0_subject === 5) { tmp_0 = strings_getInstance().amn_1; } else { if (tmp0_subject === 6) { tmp_0 = strings_getInstance().ymm_1; } else { if (tmp0_subject === 7) { tmp_0 = strings_getInstance().zmm_1; } else { tmp_0 = strings_getInstance().dmi_1; } } } } } } } tmp = tmp_0; } return tmp; } function Companion_142() { Companion_instance_191 = this; this.ivi_1 = 'ContentEntry'; var tmp = this; Companion_getInstance_125(); Companion_getInstance_125(); Companion_getInstance_125(); Companion_getInstance_125(); tmp.jvi_1 = listOf(['entityUid', 'clazzUid', 'parentUid', 'courseBlockUid']); } var Companion_instance_191; function Companion_getInstance_159() { if (Companion_instance_191 == null) new Companion_142(); return Companion_instance_191; } function ContentEntryDetailViewModel(di, savedStateHandle) { Companion_getInstance_159(); 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.dqo(this_0, Companion_getInstance_159().jvi_1); var tmp$ret$2 = this_0.f3(); var tmp_0 = new TabItem('ContentEntryDetailOverviewView', tmp$ret$2, this.pqn().coj(strings_getInstance().xn4_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.dqo(this_1, Companion_getInstance_159().jvi_1); var tmp$ret$5 = this_1.f3(); tmp.gvj_1 = MutableStateFlow(new ContentEntryDetailUiState(listOf([tmp_0, new TabItem('ContentEntryDetailAttemptsPersonList', tmp$ret$5, this.pqn().coj(strings_getInstance().hmn_1))]))); this.hvj_1 = asStateFlow(this.gvj_1); } function ContentEntryDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.ivj_1 = tabs; } protoOf(ContentEntryDetailUiState).toString = function () { return 'ContentEntryDetailUiState(tabs=' + this.ivj_1 + ')'; }; protoOf(ContentEntryDetailUiState).hashCode = function () { return hashCode(this.ivj_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.ivj_1, tmp0_other_with_cast.ivj_1)) return false; return true; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.rvj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).tvj = function (contentEntry, $completion) { var tmp = this.uvj(contentEntry, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.tvj((p1 == null ? true : p1 instanceof ContentEntry) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.rvj_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.svj_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iaw_1; var nextValue = prevValue.cq6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).uvj = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this.rvj_1, completion); i.svj_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.tvj(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this$0, resultContinuation) { this.dvk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.dvk_1.lqn().p7e().sav(this.dvk_1.evl_1); var tmp_1 = ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda_0(this.dvk_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).f79 = function (completion) { return new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this.dvk_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.d88($completion); }; l.$arity = 0; return l; } function buildSortOptions($this, db, $completion) { var tmp = new $buildSortOptionsCOROUTINE$73($this, db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_143() { this.qvl_1 = 'ContentEntryDetailAttemptsPersonList'; } var Companion_instance_192; function Companion_getInstance_160() { return Companion_instance_192; } function sam$kotlinx_coroutines_flow_FlowCollector$0_22(function_0) { this.rvl_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_22).n1e = function (value, $completion) { return this.rvl_1(value, $completion); }; function ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this$0) { return function () { return this$0.lqn().d7f().nje(this$0.evl_1, this$0.hqn(), toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_1), this$0.kqv_1.t2().uvl_1.jqc_1); }; } function ContentEntryDetailAttemptsPersonListViewModel$slambda(this$0, resultContinuation) { this.evm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; tmp_0.gvm_1 = filterNotNull(listOf([this.evm_1.jqn(), this.evm_1.kqn()])); this.hvm_1 = this.gvm_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.hvm_1.f()) { this.hd_1 = 3; continue $sm; } this.ivm_1 = this.hvm_1.e(); var tmp_1 = this; tmp_1.jvm_1 = this.ivm_1; this.hd_1 = 2; suspendResult = buildSortOptions(this.evm_1, this.jvm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var sortOptions = suspendResult; l$ret$1: do { var this_0 = this.evm_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.kvm(VOID, sortOptions); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 1; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda(this.evm_1, completion); i.fvm_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this$0, resultContinuation) { this.tvm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.tvm_1.kqv_1, ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda_0(this.tvm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this.tvm_1, completion); i.uvm_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function $buildSortOptionsCOROUTINE$73(_this__u8e3s4, db, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ovl_1 = _this__u8e3s4; this.pvl_1 = db; } protoOf($buildSortOptionsCOROUTINE$73).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.pvl_1.d7f().rje(this.ovl_1.evl_1, this.ovl_1.hqn(), 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.vjf_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.gjf_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().ymj_1; var tmp_4 = new SortOrderOption(tmp_3, 1, true); var tmp_5 = strings_getInstance().ymj_1; var tmp_6 = new SortOrderOption(tmp_5, 2, false); var tmp_7 = strings_getInstance().xmj_1; var tmp_8 = new SortOrderOption(tmp_7, 3, true); var tmp_9 = strings_getInstance().xmj_1; this_0.m1(listOf([tmp_4, tmp_6, tmp_8, new SortOrderOption(tmp_9, 4, false)])); if (hasScoreData) { var tmp_10 = strings_getInstance().amk_1; var tmp_11 = new SortOrderOption(tmp_10, 5, true); var tmp_12 = strings_getInstance().amk_1; this_0.m1(listOf([tmp_11, new SortOrderOption(tmp_12, 6, false)])); } if (hasProgressData) { var tmp_13 = strings_getInstance().tnq_1; var tmp_14 = new SortOrderOption(tmp_13, 7, true); var tmp_15 = strings_getInstance().tnq_1; this_0.m1(listOf([tmp_14, new SortOrderOption(tmp_15, 8, false)])); } var tmp_16 = strings_getInstance().fnl_1; var tmp_17 = new SortOrderOption(tmp_16, 10, null); var tmp_18 = strings_getInstance().zmj_1; this_0.m1(listOf([tmp_17, new SortOrderOption(tmp_18, 9, null)])); return this_0.f3(); case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_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_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.evl_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.fvl_1 = ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.tqw()); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kqv_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue_0 = prevValue_0.kvm(this.fvl_1); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_0(this, null)); var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_2(this, null)); } protoOf(ContentEntryDetailAttemptsPersonListViewModel).vvm = function (entry) { Companion_getInstance_116(); var tmp = to('personUid', entry.qjg_1.z96_1.toString()); Companion_getInstance_116(); this.rqm_1.dp6('ContentEntryDetailAttemptsSessionList', mapOf([tmp, to('entryid', this.evl_1.toString())])); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).fqw = function () { }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).bsv = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.kvm(VOID, VOID, sortOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(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().fnl_1; var tmp_2 = new SortOrderOption(tmp_1, 10, null); var tmp_3 = strings_getInstance().zmj_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.svl_1 = attemptsPersonList; this.tvl_1 = sortOptions; this.uvl_1 = sortOption; this.vvl_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsPersonListUiState).wvm = function (attemptsPersonList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).kvm = function (attemptsPersonList, sortOptions, sortOption, showSortOptions, $super) { attemptsPersonList = attemptsPersonList === VOID ? this.svl_1 : attemptsPersonList; sortOptions = sortOptions === VOID ? this.tvl_1 : sortOptions; sortOption = sortOption === VOID ? this.uvl_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.vvl_1 : showSortOptions; return $super === VOID ? this.wvm(attemptsPersonList, sortOptions, sortOption, showSortOptions) : $super.wvm.call(this, attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).toString = function () { return 'ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList=' + this.svl_1 + ', sortOptions=' + this.tvl_1 + ', sortOption=' + this.uvl_1 + ', showSortOptions=' + this.vvl_1 + ')'; }; protoOf(ContentEntryDetailAttemptsPersonListUiState).hashCode = function () { var result = hashCode(this.svl_1); result = imul(result, 31) + hashCode(this.tvl_1) | 0; result = imul(result, 31) + this.uvl_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.vvl_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.svl_1, tmp0_other_with_cast.svl_1)) return false; if (!equals(this.tvl_1, tmp0_other_with_cast.tvl_1)) return false; if (!this.uvl_1.equals(tmp0_other_with_cast.uvl_1)) return false; if (!(this.vvl_1 === tmp0_other_with_cast.vvl_1)) return false; return true; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this$0, resultContinuation) { this.fvn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).hvn = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).he = function (p1, $completion) { return this.hvn((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = firstOrNull_1(this.fvn_1.lqn().h7e().kg5(this.fvn_1.jvo_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).p1n = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this.fvn_1, completion); i.gvn_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.hvn($this$async, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.tvo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).vvo = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.vvo((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = firstOrNull_1(this.tvo_1.lqn().p7e().sav(this.tvo_1.ivo_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).p1n = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this.tvo_1, completion); i.uvo_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.vvo($this$async, $completion); }; l.$arity = 1; return l; } function Companion_144() { this.wvo_1 = 'ContentEntryDetailAttemptsSessionList'; } var Companion_instance_193; function Companion_getInstance_161() { return Companion_instance_193; } function ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this$0) { return function () { return this$0.lqn().d7f().oje(this$0.ivo_1, this$0.jvo_1, this$0.hqn(), this$0.kqv_1.t2().zvo_1.jqc_1); }; } function ContentEntryDetailAttemptsSessionListViewModel$slambda(this$0, resultContinuation) { this.jvp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; tmp_0.lvp_1 = async(this.kvp_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_0(this.jvp_1, null)); var tmp_1 = this; tmp_1.mvp_1 = async(this.kvp_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_2(this.jvp_1, null)); this.hd_1 = 1; suspendResult = this.lvp_1.hw(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.nvp_1 = suspendResult; this.hd_1 = 2; suspendResult = this.mvp_1.hw(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var contentEntry = suspendResult; var tmp0_safe_receiver = this.nvp_1; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tg9_1; var tmp1_safe_receiver = this.nvp_1; var tmp_3 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ug9_1; var tmp3_elvis_lhs = contentEntry == null ? null : contentEntry.iaw_1; var combinedTitle = '' + tmp_2 + ' ' + tmp_3 + ' - ' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs); l$ret$1: do { var this_0 = this.jvp_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(VOID, VOID, combinedTitle); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda(this.jvp_1, completion); i.kvp_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.o1n($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_116(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ivo_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_116(); 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.jvo_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.kvo_1 = ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.' call var nextValue = prevValue.ovp(this.kvo_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsSessionListViewModel).pvp = function (entry) { Companion_getInstance_116(); var tmp = to('personUid', this.jvo_1.toString()); Companion_getInstance_116(); var tmp_0 = to('entryid', this.ivo_1.toString()); Companion_getInstance_116(); var tmp_1 = to('contextRegistrationIdHi', entry.aji_1.toString()); Companion_getInstance_116(); this.rqm_1.dp6('ContentEntryDetailAttemptsStatementList', mapOf([tmp, tmp_0, tmp_1, to('contextRegistrationIdLo', entry.bji_1.toString())])); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).bsv = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.onSortOrderChanged.' call var tmp0_attemptsSessionList = this.kvo_1; var nextValue = prevValue.ovp(tmp0_attemptsSessionList, VOID, sortOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).eqw = function (searchText) { }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).fqw = 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().fnl_1; var tmp_2 = new SortOrderOption(tmp_1, 1, null); var tmp_3 = strings_getInstance().zmj_1; var tmp_4 = new SortOrderOption(tmp_3, 2, null); var tmp_5 = strings_getInstance().amk_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().amk_1; var tmp_8 = new SortOrderOption(tmp_7, 4, false); var tmp_9 = strings_getInstance().bmk_1; var tmp_10 = new SortOrderOption(tmp_9, 5, true); var tmp_11 = strings_getInstance().bmk_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.xvo_1 = attemptsSessionList; this.yvo_1 = sortOptions; this.zvo_1 = sortOption; this.avp_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsSessionListUiState).qvp = function (attemptsSessionList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).ovp = function (attemptsSessionList, sortOptions, sortOption, showSortOptions, $super) { attemptsSessionList = attemptsSessionList === VOID ? this.xvo_1 : attemptsSessionList; sortOptions = sortOptions === VOID ? this.yvo_1 : sortOptions; sortOption = sortOption === VOID ? this.zvo_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.avp_1 : showSortOptions; return $super === VOID ? this.qvp(attemptsSessionList, sortOptions, sortOption, showSortOptions) : $super.qvp.call(this, attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).toString = function () { return 'ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList=' + this.xvo_1 + ', sortOptions=' + this.yvo_1 + ', sortOption=' + this.zvo_1 + ', showSortOptions=' + this.avp_1 + ')'; }; protoOf(ContentEntryDetailAttemptsSessionListUiState).hashCode = function () { var result = hashCode(this.xvo_1); result = imul(result, 31) + hashCode(this.yvo_1) | 0; result = imul(result, 31) + this.zvo_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.avp_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.xvo_1, tmp0_other_with_cast.xvo_1)) return false; if (!equals(this.yvo_1, tmp0_other_with_cast.yvo_1)) return false; if (!this.zvo_1.equals(tmp0_other_with_cast.zvo_1)) return false; if (!(this.avp_1 === tmp0_other_with_cast.avp_1)) return false; return true; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.zvp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).bvq = function (verbs, $completion) { var tmp = this.cvq(verbs, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.bvq((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.zvp_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jvq(VOID, VOID, VOID, VOID, this.avq_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).cvq = function (verbs, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this.zvp_1, completion); i.avq_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.bvq(verbs, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.svq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).tvj = function (contentEntry, $completion) { var tmp = this.uvj(contentEntry, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.tvj((p1 == null ? true : p1 instanceof ContentEntry) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.svq_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.tvq_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iaw_1; var nextValue = prevValue.cq6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).uvj = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this.svq_1, completion); i.tvq_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.tvj(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.cvr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.cvr_1.lqn().d7f().qje(this.cvr_1.fvs_1, this.cvr_1.gvs_1, this.cvr_1.evs_1, this.cvr_1.hvs_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_0(this.cvr_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this.cvr_1, completion); i.dvr_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.svs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.svs_1.lqn().p7e().sav(this.svs_1.hvs_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_2(this.svs_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this.svs_1, completion); i.tvs_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.cvt_1 = $this_launch; this.dvt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.cvt_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_0(this.dvt_1, null)); launch(this.cvt_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_2(this.dvt_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).f79 = function (completion) { return new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda(this.cvt_1, this.dvt_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.d88($completion); }; l.$arity = 0; return l; } function _get_formatStatementResponseUseCase__m72qwj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ivs_1; formatStatementResponseUseCase$factory_0(); return this_0.t2(); } function Companion_145() { this.evt_1 = 'ContentEntryDetailAttemptsStatementList'; } var Companion_instance_194; function Companion_getInstance_162() { return Companion_instance_194; } function sam$kotlinx_coroutines_flow_FlowCollector$0_23(function_0) { this.fvt_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_23).n1e = function (value, $completion) { return this.fvt_1(value, $completion); }; function ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this$0) { return function () { return this$0.lqn().d7f().pje(this$0.fvs_1, this$0.gvs_1, this$0.hqn(), this$0.evs_1, this$0.hvs_1, toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_1), this$0.kqv_1.t2().fvq_1.jqc_1, this$0.kqv_1.t2().ivq_1); }; } function ContentEntryDetailAttemptsStatementListViewModel$slambda(this$0, resultContinuation) { this.ovt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.ovt_1.kqv_1, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda_0(this.pvt_1, this.ovt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda(this.ovt_1, completion); i.pvt_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.o1n($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_116(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.evs_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_116(); 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.fvs_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; Companion_getInstance_116(); 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.gvs_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_2 = this; Companion_getInstance_116(); 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.hvs_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.ivs_1 = Instance(this_0, tmp$ret$0, null).u5d(this, formatStatementResponseUseCase$factory()); var tmp_5 = this; tmp_5.jvs_1 = ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kqv_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue = prevValue.jvq(this.jvs_1); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tqm_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue_0 = prevValue_0.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.sqw(true)); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.gqn(); launch(tmp_6, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsStatementListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).bsv = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onSortOrderChanged.' call var tmp0_attemptsStatementList = this.jvs_1; var nextValue = prevValue.jvq(tmp0_attemptsStatementList, VOID, sortOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).qvt = function (verbEntity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onVerbFilterToggled.' call var nextValue = prevValue.jvq(VOID, VOID, VOID, VOID, VOID, toggle(prevValue.ivq_1, verbEntity.rjj_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).fqw = function () { }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).rvt = function (statementEntity) { return _get_formatStatementResponseUseCase__m72qwj(this).dpx(statementEntity.ljj_1, statementEntity.ojj_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().dmk_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().dmk_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().amk_1; var tmp_6 = new SortOrderOption(tmp_5, 3, false); var tmp_7 = strings_getInstance().amk_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.dvq_1 = attemptsStatementList; this.evq_1 = sortOptions; this.fvq_1 = sortOption; this.gvq_1 = showSortOptions; this.hvq_1 = availableVerbs; this.ivq_1 = deselectedVerbUids; } protoOf(ContentEntryDetailAttemptsStatementListUiState).svt = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) { return new ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).jvq = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids, $super) { attemptsStatementList = attemptsStatementList === VOID ? this.dvq_1 : attemptsStatementList; sortOptions = sortOptions === VOID ? this.evq_1 : sortOptions; sortOption = sortOption === VOID ? this.fvq_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.gvq_1 : showSortOptions; availableVerbs = availableVerbs === VOID ? this.hvq_1 : availableVerbs; deselectedVerbUids = deselectedVerbUids === VOID ? this.ivq_1 : deselectedVerbUids; return $super === VOID ? this.svt(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) : $super.svt.call(this, attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).toString = function () { return 'ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList=' + this.dvq_1 + ', sortOptions=' + this.evq_1 + ', sortOption=' + this.fvq_1 + ', showSortOptions=' + this.gvq_1 + ', availableVerbs=' + this.hvq_1 + ', deselectedVerbUids=' + this.ivq_1 + ')'; }; protoOf(ContentEntryDetailAttemptsStatementListUiState).hashCode = function () { var result = hashCode(this.dvq_1); result = imul(result, 31) + hashCode(this.evq_1) | 0; result = imul(result, 31) + this.fvq_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.gvq_1) | 0; result = imul(result, 31) + hashCode(this.hvq_1) | 0; result = imul(result, 31) + hashCode(this.ivq_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.dvq_1, tmp0_other_with_cast.dvq_1)) return false; if (!equals(this.evq_1, tmp0_other_with_cast.evq_1)) return false; if (!this.fvq_1.equals(tmp0_other_with_cast.fvq_1)) return false; if (!(this.gvq_1 === tmp0_other_with_cast.gvq_1)) return false; if (!equals(this.hvq_1, tmp0_other_with_cast.hvq_1)) return false; if (!equals(this.ivq_1, tmp0_other_with_cast.ivq_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.ujg_1, _this__u8e3s4.tjg_1); } function get_statementSummary_0(_this__u8e3s4) { return new StatementSummaryEntity(_this__u8e3s4.gji_1, _this__u8e3s4.fji_1); } function get_verbDisplayName(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.njj_1; var tmp3_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yjj_1; var tmp; if (tmp3_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.mjj_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.sjj_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.tvt_1 = successful; this.uvt_1 = completed; } protoOf(StatementSummaryEntity).toString = function () { return 'StatementSummaryEntity(successful=' + this.tvt_1 + ', completed=' + this.uvt_1 + ')'; }; protoOf(StatementSummaryEntity).hashCode = function () { var result = this.tvt_1 == null ? 0 : getBooleanHashCode(this.tvt_1); result = imul(result, 31) + getBooleanHashCode(this.uvt_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.tvt_1 == tmp0_other_with_cast.tvt_1)) return false; if (!(this.uvt_1 === tmp0_other_with_cast.uvt_1)) return false; return true; }; function get_descriptionStringRes(_this__u8e3s4) { return _this__u8e3s4.tvt_1 === true ? strings_getInstance().cmm_1 : _this__u8e3s4.tvt_1 === false ? strings_getInstance().bmm_1 : _this__u8e3s4.uvt_1 ? strings_getInstance().gmm_1 : strings_getInstance().fmm_1; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.dvu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).fvu = function (it, $completion) { var tmp = this.gvu(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.fvu((p1 == null ? true : p1 instanceof ContentEntryAndDetail) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.dvu_1.dvv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gvw(VOID, this.evu_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).gvu = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.dvu_1, completion); i.evu_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.fvu(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.pvw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).yrg = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.yrg(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.qvw_1.p7e().oav(this.pvw_1.rvv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).ony = function (db, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this.pvw_1, completion); i.qvw_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.yrg(db, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.zvw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).bvx = function (it, $completion) { var tmp = this.cvx(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.bvx((p1 == null ? true : p1 instanceof ContentEntryVersion) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.zvw_1.dvv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gvw(VOID, VOID, this.avx_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).cvx = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.zvw_1, completion); i.avx_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.bvx(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.lvx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).nvx = function (it, $completion) { var tmp = this.ovx(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.nvx((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.lvx_1.dvv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.mvx_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).ovx = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.lvx_1, completion); i.mvx_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.nvx(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.xvx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).zvx = function (it, $completion) { var tmp = this.avy(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.zvx((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.xvx_1.dvv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.yvx_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).avy = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.xvx_1, completion); i.yvx_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.zvx(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this$0, resultContinuation) { this.jvy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).lvy = function (it, $completion) { var tmp = this.mvy(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).he = function (p1, $completion) { return this.lvy((p1 == null ? true : p1 instanceof OfflineItemAndState) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.jvy_1.dvv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.kvy_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).mvy = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this.jvy_1, completion); i.kvy_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.lvy(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.vvy_1 = this$0; this.wvy_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.vvy_1.lqn().p7e(); Companion_getInstance_125(); var tmp0_safe_receiver = this.wvy_1.ba('courseBlockUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1 = tmp_0.nav(this.vvy_1.jqm_1, this.vvy_1.qvv_1, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.vvy_1.hqn()); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.vvy_1, null); suspendResult = tmp_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda(this.vvy_1, this.wvy_1, completion); i.xvy_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.gvz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; Companion_getInstance_168(); if (this.gvz_1.rvv_1.equals(new Long(1, 0))) { var tmp_0 = this; tmp_0.ivz_1 = this.gvz_1.pqn().coj(strings_getInstance().rni_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.gvz_1.lqn(); suspendResult = localFirstThenRepoIfNull(tmp_1, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(this.gvz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ivz_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var parentTitle = this.ivz_1; l$ret$1: do { var this_0 = this.gvz_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(VOID, VOID, parentTitle); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1(this.gvz_1, completion); i.hvz_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.o1n($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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel....' call var nextValue = prevValue.cq6(VOID, VOID, title); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.rvz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.rvz_1.lqn().c7g().bbr(this.rvz_1.jqm_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.rvz_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this.rvz_1, completion); i.svz_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.bw0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.bw0_1.jqn().d7g(); var tmp_1 = tmp_0.kic(this.bw0_1.jqm_1, 1); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.bw0_1, null); suspendResult = tmp_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5(this.bw0_1, completion); i.cw0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.lw0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.lw0_1.jqn().w7f().ibc(this.lw0_1.jqm_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.lw0_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this.lw0_1, completion); i.mw0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this$0, resultContinuation) { this.vw0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.vw0_1.jqn().f7g().xfr(this.vw0_1.jqm_1, this.vw0_1.xw0().k65_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_10(this.vw0_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this.vw0_1, completion); i.ww0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this$0, resultContinuation) { this.gw1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.id_1 = 5; this.hd_1 = 1; continue $sm; case 1: var tmp_0 = this; tmp_0.iw1_1 = _get_httpClient__2ty1zc_0(this.gw1_1); var tmp_1 = this; tmp_1.jw1_1 = this.gw1_1.fqn().boa().mnt_1 + 'api/contententryimportjob/importjobs'; var tmp_2 = this; tmp_2.kw1_1 = this.iw1_1; var tmp_3 = this; tmp_3.lw1_1 = this.kw1_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.jw1_1); parameter(this_0, 'contententryuid', this.gw1_1.jqm_1.toString()); header(this_0, 'cache-control', 'no-store'); tmp_4.mw1_1 = this_0; this.mw1_1.q39_1 = Companion_getInstance().f2y_1; var tmp_5 = this; tmp_5.nw1_1 = this.lw1_1; var tmp_6 = this; tmp_6.ow1_1 = this.mw1_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.ow1_1, this.nw1_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.pw1_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.pw1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var remoteImportJobsJson = suspendResult; var remoteImportJobs = this.gw1_1.g4s().m46(ListSerializer(Companion_instance_40.h4s()), remoteImportJobsJson); var tmp$ret$0; l$ret$1: do { var this_1 = this.gw1_1.dvv_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, remoteImportJobs); if (this_1.s1l(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var state = tmp$ret$0; if (!state.bvw_1.c1()) { this.hd_1 = 1; continue $sm; } this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.hd_1 = 7; continue $sm; case 5: this.id_1 = 6; var tmp_7 = this.kd_1; if (tmp_7 instanceof Error) { var e = this.kd_1; var tmp_8 = Napier_getInstance(); tmp_8.e5f(VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$lambda); this.hd_1 = 7; continue $sm; } else { throw this.kd_1; } case 6: throw this.kd_1; case 7: this.id_1 = 6; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this.gw1_1, completion); i.hw1_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda($this_launch, this$0, $savedStateHandle, resultContinuation) { this.yw1_1 = $this_launch; this.zw1_1 = this$0; this.aw2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.yw1_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_0(this.zw1_1, this.aw2_1, null)); if (this.zw1_1.qvv_1.equals(new Long(0, 0)) ? !this.zw1_1.rvv_1.equals(new Long(0, 0)) : false) { launch(this.yw1_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_2(this.zw1_1, null)); } launchSetTitleFromClazzUid(this.zw1_1, this.zw1_1.qvv_1, ContentEntryDetailOverviewViewModel$slambda$slambda$lambda(this.zw1_1)); launch(this.yw1_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_4(this.zw1_1, null)); launch(this.yw1_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_6(this.zw1_1, null)); launch(this.yw1_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_8(this.zw1_1, null)); launch(this.yw1_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_10(this.zw1_1, null)); launch(this.yw1_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_12(this.zw1_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).f79 = function (completion) { return new ContentEntryDetailOverviewViewModel$slambda$slambda(this.yw1_1, this.zw1_1, this.aw2_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.d88($completion); }; l.$arity = 0; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this$0, resultContinuation) { this.jw2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).up6 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).he = function (p1, $completion) { return this.up6(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.kw2_1.c7g().abr(this.jw2_1.jqm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).ony = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this.jw2_1, completion); i.kw2_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.up6(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.evv_1; makeContentEntryAvailableOfflineUseCase$factory_0(); return this_0.t2(); } function _get_cancelDownloadUseCase__t8wbc4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fvv_1; cancelDownloadUseCase$factory_0(); return this_0.t2(); } function _get_defaultLaunchContentEntryUseCase__lyydsx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ivv_1; defaultLaunchContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_launchXapiUseCase__jmtlap($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jvv_1; launchXapiUseCase$factory_0(); return this_0.t2(); } function _get_launchEpubUseCase__sunqd7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kvv_1; launchEpubUseCase$factory_0(); return this_0.t2(); } function _get_cancelImportContentEntryUseCase__kqom1e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mvv_1; cancelImportContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_cancelRemoteContentEntryImportUseCase__8yb0xk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nvv_1; cancelRemoteContentEntryImportUseCase$factory_0(); return this_0.t2(); } function _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ovv_1; dismissRemoteContentEntryImportErrorUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pvv_1; httpClient$factory_2(); return this_0.t2(); } function Companion_146() { this.lw2_1 = 'ContentEntryDetailOverviewView'; this.mw2_1 = 'target'; } var Companion_instance_195; function Companion_getInstance_163() { return Companion_instance_195; } function sam$kotlinx_coroutines_flow_FlowCollector$0_24(function_0) { this.nw2_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_24).n1e = function (value, $completion) { return this.nw2_1(value, $completion); }; function ContentEntryDetailOverviewViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.ww2_1 = this$0; this.xw2_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.ww2_1.dvv_1, ContentEntryDetailOverviewViewModel$slambda$slambda_0(this.yw2_1, this.ww2_1, this.xw2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda(this.ww2_1, this.xw2_1, completion); i.yw2_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda(this$0, resultContinuation) { this.hw3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 6; this.id_1 = 5; this.hw3_1.rqn(Companion_getInstance_97().jq6_1); Napier_getInstance().c5f('ContentEntryDetailOverviewViewModel: onClickOpen launched'); l$ret$1: do { var this_0 = this.hw3_1.dvv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; var tmp_0 = this.hw3_1.lqn(); suspendResult = localFirstThenRepoIfNull(tmp_0, ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda_0(this.hw3_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.kw3_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.hw3_1.lvv_1; var tmp_2; if (tmp0_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = Companion_instance_98.rmg(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp_2; tmp_1.lw3_1 = tmp1_elvis_lhs == null ? LinkTarget_DEFAULT_getInstance() : tmp1_elvis_lhs; if (!(this.kw3_1 == null)) { var tmp_3 = this; var tmp2_subject = this.kw3_1.iay_1; var tmp_4; if (tmp2_subject === 'xapi') { tmp_4 = _get_launchXapiUseCase__jmtlap(this.hw3_1); } else { if (tmp2_subject === 'epub') { tmp_4 = _get_launchEpubUseCase__sunqd7(this.hw3_1); } else { tmp_4 = null; } } tmp_3.mw3_1 = tmp_4; var tmp_5 = this; var tmp3_elvis_lhs = this.mw3_1; tmp_5.nw3_1 = tmp3_elvis_lhs == null ? _get_defaultLaunchContentEntryUseCase__lyydsx(this.hw3_1) : tmp3_elvis_lhs; Napier_getInstance().c5f('ContentEntryDetailOverviewViewModel: onClickOpen : Launching using ' + this.nw3_1); this.hd_1 = 3; Companion_getInstance_125(); var tmp4_safe_receiver = this.hw3_1.pqm_1.ba('courseBlockUid'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toLong_0(tmp4_safe_receiver); suspendResult = this.nw3_1.ep6(this.kw3_1, this.hw3_1.rqm_1, this.hw3_1.qvv_1, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs, this.lw3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { Napier_getInstance().c5f('ContentEntryDetailOverviewViewModel: onClickOpen: latestContentEntryVersion = null'); this.hw3_1.nqn().rq6(new Snack(this.hw3_1.pqn().coj(strings_getInstance().pnm_1))); this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: this.jw3_1 = Unit_instance; this.id_1 = 7; this.hd_1 = 8; continue $sm; case 5: this.id_1 = 6; var tmp_6 = this.kd_1; if (tmp_6 instanceof Error) { var e = this.kd_1; var tmp_7 = this; this.hw3_1.nqn().rq6(new Snack(this.hw3_1.pqn().coj(strings_getInstance().mmi_1) + (':' + e.message))); Napier_getInstance().g5f('ContentEntryDetailOverview: Exception opening content', e); tmp_7.jw3_1 = Unit_instance; this.id_1 = 7; this.hd_1 = 8; continue $sm; } else { throw this.kd_1; } case 6: this.id_1 = 7; var t = this.kd_1; this.hw3_1.rqn(Companion_getInstance_97().kq6_1); l$ret$5: do { var this_1 = this.hw3_1.dvv_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); throw t; case 7: throw this.kd_1; case 8: this.id_1 = 7; this.hw3_1.rqn(Companion_getInstance_97().kq6_1); l$ret$7: do { var this_2 = this.hw3_1.dvv_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 7) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda(this.hw3_1, completion); i.iw3_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda(this$0, $jobUid, resultContinuation) { this.ww3_1 = this$0; this.xw3_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_cancelRemoteContentEntryImportUseCase__8yb0xk(this.ww3_1).hp4(this.xw3_1, this.ww3_1.hqn(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ww3_1.nqn().rq6(new Snack(this.ww3_1.pqn().coj(strings_getInstance().fmj_1))); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; this.ww3_1.nqn().rq6(new Snack(this.ww3_1.pqn().coj(strings_getInstance().mmi_1))); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda(this.ww3_1, this.xw3_1, completion); i.yw3_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda(this$0, $jobUid, resultContinuation) { this.hw4_1 = this$0; this.iw4_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo(this.hw4_1).hp4(this.iw4_1, this.hw4_1.hqn(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; var tmp_1 = Napier_getInstance(); tmp_1.i5f(VOID, VOID, ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda$lambda); this.hw4_1.nqn().rq6(new Snack(this.hw4_1.pqn().coj(strings_getInstance().mmi_1))); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda(this.hw4_1, this.iw4_1, completion); i.jw4_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'ContentEntryDetailOverviewView'); this.dvv_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.evv_1 = Instance(this_0, tmp$ret$0, null).u5d(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.fvv_1 = Instance(this_1, tmp$ret$2, null).u5d(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.gvv_1 = Instance(this_2, tmp$ret$4, null).u5d(this, nodeIdAndAuth$factory()); this.hvv_1 = asStateFlow(this.dvv_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.ivv_1 = Instance(this_3, tmp$ret$6, null).u5d(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.jvv_1 = InstanceOrNull(this_4, tmp$ret$8, null).u5d(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.kvv_1 = InstanceOrNull(this_5, tmp$ret$10, null).u5d(this, launchEpubUseCase$factory()); this.lvv_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.mvv_1 = InstanceOrNull(this_6, tmp$ret$12, null).u5d(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.nvv_1 = Instance(this_7, tmp$ret$14, null).u5d(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.ovv_1 = Instance(this_8, tmp$ret$16, null).u5d(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.pvv_1 = Instance(di, tmp$ret$18, null).u5d(this, httpClient$factory_1()); var tmp_19 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_19.qvv_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_20 = this; Companion_getInstance_125(); 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.rvv_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.dvv_1; while (true) { var prevValue = this_9.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel.' call var nextValue = prevValue.gvw(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.hqn()); if (this_9.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_21 = this.gqn(); launch(tmp_21, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ContentEntryDetailOverviewViewModel).xw0 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.gvv_1; nodeIdAndAuth$factory_0(); return this_0.t2(); }; protoOf(ContentEntryDetailOverviewViewModel).kw4 = function () { Napier_getInstance().c5f('ContentEntryDetailOverviewViewModel: onClickOpen'); var tmp = this.gqn(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onClickOpen$slambda_0(this, null)); }; protoOf(ContentEntryDetailOverviewViewModel).lw4 = function (jobUid) { var tmp = this.gqn(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda_0(this, jobUid, null)); }; protoOf(ContentEntryDetailOverviewViewModel).mw4 = function (jobUid) { var tmp = this.gqn(); 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.svv_1 = scoreProgress; this.tvv_1 = contentEntry; this.uvv_1 = latestContentEntryVersion; this.vvv_1 = contentEntryButtons; this.wvv_1 = locallyAvailable; this.xvv_1 = markCompleteVisible; this.yvv_1 = translationVisibile; this.zvv_1 = availableTranslations; this.avw_1 = activeImportJobs; this.bvw_1 = remoteImportJobs; this.cvw_1 = activeUploadJobs; this.dvw_1 = offlineItemAndState; this.evw_1 = openButtonEnabled; this.fvw_1 = activeUserPersonUid; } protoOf(ContentEntryDetailOverviewUiState).nw4 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.tvv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bay_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.law_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).ow4 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.tvv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bay_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.maw_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).pw4 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.tvv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bay_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.oaw_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).qw4 = function () { return false; }; protoOf(ContentEntryDetailOverviewUiState).rw4 = function () { return !(this.svv_1 == null); }; protoOf(ContentEntryDetailOverviewUiState).sw4 = function () { var tmp0_safe_receiver = this.uvv_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.oay_1.c7(new Long(0, 0)) > 0 ? tmp0_safe_receiver.oay_1.c7(new Long(0, 0)) > 0 : false) ? tmp0_safe_receiver.oay_1.c7(tmp0_safe_receiver.pay_1) < 0 : false; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).tw4 = function () { var tmp0_safe_receiver = this.uvv_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.oay_1.c7(new Long(0, 0)) > 0; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).uw4 = function (importJobProgress) { return importJobProgress.obc_1.equals(this.fvw_1); }; protoOf(ContentEntryDetailOverviewUiState).vw4 = 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).gvw = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, $super) { scoreProgress = scoreProgress === VOID ? this.svv_1 : scoreProgress; contentEntry = contentEntry === VOID ? this.tvv_1 : contentEntry; latestContentEntryVersion = latestContentEntryVersion === VOID ? this.uvv_1 : latestContentEntryVersion; contentEntryButtons = contentEntryButtons === VOID ? this.vvv_1 : contentEntryButtons; locallyAvailable = locallyAvailable === VOID ? this.wvv_1 : locallyAvailable; markCompleteVisible = markCompleteVisible === VOID ? this.xvv_1 : markCompleteVisible; translationVisibile = translationVisibile === VOID ? this.yvv_1 : translationVisibile; availableTranslations = availableTranslations === VOID ? this.zvv_1 : availableTranslations; activeImportJobs = activeImportJobs === VOID ? this.avw_1 : activeImportJobs; remoteImportJobs = remoteImportJobs === VOID ? this.bvw_1 : remoteImportJobs; activeUploadJobs = activeUploadJobs === VOID ? this.cvw_1 : activeUploadJobs; offlineItemAndState = offlineItemAndState === VOID ? this.dvw_1 : offlineItemAndState; openButtonEnabled = openButtonEnabled === VOID ? this.evw_1 : openButtonEnabled; activeUserPersonUid = activeUserPersonUid === VOID ? this.fvw_1 : activeUserPersonUid; return $super === VOID ? this.vw4(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) : $super.vw4.call(this, scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid); }; protoOf(ContentEntryDetailOverviewUiState).toString = function () { return 'ContentEntryDetailOverviewUiState(scoreProgress=' + this.svv_1 + ', contentEntry=' + this.tvv_1 + ', latestContentEntryVersion=' + this.uvv_1 + ', contentEntryButtons=' + this.vvv_1 + ', locallyAvailable=' + this.wvv_1 + ', markCompleteVisible=' + this.xvv_1 + ', translationVisibile=' + this.yvv_1 + ', availableTranslations=' + this.zvv_1 + ', activeImportJobs=' + this.avw_1 + ', remoteImportJobs=' + this.bvw_1 + ', activeUploadJobs=' + this.cvw_1 + ', offlineItemAndState=' + this.dvw_1 + ', openButtonEnabled=' + this.evw_1 + ', activeUserPersonUid=' + this.fvw_1.toString() + ')'; }; protoOf(ContentEntryDetailOverviewUiState).hashCode = function () { var result = this.svv_1 == null ? 0 : this.svv_1.hashCode(); result = imul(result, 31) + (this.tvv_1 == null ? 0 : this.tvv_1.hashCode()) | 0; result = imul(result, 31) + (this.uvv_1 == null ? 0 : this.uvv_1.hashCode()) | 0; result = imul(result, 31) + (this.vvv_1 == null ? 0 : hashCode(this.vvv_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.wvv_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xvv_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yvv_1) | 0; result = imul(result, 31) + hashCode(this.zvv_1) | 0; result = imul(result, 31) + hashCode(this.avw_1) | 0; result = imul(result, 31) + hashCode(this.bvw_1) | 0; result = imul(result, 31) + hashCode(this.cvw_1) | 0; result = imul(result, 31) + (this.dvw_1 == null ? 0 : this.dvw_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.evw_1) | 0; result = imul(result, 31) + this.fvw_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.svv_1, tmp0_other_with_cast.svv_1)) return false; if (!equals(this.tvv_1, tmp0_other_with_cast.tvv_1)) return false; if (!equals(this.uvv_1, tmp0_other_with_cast.uvv_1)) return false; if (!equals(this.vvv_1, tmp0_other_with_cast.vvv_1)) return false; if (!(this.wvv_1 === tmp0_other_with_cast.wvv_1)) return false; if (!(this.xvv_1 === tmp0_other_with_cast.xvv_1)) return false; if (!(this.yvv_1 === tmp0_other_with_cast.yvv_1)) return false; if (!equals(this.zvv_1, tmp0_other_with_cast.zvv_1)) return false; if (!equals(this.avw_1, tmp0_other_with_cast.avw_1)) return false; if (!equals(this.bvw_1, tmp0_other_with_cast.bvw_1)) return false; if (!equals(this.cvw_1, tmp0_other_with_cast.cvw_1)) return false; if (!equals(this.dvw_1, tmp0_other_with_cast.dvw_1)) return false; if (!(this.evw_1 === tmp0_other_with_cast.evw_1)) return false; if (!this.fvw_1.equals(tmp0_other_with_cast.fvw_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.xw0(); }, 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.xw0(); }, 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.lbc_1.c7(new Long(0, 0)) > 0) { tmp = _this__u8e3s4.kbc_1.zc() / _this__u8e3s4.lbc_1.zc(); } else { tmp = 0.0; } return tmp; } function ContentEntryEditViewModel$slambda$slambda$lambda($newContentEntryUid, this$0, $savedStateHandle) { return function ($this$shallowCopy) { $this$shallowCopy.haw_1 = $newContentEntryUid; var tmp; if (this$0.yw5_1) { var tmp_0 = $this$shallowCopy; tmp_0.dax_1 = 2; var tmp_1 = $this$shallowCopy; Companion_getInstance_125(); var tmp0_safe_receiver = $savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.cax_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; tmp = Unit_instance; } else { var tmp_2 = $this$shallowCopy; tmp_2.dax_1 = 1; $this$shallowCopy.cax_1 = this$0.hqn(); tmp = Unit_instance; } return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda($newDecription) { return function ($this$shallowCopy) { $this$shallowCopy.jaw_1 = $newDecription; return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.hw6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).gqa = function (it, $completion) { var tmp = this.hqa(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.iw6_1.nq9_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.hw6_1.vw5_1.t2().jw6_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.mk7_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.hw6_1.vw6(tmp_2); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).hqa = function (it, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda(this.hw6_1, completion); i.iw6_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.gqa(it, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda$lambda($newSubtitleTrack) { return function (it) { return it.mog_1 === $newSubtitleTrack.mog_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.ew7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).gqa = function (navResult, $completion) { var tmp = this.hqa(navResult, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.fw7_1.nq9_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.ew7_1, ContentEntryEditViewModel$slambda$slambda$slambda$lambda_0(newSubtitleTrack)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).hqa = function (navResult, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda_1(this.ew7_1, completion); i.fw7_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.gqa(navResult, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda(this$0, resultContinuation) { this.ow7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda).sw7 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.sw7(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.pw7_1; var tmp_1; if (!this.ow7_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.qw7_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p7e(); if (this.qw7_1 == null) { this.rw7_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.qw7_1.mav(this.ow7_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.rw7_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp2_safe_receiver = this.rw7_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = null; } else { var tmp_3; if (!(tmp2_safe_receiver.vax_1 == null)) { var tmp_4 = tmp2_safe_receiver.vax_1; var tmp0_elvis_lhs = tmp2_safe_receiver.wax_1; tmp_3 = new ContentEntryAndContentJob(tmp_4, VOID, VOID, tmp0_elvis_lhs == null ? new ContentEntryPicture2(this.ow7_1.xqs_1) : tmp0_elvis_lhs); } else { tmp_3 = null; } tmp_2 = tmp_3; } return tmp_2; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new ContentEntryEditViewModel$slambda$slambda(this.ow7_1, completion); i.pw7_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.sw7(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.bw8_1 = this$0; this.cw8_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_1).ew8 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.ew8($completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = get_doorPrimaryKeyManager(this.bw8_1.jqn()); tmp_0.dw8_1 = tmp_1.h63(42); this.hd_1 = 1; suspendResult = this.bw8_1.uqn(this.cw8_1, 'metadata', Companion_instance_81.h4s(), 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.zog_1; var pictureUri = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zax_1; if (!(pictureUri == null)) { Companion_getInstance_123(); this.cw8_1.tqi('initPicUri', ''); } var tmp_3 = shallowCopy_8(importedMetaData.wog_1, ContentEntryEditViewModel$slambda$slambda$lambda(this.dw8_1, this.bw8_1, this.cw8_1)); var tmp1_cjiPluginId = importedMetaData.xog_1; var tmp2_sourceUri = importedMetaData.wog_1.qaw_1; var tmp3_cjiOriginalFilename = importedMetaData.yog_1; var tmp4_cjiOwnerPersonUid = this.bw8_1.hqn(); var tmp_4 = new ContentEntryImportJob(VOID, tmp2_sourceUri, tmp3_cjiOriginalFilename, this.dw8_1, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_cjiPluginId, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_cjiOwnerPersonUid); var tmp5_safe_receiver = importedMetaData.zog_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.aki(this.dw8_1); var this_0 = new ContentEntryAndContentJob(tmp_3, VOID, tmp_4, tmp6_elvis_lhs == null ? new ContentEntryPicture2(this.dw8_1) : tmp6_elvis_lhs); var tmp_5 = this.bw8_1.pqn(); var tmp_6 = strings_getInstance().jnc_1; var tmp0_elvis_lhs = importedMetaData.yog_1; var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? importedMetaData.wog_1.qaw_1 : tmp0_elvis_lhs; this.cw8_1.tqi('savedTitle', tmp_5.doj(tmp_6, [tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs])); tmp_2 = this_0; } else { var this_1 = new ContentEntry(); this_1.haw_1 = this.dw8_1; var tmp_7 = this_1; var tmp0_safe_receiver_0 = this.cw8_1.ba('leaf'); tmp_7.waw_1 = (tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0)) === true; this_1.cax_1 = this.bw8_1.hqn(); tmp_2 = new ContentEntryAndContentJob(this_1, VOID, VOID, new ContentEntryPicture2(this.dw8_1)); } return tmp_2; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).f79 = function (completion) { return new ContentEntryEditViewModel$slambda$slambda_1(this.bw8_1, this.cw8_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.ew8($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.vw5_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.ok7_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramSubtitles(tmp1_safe_receiver, this$0.g4s()); var nextValue = prevValue.fw8(it, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ContentEntryEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.ow8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.ow8_1.tqn(this.ow8_1.mqn(), 'contentEntryDesc'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_0(this.ow8_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_3(this.ow8_1, completion); i.pw8_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.yw8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.yw8_1.tqn(this.yw8_1.mqn(), 'subtitleKey'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_2(this.yw8_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_5(this.yw8_1, completion); i.zw8_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.o1n($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.vw5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.updateSubtitles.' call var updatedSubtitles = function_0(prevValue.uw6_1); var tmp0_safe_receiver = prevValue.jw6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ok7_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramMap(tmp1_safe_receiver, $this.g4s()); 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.g4s().l46(ListSerializer(Companion_instance_80.h4s()), updatedSubtitles); this_1.s(key, value); var contentJobParam = this_1; var tmp4_safe_receiver = prevValue.jw6_1; var tmp; if (tmp4_safe_receiver == null) { tmp = null; } else { var tmp3_safe_receiver = prevValue.jw6_1.ok7_1; tmp = tmp4_safe_receiver.rk7(VOID, VOID, tmp3_safe_receiver == null ? null : tmp3_safe_receiver.pkh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g4s().l46(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), contentJobParam))); } var tmp5_entity = tmp; var nextValue = prevValue.fw8(tmp5_entity, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedSubtitles); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$2 = nextValue; break $l$block; } } } var updatedState = tmp$ret$2; scheduleEntityCommit($this, updatedState.jw6_1); } function scheduleEntityCommit($this, entity) { // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_41.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = $this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = $this; var tmp_0 = $this.gqn(); tmp.wqs_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.qw6_1 == null); } function Companion_147() { this.aw9_1 = 'leaf'; this.bw9_1 = 'courseBlock'; this.cw9_1 = 'ContentEntryEdit'; this.dw9_1 = 'metadata'; this.ew9_1 = 'savedTitle'; this.fw9_1 = 'goToOnContentEntryDone'; this.gw9_1 = 'contentEntryDesc'; this.hw9_1 = 'subtitleKey'; this.iw9_1 = 1; this.jw9_1 = 2; } var Companion_instance_196; function Companion_getInstance_164() { return Companion_instance_196; } function sam$kotlinx_coroutines_flow_FlowCollector$0_25(function_0) { this.kw9_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_25).n1e = function (value, $completion) { return this.kw9_1(value, $completion); }; function ContentEntryEditViewModel$slambda(this$0, resultContinuation) { this.tw9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (this.tw9_1.yw5_1) { this.vw9_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = this.uw9_1.j7g(); var tmp_1 = this.tw9_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ri0(tmp_1, new Long(65536, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.vw9_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.vw9_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda).ony = function (db, completion) { var i = new ContentEntryEditViewModel$slambda(this.tw9_1, completion); i.uw9_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.as8(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ewa_1 = this$0; this.fwa_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_41.h4s(); var tmp_1 = ContentEntryEditViewModel$slambda$slambda_0(this.ewa_1, null); var tmp_2 = ContentEntryEditViewModel$slambda$slambda_2(this.ewa_1, this.fwa_1, null); suspendResult = this.ewa_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, ContentEntryEditViewModel$slambda$lambda(this.ewa_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var it = suspendResult; Companion_getInstance_123(); var tmp1_safe_receiver = it == null ? null : it.pk7_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zax_1; setIfNoValueSetYet(this.fwa_1, 'initPicUri', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); var tmp0_safe_receiver = this.ewa_1.vw5_1.t2().jw6_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mk7_1; var isLeaf = (tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.waw_1) === true; var savedStateTitle = this.fwa_1.ba('savedTitle'); var title = !(savedStateTitle == null) ? savedStateTitle : (this.ewa_1.xqs_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.ewa_1.pqn().coj(strings_getInstance().jna_1) : (!this.ewa_1.xqs_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.ewa_1.pqn().coj(strings_getInstance().pnl_1) : this.ewa_1.pqn().coj(strings_getInstance().onl_1); l$ret$1: do { var this_0 = this.ewa_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.ewa_1.pqn(); var tmp0_subject = this.ewa_1.xw5_1; var tmp_4 = tmp_3.coj(tmp0_subject === 1 ? strings_getInstance().rmj_1 : tmp0_subject === 2 ? strings_getInstance().pmr_1 : strings_getInstance().dn3_1); var nextValue = prevValue.cq6(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_4, VOID, ContentEntryEditViewModel$onClickSave$ref(this.ewa_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ewa_1.vw5_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.fw8(VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.gwa_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_4(this.ewa_1, null)); launch(this.gwa_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_6(this.ewa_1, null)); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new ContentEntryEditViewModel$slambda_1(this.ewa_1, this.fwa_1, completion); i.gwa_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$scheduleEntityCommit$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.pwa_1 = $commitDelay; this.qwa_1 = $entity; this.rwa_1 = $this; this.swa_1 = $key; this.twa_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.pwa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.qwa_1 == null)) { this.hd_1 = 2; suspendResult = this.rwa_1.vqn(this.rwa_1.pqm_1, this.swa_1, this.twa_1, this.qwa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$scheduleEntityCommit$slambda(this.pwa_1, this.qwa_1, this.rwa_1, this.swa_1, this.twa_1, completion); i.uwa_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.o1n($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.mog_1 === $subtitleTrack.mog_1)) { destination.i1(element); } } return destination; }; } function ContentEntryEditViewModel$onClickSave$slambda(this$0, $contentEntryVal, $entityVal, resultContinuation) { this.dwb_1 = this$0; this.ewb_1 = $contentEntryVal; this.fwb_1 = $entityVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; Companion_getInstance_125(); var tmp0_safe_receiver = this.dwb_1.pqm_1.ba('parentUid'); tmp_0.hwb_1 = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); this.hd_1 = 1; var tmp_1 = this.dwb_1.xqs_1.equals(new Long(0, 0)) ? this.hwb_1 : null; Companion_getInstance_123(); suspendResult = this.dwb_1.tw5_1.xpa(this.ewb_1, tmp_1, this.fwb_1.pk7_1, this.dwb_1.pqm_1.ba('initPicUri'), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.iwb_1 = this.fwb_1.ok7_1; if (!(this.iwb_1 == null)) { this.hd_1 = 2; suspendResult = this.dwb_1.uw5_1.ep5(this.iwb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: Companion_getInstance_125(); var popUpToOnFinish = this.dwb_1.pqm_1.ba('popUpToOnFinish'); if (!(this.dwb_1.qqn() == null)) { this.dwb_1.aqt(this.ewb_1); } else { this.dwb_1.rqm_1.cq9(popUpToOnFinish == null ? this.dwb_1.qqm_1 : popUpToOnFinish, true); } if (hasErrors_2(this.dwb_1.vw5_1.t2(), this.dwb_1)) { this.dwb_1.rqn(Companion_getInstance_97().kq6_1); l$ret$1: do { var this_0 = this.dwb_1.vw5_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.fw8(VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$onClickSave$slambda(this.dwb_1, this.ewb_1, this.fwb_1, completion); i.gwb_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.o1n($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)).z58(); // 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.x58(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)).z58(); // 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.x58(tmp$ret$0_0, null); } else { tmp_2 = enqueueContentEntryImportUseCase; } enqueueContentEntryImportUseCase = tmp_2; UstadEditViewModel.call(this, di, savedStateHandle, 'ContentEntryEdit'); this.tw5_1 = saveContentEntryUseCase; this.uw5_1 = enqueueContentEntryImportUseCase; this.vw5_1 = MutableStateFlow(new ContentEntryEditUiState()); this.ww5_1 = asStateFlow(this.vw5_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.xw5_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; this.yw5_1 = this.xw5_1 === 1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_6 = ContentEntryEditViewModel$slambda_0(this, null); this.bqo(tmp_6, VOID, VOID, ContentEntryEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ContentEntryEditViewModel).vw6 = function (contentEntry) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.vw5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onContentEntryChanged.' call var tmp0_safe_receiver = prevValue.jw6_1; var nextValue = prevValue.fw8(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rk7(contentEntry)); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.jw6_1); }; protoOf(ContentEntryEditViewModel).ru3 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.vw5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.jw6_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.jw6_1.pk7_1; tmp = tmp1_safe_receiver.rk7(VOID, VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.aki(VOID, VOID, pictureUri)); } var nextValue = prevValue.fw8(tmp); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.jw6_1); }; protoOf(ContentEntryEditViewModel).jwb = function (compressionLevel) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vw5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onSetCompressionLevel.' call var tmp1_safe_receiver = prevValue.jw6_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.jw6_1.ok7_1; tmp = tmp1_safe_receiver.rk7(VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pkh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, compressionLevel.tp1_1)); } var nextValue = prevValue.fw8(tmp); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryEditViewModel).kwb = function (uri, fileName) { var tmp = Companion_instance_80.h4s(); // 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.xqn('GetSubtitle', 'subtitleKey', null, tmp, tmp$ret$2); }; protoOf(ContentEntryEditViewModel).lwb = function (subtitleTrack) { this.xqn('SubtitleEdit', 'subtitleKey', subtitleTrack, Companion_instance_80.h4s()); }; protoOf(ContentEntryEditViewModel).mwb = function (subtitleTrack) { updateSubtitles(this, ContentEntryEditViewModel$onClickDeleteSubtitleTrack$lambda(subtitleTrack)); }; protoOf(ContentEntryEditViewModel).os5 = function () { var entityVal = this.vw5_1.t2().jw6_1; var tmp0_safe_receiver = this.vw5_1.t2().jw6_1; var contentEntry = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mk7_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vw5_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.iaw_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : isBlank(this_1)) { tmp = this.pqn().coj(strings_getInstance().vnl_1); } else { tmp = null; } var nextValue = prevValue.fw8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_2(this.vw5_1.t2(), this)) { this.rqn(Companion_getInstance_97().kq6_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.vw5_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.fw8(VOID, VOID, VOID, VOID, true); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var tmp2_elvis_lhs = entityVal == null ? null : entityVal.mk7_1; var tmp_0; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp2_elvis_lhs; } var contentEntryVal = tmp_0; if (!this.vw5_1.t2().nw6_1) { return Unit_instance; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.vw5_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.fw8(VOID, VOID, VOID, VOID, false); if (this_3.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (this.xw5_1 === 1) { Companion_getInstance_173(); // 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_173(); var key = 'SelectedContentEntry'; var value = this.g4s().l46(Companion_instance_41.h4s(), entityVal); this_4.s(key, value); this.dqo(this_4, Companion_getInstance_173().twb_1); var tmp$ret$9 = this_4.f3(); this.rqm_1.dp6('CourseBlockEdit', tmp$ret$9); } else if (this.xw5_1 === 2) { this.aqt(entityVal); } else { var tmp_1 = this.gqn(); 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.jw6_1 = entity; this.kw6_1 = licenceOptions; this.lw6_1 = storageOptions; this.mw6_1 = courseBlockEditUiState; this.nw6_1 = fieldsEnabled; this.ow6_1 = updateContentVisible; this.pw6_1 = importError; this.qw6_1 = titleError; this.rw6_1 = selectedContainerStorageDir; this.sw6_1 = metadataResult; this.tw6_1 = compressionEnabled; this.uw6_1 = subtitles; } protoOf(ContentEntryEditUiState).uwb = function () { var tmp0_safe_receiver = this.jw6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ok7_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pbd_1; return tmp === 101; }; protoOf(ContentEntryEditUiState).vwb = 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).fw8 = function (entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles, $super) { entity = entity === VOID ? this.jw6_1 : entity; licenceOptions = licenceOptions === VOID ? this.kw6_1 : licenceOptions; storageOptions = storageOptions === VOID ? this.lw6_1 : storageOptions; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.mw6_1 : courseBlockEditUiState; fieldsEnabled = fieldsEnabled === VOID ? this.nw6_1 : fieldsEnabled; updateContentVisible = updateContentVisible === VOID ? this.ow6_1 : updateContentVisible; importError = importError === VOID ? this.pw6_1 : importError; titleError = titleError === VOID ? this.qw6_1 : titleError; selectedContainerStorageDir = selectedContainerStorageDir === VOID ? this.rw6_1 : selectedContainerStorageDir; metadataResult = metadataResult === VOID ? this.sw6_1 : metadataResult; compressionEnabled = compressionEnabled === VOID ? this.tw6_1 : compressionEnabled; subtitles = subtitles === VOID ? this.uw6_1 : subtitles; return $super === VOID ? this.vwb(entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles) : $super.vwb.call(this, entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles); }; protoOf(ContentEntryEditUiState).toString = function () { return 'ContentEntryEditUiState(entity=' + this.jw6_1 + ', licenceOptions=' + this.kw6_1 + ', storageOptions=' + this.lw6_1 + ', courseBlockEditUiState=' + this.mw6_1 + ', fieldsEnabled=' + this.nw6_1 + ', updateContentVisible=' + this.ow6_1 + ', importError=' + this.pw6_1 + ', titleError=' + this.qw6_1 + ', selectedContainerStorageDir=' + this.rw6_1 + ', metadataResult=' + this.sw6_1 + ', compressionEnabled=' + this.tw6_1 + ', subtitles=' + this.uw6_1 + ')'; }; protoOf(ContentEntryEditUiState).hashCode = function () { var result = this.jw6_1 == null ? 0 : this.jw6_1.hashCode(); result = imul(result, 31) + hashCode(this.kw6_1) | 0; result = imul(result, 31) + hashCode(this.lw6_1) | 0; result = imul(result, 31) + this.mw6_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nw6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ow6_1) | 0; result = imul(result, 31) + (this.pw6_1 == null ? 0 : getStringHashCode(this.pw6_1)) | 0; result = imul(result, 31) + (this.qw6_1 == null ? 0 : getStringHashCode(this.qw6_1)) | 0; result = imul(result, 31) + (this.rw6_1 == null ? 0 : hashCode(this.rw6_1)) | 0; result = imul(result, 31) + (this.sw6_1 == null ? 0 : this.sw6_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.tw6_1) | 0; result = imul(result, 31) + hashCode(this.uw6_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.jw6_1, tmp0_other_with_cast.jw6_1)) return false; if (!equals(this.kw6_1, tmp0_other_with_cast.kw6_1)) return false; if (!equals(this.lw6_1, tmp0_other_with_cast.lw6_1)) return false; if (!this.mw6_1.equals(tmp0_other_with_cast.mw6_1)) return false; if (!(this.nw6_1 === tmp0_other_with_cast.nw6_1)) return false; if (!(this.ow6_1 === tmp0_other_with_cast.ow6_1)) return false; if (!(this.pw6_1 == tmp0_other_with_cast.pw6_1)) return false; if (!(this.qw6_1 == tmp0_other_with_cast.qw6_1)) return false; if (!equals(this.rw6_1, tmp0_other_with_cast.rw6_1)) return false; if (!equals(this.sw6_1, tmp0_other_with_cast.sw6_1)) return false; if (!(this.tw6_1 === tmp0_other_with_cast.tw6_1)) return false; if (!equals(this.uw6_1, tmp0_other_with_cast.uw6_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.swc_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getmetadata.ContentEntryGetMetadataViewModel...' call var nextValue = prevValue.vwc(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_148() { this.wwc_1 = 'uri'; this.xwc_1 = 'filename'; this.ywc_1 = 'ContentEntryGetMetadata'; } var Companion_instance_197; function Companion_getInstance_165() { return Companion_instance_197; } function ContentEntryGetMetadataViewModel$slambda(this$0, $uriArg, $fileName, resultContinuation) { this.hwd_1 = this$0; this.iwd_1 = $uriArg; this.jwd_1 = $fileName; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryGetMetadataViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryGetMetadataViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryGetMetadataViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.lwd_1 = this.hwd_1.rwc_1; this.mwd_1 = Companion_getInstance_3().i2s(this.iwd_1); this.nwd_1 = this.hwd_1.fqn().boa(); this.hd_1 = 1; suspendResult = this.lwd_1.xp2(this.mwd_1, this.jwd_1, this.nwd_1, ContentEntryGetMetadataViewModel$slambda$lambda(this.hwd_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.hwd_1.g4s().l46(Companion_instance_81.h4s(), metadataResult)); this.hwd_1.dqo(this_0, Companion_getInstance_173().twb_1); Companion_getInstance_116(); this.hwd_1.cqo(this_0, 'result_viewname'); Companion_getInstance_116(); this.hwd_1.cqo(this_0, 'result_key'); Companion_getInstance_125(); this.hwd_1.cqo(this_0, 'parentUid'); this.hwd_1.rqm_1.bq9('ContentEntryEdit', this_0.f3(), new UstadGoOptions('ContentEntryGetMetadata', true)); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; var tmp_1; if (e instanceof InvalidContentException) { tmp_1 = this.hwd_1.pqn().coj(strings_getInstance().umt_1) + ' : ' + e.message; } else { if (e instanceof UnsupportedContentException) { var tmp_2 = this.hwd_1.pqn(); var tmp_3 = strings_getInstance().wmt_1; var tmp3_elvis_lhs = e.message; tmp_1 = tmp_2.doj(tmp_3, [tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs]); } else { tmp_1 = this.hwd_1.pqn().coj(strings_getInstance().mmi_1) + ' : other: ' + e.message; } } var errorMessage = tmp_1; l$ret$1: do { var this_1 = this.hwd_1.swc_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.vwc(prevValue.uwc_1.ep3(VOID, errorMessage)); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryGetMetadataViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryGetMetadataViewModel$slambda(this.hwd_1, this.iwd_1, this.jwd_1, completion); i.kwd_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.o1n($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)).z58(); // 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.x58(tmp$ret$0, null); } else { tmp = contentEntryGetMetaDataFromUriUseCase; } contentEntryGetMetaDataFromUriUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryGetMetadata'); this.rwc_1 = contentEntryGetMetaDataFromUriUseCase; this.swc_1 = MutableStateFlow(new ContentEntryGetMetadataUiState()); this.twc_1 = asStateFlow(this.swc_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.gqn(); launch(tmp_3, VOID, VOID, ContentEntryGetMetadataViewModel$slambda_0(this, uriArg, fileName, null)); } function ContentEntryGetMetadataUiState(status) { status = status === VOID ? new ContentEntryGetMetadataStatus() : status; this.uwc_1 = status; } protoOf(ContentEntryGetMetadataUiState).vwc = function (status) { return new ContentEntryGetMetadataUiState(status); }; protoOf(ContentEntryGetMetadataUiState).toString = function () { return 'ContentEntryGetMetadataUiState(status=' + this.uwc_1 + ')'; }; protoOf(ContentEntryGetMetadataUiState).hashCode = function () { return this.uwc_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.uwc_1.equals(tmp0_other_with_cast.uwc_1)) return false; return true; }; function _get_getSubtitleTrackUseCase__ux9onr($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lwe_1; getSubtitleTrackUseCase$factory_0(); return this_0.t2(); } function Companion_149() { this.mwe_1 = 'GetSubtitle'; } var Companion_instance_198; function Companion_getInstance_166() { return Companion_instance_198; } function GetSubtitleViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.vwe_1 = this$0; this.wwe_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(GetSubtitleViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(GetSubtitleViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(GetSubtitleViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; var tmp_0 = _get_getSubtitleTrackUseCase__ux9onr(this.vwe_1); var tmp_1 = Companion_getInstance_3(); var tmp_2 = tmp_1.i2s(require_0(this.wwe_1, 'uri')); suspendResult = tmp_0.kp3(tmp_2, require_0(this.wwe_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_125(); this_0.s('entityState', this.vwe_1.g4s().l46(Companion_instance_80.h4s(), subtitleTrack)); Companion_getInstance_125(); this.vwe_1.cqo(this_0, 'result_viewname'); Companion_getInstance_125(); this.vwe_1.cqo(this_0, 'result_key'); this.vwe_1.rqm_1.bq9('SubtitleEdit', this_0.f3(), new UstadGoOptions('GetSubtitle', true)); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_3 = this.kd_1; if (tmp_3 instanceof Error) { var e = this.kd_1; l$ret$1: do { var this_1 = this.vwe_1.jwe_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.zwe(this.vwe_1.pqn().coj(strings_getInstance().mmi_1) + ': ' + e.message); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(GetSubtitleViewModel$slambda).p1n = function ($this$launch, completion) { var i = new GetSubtitleViewModel$slambda(this.vwe_1, this.wwe_1, completion); i.xwe_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function GetSubtitleViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'GetSubtitle'); this.jwe_1 = MutableStateFlow(new GetSubtitleUiState()); this.kwe_1 = asStateFlow(this.jwe_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.fqn().boa(); var trigger = this.x57(); // 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.b58(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.lwe_1 = Instance(this_0, tmp$ret$3, null).u5d(this, getSubtitleTrackUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getsubtitle.GetSubtitleViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().jnc_1)); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.gqn(); launch(tmp_3, VOID, VOID, GetSubtitleViewModel$slambda_0(this, savedStateHandle, null)); } function GetSubtitleUiState(error) { error = error === VOID ? null : error; this.ywe_1 = error; } protoOf(GetSubtitleUiState).zwe = function (error) { return new GetSubtitleUiState(error); }; protoOf(GetSubtitleUiState).toString = function () { return 'GetSubtitleUiState(error=' + this.ywe_1 + ')'; }; protoOf(GetSubtitleUiState).hashCode = function () { return this.ywe_1 == null ? 0 : getStringHashCode(this.ywe_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.ywe_1 == tmp0_other_with_cast.ywe_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.xwf_1; httpClient$factory_4(); return this_0.t2(); } function Companion_150() { this.awg_1 = 'ContentEntryImportLink'; this.bwg_1 = 'importUrl'; } var Companion_instance_199; function Companion_getInstance_167() { return Companion_instance_199; } function ContentEntryImportLinkViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.cwg(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function ContentEntryImportLinkViewModel$onChangeLink$slambda(this$0, $url, resultContinuation) { this.lwg_1 = this$0; this.mwg_1 = $url; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.lwg_1.pqm_1.tqi('importUrl', this.mwg_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryImportLinkViewModel$onChangeLink$slambda(this.lwg_1, this.mwg_1, completion); i.nwg_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryImportLinkViewModel$onClickNext$slambda(this$0, resultContinuation) { this.wwg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 9; this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 8; this.id_1 = 7; var tmp_0 = this; tmp_0.awh_1 = _get_httpClient__2ty1zc_1(this.wwg_1); var tmp_1 = this; tmp_1.bwh_1 = this.awh_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.wwg_1.fqn().boa().mnt_1 + 'api/import/validateLink'); parameter(this_0, 'url', this.wwg_1.vwf_1.t2().hwh_1); set_expectSuccess(this_0, false); tmp_2.cwh_1 = this_0; this.cwh_1.q39_1 = Companion_getInstance().g2y_1; var tmp_3 = this; tmp_3.dwh_1 = this.bwh_1; var tmp_4 = this; tmp_4.ewh_1 = this.cwh_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.ewh_1, this.dwh_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.fwh_1 = suspendResult; if (!this.fwh_1.d3c().equals(Companion_getInstance_0().z2y_1)) { l$ret$1: do { var this_1 = this.wwg_1.vwf_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.kwh(VOID, this.wwg_1.pqn().coj(strings_getInstance().tmt_1), true); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.zwg_1 = Unit_instance; this.id_1 = 9; this.hd_1 = 6; continue $sm; } else { this.hd_1 = 4; continue $sm; } case 4: var tmp_5 = this; tmp_5.gwh_1 = this.wwg_1.g4s(); this.hd_1 = 5; suspendResult = bodyAsText(this.fwh_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var string = suspendResult; var this_2 = this.gwh_1.n46(); var this_3 = serializer(this_2, createKType(getKClass(MetadataResult), arrayOf([]), false)); var metadataResult = this.gwh_1.m46(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); var tmp_6 = this; var tmp_7; if (this.wwg_1.zwf_1 === 'ContentEntryEdit') { var this_4 = LinkedHashMap_init_$Create$(); this_4.s('metadata', this.wwg_1.g4s().l46(Companion_instance_81.h4s(), metadataResult)); this.wwg_1.cqo(this_4, 'courseBlock'); this.wwg_1.cqo(this_4, 'goToOnContentEntryDone'); Companion_getInstance_116(); this.wwg_1.cqo(this_4, 'result_viewname'); Companion_getInstance_116(); this.wwg_1.cqo(this_4, 'result_key'); Companion_getInstance_125(); this.wwg_1.cqo(this_4, 'parentUid'); Companion_getInstance_125(); this_4.s('popUpToOnFinish', 'ContentEntryImportLink'); this.wwg_1.rqm_1.dp6('ContentEntryEdit', this_4.f3()); tmp_7 = Unit_instance; } else { this.wwg_1.aqt(metadataResult); tmp_7 = Unit_instance; } tmp_6.ywg_1 = tmp_7; this.id_1 = 9; this.hd_1 = 10; continue $sm; case 6: this.id_1 = 9; l$ret$9: do { var this_5 = this.wwg_1.vwf_1; while (true) { var prevValue_0 = this_5.t2(); var nextValue_0 = prevValue_0.kwh(VOID, VOID, true); if (this_5.s1l(prevValue_0, nextValue_0)) { break l$ret$9; } } } while (false); return Unit_instance; case 7: this.id_1 = 8; var tmp_8 = this.kd_1; if (tmp_8 instanceof Exception) { var e = this.kd_1; var tmp_9 = this; this.wwg_1.nqn().rq6(new Snack(this.wwg_1.pqn().coj(strings_getInstance().mmi_1) + (': ' + e))); tmp_9.ywg_1 = Unit_instance; this.id_1 = 9; this.hd_1 = 10; continue $sm; } else { throw this.kd_1; } case 8: this.id_1 = 9; var t = this.kd_1; l$ret$7: do { var this_6 = this.wwg_1.vwf_1; while (true) { var prevValue_1 = this_6.t2(); var nextValue_1 = prevValue_1.kwh(VOID, VOID, true); if (this_6.s1l(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); throw t; case 9: throw this.kd_1; case 10: this.id_1 = 9; l$ret$11: do { var this_7 = this.wwg_1.vwf_1; while (true) { var prevValue_2 = this_7.t2(); var nextValue_2 = prevValue_2.kwh(VOID, VOID, true); if (this_7.s1l(prevValue_2, nextValue_2)) { break l$ret$11; } } } while (false); return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 9) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryImportLinkViewModel$onClickNext$slambda(this.wwg_1, completion); i.xwg_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryImportLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryImportLink'); this.vwf_1 = MutableStateFlow(new ContentEntryImportLinkUiState()); this.wwf_1 = asStateFlow(this.vwf_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.xwf_1 = Instance(this, tmp$ret$0, null).u5d(this, httpClient$factory_3()); this.ywf_1 = null; var tmp_1 = this; Companion_getInstance_125(); tmp_1.zwf_1 = savedStateHandle.ba('next'); var tmp_2 = this.pqn().coj(strings_getInstance().hmt_1); var tmp_3 = this.pqn().coj(strings_getInstance().rmj_1); this.tqm_1.r1l(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.vwf_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.kwh(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } protoOf(ContentEntryImportLinkViewModel).lwh = function (url) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vwf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onChangeLink.' call var nextValue = prevValue.kwh(url, !(url === prevValue.hwh_1) ? null : prevValue.iwh_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.ywf_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.ywf_1 = launch(tmp_0, VOID, VOID, ContentEntryImportLinkViewModel$onChangeLink$slambda_0(this, url, null)); }; protoOf(ContentEntryImportLinkViewModel).cwg = function () { if (!this.vwf_1.t2().jwh_1) { return Unit_instance; } if (isBlank(this.vwf_1.t2().hwh_1)) { Napier_getInstance().c5f('link is blank'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vwf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onClickNext.' call var nextValue = prevValue.kwh(VOID, this.pqn().coj(strings_getInstance().rmn_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.vwf_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.kwh(VOID, VOID, false); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.ywf_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } this.pqm_1.tqi('importUrl', this.vwf_1.t2().hwh_1); var tmp = this.gqn(); 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.hwh_1 = url; this.iwh_1 = linkError; this.jwh_1 = fieldsEnabled; } protoOf(ContentEntryImportLinkUiState).mwh = function (url, linkError, fieldsEnabled) { return new ContentEntryImportLinkUiState(url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).kwh = function (url, linkError, fieldsEnabled, $super) { url = url === VOID ? this.hwh_1 : url; linkError = linkError === VOID ? this.iwh_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.jwh_1 : fieldsEnabled; return $super === VOID ? this.mwh(url, linkError, fieldsEnabled) : $super.mwh.call(this, url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).toString = function () { return 'ContentEntryImportLinkUiState(url=' + this.hwh_1 + ', linkError=' + this.iwh_1 + ', fieldsEnabled=' + this.jwh_1 + ')'; }; protoOf(ContentEntryImportLinkUiState).hashCode = function () { var result = getStringHashCode(this.hwh_1); result = imul(result, 31) + (this.iwh_1 == null ? 0 : getStringHashCode(this.iwh_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.jwh_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.hwh_1 === tmp0_other_with_cast.hwh_1)) return false; if (!(this.iwh_1 == tmp0_other_with_cast.iwh_1)) return false; if (!(this.jwh_1 === tmp0_other_with_cast.jwh_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).jaw_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).waw_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.nwh_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function ContentEntryListItemUiState(contentEntry) { this.nwh_1 = contentEntry; } protoOf(ContentEntryListItemUiState).toString = function () { return ContentEntryListItemUiState__toString_impl_2mjydu(this.nwh_1); }; protoOf(ContentEntryListItemUiState).hashCode = function () { return ContentEntryListItemUiState__hashCode_impl_odpv6p(this.nwh_1); }; protoOf(ContentEntryListItemUiState).equals = function (other) { return ContentEntryListItemUiState__equals_impl_d3bksl(this.nwh_1, other); }; function get_listItemUiState_0(_this__u8e3s4) { return _ContentEntryListItemUiState___init__impl__r5o9qy(_this__u8e3s4); } function ContentEntryListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.wwh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda$slambda).bqf = function (hasNewContentPermission, $completion) { var tmp = this.cqf(hasNewContentPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.wwh_1.kqv_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(prevValue.nwi_1 === this.xwh_1)) { tmp_0 = prevValue.pwi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.xwh_1); } else { tmp_0 = prevValue; } var nextValue = tmp_0; if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.wwh_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(prevValue_0.nq5_1.iq6(this.xwh_1 ? !this.wwh_1.vwj_1 : false)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda$slambda).cqf = function (hasNewContentPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda$slambda(this.wwh_1, completion); i.xwh_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.bqf(hasNewContentPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda$slambda(this$0, $hasPermissionFlow, resultContinuation) { this.gwk_1 = this$0; this.hwk_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(ContentEntryListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (!this.gwk_1.rwj_1) { this.hd_1 = 2; var tmp_0 = ContentEntryListViewModel$slambda$slambda$slambda_0(this.gwk_1, null); suspendResult = this.hwk_1.b1i(new sam$kotlinx_coroutines_flow_FlowCollector$0_26(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; continue $sm; } case 1: return Unit_instance; case 2: throwKotlinNothingValueException(); break; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda).f79 = function (completion) { return new ContentEntryListViewModel$slambda$slambda(this.gwk_1, this.hwk_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.d88($completion); }; l.$arity = 0; return l; } function ContentEntryListViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.qwk_1 = $savedStateHandle; this.rwk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_1).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1 = this.swk_1.nq9_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.twk_1 = tmp_2; var tmp_3 = this; var tmp1_safe_receiver = this.qwk_1.ba('entriesToMove'); var tmp_4; if (tmp1_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.rwk_1.g4s().m46(ListSerializer(Companion_instance_202.h4s()), 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.uwk_1 = tmp_5; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_moveContentEntriesUseCase__fb3hfi(this.rwk_1).qp9(this.twk_1, toSet(this.uwk_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rwk_1.nqn().rq6(new Snack(this.rwk_1.pqn().doj(strings_getInstance().nn9_1, [this.uwk_1.u().toString()]))); this.id_1 = 4; this.hd_1 = 3; continue $sm; case 2: this.id_1 = 4; var tmp_6 = this.kd_1; if (tmp_6 instanceof Error) { var e = this.kd_1; Napier_getInstance().g5f('Could not move entries', e); var tmp_7 = this.rwk_1.nqn(); var tmp3_elvis_lhs = e.message; tmp_7.rq6(new Snack(tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs)); this.hd_1 = 3; continue $sm; } else { throw this.kd_1; } case 3: this.id_1 = 4; setSelectedItems(this.rwk_1, emptySet()); return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 4) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_1).hqa = function (result, completion) { var i = new ContentEntryListViewModel$slambda$slambda_1(this.qwk_1, this.rwk_1, completion); i.swk_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.gqa(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).fwl = function (uiState, hasPermission, $completion) { var tmp = this.gwl(uiState, hasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).on = function (p1, p2, $completion) { var tmp = p1 instanceof ContentEntryListUiState ? p1 : THROW_CCE(); return this.fwl(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return new Pair(this.dwl_1, this.ewl_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).gwl = function (uiState, hasPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda_3(completion); i.dwl_1 = uiState; i.ewl_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.fwl(uiState, hasPermission, $completion); }; l.$arity = 2; return l; } function ContentEntryListViewModel$slambda$slambda_5(this$0, resultContinuation) { this.pwl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_5).rwl = function (it, $completion) { var tmp = this.swl(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda_5).he = function (p1, $completion) { return this.rwl(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0; if (!this.qwl_1.w6_1.kwi_1.c1()) { tmp_0 = this.qwl_1.x6_1; } else { tmp_0 = false; } var showMoveIcon = tmp_0; if (!(showMoveIcon === !this.pwl_1.tqm_1.t2().yq5_1.c1())) { l$ret$1: do { var this_0 = this.pwl_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (showMoveIcon) { var tmp_2 = AppStateIcon_MOVE_getInstance(); var tmp_3 = this.pwl_1.pqn().coj(strings_getInstance().bmn_1); var tmp_4 = new AppActionButton(tmp_2, tmp_3, ContentEntryListViewModel$onClickMoveAction$ref(this.pwl_1), 'action_move'); var tmp_5 = AppStateIcon_DELETE_getInstance(); var tmp_6 = this.pwl_1.pqn().coj(strings_getInstance().gmj_1); tmp_1 = listOf([tmp_4, new AppActionButton(tmp_5, tmp_6, ContentEntryListViewModel$onClickDeleteAction$ref(this.pwl_1), 'action_delete')]); } else { tmp_1 = emptyList(); } var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_5).swl = function (it, completion) { var i = new ContentEntryListViewModel$slambda$slambda_5(this.pwl_1, completion); i.qwl_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.rwl(it, $completion); }; l.$arity = 1; return l; } function _get_moveContentEntriesUseCase__fb3hfi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wwj_1; moveContentEntriesUseCase$factory_0(); return this_0.t2(); } function _get_deleteEntriesUseCase__hkwqc9($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xwj_1; deleteEntriesUseCase$factory_0(); return this_0.t2(); } function setSelectedItems($this, selectedEntries) { $this.pqm_1.tqi('selectedEntries', $this.g4s().l46(ListSerializer(Companion_instance_202.h4s()), toList(selectedEntries))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.setSelectedItems.' call var nextValue = prevValue.pwi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, selectedEntries); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var numItemsSelected = $this.kqv_1.t2().kwi_1.u(); var hasSelectedItems = numItemsSelected > 0; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = $this.tqm_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.pqn().twl(plurals_getInstance().mns_1, numItemsSelected); } else { tmp = $this.uwj_1; } var tmp1_title = tmp; var tmp_0; if (hasSelectedItems) { var tmp_1 = AppStateIcon_CLOSE_getInstance(); var tmp_2 = $this.pqn().coj(strings_getInstance().vnm_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.cq6(VOID, VOID, tmp1_title, VOID, VOID, hasSelectedItems, tmp0_userAccountIconVisible, VOID, VOID, VOID, VOID, VOID, tmp2_leadingActionButton, tmp3_appBarColors); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } function selectDestinationToMoveEntries($this, entries) { $this.pqm_1.tqi('entriesToMove', $this.g4s().l46(ListSerializer(Companion_instance_202.h4s()), toList(entries))); var tmp = Companion_instance_28.h4s(); $this.xqn('PickContentEntry', 'moveToDestinationResult', null, tmp, mapOf([to('listMode', ListViewMode_PICKER_getInstance().pqj_1), to('selectFolder', 'true')])); } function onClickMoveAction($this) { selectDestinationToMoveEntries($this, $this.kqv_1.t2().kwi_1); } function launchDeleteEntries($this, entries) { var tmp = $this.gqn(); launch(tmp, VOID, VOID, ContentEntryListViewModel$launchDeleteEntries$slambda_0($this, entries, null)); } function onClickDeleteAction($this) { launchDeleteEntries($this, $this.kqv_1.t2().kwi_1); } function Companion_151() { Companion_instance_200 = this; this.uwl_1 = 'ContentEntries'; this.vwl_1 = 'ContentEntryListHome'; this.wwl_1 = 'PickContentEntry'; this.xwl_1 = listOf(['ContentEntries', 'ContentEntryListHome', 'PickContentEntry']); this.ywl_1 = 'filter'; this.zwl_1 = 1; this.awm_1 = 2; this.bwm_1 = 3; this.cwm_1 = 4; this.dwm_1 = new Long(1, 0); this.ewm_1 = 'chipId'; this.fwm_1 = 'moveToDestinationResult'; this.gwm_1 = 'selectFolder'; this.hwm_1 = 'selectedEntries'; this.iwm_1 = 'entriesToMove'; } var Companion_instance_200; function Companion_getInstance_168() { if (Companion_instance_200 == null) new Companion_151(); return Companion_instance_200; } function sam$kotlinx_coroutines_flow_FlowCollector$0_26(function_0) { this.jwm_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_26).n1e = function (value, $completion) { return this.jwm_1(value, $completion); }; function createContextMenuItemsForEntry$entriesToAction(this$0, rightClickedItem) { var selectedEntries = this$0.kqv_1.t2().kwi_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.kqv_1.t2().awi_1) { case 2: tmp = this$0.lqn().p7e().rav(this$0.hqn()); break; case 3: tmp = this$0.lqn().p7e().qav(this$0.hqn()); break; case 4: tmp = this$0.lqn().p7e().pav(this$0.hqn(), this$0.qwj_1, new Long(0, 0), new Long(0, 0), this$0.kqv_1.t2().fwi_1.jqc_1, false); break; case 1: tmp = this$0.lqn().p7e().pav(this$0.hqn(), this$0.qwj_1, new Long(0, 0), new Long(0, 0), this$0.kqv_1.t2().fwi_1.jqc_1, false); break; default: tmp = new EmptyPagingSource(); break; } return tmp; }; } function ContentEntryListViewModel$createContextMenuItemsForEntry$ref($boundThis) { var l = function (p0) { return $boundThis.kwm(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.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel...' call var nextValue = prevValue.pwi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryListViewModel$slambda(this$0, resultContinuation) { this.twm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (!(this.twm_1.qqn() == null) ? !this.twm_1.swj_1 : false) { this.vwm_1 = this.twm_1.pqn().coj(strings_getInstance().ene_1); this.hd_1 = 2; continue $sm; } else { if (this.twm_1.qwj_1.equals(new Long(1, 0))) { this.vwm_1 = this.twm_1.pqn().coj(strings_getInstance().rni_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.twm_1.lqn().p7e().oav(this.twm_1.qwj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp0_elvis_lhs = suspendResult; this.vwm_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.vwm_1; this.twm_1.uwj_1 = ARGUMENT; l$ret$1: do { var this_0 = this.twm_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(VOID, VOID, this.twm_1.uwj_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda(this.twm_1, completion); i.uwm_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_1(this$0, $hasPermissionFlow, resultContinuation) { this.ewn_1 = this$0; this.fwn_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.ewn_1.kqv_1, ContentEntryListViewModel$slambda$slambda_0(this.ewn_1, this.fwn_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_1(this.ewn_1, this.fwn_1, completion); i.gwn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_3(this$0, $savedStateHandle, resultContinuation) { this.pwn_1 = this$0; this.qwn_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.pwn_1.tqn(this.pwn_1.oqn(), 'moveToDestinationResult'); var tmp_1 = ContentEntryListViewModel$slambda$slambda_2(this.qwn_1, this.pwn_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_3).p1n = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_3(this.pwn_1, this.qwn_1, completion); i.rwn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_5(this$0, $hasPermissionFlow, resultContinuation) { this.awo_1 = this$0; this.bwo_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = combine(this.awo_1.kqv_1, this.bwo_1, ContentEntryListViewModel$slambda$slambda_4(null)); var tmp_1 = ContentEntryListViewModel$slambda$slambda_6(this.awo_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$slambda_5).p1n = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_5(this.awo_1, this.bwo_1, completion); i.cwo_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.o1n($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.lwo_1 = this$0; this.mwo_1 = $entries; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_deleteEntriesUseCase__hkwqc9(this.lwo_1).vp2(this.mwo_1, this.lwo_1.hqn(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: setSelectedItems(this.lwo_1, emptySet()); this.lwo_1.nqn().rq6(new Snack(this.lwo_1.pqn().twl(plurals_getInstance().nns_1, this.mwo_1.u()))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).p1n = function ($this$launch, completion) { var i = new ContentEntryListViewModel$launchDeleteEntries$slambda(this.lwo_1, this.mwo_1, completion); i.nwo_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel(di, savedStateHandle, destName) { Companion_getInstance_168(); UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryListUiState(), destName); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('parentUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.qwj_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.rwj_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.swj_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_3 = this; tmp_3.twj_1 = ContentEntryListViewModel$pagingSourceFactory$lambda(this); this.uwj_1 = ''; this.vwj_1 = this.swj_1 ? this.pqv().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.wwj_1 = Instance(this_0, tmp$ret$0, null).u5d(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.xwj_1 = Instance(this_1, tmp$ret$2, null).u5d(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.g4s().m46(ListSerializer(Companion_instance_202.h4s()), 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.kqv_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp0_contentEntryList = this.twj_1; var tmp1_showSelectFolderButton = this.vwj_1; var tmp2_contextMenuItems = ContentEntryListViewModel$createContextMenuItemsForEntry$ref(this); var nextValue = prevValue.pwi(VOID, tmp0_contentEntryList, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, savedStateSelectedEntries, tmp1_showSelectFolderButton, tmp2_contextMenuItems); if (this_2.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.tqm_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp_9 = this.pqn().coj(strings_getInstance().en4_1); var tmp_10 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.cq6(new FabUiState(false, tmp_9, tmp_10, ContentEntryListViewModel$lambda(this)), VOID, VOID, VOID, this.pqv().equals(ListViewMode_PICKER_getInstance())); if (this_3.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } if (this.rwj_1 ? this.qwj_1.equals(new Long(1, 0)) : false) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.kqv_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().snd_1, 2), new MessageIdOption2(strings_getInstance().pnk_1, 3), new MessageIdOption2(strings_getInstance().rni_1, 4)]); var nextValue_1 = prevValue_1.pwi(VOID, VOID, tmp2_selectedChipId, tmp3_filterOptions, VOID, VOID, VOID, VOID, false, true, true); if (this_4.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } } var tmp_11 = this.lqn().j7g(); var tmp_12 = this.fqn().zo9().rky_1; PermissionFlags_getInstance(); var hasPermissionFlow = shareIn(tmp_11.si0(tmp_12, new Long(65536, 0)), this.gqn(), Companion_getInstance_12().p1i()); var tmp_13 = this.gqn(); launch(tmp_13, VOID, VOID, ContentEntryListViewModel$slambda_0(this, null)); var tmp_14 = this.gqn(); launch(tmp_14, VOID, VOID, ContentEntryListViewModel$slambda_2(this, hasPermissionFlow, null)); var tmp_15 = this.gqn(); launch(tmp_15, VOID, VOID, ContentEntryListViewModel$slambda_4(this, savedStateHandle, null)); var tmp_16 = this.gqn(); launch(tmp_16, VOID, VOID, ContentEntryListViewModel$slambda_6(this, hasPermissionFlow, null)); } protoOf(ContentEntryListViewModel).kwm = function (entry) { var uiStateVal = this.kqv_1.t2(); var tmp; if (uiStateVal.nwi_1 ? this.pqv().equals(ListViewMode_BROWSER_getInstance()) : false) { var rightClickedItem = asSelectedItem(entry); if (!uiStateVal.kwi_1.a1(rightClickedItem)) { setSelectedItems(this, emptySet()); } var tmp_0 = this.pqn().coj(strings_getInstance().znm_1); var tmp_1 = new UstadContextMenuItem(tmp_0, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda(this, rightClickedItem)); var tmp_2 = this.pqn().coj(strings_getInstance().gmj_1); tmp = listOf([tmp_1, new UstadContextMenuItem(tmp_2, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda_0(this, rightClickedItem))]); } else { tmp = emptyList(); } return tmp; }; protoOf(ContentEntryListViewModel).eqw = function (searchText) { }; protoOf(ContentEntryListViewModel).fqw = function () { }; protoOf(ContentEntryListViewModel).vv6 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.pwi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryListViewModel).owo = function () { this.vv6(); // 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_125(); this_0.s('parentUid', this.qwj_1.toString()); var tmp$ret$2 = this_0.f3(); this.xqw('ContentEntryEdit', tmp$ret$2); }; protoOf(ContentEntryListViewModel).pwo = function () { this.vv6(); // 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_125(); this_0.s('parentUid', this.qwj_1.toString()); Companion_getInstance_125(); this_0.s('next', 'ContentEntryEdit'); this.dqo(this_0, Companion_getInstance_173().twb_1); var tmp$ret$2 = this_0.f3(); this.xqw('ContentEntryImportLink', tmp$ret$2); }; protoOf(ContentEntryListViewModel).qwo = function (fileUri, fileName) { this.vv6(); // 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_125(); this_0.s('parentUid', this.qwj_1.toString()); this.dqo(this_0, Companion_getInstance_173().twb_1); var tmp$ret$2 = this_0.f3(); this.xqw('ContentEntryGetMetadata', tmp$ret$2); }; protoOf(ContentEntryListViewModel).rwo = function (entry) { if (entry == null) return Unit_instance; var tmp0_safe_receiver = this.pqm_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.waw_1 ? this.vwj_1 : false) return Unit_instance; else { var tmp; if (this.pqv().equals(ListViewMode_PICKER_getInstance()) ? entry.waw_1 : false) { tmp = goToOnContentEntryEdit === 1; } else { tmp = false; } if (tmp) { Companion_getInstance_173(); var tmp2_nextViewName = 'CourseBlockEdit'; var tmp3_key = 'courseblock'; var tmp4_serializer = Companion_getInstance_13().h4s(); // 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.dqo(this_0, Companion_getInstance_173().twb_1); Companion_getInstance_173(); this_0.s('SelectedContentEntry', this.g4s().l46(Companion_instance_41.h4s(), new ContentEntryAndContentJob(entry))); var tmp5_args = this_0.f3(); this.xqn(tmp2_nextViewName, tmp3_key, null, tmp4_serializer, tmp5_args, VOID, false); } else { if (entry.waw_1) { Companion_getInstance_159(); Companion_getInstance_116(); var tmp_0 = to('entityUid', entry.haw_1.toString()); Companion_getInstance_125(); this.rqm_1.dp6('ContentEntry', mapOf([tmp_0, to('parentUid', this.qwj_1.toString())])); } else { var tmp_1; if (this.qqm_1 === 'ContentEntryListHome') { tmp_1 = 'ContentEntries'; } else { tmp_1 = this.qqm_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_125(); this_1.s('parentUid', entry.haw_1.toString()); Companion_getInstance_116(); this.cqo(this_1, 'result_key'); Companion_getInstance_116(); this.cqo(this_1, 'result_viewname'); this.cqo(this_1, 'selectFolder'); this.cqo(this_1, 'goToOnContentEntryDone'); var tmp$ret$5 = this_1.f3(); this.rqm_1.dp6(tmp_2, tmp$ret$5); } } } }; protoOf(ContentEntryListViewModel).swo = 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.haw_1 = this.qwj_1; this.aqt(this_0); }; protoOf(ContentEntryListViewModel).two = function (entry, selected) { var currentSelection = this.kqv_1.t2().kwi_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.kaz_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.haw_1; if (!element.sp2_1.equals(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)) { destination.i1(element); } } tmp = toSet(destination); } setSelectedItems(this, tmp); }; protoOf(ContentEntryListViewModel).csv = function (filterOption) { // Inline function 'kotlin.takeIf' call var this_0 = this.kqv_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickFilterChip.' call if (!(this_0.t2().awi_1 === filterOption.fq7_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.pwi(VOID, VOID, filterOption.fq7_1); if (tmp0_safe_receiver.s1l(prevValue, nextValue)) { break $l$block; } } } } this.pqm_1.tqi('chipId', filterOption.fq7_1.toString()); this.mqv_1.c1i(new RefreshCommand()); }; function Companion_152() { Companion_instance_201 = this; var tmp = this; var tmp_0 = strings_getInstance().tmm_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().tmm_1; tmp.uwo_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_201; function Companion_getInstance_169() { if (Companion_instance_201 == null) new Companion_152(); 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_169(); 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_169().uwo_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.ywh_1 = filterMode; this.zwh_1 = contentEntryList; this.awi_1 = selectedChipId; this.bwi_1 = filterOptions; this.cwi_1 = showHiddenEntries; this.dwi_1 = onlyFolderFilter; this.ewi_1 = sortOptions; this.fwi_1 = activeSortOption; this.gwi_1 = createNewFolderItemVisible; this.hwi_1 = importFromLinkItemVisible; this.iwi_1 = importFromFileItemVisible; this.jwi_1 = createNewOptionsVisible; this.kwi_1 = selectedEntries; this.lwi_1 = showSelectFolderButton; this.mwi_1 = contextMenuItems; this.nwi_1 = hasWritePermission; var tmp_2 = this; // Inline function 'kotlin.collections.map' call var this_0 = this.kwi_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.sp2_1; destination.i1(tmp$ret$1); } tmp_2.owi_1 = toSet(destination); } protoOf(ContentEntryListUiState).vwo = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.bwi_1.c1(); }; protoOf(ContentEntryListUiState).wwo = 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).pwi = function (filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission, $super) { filterMode = filterMode === VOID ? this.ywh_1 : filterMode; contentEntryList = contentEntryList === VOID ? this.zwh_1 : contentEntryList; selectedChipId = selectedChipId === VOID ? this.awi_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.bwi_1 : filterOptions; showHiddenEntries = showHiddenEntries === VOID ? this.cwi_1 : showHiddenEntries; onlyFolderFilter = onlyFolderFilter === VOID ? this.dwi_1 : onlyFolderFilter; sortOptions = sortOptions === VOID ? this.ewi_1 : sortOptions; activeSortOption = activeSortOption === VOID ? this.fwi_1 : activeSortOption; createNewFolderItemVisible = createNewFolderItemVisible === VOID ? this.gwi_1 : createNewFolderItemVisible; importFromLinkItemVisible = importFromLinkItemVisible === VOID ? this.hwi_1 : importFromLinkItemVisible; importFromFileItemVisible = importFromFileItemVisible === VOID ? this.iwi_1 : importFromFileItemVisible; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.jwi_1 : createNewOptionsVisible; selectedEntries = selectedEntries === VOID ? this.kwi_1 : selectedEntries; showSelectFolderButton = showSelectFolderButton === VOID ? this.lwi_1 : showSelectFolderButton; contextMenuItems = contextMenuItems === VOID ? this.mwi_1 : contextMenuItems; hasWritePermission = hasWritePermission === VOID ? this.nwi_1 : hasWritePermission; return $super === VOID ? this.wwo(filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission) : $super.wwo.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.ywh_1 + ', contentEntryList=' + this.zwh_1 + ', selectedChipId=' + this.awi_1 + ', filterOptions=' + this.bwi_1 + ', showHiddenEntries=' + this.cwi_1 + ', onlyFolderFilter=' + this.dwi_1 + ', sortOptions=' + this.ewi_1 + ', activeSortOption=' + this.fwi_1 + ', createNewFolderItemVisible=' + this.gwi_1 + ', importFromLinkItemVisible=' + this.hwi_1 + ', importFromFileItemVisible=' + this.iwi_1 + ', createNewOptionsVisible=' + this.jwi_1 + ', selectedEntries=' + this.kwi_1 + ', showSelectFolderButton=' + this.lwi_1 + ', contextMenuItems=' + this.mwi_1 + ', hasWritePermission=' + this.nwi_1 + ')'; }; protoOf(ContentEntryListUiState).hashCode = function () { var result = this.ywh_1; result = imul(result, 31) + hashCode(this.zwh_1) | 0; result = imul(result, 31) + this.awi_1 | 0; result = imul(result, 31) + hashCode(this.bwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dwi_1) | 0; result = imul(result, 31) + hashCode(this.ewi_1) | 0; result = imul(result, 31) + this.fwi_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.gwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jwi_1) | 0; result = imul(result, 31) + hashCode(this.kwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lwi_1) | 0; result = imul(result, 31) + hashCode(this.mwi_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nwi_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.ywh_1 === tmp0_other_with_cast.ywh_1)) return false; if (!equals(this.zwh_1, tmp0_other_with_cast.zwh_1)) return false; if (!(this.awi_1 === tmp0_other_with_cast.awi_1)) return false; if (!equals(this.bwi_1, tmp0_other_with_cast.bwi_1)) return false; if (!(this.cwi_1 === tmp0_other_with_cast.cwi_1)) return false; if (!(this.dwi_1 === tmp0_other_with_cast.dwi_1)) return false; if (!equals(this.ewi_1, tmp0_other_with_cast.ewi_1)) return false; if (!this.fwi_1.equals(tmp0_other_with_cast.fwi_1)) return false; if (!(this.gwi_1 === tmp0_other_with_cast.gwi_1)) return false; if (!(this.hwi_1 === tmp0_other_with_cast.hwi_1)) return false; if (!(this.iwi_1 === tmp0_other_with_cast.iwi_1)) return false; if (!(this.jwi_1 === tmp0_other_with_cast.jwi_1)) return false; if (!equals(this.kwi_1, tmp0_other_with_cast.kwi_1)) return false; if (!(this.lwi_1 === tmp0_other_with_cast.lwi_1)) return false; if (!equals(this.mwi_1, tmp0_other_with_cast.mwi_1)) return false; if (!(this.nwi_1 === tmp0_other_with_cast.nwi_1)) return false; return true; }; function Companion_153() { } protoOf(Companion_153).h4s = function () { return $serializer_getInstance_73(); }; var Companion_instance_202; function Companion_getInstance_170() { return Companion_instance_202; } function $serializer_61() { $serializer_instance_61 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListSelectedItem', this, 3); tmp0_serialDesc.n4g('contentEntryUid', false); tmp0_serialDesc.n4g('contentEntryParentChildJoinUid', false); tmp0_serialDesc.n4g('parentContentEntryUid', false); this.xwo_1 = tmp0_serialDesc; } protoOf($serializer_61).k45 = function () { return this.xwo_1; }; protoOf($serializer_61).e4h = 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_61).m45 = function (decoder) { var tmp0_desc = this.xwo_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.c49(tmp0_desc); if (tmp7_input.r49()) { tmp4_local0 = tmp7_input.i49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.i49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.i49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.i49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.d49(tmp0_desc); return ContentEntryListSelectedItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_61).ywo = function (encoder, value) { var tmp0_desc = this.xwo_1; var tmp1_output = encoder.c49(tmp0_desc); tmp1_output.m4a(tmp0_desc, 0, value.sp2_1); tmp1_output.m4a(tmp0_desc, 1, value.tp2_1); tmp1_output.m4a(tmp0_desc, 2, value.up2_1); tmp1_output.d49(tmp0_desc); }; protoOf($serializer_61).l45 = function (encoder, value) { return this.ywo(encoder, value instanceof ContentEntryListSelectedItem ? value : THROW_CCE()); }; var $serializer_instance_61; function $serializer_getInstance_73() { if ($serializer_instance_61 == null) new $serializer_61(); return $serializer_instance_61; } function ContentEntryListSelectedItem_init_$Init$(seen1, contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_73().xwo_1); } $this.sp2_1 = contentEntryUid; $this.tp2_1 = contentEntryParentChildJoinUid; $this.up2_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.sp2_1 = contentEntryUid; this.tp2_1 = contentEntryParentChildJoinUid; this.up2_1 = parentContentEntryUid; } protoOf(ContentEntryListSelectedItem).toString = function () { return 'ContentEntryListSelectedItem(contentEntryUid=' + this.sp2_1.toString() + ', contentEntryParentChildJoinUid=' + this.tp2_1.toString() + ', parentContentEntryUid=' + this.up2_1.toString() + ')'; }; protoOf(ContentEntryListSelectedItem).hashCode = function () { var result = this.sp2_1.hashCode(); result = imul(result, 31) + this.tp2_1.hashCode() | 0; result = imul(result, 31) + this.up2_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.sp2_1.equals(tmp0_other_with_cast.sp2_1)) return false; if (!this.tp2_1.equals(tmp0_other_with_cast.tp2_1)) return false; if (!this.up2_1.equals(tmp0_other_with_cast.up2_1)) return false; return true; }; function asSelectedItem(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.kaz_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.haw_1; var tmp = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp2_safe_receiver = _this__u8e3s4.maz_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.raz_1; var tmp_0 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; var tmp4_safe_receiver = _this__u8e3s4.maz_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.oaz_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).iwp = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.iwp(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SubtitleEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SubtitleEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new SubtitleEditViewModel$slambda$slambda(completion); i.hwp_1 = db; return i; }; function SubtitleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SubtitleEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.iwp(db, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.rwp_1 = $savedStateHandle; this.swp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda$slambda_1).twp = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.twp($completion); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_elvis_lhs = this.rwp_1.ba('uri'); var tmp2_uri = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.rwp_1.ba('filename'); var tmp3_title = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp4_langCode = _get_supportedLanguagesConfig__bd0744(this.swp_1).zpl_1; return new SubtitleTrack(tmp2_uri, 'text/vtt', tmp4_langCode, tmp3_title); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).f79 = function (completion) { return new SubtitleEditViewModel$slambda$slambda_1(this.rwp_1, this.swp_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.twp($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.swq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel...' call var nextValue = prevValue.xwq(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_supportedLanguagesConfig__bd0744($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.rwq_1; supportedLanguagesConfig$factory_0(); return this_0.t2(); } function Companion_154() { this.ywq_1 = 'uri'; this.zwq_1 = 'filename'; this.awr_1 = 'SubtitleEdit'; } var Companion_instance_203; function Companion_getInstance_171() { return Companion_instance_203; } function SubtitleEditViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.bwr(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function SubtitleEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.kwr_1 = this$0; this.lwr_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SubtitleEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_80.h4s(); var tmp_1 = SubtitleEditViewModel$slambda$slambda_0(null); var tmp_2 = SubtitleEditViewModel$slambda$slambda_2(this.lwr_1, this.kwr_1, null); suspendResult = this.kwr_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, SubtitleEditViewModel$slambda$lambda(this.kwr_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.kwr_1.swq_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.xwq(VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.kwr_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.vq5_1.dq5(true)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SubtitleEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new SubtitleEditViewModel$slambda(this.kwr_1, this.lwr_1, completion); i.mwr_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.vwr_1 = $commitDelay; this.wwr_1 = $entity; this.xwr_1 = $this; this.ywr_1 = $key; this.zwr_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SubtitleEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.vwr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.wwr_1 == null)) { this.hd_1 = 2; suspendResult = this.xwr_1.vqn(this.xwr_1.pqm_1, this.ywr_1, this.zwr_1, this.wwr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SubtitleEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new SubtitleEditViewModel$onEntityChanged$slambda(this.vwr_1, this.wwr_1, this.xwr_1, this.ywr_1, this.zwr_1, completion); i.aws_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.o1n($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.rwq_1 = Instance(this, tmp$ret$0, null).u5d(this, supportedLanguagesConfig$factory()); this.swq_1 = MutableStateFlow(new SubtitleEditUiState()); this.twq_1 = asSharedFlow(this.swq_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.' call var tmp_1 = this.pqn().coj(strings_getInstance().rnq_1); var tmp_2 = this.pqn().coj(strings_getInstance().pmr_1); var nextValue = prevValue.cq6(VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(VOID, tmp_2, VOID, SubtitleEditViewModel$onClickDone$ref(this))); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.gqn(); launch(tmp_3, VOID, VOID, SubtitleEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(SubtitleEditViewModel).bws = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.swq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.onEntityChanged.' call var nextValue = prevValue.xwq(entity); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_80.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.wqs_1 = launch(tmp_0, VOID, VOID, SubtitleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SubtitleEditViewModel).bwr = function () { this.aqt(this.swq_1.t2().uwq_1); }; function SubtitleEditUiState(entity, titleError, fieldsEnabled) { entity = entity === VOID ? null : entity; titleError = titleError === VOID ? null : titleError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.uwq_1 = entity; this.vwq_1 = titleError; this.wwq_1 = fieldsEnabled; } protoOf(SubtitleEditUiState).cws = function (entity, titleError, fieldsEnabled) { return new SubtitleEditUiState(entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).xwq = function (entity, titleError, fieldsEnabled, $super) { entity = entity === VOID ? this.uwq_1 : entity; titleError = titleError === VOID ? this.vwq_1 : titleError; fieldsEnabled = fieldsEnabled === VOID ? this.wwq_1 : fieldsEnabled; return $super === VOID ? this.cws(entity, titleError, fieldsEnabled) : $super.cws.call(this, entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).toString = function () { return 'SubtitleEditUiState(entity=' + this.uwq_1 + ', titleError=' + this.vwq_1 + ', fieldsEnabled=' + this.wwq_1 + ')'; }; protoOf(SubtitleEditUiState).hashCode = function () { var result = this.uwq_1 == null ? 0 : this.uwq_1.hashCode(); result = imul(result, 31) + (this.vwq_1 == null ? 0 : getStringHashCode(this.vwq_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.wwq_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.uwq_1, tmp0_other_with_cast.uwq_1)) return false; if (!(this.vwq_1 == tmp0_other_with_cast.vwq_1)) return false; if (!(this.wwq_1 === tmp0_other_with_cast.wwq_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.dws_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_155() { Companion_instance_204 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.dws_1 = lazy(tmp_0, CourseBlockViewModelConstants$CompletionCriteria$Companion$_anonymous__1j6hl9); } protoOf(Companion_155).lkb = 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.hws_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_155).h4s = function () { return _get_$cachedSerializer__te6jhj_2(this); }; protoOf(Companion_155).p4h = function (typeParamsSerializers) { return this.h4s(); }; var Companion_instance_204; function Companion_getInstance_172() { CompletionCriteria_initEntries(); if (Companion_instance_204 == null) new Companion_155(); 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().fn6_1; CompletionCriteria_AUTOMATIC_instance = new CompletionCriteria('AUTOMATIC', 0, tmp, 0); var tmp_0 = strings_getInstance().en6_1; CompletionCriteria_MIN_SCORE_instance = new CompletionCriteria('MIN_SCORE', 1, tmp_0, 1); var tmp_1 = strings_getInstance().gn6_1; CompletionCriteria_STUDENT_SELF_MARKS_instance = new CompletionCriteria('STUDENT_SELF_MARKS', 2, tmp_1, 2); var tmp_2 = strings_getInstance().ln6_1; CompletionCriteria_ASSIGNMENT_SUBMITTED_instance = new CompletionCriteria('ASSIGNMENT_SUBMITTED', 3, tmp_2, 100); var tmp_3 = strings_getInstance().vng_1; CompletionCriteria_ASSIGNMENT_GRADED_instance = new CompletionCriteria('ASSIGNMENT_GRADED', 4, tmp_3, 102); Companion_getInstance_172(); } function CompletionCriteria(name, ordinal, stringResource, value) { Enum.call(this, name, ordinal); this.gws_1 = stringResource; this.hws_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.qws_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.rws_1.nq9_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.qws_1.pwt_1.t2().qtv_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lk8_1; this.qws_1.rwt(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dkm(VOID, VOID, VOID, VOID, VOID, descriptionHtml)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).hqa = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda(this.qws_1, completion); i.rws_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.gqa(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.awu_1 = this$0; this.bwu_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.cwu_1.nq9_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.awu_1.pwt_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.qtv_1; var nextValue = prevValue.btw(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xk8(VOID, VOID, contentEntryResult.mk7_1, VOID, contentEntryResult.ok7_1, contentEntryResult.nk7_1)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.bwu_1.tqi('SavedSelectedContentEntry', this.awu_1.g4s().l46(Companion_instance_41.h4s(), contentEntryResult)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).hqa = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda_1(this.awu_1, this.bwu_1, completion); i.cwu_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.gqa(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda).jtx = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.jtx(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda).ony = function (it, completion) { var i = new CourseBlockEditViewModel$slambda$slambda(completion); i.lwu_1 = it; return i; }; function CourseBlockEditViewModel$slambda$slambda_0(resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.jtx(it, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, $selectedContentEntry, resultContinuation) { this.uwu_1 = this$0; this.vwu_1 = $savedStateHandle; this.wwu_1 = $selectedContentEntry; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_1).ttx = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.ttx($completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.uwu_1.jqn()); suspendResult = tmp_0.i63(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var newUid = suspendResult; var this_0 = new CourseBlock(); this_0.n7y_1 = newUid; this_0.d7z_1 = true; var tmp_1 = this_0; var tmp0_safe_receiver = this.vwu_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.o7y_1 = tmp_2; var tmp_3 = this_0; var tmp2_safe_receiver = this.wwu_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.mk7_1; tmp_3.r7y_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.iaw_1; var tmp_4 = this_0; var tmp4_safe_receiver = this.wwu_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.mk7_1; tmp_4.s7y_1 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.jaw_1; if (!(this.wwu_1 == null)) { var tmp_5 = this_0; var tmp6_safe_receiver = this.wwu_1.mk7_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.haw_1; tmp_5.f7z_1 = tmp7_elvis_lhs == null ? new Long(0, 0) : tmp7_elvis_lhs; var tmp_6 = this_0; tmp_6.o7y_1 = 104; } var tmp0_safe_receiver_0 = this.wwu_1; var tmp5_contentEntry = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.mk7_1; var tmp3_safe_receiver_0 = this.wwu_1; var tmp6_contentJob = tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.nk7_1; var tmp2_safe_receiver_0 = this.wwu_1; var tmp7_contentJobItem = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.ok7_1; var tmp8_courseBlockPicture = new CourseBlockPicture(newUid); var tmp1_safe_receiver = this.wwu_1; var tmp9_contentEntryPicture = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pk7_1; return new CourseBlockAndEditEntities(this_0, tmp8_courseBlockPicture, tmp5_contentEntry, tmp9_contentEntryPicture, tmp7_contentJobItem, tmp6_contentJob); case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).f79 = function (completion) { return new CourseBlockEditViewModel$slambda$slambda_1(this.uwu_1, this.vwu_1, this.wwu_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.ttx($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.pwt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel...' call var nextValue = prevValue.btw(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseBlockEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseBlockEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.fwv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.fwv_1.tqn(this.fwv_1.oqn(), 'courseBlockDesc'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_0(this.fwv_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_3(this.fwv_1, completion); i.gwv_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_5(this$0, $savedStateHandle, resultContinuation) { this.pwv_1 = this$0; this.qwv_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.pwv_1.tqn(this.pwv_1.oqn(), 'courseBlockEditContentEntry'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_2(this.pwv_1, this.qwv_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_5(this.pwv_1, this.qwv_1, completion); i.rwv_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function Companion_156() { Companion_instance_205 = this; this.nwb_1 = 'CourseBlockEdit'; this.owb_1 = 'SelectedContentEntry'; this.pwb_1 = 'blockType'; this.qwb_1 = 'courseBlockDesc'; this.rwb_1 = 'courseBlockEditContentEntry'; this.swb_1 = 'SavedSelectedContentEntry'; var tmp = this; Companion_getInstance_125(); Companion_getInstance_116(); Companion_getInstance_116(); tmp.twb_1 = listOf(['blockType', 'clazzUid', 'goToOnContentEntryDone', 'blockType', 'result_viewname', 'result_key', 'listMode']); } var Companion_instance_205; function Companion_getInstance_173() { if (Companion_instance_205 == null) new Companion_156(); return Companion_instance_205; } function sam$kotlinx_coroutines_flow_FlowCollector$0_27(function_0) { this.swv_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_27).n1e = function (value, $completion) { return this.swv_1(value, $completion); }; function CourseBlockEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.bww_1 = this$0; this.cww_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.hd_1 = 1; suspendResult = this.bww_1.uqn(this.cww_1, 'SelectedContentEntry', Companion_instance_41.h4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.eww_1 = suspendResult; this.fww_1 = Companion_getInstance_13().h4s(); this.hd_1 = 2; var tmp_0 = CourseBlockEditViewModel$slambda$slambda_0(null); var tmp_1 = CourseBlockEditViewModel$slambda$slambda_2(this.bww_1, this.cww_1, this.eww_1, null); suspendResult = this.bww_1.zqn(this.fww_1, VOID, VOID, tmp_0, tmp_1, CourseBlockEditViewModel$slambda$lambda(this.bww_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.gww_1 = suspendResult; var tmp_2 = this; var tmp1_safe_receiver = this.gww_1; tmp_2.hww_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.nk8_1; var tmp_3 = this; var tmp2_safe_receiver = this.gww_1; tmp_3.iww_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lk8_1; if (!(this.hww_1 == null) ? !(this.iww_1 == null) : false) { Companion_getInstance_115(); if (this.cww_1.ba('entity') == null) { this.jww_1 = false; this.hd_1 = 4; continue $sm; } else { var tmp_4; var tmp_5 = this.hww_1.dax_1; if (tmp_5 === 2) { tmp_4 = this.hww_1.cax_1.equals(this.iww_1.n7y_1); } else { tmp_4 = false; } if (tmp_4) { var tmp_6 = this; tmp_6.jww_1 = true; this.hd_1 = 4; continue $sm; } else { var tmp_7 = this.hww_1.dax_1; if (tmp_7 === 2) { this.hd_1 = 3; var tmp_8 = this.bww_1.lqn().i7g(); var tmp_9 = this.bww_1.hqn(); var tmp_10 = this.hww_1.cax_1; PermissionFlags_getInstance(); suspendResult = tmp_8.ddl(tmp_9, tmp_10, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.jww_1 = false; this.hd_1 = 4; continue $sm; } } } } else { this.hd_1 = 5; continue $sm; } case 3: this.jww_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var canEditContentEntry = this.jww_1; l$ret$1: do { var this_0 = this.bww_1.pwt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.btw(VOID, canEditContentEntry); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 5; continue $sm; case 5: l$ret$3: do { var this_1 = this.bww_1.pwt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.btw(VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); l$ret$5: do { var this_2 = this.bww_1.tqm_1; while (true) { var prevValue_1 = this_2.t2(); var tmp0_safe_receiver = this.iww_1; var tmp1_subject = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o7y_1; var tmp_11; if (tmp1_subject === 100) { tmp_11 = this.bww_1.zqt(strings_getInstance().enj_1, strings_getInstance().pnh_1); } else { if (tmp1_subject === 102) { tmp_11 = this.bww_1.zqt(strings_getInstance().dnh_1, strings_getInstance().dnj_1); } else { if (tmp1_subject === 105) { tmp_11 = this.bww_1.zqt(strings_getInstance().fnk_1, strings_getInstance().gnk_1); } else { if (tmp1_subject === 104) { tmp_11 = this.bww_1.pqn().coj(strings_getInstance().uno_1); } else { tmp_11 = ''; } } } } var tmp_12 = tmp_11; var tmp_13 = this.bww_1.pqn().coj(strings_getInstance().pmr_1); var nextValue_1 = prevValue_1.cq6(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_13, VOID, CourseBlockEditViewModel$onClickSave$ref(this.bww_1))); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); launch(this.dww_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_4(this.bww_1, null)); launch(this.dww_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_6(this.bww_1, this.cww_1, null)); return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda(this.bww_1, this.cww_1, completion); i.dww_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.sww_1 = $commitDelay; this.tww_1 = $entity; this.uww_1 = $this; this.vww_1 = $key; this.www_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.sww_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.tww_1 == null)) { this.hd_1 = 2; suspendResult = this.uww_1.vqn(this.uww_1.pqm_1, this.vww_1, this.www_1, this.tww_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$onEntityChanged$slambda(this.sww_1, this.tww_1, this.uww_1, this.vww_1, this.www_1, completion); i.xww_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.gwx_1 = $commitDelay; this.hwx_1 = $entity; this.iwx_1 = $this; this.jwx_1 = $key; this.kwx_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.gwx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.hwx_1 == null)) { this.hd_1 = 2; suspendResult = this.iwx_1.vqn(this.iwx_1.pqm_1, this.jwx_1, this.kwx_1, this.hwx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).p1n = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$onPictureChanged$slambda(this.gwx_1, this.hwx_1, this.iwx_1, this.jwx_1, this.kwx_1, completion); i.lwx_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel(di, savedStateHandle) { Companion_getInstance_173(); UstadEditViewModel.call(this, di, savedStateHandle, 'CourseBlockEdit'); this.pwt_1 = MutableStateFlow(new CourseBlockEditUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_9().tmh().umg())); this.qwt_1 = asStateFlow(this.pwt_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, true, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp = this.gqn(); launch(tmp, VOID, VOID, CourseBlockEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(CourseBlockEditViewModel).rwt = 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.pwt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.qtv_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xk8(courseBlock); var tmp1_safe_receiver = prevValue.qtv_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lk8_1; var nextValue = prevValue.btw(tmp, VOID, VOID, VOID, VOID, this.aqu(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r7y_1, courseBlock.r7y_1, prevValue.vtv_1)); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.qtv_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().h4s(); Companion_getInstance_115(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_0 = this; var tmp_1 = this.gqn(); tmp_0.wqs_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onEntityChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).mwx = function () { var tmp0_safe_receiver = this.pwt_1.t2().qtv_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vk8(); var tmp_0 = Companion_instance_41.h4s(); // 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.pwt_1.t2().qtv_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.g4s().l46(Companion_instance_14.h4s(), tmp0_safe_receiver_0.lk8_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.xqn('ContentEntryEdit', 'courseBlockEditContentEntry', tmp, tmp_0, tmp$ret$3); }; protoOf(CourseBlockEditViewModel).ru3 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.pwt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.qtv_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.qtv_1.mk8_1; tmp = tmp1_safe_receiver.xk8(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hkm(VOID, VOID, pictureUri)); } var nextValue = prevValue.btw(tmp); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.qtv_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().h4s(); Companion_getInstance_115(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_0 = this; var tmp_1 = this.gqn(); tmp_0.wqs_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onPictureChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).os5 = function () { var tmp0_elvis_lhs = this.pwt_1.t2().qtv_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.lk8_1.r7y_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.pwt_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickSave.' call var nextValue = prevValue.btw(VOID, VOID, VOID, VOID, VOID, this.pqn().coj(strings_getInstance().vnl_1)); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } } if (this.pwt_1.t2().fu0()) return Unit_instance; this.aqt(this.pwt_1.t2().qtv_1); }; function Companion_157() { 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.nwx_1 = [null, null, new ArrayListSerializer(Companion_getInstance_172().h4s()), null, null, null, null, null, null, null, null]; } var Companion_instance_206; function Companion_getInstance_174() { if (Companion_instance_206 == null) new Companion_157(); return Companion_instance_206; } function $serializer_62() { $serializer_instance_62 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditUiState', this, 11); tmp0_serialDesc.n4g('block', true); tmp0_serialDesc.n4g('canEditSelectedContentEntry', true); tmp0_serialDesc.n4g('completionCriteriaOptions', true); tmp0_serialDesc.n4g('fieldsEnabled', true); tmp0_serialDesc.n4g('caHideUntilDateError', true); tmp0_serialDesc.n4g('caTitleError', true); tmp0_serialDesc.n4g('caDeadlineError', true); tmp0_serialDesc.n4g('caMaxPointsError', true); tmp0_serialDesc.n4g('maxPointsRequired', true); tmp0_serialDesc.n4g('caGracePeriodError', true); tmp0_serialDesc.n4g('timeZone', true); this.owx_1 = tmp0_serialDesc; } protoOf($serializer_62).k45 = function () { return this.owx_1; }; protoOf($serializer_62).e4h = function () { var tmp0_cached = Companion_getInstance_174().nwx_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_8()), 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_62).m45 = function (decoder) { var tmp0_desc = this.owx_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.c49(tmp0_desc); var tmp16_cached = Companion_getInstance_174().nwx_1; if (tmp15_input.r49()) { tmp4_local0 = tmp15_input.q49(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.e49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.o49(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.e49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.q49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.q49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.e49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.q49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.m49(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.q49(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.e49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.o49(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.e49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.q49(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.q49(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.q49(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.e49(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.q49(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.m49(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.d49(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_62).pwx = function (encoder, value) { var tmp0_desc = this.owx_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_174().nwx_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.qtv_1 == null)) { tmp1_output.u4a(tmp0_desc, 0, $serializer_getInstance_8(), value.qtv_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.rtv_1 === false)) { tmp1_output.i4a(tmp0_desc, 1, value.rtv_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !equals(value.stv_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 2, tmp2_cached[2], value.stv_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.ttv_1 === false)) { tmp1_output.i4a(tmp0_desc, 3, value.ttv_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.utv_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, StringSerializer_getInstance(), value.utv_1); } if (tmp1_output.y4a(tmp0_desc, 5) ? true : !(value.vtv_1 == null)) { tmp1_output.u4a(tmp0_desc, 5, StringSerializer_getInstance(), value.vtv_1); } if (tmp1_output.y4a(tmp0_desc, 6) ? true : !(value.wtv_1 == null)) { tmp1_output.u4a(tmp0_desc, 6, StringSerializer_getInstance(), value.wtv_1); } if (tmp1_output.y4a(tmp0_desc, 7) ? true : !(value.xtv_1 == null)) { tmp1_output.u4a(tmp0_desc, 7, StringSerializer_getInstance(), value.xtv_1); } if (tmp1_output.y4a(tmp0_desc, 8) ? true : !(value.ytv_1 === false)) { tmp1_output.i4a(tmp0_desc, 8, value.ytv_1); } if (tmp1_output.y4a(tmp0_desc, 9) ? true : !(value.ztv_1 == null)) { tmp1_output.u4a(tmp0_desc, 9, StringSerializer_getInstance(), value.ztv_1); } if (tmp1_output.y4a(tmp0_desc, 10) ? true : !(value.atw_1 === 'UTC')) { tmp1_output.q4a(tmp0_desc, 10, value.atw_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_62).l45 = function (encoder, value) { return this.pwx(encoder, value instanceof CourseBlockEditUiState ? value : THROW_CCE()); }; var $serializer_instance_62; function $serializer_getInstance_74() { if ($serializer_instance_62 == null) new $serializer_62(); return $serializer_instance_62; } 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_74().owx_1); } if (0 === (seen1 & 1)) $this.qtv_1 = null; else $this.qtv_1 = block; if (0 === (seen1 & 2)) $this.rtv_1 = false; else $this.rtv_1 = canEditSelectedContentEntry; if (0 === (seen1 & 4)) $this.stv_1 = emptyList(); else $this.stv_1 = completionCriteriaOptions; if (0 === (seen1 & 8)) $this.ttv_1 = false; else $this.ttv_1 = fieldsEnabled; if (0 === (seen1 & 16)) $this.utv_1 = null; else $this.utv_1 = caHideUntilDateError; if (0 === (seen1 & 32)) $this.vtv_1 = null; else $this.vtv_1 = caTitleError; if (0 === (seen1 & 64)) $this.wtv_1 = null; else $this.wtv_1 = caDeadlineError; if (0 === (seen1 & 128)) $this.xtv_1 = null; else $this.xtv_1 = caMaxPointsError; if (0 === (seen1 & 256)) $this.ytv_1 = false; else $this.ytv_1 = maxPointsRequired; if (0 === (seen1 & 512)) $this.ztv_1 = null; else $this.ztv_1 = caGracePeriodError; if (0 === (seen1 & 1024)) $this.atw_1 = 'UTC'; else $this.atw_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_174(); 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.qtv_1 = block; this.rtv_1 = canEditSelectedContentEntry; this.stv_1 = completionCriteriaOptions; this.ttv_1 = fieldsEnabled; this.utv_1 = caHideUntilDateError; this.vtv_1 = caTitleError; this.wtv_1 = caDeadlineError; this.xtv_1 = caMaxPointsError; this.ytv_1 = maxPointsRequired; this.ztv_1 = caGracePeriodError; this.atw_1 = timeZone; } protoOf(CourseBlockEditUiState).qwx = function () { var tmp0_safe_receiver = this.qtv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lk8_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t7y_1; return tmp === 1; }; protoOf(CourseBlockEditUiState).rwx = function () { var tmp; if (this.swx()) { var tmp0_safe_receiver = this.qtv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lk8_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v7y_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).vtr = function () { var tmp; if (this.rwx()) { var tmp0_safe_receiver = this.qtv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lk8_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x7y_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).twx = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.stv_1.c1(); }; protoOf(CourseBlockEditUiState).swx = function () { var tmp; var tmp0_safe_receiver = this.qtv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lk8_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o7y_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.qtv_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lk8_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.o7y_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).uwx = function () { var tmp; var tmp0_safe_receiver = this.qtv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lk8_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o7y_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.qtv_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.lk8_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.o7y_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).fu0 = function () { return ((!(this.vtv_1 == null) ? true : !(this.wtv_1 == null)) ? true : !(this.ztv_1 == null)) ? true : !(this.xtv_1 == null); }; protoOf(CourseBlockEditUiState).vwx = 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).btw = function (block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, $super) { block = block === VOID ? this.qtv_1 : block; canEditSelectedContentEntry = canEditSelectedContentEntry === VOID ? this.rtv_1 : canEditSelectedContentEntry; completionCriteriaOptions = completionCriteriaOptions === VOID ? this.stv_1 : completionCriteriaOptions; fieldsEnabled = fieldsEnabled === VOID ? this.ttv_1 : fieldsEnabled; caHideUntilDateError = caHideUntilDateError === VOID ? this.utv_1 : caHideUntilDateError; caTitleError = caTitleError === VOID ? this.vtv_1 : caTitleError; caDeadlineError = caDeadlineError === VOID ? this.wtv_1 : caDeadlineError; caMaxPointsError = caMaxPointsError === VOID ? this.xtv_1 : caMaxPointsError; maxPointsRequired = maxPointsRequired === VOID ? this.ytv_1 : maxPointsRequired; caGracePeriodError = caGracePeriodError === VOID ? this.ztv_1 : caGracePeriodError; timeZone = timeZone === VOID ? this.atw_1 : timeZone; return $super === VOID ? this.vwx(block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone) : $super.vwx.call(this, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone); }; protoOf(CourseBlockEditUiState).toString = function () { return 'CourseBlockEditUiState(block=' + this.qtv_1 + ', canEditSelectedContentEntry=' + this.rtv_1 + ', completionCriteriaOptions=' + this.stv_1 + ', fieldsEnabled=' + this.ttv_1 + ', caHideUntilDateError=' + this.utv_1 + ', caTitleError=' + this.vtv_1 + ', caDeadlineError=' + this.wtv_1 + ', caMaxPointsError=' + this.xtv_1 + ', maxPointsRequired=' + this.ytv_1 + ', caGracePeriodError=' + this.ztv_1 + ', timeZone=' + this.atw_1 + ')'; }; protoOf(CourseBlockEditUiState).hashCode = function () { var result = this.qtv_1 == null ? 0 : this.qtv_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.rtv_1) | 0; result = imul(result, 31) + hashCode(this.stv_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ttv_1) | 0; result = imul(result, 31) + (this.utv_1 == null ? 0 : getStringHashCode(this.utv_1)) | 0; result = imul(result, 31) + (this.vtv_1 == null ? 0 : getStringHashCode(this.vtv_1)) | 0; result = imul(result, 31) + (this.wtv_1 == null ? 0 : getStringHashCode(this.wtv_1)) | 0; result = imul(result, 31) + (this.xtv_1 == null ? 0 : getStringHashCode(this.xtv_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ytv_1) | 0; result = imul(result, 31) + (this.ztv_1 == null ? 0 : getStringHashCode(this.ztv_1)) | 0; result = imul(result, 31) + getStringHashCode(this.atw_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.qtv_1, tmp0_other_with_cast.qtv_1)) return false; if (!(this.rtv_1 === tmp0_other_with_cast.rtv_1)) return false; if (!equals(this.stv_1, tmp0_other_with_cast.stv_1)) return false; if (!(this.ttv_1 === tmp0_other_with_cast.ttv_1)) return false; if (!(this.utv_1 == tmp0_other_with_cast.utv_1)) return false; if (!(this.vtv_1 == tmp0_other_with_cast.vtv_1)) return false; if (!(this.wtv_1 == tmp0_other_with_cast.wtv_1)) return false; if (!(this.xtv_1 == tmp0_other_with_cast.xtv_1)) return false; if (!(this.ytv_1 === tmp0_other_with_cast.ytv_1)) return false; if (!(this.ztv_1 == tmp0_other_with_cast.ztv_1)) return false; if (!(this.atw_1 === tmp0_other_with_cast.atw_1)) return false; return true; }; function TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ewy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).gwy = function (it, $completion) { var tmp = this.hwy(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.gwy((p1 == null ? true : p1 instanceof CourseBlockAndPicture) ? p1 : THROW_CCE(), $completion); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.ewy_1.ewz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iwz(this.fwy_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).hwy = function (it, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this.ewy_1, completion); i.fwy_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.gwy(it, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.rwz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.rwz_1.lqn().j7e().acm(this.rwz_1.jqm_1); var tmp_1 = TextBlockDetailViewModel$slambda$slambda$slambda$slambda_0(this.rwz_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda(this.rwz_1, completion); i.swz_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.o1n($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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.textblockdetail.TextBlockDetailViewModel....' call var nextValue = prevValue.cq6(VOID, VOID, title); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function TextBlockDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.bx0_1 = $this_launch; this.cx0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(TextBlockDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.bx0_1, VOID, VOID, TextBlockDetailViewModel$slambda$slambda$slambda_0(this.cx0_1, null)); launchSetTitleFromClazzUid(this.cx0_1, this.cx0_1.gwz_1, TextBlockDetailViewModel$slambda$slambda$lambda(this.cx0_1)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TextBlockDetailViewModel$slambda$slambda).f79 = function (completion) { return new TextBlockDetailViewModel$slambda$slambda(this.bx0_1, this.cx0_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.d88($completion); }; l.$arity = 0; return l; } function Companion_158() { this.dx0_1 = 'CourseText'; } var Companion_instance_207; function Companion_getInstance_175() { return Companion_instance_207; } function sam$kotlinx_coroutines_flow_FlowCollector$0_28(function_0) { this.ex0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_28).n1e = function (value, $completion) { return this.ex0_1(value, $completion); }; function TextBlockDetailViewModel$slambda(this$0, resultContinuation) { this.nx0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TextBlockDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.nx0_1.ewz_1, TextBlockDetailViewModel$slambda$slambda_0(this.ox0_1, this.nx0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(TextBlockDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda(this.nx0_1, completion); i.ox0_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseText'); this.ewz_1 = MutableStateFlow(new TextBlockDetailUiState()); this.fwz_1 = asStateFlow(this.ewz_1); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.gwz_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, TextBlockDetailViewModel$slambda_0(this, null)); } function TextBlockDetailUiState(courseBlock) { courseBlock = courseBlock === VOID ? null : courseBlock; this.hwz_1 = courseBlock; } protoOf(TextBlockDetailUiState).iwz = function (courseBlock) { return new TextBlockDetailUiState(courseBlock); }; protoOf(TextBlockDetailUiState).toString = function () { return 'TextBlockDetailUiState(courseBlock=' + this.hwz_1 + ')'; }; protoOf(TextBlockDetailUiState).hashCode = function () { return this.hwz_1 == null ? 0 : this.hwz_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.hwz_1, tmp0_other_with_cast.hwz_1)) return false; return true; }; function CourseGroupSetDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.ox1(); 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).zx1 = function (entity, permissionPair, $completion) { var tmp = this.ax2(entity, permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).on = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.zx1(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return to(this.xx1_1, this.yx1_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).ax2 = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda(completion); i.xx1_1 = entity; i.yx1_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.zx1(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.jx2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).lx2 = function (it, $completion) { var tmp = this.mx2(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.lx2(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_container = this.kx2_1.x6_1; var hasCourseViewPermission = tmp0_container.y6(); var hasManageStudentPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.jx2_1.lx1_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.kx2_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.px2(VOID, tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.jx2_1.tqm_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_1 = this.jx2_1.pqn().coj(strings_getInstance().pmv_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue_0 = prevValue_0.cq6(new FabUiState(hasManageStudentPermission, tmp_1, tmp_2, CourseGroupSetDetailViewModel$onClickEdit$ref(this.jx2_1))); if (this_2.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).mx2 = function (it, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this.jx2_1, completion); i.kx2_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.lx2(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).ax3 = function (entity, permissionPair, $completion) { var tmp = this.bx3(entity, permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).on = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof CourseGroupSet) ? p1 : THROW_CCE(); return this.ax3(tmp, p2 instanceof PermissionPair ? p2 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.yx2_1; var tmp_0; if (this.zx2_1.bdo_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).bx3 = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3(completion); i.yx2_1 = entity; i.zx2_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.ax3(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.kx3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).mx3 = function (courseGroupSet, $completion) { var tmp = this.nx3(courseGroupSet, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.mx3((p1 == null ? true : p1 instanceof CourseGroupSet) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.kx3_1.lx1_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.px2(this.lx3_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.kx3_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver = this.lx3_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7z_1; var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).nx3 = function (courseGroupSet, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this.kx3_1, completion); i.lx3_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.mx3(courseGroupSet, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda($memberListFlow, $permissionsFlow, this$0, resultContinuation) { this.wx3_1 = $memberListFlow; this.xx3_1 = $permissionsFlow; this.yx3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.wx3_1, this.xx3_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_0(null))); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_2(this.yx3_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda(this.wx3_1, this.xx3_1, this.yx3_1, completion); i.zx3_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda_1($entityFlow, $permissionsFlow, this$0, resultContinuation) { this.ix4_1 = $entityFlow; this.jx4_1 = $permissionsFlow; this.kx4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = combine(this.ix4_1, this.jx4_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_4(null)); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_6(this.kx4_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda_1(this.ix4_1, this.jx4_1, this.kx4_1, completion); i.lx4_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda($this_launch, $memberListFlow, $permissionsFlow, this$0, $entityFlow, resultContinuation) { this.ux4_1 = $this_launch; this.vx4_1 = $memberListFlow; this.wx4_1 = $permissionsFlow; this.xx4_1 = this$0; this.yx4_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.ux4_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_0(this.vx4_1, this.wx4_1, this.xx4_1, null)); launch(this.ux4_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_2(this.yx4_1, this.wx4_1, this.xx4_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).f79 = function (completion) { return new CourseGroupSetDetailViewModel$slambda$slambda(this.ux4_1, this.vx4_1, this.wx4_1, this.xx4_1, this.yx4_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.d88($completion); }; l.$arity = 0; return l; } function Companion_159() { this.zx4_1 = 'CourseGroupSet'; } var Companion_instance_208; function Companion_getInstance_176() { return Companion_instance_208; } function sam$kotlinx_coroutines_flow_FlowCollector$0_29(function_0) { this.ax5_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_29).n1e = function (value, $completion) { return this.ax5_1(value, $completion); }; function CourseGroupSetDetailViewModel$slambda(this$0, resultContinuation) { this.jx5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.jx5_1.lqn().i7g(); var tmp_2 = this.jx5_1.hqn(); PermissionFlags_getInstance(); var tmp_3 = new Long(1, 0); PermissionFlags_getInstance(); tmp_0.lx5_1 = shareIn(tmp_1.adl(tmp_2, this.jx5_1.nx1_1, tmp_3, new Long(8, 0)), this.jx5_1.gqn(), Companion_getInstance_12().p1i()); this.mx5_1 = this.jx5_1.lqn().m7e().nd4(this.jx5_1.jqm_1, this.jx5_1.nx1_1, systemTimeInMillis(), 0, this.jx5_1.hqn()); this.nx5_1 = this.jx5_1.lqn().l7e().n8d(this.jx5_1.jqm_1); this.hd_1 = 1; suspendResult = whenSubscribed(this.jx5_1.lx1_1, CourseGroupSetDetailViewModel$slambda$slambda_0(this.kx5_1, this.mx5_1, this.lx5_1, this.jx5_1, this.nx5_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda(this.jx5_1, completion); i.kx5_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseGroupSet'); this.lx1_1 = MutableStateFlow(new CourseGroupSetDetailUiState()); this.mx1_1 = asStateFlow(this.lx1_1); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.nx1_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, CourseGroupSetDetailViewModel$slambda_0(this, null)); } protoOf(CourseGroupSetDetailViewModel).ox1 = function () { Companion_getInstance_116(); var tmp = to('entityUid', this.jqm_1.toString()); Companion_getInstance_125(); this.rqm_1.dp6('CourseGroupsEdit', mapOf([tmp, to('clazzUid', this.nx1_1.toString())])); }; function CourseGroupSetDetailUiState(courseGroupSet, membersList) { courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; membersList = membersList === VOID ? emptyList() : membersList; this.nx2_1 = courseGroupSet; this.ox2_1 = membersList; } protoOf(CourseGroupSetDetailUiState).ox5 = function (courseGroupSet, membersList) { return new CourseGroupSetDetailUiState(courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).px2 = function (courseGroupSet, membersList, $super) { courseGroupSet = courseGroupSet === VOID ? this.nx2_1 : courseGroupSet; membersList = membersList === VOID ? this.ox2_1 : membersList; return $super === VOID ? this.ox5(courseGroupSet, membersList) : $super.ox5.call(this, courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).toString = function () { return 'CourseGroupSetDetailUiState(courseGroupSet=' + this.nx2_1 + ', membersList=' + this.ox2_1 + ')'; }; protoOf(CourseGroupSetDetailUiState).hashCode = function () { var result = this.nx2_1 == null ? 0 : hashCode(this.nx2_1); result = imul(result, 31) + hashCode(this.ox2_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.nx2_1, tmp0_other_with_cast.nx2_1)) return false; if (!equals(this.ox2_1, tmp0_other_with_cast.ox2_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.xx5_1 = this$0; this.yx5_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).lx6 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.lx6(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.hd_1 = 1; suspendResult = this.zx5_1.m7e().md4(this.xx5_1.xqs_1, this.xx5_1.lx7_1, systemTimeInMillis(), 0, this.xx5_1.hqn(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ax6_1 = suspendResult; var tmp_0 = this; tmp_0.bx6_1 = this.ax6_1; var tmp_1 = this; tmp_1.cx6_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.ax6_1, 10)); this.dx6_1 = this.bx6_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.dx6_1.f()) { this.hd_1 = 5; continue $sm; } this.ex6_1 = this.dx6_1.e(); var tmp_2 = this; tmp_2.fx6_1 = this.ex6_1; if (this.fx6_1.bd6_1 == null) { var tmp_3 = this; tmp_3.hx6_1 = new CourseGroupMemberAndName(); var tmp_4 = this; tmp_4.ix6_1 = this.hx6_1; this.ix6_1.cd6_1 = this.fx6_1.cd6_1; this.ix6_1.ed6_1 = this.fx6_1.ed6_1; this.ix6_1.dd6_1 = this.fx6_1.dd6_1; this.ix6_1.fd6_1 = this.fx6_1.fd6_1; var tmp_5 = this; tmp_5.jx6_1 = new CourseGroupMember(); var tmp_6 = this; tmp_6.kx6_1 = this.jx6_1; this.hd_1 = 3; var tmp_7 = get_doorPrimaryKeyManager(this.xx5_1.jqn()); suspendResult = tmp_7.i63(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_8 = this; tmp_8.gx6_1 = this.fx6_1; this.hd_1 = 4; continue $sm; } case 3: var ARGUMENT = suspendResult; this.kx6_1.jd5_1 = ARGUMENT; this.kx6_1.kd5_1 = this.yx5_1; this.kx6_1.md5_1 = this.fx6_1.dd6_1; var ARGUMENT_0 = this.jx6_1; this.ix6_1.bd6_1 = ARGUMENT_0; this.gx6_1 = this.hx6_1; this.hd_1 = 4; continue $sm; case 4: var ARGUMENT_1 = this.gx6_1; this.cx6_1.i1(ARGUMENT_1); this.hd_1 = 2; continue $sm; case 5: return this.cx6_1; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).ony = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda(this.xx5_1, this.yx5_1, completion); i.zx5_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.lx6(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).ux7 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).g79 = function ($completion) { return this.ux7($completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).f79 = 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.ux7($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.jx7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.ax8(VOID, memberList); if (this_0.s1l(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.jx8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).nx8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.nx8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.kx8_1; var tmp_1; if (!this.jx8_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.lx8_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l7e(); if (this.lx8_1 == null) { this.mx8_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.lx8_1.jdd(this.jx8_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.mx8_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.mx8_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).ony = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_3(this.jx8_1, completion); i.kx8_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.nx8(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_5($courseGroupSetUid, this$0, resultContinuation) { this.wx8_1 = $courseGroupSetUid; this.xx8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).ldh = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).g79 = function ($completion) { return this.ldh($completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = new CourseGroupSet(); this_0.u7z_1 = this.wx8_1; this_0.y7z_1 = this.xx8_1.lx7_1; return this_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).f79 = function (completion) { return new CourseGroupSetEditViewModel$slambda$slambda$slambda_5(this.wx8_1, this.xx8_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.ldh($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.jx7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.ax8(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetEditViewModel$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation) { this.gx9_1 = this$0; this.hx9_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda).jx9 = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.jx9((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_instance_43.h4s()); var tmp_1 = listOf_0('courseGroupMembers'); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_0(this.gx9_1, this.hx9_1, null); var tmp_3 = CourseGroupSetEditViewModel$slambda$slambda$slambda_2(null); suspendResult = this.gx9_1.zqn(tmp_0, tmp_1, VOID, tmp_2, tmp_3, CourseGroupSetEditViewModel$slambda$slambda$lambda(this.gx9_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda).p1n = function ($this$async, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda(this.gx9_1, this.hx9_1, completion); i.ix9_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.jx9($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda_1(this$0, $courseGroupSetUid, resultContinuation) { this.sx9_1 = this$0; this.tx9_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).vx9 = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.vx9((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_44.h4s(); var tmp_1 = CourseGroupSetEditViewModel$slambda$slambda$slambda_4(this.sx9_1, null); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_6(this.tx9_1, this.sx9_1, null); suspendResult = this.sx9_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, CourseGroupSetEditViewModel$slambda$slambda$lambda_0(this.sx9_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).p1n = function ($this$async, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda_1(this.sx9_1, this.tx9_1, completion); i.ux9_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.vx9($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.exa_1 = this$0; this.fxa_1 = $courseGroupSet; this.gxa_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.exa_1.lqn().l7e().kdd(this.fxa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.exa_1.lqn().m7e().od4(this.gxa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this.exa_1, this.fxa_1, this.gxa_1, completion); i.hxa_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.nny(it, $completion); }; l.$arity = 1; return l; } function Companion_160() { this.ixa_1 = 'CourseGroupsEdit'; this.jxa_1 = 'courseGroupMembers'; } var Companion_instance_209; function Companion_getInstance_177() { return Companion_instance_209; } function CourseGroupSetEditViewModel$slambda(this$0, resultContinuation) { this.sxa_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.txa_1.i7g(); var tmp_1 = this.sxa_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ddl(tmp_1, this.sxa_1.lx7_1, new Long(8, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda).ony = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda(this.sxa_1, completion); i.txa_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.as8(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda_1(this$0, resultContinuation) { this.cxb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; if (!this.cxb_1.xqs_1.equals(new Long(0, 0))) { this.exb_1 = this.cxb_1.xqs_1; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.cxb_1.jqn()); suspendResult = tmp_0.i63(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.exb_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.fxb_1 = this.exb_1; this.hd_1 = 3; var tmp_1 = async(this.dxb_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_0(this.cxb_1, this.fxb_1, null)); suspendResult = awaitAll([tmp_1, async(this.dxb_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_2(this.cxb_1, this.fxb_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: l$ret$1: do { var this_0 = this.cxb_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_2 = this.cxb_1.pqn().coj(strings_getInstance().dn3_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, true, CourseGroupSetEditViewModel$onClickSave$ref(this.cxb_1)); var tmp1_loadingState = Companion_getInstance_97().kq6_1; var nextValue = prevValue.cq6(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.cxb_1.jx7_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ax8(VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new CourseGroupSetEditViewModel$slambda_1(this.cxb_1, completion); i.dxb_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.oxb_1 = $commitDelay; this.pxb_1 = $entity; this.qxb_1 = $this; this.rxb_1 = $key; this.sxb_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.oxb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.pxb_1 == null)) { this.hd_1 = 2; suspendResult = this.qxb_1.vqn(this.qxb_1.pqm_1, this.rxb_1, this.sxb_1, this.pxb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onEntityChanged$slambda(this.oxb_1, this.pxb_1, this.qxb_1, this.rxb_1, this.sxb_1, completion); i.txb_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda($groupNumber) { return function ($this$shallowCopy) { $this$shallowCopy.ld5_1 = $groupNumber; return Unit_instance; }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0($personUid) { return function (it) { return it.dd6_1.equals($personUid); }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this$0, $newState, resultContinuation) { this.cxc_1 = this$0; this.dxc_1 = $newState; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.cxc_1.vqn(this.cxc_1.pqm_1, 'courseGroupMembers', ListSerializer(Companion_instance_43.h4s()), this.dxc_1.wx7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this.cxc_1, this.dxc_1, completion); i.exc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickAssignRandomly$lambda($shuffledPersonUidList, $it, $totalGroups) { return function ($this$shallowCopy) { $this$shallowCopy.ld5_1 = ($shuffledPersonUidList.x($it.dd6_1) % $totalGroups | 0) + 1 | 0; return Unit_instance; }; } function CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this$0, $newMemberList, resultContinuation) { this.nxc_1 = this$0; this.oxc_1 = $newMemberList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.nxc_1.vqn(this.nxc_1.pqm_1, 'courseGroupMembers', ListSerializer(Companion_instance_43.h4s()), this.oxc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this.nxc_1, this.oxc_1, completion); i.pxc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.yxc_1 = this$0; this.zxc_1 = $courseGroupSet; this.axd_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.yxc_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, CourseGroupSetEditViewModel$onClickSave$slambda$slambda_0(this.yxc_1, this.zxc_1, this.axd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this.zxc_1.u7z_1; Companion_getInstance_125(); this.yxc_1.yqs('CourseGroupSet', tmp_1, this.zxc_1, mapOf_0(to('clazzUid', this.yxc_1.lx7_1.toString()))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda(this.yxc_1, this.zxc_1, this.axd_1, completion); i.bxd_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CourseGroupsEdit'); this.jx7_1 = MutableStateFlow(new CourseGroupSetEditUiState()); this.kx7_1 = asStateFlow(this.jx7_1); var tmp = this; Companion_getInstance_116(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.lx7_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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.' call var tmp0_title = this.zqt(strings_getInstance().jni_1, strings_getInstance().kni_1); var tmp1_loadingState = Companion_getInstance_97().jq6_1; var nextValue = prevValue.cq6(VOID, tmp1_loadingState, tmp0_title, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = CourseGroupSetEditViewModel$slambda_0(this, null); this.bqo(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetEditViewModel).cxd = function (courseGroupSet) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.jx7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.vx7_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7z_1; var tmp_0 = this.aqu(tmp, courseGroupSet == null ? null : courseGroupSet.v7z_1, prevValue.xx7_1); var tmp2_safe_receiver = prevValue.vx7_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.w7z_1; var nextValue = prevValue.ax8(courseGroupSet, VOID, tmp_0, this.aqu(tmp_1, courseGroupSet == null ? null : courseGroupSet.w7z_1, prevValue.yx7_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_44.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_2 = this; var tmp_3 = this.gqn(); tmp_2.wqs_1 = launch(tmp_3, VOID, VOID, CourseGroupSetEditViewModel$onEntityChanged$slambda_0(commitDelay, courseGroupSet, this, key, serializer, null)); }; protoOf(CourseGroupSetEditViewModel).dxd = function (personUid, groupNumber) { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.jx7_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.wx7_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onChangeGroupAssignment..' call if (element.dd6_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.bd6_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.okm(tmp); var nextValue = prevValue.ax8(VOID, replace_0(prevValue.wx7_1, tmp_0, CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0(personUid))); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$3 = nextValue; break $l$block_0; } } } var newState = tmp$ret$3; var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda_0(this, newState, null)); }; protoOf(CourseGroupSetEditViewModel).exd = function () { var tmp0_safe_receiver = this.jx7_1.t2().vx7_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w7z_1; var totalGroups = tmp1_elvis_lhs == null ? 1 : tmp1_elvis_lhs; // Inline function 'kotlin.collections.map' call var this_0 = this.jx7_1.t2().wx7_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.dd6_1; destination.i1(tmp$ret$0); } var shuffledPersonUidList = shuffled(destination); // Inline function 'kotlin.collections.map' call var this_1 = this.jx7_1.t2().wx7_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.bd6_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.okm(tmp); destination_0.i1(tmp$ret$3); } var newMemberList = destination_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.jx7_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickAssignRandomly.' call var nextValue = prevValue.ax8(VOID, newMemberList); if (this_2.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$onClickAssignRandomly$slambda_0(this, newMemberList, null)); }; protoOf(CourseGroupSetEditViewModel).os5 = function () { var tmp0_elvis_lhs = this.jx7_1.t2().vx7_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.jx7_1.t2().wx7_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.bd6_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.ld5_1 > courseGroupSet.w7z_1) { tmp$ret$4 = true; break $l$block_0; } } tmp$ret$4 = false; } var hasInvalidAssignments = tmp$ret$4; if (hasInvalidAssignments) { this.nqn().rq6(new Snack(this.pqn().coj(strings_getInstance().mmi_1))); } // Inline function 'kotlin.text.isNullOrBlank' call var this_1 = courseGroupSet.v7z_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.jx7_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call var nextValue = prevValue.ax8(VOID, VOID, this.pqn().coj(strings_getInstance().rmn_1)); if (this_2.s1l(prevValue, nextValue)) { break $l$block_1; } } } } if (courseGroupSet.w7z_1 < 1) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.jx7_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.ax8(VOID, VOID, VOID, this.pqn().coj(strings_getInstance().wng_1)); if (this_3.s1l(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if ((hasInvalidAssignments ? true : !(this.jx7_1.t2().yx7_1 == null)) ? true : !(this.jx7_1.t2().xx7_1 == null)) { return Unit_instance; } var tmp_1 = this.gqn(); 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.vx7_1 = courseGroupSet; this.wx7_1 = membersList; this.xx7_1 = courseTitleError; this.yx7_1 = numOfGroupsError; this.zx7_1 = fieldsEnabled; } protoOf(CourseGroupSetEditUiState).fxd = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) { return new CourseGroupSetEditUiState(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).ax8 = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled, $super) { courseGroupSet = courseGroupSet === VOID ? this.vx7_1 : courseGroupSet; membersList = membersList === VOID ? this.wx7_1 : membersList; courseTitleError = courseTitleError === VOID ? this.xx7_1 : courseTitleError; numOfGroupsError = numOfGroupsError === VOID ? this.yx7_1 : numOfGroupsError; fieldsEnabled = fieldsEnabled === VOID ? this.zx7_1 : fieldsEnabled; return $super === VOID ? this.fxd(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) : $super.fxd.call(this, courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).toString = function () { return 'CourseGroupSetEditUiState(courseGroupSet=' + this.vx7_1 + ', membersList=' + this.wx7_1 + ', courseTitleError=' + this.xx7_1 + ', numOfGroupsError=' + this.yx7_1 + ', fieldsEnabled=' + this.zx7_1 + ')'; }; protoOf(CourseGroupSetEditUiState).hashCode = function () { var result = this.vx7_1 == null ? 0 : hashCode(this.vx7_1); result = imul(result, 31) + hashCode(this.wx7_1) | 0; result = imul(result, 31) + (this.xx7_1 == null ? 0 : getStringHashCode(this.xx7_1)) | 0; result = imul(result, 31) + (this.yx7_1 == null ? 0 : getStringHashCode(this.yx7_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.zx7_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.vx7_1, tmp0_other_with_cast.vx7_1)) return false; if (!equals(this.wx7_1, tmp0_other_with_cast.wx7_1)) return false; if (!(this.xx7_1 == tmp0_other_with_cast.xx7_1)) return false; if (!(this.yx7_1 == tmp0_other_with_cast.yx7_1)) return false; if (!(this.zx7_1 === tmp0_other_with_cast.zx7_1)) return false; return true; }; function CourseGroupSetListViewModel$slambda$lambda(this$0) { return function () { var tmp = this$0.lqn().i7g(); var tmp_0 = this$0.hqn(); PermissionFlags_getInstance(); return tmp.zdk(tmp_0, this$0.gxe_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.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel...' call var tmp = Napier_getInstance(); tmp.y5e(VOID, VOID, CourseGroupSetListViewModel$slambda$lambda$lambda(visible)); var nextValue = prevValue.mxe(visible); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.vxe_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = collectClazzNameAndUpdateTitle(this.vxe_1.gxe_1, this.vxe_1.jqn(), this.vxe_1.tqm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda$slambda$slambda(this.vxe_1, completion); i.wxe_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetListViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.fxf_1 = $this_launch; this.gxf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.fxf_1, VOID, VOID, CourseGroupSetListViewModel$slambda$slambda$slambda_0(this.gxf_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).f79 = function (completion) { return new CourseGroupSetListViewModel$slambda$slambda(this.fxf_1, this.gxf_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.d88($completion); }; l.$arity = 0; return l; } function Companion_161() { this.hxf_1 = 'CourseGroups'; } var Companion_instance_210; function Companion_getInstance_178() { return Companion_instance_210; } function CourseGroupSetListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().l7e().idd(this$0.gxe_1, toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_1), this$0.kqv_1.t2().lxe_1.jqc_1); }; } function CourseGroupSetListViewModel$slambda(this$0, resultContinuation) { this.qxf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = CourseGroupSetListViewModel$slambda$lambda(this.qxf_1); var tmp_1 = strings_getInstance().tn0_1; suspendResult = this.qxf_1.uqw(tmp_0, tmp_1, CourseGroupSetListViewModel$slambda$lambda_0(this.qxf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda(this.qxf_1, completion); i.rxf_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetListViewModel$slambda_1(this$0, resultContinuation) { this.axg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetListViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.axg_1.kqv_1, CourseGroupSetListViewModel$slambda$slambda_0(this.bxg_1, this.axg_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseGroupSetListViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda_1(this.axg_1, completion); i.bxg_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.o1n($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_116(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.gxe_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.hxe_1 = CourseGroupSetListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue = prevValue.mxe(VOID, this.hxe_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue_0 = prevValue_0.cq6(VOID, VOID, VOID, true, VOID, VOID, VOID, this.tqw()); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, CourseGroupSetListViewModel$slambda_0(this, null)); var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, CourseGroupSetListViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).cxg = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.onSortOptionChanged.' call var nextValue = prevValue.mxe(VOID, VOID, VOID, sortOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).fqw = function () { Companion_getInstance_116(); this.xqw('CourseGroupsEdit', mapOf_0(to('clazzUid', this.gxe_1.toString()))); }; protoOf(CourseGroupSetListViewModel).dxg = function (entry) { var tmp = entry.u7z_1; Companion_getInstance_125(); this.zqw('CourseGroupSet', tmp, entry, mapOf_0(to('clazzUid', this.gxe_1.toString()))); }; function Companion_162() { Companion_instance_211 = this; var tmp = this; var tmp_0 = strings_getInstance().lmk_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().lmk_1; tmp.exg_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_211; function Companion_getInstance_179() { if (Companion_instance_211 == null) new Companion_162(); return Companion_instance_211; } function CourseGroupSetListUiState$_init_$lambda_2d65m2() { return new EmptyPagingSource(); } function CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption) { Companion_getInstance_179(); 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_179().exg_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; this.ixe_1 = showAddItem; this.jxe_1 = courseGroupSets; this.kxe_1 = sortOptions; this.lxe_1 = sortOption; } protoOf(CourseGroupSetListUiState).fxg = function (showAddItem, courseGroupSets, sortOptions, sortOption) { return new CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).mxe = function (showAddItem, courseGroupSets, sortOptions, sortOption, $super) { showAddItem = showAddItem === VOID ? this.ixe_1 : showAddItem; courseGroupSets = courseGroupSets === VOID ? this.jxe_1 : courseGroupSets; sortOptions = sortOptions === VOID ? this.kxe_1 : sortOptions; sortOption = sortOption === VOID ? this.lxe_1 : sortOption; return $super === VOID ? this.fxg(showAddItem, courseGroupSets, sortOptions, sortOption) : $super.fxg.call(this, showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).toString = function () { return 'CourseGroupSetListUiState(showAddItem=' + this.ixe_1 + ', courseGroupSets=' + this.jxe_1 + ', sortOptions=' + this.kxe_1 + ', sortOption=' + this.lxe_1 + ')'; }; protoOf(CourseGroupSetListUiState).hashCode = function () { var result = getBooleanHashCode(this.ixe_1); result = imul(result, 31) + hashCode(this.jxe_1) | 0; result = imul(result, 31) + hashCode(this.kxe_1) | 0; result = imul(result, 31) + this.lxe_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.ixe_1 === tmp0_other_with_cast.ixe_1)) return false; if (!equals(this.jxe_1, tmp0_other_with_cast.jxe_1)) return false; if (!equals(this.kxe_1, tmp0_other_with_cast.kxe_1)) return false; if (!this.lxe_1.equals(tmp0_other_with_cast.lxe_1)) return false; return true; }; function CourseTerminologyEditViewModel$slambda$slambda(this$0, resultContinuation) { this.oxg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda).nrg = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.nrg(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.pxg_1.k7e(); var tmp_1; if (!this.oxg_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.qxg_1 = tmp_1; if (this.qxg_1 == null) { this.rxg_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.qxg_1.ae8(this.oxg_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.rxg_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.rxg_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).ony = function (it, completion) { var i = new CourseTerminologyEditViewModel$slambda$slambda(this.oxg_1, completion); i.pxg_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.nrg(it, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.axh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).dxh = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.dxh($completion); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.bxh_1 = new CourseTerminology(); var tmp_1 = this; tmp_1.cxh_1 = this.bxh_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.axh_1.jqn()); suspendResult = tmp_2.i63(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.cxh_1.g8h_1 = ARGUMENT; return this.bxh_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).f79 = function (completion) { return new CourseTerminologyEditViewModel$slambda$slambda_1(this.axh_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.dxh($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.bxi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel...' call var nextValue = prevValue.hxi(VOID, terminology, VOID, toTerminologyEntries(terminology, this$0.g4s(), this$0.pqn())); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_163() { this.ixi_1 = 'CourseTerminologyEdit'; } var Companion_instance_212; function Companion_getInstance_180() { return Companion_instance_212; } function CourseTerminologyEditViewModel$slambda(this$0, resultContinuation) { this.rxi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.txi_1 = Companion_instance_34.h4s(); this.hd_1 = 1; var tmp_0 = CourseTerminologyEditViewModel$slambda$slambda_0(this.rxi_1, null); var tmp_1 = CourseTerminologyEditViewModel$slambda$slambda_2(this.rxi_1, null); suspendResult = this.rxi_1.zqn(this.txi_1, VOID, VOID, tmp_0, tmp_1, CourseTerminologyEditViewModel$slambda$lambda(this.rxi_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.rxi_1.bxi_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hxi(VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.rxi_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = this.rxi_1.pqn().coj(strings_getInstance().dn3_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, VOID, CourseTerminologyEditViewModel$onClickSave$ref(this.rxi_1)); var tmp1_loadingState = Companion_getInstance_97().kq6_1; var nextValue_0 = prevValue_0.cq6(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$slambda(this.rxi_1, completion); i.sxi_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.cxj_1 = $commitDelay; this.dxj_1 = $entity; this.exj_1 = $this; this.fxj_1 = $key; this.gxj_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.cxj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.dxj_1 == null)) { this.hd_1 = 2; suspendResult = this.exj_1.vqn(this.exj_1.pqm_1, this.fxj_1, this.gxj_1, this.dxj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$onEntityChanged$slambda(this.cxj_1, this.dxj_1, this.exj_1, this.fxj_1, this.gxj_1, completion); i.hxj_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda($terminologyEntry) { return function (it) { return it.gq8_1.equals($terminologyEntry.gq8_1); }; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda_0($newTermList, this$0) { return function ($this$shallowCopy) { $this$shallowCopy.i8h_1 = encodeToStringMap($newTermList, this$0.g4s()); return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.qxj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.qxj_1.bxi_1.t2().exi_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.sxj_1 = tmp_1; this.hd_1 = 1; suspendResult = this.qxj_1.lqn().k7e().be8(this.sxj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.qxj_1.bxi_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hxi(VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.qxj_1.aqt(this.sxj_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$onClickSave$slambda(this.qxj_1, completion); i.rxj_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CourseTerminologyEdit'); this.bxi_1 = MutableStateFlow(new CourseTerminologyEditUiState()); this.cxi_1 = asStateFlow(this.bxi_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.' call var tmp0_title = this.zqt(strings_getInstance().dni_1, strings_getInstance().eni_1); var tmp1_loadingState = Companion_getInstance_97().jq6_1; var nextValue = prevValue.cq6(VOID, tmp1_loadingState, tmp0_title); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp = this.gqn(); launch(tmp, VOID, VOID, CourseTerminologyEditViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyEditViewModel).txj = function (courseTerminology) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bxi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onEntityChanged.' call var nextValue = prevValue.hxi(VOID, courseTerminology); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_34.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.wqs_1 = launch(tmp_0, VOID, VOID, CourseTerminologyEditViewModel$onEntityChanged$slambda_0(commitDelay, courseTerminology, this, key, serializer, null)); }; protoOf(CourseTerminologyEditViewModel).uxj = function (terminologyEntry) { var tmp = this.bxi_1.t2().gxi_1; var newTermList = replace_0(tmp, terminologyEntry, CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda(terminologyEntry)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bxi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onTerminologyTermChanged.' call var nextValue = prevValue.hxi(VOID, VOID, VOID, newTermList); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.bxi_1.t2().exi_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.txj(tmp_0); }; protoOf(CourseTerminologyEditViewModel).os5 = function () { if (!this.bxi_1.t2().fxi_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bxi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onClickSave.' call var nextValue = prevValue.hxi(VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp = this.gqn(); 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.dxi_1 = titleError; this.exi_1 = entity; this.fxi_1 = fieldsEnabled; this.gxi_1 = terminologyTermList; } protoOf(CourseTerminologyEditUiState).vxj = function (titleError, entity, fieldsEnabled, terminologyTermList) { return new CourseTerminologyEditUiState(titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).hxi = function (titleError, entity, fieldsEnabled, terminologyTermList, $super) { titleError = titleError === VOID ? this.dxi_1 : titleError; entity = entity === VOID ? this.exi_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.fxi_1 : fieldsEnabled; terminologyTermList = terminologyTermList === VOID ? this.gxi_1 : terminologyTermList; return $super === VOID ? this.vxj(titleError, entity, fieldsEnabled, terminologyTermList) : $super.vxj.call(this, titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).toString = function () { return 'CourseTerminologyEditUiState(titleError=' + this.dxi_1 + ', entity=' + this.exi_1 + ', fieldsEnabled=' + this.fxi_1 + ', terminologyTermList=' + this.gxi_1 + ')'; }; protoOf(CourseTerminologyEditUiState).hashCode = function () { var result = this.dxi_1 == null ? 0 : getStringHashCode(this.dxi_1); result = imul(result, 31) + (this.exi_1 == null ? 0 : hashCode(this.exi_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fxi_1) | 0; result = imul(result, 31) + hashCode(this.gxi_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.dxi_1 == tmp0_other_with_cast.dxi_1)) return false; if (!equals(this.exi_1, tmp0_other_with_cast.exi_1)) return false; if (!(this.fxi_1 === tmp0_other_with_cast.fxi_1)) return false; if (!equals(this.gxi_1, tmp0_other_with_cast.gxi_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.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel...' call var nextValue = prevValue.yxj(VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_164() { this.zxj_1 = 'CourseTerminologyList'; } var Companion_instance_213; function Companion_getInstance_181() { return Companion_instance_213; } function CourseTerminologyListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().k7e().xe7(); }; } function CourseTerminologyListViewModel$slambda(this$0, resultContinuation) { this.ixk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = CourseTerminologyListViewModel$slambda$lambda; var tmp_1 = strings_getInstance().bni_1; suspendResult = this.ixk_1.uqw(tmp_0, tmp_1, CourseTerminologyListViewModel$slambda$lambda_0(this.ixk_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseTerminologyListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CourseTerminologyListViewModel$slambda(this.ixk_1, completion); i.jxk_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new CourseTerminologyListUiState(), 'CourseTerminologyList'); var tmp = this; tmp.kxl_1 = CourseTerminologyListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.bqx(strings_getInstance().bni_1, strings_getInstance().cni_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kqv_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue_0 = prevValue_0.yxj(this.kxl_1); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, CourseTerminologyListViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyListViewModel).fqw = function () { this.yqw('CourseTerminologyEdit'); }; protoOf(CourseTerminologyListViewModel).lxl = function (entry) { this.aqx('CourseTerminologyEdit', entry.g8h_1, entry); }; protoOf(CourseTerminologyListViewModel).eqw = 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.wxj_1 = terminologyList; this.xxj_1 = showAddItemInList; } protoOf(CourseTerminologyListUiState).mxl = function (terminologyList, showAddItemInList) { return new CourseTerminologyListUiState(terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).yxj = function (terminologyList, showAddItemInList, $super) { terminologyList = terminologyList === VOID ? this.wxj_1 : terminologyList; showAddItemInList = showAddItemInList === VOID ? this.xxj_1 : showAddItemInList; return $super === VOID ? this.mxl(terminologyList, showAddItemInList) : $super.mxl.call(this, terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).toString = function () { return 'CourseTerminologyListUiState(terminologyList=' + this.wxj_1 + ', showAddItemInList=' + this.xxj_1 + ')'; }; protoOf(CourseTerminologyListUiState).hashCode = function () { var result = hashCode(this.wxj_1); result = imul(result, 31) + getBooleanHashCode(this.xxj_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.wxj_1, tmp0_other_with_cast.wxj_1)) return false; if (!(this.xxj_1 === tmp0_other_with_cast.xxj_1)) return false; return true; }; function get_delItemContentTypeStringResource(_this__u8e3s4) { var tmp; var tmp_0; var tmp_1 = _this__u8e3s4.eeh_1; if (tmp_1 === 7) { tmp_0 = _this__u8e3s4.ieh_1; } else { tmp_0 = false; } if (tmp_0) { tmp = strings_getInstance().dnd_1; } else { var tmp_2 = _this__u8e3s4.eeh_1; if (tmp_2 === 7) { tmp = strings_getInstance().en4_1; } else { tmp = null; } } return tmp; } function _get_restoreDeletedItemUseCase__7lscig($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.oxm_1; restoreDeletedItemUseCase$factory_0(); return this_0.t2(); } function _get_deletePermanentlyUseCase__wdw610($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pxm_1; deletePermanentlyUseCase$factory_0(); return this_0.t2(); } function restoreItems($this, items) { var tmp = $this.gqn(); launch(tmp, VOID, VOID, DeletedItemListViewModel$restoreItems$slambda_0($this, items, null)); } function Companion_165() { this.qxm_1 = 'DeletedItems'; } var Companion_instance_214; function Companion_getInstance_182() { return Companion_instance_214; } function DeletedItemListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().g7g().xeg(this$0.hqn(), false); }; } function DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this$0, $itemsToDelete, resultContinuation) { this.zxm_1 = this$0; this.axn_1 = $itemsToDelete; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_deletePermanentlyUseCase__wdw610(this.zxm_1).kpc(this.axn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.zxm_1.nqn().rq6(new Snack(this.zxm_1.pqn().twl(plurals_getInstance().nns_1, this.axn_1.u()))); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { var e = this.kd_1; Napier_getInstance().k5f('Exception deleting', e); this.zxm_1.nqn().rq6(new Snack(this.zxm_1.pqn().coj(strings_getInstance().mmi_1) + ': ' + e.message)); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).p1n = function ($this$launch, completion) { var i = new DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this.zxm_1, this.axn_1, completion); i.bxn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DeletedItemListViewModel$restoreItems$slambda(this$0, $items, resultContinuation) { this.kxn_1 = this$0; this.lxn_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemListViewModel$restoreItems$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DeletedItemListViewModel$restoreItems$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemListViewModel$restoreItems$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_restoreDeletedItemUseCase__7lscig(this.kxn_1).kpc(this.lxn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.kxn_1.nqn().rq6(new Snack(this.kxn_1.pqn().twl(plurals_getInstance().ons_1, this.lxn_1.u()))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DeletedItemListViewModel$restoreItems$slambda).p1n = function ($this$launch, completion) { var i = new DeletedItemListViewModel$restoreItems$slambda(this.kxn_1, this.lxn_1, completion); i.mxn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DeletedItemListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new DeletedItemListUiState(), 'DeletedItems'); var tmp = this; tmp.nxm_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.oxm_1 = Instance(this_0, tmp$ret$0, null).u5d(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.pxm_1 = Instance(this_1, tmp$ret$2, null).u5d(this, deletePermanentlyUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.kqv_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue = prevValue.rxn(this.nxm_1); if (this_2.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.tqm_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue_0 = prevValue_0.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().cnn_1)); if (this_3.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(DeletedItemListViewModel).eqw = function (searchText) { }; protoOf(DeletedItemListViewModel).sxn = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onDismissConfirmDialog.' call var nextValue = prevValue.rxn(VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).txn = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onConfirmDeletePermanently.' call var nextValue = prevValue.rxn(VOID, false); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var itemsToDelete = tmp$ret$1.qxn_1; var tmp = this.gqn(); launch(tmp, VOID, VOID, DeletedItemListViewModel$onConfirmDeletePermanently$slambda_0(this, itemsToDelete, null)); }; protoOf(DeletedItemListViewModel).uxn = function (item) { restoreItems(this, listOf_0(item)); }; protoOf(DeletedItemListViewModel).vxn = function (item) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_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.pqn().twl(plurals_getInstance().pns_1, 1); var nextValue = prevValue.rxn(VOID, true, tmp1_deleteConfirmText, tmp0_itemsToConfirmDeletion); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).fqw = 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.nxn_1 = deletedItemsList; this.oxn_1 = confirmDialogVisible; this.pxn_1 = deleteConfirmText; this.qxn_1 = itemsToConfirmDeletion; } protoOf(DeletedItemListUiState).wxn = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) { return new DeletedItemListUiState(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).rxn = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion, $super) { deletedItemsList = deletedItemsList === VOID ? this.nxn_1 : deletedItemsList; confirmDialogVisible = confirmDialogVisible === VOID ? this.oxn_1 : confirmDialogVisible; deleteConfirmText = deleteConfirmText === VOID ? this.pxn_1 : deleteConfirmText; itemsToConfirmDeletion = itemsToConfirmDeletion === VOID ? this.qxn_1 : itemsToConfirmDeletion; return $super === VOID ? this.wxn(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) : $super.wxn.call(this, deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).toString = function () { return 'DeletedItemListUiState(deletedItemsList=' + this.nxn_1 + ', confirmDialogVisible=' + this.oxn_1 + ', deleteConfirmText=' + this.pxn_1 + ', itemsToConfirmDeletion=' + this.qxn_1 + ')'; }; protoOf(DeletedItemListUiState).hashCode = function () { var result = hashCode(this.nxn_1); result = imul(result, 31) + getBooleanHashCode(this.oxn_1) | 0; result = imul(result, 31) + (this.pxn_1 == null ? 0 : getStringHashCode(this.pxn_1)) | 0; result = imul(result, 31) + hashCode(this.qxn_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.nxn_1, tmp0_other_with_cast.nxn_1)) return false; if (!(this.oxn_1 === tmp0_other_with_cast.oxn_1)) return false; if (!(this.pxn_1 == tmp0_other_with_cast.pxn_1)) return false; if (!equals(this.qxn_1, tmp0_other_with_cast.qxn_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.fqw(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ixp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).gwy = function (it, $completion) { var tmp = this.hwy(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.gwy((p1 == null ? true : p1 instanceof CourseBlockAndPicture) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.ixp_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pxp(this.jxp_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).hwy = function (it, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this.ixp_1, completion); i.jxp_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.gwy(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.yxp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).at3 = function (permissionPair, $completion) { var tmp = this.bt3(permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.at3(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.axq_1 = this.zxp_1; this.bxq_1 = this.axq_1.y6(); this.cxq_1 = this.axq_1.z6(); if (this.bxq_1) { l$ret$1: do { var this_0 = this.yxp_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.yxp_1.pqn().coj(strings_getInstance().rnj_1); var tmp_1 = FabIcon_ADD_getInstance(); var nextValue = prevValue.cq6(new FabUiState(true, tmp_0, tmp_1, CourseDiscussionDetailViewModel$onClickAdd$ref(this.yxp_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.yxp_1.kqv_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.pxp(VOID, this.yxp_1.zxo_1, this.cxq_1, VOID, this.yxp_1.pqn().xq4()); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 1; var tmp_2 = this.yxp_1.lqn().j7e().acm(this.yxp_1.xxo_1); var tmp_3 = CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda_0(this.yxp_1, null); suspendResult = tmp_2.u1c(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.yxp_1.tqm_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.cq6(new FabUiState()); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); l$ret$7: do { var this_3 = this.yxp_1.kqv_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.pxp(null, CourseDiscussionDetailViewModel$slambda$slambda$slambda$lambda, false); if (this_3.s1l(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); this.hd_1 = 2; continue $sm; } case 1: this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).bt3 = function (permissionPair, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda(this.yxp_1, completion); i.zxp_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.at3(permissionPair, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel$slambda$slambda(this$0, resultContinuation) { this.lxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.lxq_1.lqn().i7g(); var tmp_1 = this.lxq_1.hqn(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.adl(tmp_1, this.lxq_1.yxo_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, CourseDiscussionDetailViewModel$slambda$slambda$slambda_0(this.lxq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).f79 = function (completion) { return new CourseDiscussionDetailViewModel$slambda$slambda(this.lxq_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.d88($completion); }; l.$arity = 0; return l; } function Companion_166() { this.mxq_1 = 'CourseDiscussion'; } var Companion_instance_215; function Companion_getInstance_183() { return Companion_instance_215; } function sam$kotlinx_coroutines_flow_FlowCollector$0_30(function_0) { this.nxq_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_30).n1e = function (value, $completion) { return this.nxq_1(value, $completion); }; function CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().b7g().oem(this$0.xxo_1, false); }; } function CourseDiscussionDetailViewModel$slambda(this$0, resultContinuation) { this.wxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.wxq_1.kqv_1, CourseDiscussionDetailViewModel$slambda$slambda_0(this.wxq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new CourseDiscussionDetailViewModel$slambda(this.wxq_1, completion); i.xxq_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.o1n($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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.courediscussiondetail.CourseDiscussionDetailViewModel..' call var nextValue = prevValue.cq6(VOID, VOID, title); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseDiscussionDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.gxr_1 = this$0; this.hxr_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.gxr_1.lqn().b7g().sem(this.hxr_1.hen_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gxr_1.nqn().rq6(new Snack(this.gxr_1.pqn().coj(strings_getInstance().hmj_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).p1n = function ($this$launch, completion) { var i = new CourseDiscussionDetailViewModel$onDeletePost$slambda(this.gxr_1, this.hxr_1, completion); i.ixr_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.o1n($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_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.xxo_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_125(); 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.yxo_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.zxo_1 = CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this); var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, CourseDiscussionDetailViewModel$slambda_0(this, null)); launchSetTitleFromClazzUid(this, this.yxo_1, CourseDiscussionDetailViewModel$lambda(this)); } protoOf(CourseDiscussionDetailViewModel).eqw = function (searchText) { }; protoOf(CourseDiscussionDetailViewModel).fqw = function () { Companion_getInstance_125(); var tmp = to('courseBlockUid', this.xxo_1.toString()); Companion_getInstance_125(); this.xqw('DiscussionPostEdit', mapOf([tmp, to('clazzUid', this.yxo_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).jxr = function (post) { Companion_getInstance_116(); var tmp = to('entityUid', post.hen_1.toString()); Companion_getInstance_125(); this.rqm_1.dp6('CourseDiscussionPost', mapOf([tmp, to('clazzUid', this.yxo_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).kxr = function (post) { var tmp = this.gqn(); 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.umd(), Companion_getInstance_9().tmh()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.kxp_1 = courseBlock; this.lxp_1 = posts; this.mxp_1 = showModerateOptions; this.nxp_1 = localDateTimeNow; this.oxp_1 = dayOfWeekStrings; } protoOf(CourseDiscussionDetailUiState).lxr = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new CourseDiscussionDetailUiState(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).pxp = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { courseBlock = courseBlock === VOID ? this.kxp_1 : courseBlock; posts = posts === VOID ? this.lxp_1 : posts; showModerateOptions = showModerateOptions === VOID ? this.mxp_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.nxp_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.oxp_1 : dayOfWeekStrings; return $super === VOID ? this.lxr(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.lxr.call(this, courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).toString = function () { return 'CourseDiscussionDetailUiState(courseBlock=' + this.kxp_1 + ', posts=' + this.lxp_1 + ', showModerateOptions=' + this.mxp_1 + ', localDateTimeNow=' + this.nxp_1 + ', dayOfWeekStrings=' + this.oxp_1 + ')'; }; protoOf(CourseDiscussionDetailUiState).hashCode = function () { var result = this.kxp_1 == null ? 0 : this.kxp_1.hashCode(); result = imul(result, 31) + hashCode(this.lxp_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mxp_1) | 0; result = imul(result, 31) + this.nxp_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.oxp_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.kxp_1, tmp0_other_with_cast.kxp_1)) return false; if (!equals(this.lxp_1, tmp0_other_with_cast.lxp_1)) return false; if (!(this.mxp_1 === tmp0_other_with_cast.mxp_1)) return false; if (!this.nxp_1.equals(tmp0_other_with_cast.nxp_1)) return false; if (!equals(this.oxp_1, tmp0_other_with_cast.oxp_1)) return false; return true; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.uxr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.vxr_1.nq9_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.wxr_1 = tmp_2; this.hd_1 = 1; suspendResult = submitReply(this.uxr_1, this.wxr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).hqa = function (result, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.uxr_1, completion); i.vxr_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.gqa(result, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.fxs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).qre = function (postTitle, $completion) { var tmp = this.rre(postTitle, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.qre((p1 == null ? true : typeof p1 === 'string') ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.fxs_1.tqm_1; var tmp_0; if (!(this_0.t2().pq5_1 == this.gxs_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.cq6(VOID, VOID, this.gxs_1); if (tmp0_safe_receiver.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).rre = function (postTitle, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.fxs_1, completion); i.gxs_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.qre(postTitle, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.pxs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.pxs_1.tqn(this.pxs_1.oqn(), 'replyTextResult'); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.pxs_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this.pxs_1, completion); i.qxs_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.zxs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.zxs_1.lqn().b7g().t8d(this.zxs_1.jqm_1); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.zxs_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this.zxs_1, completion); i.axt_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.o1n($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.jxt_1 = this$0; this.kxt_1 = $savedStateHandle; this.lxt_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).at3 = function (permissionPair, $completion) { var tmp = this.bt3(permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.at3(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_container = this.mxt_1; var hasViewPermission = tmp0_container.y6(); var hasModeratePermission = tmp0_container.z6(); if (hasViewPermission) { l$ret$1: do { var this_0 = this.jxt_1.kxu_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.jxt_1.hqn(); var tmp_1 = this.jxt_1.fqn().ko9().enu_1.ykq(); var tmp0_safe_receiver = this.jxt_1.fqn().ko9().gnu_1; var nextValue = prevValue.yxu(this.jxt_1.jxu_1, tmp_0, tmp_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b98_1, VOID, hasModeratePermission); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_elvis_lhs = this.kxt_1.ba('replyText'); this.jxt_1.mxu_1.r1l(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); launch(this.lxt_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_0(this.jxt_1, null)); launch(this.lxt_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_2(this.jxt_1, null)); } else { l$ret$3: do { var this_1 = this.jxt_1.kxu_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = DiscussionPostDetailViewModel$slambda$slambda$slambda$lambda; var tmp_3 = this.jxt_1.hqn(); var tmp_4 = this.jxt_1.fqn().ko9().enu_1.ykq(); var tmp0_safe_receiver_0 = this.jxt_1.fqn().ko9().gnu_1; var nextValue_0 = prevValue_0.yxu(tmp_2, tmp_3, tmp_4, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.b98_1, VOID, false); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp2_elvis_lhs = this.kxt_1.ba('replyText'); this.jxt_1.mxu_1.r1l(tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); } return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).bt3 = function (permissionPair, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda(this.jxt_1, this.kxt_1, this.lxt_1, completion); i.mxt_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.at3(permissionPair, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation) { this.hxv_1 = this$0; this.ixv_1 = $savedStateHandle; this.jxv_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.hxv_1.lqn().i7g(); var tmp_1 = this.hxv_1.hqn(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.adl(tmp_1, this.hxv_1.pxu_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, DiscussionPostDetailViewModel$slambda$slambda$slambda_0(this.hxv_1, this.ixv_1, this.jxv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).f79 = function (completion) { return new DiscussionPostDetailViewModel$slambda$slambda(this.hxv_1, this.ixv_1, this.jxv_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.d88($completion); }; l.$arity = 0; return l; } function submitReply($this, replyText, $completion) { var tmp = new $submitReplyCOROUTINE$74($this, replyText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_167() { this.axw_1 = 'replyTextResult'; this.bxw_1 = 'replyText'; this.cxw_1 = 'CourseDiscussionPost'; } var Companion_instance_216; function Companion_getInstance_184() { return Companion_instance_216; } function sam$kotlinx_coroutines_flow_FlowCollector$0_31(function_0) { this.dxw_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_31).n1e = function (value, $completion) { return this.dxw_1(value, $completion); }; function DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().b7g().qem(this$0.jqm_1, false); }; } function DiscussionPostDetailViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.mxw_1 = this$0; this.nxw_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.mxw_1.kxu_1, DiscussionPostDetailViewModel$slambda$slambda_0(this.mxw_1, this.nxw_1, this.oxw_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda(this.mxw_1, this.nxw_1, completion); i.oxw_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onChangeReplyText$slambda(this$0, $replyText, resultContinuation) { this.xxw_1 = this$0; this.yxw_1 = $replyText; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xxw_1.pqm_1.tqi('replyText', this.yxw_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onChangeReplyText$slambda(this.xxw_1, this.yxw_1, completion); i.zxw_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onClickPostReply$slambda(this$0, resultContinuation) { this.ixx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = submitReply(this.ixx_1, this.ixx_1.mxu_1.t2(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onClickPostReply$slambda(this.ixx_1, completion); i.jxx_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$submitReply$slambda(this$0, $replyText, $clazzAndBlockUids, resultContinuation) { this.sxx_1 = this$0; this.txx_1 = $replyText; this.uxx_1 = $clazzAndBlockUids; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$submitReply$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.sxx_1.lqn().b7g(); var this_0 = new DiscussionPost(); this_0.len_1 = systemTimeInMillis(); this_0.ien_1 = this.sxx_1.jqm_1; this_0.ken_1 = this.txx_1; this_0.oen_1 = this.sxx_1.hqn(); this_0.pen_1 = this.uxx_1.mcp_1; this_0.men_1 = this.uxx_1.ncp_1; suspendResult = tmp_0.insertAsync(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.sxx_1.wxx(''); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).ony = function (it, completion) { var i = new DiscussionPostDetailViewModel$submitReply$slambda(this.sxx_1, this.txx_1, this.uxx_1, completion); i.vxx_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.nny(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.fxy_1 = this$0; this.gxy_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.fxy_1.lqn().b7g().sem(this.gxy_1.hen_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.fxy_1.nqn().rq6(new Snack(this.fxy_1.pqn().coj(strings_getInstance().hmj_1))); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onDeletePost$slambda(this.fxy_1, this.gxy_1, completion); i.hxy_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function $submitReplyCOROUTINE$74(_this__u8e3s4, replyText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sxv_1 = _this__u8e3s4; this.txv_1 = replyText; } protoOf($submitReplyCOROUTINE$74).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 11; l$ret$1: do { var this_0 = this.sxv_1.kxu_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yxu(VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.sxv_1.rqn(Companion_getInstance_97().jq6_1); this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 10; this.hd_1 = 3; suspendResult = this.sxv_1.jqn().j7e().fcm(this.sxv_1.jqm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.wxv_1 = suspendResult; var tmp_0 = this; tmp_0.xxv_1 = this.wxv_1; if ((!(this.xxv_1 == null) ? !this.xxv_1.mcp_1.equals(new Long(0, 0)) : false) ? !this.xxv_1.ncp_1.equals(new Long(0, 0)) : false) { this.yxv_1 = this.xxv_1; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.sxv_1.lqn().j7e().fcm(this.sxv_1.jqm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.yxv_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.zxv_1 = this.yxv_1; if ((this.zxv_1 == null ? true : this.zxv_1.ncp_1.equals(new Long(0, 0))) ? true : this.zxv_1.mcp_1.equals(new Long(0, 0))) { this.sxv_1.nqn().rq6(new Snack(this.sxv_1.pqn().coj(strings_getInstance().mmi_1))); this.vxv_1 = Unit_instance; this.id_1 = 11; this.hd_1 = 8; continue $sm; } else { this.hd_1 = 6; continue $sm; } case 6: this.hd_1 = 7; var tmp_1 = this.sxv_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_1, VOID, DiscussionPostDetailViewModel$submitReply$slambda_0(this.sxv_1, this.txv_1, this.zxv_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.uxv_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 8: this.id_1 = 11; this.sxv_1.rqn(Companion_getInstance_97().kq6_1); l$ret$9: do { var this_1 = this.sxv_1.kxu_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.yxu(VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$9; } } } while (false); return Unit_instance; case 9: this.id_1 = 11; this.sxv_1.rqn(Companion_getInstance_97().kq6_1); l$ret$11: do { var this_2 = this.sxv_1.kxu_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.yxu(VOID, VOID, VOID, VOID, true); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$11; } } } while (false); return Unit_instance; case 10: this.id_1 = 11; var t = this.kd_1; this.sxv_1.rqn(Companion_getInstance_97().kq6_1); l$ret$7: do { var this_3 = this.sxv_1.kxu_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.yxu(VOID, VOID, VOID, VOID, true); if (this_3.s1l(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); throw t; case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function DiscussionPostDetailViewModel(di, savedStateHandle, destinationName) { destinationName = destinationName === VOID ? 'CourseDiscussionPost' : destinationName; DetailViewModel.call(this, di, savedStateHandle, destinationName); var tmp = this; tmp.jxu_1 = DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this); this.kxu_1 = MutableStateFlow(new DiscussionPostDetailUiState2()); this.lxu_1 = asStateFlow(this.kxu_1); this.mxu_1 = MutableStateFlow(''); this.nxu_1 = asStateFlow(this.mxu_1); this.oxu_1 = null; var tmp_0 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.pxu_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, DiscussionPostDetailViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(DiscussionPostDetailViewModel).wxx = function (replyText) { this.mxu_1.r1l(replyText); var tmp0_safe_receiver = this.oxu_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.oxu_1 = launch(tmp_0, VOID, VOID, DiscussionPostDetailViewModel$onChangeReplyText$slambda_0(this, replyText, null)); }; protoOf(DiscussionPostDetailViewModel).ixy = function () { var tmp = this.gqn(); launch(tmp, VOID, VOID, DiscussionPostDetailViewModel$onClickPostReply$slambda_0(this, null)); }; protoOf(DiscussionPostDetailViewModel).kxr = function (post) { var tmp = this.gqn(); 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.umd(), Companion_getInstance_9().tmh()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.qxu_1 = discussionPosts; this.rxu_1 = loggedInPersonUid; this.sxu_1 = loggedInPersonName; this.txu_1 = loggedInPersonPictureUri; this.uxu_1 = fieldsEnabled; this.vxu_1 = showModerateOptions; this.wxu_1 = localDateTimeNow; this.xxu_1 = dayOfWeekStrings; } protoOf(DiscussionPostDetailUiState2).jxy = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new DiscussionPostDetailUiState2(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).yxu = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { discussionPosts = discussionPosts === VOID ? this.qxu_1 : discussionPosts; loggedInPersonUid = loggedInPersonUid === VOID ? this.rxu_1 : loggedInPersonUid; loggedInPersonName = loggedInPersonName === VOID ? this.sxu_1 : loggedInPersonName; loggedInPersonPictureUri = loggedInPersonPictureUri === VOID ? this.txu_1 : loggedInPersonPictureUri; fieldsEnabled = fieldsEnabled === VOID ? this.uxu_1 : fieldsEnabled; showModerateOptions = showModerateOptions === VOID ? this.vxu_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.wxu_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.xxu_1 : dayOfWeekStrings; return $super === VOID ? this.jxy(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.jxy.call(this, discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).toString = function () { return 'DiscussionPostDetailUiState2(discussionPosts=' + this.qxu_1 + ', loggedInPersonUid=' + this.rxu_1.toString() + ', loggedInPersonName=' + this.sxu_1 + ', loggedInPersonPictureUri=' + this.txu_1 + ', fieldsEnabled=' + this.uxu_1 + ', showModerateOptions=' + this.vxu_1 + ', localDateTimeNow=' + this.wxu_1 + ', dayOfWeekStrings=' + this.xxu_1 + ')'; }; protoOf(DiscussionPostDetailUiState2).hashCode = function () { var result = hashCode(this.qxu_1); result = imul(result, 31) + this.rxu_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.sxu_1) | 0; result = imul(result, 31) + (this.txu_1 == null ? 0 : getStringHashCode(this.txu_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.uxu_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vxu_1) | 0; result = imul(result, 31) + this.wxu_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.xxu_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.qxu_1, tmp0_other_with_cast.qxu_1)) return false; if (!this.rxu_1.equals(tmp0_other_with_cast.rxu_1)) return false; if (!(this.sxu_1 === tmp0_other_with_cast.sxu_1)) return false; if (!(this.txu_1 == tmp0_other_with_cast.txu_1)) return false; if (!(this.uxu_1 === tmp0_other_with_cast.uxu_1)) return false; if (!(this.vxu_1 === tmp0_other_with_cast.vxu_1)) return false; if (!this.wxu_1.equals(tmp0_other_with_cast.wxu_1)) return false; if (!equals(this.xxu_1, tmp0_other_with_cast.xxu_1)) return false; return true; }; function DiscussionPostEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.sxy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).wxy = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.wxy(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.txy_1.b7g(); var tmp_1; if (!this.sxy_1.xqs_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.uxy_1 = tmp_1; if (this.uxy_1 == null) { this.vxy_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.uxy_1.pem(this.sxy_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.vxy_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.vxy_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).ony = function (it, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda$slambda(this.sxy_1, completion); i.txy_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.wxy(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.fxz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).ixz = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).g79 = function ($completion) { return this.ixz($completion); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.gxz_1 = new DiscussionPost(); var tmp_1 = this; tmp_1.hxz_1 = this.gxz_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.fxz_1.jqn()); suspendResult = tmp_2.i63(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.hxz_1.hen_1 = ARGUMENT; this.hxz_1.men_1 = _get_courseBlockUidArg__1bqljt(this.fxz_1); this.hxz_1.oen_1 = this.fxz_1.fqn().zo9().rky_1; this.hxz_1.len_1 = systemTimeInMillis(); return this.gxz_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).f79 = function (completion) { return new DiscussionPostEditViewModel$slambda$slambda$slambda_1(this.fxz_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.ixz($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.gy0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel....' call var nextValue = prevValue.my0(entityToDisplay); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function DiscussionPostEditViewModel$slambda$slambda(this$0, resultContinuation) { this.vy0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda).xy0 = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.xy0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_45.h4s(); var tmp_1 = DiscussionPostEditViewModel$slambda$slambda$slambda_0(this.vy0_1, null); var tmp_2 = DiscussionPostEditViewModel$slambda$slambda$slambda_2(this.vy0_1, null); suspendResult = this.vy0_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, DiscussionPostEditViewModel$slambda$slambda$lambda(this.vy0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda$slambda).p1n = function ($this$async, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda(this.vy0_1, completion); i.wy0_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.xy0($this$async, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function DiscussionPostEditViewModel$onClickSave$slambda$slambda(this$0, $post, resultContinuation) { this.gy1_1 = this$0; this.hy1_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.gy1_1.lqn().b7g().rem(this.hy1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda$slambda(this.gy1_1, this.hy1_1, completion); i.iy1_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.nny(it, $completion); }; l.$arity = 1; return l; } function _get_discussionPostUid__impog9($this) { Companion_getInstance_116(); var tmp0_safe_receiver = $this.pqm_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_125(); var tmp0_safe_receiver = $this.pqm_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_168() { this.jy1_1 = 'DiscussionPostEdit'; } var Companion_instance_217; function Companion_getInstance_185() { return Companion_instance_217; } function DiscussionPostEditViewModel$slambda(this$0, resultContinuation) { this.sy1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = awaitAll([async(this.ty1_1, VOID, VOID, DiscussionPostEditViewModel$slambda$slambda_0(this.sy1_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.sy1_1.gy0_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.my0(VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.sy1_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0 = this.sy1_1.pqn().coj(strings_getInstance().rnj_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$ref(this.sy1_1)); var tmp1_loadingState = Companion_getInstance_97().kq6_1; var nextValue_0 = prevValue_0.cq6(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$slambda(this.sy1_1, completion); i.ty1_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.cy2_1 = $commitDelay; this.dy2_1 = $entity; this.ey2_1 = $this; this.fy2_1 = $key; this.gy2_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.cy2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.dy2_1 == null)) { this.hd_1 = 2; suspendResult = this.ey2_1.vqn(this.ey2_1.pqm_1, this.fy2_1, this.gy2_1, this.dy2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$onEntityChanged$slambda(this.cy2_1, this.dy2_1, this.ey2_1, this.fy2_1, this.gy2_1, completion); i.hy2_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$slambda(this$0, $post, resultContinuation) { this.qy2_1 = this$0; this.ry2_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; if (this.qy2_1.gy0_1.t2().ky0_1 == null ? this.qy2_1.gy0_1.t2().ly0_1 == null : false) { this.hd_1 = 1; suspendResult = this.qy2_1.jqn().j7e().gcm(this.ry2_1.men_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 5; continue $sm; } case 1: this.ty2_1 = suspendResult; this.ry2_1.pen_1 = this.ty2_1; if (this.ry2_1.pen_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = this.qy2_1.lqn().j7e().gcm(this.ry2_1.men_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.uy2_1 = suspendResult; this.ry2_1.pen_1 = this.uy2_1; this.hd_1 = 3; continue $sm; case 3: this.hd_1 = 4; var tmp_0 = this.qy2_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$slambda$slambda_0(this.qy2_1, this.ry2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_1 = this.ry2_1.hen_1; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_125(); this.qy2_1.cqo(this_0, 'clazzUid'); this.qy2_1.yqs('CourseDiscussionPost', tmp_1, this.ry2_1, this_0.f3()); this.hd_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(DiscussionPostEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda(this.qy2_1, this.ry2_1, completion); i.sy2_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.o1n($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.gy0_1 = MutableStateFlow(new DiscussionPostEditUiState()); this.hy0_1 = asStateFlow(this.gy0_1); this.rqn(Companion_getInstance_97().jq6_1); var title = _get_discussionPostUid__impog9(this).equals(new Long(0, 0)) ? this.pqn().coj(strings_getInstance().qnl_1) : this.pqn().coj(strings_getInstance().pmv_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_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.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp = this.gqn(); launch(tmp, VOID, VOID, DiscussionPostEditViewModel$slambda_0(this, null)); } protoOf(DiscussionPostEditViewModel).vy2 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gy0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.iy0_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jen_1; var tmp_0 = this.aqu(tmp, entity == null ? null : entity.jen_1, prevValue.ky0_1); var tmp2_safe_receiver = prevValue.iy0_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ken_1; var nextValue = prevValue.my0(entity, VOID, tmp_0, this.aqu(tmp_1, entity == null ? null : entity.ken_1, prevValue.ly0_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_45.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_2 = this; var tmp_3 = this.gqn(); tmp_2.wqs_1 = launch(tmp_3, VOID, VOID, DiscussionPostEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(DiscussionPostEditViewModel).os5 = function () { var tmp0_elvis_lhs = this.gy0_1.t2().iy0_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.gy0_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.jen_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_0 = this.pqn().coj(strings_getInstance().rmn_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = post.ken_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.pqn().coj(strings_getInstance().rmn_1); } else { tmp_2 = null; } var nextValue = prevValue.my0(VOID, VOID, tmp_1, tmp_2); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.gqn(); 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.iy0_1 = discussionPost; this.jy0_1 = fieldsEnabled; this.ky0_1 = discussionPostTitleError; this.ly0_1 = discussionPostDescError; } protoOf(DiscussionPostEditUiState).wy2 = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) { return new DiscussionPostEditUiState(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).my0 = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError, $super) { discussionPost = discussionPost === VOID ? this.iy0_1 : discussionPost; fieldsEnabled = fieldsEnabled === VOID ? this.jy0_1 : fieldsEnabled; discussionPostTitleError = discussionPostTitleError === VOID ? this.ky0_1 : discussionPostTitleError; discussionPostDescError = discussionPostDescError === VOID ? this.ly0_1 : discussionPostDescError; return $super === VOID ? this.wy2(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) : $super.wy2.call(this, discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).toString = function () { return 'DiscussionPostEditUiState(discussionPost=' + this.iy0_1 + ', fieldsEnabled=' + this.jy0_1 + ', discussionPostTitleError=' + this.ky0_1 + ', discussionPostDescError=' + this.ly0_1 + ')'; }; protoOf(DiscussionPostEditUiState).hashCode = function () { var result = this.iy0_1 == null ? 0 : hashCode(this.iy0_1); result = imul(result, 31) + getBooleanHashCode(this.jy0_1) | 0; result = imul(result, 31) + (this.ky0_1 == null ? 0 : getStringHashCode(this.ky0_1)) | 0; result = imul(result, 31) + (this.ly0_1 == null ? 0 : getStringHashCode(this.ly0_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.iy0_1, tmp0_other_with_cast.iy0_1)) return false; if (!(this.jy0_1 === tmp0_other_with_cast.jy0_1)) return false; if (!(this.ky0_1 == tmp0_other_with_cast.ky0_1)) return false; if (!(this.ly0_1 == tmp0_other_with_cast.ly0_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.wod_1; } else { tmp = _this__u8e3s4.wod_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.by4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.....' call var nextValue = prevValue.py4(VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function EpubContentViewModel$slambda$slambda$slambda(this$0, $cevOpenUri, $manifest, $cevManifestUrlObj, resultContinuation) { this.yy4_1 = this$0; this.zy4_1 = $cevOpenUri; this.ay5_1 = $manifest; this.by5_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda$slambda).ly5 = function (it, $completion) { var tmp = this.my5(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EpubContentViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.ly5(p1 instanceof Item ? p1 : THROW_CCE(), $completion); }; protoOf(EpubContentViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; tmp_0.dy5_1 = _get_httpClient__2ty1zc_2(this.yy4_1); var tmp_1 = this; tmp_1.ey5_1 = invoke$urlToLoad(this.cy5_1, this.zy4_1, this.ay5_1, this.yy4_1, this.by5_1); var tmp_2 = this; tmp_2.fy5_1 = this.dy5_1; var tmp_3 = this; tmp_3.gy5_1 = this.fy5_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ey5_1); tmp_4.hy5_1 = this_0; this.hy5_1.q39_1 = Companion_getInstance().f2y_1; var tmp_5 = this; tmp_5.iy5_1 = this.gy5_1; var tmp_6 = this; tmp_6.jy5_1 = this.hy5_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.jy5_1, this.iy5_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ky5_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.ky5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EpubContentViewModel$slambda$slambda$slambda).my5 = function (it, completion) { var i = new EpubContentViewModel$slambda$slambda$slambda(this.yy4_1, this.zy4_1, this.ay5_1, this.by5_1, completion); i.cy5_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.ly5(it, $completion); }; l.$arity = 1; return l; } function invoke$urlToLoad_0(_this__u8e3s4, this$0, cevManifestUrlObj) { var tmp; if (this$0.xy3_1) { tmp = _this__u8e3s4.aog_1; } else { tmp = cevManifestUrlObj.zp1(_this__u8e3s4.sof_1).toString(); } return tmp; } function EpubContentViewModel$slambda$slambda($manifest, $cevOpenUri, this$0, $opfBaseUrl, $argTocString, $cevManifestUrlObj, resultContinuation) { this.vy5_1 = $manifest; this.wy5_1 = $cevOpenUri; this.xy5_1 = this$0; this.yy5_1 = $opfBaseUrl; this.zy5_1 = $argTocString; this.ay6_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda).o1n = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EpubContentViewModel$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EpubContentViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.id_1 = 4; this.cy6_1 = requireEntryByUri(this.vy5_1, this.wy5_1); var tmp_0 = this; tmp_0.dy6_1 = _get_httpClient__2ty1zc_2(this.xy5_1); var tmp_1 = this; tmp_1.ey6_1 = invoke$urlToLoad_0(this.cy6_1, this.xy5_1, this.ay6_1); var tmp_2 = this; tmp_2.fy6_1 = this.dy6_1; var tmp_3 = this; tmp_3.gy6_1 = this.fy6_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ey6_1); tmp_4.hy6_1 = this_0; this.hy6_1.q39_1 = Companion_getInstance().f2y_1; var tmp_5 = this; tmp_5.iy6_1 = this.gy6_1; var tmp_6 = this; tmp_6.jy6_1 = this.hy6_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.jy6_1, this.iy6_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ky6_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.ky6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ly6_1 = suspendResult; this.my6_1 = _get_xml__e6jxp6(this.xy5_1).m46(Companion_instance_75.h4s(), this.ly6_1); var tmp_7 = this; var this_1 = this.my6_1.aof_1.foe_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.vod_1, element); } tmp_7.ny6_1 = destination; var tmp_8 = this; var this_2 = this.my6_1.bof_1.eof_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.ny6_1.q(element_0.boe_1); var tmp_9; if (tmp0_safe_receiver == null) { tmp_9 = null; } else { tmp_9 = this.yy5_1.zp1(tmp0_safe_receiver.wod_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.oy6_1 = destination_0; var tmp_10 = this; var tmp0_safe_receiver_1 = this.my6_1.cof(); var tmp_11; if (tmp0_safe_receiver_1 == null) { tmp_11 = null; } else { tmp_11 = this.yy5_1.zp1(tmp0_safe_receiver_1.wod_1); } var tmp1_safe_receiver_0 = tmp_11; tmp_10.py6_1 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.toString(); l$ret$1: do { var this_3 = this.xy5_1.by4_1; while (true) { var prevValue = this_3.t2(); var tmp0_safe_receiver_2 = firstOrNull(this.my6_1.zoe_1.poe_1); var nextValue = prevValue.py4(VOID, this.oy6_1, VOID, VOID, VOID, this.py6_1, tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.ood_1); if (this_3.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_4 = this.xy5_1.tqm_1; while (true) { var prevValue_0 = this_4.t2(); var tmp0_safe_receiver_3 = firstOrNull(this.my6_1.zoe_1.noe_1); var tmp1_elvis_lhs = tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.sod_1; var tmp_12 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = this.zy5_1; var tmp_13 = tmp2_elvis_lhs == null ? this.xy5_1.pqn().coj(strings_getInstance().znl_1) : tmp2_elvis_lhs; var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, VOID, listOf_0(new OverflowItem(tmp_13, EpubContentViewModel$slambda$slambda$lambda(this.xy5_1)))); if (this_4.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp_14 = this.xy5_1; var tmp2_safe_receiver = this.my6_1.dof(); var tmp_15; if (tmp2_safe_receiver == null) { tmp_15 = null; } else { tmp_15 = this.yy5_1.zp1(tmp2_safe_receiver.wod_1).toString(); } tmp_14.gy4_1 = tmp_15; this.hd_1 = 3; suspendResult = this.xy5_1.wy3_1.ape(this.my6_1, EpubContentViewModel$slambda$slambda$slambda_0(this.xy5_1, this.wy5_1, this.vy5_1, this.ay6_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.xy5_1.by4_1; while (true) { var prevValue_1 = this_5.t2(); var nextValue_1 = prevValue_1.py4(VOID, VOID, tocItems); if (this_5.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.id_1 = 5; this.hd_1 = 6; continue $sm; case 4: this.id_1 = 5; var tmp_16 = this.kd_1; if (tmp_16 instanceof Error) { var e = this.kd_1; printStackTrace(e); this.hd_1 = 6; continue $sm; } else { throw this.kd_1; } case 5: throw this.kd_1; case 6: this.id_1 = 5; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 5) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(EpubContentViewModel$slambda$slambda).p1n = function ($this$withContext, completion) { var i = new EpubContentViewModel$slambda$slambda(this.vy5_1, this.wy5_1, this.xy5_1, this.yy5_1, this.zy5_1, this.ay6_1, completion); i.by6_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.o1n($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_httpClient__2ty1zc_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zy3_1; httpClient$factory_6(); return this_0.t2(); } function _get_xml__e6jxp6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ay4_1; xml$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dy4_1; openExternalLinkUseCase$factory_2(); return this_0.t2(); } function Companion_169() { this.qy6_1 = 'manifestUrl'; this.ry6_1 = 'cevUri'; this.sy6_1 = 'navigationVisible'; this.ty6_1 = 'tocString'; this.uy6_1 = 'xapiStatementsUrl'; this.vy6_1 = 'EpubContent'; } var Companion_instance_218; function Companion_getInstance_186() { return Companion_instance_218; } function EpubContentViewModel$slambda($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation) { this.ey7_1 = $argManifestUrl; this.fy7_1 = $argCevOpenUri; this.gy7_1 = this$0; this.hy7_1 = $argTocString; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EpubContentViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EpubContentViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; if (!(this.ey7_1 == null) ? !(this.fy7_1 == null) : false) { var tmp_0 = this; tmp_0.jy7_1 = to(this.ey7_1, this.fy7_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.gy7_1.lqn().c7g().zbq(this.gy7_1.yy3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ky7_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.ky7_1 == null) { return Unit_instance; } else { tmp_2 = this.ky7_1; } tmp_1.ly7_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.ly7_1.jay_1; var tmp_4; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.my7_1 = tmp_4; var tmp_5 = this; var tmp2_elvis_lhs = this.ly7_1.hay_1; var tmp_6; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_6 = tmp2_elvis_lhs; } tmp_5.ny7_1 = tmp_6; this.jy7_1 = to(this.my7_1, this.ny7_1); this.hd_1 = 2; continue $sm; case 2: this.oy7_1 = this.jy7_1; this.py7_1 = this.oy7_1.y6(); this.qy7_1 = this.oy7_1.z6(); this.ry7_1 = UrlKmp(this.py7_1); this.sy7_1 = this.ry7_1.zp1(this.qy7_1); var tmp_7 = this; tmp_7.ty7_1 = this.gy7_1.g4s(); var tmp_8 = this; tmp_8.uy7_1 = _get_httpClient__2ty1zc_2(this.gy7_1); var tmp_9 = this; tmp_9.vy7_1 = this.py7_1; var tmp_10 = this; tmp_10.wy7_1 = this.uy7_1; var tmp_11 = this; tmp_11.xy7_1 = this.wy7_1; var tmp_12 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.vy7_1); tmp_12.yy7_1 = this_0; this.yy7_1.q39_1 = Companion_getInstance().f2y_1; var tmp_13 = this; tmp_13.zy7_1 = this.xy7_1; var tmp_14 = this; tmp_14.ay8_1 = this.yy7_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.ay8_1, this.zy7_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.by8_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.by8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.cy8_1 = suspendResult; var tmp_15 = this; var this_1 = this.ty7_1.n46(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_15.dy8_1 = this.ty7_1.m46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.cy8_1); this.hd_1 = 5; var tmp_16 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_16, EpubContentViewModel$slambda$slambda_0(this.dy8_1, this.qy7_1, this.gy7_1, this.sy7_1, this.hy7_1, this.ry7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EpubContentViewModel$slambda).p1n = function ($this$launch, completion) { var i = new EpubContentViewModel$slambda(this.ey7_1, this.fy7_1, this.gy7_1, this.hy7_1, completion); i.iy7_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.o1n($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).z58(); // 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.x58(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.wy3_1 = getEpubTableOfContentsUseCase; this.xy3_1 = useBodyDataUrls; var tmp_2 = this; Companion_getInstance_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.yy3_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.zy3_1 = Instance(this, tmp$ret$2, null).u5d(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.ay4_1 = Instance(this, tmp$ret$4, null).u5d(this, xml$factory()); this.by4_1 = MutableStateFlow(new EpubContentUiState(this.yy3_1)); this.cy4_1 = asStateFlow(this.by4_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.dy4_1 = Instance(this, tmp$ret$6, null).u5d(this, openExternalLinkUseCase$factory_1()); this.ey4_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.fy4_1 = asSharedFlow(this.ey4_1); this.gy4_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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, argNavigationVisible, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.gqn(); launch(tmp_9, VOID, VOID, EpubContentViewModel$slambda_0(argManifestUrl, argCevOpenUri, this, argTocString, null)); } protoOf(EpubContentViewModel).ey8 = function () { var langCodeVal = this.by4_1.t2().ny4_1; var titleVal = this.tqm_1.t2().pq5_1; var tmp; if (!(langCodeVal == null) ? !(titleVal == null) : false) { tmp = new TitleAndLangCode(titleVal, langCodeVal); } else { tmp = null; } return tmp; }; protoOf(EpubContentViewModel).fy8 = function (baseUrl, href) { var url = UrlKmp(baseUrl).zp1(href); var urlStr = url.toString(); var hashIndex = indexOf_0(urlStr, '#'); var urlWithoutHash = substringBefore_0(urlStr, '#'); var indexInSpine = this.by4_1.t2().iy4_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.ey4_1.c1i(new EpubScrollCommand(indexInSpine, tmp)); } else { _get_openExternalLinkUseCase__ku5z07_0(this).lpi(url.toString(), LinkTarget_BLANK_getInstance()); } }; protoOf(EpubContentViewModel).gy8 = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.by4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickTocItem.' call var nextValue = prevValue.py4(VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = this.gy4_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var baseHref = tmp; var tmp1_elvis_lhs = tocItem.vpd_1; var tmp_0; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp1_elvis_lhs; } var itemUrl = tmp_0; this.fy8(baseHref, itemUrl); }; protoOf(EpubContentViewModel).hy8 = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.by4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickToggleTocItem.' call var tmp; if (prevValue.ly4_1.a1(tocItem.tpd_1)) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_1 = prevValue.ly4_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.tpd_1)) { destination.i1(element); } } tmp = toSet(destination); } else { tmp = plus_2(prevValue.ly4_1, tocItem.tpd_1); } var nextValue = prevValue.py4(VOID, VOID, VOID, VOID, tmp); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).iy8 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.by4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onDismissTableOfContentsDrawer.' call var nextValue = prevValue.py4(VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).jy8 = function (index) { var spineSize = this.by4_1.t2().iy4_1.u(); if (spineSize <= 0) return Unit_instance; if (index === (spineSize - 1 | 0)) { this.wq2(true); } else { this.vq2(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.hy4_1 = contentEntryVersionUid; this.iy4_1 = spineUrls; this.jy4_1 = tableOfContents; this.ky4_1 = tableOfContentsOpen; this.ly4_1 = collapsedTocUids; this.my4_1 = coverImageUrl; this.ny4_1 = langCode; var tmp = this; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.jy4_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.ly4_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.ky9(element_0)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (!tmp$ret$0) { destination.i1(element); } } tmp.oy4_1 = destination; } protoOf(EpubContentUiState).ly9 = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) { return new EpubContentUiState(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).py4 = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode, $super) { contentEntryVersionUid = contentEntryVersionUid === VOID ? this.hy4_1 : contentEntryVersionUid; spineUrls = spineUrls === VOID ? this.iy4_1 : spineUrls; tableOfContents = tableOfContents === VOID ? this.jy4_1 : tableOfContents; tableOfContentsOpen = tableOfContentsOpen === VOID ? this.ky4_1 : tableOfContentsOpen; collapsedTocUids = collapsedTocUids === VOID ? this.ly4_1 : collapsedTocUids; coverImageUrl = coverImageUrl === VOID ? this.my4_1 : coverImageUrl; langCode = langCode === VOID ? this.ny4_1 : langCode; return $super === VOID ? this.ly9(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) : $super.ly9.call(this, contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).toString = function () { return 'EpubContentUiState(contentEntryVersionUid=' + this.hy4_1.toString() + ', spineUrls=' + this.iy4_1 + ', tableOfContents=' + this.jy4_1 + ', tableOfContentsOpen=' + this.ky4_1 + ', collapsedTocUids=' + this.ly4_1 + ', coverImageUrl=' + this.my4_1 + ', langCode=' + this.ny4_1 + ')'; }; protoOf(EpubContentUiState).hashCode = function () { var result = this.hy4_1.hashCode(); result = imul(result, 31) + hashCode(this.iy4_1) | 0; result = imul(result, 31) + hashCode(this.jy4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ky4_1) | 0; result = imul(result, 31) + hashCode(this.ly4_1) | 0; result = imul(result, 31) + (this.my4_1 == null ? 0 : getStringHashCode(this.my4_1)) | 0; result = imul(result, 31) + (this.ny4_1 == null ? 0 : getStringHashCode(this.ny4_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.hy4_1.equals(tmp0_other_with_cast.hy4_1)) return false; if (!equals(this.iy4_1, tmp0_other_with_cast.iy4_1)) return false; if (!equals(this.jy4_1, tmp0_other_with_cast.jy4_1)) return false; if (!(this.ky4_1 === tmp0_other_with_cast.ky4_1)) return false; if (!equals(this.ly4_1, tmp0_other_with_cast.ly4_1)) return false; if (!(this.my4_1 == tmp0_other_with_cast.my4_1)) return false; if (!(this.ny4_1 == tmp0_other_with_cast.ny4_1)) return false; return true; }; function EpubScrollCommand(spineIndex, hash) { hash = hash === VOID ? null : hash; this.my9_1 = spineIndex; this.ny9_1 = hash; } protoOf(EpubScrollCommand).toString = function () { return 'EpubScrollCommand(spineIndex=' + this.my9_1 + ', hash=' + this.ny9_1 + ')'; }; protoOf(EpubScrollCommand).hashCode = function () { var result = this.my9_1; result = imul(result, 31) + (this.ny9_1 == null ? 0 : getStringHashCode(this.ny9_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.my9_1 === tmp0_other_with_cast.my9_1)) return false; if (!(this.ny9_1 == tmp0_other_with_cast.ny9_1)) return false; return true; }; function EpubTocItem(uid, label, href, children, parentUids, indentLevel) { parentUids = parentUids === VOID ? emptySet() : parentUids; indentLevel = indentLevel === VOID ? 0 : indentLevel; this.tpd_1 = uid; this.upd_1 = label; this.vpd_1 = href; this.wpd_1 = children; this.xpd_1 = parentUids; this.ypd_1 = indentLevel; var tmp = this; // Inline function 'kotlin.collections.isNotEmpty' call tmp.zpd_1 = !this.wpd_1.c1(); } protoOf(EpubTocItem).ky9 = function (uid) { return this.xpd_1.a1(uid); }; protoOf(EpubTocItem).toString = function () { return 'EpubTocItem(uid=' + this.tpd_1 + ', label=' + this.upd_1 + ', href=' + this.vpd_1 + ', children=' + this.wpd_1 + ', parentUids=' + this.xpd_1 + ', indentLevel=' + this.ypd_1 + ')'; }; protoOf(EpubTocItem).hashCode = function () { var result = this.tpd_1; result = imul(result, 31) + getStringHashCode(this.upd_1) | 0; result = imul(result, 31) + (this.vpd_1 == null ? 0 : getStringHashCode(this.vpd_1)) | 0; result = imul(result, 31) + hashCode(this.wpd_1) | 0; result = imul(result, 31) + hashCode(this.xpd_1) | 0; result = imul(result, 31) + this.ypd_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.tpd_1 === tmp0_other_with_cast.tpd_1)) return false; if (!(this.upd_1 === tmp0_other_with_cast.upd_1)) return false; if (!(this.vpd_1 == tmp0_other_with_cast.vpd_1)) return false; if (!equals(this.wpd_1, tmp0_other_with_cast.wpd_1)) return false; if (!equals(this.xpd_1, tmp0_other_with_cast.xpd_1)) return false; if (!(this.ypd_1 === tmp0_other_with_cast.ypd_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_170() { this.oy9_1 = 'Error'; } var Companion_instance_219; function Companion_getInstance_187() { return Companion_instance_219; } function LoginViewModel$getCredentials$slambda$lambda($credentialResult) { return function () { return 'Error occurred: ' + $credentialResult.tr3_1; }; } function LoginViewModel$getCredentials$slambda$lambda_0($e) { return function () { return 'Error occurred: ' + $e.message; }; } function _get_impl__d88w17_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.oya_1; impl$factory_2(); return this_0.t2(); } function _get_httpClient__2ty1zc_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pya_1; httpClient$factory_8(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qya_1; apiUrlConfig$factory_8(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sya_1; setLanguageUseCase$factory_2(); return this_0.t2(); } function _get_languagesConfig__hebcss($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tya_1; languagesConfig$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wya_1; getVersionUseCase$factory_2(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xya_1; getShowPoweredByUseCase$factory_2(); return this_0.t2(); } function _get_getCredentialUseCase__qofq9r_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ayb_1; getCredentialUseCase$factory_2(); return this_0.t2(); } function _get_parseCredentialUsernameUseCase__8m48wk_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.byb_1; parseCredentialUsernameUseCase$factory_2(); return this_0.t2(); } function onSiteVerified($this, site) { $this.rya_1 = site; $this.rqn(Companion_getInstance_97().kq6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.kya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onSiteVerified.' call var tmp0_connectAsGuestVisible = site.uhn_1; var nextValue = prevValue.qyb(VOID, VOID, true, VOID, VOID, VOID, tmp0_connectAsGuestVisible, VOID, null); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } function goToNextDestAfterLoginOrGuestSelected($this, person) { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.e5f(VOID, VOID, LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda($this)); if (person.h97_1) { var tmp_0 = $this; Companion_getInstance_168(); tmp_0.mya_1 = 'ContentEntryListHome'; } $this.bqu($this.rqm_1, appendSelectedAccount($this.mya_1, person.z96_1, new LearningSpace($this.nya_1)), goOptions); } 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.gqn(); launch(tmp_0, VOID, VOID, LoginViewModel$getCredentials$slambda_0(getCredentialUseCaseVal, $this, null)); } function Companion_171() { this.ryb_1 = 'Login'; } var Companion_instance_220; function Companion_getInstance_188() { return Companion_instance_220; } function LoginViewModel$slambda(this$0, resultContinuation) { this.ayc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LoginViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 7; this.hd_1 = 1; continue $sm; case 1: if (!(this.ayc_1.rya_1 == null)) { this.hd_1 = 6; continue $sm; } this.id_1 = 3; this.hd_1 = 2; suspendResult = verifySite(_get_httpClient__2ty1zc_3(this.ayc_1), this.ayc_1.nya_1, new Long(10000, 0), this.ayc_1.g4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.cyc_1 = suspendResult; onSiteVerified(this.ayc_1, this.cyc_1); this.id_1 = 7; this.hd_1 = 5; continue $sm; case 3: this.id_1 = 7; var tmp_0 = this.kd_1; if (tmp_0 instanceof Exception) { this.dyc_1 = this.kd_1; Napier_getInstance().g5f('Could not load site object for ' + this.ayc_1.nya_1, this.dyc_1); l$ret$1: do { var this_0 = this.ayc_1.kya_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qyb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _get_impl__d88w17_0(this.ayc_1).coj(strings_getInstance().wmi_1)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; suspendResult = delay(new Long(10000, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.kd_1; } case 4: this.hd_1 = 5; continue $sm; case 5: this.id_1 = 7; this.hd_1 = 1; continue $sm; case 6: return Unit_instance; case 7: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 7) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(LoginViewModel$slambda).p1n = function ($this$launch, completion) { var i = new LoginViewModel$slambda(this.ayc_1, completion); i.byc_1 = $this$launch; return i; }; function LoginViewModel$slambda_0(this$0, resultContinuation) { var i = new LoginViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda(this$0) { return function () { return 'LoginPresenter: go to next destination: ' + this$0.mya_1; }; } function LoginViewModel$onClickLogin$slambda(this$0, $username, $password, resultContinuation) { this.myc_1 = this$0; this.nyc_1 = $username; this.oyc_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$onClickLogin$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LoginViewModel$onClickLogin$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$onClickLogin$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 8; this.qyc_1 = null; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 7; this.id_1 = 6; this.hd_1 = 2; var tmp_0 = this.myc_1.fqn(); var this_0 = this.nyc_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.oyc_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); var tmp_3 = this.myc_1.nya_1; Companion_getInstance_116(); var tmp0_safe_receiver = this.myc_1.pqm_1.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.koa(tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.myc_1.yya_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.syc_1 = suspendResult; if (!this.myc_1.zya_1) { var tmp_4 = this; var this_2 = this.myc_1.u57(); var context = new LearningSpace(this.myc_1.nya_1); var trigger = this_2.x57(); 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.b58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).z58(); var tmp_8 = typeToken(createKType(getKClass(SavePasswordUseCase), arrayOf([]), false)); tmp_4.tyc_1 = tmp_7.y58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), null); this.uyc_1 = this.tyc_1; if (this.uyc_1 == null) { this.vyc_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; var this_3 = this.nyc_1; var tmp_9 = toString(trim(isCharSequence(this_3) ? this_3 : THROW_CCE())); var this_4 = this.oyc_1; suspendResult = this.uyc_1.hpc(tmp_9, toString(trim(isCharSequence(this_4) ? this_4 : THROW_CCE())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { this.hd_1 = 5; continue $sm; } case 3: var tmp_10 = this; tmp_10.vyc_1 = Unit_instance; this.hd_1 = 4; continue $sm; case 4: this.hd_1 = 5; continue $sm; case 5: var tmp_11 = this; goToNextDestAfterLoginOrGuestSelected(this.myc_1, this.syc_1.zky()); tmp_11.ryc_1 = Unit_instance; this.id_1 = 8; this.hd_1 = 9; continue $sm; case 6: this.id_1 = 7; var tmp_12 = this.kd_1; if (tmp_12 instanceof AdultAccountRequiredException) { var e = this.kd_1; var tmp_13 = this; this.qyc_1 = _get_impl__d88w17_0(this.myc_1).coj(strings_getInstance().enf_1); tmp_13.ryc_1 = Unit_instance; this.id_1 = 8; this.hd_1 = 9; continue $sm; } else { var tmp_14 = this.kd_1; if (tmp_14 instanceof UnauthorizedException) { var e_0 = this.kd_1; var tmp_15 = this; this.qyc_1 = _get_impl__d88w17_0(this.myc_1).coj(strings_getInstance().vmi_1); tmp_15.ryc_1 = Unit_instance; this.id_1 = 8; this.hd_1 = 9; continue $sm; } else { var tmp_16 = this.kd_1; if (tmp_16 instanceof ConsentNotGrantedException) { var e_1 = this.kd_1; var tmp_17 = this; this.qyc_1 = _get_impl__d88w17_0(this.myc_1).coj(strings_getInstance().dnf_1); tmp_17.ryc_1 = Unit_instance; this.id_1 = 8; this.hd_1 = 9; continue $sm; } else { var tmp_18 = this.kd_1; if (tmp_18 instanceof Exception) { var e_2 = this.kd_1; var tmp_19 = this; this.qyc_1 = _get_impl__d88w17_0(this.myc_1).coj(strings_getInstance().wmi_1); tmp_19.ryc_1 = Unit_instance; this.id_1 = 8; this.hd_1 = 9; continue $sm; } else { throw this.kd_1; } } } } case 7: this.id_1 = 8; var t = this.kd_1; this.myc_1.rqn(Companion_getInstance_97().kq6_1); l$ret$3: do { var this_5 = this.myc_1.kya_1; while (true) { var prevValue = this_5.t2(); var nextValue = prevValue.qyb(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.qyc_1); if (this_5.s1l(prevValue, nextValue)) { break l$ret$3; } } } while (false); throw t; case 8: throw this.kd_1; case 9: this.id_1 = 8; this.myc_1.rqn(Companion_getInstance_97().kq6_1); l$ret$5: do { var this_6 = this.myc_1.kya_1; while (true) { var prevValue_0 = this_6.t2(); var nextValue_0 = prevValue_0.qyb(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.qyc_1); if (this_6.s1l(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); return Unit_instance; } } catch ($p) { var e_3 = $p; if (this.id_1 === 8) { throw e_3; } else { this.hd_1 = this.id_1; this.kd_1 = e_3; } } while (true); }; protoOf(LoginViewModel$onClickLogin$slambda).p1n = function ($this$launch, completion) { var i = new LoginViewModel$onClickLogin$slambda(this.myc_1, this.nyc_1, this.oyc_1, completion); i.pyc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$onClickConnectAsGuest$slambda(this$0, resultContinuation) { this.eyd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$onClickConnectAsGuest$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LoginViewModel$onClickConnectAsGuest$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$onClickConnectAsGuest$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.eyd_1.fqn().loa(this.eyd_1.nya_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var guestPerson = suspendResult; goToNextDestAfterLoginOrGuestSelected(this.eyd_1, guestPerson.enu_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(LoginViewModel$onClickConnectAsGuest$slambda).p1n = function ($this$launch, completion) { var i = new LoginViewModel$onClickConnectAsGuest$slambda(this.eyd_1, completion); i.fyd_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$getCredentials$slambda($getCredentialUseCaseVal, this$0, resultContinuation) { this.oyd_1 = $getCredentialUseCaseVal; this.pyd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$getCredentials$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LoginViewModel$getCredentials$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LoginViewModel$getCredentials$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.id_1 = 4; this.hd_1 = 1; suspendResult = this.oyd_1.cpb(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ryd_1 = suspendResult; var tmp_0 = this.ryd_1; if (tmp_0 instanceof PasskeyCredentialResult) { this.hd_1 = 2; suspendResult = this.pyd_1.fqn().joa(this.ryd_1.tr5_1, this.pyd_1.nya_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this.ryd_1; if (tmp_1 instanceof PasswordCredentialResult) { var tmp0_container = _get_parseCredentialUsernameUseCase__8m48wk_0(this.pyd_1).gp9(this.ryd_1.rr5_1); var learningSpace = tmp0_container.y6(); var username = tmp0_container.z6(); this.pyd_1.syd(username); this.pyd_1.tyd(this.ryd_1.sr5_1); this.pyd_1.zya_1 = true; var tmp_2 = this.pyd_1; var this_0 = learningSpace.mnt_1; Companion_getInstance_116(); this.pyd_1.pqm_1.tqi('learningSpaceUrl', this_0); tmp_2.nya_1 = this_0; this.pyd_1.uyd(); this.hd_1 = 3; continue $sm; } else { var tmp_3 = this.ryd_1; if (tmp_3 instanceof Error_1) { var tmp_4 = Napier_getInstance(); tmp_4.m5f(VOID, VOID, LoginViewModel$getCredentials$slambda$lambda(this.ryd_1)); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 3; continue $sm; } } } case 2: var account = suspendResult; goToNextDestAfterLoginOrGuestSelected(this.pyd_1, account.zky()); this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.hd_1 = 6; continue $sm; case 4: this.id_1 = 5; var tmp_5 = this.kd_1; if (tmp_5 instanceof Exception) { var e = this.kd_1; var tmp_6 = Napier_getInstance(); tmp_6.m5f(VOID, VOID, LoginViewModel$getCredentials$slambda$lambda_0(e)); this.hd_1 = 6; continue $sm; } else { throw this.kd_1; } case 5: throw this.kd_1; case 6: this.id_1 = 5; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 5) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(LoginViewModel$getCredentials$slambda).p1n = function ($this$launch, completion) { var i = new LoginViewModel$getCredentials$slambda(this.oyd_1, this.pyd_1, completion); i.qyd_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Login'); this.kya_1 = MutableStateFlow(new LoginUiState()); this.lya_1 = asStateFlow(this.kya_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.oya_1 = Instance(this, tmp$ret$0, null).u5d(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.pya_1 = Instance(this, tmp$ret$2, null).u5d(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.qya_1 = Instance(this, tmp$ret$4, null).u5d(this, apiUrlConfig$factory_7()); this.rya_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.sya_1 = Instance(this, tmp$ret$6, null).u5d(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.tya_1 = Instance(this, tmp$ret$8, null).u5d(this, languagesConfig$factory()); this.uya_1 = new ValidateUsernameUseCase_0(); this.vya_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.wya_1 = InstanceOrNull(this, tmp$ret$10, null).u5d(this, getVersionUseCase$factory_1()); 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.xya_1 = InstanceOrNull(this, tmp$ret$12, null).u5d(this, getShowPoweredByUseCase$factory_1()); var tmp_13 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_13.yya_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; this.zya_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.ayb_1 = InstanceOrNull(this, tmp$ret$14, null).u5d(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.byb_1 = Instance(this, tmp$ret$16, null).u5d(this, parseCredentialUsernameUseCase$factory_1()); var tmp_18 = this; Companion_getInstance_116(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_19; if (tmp0_elvis_lhs == null) { Companion_getInstance_139(); tmp_19 = 'CourseListHome'; } else { tmp_19 = tmp0_elvis_lhs; } tmp_18.mya_1 = tmp_19; var tmp_20 = this; Companion_getInstance_116(); var tmp1_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp2_elvis_lhs = tmp1_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_3(this).jo2_1 : tmp1_elvis_lhs_0; tmp_20.nya_1 = tmp2_elvis_lhs == null ? 'http://localhost' : tmp2_elvis_lhs; Companion_getInstance_116(); savedStateHandle.tqi('learningSpaceUrl', this.nya_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var tmp_21 = this.pqn().coj(strings_getInstance().qnm_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.jpe(); var tmp_22 = tmp_21 + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hpe_1); Companion_getInstance_116(); var tmp_23 = savedStateHandle.ba('intMsg'); var tmp_24 = _get_languagesConfig__hebcss(this).pq7(this.pqn()); var tmp_25 = _get_languagesConfig__hebcss(this).qq7(this.pqn()); var tmp2_safe_receiver = _get_getShowPoweredByUseCase__5l0p0e_0(this); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.jpe(); var nextValue = prevValue.qyb(VOID, VOID, VOID, VOID, VOID, tmp_22, VOID, tmp_23, VOID, tmp_24, tmp_25, VOID, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } Companion_getInstance_212(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kya_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_0 = prevValue_0.qyb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } var tmp3_title = _get_impl__d88w17_0(this).coj(strings_getInstance().emi_1); var baseAppUiState = new AppUiState(VOID, VOID, tmp3_title, false, VOID, VOID, false); this.nya_1 = requirePostfix(this.nya_1, '/'); Companion_getInstance_116(); var siteJsonStr = savedStateHandle.ba('site'); if (!(siteJsonStr == null)) { this.tqm_1.r1l(baseAppUiState); // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_2 = this.g4s(); // Inline function 'kotlinx.serialization.serializer' call var this_3 = this_2.n46(); // Inline function 'kotlinx.serialization.internal.cast' call var this_4 = serializer(this_3, createKType(getKClass(Site), arrayOf([]), false)); var tmp$ret$23 = isInterface(this_4, KSerializer) ? this_4 : THROW_CCE(); var tmp$ret$24 = this_2.m46(tmp$ret$23, siteJsonStr); onSiteVerified(this, tmp$ret$24); } else { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_5 = this.kya_1; while (true) { var prevValue_1 = this_5.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_1 = prevValue_1.qyb(VOID, VOID, false); if (this_5.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } this.tqm_1.r1l(baseAppUiState.cq6(VOID, Companion_getInstance_97().jq6_1)); var tmp_26 = this.gqn(); launch(tmp_26, VOID, VOID, LoginViewModel$slambda_0(this, null)); } getCredentials_0(this); } protoOf(LoginViewModel).syd = function (newValue) { this.zya_1 = false; var filteredValue = this.vya_1.fpe(newValue, ''); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onUsernameChanged.' call var nextValue = prevValue.qyb(filteredValue); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).tyd = function (password) { this.zya_1 = false; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kya_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onPasswordChanged.' call var nextValue = prevValue.qyb(VOID, password); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).uyd = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kya_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.cyb_1; var tmp0_username = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); // Inline function 'kotlin.text.trim' call var this_2 = prevValue.dyb_1; var tmp1_password = toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())); var nextValue = prevValue.qyb(tmp0_username, tmp1_password, false, null, null); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var username = this.kya_1.t2().cyb_1; var password = this.kya_1.t2().dyb_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.uya_1.gp9(username); if (!validationResult.equals(Companion_getInstance_74().fpo_1)) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.kya_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call var tmp0_safe_receiver = validationResult.kpo_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).coj(tmp0_safe_receiver); } var nextValue_0 = prevValue_0.qyb(VOID, VOID, true, tmp_0); if (this_3.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } this.rqn(Companion_getInstance_97().jq6_1); var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, LoginViewModel$onClickLogin$slambda_0(this, username, password, null)); } else { this.rqn(Companion_getInstance_97().kq6_1); $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.kya_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.cyb_1; if (charSequenceLength(this_5) === 0) { tmp_2 = _get_impl__d88w17_0(this).coj(strings_getInstance().rmn_1); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4; // Inline function 'kotlin.text.isEmpty' call var this_6 = prevValue_1.dyb_1; if (charSequenceLength(this_6) === 0) { tmp_4 = _get_impl__d88w17_0(this).coj(strings_getInstance().rmn_1); } else { tmp_4 = null; } var nextValue_1 = prevValue_1.qyb(VOID, VOID, true, tmp_3, tmp_4); if (this_4.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(LoginViewModel).vyd = function (uiLanguage) { if (!uiLanguage.equals(this.kya_1.t2().lyb_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_116(); this.cqo(this_0, 'next'); Companion_getInstance_116(); this.cqo(this_0, 'learningSpaceUrl'); Companion_getInstance_116(); this.cqo(this_0, 'site'); var tmp$ret$2 = this_0.f3(); var result = tmp.yph(uiLanguage, 'Login', this.rqm_1, tmp$ret$2); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kya_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onChangeLanguage.' call var nextValue = prevValue.qyb(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, uiLanguage, VOID, result.xph_1); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(LoginViewModel).wyd = function () { var tmp = this.gqn(); 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) { 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; this.cyb_1 = username; this.dyb_1 = password; this.eyb_1 = fieldsEnabled; this.fyb_1 = usernameError; this.gyb_1 = passwordError; this.hyb_1 = versionInfo; this.iyb_1 = connectAsGuestVisible; this.jyb_1 = loginIntentMessage; this.kyb_1 = errorMessage; this.lyb_1 = currentLanguage; this.myb_1 = languageList; this.nyb_1 = showWaitForRestart; this.oyb_1 = showPoweredBy; this.pyb_1 = isPersonalAccount; } protoOf(LoginUiState).xyd = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount) { return new LoginUiState(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount); }; protoOf(LoginUiState).qyb = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, $super) { username = username === VOID ? this.cyb_1 : username; password = password === VOID ? this.dyb_1 : password; fieldsEnabled = fieldsEnabled === VOID ? this.eyb_1 : fieldsEnabled; usernameError = usernameError === VOID ? this.fyb_1 : usernameError; passwordError = passwordError === VOID ? this.gyb_1 : passwordError; versionInfo = versionInfo === VOID ? this.hyb_1 : versionInfo; connectAsGuestVisible = connectAsGuestVisible === VOID ? this.iyb_1 : connectAsGuestVisible; loginIntentMessage = loginIntentMessage === VOID ? this.jyb_1 : loginIntentMessage; errorMessage = errorMessage === VOID ? this.kyb_1 : errorMessage; currentLanguage = currentLanguage === VOID ? this.lyb_1 : currentLanguage; languageList = languageList === VOID ? this.myb_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.nyb_1 : showWaitForRestart; showPoweredBy = showPoweredBy === VOID ? this.oyb_1 : showPoweredBy; isPersonalAccount = isPersonalAccount === VOID ? this.pyb_1 : isPersonalAccount; return $super === VOID ? this.xyd(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount) : $super.xyd.call(this, username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount); }; protoOf(LoginUiState).toString = function () { return 'LoginUiState(username=' + this.cyb_1 + ', password=' + this.dyb_1 + ', fieldsEnabled=' + this.eyb_1 + ', usernameError=' + this.fyb_1 + ', passwordError=' + this.gyb_1 + ', versionInfo=' + this.hyb_1 + ', connectAsGuestVisible=' + this.iyb_1 + ', loginIntentMessage=' + this.jyb_1 + ', errorMessage=' + this.kyb_1 + ', currentLanguage=' + this.lyb_1 + ', languageList=' + this.myb_1 + ', showWaitForRestart=' + this.nyb_1 + ', showPoweredBy=' + this.oyb_1 + ', isPersonalAccount=' + this.pyb_1 + ')'; }; protoOf(LoginUiState).hashCode = function () { var result = getStringHashCode(this.cyb_1); result = imul(result, 31) + getStringHashCode(this.dyb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.eyb_1) | 0; result = imul(result, 31) + (this.fyb_1 == null ? 0 : getStringHashCode(this.fyb_1)) | 0; result = imul(result, 31) + (this.gyb_1 == null ? 0 : getStringHashCode(this.gyb_1)) | 0; result = imul(result, 31) + getStringHashCode(this.hyb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iyb_1) | 0; result = imul(result, 31) + (this.jyb_1 == null ? 0 : getStringHashCode(this.jyb_1)) | 0; result = imul(result, 31) + (this.kyb_1 == null ? 0 : getStringHashCode(this.kyb_1)) | 0; result = imul(result, 31) + this.lyb_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.myb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nyb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.oyb_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pyb_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.cyb_1 === tmp0_other_with_cast.cyb_1)) return false; if (!(this.dyb_1 === tmp0_other_with_cast.dyb_1)) return false; if (!(this.eyb_1 === tmp0_other_with_cast.eyb_1)) return false; if (!(this.fyb_1 == tmp0_other_with_cast.fyb_1)) return false; if (!(this.gyb_1 == tmp0_other_with_cast.gyb_1)) return false; if (!(this.hyb_1 === tmp0_other_with_cast.hyb_1)) return false; if (!(this.iyb_1 === tmp0_other_with_cast.iyb_1)) return false; if (!(this.jyb_1 == tmp0_other_with_cast.jyb_1)) return false; if (!(this.kyb_1 == tmp0_other_with_cast.kyb_1)) return false; if (!this.lyb_1.equals(tmp0_other_with_cast.lyb_1)) return false; if (!equals(this.myb_1, tmp0_other_with_cast.myb_1)) return false; if (!(this.nyb_1 === tmp0_other_with_cast.nyb_1)) return false; if (!(this.oyb_1 === tmp0_other_with_cast.oyb_1)) return false; if (!(this.pyb_1 === tmp0_other_with_cast.pyb_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().bmh(_this__u8e3s4.pfm_1), Companion_getInstance_6().bmh(other.pfm_1), Companion_getInstance_9().tmh()); } function Companion_172() { Companion_instance_221 = this; this.yyd_1 = 'ConversationList'; this.zyd_1 = 'ConversationListHome'; this.aye_1 = listOf(['ConversationList', 'ConversationListHome']); } var Companion_instance_221; function Companion_getInstance_189() { if (Companion_instance_221 == null) new Companion_172(); return Companion_instance_221; } function ConversationListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().z7f().vfl(toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_1), this$0.hqn()); }; } function ConversationListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.fqw(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function ConversationListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_189(); destinationName = destinationName === VOID ? 'ConversationList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ConversationListUiState(), destinationName); var tmp = this; tmp.byf_1 = ConversationListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_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.pqn().coj(get_dayStringResource(element)); result.s(element, tmp$ret$0); } var tmp1_conversations = this.byf_1; var nextValue = prevValue.hyf(tmp1_conversations, VOID, VOID, VOID, result); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tqm_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.conversationlist.ConversationListViewModel.' call var tmp0_searchState = this.tqw(); var tmp1_title = this.bqx(strings_getInstance().pni_1, strings_getInstance().mnl_1); var tmp_0 = this.pqn().coj(strings_getInstance().qni_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.cq6(tmp2_fabState, VOID, tmp1_title, true, VOID, VOID, VOID, tmp0_searchState); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ConversationListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(ConversationListViewModel).fqw = function () { Companion_getInstance_203(); var tmp = to('goToOnPersonSelected', 'MessageList'); Companion_getInstance_116(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().pqj_1); Companion_getInstance_203(); var tmp_1 = to('excludeAlreadySelectedList', this.hqn().toString()); Companion_getInstance_203(); this.rqm_1.dp6('People', mapOf([tmp, tmp_0, tmp_1, to('popUpToOnPersonSelected', 'People')])); }; protoOf(ConversationListViewModel).iyf = function (entry) { Companion_getInstance_116(); var tmp0_safe_receiver = entry.rfn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z96_1; this.rqm_1.dp6('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.umd(), Companion_getInstance_9().tmh()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.cyf_1 = conversations; this.dyf_1 = sortOptions; this.eyf_1 = showAddItem; this.fyf_1 = localDateTimeNow; this.gyf_1 = dayOfWeekStrings; } protoOf(ConversationListUiState).jyf = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) { return new ConversationListUiState(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).hyf = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings, $super) { conversations = conversations === VOID ? this.cyf_1 : conversations; sortOptions = sortOptions === VOID ? this.dyf_1 : sortOptions; showAddItem = showAddItem === VOID ? this.eyf_1 : showAddItem; localDateTimeNow = localDateTimeNow === VOID ? this.fyf_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.gyf_1 : dayOfWeekStrings; return $super === VOID ? this.jyf(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) : $super.jyf.call(this, conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).toString = function () { return 'ConversationListUiState(conversations=' + this.cyf_1 + ', sortOptions=' + this.dyf_1 + ', showAddItem=' + this.eyf_1 + ', localDateTimeNow=' + this.fyf_1 + ', dayOfWeekStrings=' + this.gyf_1 + ')'; }; protoOf(ConversationListUiState).hashCode = function () { var result = hashCode(this.cyf_1); result = imul(result, 31) + hashCode(this.dyf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.eyf_1) | 0; result = imul(result, 31) + this.fyf_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.gyf_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.cyf_1, tmp0_other_with_cast.cyf_1)) return false; if (!equals(this.dyf_1, tmp0_other_with_cast.dyf_1)) return false; if (!(this.eyf_1 === tmp0_other_with_cast.eyf_1)) return false; if (!this.fyf_1.equals(tmp0_other_with_cast.fyf_1)) return false; if (!equals(this.gyf_1, tmp0_other_with_cast.gyf_1)) return false; return true; }; function MessageListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.syf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda$slambda).vom = function (it, $completion) { var tmp = this.wom(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.vom((p1 == null ? true : p1 instanceof PersonNames) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.syf_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.tyf_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tg9_1; var tmp_0 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_safe_receiver = this.tyf_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ug9_1; var nextValue = prevValue.cq6(VOID, VOID, tmp_0 + ' ' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(MessageListViewModel$slambda$slambda$slambda).wom = function (it, completion) { var i = new MessageListViewModel$slambda$slambda$slambda(this.syf_1, completion); i.tyf_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.vom(it, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$slambda$slambda(this$0, resultContinuation) { this.cyg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(MessageListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.cyg_1.lqn().h7e().kg5(this.cyg_1.dyh_1); var tmp_1 = MessageListViewModel$slambda$slambda$slambda_0(this.cyg_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(MessageListViewModel$slambda$slambda).f79 = function (completion) { return new MessageListViewModel$slambda$slambda(this.cyg_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.d88($completion); }; l.$arity = 0; return l; } function _get_ustadAccountManager__el9prc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.eyh_1; ustadAccountManager$factory_2(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fyh_1; showSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gyh_1; dismissSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hyh_1; openExternalLinkUseCase$factory_4(); return this_0.t2(); } function Companion_173() { this.jyh_1 = 'MessageList'; } var Companion_instance_222; function Companion_getInstance_190() { return Companion_instance_222; } function sam$kotlinx_coroutines_flow_FlowCollector$0_32(function_0) { this.kyh_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_32).n1e = function (value, $completion) { return this.kyh_1(value, $completion); }; function MessageListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().z7f().ufl(this$0.hqn(), this$0.dyh_1); }; } function MessageListViewModel$slambda(this$0, resultContinuation) { this.tyh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.tyh_1.kqv_1, MessageListViewModel$slambda$slambda_0(this.tyh_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(MessageListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new MessageListViewModel$slambda(this.tyh_1, completion); i.uyh_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$onWarningDismiss$slambda(this$0, resultContinuation) { this.dyi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$onWarningDismiss$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$onWarningDismiss$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$onWarningDismiss$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; _get_dismissSocialWarningUseCase__st8mv5_0(this.dyi_1).ip1(toString_0(_get_ustadAccountManager__el9prc_0(this.dyi_1).ko9().enu_1.a97_1)); l$ret$1: do { var this_0 = this.dyi_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.lyi(VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(MessageListViewModel$onWarningDismiss$slambda).p1n = function ($this$launch, completion) { var i = new MessageListViewModel$onWarningDismiss$slambda(this.dyi_1, completion); i.eyi_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$onClickSend$slambda(this$0, resultContinuation) { this.uyi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$onClickSend$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$onClickSend$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageListViewModel$onClickSend$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.uyi_1.lqn().z7f(); var tmp0_messageSenderPersonUid = this.uyi_1.hqn(); var this_0 = this.uyi_1.kqv_1.t2().hyi_1; var tmp1_messageText = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var tmp2_messageToPersonUid = this.uyi_1.dyh_1; var tmp3_messageTimestamp = systemTimeInMillis(); suspendResult = tmp_0.wfl(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.uyi_1.kqv_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.lyi(VOID, VOID, ''); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(MessageListViewModel$onClickSend$slambda).p1n = function ($this$launch, completion) { var i = new MessageListViewModel$onClickSend$slambda(this.uyi_1, completion); i.vyi_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.o1n($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_116(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.dyh_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.eyh_1 = Instance(di, tmp$ret$0, null).u5d(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.fyh_1 = Instance(di, tmp$ret$2, null).u5d(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.gyh_1 = Instance(di, tmp$ret$4, null).u5d(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.hyh_1 = Instance(di, tmp$ret$6, null).u5d(this, openExternalLinkUseCase$factory_3()); var tmp_8 = this; tmp_8.iyh_1 = MessageListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, true, true, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kqv_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.pqn().coj(get_dayStringResource(element)); result.s(element, tmp$ret$10); } var tmp1_messages = this.iyh_1; var tmp2_activePersonUid = this.hqn(); var tmp3_showSocialWarning = _get_showSocialWarningUseCase__ft8jc6_0(this).gp9(toString_0(_get_ustadAccountManager__el9prc_0(this).ko9().enu_1.a97_1)); var nextValue_0 = prevValue_0.lyi(tmp1_messages, tmp2_activePersonUid, VOID, result, VOID, tmp3_showSocialWarning); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_9 = this.gqn(); launch(tmp_9, VOID, VOID, MessageListViewModel$slambda_0(this, null)); } protoOf(MessageListViewModel).wtq = function () { var tmp = this.gqn(); launch(tmp, VOID, VOID, MessageListViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(MessageListViewModel).eqw = function (searchText) { // Inline function 'kotlin.TODO' call var reason = 'Not yet implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; protoOf(MessageListViewModel).fqw = function () { }; protoOf(MessageListViewModel).wyi = function (text) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.onChangeNewMessageText.' call var nextValue = prevValue.lyi(VOID, VOID, text); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(MessageListViewModel).qsm = function () { var tmp = this.gqn(); 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.umd(), Companion_getInstance_9().tmh()) : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? true : showSocialWarning; this.fyi_1 = messages; this.gyi_1 = activePersonUid; this.hyi_1 = newMessageText; this.iyi_1 = dayOfWeekStrings; this.jyi_1 = localDateTimeNow; this.kyi_1 = showSocialWarning; } protoOf(MessageListUiState).xyi = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) { return new MessageListUiState(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).lyi = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning, $super) { messages = messages === VOID ? this.fyi_1 : messages; activePersonUid = activePersonUid === VOID ? this.gyi_1 : activePersonUid; newMessageText = newMessageText === VOID ? this.hyi_1 : newMessageText; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.iyi_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.jyi_1 : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? this.kyi_1 : showSocialWarning; return $super === VOID ? this.xyi(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) : $super.xyi.call(this, messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).toString = function () { return 'MessageListUiState(messages=' + this.fyi_1 + ', activePersonUid=' + this.gyi_1.toString() + ', newMessageText=' + this.hyi_1 + ', dayOfWeekStrings=' + this.iyi_1 + ', localDateTimeNow=' + this.jyi_1 + ', showSocialWarning=' + this.kyi_1 + ')'; }; protoOf(MessageListUiState).hashCode = function () { var result = hashCode(this.fyi_1); result = imul(result, 31) + this.gyi_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.hyi_1) | 0; result = imul(result, 31) + hashCode(this.iyi_1) | 0; result = imul(result, 31) + this.jyi_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.kyi_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.fyi_1, tmp0_other_with_cast.fyi_1)) return false; if (!this.gyi_1.equals(tmp0_other_with_cast.gyi_1)) return false; if (!(this.hyi_1 === tmp0_other_with_cast.hyi_1)) return false; if (!equals(this.iyi_1, tmp0_other_with_cast.iyi_1)) return false; if (!this.jyi_1.equals(tmp0_other_with_cast.jyi_1)) return false; if (!(this.kyi_1 === tmp0_other_with_cast.kyi_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.yyi_1 = title; this.zyi_1 = langCode; } protoOf(TitleAndLangCode).toString = function () { return 'TitleAndLangCode(title=' + this.yyi_1 + ', langCode=' + this.zyi_1 + ')'; }; protoOf(TitleAndLangCode).hashCode = function () { var result = getStringHashCode(this.yyi_1); result = imul(result, 31) + getStringHashCode(this.zyi_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.yyi_1 === tmp0_other_with_cast.yyi_1)) return false; if (!(this.zyi_1 === tmp0_other_with_cast.zyi_1)) return false; return true; }; function _get_statementRecorder__l4o9jw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iy9_1; statementRecorder$factory(); return this_0.t2(); } function AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda$lambda(this$0) { return function () { var titleAndLangCodeVal = this$0.ey8(); var tmp = this$0.hy9_1.sjz_1; var tmp_0; if (!(titleAndLangCodeVal == null)) { tmp_0 = mapOf_0(to(titleAndLangCodeVal.zyi_1, titleAndLangCodeVal.yyi_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.hqo(this$0.gy9_1); var tmp_0 = this$0.gqn(); return this$0.fy9_1.dq3(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)).z58(); // 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.fy9_1 = tmp_0.x58(tmp$ret$0, null); var tmp_2 = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.gy9_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.hy9_1 = this.hqo(this.gy9_1); var tmp_3 = this; tmp_3.iy9_1 = lazy_0(AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda(this)); } protoOf(AbstractNonInteractiveContentViewModel).wq2 = function (oneCompletionStatementOnly) { _get_statementRecorder__l4o9jw(this).wq2(oneCompletionStatementOnly); }; protoOf(AbstractNonInteractiveContentViewModel).jy9 = function (oneCompletionStatementOnly, $super) { oneCompletionStatementOnly = oneCompletionStatementOnly === VOID ? false : oneCompletionStatementOnly; var tmp; if ($super === VOID) { this.wq2(oneCompletionStatementOnly); tmp = Unit_instance; } else { tmp = $super.wq2.call(this, oneCompletionStatementOnly); } return tmp; }; protoOf(AbstractNonInteractiveContentViewModel).vq2 = function (progress) { _get_statementRecorder__l4o9jw(this).vq2(progress); }; protoOf(AbstractNonInteractiveContentViewModel).iq2 = function (active) { _get_statementRecorder__l4o9jw(this).iq2(active); }; protoOf(AbstractNonInteractiveContentViewModel).qm7 = function () { _get_statementRecorder__l4o9jw(this).qm7(); protoOf(UstadViewModel).qm7.call(this); }; protoOf(AbstractNonInteractiveContentViewModel).yq2 = function () { _get_statementRecorder__l4o9jw(this).yq2(); }; 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.iyj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).kyj = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).he = function (p1, $completion) { return this.kyj(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.jyj_1.r7f().pgt(this.iyj_1.xqs_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.xgu_1; var tmp_2; if (tmp0_safe_receiver_0 == null) { tmp_2 = null; } else { tmp_2 = !(!tmp0_safe_receiver_0.yg8_1.equals(new Long(0, 0)) ? !tmp0_safe_receiver_0.yg8_1.equals(this.iyj_1.hqn()) : 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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).ony = function (db, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda(this.iyj_1, completion); i.jyj_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.kyj(db, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).tyj = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).g79 = function ($completion) { return this.tyj($completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).f79 = 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.tyj($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.ryk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel....' call var nextValue = prevValue.zyk(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_getLocaleForSiteTermsUseCase__hxw5id($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tyk_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.ryk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.updateStatus.' call var tmp1_safe_receiver = prevValue.uyk_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.uyk_1.xgu_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.lks(tmp_0); } var nextValue = prevValue.zyk(tmp); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newState = tmp$ret$1; var tmp0_safe_receiver_0 = newState.uyk_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.xgu_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.gqn(); launch(tmp_1, VOID, VOID, ParentalConsentManagementViewModel$updateStatus$slambda_0($this, tmp1_safe_receiver_0, null)); } $this.nqn().rq6(new Snack($this.pqn().coj(strings_getInstance().vnf_1))); } function Companion_174() { this.ayl_1 = 'ParentalConsentManagement'; } var Companion_instance_223; function Companion_getInstance_191() { return Companion_instance_223; } function ParentalConsentManagementViewModel$lambda$slambda(this$0, resultContinuation) { this.jyl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_46.h4s(); var tmp_1 = ParentalConsentManagementViewModel$lambda$slambda$slambda_0(this.jyl_1, null); var tmp_2 = ParentalConsentManagementViewModel$lambda$slambda$slambda_2(null); suspendResult = this.jyl_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, ParentalConsentManagementViewModel$lambda$slambda$lambda(this.jyl_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.jyl_1.ryk_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zyk(VOID, VOID, VOID, !(prevValue.uyk_1 == null)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda).p1n = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda(this.jyl_1, completion); i.kyl_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda_1(this$0, resultContinuation) { this.tyl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.vyl_1 = this.tyl_1.lqn().q7f(); this.hd_1 = 1; suspendResult = _get_getLocaleForSiteTermsUseCase__hxw5id(this.tyl_1).cpm(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wyl_1 = suspendResult; this.hd_1 = 2; suspendResult = this.vyl_1.hhs(this.wyl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var terms = suspendResult; l$ret$1: do { var this_0 = this.tyl_1.ryk_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zyk(VOID, VOID, terms); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).p1n = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda_1(this.tyl_1, completion); i.uyl_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.o1n($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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel..' call var nextValue = prevValue.cq6(VOID, VOID, this$0.pqn().coj(strings_getInstance().mnb_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.gqn(); launch(tmp, VOID, VOID, ParentalConsentManagementViewModel$lambda$slambda_0(this$0, null)); var tmp_0 = this$0.gqn(); 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.eg9_1 = $status; $this$shallowCopy.yg8_1 = this$0.hqn(); $this$shallowCopy.fg9_1 = systemTimeInMillis(); return Unit_instance; }; } function ParentalConsentManagementViewModel$updateStatus$slambda(this$0, $personParentJoin, resultContinuation) { this.fym_1 = this$0; this.gym_1 = $personParentJoin; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.fym_1.lqn().r7f().qgt(this.gym_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).p1n = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$updateStatus$slambda(this.fym_1, this.gym_1, completion); i.hym_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ParentalConsentManagement'); this.ryk_1 = MutableStateFlow(new ParentalConsentManagementUiState()); this.syk_1 = asStateFlow(this.ryk_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.fqn().boa(); var trigger = this.x57(); // 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.b58(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.tyk_1 = Instance(this_0, tmp$ret$3, null).u5d(this, getLocaleForSiteTermsUseCase$factory()); Companion_getInstance_125(); var tmp_3 = mapOf_0(to('entityUid', this.xqs_1.toString())); this.eqo(true, tmp_3, ParentalConsentManagementViewModel$lambda(this)); } protoOf(ParentalConsentManagementViewModel).iym = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ryk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.uyk_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lks(personParentJoin); var tmp1_safe_receiver = prevValue.uyk_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xgu_1; var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ag9_1; var nextValue = prevValue.zyk(tmp, this.aqu(tmp_0, personParentJoin == null ? null : personParentJoin.ag9_1, prevValue.vyk_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ParentalConsentManagementViewModel).jym = function () { var tmp0_safe_receiver = this.ryk_1.t2().uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ag9_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.ryk_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onClickConsent.' call var nextValue = prevValue.zyk(VOID, this.pqn().coj(strings_getInstance().rmn_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } updateStatus(this, 1); }; protoOf(ParentalConsentManagementViewModel).kym = function () { updateStatus(this, 2); }; protoOf(ParentalConsentManagementViewModel).lym = function () { var tmp0_safe_receiver = this.ryk_1.t2().uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.eg9_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.uyk_1 = parentJoinAndMinor; this.vyk_1 = relationshipError; this.wyk_1 = siteTerms; this.xyk_1 = fieldsEnabled; this.yyk_1 = appName; } protoOf(ParentalConsentManagementUiState).mym = function () { var tmp0_safe_receiver = this.uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yg8_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).nym = function () { var tmp0_safe_receiver = this.uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yg8_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).oym = function () { var tmp0_safe_receiver = this.uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yg8_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).pym = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_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.yg8_1; return !(it == null) ? !equals(it, new Long(0, 0)) : false; }; protoOf(ParentalConsentManagementUiState).qym = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_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.eg9_1; return !(it == null) ? !(it === 0) : false; }; protoOf(ParentalConsentManagementUiState).rym = function () { var tmp0_safe_receiver = this.uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.eg9_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().jnb_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().knb_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).sym = function () { var tmp0_safe_receiver = this.uyk_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xgu_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.eg9_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().hnb_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().inb_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).tym = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) { return new ParentalConsentManagementUiState(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).zyk = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName, $super) { parentJoinAndMinor = parentJoinAndMinor === VOID ? this.uyk_1 : parentJoinAndMinor; relationshipError = relationshipError === VOID ? this.vyk_1 : relationshipError; siteTerms = siteTerms === VOID ? this.wyk_1 : siteTerms; fieldsEnabled = fieldsEnabled === VOID ? this.xyk_1 : fieldsEnabled; appName = appName === VOID ? this.yyk_1 : appName; return $super === VOID ? this.tym(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) : $super.tym.call(this, parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).toString = function () { return 'ParentalConsentManagementUiState(parentJoinAndMinor=' + this.uyk_1 + ', relationshipError=' + this.vyk_1 + ', siteTerms=' + this.wyk_1 + ', fieldsEnabled=' + this.xyk_1 + ', appName=' + this.yyk_1 + ')'; }; protoOf(ParentalConsentManagementUiState).hashCode = function () { var result = this.uyk_1 == null ? 0 : this.uyk_1.hashCode(); result = imul(result, 31) + (this.vyk_1 == null ? 0 : getStringHashCode(this.vyk_1)) | 0; result = imul(result, 31) + (this.wyk_1 == null ? 0 : hashCode(this.wyk_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xyk_1) | 0; result = imul(result, 31) + getStringHashCode(this.yyk_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.uyk_1, tmp0_other_with_cast.uyk_1)) return false; if (!(this.vyk_1 == tmp0_other_with_cast.vyk_1)) return false; if (!equals(this.wyk_1, tmp0_other_with_cast.wyk_1)) return false; if (!(this.xyk_1 === tmp0_other_with_cast.xyk_1)) return false; if (!(this.yyk_1 === tmp0_other_with_cast.yyk_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.wyn_1; httpClient$factory_10(); return this_0.t2(); } function Companion_175() { this.xyn_1 = 'PdfContent'; } var Companion_instance_224; function Companion_getInstance_192() { return Companion_instance_224; } function PdfContentViewModel$slambda(this$0, resultContinuation) { this.gyo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PdfContentViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PdfContentViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PdfContentViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.hd_1 = 1; suspendResult = this.gyo_1.lqn().c7g().zbq(this.gyo_1.tyn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.iyo_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.iyo_1 == null) { return Unit_instance; } else { tmp_1 = this.iyo_1; } tmp_0.jyo_1 = tmp_1; this.kyo_1 = ensureNotNull(this.jyo_1.jay_1); var tmp_2 = this; tmp_2.lyo_1 = this.gyo_1.g4s(); var tmp_3 = this; tmp_3.myo_1 = _get_httpClient__2ty1zc_4(this.gyo_1); var tmp_4 = this; tmp_4.nyo_1 = this.kyo_1; var tmp_5 = this; tmp_5.oyo_1 = this.myo_1; var tmp_6 = this; tmp_6.pyo_1 = this.oyo_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.nyo_1); tmp_7.qyo_1 = this_0; this.qyo_1.q39_1 = Companion_getInstance().f2y_1; var tmp_8 = this; tmp_8.ryo_1 = this.pyo_1; var tmp_9 = this; tmp_9.syo_1 = this.qyo_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.syo_1, this.ryo_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.tyo_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.tyo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.uyo_1 = suspendResult; var tmp_10 = this; var this_1 = this.lyo_1.n46(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_10.vyo_1 = this.lyo_1.m46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.uyo_1); var tmp_11 = this; var tmp1_elvis_lhs = this.jyo_1.hay_1; var tmp_12; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_12 = tmp1_elvis_lhs; } tmp_11.wyo_1 = tmp_12; this.xyo_1 = UrlKmp(this.kyo_1).zp1(this.wyo_1).toString(); this.yyo_1 = bodyDataUrlForUri(this.vyo_1, this.wyo_1); l$ret$1: do { var this_3 = this.gyo_1.uyn_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.cyp(this.xyo_1, this.yyo_1); if (this_3.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; suspendResult = this.gyo_1.lqn().p7e().lav(this.jyo_1.gay_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var contentEntry = suspendResult; l$ret$3: do { var this_4 = this.gyo_1.tqm_1; while (true) { var prevValue_0 = this_4.t2(); var tmp1_elvis_lhs_0 = contentEntry == null ? null : contentEntry.iaw_1; var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp1_elvis_lhs_0 == null ? '' : tmp1_elvis_lhs_0); if (this_4.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PdfContentViewModel$slambda).p1n = function ($this$launch, completion) { var i = new PdfContentViewModel$slambda(this.gyo_1, completion); i.hyo_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PdfContentViewModel(di, savedStateHandle) { AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'PdfContent'); var tmp = this; Companion_getInstance_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.tyn_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.uyn_1 = MutableStateFlow(new PdfContentUiState()); this.vyn_1 = asStateFlow(this.uyn_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.wyn_1 = Instance(di, tmp$ret$0, null).u5d(this, httpClient$factory_9()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.pdfcontent.PdfContentViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, PdfContentViewModel$slambda_0(this, null)); } protoOf(PdfContentViewModel).ey8 = function () { var tmp0_safe_receiver = this.uyn_1.t2().byp_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.iaw_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.zyo_1 = pdfUrl; this.ayp_1 = dataUrl; this.byp_1 = contentEntry; } protoOf(PdfContentUiState).dyp = function (pdfUrl, dataUrl, contentEntry) { return new PdfContentUiState(pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).cyp = function (pdfUrl, dataUrl, contentEntry, $super) { pdfUrl = pdfUrl === VOID ? this.zyo_1 : pdfUrl; dataUrl = dataUrl === VOID ? this.ayp_1 : dataUrl; contentEntry = contentEntry === VOID ? this.byp_1 : contentEntry; return $super === VOID ? this.dyp(pdfUrl, dataUrl, contentEntry) : $super.dyp.call(this, pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).toString = function () { return 'PdfContentUiState(pdfUrl=' + this.zyo_1 + ', dataUrl=' + this.ayp_1 + ', contentEntry=' + this.byp_1 + ')'; }; protoOf(PdfContentUiState).hashCode = function () { var result = this.zyo_1 == null ? 0 : getStringHashCode(this.zyo_1); result = imul(result, 31) + (this.ayp_1 == null ? 0 : getStringHashCode(this.ayp_1)) | 0; result = imul(result, 31) + (this.byp_1 == null ? 0 : this.byp_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.zyo_1 == tmp0_other_with_cast.zyo_1)) return false; if (!(this.ayp_1 == tmp0_other_with_cast.ayp_1)) return false; if (!equals(this.byp_1, tmp0_other_with_cast.byp_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.eyp_1 = 'goToOnPersonSelected'; this.fyp_1 = 'popUpToOnPersonSelected'; } var PersonViewModelConstants_instance; function PersonViewModelConstants_getInstance() { return PersonViewModelConstants_instance; } function PersonAccountEditViewModel$slambda$slambda(this$0, resultContinuation) { this.oyp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda).ryp = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.ryp(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.pyp_1.h7e().gg5(this.oyp_1.xqs_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qyp_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.pyp_1.j7g(); var tmp_1 = this.oyp_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ri0(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.qyp_1 == null) { tmp_2 = null; } else { var tmp_3 = this.qyp_1.a97_1 == null ? 1 : hasResetPermission ? 2 : 3; var tmp_4 = this.qyp_1.z96_1; var tmp0_elvis_lhs = this.qyp_1.a97_1; tmp_2 = new PersonUsernameAndPasswordModel(tmp_3, tmp_4, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs, '', ''); } return tmp_2; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new PersonAccountEditViewModel$slambda$slambda(this.oyp_1, completion); i.pyp_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.ryp(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda_1).ayq = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.ayq($completion); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).f79 = 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.ayq($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.yyq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel...' call var nextValue = prevValue.kyr(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonAccountEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonAccountEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.tyr_1 = this$0; this.uyr_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = _get_authManager__mo6de4(this.tyr_1).jnt(this.tyr_1.xqs_1, this.uyr_1.ays_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.tyr_1.lqn().h7e().mg5(this.tyr_1.xqs_1, this.uyr_1.yyr_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var numChanges = suspendResult; Napier_getInstance().k5f('Updated username: ' + numChanges + ' changes'); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda$slambda(this.tyr_1, this.uyr_1, completion); i.vyr_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.nny(it, $completion); }; l.$arity = 1; return l; } function _get_authManager__mo6de4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ayr_1; authManager$factory_0(); return this_0.t2(); } function _get_setPasswordUseCase__c0ja9b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.byr_1; setPasswordUseCase$factory_0(); return this_0.t2(); } function Companion_176() { this.bys_1 = 'AccountEdit'; this.cys_1 = 1; this.dys_1 = 2; this.eys_1 = 3; } var Companion_instance_225; function Companion_getInstance_193() { return Companion_instance_225; } function PersonAccountEditViewModel$slambda(this$0, resultContinuation) { this.nys_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (this.nys_1.xqs_1.equals(this.nys_1.hqn())) { var tmp_0 = this; tmp_0.pys_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.oys_1.j7g(); var tmp_2 = this.nys_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_1.ri0(tmp_2, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.pys_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.pys_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$slambda).ony = function (db, completion) { var i = new PersonAccountEditViewModel$slambda(this.nys_1, completion); i.oys_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.as8(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda_1(this$0, resultContinuation) { this.yys_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_226.h4s(); var tmp_1 = PersonAccountEditViewModel$slambda$slambda_0(this.yys_1, null); var tmp_2 = PersonAccountEditViewModel$slambda$slambda_2(null); suspendResult = this.yys_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonAccountEditViewModel$slambda$lambda(this.yys_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.yys_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.yys_1.pqn().coj(strings_getInstance().dn3_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, PersonAccountEditViewModel$onClickSave$ref(this.yys_1)); var tmp1_loadingState = Companion_getInstance_97().kq6_1; var nextValue = prevValue.cq6(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.yys_1.yyq_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.kyr(VOID, VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new PersonAccountEditViewModel$slambda_1(this.yys_1, completion); i.zys_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.iyt_1 = $commitDelay; this.jyt_1 = $entity; this.kyt_1 = $this; this.lyt_1 = $key; this.myt_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.iyt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.jyt_1 == null)) { this.hd_1 = 2; suspendResult = this.kyt_1.vqn(this.kyt_1.pqm_1, this.lyt_1, this.myt_1, this.jyt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new PersonAccountEditViewModel$onEntityChanged$slambda(this.iyt_1, this.jyt_1, this.kyt_1, this.lyt_1, this.myt_1, completion); i.nyt_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$onClickSave$slambda($entity, this$0, resultContinuation) { this.wyt_1 = $entity; this.xyt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 14; if (this.wyt_1.wyr_1 === 1) { var validationResult = this.xyt_1.cyr_1.gp9(this.wyt_1.yyr_1); this.xyt_1.rqn(Companion_getInstance_97().kq6_1); if (!validationResult.equals(Companion_getInstance_74().fpo_1)) { l$ret$1: do { var this_0 = this.xyt_1.yyq_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = validationResult.kpo_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = this.xyt_1.pqn().coj(tmp0_safe_receiver); } var tmp1_usernameError = tmp_0; var nextValue = prevValue.kyr(VOID, tmp1_usernameError, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } } if (isBlank(this.wyt_1.ays_1)) { l$ret$3: do { var this_1 = this.xyt_1.yyq_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.kyr(VOID, VOID, VOID, this.xyt_1.pqn().coj(strings_getInstance().rmn_1)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.wyt_1.wyr_1 === 3 ? isBlank(this.wyt_1.zyr_1) : false) if (this.xyt_1.yyq_1.t2().fu0()) { this.xyt_1.rqn(Companion_getInstance_97().kq6_1); l$ret$5: do { var this_2 = this.xyt_1.yyq_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.kyr(VOID, VOID, VOID, VOID, VOID, true); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); return Unit_instance; } if (this.wyt_1.wyr_1 === 1) { this.hd_1 = 6; continue $sm; } else { this.hd_1 = 1; continue $sm; } case 1: this.id_1 = 4; this.id_1 = 3; this.hd_1 = 2; suspendResult = _get_setPasswordUseCase__c0ja9b(this.xyt_1).boi(this.xyt_1.hqn(), this.wyt_1.xyr_1, this.wyt_1.yyr_1, this.wyt_1.ays_1, this.wyt_1.wyr_1 === 3 ? this.wyt_1.zyr_1 : null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.xyt_1.nqn().rq6(new Snack(this.xyt_1.pqn().coj(strings_getInstance().jnm_1))); var tmp_1 = this; this.xyt_1.aqt(null); tmp_1.ayu_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 5; continue $sm; case 3: this.id_1 = 4; var tmp_2 = this.kd_1; if (tmp_2 instanceof Exception) { this.byu_1 = this.kd_1; var tmp_3 = this; var tmp_4; var tmp_5 = this.byu_1; if (tmp_5 instanceof UnauthorizedException) { l$ret$19: do { var this_3 = this.xyt_1.yyq_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.kyr(VOID, VOID, this.xyt_1.pqn().coj(strings_getInstance().vmi_1)); if (this_3.s1l(prevValue_2, nextValue_2)) { break l$ret$19; } } } while (false); tmp_4 = Unit_instance; } else { l$ret$21: do { var this_4 = this.xyt_1.yyq_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.kyr(VOID, VOID, VOID, VOID, this.byu_1.message); if (this_4.s1l(prevValue_3, nextValue_3)) { break l$ret$21; } } } while (false); tmp_4 = Unit_instance; } tmp_3.ayu_1 = tmp_4; this.id_1 = 14; this.hd_1 = 5; continue $sm; } else { throw this.kd_1; } case 4: this.id_1 = 14; this.cyu_1 = this.kd_1; this.xyt_1.rqn(Companion_getInstance_97().kq6_1); l$ret$23: do { var this_5 = this.xyt_1.yyq_1; while (true) { var prevValue_4 = this_5.t2(); var nextValue_4 = prevValue_4.kyr(VOID, VOID, VOID, VOID, VOID, true); if (this_5.s1l(prevValue_4, nextValue_4)) { break l$ret$23; } } } while (false); throw this.cyu_1; case 5: this.id_1 = 14; this.xyt_1.rqn(Companion_getInstance_97().kq6_1); l$ret$25: do { var this_6 = this.xyt_1.yyq_1; while (true) { var prevValue_5 = this_6.t2(); var nextValue_5 = prevValue_5.kyr(VOID, VOID, VOID, VOID, VOID, true); if (this_6.s1l(prevValue_5, nextValue_5)) { break l$ret$25; } } } while (false); this.hd_1 = 13; continue $sm; case 6: this.id_1 = 11; this.id_1 = 10; this.hd_1 = 7; suspendResult = this.xyt_1.lqn().h7e().eg5(this.wyt_1.yyr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.dyu_1 = suspendResult; if (this.dyu_1 === 0) { this.hd_1 = 8; var tmp_6 = this.xyt_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_6, VOID, PersonAccountEditViewModel$onClickSave$slambda$slambda_0(this.xyt_1, this.wyt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$7: do { var this_7 = this.xyt_1.yyq_1; while (true) { var prevValue_6 = this_7.t2(); var nextValue_6 = prevValue_6.kyr(VOID, this.xyt_1.pqn().coj(strings_getInstance().un7_1)); if (this_7.s1l(prevValue_6, nextValue_6)) { break l$ret$7; } } } while (false); this.hd_1 = 9; continue $sm; } case 8: this.xyt_1.aqt(null); this.hd_1 = 9; continue $sm; case 9: this.zyt_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 12; continue $sm; case 10: this.id_1 = 11; var tmp_7 = this.kd_1; if (tmp_7 instanceof Exception) { var e = this.kd_1; var tmp_8 = this; l$ret$11: do { var this_8 = this.xyt_1.yyq_1; while (true) { var prevValue_7 = this_8.t2(); var nextValue_7 = prevValue_7.kyr(VOID, this.xyt_1.pqn().coj(strings_getInstance().wmi_1)); if (this_8.s1l(prevValue_7, nextValue_7)) { break l$ret$11; } } } while (false); tmp_8.zyt_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 12; continue $sm; } else { throw this.kd_1; } case 11: this.id_1 = 14; var t = this.kd_1; this.xyt_1.rqn(Companion_getInstance_97().kq6_1); l$ret$13: do { var this_9 = this.xyt_1.yyq_1; while (true) { var prevValue_8 = this_9.t2(); var nextValue_8 = prevValue_8.kyr(VOID, VOID, VOID, VOID, VOID, true); if (this_9.s1l(prevValue_8, nextValue_8)) { break l$ret$13; } } } while (false); throw t; case 12: this.id_1 = 14; this.xyt_1.rqn(Companion_getInstance_97().kq6_1); l$ret$15: do { var this_10 = this.xyt_1.yyq_1; while (true) { var prevValue_9 = this_10.t2(); var nextValue_9 = prevValue_9.kyr(VOID, VOID, VOID, VOID, VOID, true); if (this_10.s1l(prevValue_9, nextValue_9)) { break l$ret$15; } } } while (false); this.hd_1 = 13; continue $sm; case 13: return Unit_instance; case 14: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 14) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(PersonAccountEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda(this.wyt_1, this.xyt_1, completion); i.yyt_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'AccountEdit'); this.yyq_1 = MutableStateFlow(new PersonAccountEditUiState()); this.zyq_1 = asStateFlow(this.yyq_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.fqn().boa(); var trigger = this.x57(); // 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.b58(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.ayr_1 = Instance(this_0, tmp$ret$3, null).u5d(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.fqn().boa(); var trigger_0 = this.x57(); // 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.b58(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.byr_1 = Instance(this_1, tmp$ret$8, null).u5d(this, setPasswordUseCase$factory()); this.cyr_1 = new ValidateUsernameUseCase_0(); this.dyr_1 = new FilterUsernameUseCase(); this.tqm_1.r1l(new AppUiState(VOID, Companion_getInstance_97().jq6_1)); var tmp_7 = PersonAccountEditViewModel$slambda_0(this, null); this.bqo(tmp_7, VOID, VOID, PersonAccountEditViewModel$slambda_2(this, null)); } protoOf(PersonAccountEditViewModel).eyu = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yyq_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.yyr_1; var tmp1_safe_receiver = this.yyq_1.t2().eyr_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.yyr_1))) { tmp = entity == null ? null : entity.fyu(VOID, VOID, this.dyr_1.fpe(entity.yyr_1, '')); } else { tmp = entity; } var tmp_1 = tmp; var tmp_2; var tmp_3; if (!(prevValue.fyr_1 == null)) { var tmp3_safe_receiver = prevValue.eyr_1; var tmp_4 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.yyr_1; tmp_3 = tmp_4 == (entity == null ? null : entity.yyr_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.fyr_1; } else { tmp_2 = null; } var tmp_5 = tmp_2; var tmp_6; var tmp_7; if (!(prevValue.gyr_1 == null)) { var tmp5_safe_receiver = prevValue.eyr_1; var tmp_8 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.zyr_1; tmp_7 = tmp_8 == (entity == null ? null : entity.zyr_1); } else { tmp_7 = false; } if (tmp_7) { tmp_6 = prevValue.gyr_1; } else { tmp_6 = null; } var tmp_9 = tmp_6; var tmp_10; var tmp_11; if (!(prevValue.hyr_1 == null)) { var tmp7_safe_receiver = prevValue.eyr_1; var tmp_12 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.ays_1; tmp_11 = tmp_12 == (entity == null ? null : entity.ays_1); } else { tmp_11 = false; } if (tmp_11) { tmp_10 = prevValue.hyr_1; } else { tmp_10 = null; } var nextValue = prevValue.kyr(tmp_1, tmp_5, tmp_9, tmp_10); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_226.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp_13 = this; var tmp_14 = this.gqn(); tmp_13.wqs_1 = launch(tmp_14, VOID, VOID, PersonAccountEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonAccountEditViewModel).os5 = function () { if (this.sqn().equals(Companion_getInstance_97().jq6_1)) return Unit_instance; var tmp0_elvis_lhs = this.yyq_1.t2().eyr_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; this.rqn(Companion_getInstance_97().jq6_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.yyq_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onClickSave.' call var nextValue = prevValue.kyr(VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.gqn(); 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.eyr_1 = personAccount; this.fyr_1 = usernameError; this.gyr_1 = currentPasswordError; this.hyr_1 = newPasswordError; this.iyr_1 = errorMessage; this.jyr_1 = fieldsEnabled; } protoOf(PersonAccountEditUiState).gyu = function () { var tmp0_safe_receiver = this.eyr_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wyr_1) === 1; }; protoOf(PersonAccountEditUiState).hyu = function () { var tmp0_safe_receiver = this.eyr_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wyr_1) === 3; }; protoOf(PersonAccountEditUiState).fu0 = function () { return (!(this.fyr_1 == null) ? true : !(this.gyr_1 == null)) ? true : !(this.hyr_1 == null); }; protoOf(PersonAccountEditUiState).iyu = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) { return new PersonAccountEditUiState(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).kyr = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled, $super) { personAccount = personAccount === VOID ? this.eyr_1 : personAccount; usernameError = usernameError === VOID ? this.fyr_1 : usernameError; currentPasswordError = currentPasswordError === VOID ? this.gyr_1 : currentPasswordError; newPasswordError = newPasswordError === VOID ? this.hyr_1 : newPasswordError; errorMessage = errorMessage === VOID ? this.iyr_1 : errorMessage; fieldsEnabled = fieldsEnabled === VOID ? this.jyr_1 : fieldsEnabled; return $super === VOID ? this.iyu(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) : $super.iyu.call(this, personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).toString = function () { return 'PersonAccountEditUiState(personAccount=' + this.eyr_1 + ', usernameError=' + this.fyr_1 + ', currentPasswordError=' + this.gyr_1 + ', newPasswordError=' + this.hyr_1 + ', errorMessage=' + this.iyr_1 + ', fieldsEnabled=' + this.jyr_1 + ')'; }; protoOf(PersonAccountEditUiState).hashCode = function () { var result = this.eyr_1 == null ? 0 : this.eyr_1.hashCode(); result = imul(result, 31) + (this.fyr_1 == null ? 0 : getStringHashCode(this.fyr_1)) | 0; result = imul(result, 31) + (this.gyr_1 == null ? 0 : getStringHashCode(this.gyr_1)) | 0; result = imul(result, 31) + (this.hyr_1 == null ? 0 : getStringHashCode(this.hyr_1)) | 0; result = imul(result, 31) + (this.iyr_1 == null ? 0 : getStringHashCode(this.iyr_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.jyr_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.eyr_1, tmp0_other_with_cast.eyr_1)) return false; if (!(this.fyr_1 == tmp0_other_with_cast.fyr_1)) return false; if (!(this.gyr_1 == tmp0_other_with_cast.gyr_1)) return false; if (!(this.hyr_1 == tmp0_other_with_cast.hyr_1)) return false; if (!(this.iyr_1 == tmp0_other_with_cast.iyr_1)) return false; if (!(this.jyr_1 === tmp0_other_with_cast.jyr_1)) return false; return true; }; function Companion_177() { } protoOf(Companion_177).h4s = function () { return $serializer_getInstance_75(); }; var Companion_instance_226; function Companion_getInstance_194() { return Companion_instance_226; } function $serializer_63() { $serializer_instance_63 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.accountedit.PersonUsernameAndPasswordModel', this, 5); tmp0_serialDesc.n4g('mode', true); tmp0_serialDesc.n4g('personUid', true); tmp0_serialDesc.n4g('username', true); tmp0_serialDesc.n4g('currentPassword', true); tmp0_serialDesc.n4g('newPassword', true); this.jyu_1 = tmp0_serialDesc; } protoOf($serializer_63).k45 = function () { return this.jyu_1; }; protoOf($serializer_63).e4h = 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_63).m45 = function (decoder) { var tmp0_desc = this.jyu_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.c49(tmp0_desc); if (tmp9_input.r49()) { tmp4_local0 = tmp9_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.m49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.h49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.i49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.m49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.m49(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.m49(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.d49(tmp0_desc); return PersonUsernameAndPasswordModel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_63).kyu = function (encoder, value) { var tmp0_desc = this.jyu_1; var tmp1_output = encoder.c49(tmp0_desc); if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.wyr_1 === 1)) { tmp1_output.l4a(tmp0_desc, 0, value.wyr_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !value.xyr_1.equals(new Long(0, 0))) { tmp1_output.m4a(tmp0_desc, 1, value.xyr_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.yyr_1 === '')) { tmp1_output.q4a(tmp0_desc, 2, value.yyr_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !(value.zyr_1 === '')) { tmp1_output.q4a(tmp0_desc, 3, value.zyr_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.ays_1 === '')) { tmp1_output.q4a(tmp0_desc, 4, value.ays_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_63).l45 = function (encoder, value) { return this.kyu(encoder, value instanceof PersonUsernameAndPasswordModel ? value : THROW_CCE()); }; var $serializer_instance_63; function $serializer_getInstance_75() { if ($serializer_instance_63 == null) new $serializer_63(); return $serializer_instance_63; } function PersonUsernameAndPasswordModel_init_$Init$(seen1, mode, personUid, username, currentPassword, newPassword, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_75().jyu_1); } if (0 === (seen1 & 1)) $this.wyr_1 = 1; else $this.wyr_1 = mode; if (0 === (seen1 & 2)) $this.xyr_1 = new Long(0, 0); else $this.xyr_1 = personUid; if (0 === (seen1 & 4)) $this.yyr_1 = ''; else $this.yyr_1 = username; if (0 === (seen1 & 8)) $this.zyr_1 = ''; else $this.zyr_1 = currentPassword; if (0 === (seen1 & 16)) $this.ays_1 = ''; else $this.ays_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.wyr_1 = mode; this.xyr_1 = personUid; this.yyr_1 = username; this.zyr_1 = currentPassword; this.ays_1 = newPassword; } protoOf(PersonUsernameAndPasswordModel).lyu = function (mode, personUid, username, currentPassword, newPassword) { return new PersonUsernameAndPasswordModel(mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).fyu = function (mode, personUid, username, currentPassword, newPassword, $super) { mode = mode === VOID ? this.wyr_1 : mode; personUid = personUid === VOID ? this.xyr_1 : personUid; username = username === VOID ? this.yyr_1 : username; currentPassword = currentPassword === VOID ? this.zyr_1 : currentPassword; newPassword = newPassword === VOID ? this.ays_1 : newPassword; return $super === VOID ? this.lyu(mode, personUid, username, currentPassword, newPassword) : $super.lyu.call(this, mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).toString = function () { return 'PersonUsernameAndPasswordModel(mode=' + this.wyr_1 + ', personUid=' + this.xyr_1.toString() + ', username=' + this.yyr_1 + ', currentPassword=' + this.zyr_1 + ', newPassword=' + this.ays_1 + ')'; }; protoOf(PersonUsernameAndPasswordModel).hashCode = function () { var result = this.wyr_1; result = imul(result, 31) + this.xyr_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.yyr_1) | 0; result = imul(result, 31) + getStringHashCode(this.zyr_1) | 0; result = imul(result, 31) + getStringHashCode(this.ays_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.wyr_1 === tmp0_other_with_cast.wyr_1)) return false; if (!this.xyr_1.equals(tmp0_other_with_cast.xyr_1)) return false; if (!(this.yyr_1 === tmp0_other_with_cast.yyr_1)) return false; if (!(this.zyr_1 === tmp0_other_with_cast.zyr_1)) return false; if (!(this.ays_1 === tmp0_other_with_cast.ays_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.hyv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel...' call var nextValue = prevValue.qyv(VOID, totalRecords, numImported); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_bulkAddFromUriUseCase__ahhheb($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kyv_1; bulkAddFromUriUseCase$factory_0(); return this_0.t2(); } function Companion_178() { this.ryv_1 = 'BulkAddPersonRunImport'; this.syv_1 = 'uri'; } var Companion_instance_227; function Companion_getInstance_195() { return Companion_instance_227; } function sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0(function_0) { this.tyv_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0).uyv = function (numImported, totalRecords) { return this.tyv_1(numImported, totalRecords); }; function BulkAddPersonRunImportViewModel$slambda(this$0, resultContinuation) { this.dyw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonRunImportViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonRunImportViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonRunImportViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; var tmp_0 = _get_bulkAddFromUriUseCase__ahhheb(this.dyw_1); var tmp_1 = Companion_getInstance_3().i2s(this.dyw_1.jyv_1); var tmp_2 = this.dyw_1.hqn(); var tmp_3 = BulkAddPersonRunImportViewModel$slambda$lambda(this.dyw_1); suspendResult = tmp_0.bpl(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.dyw_1.hyv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.qyv(false, VOID, result.epl_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_4 = this.kd_1; if (tmp_4 instanceof Error) { var e = this.kd_1; Napier_getInstance().k5f('Exception running import', e); l$ret$3: do { var this_1 = this.dyw_1.hyv_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.vpk_1; var nextValue_0 = prevValue_0.qyv(false, VOID, VOID, tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, e.message); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(BulkAddPersonRunImportViewModel$slambda).p1n = function ($this$launch, completion) { var i = new BulkAddPersonRunImportViewModel$slambda(this.dyw_1, completion); i.eyw_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function BulkAddPersonRunImportViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'BulkAddPersonRunImport'); this.hyv_1 = MutableStateFlow(new BulkAddPersonRunImportUiState()); this.iyv_1 = asStateFlow(this.hyv_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.jyv_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.kyv_1 = Instance(this_0, tmp$ret$0, null).u5d(this, bulkAddFromUriUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().nno_1)); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.gqn(); launch(tmp_3, VOID, VOID, BulkAddPersonRunImportViewModel$slambda_0(this, null)); } function Companion_179() { 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.fyw_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance_54()), null]; } var Companion_instance_228; function Companion_getInstance_196() { if (Companion_instance_228 == null) new Companion_179(); return Companion_instance_228; } function $serializer_64() { $serializer_instance_64 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportUiState', this, 5); tmp0_serialDesc.n4g('inProgress', true); tmp0_serialDesc.n4g('totalRecords', true); tmp0_serialDesc.n4g('numImported', true); tmp0_serialDesc.n4g('errors', true); tmp0_serialDesc.n4g('errorMessage', true); this.gyw_1 = tmp0_serialDesc; } protoOf($serializer_64).k45 = function () { return this.gyw_1; }; protoOf($serializer_64).e4h = function () { var tmp0_cached = Companion_getInstance_196().fyw_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_64).m45 = function (decoder) { var tmp0_desc = this.gyw_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.c49(tmp0_desc); var tmp10_cached = Companion_getInstance_196().fyw_1; if (tmp9_input.r49()) { tmp4_local0 = tmp9_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.h49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.o49(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.s49(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.e49(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.h49(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.h49(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.o49(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.q49(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.d49(tmp0_desc); return BulkAddPersonRunImportUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_64).hyw = function (encoder, value) { var tmp0_desc = this.gyw_1; var tmp1_output = encoder.c49(tmp0_desc); var tmp2_cached = Companion_getInstance_196().fyw_1; if (tmp1_output.y4a(tmp0_desc, 0) ? true : !(value.lyv_1 === true)) { tmp1_output.i4a(tmp0_desc, 0, value.lyv_1); } if (tmp1_output.y4a(tmp0_desc, 1) ? true : !(value.myv_1 === 0)) { tmp1_output.l4a(tmp0_desc, 1, value.myv_1); } if (tmp1_output.y4a(tmp0_desc, 2) ? true : !(value.nyv_1 === 0)) { tmp1_output.l4a(tmp0_desc, 2, value.nyv_1); } if (tmp1_output.y4a(tmp0_desc, 3) ? true : !equals(value.oyv_1, emptyList())) { tmp1_output.s4a(tmp0_desc, 3, tmp2_cached[3], value.oyv_1); } if (tmp1_output.y4a(tmp0_desc, 4) ? true : !(value.pyv_1 == null)) { tmp1_output.u4a(tmp0_desc, 4, StringSerializer_getInstance(), value.pyv_1); } tmp1_output.d49(tmp0_desc); }; protoOf($serializer_64).l45 = function (encoder, value) { return this.hyw(encoder, value instanceof BulkAddPersonRunImportUiState ? value : THROW_CCE()); }; var $serializer_instance_64; function $serializer_getInstance_76() { if ($serializer_instance_64 == null) new $serializer_64(); return $serializer_instance_64; } function BulkAddPersonRunImportUiState_init_$Init$(seen1, inProgress, totalRecords, numImported, errors, errorMessage, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_76().gyw_1); } if (0 === (seen1 & 1)) $this.lyv_1 = true; else $this.lyv_1 = inProgress; if (0 === (seen1 & 2)) $this.myv_1 = 0; else $this.myv_1 = totalRecords; if (0 === (seen1 & 4)) $this.nyv_1 = 0; else $this.nyv_1 = numImported; if (0 === (seen1 & 8)) $this.oyv_1 = emptyList(); else $this.oyv_1 = errors; if (0 === (seen1 & 16)) $this.pyv_1 = null; else $this.pyv_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_196(); 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.lyv_1 = inProgress; this.myv_1 = totalRecords; this.nyv_1 = numImported; this.oyv_1 = errors; this.pyv_1 = errorMessage; } protoOf(BulkAddPersonRunImportUiState).fu0 = function () { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.oyv_1.c1()) { tmp = true; } else { tmp = !(this.pyv_1 == null); } return tmp; }; protoOf(BulkAddPersonRunImportUiState).cp3 = function () { var tmp; if (this.myv_1 > 0) { tmp = this.nyv_1 / this.myv_1; } else { tmp = 0.0; } return tmp; }; protoOf(BulkAddPersonRunImportUiState).iyw = function (inProgress, totalRecords, numImported, errors, errorMessage) { return new BulkAddPersonRunImportUiState(inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).qyv = function (inProgress, totalRecords, numImported, errors, errorMessage, $super) { inProgress = inProgress === VOID ? this.lyv_1 : inProgress; totalRecords = totalRecords === VOID ? this.myv_1 : totalRecords; numImported = numImported === VOID ? this.nyv_1 : numImported; errors = errors === VOID ? this.oyv_1 : errors; errorMessage = errorMessage === VOID ? this.pyv_1 : errorMessage; return $super === VOID ? this.iyw(inProgress, totalRecords, numImported, errors, errorMessage) : $super.iyw.call(this, inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).toString = function () { return 'BulkAddPersonRunImportUiState(inProgress=' + this.lyv_1 + ', totalRecords=' + this.myv_1 + ', numImported=' + this.nyv_1 + ', errors=' + this.oyv_1 + ', errorMessage=' + this.pyv_1 + ')'; }; protoOf(BulkAddPersonRunImportUiState).hashCode = function () { var result = getBooleanHashCode(this.lyv_1); result = imul(result, 31) + this.myv_1 | 0; result = imul(result, 31) + this.nyv_1 | 0; result = imul(result, 31) + hashCode(this.oyv_1) | 0; result = imul(result, 31) + (this.pyv_1 == null ? 0 : getStringHashCode(this.pyv_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.lyv_1 === tmp0_other_with_cast.lyv_1)) return false; if (!(this.myv_1 === tmp0_other_with_cast.myv_1)) return false; if (!(this.nyv_1 === tmp0_other_with_cast.nyv_1)) return false; if (!equals(this.oyv_1, tmp0_other_with_cast.oyv_1)) return false; if (!(this.pyv_1 == tmp0_other_with_cast.pyv_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.gyx_1; openBlobUiUseCase$factory_4(); return this_0.t2(); } function Companion_180() { this.hyx_1 = 'BulkAddPersonSelectFile'; } var Companion_instance_229; function Companion_getInstance_197() { return Companion_instance_229; } function BulkAddPersonSelectFileViewModel$slambda(this$0, resultContinuation) { this.qyx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.ryx_1.j7g(); var tmp_1 = this.qyx_1.hqn(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); suspendResult = tmp_0.ui0(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.bdo_1 ? it.cdo_1 : false; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).ony = function (db, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda(this.qyx_1, completion); i.ryx_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.as8(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.eyx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel..' call var nextValue = prevValue.wyx(VOID, VOID, VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function BulkAddPersonSelectFileViewModel$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonSelectFileViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonSelectFileViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(BulkAddPersonSelectFileViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda_1(completion); i.fyy_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda(this$0, $templatePath, resultContinuation) { this.oyy_1 = this$0; this.pyy_1 = $templatePath; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; var tmp_0 = _get_openBlobUiUseCase__fzusqz_1(this.oyy_1); var tmp_1 = new OpenBlobItem(this.pyy_1, 'text/csv', 'bulk-add-persons-template.csv', new Long(186, 0)); suspendResult = tmp_0.eop(tmp_1, BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda$lambda, OpenBlobIntent_SEND_getInstance(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_2 = this.kd_1; if (tmp_2 instanceof Error) { var e = this.kd_1; printStackTrace(e); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).p1n = function ($this$launch, completion) { var i = new BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda(this.oyy_1, this.pyy_1, completion); i.qyy_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function BulkAddPersonSelectFileViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'BulkAddPersonSelectFile'); this.eyx_1 = MutableStateFlow(new BulkAddPersonSelectFileUiState()); this.fyx_1 = asStateFlow(this.eyx_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.gyx_1 = Instance(this_0, tmp$ret$0, null).u5d(this, openBlobUiUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().nno_1)); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = BulkAddPersonSelectFileViewModel$slambda_0(this, null); var tmp_2 = BulkAddPersonSelectFileViewModel$lambda(this); this.aqo(tmp_1, true, tmp_2, BulkAddPersonSelectFileViewModel$slambda_2(null)); } protoOf(BulkAddPersonSelectFileViewModel).ryy = function (uri, name) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.eyx_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.onFileSelected.' call var nextValue = prevValue.wyx(uri, name); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(BulkAddPersonSelectFileViewModel).syy = function () { var tmp0_elvis_lhs = this.eyx_1.t2().syx_1; this.rqm_1.dp6('BulkAddPersonRunImport', mapOf_0(to('uri', tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); }; protoOf(BulkAddPersonSelectFileViewModel).tyy = function () { var templatePath = this.fqn().boa().mnt_1 + 'staticfiles/bulkaddpersons/bulk-add-persons-template.csv'; var tmp = this.gqn(); 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.syx_1 = selectedFileUri; this.tyx_1 = selectedFileName; this.uyx_1 = fileSelectError; this.vyx_1 = fieldsEnabled; } protoOf(BulkAddPersonSelectFileUiState).uyy = function () { return !(this.syx_1 == null) ? this.vyx_1 : false; }; protoOf(BulkAddPersonSelectFileUiState).vyy = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) { return new BulkAddPersonSelectFileUiState(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).wyx = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled, $super) { selectedFileUri = selectedFileUri === VOID ? this.syx_1 : selectedFileUri; selectedFileName = selectedFileName === VOID ? this.tyx_1 : selectedFileName; fileSelectError = fileSelectError === VOID ? this.uyx_1 : fileSelectError; fieldsEnabled = fieldsEnabled === VOID ? this.vyx_1 : fieldsEnabled; return $super === VOID ? this.vyy(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) : $super.vyy.call(this, selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).toString = function () { return 'BulkAddPersonSelectFileUiState(selectedFileUri=' + this.syx_1 + ', selectedFileName=' + this.tyx_1 + ', fileSelectError=' + this.uyx_1 + ', fieldsEnabled=' + this.vyx_1 + ')'; }; protoOf(BulkAddPersonSelectFileUiState).hashCode = function () { var result = this.syx_1 == null ? 0 : getStringHashCode(this.syx_1); result = imul(result, 31) + (this.tyx_1 == null ? 0 : getStringHashCode(this.tyx_1)) | 0; result = imul(result, 31) + (this.uyx_1 == null ? 0 : getStringHashCode(this.uyx_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.vyx_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.syx_1 == tmp0_other_with_cast.syx_1)) return false; if (!(this.tyx_1 == tmp0_other_with_cast.tyx_1)) return false; if (!(this.uyx_1 == tmp0_other_with_cast.uyx_1)) return false; if (!(this.vyx_1 === tmp0_other_with_cast.vyx_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.z96_1.equals($childProfileResult.z96_1); }; } function AddChildProfilesViewModel$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).fyz = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.fyz(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda).ony = function (it, completion) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda(completion); i.eyz_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.fyz(it, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).oyz = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).g79 = function ($completion) { return this.oyz($completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return emptyList(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_1).f79 = 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.oyz($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.mz0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel....' call var nextValue = prevValue.vz0(VOID, it == null ? emptyList() : it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function AddChildProfilesViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ez1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).gqa = function (result, $completion) { var tmp = this.hqa(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp_1 = this.fz1_1.nq9_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.gz1_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.ez1_1.mz0_1.t2().rz0_1; tmp_3.hz1_1 = replaceOrAppend(tmp_4, this.gz1_1, AddChildProfilesViewModel$slambda$slambda$slambda$lambda(this.gz1_1)); this.hd_1 = 1; suspendResult = updateChildProfileList(this.ez1_1, this.hz1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda$slambda_3).hqa = function (result, completion) { var i = new AddChildProfilesViewModel$slambda$slambda$slambda_3(this.ez1_1, completion); i.fz1_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.gqa(result, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda$slambda(this$0, resultContinuation) { this.qz1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda$slambda).o1n = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_instance_3.h4s()); 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.qz1_1.zqn(tmp_0, tmp_1, VOID, tmp_2, tmp_3, AddChildProfilesViewModel$slambda$slambda$lambda(this.qz1_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_4 = this.qz1_1.tqn(this.qz1_1.mqn(), 'person'); var tmp_5 = AddChildProfilesViewModel$slambda$slambda$slambda_4(this.qz1_1, null); suspendResult = tmp_4.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$slambda$slambda).p1n = function ($this$async, completion) { var i = new AddChildProfilesViewModel$slambda$slambda(this.qz1_1, completion); i.rz1_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.o1n($this$async, $completion); }; l.$arity = 1; return l; } function updateChildProfileList($this, newChildProfileList, $completion) { var tmp = new $updateChildProfileListCOROUTINE$75($this, newChildProfileList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_181() { this.dz2_1 = 'AddChildProfile'; this.ez2_1 = 'person'; this.fz2_1 = 'persons'; } var Companion_instance_230; function Companion_getInstance_198() { return Companion_instance_230; } function sam$kotlinx_coroutines_flow_FlowCollector$0_33(function_0) { this.gz2_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_33).n1e = function (value, $completion) { return this.gz2_1(value, $completion); }; function AddChildProfilesViewModel$onClickFinish$ref($boundThis) { var l = function () { $boundThis.hz2(); return Unit_instance; }; l.callableName = 'onClickFinish'; return l; } function AddChildProfilesViewModel$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda).as8 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return true; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda).ony = function (it, completion) { var i = new AddChildProfilesViewModel$slambda(completion); i.qz2_1 = it; return i; }; function AddChildProfilesViewModel$slambda_0(resultContinuation) { var i = new AddChildProfilesViewModel$slambda(resultContinuation); var l = function (it, $completion) { return i.as8(it, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$slambda_1(this$0, resultContinuation) { this.zz2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; async(this.az3_1, VOID, VOID, AddChildProfilesViewModel$slambda$slambda_0(this.zz2_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new AddChildProfilesViewModel$slambda_1(this.zz2_1, completion); i.az3_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$updateChildProfileList$slambda(this$0, $newChildProfileList, resultContinuation) { this.jz3_1 = this$0; this.kz3_1 = $newChildProfileList; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).cr0 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).he = function (p1, $completion) { return this.cr0((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return this.jz3_1.g4s().l46(ListSerializer(Companion_instance_3.h4s()), this.kz3_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(AddChildProfilesViewModel$updateChildProfileList$slambda).p1n = function ($this$withContext, completion) { var i = new AddChildProfilesViewModel$updateChildProfileList$slambda(this.jz3_1, this.kz3_1, completion); i.lz3_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.cr0($this$withContext, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this$0, $person, resultContinuation) { this.uz3_1 = this$0; this.vz3_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var this_0 = this.uz3_1.mz0_1.t2().rz0_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.z96_1.equals(this.vz3_1.z96_1)) { destination.i1(element); } } suspendResult = updateChildProfileList(this.uz3_1, destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$onClickDeleteChildProfile$slambda).p1n = function ($this$launch, completion) { var i = new AddChildProfilesViewModel$onClickDeleteChildProfile$slambda(this.uz3_1, this.vz3_1, completion); i.wz3_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function AddChildProfilesViewModel$onProfileSelected$slambda(this$0, $profile, resultContinuation) { this.fz4_1 = this$0; this.gz4_1 = $profile; CoroutineImpl.call(this, resultContinuation); } protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 10; this.iz4_1 = new UstadGoOptions(VOID, VOID, true); if (!this.fz4_1.mz0_1.t2().rz0_1.c1()) { var tmp_0 = this; var tmp0_elvis_lhs = this.fz4_1.kqn(); tmp_0.jz4_1 = tmp0_elvis_lhs == null ? this.fz4_1.jqn() : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = this.jz4_1.h7e().dg5(this.fz4_1.mz0_1.t2().rz0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 7; continue $sm; } case 1: var tmp_1 = this; var this_0 = this.fz4_1.mz0_1.t2().rz0_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.z96_1; var tmp1_ppjParentPersonUid = this.fz4_1.fqn().zo9().rky_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.kz4_1 = destination; var tmp_2 = this; tmp_2.lz4_1 = this.fz4_1.mz0_1.t2().rz0_1; this.mz4_1 = this.lz4_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.mz4_1.f()) { this.hd_1 = 5; continue $sm; } this.nz4_1 = this.mz4_1.e(); var tmp_3 = this; tmp_3.oz4_1 = this.nz4_1; if (!this.oz4_1.equals(this.gz4_1)) { this.hd_1 = 3; suspendResult = this.fz4_1.fqn().qo2(this.oz4_1, this.fz4_1.fqn().boa().mnt_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: this.hd_1 = 2; continue $sm; case 5: this.hd_1 = 6; suspendResult = this.jz4_1.r7f().ngt(this.kz4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; continue $sm; case 7: if (!this.gz4_1.equals(this.fz4_1.fqn().ko9().enu_1)) { this.hd_1 = 8; suspendResult = this.fz4_1.fqn().qo2(this.gz4_1, this.fz4_1.fqn().boa().mnt_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 9; continue $sm; } case 8: var sessionWithPersonAndLearningSpace = suspendResult; this.fz4_1.fqn().enx(sessionWithPersonAndLearningSpace); this.hd_1 = 9; continue $sm; case 9: this.fz4_1.bqu(this.fz4_1.rqm_1, appendSelectedAccount(this.fz4_1.nz0_1, this.gz4_1.z96_1, new LearningSpace(this.fz4_1.fqn().boa().mnt_1)), this.iz4_1); return Unit_instance; case 10: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 10) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(AddChildProfilesViewModel$onProfileSelected$slambda).p1n = function ($this$launch, completion) { var i = new AddChildProfilesViewModel$onProfileSelected$slambda(this.fz4_1, this.gz4_1, completion); i.hz4_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function $updateChildProfileListCOROUTINE$75(_this__u8e3s4, newChildProfileList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.az2_1 = _this__u8e3s4; this.bz2_1 = newChildProfileList; } protoOf($updateChildProfileListCOROUTINE$75).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; l$ret$1: do { var this_0 = this.az2_1.mz0_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vz0(VOID, this.bz2_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.cz2_1 = this.az2_1.pqm_1; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_0, AddChildProfilesViewModel$updateChildProfileList$slambda_0(this.az2_1, this.bz2_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.cz2_1.tqi('persons', ARGUMENT); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function AddChildProfilesViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'AddChildProfile'); this.mz0_1 = MutableStateFlow(new AddChildProfilesUiState()); var tmp = this; Companion_getInstance_116(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_0; if (tmp0_elvis_lhs == null) { Companion_getInstance_139(); tmp_0 = 'CourseListHome'; } else { tmp_0 = tmp0_elvis_lhs; } tmp.nz0_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.oz0_1 = Instance(this_0, tmp$ret$0, null).u5d(this, repo$factory()); this.pz0_1 = asStateFlow(this.mz0_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.mz0_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.' call var nextValue = prevValue.vz0(VOID, VOID, VOID, VOID, this.fqn().ko9().enu_1); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tqm_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.' call var tmp0_title = this.pqn().coj(strings_getInstance().vnp_1); var tmp_3 = this.pqn().coj(strings_getInstance().xnp_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, AddChildProfilesViewModel$onClickFinish$ref(this)); var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp0_title, false, true, VOID, false, VOID, tmp1_actionBarButtonState); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = AddChildProfilesViewModel$slambda_0(null); this.bqo(tmp_4, VOID, VOID, AddChildProfilesViewModel$slambda_2(this, null)); } protoOf(AddChildProfilesViewModel).pz4 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.oz0_1; repo$factory_0(); return this_0.t2(); }; protoOf(AddChildProfilesViewModel).hz2 = function () { // Inline function 'kotlin.collections.isNotEmpty' call if (!this.mz0_1.t2().rz0_1.c1()) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.mz0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onClickFinish.' call var nextValue = prevValue.vz0(VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } else { this.qz4(this.fqn().zo9().zky()); } }; protoOf(AddChildProfilesViewModel).rz4 = 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_115(); this.pqm_1.ba('entity'); var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_instance_3.h4s(); this.xqn(tmp0_nextViewName, 'person', null, tmp3_serializer, tmp2_args); }; protoOf(AddChildProfilesViewModel).sz4 = function (person) { var tmp0_nextViewName = 'EditChildProfile'; var tmp2_serializer = Companion_instance_3.h4s(); // 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_115(); this.pqm_1.ba('entity'); var tmp3_args = this_0.f3(); this.xqn(tmp0_nextViewName, 'person', person, tmp2_serializer, tmp3_args); }; protoOf(AddChildProfilesViewModel).tz4 = function (person) { var tmp = this.gqn(); launch(tmp, VOID, VOID, AddChildProfilesViewModel$onClickDeleteChildProfile$slambda_0(this, person, null)); }; protoOf(AddChildProfilesViewModel).uz4 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.mz0_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.AddChildProfilesViewModel.onDismissLangDialog.' call var nextValue = prevValue.vz0(VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(AddChildProfilesViewModel).qz4 = function (profile) { var tmp = this.gqn(); 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.qz0_1 = onAddChildProfile; this.rz0_1 = childProfiles; this.sz0_1 = personParenJoinList; this.tz0_1 = showProfileSelectionDialog; this.uz0_1 = parent; } protoOf(AddChildProfilesUiState).vz4 = function () { var tmp0_safe_receiver = this.uz0_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.rz0_1); }; protoOf(AddChildProfilesUiState).wz4 = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) { return new AddChildProfilesUiState(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(AddChildProfilesUiState).vz0 = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent, $super) { onAddChildProfile = onAddChildProfile === VOID ? this.qz0_1 : onAddChildProfile; childProfiles = childProfiles === VOID ? this.rz0_1 : childProfiles; personParenJoinList = personParenJoinList === VOID ? this.sz0_1 : personParenJoinList; showProfileSelectionDialog = showProfileSelectionDialog === VOID ? this.tz0_1 : showProfileSelectionDialog; parent = parent === VOID ? this.uz0_1 : parent; return $super === VOID ? this.wz4(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) : $super.wz4.call(this, onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(AddChildProfilesUiState).toString = function () { return 'AddChildProfilesUiState(onAddChildProfile=' + this.qz0_1 + ', childProfiles=' + this.rz0_1 + ', personParenJoinList=' + this.sz0_1 + ', showProfileSelectionDialog=' + this.tz0_1 + ', parent=' + this.uz0_1 + ')'; }; protoOf(AddChildProfilesUiState).hashCode = function () { var result = this.qz0_1 == null ? 0 : getStringHashCode(this.qz0_1); result = imul(result, 31) + hashCode(this.rz0_1) | 0; result = imul(result, 31) + hashCode(this.sz0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tz0_1) | 0; result = imul(result, 31) + (this.uz0_1 == null ? 0 : this.uz0_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.qz0_1 == tmp0_other_with_cast.qz0_1)) return false; if (!equals(this.rz0_1, tmp0_other_with_cast.rz0_1)) return false; if (!equals(this.sz0_1, tmp0_other_with_cast.sz0_1)) return false; if (!(this.tz0_1 === tmp0_other_with_cast.tz0_1)) return false; if (!equals(this.uz0_1, tmp0_other_with_cast.uz0_1)) return false; return true; }; function repo$factory() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.pz4(); }, null); } function repo$factory_0() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.pz4(); }, null); } function EditChildProfileViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda).gz5 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda$slambda).he = function (p1, $completion) { return this.gz5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(EditChildProfileViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(EditChildProfileViewModel$slambda$slambda).ony = function (it, completion) { var i = new EditChildProfileViewModel$slambda$slambda(completion); i.fz5_1 = it; return i; }; function EditChildProfileViewModel$slambda$slambda_0(resultContinuation) { var i = new EditChildProfileViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.gz5(it, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$slambda$slambda_1(this$0, resultContinuation) { this.pz5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda_1).qz5 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).g79 = function ($completion) { return this.qz5($completion); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.pz5_1.jqn()); suspendResult = tmp_0.i63(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).f79 = function (completion) { return new EditChildProfileViewModel$slambda$slambda_1(this.pz5_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.qz5($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.oz6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel...' call var nextValue = prevValue.xz6(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_genderConfig__kyr0zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qz6_1; genderConfig$factory_0(); return this_0.t2(); } function hasErrors_3(_this__u8e3s4, $this) { return ((!(_this__u8e3s4.sz6_1 == null) ? true : !(_this__u8e3s4.vz6_1 == null)) ? true : !(_this__u8e3s4.wz6_1 == null)) ? true : !(_this__u8e3s4.uz6_1 == null); } function Companion_182() { this.yz6_1 = 'EditChildProfile'; } var Companion_instance_231; function Companion_getInstance_199() { return Companion_instance_231; } function EditChildProfileViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.bwr(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function EditChildProfileViewModel$slambda(this$0, resultContinuation) { this.hz7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EditChildProfileViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.jz7_1 = Companion_instance_3.h4s(); this.hd_1 = 1; var tmp_0 = EditChildProfileViewModel$slambda$slambda_0(null); var tmp_1 = EditChildProfileViewModel$slambda$slambda_2(this.hz7_1, null); suspendResult = this.hz7_1.zqn(this.jz7_1, VOID, VOID, tmp_0, tmp_1, EditChildProfileViewModel$slambda$lambda(this.hz7_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EditChildProfileViewModel$slambda).p1n = function ($this$launch, completion) { var i = new EditChildProfileViewModel$slambda(this.hz7_1, completion); i.iz7_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.sz7_1 = $commitDelay; this.tz7_1 = $entity; this.uz7_1 = $this; this.vz7_1 = $key; this.wz7_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EditChildProfileViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.sz7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.tz7_1 == null)) { this.hd_1 = 2; suspendResult = this.uz7_1.vqn(this.uz7_1.pqm_1, this.vz7_1, this.wz7_1, this.tz7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EditChildProfileViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new EditChildProfileViewModel$onEntityChanged$slambda(this.sz7_1, this.tz7_1, this.uz7_1, this.vz7_1, this.wz7_1, completion); i.xz7_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EditChildProfile'); this.oz6_1 = MutableStateFlow(new EditChildProfileUiState()); this.pz6_1 = asStateFlow(this.oz6_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.qz6_1 = Instance(this, tmp$ret$0, null).u5d(this, genderConfig$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.oz6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var nextValue = prevValue.xz6(VOID, VOID, _get_genderConfig__kyr0zc(this).bq7_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp0_title = this.pqn().coj(strings_getInstance().wnp_1); var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp0_title, false, true, VOID, false, VOID, VOID, VOID, false); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tqm_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp_1 = this.pqn().coj(strings_getInstance().pmr_1); var nextValue_1 = prevValue_1.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_1, VOID, EditChildProfileViewModel$onClickDone$ref(this))); if (this_2.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, EditChildProfileViewModel$slambda_0(this, null)); } protoOf(EditChildProfileViewModel).yz7 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.oz6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.rz6_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f97_1; var tmp_0 = this.aqu(tmp, entity == null ? null : entity.f97_1, prevValue.uz6_1); var tmp2_safe_receiver = prevValue.rz6_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.b97_1; var tmp_2 = this.aqu(tmp_1, entity == null ? null : entity.b97_1, prevValue.vz6_1); var tmp4_safe_receiver = prevValue.rz6_1; var tmp_3 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.c97_1; var nextValue = prevValue.xz6(entity, VOID, VOID, tmp_0, tmp_2, this.aqu(tmp_3, entity == null ? null : entity.c97_1, prevValue.wz6_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_4 = this; var tmp_5 = this.gqn(); tmp_4.wqs_1 = launch(tmp_5, VOID, VOID, EditChildProfileViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(EditChildProfileViewModel).bwr = function () { this.rqn(Companion_getInstance_97().jq6_1); var tmp0_elvis_lhs = this.oz6_1.t2().rz6_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var savePerson = tmp; var requiredFieldMessage = this.pqn().coj(strings_getInstance().rmn_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.oz6_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.b97_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.c97_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.i97_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.f97_1; if (tmp_4 === 0) { tmp_3 = requiredFieldMessage; } else { tmp_3 = null; } var tmp3_genderError = tmp_3; var nextValue = prevValue.xz6(VOID, tmp2_dateOfBirthError, VOID, tmp3_genderError, tmp0_firstNameError, tmp1_lastNameError); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_3(this.oz6_1.t2(), this)) { this.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; } this.aqt(this.oz6_1.t2().rz6_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().dq7_1 : genderOptions; genderError = genderError === VOID ? null : genderError; firstNameError = firstNameError === VOID ? null : firstNameError; lastNameError = lastNameError === VOID ? null : lastNameError; this.rz6_1 = person; this.sz6_1 = dateOfBirthError; this.tz6_1 = genderOptions; this.uz6_1 = genderError; this.vz6_1 = firstNameError; this.wz6_1 = lastNameError; } protoOf(EditChildProfileUiState).zz7 = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) { return new EditChildProfileUiState(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError); }; protoOf(EditChildProfileUiState).xz6 = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, $super) { person = person === VOID ? this.rz6_1 : person; dateOfBirthError = dateOfBirthError === VOID ? this.sz6_1 : dateOfBirthError; genderOptions = genderOptions === VOID ? this.tz6_1 : genderOptions; genderError = genderError === VOID ? this.uz6_1 : genderError; firstNameError = firstNameError === VOID ? this.vz6_1 : firstNameError; lastNameError = lastNameError === VOID ? this.wz6_1 : lastNameError; return $super === VOID ? this.zz7(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError) : $super.zz7.call(this, person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError); }; protoOf(EditChildProfileUiState).toString = function () { return 'EditChildProfileUiState(person=' + this.rz6_1 + ', dateOfBirthError=' + this.sz6_1 + ', genderOptions=' + this.tz6_1 + ', genderError=' + this.uz6_1 + ', firstNameError=' + this.vz6_1 + ', lastNameError=' + this.wz6_1 + ')'; }; protoOf(EditChildProfileUiState).hashCode = function () { var result = this.rz6_1 == null ? 0 : this.rz6_1.hashCode(); result = imul(result, 31) + (this.sz6_1 == null ? 0 : getStringHashCode(this.sz6_1)) | 0; result = imul(result, 31) + hashCode(this.tz6_1) | 0; result = imul(result, 31) + (this.uz6_1 == null ? 0 : getStringHashCode(this.uz6_1)) | 0; result = imul(result, 31) + (this.vz6_1 == null ? 0 : getStringHashCode(this.vz6_1)) | 0; result = imul(result, 31) + (this.wz6_1 == null ? 0 : getStringHashCode(this.wz6_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.rz6_1, tmp0_other_with_cast.rz6_1)) return false; if (!(this.sz6_1 == tmp0_other_with_cast.sz6_1)) return false; if (!equals(this.tz6_1, tmp0_other_with_cast.tz6_1)) return false; if (!(this.uz6_1 == tmp0_other_with_cast.uz6_1)) return false; if (!(this.vz6_1 == tmp0_other_with_cast.vz6_1)) return false; if (!(this.wz6_1 == tmp0_other_with_cast.wz6_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).kz8 = function (entity, permissions, $completion) { var tmp = this.lz8(entity, permissions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).on = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof PersonAndDisplayDetail) ? p1 : THROW_CCE(); return this.kz8(tmp, p2 instanceof EditAndViewPermission ? p2 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.iz8_1; var tmp_0; if (this.jz8_1.zi2_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).lz8 = function (entity, permissions, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda(completion); i.iz8_1 = entity; i.jz8_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.kz8(entity, permissions, $completion); }; l.$arity = 2; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.uz8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).wz8 = function (person, $completion) { var tmp = this.xz8(person, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.wz8((p1 == null ? true : p1 instanceof PersonAndDisplayDetail) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.uz8_1.uz9_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.vz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e97_1; var tmp_0; if (tmp2_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = _get_phoneNumberUtil__i6ank8(this.uz8_1); tmp_0 = tmp0_safe_receiver_0 == null ? null : formatInternationalOrNull(tmp0_safe_receiver_0, tmp2_safe_receiver); } var nextValue = prevValue.iza(this.vz8_1, tmp_0); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.uz8_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_1 = this.vz8_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.pg8_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.vz8_1 == null)) { tmp_1 = Companion_getInstance_97().kq6_1; } else { tmp_1 = Companion_getInstance_97().jq6_1; } var tmp4_loadingState = tmp_1; var nextValue_0 = prevValue_0.cq6(VOID, tmp4_loadingState, tmp3_title); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).xz8 = function (person, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this.uz8_1, completion); i.vz8_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.wz8(person, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.rza_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).bqf = function (it, $completion) { var tmp = this.cqf(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.rza_1.uz9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iza(VOID, VOID, VOID, VOID, VOID, this.sza_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).cqf = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this.rza_1, completion); i.sza_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.bqf(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.ox1(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.bzb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).dzb = function (it, $completion) { var tmp = this.ezb(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.dzb(p1 instanceof EditAndViewPermission ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.bzb_1.uz9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iza(VOID, VOID, VOID, VOID, this.czb_1.ai3_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.bzb_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0; if (this.czb_1.ai3_1) { var tmp_1 = this.bzb_1.pqn().coj(strings_getInstance().pmv_1); var tmp_2 = FabIcon_EDIT_getInstance(); tmp_0 = new FabUiState(true, tmp_1, tmp_2, PersonDetailViewModel$onClickEdit$ref(this.bzb_1)); } else { tmp_0 = new FabUiState(); } var nextValue_0 = prevValue_0.cq6(tmp_0); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).ezb = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this.bzb_1, completion); i.czb_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.dzb(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.nzb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).pzb = function (it, $completion) { var tmp = this.qzb(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).he = function (p1, $completion) { return this.pzb((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.nzb_1.uz9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.iza(VOID, VOID, VOID, this.ozb_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).qzb = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this.nzb_1, completion); i.ozb_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.pzb(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda($entityFlow, $viewAndEditPermissionFlow, this$0, resultContinuation) { this.zzb_1 = $entityFlow; this.azc_1 = $viewAndEditPermissionFlow; this.bzc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = combine(this.zzb_1, this.azc_1, PersonDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_2(this.bzc_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda(this.zzb_1, this.azc_1, this.bzc_1, completion); i.czc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_1($hasManagePermissionsPermissionFlow, this$0, resultContinuation) { this.lzc_1 = $hasManagePermissionsPermissionFlow; this.mzc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.lzc_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_4(this.mzc_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_1(this.lzc_1, this.mzc_1, completion); i.nzc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_3($viewAndEditPermissionFlow, this$0, resultContinuation) { this.wzc_1 = $viewAndEditPermissionFlow; this.xzc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = PersonDetailViewModel$slambda$slambda$slambda$slambda_6(this.xzc_1, null); suspendResult = this.wzc_1.b1i(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).p1n = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_3(this.wzc_1, this.xzc_1, completion); i.yzc_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.hzd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.hzd_1.jqn().n7e().b94(this.hzd_1.hqn(), this.hzd_1.jqm_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_8(this.hzd_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).p1n = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_5(this.hzd_1, completion); i.izd_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewAndEditPermissionFlow, this$0, $hasManagePermissionsPermissionFlow, resultContinuation) { this.rzd_1 = $this_launch; this.szd_1 = $entityFlow; this.tzd_1 = $viewAndEditPermissionFlow; this.uzd_1 = this$0; this.vzd_1 = $hasManagePermissionsPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(PersonDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.rzd_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_0(this.szd_1, this.tzd_1, this.uzd_1, null)); launch(this.rzd_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_2(this.vzd_1, this.uzd_1, null)); launch(this.rzd_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_4(this.tzd_1, this.uzd_1, null)); launch(this.rzd_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_6(this.uzd_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonDetailViewModel$slambda$slambda).f79 = function (completion) { return new PersonDetailViewModel$slambda$slambda(this.rzd_1, this.szd_1, this.tzd_1, this.uzd_1, this.vzd_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.d88($completion); }; l.$arity = 0; return l; } function _get_phoneNumberUtil__i6ank8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xz9_1; phoneNumberUtil$factory_0(); return this_0.t2(); } function _get_onClickPhoneNumUseCase__2tcaut($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yz9_1; onClickPhoneNumUseCase$factory_0(); return this_0.t2(); } function _get_onClickSendSmsUseCase__plj4zm($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zz9_1; onClickSendSmsUseCase$factory_0(); return this_0.t2(); } function _get_onClickEmailUseCase__v8uzjh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.aza_1; onClickEmailUseCase$factory_0(); return this_0.t2(); } function navigateToEditAccount($this) { Companion_getInstance_125(); $this.rqm_1.dp6('AccountEdit', mapOf_0(to('entityUid', $this.wz9_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_125(); this_0.s('entityUid', $this.wz9_1.toString()); var tmp0_safe_receiver = $this.uz9_1.t2().bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; this_0.s('PersonUsername', toString_0(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a97_1)); var tmp2_safe_receiver = $this.uz9_1.t2().bza_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.pg8_1; this_0.s('PersonFullName', toString_0(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.ykq())); var tmp$ret$2 = this_0.f3(); $this.rqm_1.dp6('ManageAccount', tmp$ret$2); } function Companion_183() { this.wzd_1 = 'PersonDetailView'; } var Companion_instance_232; function Companion_getInstance_200() { return Companion_instance_232; } function sam$kotlinx_coroutines_flow_FlowCollector$0_34(function_0) { this.xzd_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_34).n1e = function (value, $completion) { return this.xzd_1(value, $completion); }; function PersonDetailViewModel$onClickEdit$ref_0($boundThis) { var l = function () { $boundThis.ox1(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda(this$0, resultContinuation) { this.gze_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.ize_1 = this.gze_1.lqn().h7e().jg5(this.gze_1.jqm_1, this.gze_1.hqn()); this.jze_1 = shareIn(this.gze_1.lqn().j7g().vi0(this.gze_1.hqn(), this.gze_1.jqm_1), this.gze_1.gqn(), Companion_getInstance_12().p1i()); var tmp_0 = this; var tmp_1 = this.gze_1.jqn().j7g(); var tmp_2 = this.gze_1.hqn(); PermissionFlags_getInstance(); tmp_0.kze_1 = tmp_1.si0(tmp_2, new Long(4096, 0)); this.hd_1 = 1; suspendResult = whenSubscribed(this.gze_1.uz9_1, PersonDetailViewModel$slambda$slambda_0(this.hze_1, this.ize_1, this.jze_1, this.gze_1, this.kze_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda(this.gze_1, completion); i.hze_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'PersonDetailView'); this.uz9_1 = MutableStateFlow(new PersonDetailUiState()); this.vz9_1 = asStateFlow(this.uz9_1); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.wz9_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.xz9_1 = InstanceOrNull(this, tmp$ret$0, null).u5d(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.yz9_1 = Instance(this, tmp$ret$2, null).u5d(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.zz9_1 = InstanceOrNull(this, tmp$ret$4, null).u5d(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.aza_1 = Instance(this, tmp$ret$6, null).u5d(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).u5d(null, getLocalDelegateReference('accountManager', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_loadingState = Companion_getInstance_97().jq6_1; var tmp_9 = this.pqn().coj(strings_getInstance().pmv_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.cq6(tmp1_fabState, tmp0_loadingState); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.uz9_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_isActiveUser = this.jqm_1.equals(this.hqn()); var tmp1_canSendSms = !(_get_onClickSendSmsUseCase__plj4zm(this) == null); var nextValue_0 = prevValue_0.iza(VOID, VOID, tmp1_canSendSms, VOID, VOID, VOID, tmp0_isActiveUser); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_11 = this.gqn(); launch(tmp_11, VOID, VOID, PersonDetailViewModel$slambda_0(this, null)); } protoOf(PersonDetailViewModel).ox1 = function () { Companion_getInstance_201(); Companion_getInstance_125(); this.rqm_1.dp6('PersonEditView', mapOf_0(to('entityUid', this.wz9_1.toString()))); }; protoOf(PersonDetailViewModel).lze = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).mze = function () { return navigateToManageAccount(this); }; protoOf(PersonDetailViewModel).nze = function () { Companion_getInstance_116(); this.rqm_1.dp6('MessageList', mapOf_0(to('personUid', this.wz9_1.toString()))); }; protoOf(PersonDetailViewModel).oze = function () { var tmp0_safe_receiver = this.uz9_1.t2().bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e97_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).ip1(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).pze = function () { var tmp0_safe_receiver = this.uz9_1.t2().bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d97_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).ip1(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).lru = function () { Companion_getInstance_125(); this.rqm_1.dp6('SystemPermission', mapOf_0(to('personUid', this.jqm_1.toString()))); }; protoOf(PersonDetailViewModel).qze = function () { var tmp0_safe_receiver = this.uz9_1.t2().bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qg8_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tg8_1; var ppjUid = tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs; if (!ppjUid.equals(new Long(0, 0))) { Companion_getInstance_125(); var tmp = to('entityUid', ppjUid.toString()); Companion_getInstance_125(); Companion_getInstance_116(); this.rqm_1.dp6('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.bza_1 = person; this.cza_1 = displayPhoneNum; this.dza_1 = canSendSms; this.eza_1 = clazzes; this.fza_1 = hasChangePasswordPermission; this.gza_1 = showPermissionButton; this.hza_1 = isActiveUser; } protoOf(PersonDetailUiState).rze = function () { var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; return isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i97_1); }; protoOf(PersonDetailUiState).sze = function () { var tmp; var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f97_1) == null)) { var tmp2_safe_receiver = this.bza_1.pg8_1; tmp = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.f97_1) === 0); } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).tze = function () { var tmp; var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a97_1) == null)) { tmp = this.fza_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).uze = function () { var tmp; var tmp_0; if (!(this.bza_1 == null)) { var tmp0_safe_receiver = this.bza_1.pg8_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a97_1) == null; } else { tmp_0 = false; } if (tmp_0) { tmp = this.fza_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).vze = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j97_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).wze = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e97_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).xze = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d97_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).yze = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k97_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).zze = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a97_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).azf = function () { var tmp0_safe_receiver = this.bza_1; return !((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qg8_1) == null); }; protoOf(PersonDetailUiState).bzf = function () { var tmp; // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.bza_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pg8_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a97_1; // Inline function 'kotlin.contracts.contract' call if (!(this_0 == null ? true : isBlank(this_0))) { tmp = !this.hza_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).czf = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) { return new PersonDetailUiState(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).iza = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser, $super) { person = person === VOID ? this.bza_1 : person; displayPhoneNum = displayPhoneNum === VOID ? this.cza_1 : displayPhoneNum; canSendSms = canSendSms === VOID ? this.dza_1 : canSendSms; clazzes = clazzes === VOID ? this.eza_1 : clazzes; hasChangePasswordPermission = hasChangePasswordPermission === VOID ? this.fza_1 : hasChangePasswordPermission; showPermissionButton = showPermissionButton === VOID ? this.gza_1 : showPermissionButton; isActiveUser = isActiveUser === VOID ? this.hza_1 : isActiveUser; return $super === VOID ? this.czf(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) : $super.czf.call(this, person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).toString = function () { return 'PersonDetailUiState(person=' + this.bza_1 + ', displayPhoneNum=' + this.cza_1 + ', canSendSms=' + this.dza_1 + ', clazzes=' + this.eza_1 + ', hasChangePasswordPermission=' + this.fza_1 + ', showPermissionButton=' + this.gza_1 + ', isActiveUser=' + this.hza_1 + ')'; }; protoOf(PersonDetailUiState).hashCode = function () { var result = this.bza_1 == null ? 0 : this.bza_1.hashCode(); result = imul(result, 31) + (this.cza_1 == null ? 0 : getStringHashCode(this.cza_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.dza_1) | 0; result = imul(result, 31) + hashCode(this.eza_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fza_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gza_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hza_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.bza_1, tmp0_other_with_cast.bza_1)) return false; if (!(this.cza_1 == tmp0_other_with_cast.cza_1)) return false; if (!(this.dza_1 === tmp0_other_with_cast.dza_1)) return false; if (!equals(this.eza_1, tmp0_other_with_cast.eza_1)) return false; if (!(this.fza_1 === tmp0_other_with_cast.fza_1)) return false; if (!(this.gza_1 === tmp0_other_with_cast.gza_1)) return false; if (!(this.hza_1 === tmp0_other_with_cast.hza_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.lzf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda).gz5 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.gz5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var this_0 = this.mzf_1.h7e(); var tmp_1; if (!_get_entityUid__ovkepw(this.lzf_1).equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.nzf_1 = tmp_1; if (this.nzf_1 == null) { this.ozf_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.nzf_1.gg5(_get_entityUid__ovkepw(this.lzf_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.ozf_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.ozf_1; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda).ony = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda(this.lzf_1, completion); i.mzf_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.gz5(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_1($savedStateHandle, resultContinuation) { this.xzf_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_1).qz5 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).g79 = function ($completion) { return this.qz5($completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = new Person(); var tmp_0 = this_0; var tmp0_safe_receiver = this.xzf_1.ba('DateOfBirth'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.i97_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; return this_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).f79 = function (completion) { return new PersonEditViewModel$slambda$slambda$slambda_1(this.xzf_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.qz5($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.vzg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.czi(entityToDisplay); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.lzi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_3).nzi = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.nzi(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.mzi_1.z7e().sh4(_get_entityUid__ovkepw(this.lzi_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_3).ony = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda_3(this.lzi_1, completion); i.mzi_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.nzi(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_5).wzi = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).g79 = function ($completion) { return this.wzi($completion); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).f79 = 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.wzi($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.vzg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.czi(VOID, VOID, VOID, personPicture); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.fzj_1 = this$0; this.gzj_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda).izj = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.izj((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_3.h4s(); var tmp_1 = PersonEditViewModel$slambda$slambda$slambda_0(this.fzj_1, null); var tmp_2 = PersonEditViewModel$slambda$slambda$slambda_2(this.gzj_1, null); suspendResult = this.fzj_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonEditViewModel$slambda$slambda$lambda(this.fzj_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda).p1n = function ($this$async, completion) { var i = new PersonEditViewModel$slambda$slambda(this.fzj_1, this.gzj_1, completion); i.hzj_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.izj($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.rzj_1 = this$0; this.szj_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda_1).uzj = function ($this$async, $completion) { var tmp = this.p1n($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.uzj((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Companion_instance_7.h4s(); var tmp_1 = listOf_0('picState'); var tmp_2; if (!_get_entityUid__ovkepw(this.rzj_1).equals(new Long(0, 0))) { tmp_2 = PersonEditViewModel$slambda$slambda$slambda_4(this.rzj_1, null); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4 = PersonEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.rzj_1.zqn(tmp_0, tmp_1, VOID, tmp_3, tmp_4, PersonEditViewModel$slambda$slambda$lambda_0(this.rzj_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_123(); var tmp1_elvis_lhs = this_0 == null ? null : this_0.a98_1; setIfNoValueSetYet(this.szj_1, 'initPicUri', tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); return this_0; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda$slambda_1).p1n = function ($this$async, completion) { var i = new PersonEditViewModel$slambda$slambda_1(this.rzj_1, this.szj_1, completion); i.tzj_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.uzj($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonEditViewModel$onClickSave$slambda$slambda(this$0, $savePerson, $consentToUpsert, resultContinuation) { this.dzk_1 = this$0; this.ezk_1 = $savePerson; this.fzk_1 = $consentToUpsert; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda$slambda).mzk = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.mzk(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; if (this.dzk_1.xqs_1.equals(new Long(0, 0))) { this.hd_1 = 4; suspendResult = _get_addNewPersonUseCase__raa2qa(this.dzk_1).upk(this.ezk_1, this.dzk_1.hqn(), true, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.dzk_1.lqn().h7e().hg5(this.ezk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.izk_1 = this.fzk_1; if (this.izk_1 == null) { this.jzk_1 = null; this.hd_1 = 3; continue $sm; } else { var tmp_0 = this; tmp_0.kzk_1 = this.izk_1; var tmp_1 = this; tmp_1.lzk_1 = this.kzk_1; this.hd_1 = 2; suspendResult = this.dzk_1.lqn().r7f().ogt(this.lzk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.jzk_1 = this.kzk_1; this.hd_1 = 3; continue $sm; case 3: this.hzk_1 = this.jzk_1; this.hd_1 = 5; continue $sm; case 4: this.hzk_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: return this.hzk_1; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new PersonEditViewModel$onClickSave$slambda$slambda(this.dzk_1, this.ezk_1, this.fzk_1, completion); i.gzk_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.mzk(it, $completion); }; l.$arity = 1; return l; } function _get_apiUrlConfig__mldllg_4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yzg_1; apiUrlConfig$factory_10(); return this_0.t2(); } function _get_entityUid__ovkepw($this) { Companion_getInstance_116(); var tmp0_safe_receiver = $this.pqm_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.bzh_1; phoneNumValidatorUseCase$factory_0(); return this_0.t2(); } function _get_genderConfig__kyr0zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fzh_1; genderConfig$factory_2(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gzh_1; enqueueSavePictureUseCase$factory_0(); return this_0.t2(); } function _get_addNewPersonUseCase__raa2qa($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hzh_1; addNewPersonUseCase$factory_0(); return this_0.t2(); } function hasErrors_4(_this__u8e3s4, $this) { return ((((((((!(_this__u8e3s4.qzh_1 == null) ? true : !(_this__u8e3s4.szh_1 == null)) ? true : !(_this__u8e3s4.uzh_1 == null)) ? true : !(_this__u8e3s4.vzh_1 == null)) ? true : !(_this__u8e3s4.yzh_1 == null)) ? true : !(_this__u8e3s4.zzh_1 == null)) ? true : !(_this__u8e3s4.xzh_1 == null)) ? true : !(_this__u8e3s4.tzh_1 == null)) ? true : !(_this__u8e3s4.wzh_1 == null)) ? true : !(_this__u8e3s4.azi_1 == null); } function Companion_184() { Companion_instance_233 = this; this.nzk_1 = 'picState'; this.ozk_1 = 'PersonEditView'; this.pzk_1 = 'Register'; this.qzk_1 = listOf(['PersonEditView', 'Register']); this.rzk_1 = 'RegMode'; this.szk_1 = 'DateOfBirth'; this.tzk_1 = 'RegViaLink'; this.uzk_1 = 0; this.vzk_1 = 1; this.wzk_1 = 2; var tmp = this; Companion_getInstance_116(); Companion_getInstance_116(); Companion_getInstance_125(); Companion_getInstance_125(); tmp.xzk_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'next', 'RegViaLink', 'DateOfBirth', 'RegMode', 'noSessionChange']); this.yzk_1 = 'initDob'; } var Companion_instance_233; function Companion_getInstance_201() { if (Companion_instance_233 == null) new Companion_184(); return Companion_instance_233; } function PersonEditViewModel$slambda(this$0, resultContinuation) { this.hzl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; if (!(this.hzl_1.xzg_1 === 0) ? this.hzl_1.xqs_1.equals(new Long(0, 0)) : false) { this.jzl_1 = true; this.hd_1 = 4; continue $sm; } else { if (!this.hzl_1.xqs_1.equals(new Long(0, 0)) ? this.hzl_1.hqn().equals(this.hzl_1.xqs_1) : false) { this.jzl_1 = true; this.hd_1 = 4; continue $sm; } else { if (this.hzl_1.xqs_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.izl_1.j7g(); var tmp_1 = this.hzl_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ri0(tmp_1, new Long(1024, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_2 = this.izl_1.j7g(); var tmp_3 = this.hzl_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_2.ri0(tmp_3, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 1: this.jzl_1 = suspendResult; this.hd_1 = 4; continue $sm; case 2: this.jzl_1 = suspendResult; this.hd_1 = 4; continue $sm; case 3: throw this.kd_1; case 4: return this.jzl_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda).ony = function (db, completion) { var i = new PersonEditViewModel$slambda(this.hzl_1, completion); i.izl_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.as8(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.vzg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel..' call var nextValue = prevValue.czi(VOID, VOID, VOID, VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.szl_1 = this$0; this.tzl_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = async(this.uzl_1, VOID, VOID, PersonEditViewModel$slambda$slambda_0(this.szl_1, this.tzl_1, null)); suspendResult = awaitAll([tmp_0, async(this.uzl_1, VOID, VOID, PersonEditViewModel$slambda$slambda_2(this.szl_1, this.tzl_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.szl_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (hasFlag(this.szl_1.xzg_1, 1)) { tmp_1 = this.szl_1.pqn().coj(strings_getInstance().jmk_1); } else { tmp_1 = this.szl_1.pqn().coj(strings_getInstance().dn3_1); } var tmp_2 = tmp_1; var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_2, VOID, PersonEditViewModel$onClickSave$ref(this.szl_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_3; if (hasFlag(this.szl_1.xzg_1, 2)) { tmp_3 = new PersonParentJoin(); } else { tmp_3 = null; } var personParentJoin = tmp_3; l$ret$3: do { var this_1 = this.szl_1.vzg_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.czi(VOID, VOID, VOID, VOID, true, personParentJoin); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.szl_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new PersonEditViewModel$slambda_1(this.szl_1, this.tzl_1, completion); i.uzl_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.o1n($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.a97_1; tmp.a97_1 = this$0.ezh_1.fpe(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs, ''); return Unit_instance; }; } function PersonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.dzm_1 = $commitDelay; this.ezm_1 = $entity; this.fzm_1 = $this; this.gzm_1 = $key; this.hzm_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.dzm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.ezm_1 == null)) { this.hd_1 = 2; suspendResult = this.fzm_1.vqn(this.fzm_1.pqm_1, this.gzm_1, this.hzm_1, this.ezm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new PersonEditViewModel$onEntityChanged$slambda(this.dzm_1, this.ezm_1, this.fzm_1, this.gzm_1, this.hzm_1, completion); i.izm_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation) { this.rzm_1 = this$0; this.szm_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.rzm_1.vqn(this.rzm_1.pqm_1, 'picState', Companion_instance_7.h4s(), this.szm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).p1n = function ($this$launch, completion) { var i = new PersonEditViewModel$onPersonPictureChanged$slambda(this.rzm_1, this.szm_1, completion); i.tzm_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$lambda($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_safe_receiver = $this$shallowCopy.e97_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.e97_1 = tmp1_safe_receiver == null ? null : replace(tmp1_safe_receiver, ' ', ''); var tmp_1 = $this$shallowCopy; var tmp2_safe_receiver = $this$shallowCopy.d97_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.d97_1 = tmp_2; return Unit_instance; } function PersonEditViewModel$onClickSave$slambda($isRegistrationMode, this$0, $savePerson, $requiredFieldMessage, resultContinuation) { this.czn_1 = $isRegistrationMode; this.dzn_1 = this$0; this.ezn_1 = $savePerson; this.fzn_1 = $requiredFieldMessage; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 14; if (this.czn_1) { this.hzn_1 = this.dzn_1.vzg_1.t2().ozh_1; this.izn_1 = this.dzn_1.vzg_1.t2().kzh_1; var tmp_0 = this; var tmp$ret$0; l$ret$1: do { var this_0 = this.dzn_1.vzg_1; while (true) { var prevValue = this_0.t2(); var tmp_1; var this_1 = this.ezn_1.a97_1; if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_1 = this.fzn_1; } else { tmp_1 = null; } var tmp3_usernameError = tmp_1; var tmp_2; var this_2 = this.izn_1; if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.fzn_1; } else { tmp_2 = null; } var tmp4_passwordError = tmp_2; var tmp_3; if (!hasFlag(this.dzn_1.xzg_1, 2)) { tmp_3 = null; } else { var tmp0_safe_receiver = this.hzn_1; var this_3 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bg9_1; if (this_3 == null ? true : charSequenceLength(this_3) === 0) { tmp_3 = this.fzn_1; } else { var tmp1_safe_receiver = this.hzn_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bg9_1; var tmp_4; if (tmp2_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.dzn_1.czh_1.gp9(tmp2_safe_receiver); } if (tmp_4 == null) { tmp_3 = this.dzn_1.pqn().coj(strings_getInstance().ona_1); } else { tmp_3 = null; } } } var tmp5_parentContactError = tmp_3; var tmp_5; if (this.ezn_1.i97_1.equals(new Long(0, 0))) { tmp_5 = this.fzn_1; } else { tmp_5 = null; } var tmp6_dateOfBirthError = tmp_5; var nextValue = prevValue.czi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_usernameError, VOID, tmp4_passwordError, VOID, VOID, tmp6_dateOfBirthError, tmp5_parentContactError); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.jzn_1 = tmp$ret$0; if (hasErrors_4(this.jzn_1, this.dzn_1) ? true : this.izn_1 == null) { this.dzn_1.rqn(Companion_getInstance_97().kq6_1); l$ret$3: do { var this_4 = this.dzn_1.vzg_1; while (true) { var prevValue_0 = this_4.t2(); var nextValue_0 = prevValue_0.czi(VOID, VOID, VOID, VOID, true); if (this_4.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } this.hd_1 = 9; continue $sm; } else { var tmp_6; if (!this.dzn_1.xqs_1.equals(new Long(0, 0)) ? isDateOfBirthAMinor(Companion_getInstance_6().bmh(this.ezn_1.i97_1)) : false) { var tmp_7 = Companion_getInstance_6(); var tmp0_safe_receiver_0 = this.dzn_1.pqm_1.ba('initDob'); var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_6 = !isDateOfBirthAMinor(tmp_7.bmh(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)); } else { tmp_6 = false; } if (tmp_6) { this.hd_1 = 1; suspendResult = this.dzn_1.lqn().r7f().rgt(this.ezn_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.mzn_1 = false; this.hd_1 = 2; continue $sm; } } case 1: this.nzn_1 = suspendResult; this.mzn_1 = !this.nzn_1; this.hd_1 = 2; continue $sm; case 2: if (this.mzn_1) { var tmp_8 = this; var this_5 = new PersonParentJoin(); this_5.zg8_1 = this.ezn_1.z96_1; this_5.yg8_1 = this.dzn_1.fqn().zo9().rky_1; var tmp_9 = this_5; tmp_9.eg9_1 = 1; this_5.fg9_1 = systemTimeInMillis(); tmp_8.lzn_1 = this_5; this.hd_1 = 3; continue $sm; } else { var tmp_10 = this; tmp_10.lzn_1 = null; this.hd_1 = 3; continue $sm; } case 3: this.ozn_1 = this.lzn_1; this.hd_1 = 4; var tmp_11 = this.dzn_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_11, VOID, PersonEditViewModel$onClickSave$slambda$slambda_0(this.dzn_1, this.ezn_1, this.ozn_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.pzn_1 = this.dzn_1.vzg_1.t2().mzh_1; if (!(this.pzn_1 == null)) { this.pzn_1.y97_1 = this.ezn_1.z96_1; this.pzn_1.z97_1 = systemTimeInMillis(); var tmp_12 = this; Companion_getInstance_123(); var tmp2_elvis_lhs = this.dzn_1.pqm_1.ba('initPicUri'); tmp_12.qzn_1 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; this.rzn_1 = this.pzn_1.a98_1; if (!(this.qzn_1 === this.rzn_1)) { this.hd_1 = 5; suspendResult = this.dzn_1.jqn().z7e().rh4(this.pzn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 7; continue $sm; } } else { this.hd_1 = 8; continue $sm; } case 5: this.hd_1 = 6; var tmp_13 = _get_enqueueSavePictureUseCase__rl1s31(this.dzn_1); var tmp_14 = this.ezn_1.z96_1; suspendResult = tmp_13.nor(tmp_14, 50, this.rzn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; continue $sm; case 7: this.hd_1 = 8; continue $sm; case 8: var tmp_15 = this; tmp_15.szn_1 = this.dzn_1.pqm_1.ba('goToOnPersonSelected'); if (!(this.szn_1 == null)) { var tmp_16 = UMFileUtil_getInstance().parseURLQueryString(this.szn_1); Companion_getInstance_116(); var args = plus_0(tmp_16, mapOf_0(to('personUid', this.ezn_1.z96_1.toString()))); this.dzn_1.rqm_1.dp6(substringBefore_0(this.szn_1, '?'), args); } else { this.dzn_1.zqs('PersonDetailView', this.ezn_1.z96_1, this.ezn_1); } this.hd_1 = 17; continue $sm; case 9: this.hd_1 = 10; continue $sm; case 10: this.id_1 = 13; this.id_1 = 12; this.hd_1 = 11; suspendResult = this.dzn_1.fqn().foa(this.ezn_1, this.izn_1, this.dzn_1.zzg_1, new AccountRegisterOptions(!hasFlag(this.dzn_1.xzg_1, 2) ? !this.dzn_1.izh_1 : false, this.hzn_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.dzn_1.xzg_1, 2)) { var goOptions = new UstadGoOptions('RegisterAgeRedirect', true); var this_6 = LinkedHashMap_init_$Create$(); var key = 'username'; var tmp0_elvis_lhs = this.ezn_1.a97_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.hzn_1; var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.bg9_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.dzn_1.vzg_1.t2().kzh_1; var value_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; this_6.s(key_1, value_1); Companion_getInstance_116(); putFromSavedStateIfPresent(this_6, this.dzn_1.pqm_1, 'popUpToOnFinish'); var args_0 = this_6; this.dzn_1.rqm_1.bq9('WaitForParent', args_0, goOptions); tmp_18 = Unit_instance; } else { this.dzn_1.bqu(this.dzn_1.rqm_1, appendSelectedAccount(this.dzn_1.azh_1, registeredPerson.z96_1, new LearningSpace(this.dzn_1.zzg_1)), new UstadGoOptions(VOID, VOID, true)); tmp_18 = Unit_instance; } tmp_17.kzn_1 = tmp_18; this.id_1 = 14; this.hd_1 = 16; continue $sm; case 12: this.id_1 = 13; var tmp_19 = this.kd_1; if (tmp_19 instanceof Exception) { var e = this.kd_1; if (e instanceof IllegalStateException) { l$ret$7: do { var this_7 = this.dzn_1.vzg_1; while (true) { var prevValue_1 = this_7.t2(); var nextValue_1 = prevValue_1.czi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.dzn_1.pqn().coj(strings_getInstance().un7_1)); if (this_7.s1l(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); } else { this.dzn_1.nqn().rq6(new Snack(this.dzn_1.pqn().coj(strings_getInstance().wmi_1))); } this.tzn_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 15; var tmp_20 = this; continue $sm; } else { throw this.kd_1; } case 13: this.id_1 = 14; var t = this.kd_1; this.dzn_1.rqn(Companion_getInstance_97().kq6_1); l$ret$11: do { var this_8 = this.dzn_1.vzg_1; while (true) { var prevValue_2 = this_8.t2(); var nextValue_2 = prevValue_2.czi(VOID, VOID, VOID, VOID, true); if (this_8.s1l(prevValue_2, nextValue_2)) { break l$ret$11; } } } while (false); throw t; case 14: throw this.kd_1; case 15: this.id_1 = 14; this.dzn_1.rqn(Companion_getInstance_97().kq6_1); l$ret$13: do { var this_9 = this.dzn_1.vzg_1; while (true) { var prevValue_3 = this_9.t2(); var nextValue_3 = prevValue_3.czi(VOID, VOID, VOID, VOID, true); if (this_9.s1l(prevValue_3, nextValue_3)) { break l$ret$13; } } } while (false); return Unit_instance; case 16: this.id_1 = 14; this.dzn_1.rqn(Companion_getInstance_97().kq6_1); l$ret$15: do { var this_10 = this.dzn_1.vzg_1; while (true) { var prevValue_4 = this_10.t2(); var nextValue_4 = prevValue_4.czi(VOID, VOID, VOID, VOID, true); if (this_10.s1l(prevValue_4, nextValue_4)) { break l$ret$15; } } } while (false); this.hd_1 = 17; continue $sm; case 17: return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 14) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(PersonEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new PersonEditViewModel$onClickSave$slambda(this.czn_1, this.dzn_1, this.ezn_1, this.fzn_1, completion); i.gzn_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel(di, savedStateHandle, destName) { Companion_getInstance_201(); destName = destName === VOID ? 'PersonEditView' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.vzg_1 = MutableStateFlow(new PersonEditUiState()); this.wzg_1 = asStateFlow(this.vzg_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.xzg_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.yzg_1 = Instance(this, tmp$ret$0, null).u5d(this, apiUrlConfig$factory_9()); var tmp_2 = this; Companion_getInstance_116(); var tmp0_elvis_lhs = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs_0 = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_4(this).jo2_1 : tmp0_elvis_lhs; tmp_2.zzg_1 = tmp1_elvis_lhs_0 == null ? 'http://localhost' : tmp1_elvis_lhs_0; var tmp_3 = this; Companion_getInstance_116(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('next'); tmp_3.azh_1 = tmp0_elvis_lhs_0 == null ? this.pqn().wq4() : 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.bzh_1 = Instance(this, tmp$ret$2, null).u5d(this, phoneNumValidatorUseCase$factory()); this.czh_1 = new ValidateEmailUseCase(); this.dzh_1 = new ValidateUsernameUseCase_0(); this.ezh_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.fzh_1 = Instance(this, tmp$ret$4, null).u5d(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.fqn().boa(); var trigger = this.x57(); // 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.b58(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.gzh_1 = Instance(this_0, tmp$ret$9, null).u5d(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.hzh_1 = Instance(this_1, tmp$ret$11, null).u5d(this, addNewPersonUseCase$factory()); var tmp_14 = this; Companion_getInstance_125(); 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.izh_1 = tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1; this.rqn(Companion_getInstance_97().jq6_1); var tmp_15; if (hasFlag(this.xzg_1, 1)) { tmp_15 = this.pqn().coj(strings_getInstance().jnl_1); } else { tmp_15 = _get_entityUid__ovkepw(this).equals(new Long(0, 0)) ? this.pqn().coj(strings_getInstance().pn1_1) : this.pqn().coj(strings_getInstance().qn1_1); } var title = tmp_15; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tqm_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var tmp0_navigationVisible = !hasFlag(this.xzg_1, 1); var nextValue = new AppUiState(VOID, VOID, title, tmp0_navigationVisible, true); if (this_2.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.vzg_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var nextValue_0 = prevValue_0.czi(VOID, VOID, _get_genderConfig__kyr0zc_0(this).bq7_1, VOID, VOID, VOID, this.xzg_1); if (this_3.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_16 = PersonEditViewModel$slambda_0(this, null); var tmp_17 = PersonEditViewModel$lambda(this); this.aqo(tmp_16, true, tmp_17, PersonEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(PersonEditViewModel).yz7 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vzg_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.a97_1; var tmp1_safe_receiver = this.vzg_1.t2().jzh_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a97_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.jzh_1; var tmp_2 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.f97_1; var tmp16_genderError = this.aqu(tmp_2, entity == null ? null : entity.f97_1, prevValue.xzh_1); var tmp9_safe_receiver = prevValue.jzh_1; var tmp_3 = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.b97_1; var tmp17_firstNameError = this.aqu(tmp_3, entity == null ? null : entity.b97_1, prevValue.yzh_1); var tmp11_safe_receiver = prevValue.jzh_1; var tmp_4 = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.c97_1; var tmp18_lastNameError = this.aqu(tmp_4, entity == null ? null : entity.c97_1, prevValue.zzh_1); var tmp13_safe_receiver = prevValue.jzh_1; var tmp_5 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.e97_1; var tmp19_phoneNumError = this.aqu(tmp_5, entity == null ? null : entity.e97_1, prevValue.azi_1); var tmp5_safe_receiver = prevValue.jzh_1; var tmp_6 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.d97_1; var tmp20_emailError = this.aqu(tmp_6, entity == null ? null : entity.d97_1, prevValue.tzh_1); var tmp3_safe_receiver = prevValue.jzh_1; var tmp_7 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.a97_1; var tmp21_usernameError = this.aqu(tmp_7, entity == null ? null : entity.a97_1, prevValue.qzh_1); var nextValue = prevValue.czi(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.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp_8 = this; var tmp_9 = this.gqn(); tmp_8.wqs_1 = launch(tmp_9, VOID, VOID, PersonEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonEditViewModel).uzn = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vzg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPasswordChanged.' call var nextValue = prevValue.czi(VOID, password, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).vzn = 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.vzg_1.t2().mzh_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y97_1; tmp.y97_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.a98_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.vzg_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPersonPictureChanged.' call var nextValue = prevValue.czi(VOID, VOID, VOID, personPicture); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, PersonEditViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(PersonEditViewModel).wzn = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vzg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onApprovalPersonParentJoinChanged.' call var nextValue = prevValue.czi(VOID, VOID, VOID, VOID, VOID, personParentJoin); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).xzn = function (phoneNumSet) { // Inline function 'kotlin.takeIf' call var this_0 = this.vzg_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onNationalPhoneNumSetChanged.' call if (!(this_0.t2().bzi_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.czi(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, phoneNumSet); if (tmp0_safe_receiver.s1l(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(PersonEditViewModel).os5 = function () { if (!this.vzg_1.t2().nzh_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vzg_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var nextValue = prevValue.czi(VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.rqn(Companion_getInstance_97().jq6_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.vzg_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.czi(VOID, VOID, VOID, VOID, false); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.vzg_1.t2().jzh_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.pqn().coj(strings_getInstance().rmn_1); var currentTime = systemTimeInMillis(); var isRegistrationMode = hasFlag(this.xzg_1, 1); var tmp2_safe_receiver = savePerson.d97_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.czh_1.gp9(tmp2_safe_receiver); } var validatedEmailAddr = tmp_1; var tmp_2; if (isRegistrationMode) { var tmp3_elvis_lhs = savePerson.a97_1; tmp_2 = this.dzh_1.gp9(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.vzg_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.kpo_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.pqn().coj(strings_getInstance().gmq_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.a97_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.pqn().coj(strings_getInstance().rmn_1); } else { tmp_5 = null; } var tmp4_passwordError = tmp_5; var tmp_7; if (savePerson.i97_1.c7(currentTime) > 0) { tmp_7 = this.pqn().coj(strings_getInstance().gmq_1); } else if (isRegistrationMode ? !isDateSet(savePerson.i97_1) : false) { tmp_7 = this.pqn().coj(strings_getInstance().rmn_1); } else { tmp_7 = null; } var tmp5_dateOfBirthError = tmp_7; var tmp_8; // Inline function 'kotlin.text.isNullOrEmpty' call var this_4 = savePerson.b97_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.c97_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.f97_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.vzg_1.t2().bzi_1) { var tmp2_safe_receiver_0 = savePerson.e97_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).upg(tmp2_safe_receiver_0); } tmp_13 = !(tmp_14 === true); } else { tmp_13 = false; } if (tmp_13) { tmp_12 = this.pqn().coj(strings_getInstance().gmq_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.d97_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.pqn().coj(strings_getInstance().gmq_1); } else { tmp_15 = null; } var tmp10_emailError = tmp_15; var nextValue_1 = prevValue_1.czi(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.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (hasErrors_4(this.vzg_1.t2(), this)) { this.rqn(Companion_getInstance_97().kq6_1); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_7 = this.vzg_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.czi(VOID, VOID, VOID, VOID, true); if (this_7.s1l(prevValue_2, nextValue_2)) { break $l$block_2; } } } return Unit_instance; } var tmp_17 = this.gqn(); 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().dq7_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.jzh_1 = person; this.kzh_1 = password; this.lzh_1 = genderOptions; this.mzh_1 = personPicture; this.nzh_1 = fieldsEnabled; this.ozh_1 = approvalPersonParentJoin; this.pzh_1 = registrationMode; this.qzh_1 = usernameError; this.rzh_1 = passwordConfirmedError; this.szh_1 = passwordError; this.tzh_1 = emailError; this.uzh_1 = confirmError; this.vzh_1 = dateOfBirthError; this.wzh_1 = parentContactError; this.xzh_1 = genderError; this.yzh_1 = firstNameError; this.zzh_1 = lastNameError; this.azi_1 = phoneNumError; this.bzi_1 = nationalPhoneNumSet; } protoOf(PersonEditUiState).yzn = function () { return !(this.ozh_1 == null); }; protoOf(PersonEditUiState).rze = function () { return !hasFlag(this.pzh_1, 1); }; protoOf(PersonEditUiState).gyu = function () { return hasFlag(this.pzh_1, 1); }; protoOf(PersonEditUiState).zzn = function () { return hasFlag(this.pzh_1, 1); }; protoOf(PersonEditUiState).xze = function () { return !hasFlag(this.pzh_1, 2); }; protoOf(PersonEditUiState).wze = function () { return !hasFlag(this.pzh_1, 2); }; protoOf(PersonEditUiState).vze = function () { return !hasFlag(this.pzh_1, 2); }; protoOf(PersonEditUiState).azo = 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).czi = 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.jzh_1 : person; password = password === VOID ? this.kzh_1 : password; genderOptions = genderOptions === VOID ? this.lzh_1 : genderOptions; personPicture = personPicture === VOID ? this.mzh_1 : personPicture; fieldsEnabled = fieldsEnabled === VOID ? this.nzh_1 : fieldsEnabled; approvalPersonParentJoin = approvalPersonParentJoin === VOID ? this.ozh_1 : approvalPersonParentJoin; registrationMode = registrationMode === VOID ? this.pzh_1 : registrationMode; usernameError = usernameError === VOID ? this.qzh_1 : usernameError; passwordConfirmedError = passwordConfirmedError === VOID ? this.rzh_1 : passwordConfirmedError; passwordError = passwordError === VOID ? this.szh_1 : passwordError; emailError = emailError === VOID ? this.tzh_1 : emailError; confirmError = confirmError === VOID ? this.uzh_1 : confirmError; dateOfBirthError = dateOfBirthError === VOID ? this.vzh_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.wzh_1 : parentContactError; genderError = genderError === VOID ? this.xzh_1 : genderError; firstNameError = firstNameError === VOID ? this.yzh_1 : firstNameError; lastNameError = lastNameError === VOID ? this.zzh_1 : lastNameError; phoneNumError = phoneNumError === VOID ? this.azi_1 : phoneNumError; nationalPhoneNumSet = nationalPhoneNumSet === VOID ? this.bzi_1 : nationalPhoneNumSet; return $super === VOID ? this.azo(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) : $super.azo.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.jzh_1 + ', password=' + this.kzh_1 + ', genderOptions=' + this.lzh_1 + ', personPicture=' + this.mzh_1 + ', fieldsEnabled=' + this.nzh_1 + ', approvalPersonParentJoin=' + this.ozh_1 + ', registrationMode=' + this.pzh_1 + ', usernameError=' + this.qzh_1 + ', passwordConfirmedError=' + this.rzh_1 + ', passwordError=' + this.szh_1 + ', emailError=' + this.tzh_1 + ', confirmError=' + this.uzh_1 + ', dateOfBirthError=' + this.vzh_1 + ', parentContactError=' + this.wzh_1 + ', genderError=' + this.xzh_1 + ', firstNameError=' + this.yzh_1 + ', lastNameError=' + this.zzh_1 + ', phoneNumError=' + this.azi_1 + ', nationalPhoneNumSet=' + this.bzi_1 + ')'; }; protoOf(PersonEditUiState).hashCode = function () { var result = this.jzh_1 == null ? 0 : this.jzh_1.hashCode(); result = imul(result, 31) + (this.kzh_1 == null ? 0 : getStringHashCode(this.kzh_1)) | 0; result = imul(result, 31) + hashCode(this.lzh_1) | 0; result = imul(result, 31) + (this.mzh_1 == null ? 0 : this.mzh_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.nzh_1) | 0; result = imul(result, 31) + (this.ozh_1 == null ? 0 : this.ozh_1.hashCode()) | 0; result = imul(result, 31) + this.pzh_1 | 0; result = imul(result, 31) + (this.qzh_1 == null ? 0 : getStringHashCode(this.qzh_1)) | 0; result = imul(result, 31) + (this.rzh_1 == null ? 0 : getStringHashCode(this.rzh_1)) | 0; result = imul(result, 31) + (this.szh_1 == null ? 0 : getStringHashCode(this.szh_1)) | 0; result = imul(result, 31) + (this.tzh_1 == null ? 0 : getStringHashCode(this.tzh_1)) | 0; result = imul(result, 31) + (this.uzh_1 == null ? 0 : getStringHashCode(this.uzh_1)) | 0; result = imul(result, 31) + (this.vzh_1 == null ? 0 : getStringHashCode(this.vzh_1)) | 0; result = imul(result, 31) + (this.wzh_1 == null ? 0 : getStringHashCode(this.wzh_1)) | 0; result = imul(result, 31) + (this.xzh_1 == null ? 0 : getStringHashCode(this.xzh_1)) | 0; result = imul(result, 31) + (this.yzh_1 == null ? 0 : getStringHashCode(this.yzh_1)) | 0; result = imul(result, 31) + (this.zzh_1 == null ? 0 : getStringHashCode(this.zzh_1)) | 0; result = imul(result, 31) + (this.azi_1 == null ? 0 : getStringHashCode(this.azi_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.bzi_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.jzh_1, tmp0_other_with_cast.jzh_1)) return false; if (!(this.kzh_1 == tmp0_other_with_cast.kzh_1)) return false; if (!equals(this.lzh_1, tmp0_other_with_cast.lzh_1)) return false; if (!equals(this.mzh_1, tmp0_other_with_cast.mzh_1)) return false; if (!(this.nzh_1 === tmp0_other_with_cast.nzh_1)) return false; if (!equals(this.ozh_1, tmp0_other_with_cast.ozh_1)) return false; if (!(this.pzh_1 === tmp0_other_with_cast.pzh_1)) return false; if (!(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; if (!(this.uzh_1 == tmp0_other_with_cast.uzh_1)) return false; if (!(this.vzh_1 == tmp0_other_with_cast.vzh_1)) return false; if (!(this.wzh_1 == tmp0_other_with_cast.wzh_1)) return false; if (!(this.xzh_1 == tmp0_other_with_cast.xzh_1)) return false; if (!(this.yzh_1 == tmp0_other_with_cast.yzh_1)) return false; if (!(this.zzh_1 == tmp0_other_with_cast.zzh_1)) return false; if (!(this.azi_1 == tmp0_other_with_cast.azi_1)) return false; if (!(this.bzi_1 === tmp0_other_with_cast.bzi_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.jzo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).lzo = function (learningSpaceList, $completion) { var tmp = this.mzo(learningSpaceList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.lzo((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.jzo_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pzo(VOID, this.kzo_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).mzo = function (learningSpaceList, completion) { var i = new LearningSpaceListViewModel$slambda$slambda$slambda(this.jzo_1, completion); i.kzo_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.lzo(learningSpaceList, $completion); }; l.$arity = 1; return l; } function LearningSpaceListViewModel$slambda$slambda(this$0, resultContinuation) { this.yzo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LearningSpaceListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(LearningSpaceListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.yzo_1.bzq_1.ul3(); var tmp_1 = LearningSpaceListViewModel$slambda$slambda$slambda_0(this.yzo_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(LearningSpaceListViewModel$slambda$slambda).f79 = function (completion) { return new LearningSpaceListViewModel$slambda$slambda(this.yzo_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.d88($completion); }; l.$arity = 0; return l; } function _get_impl__d88w17_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zzp_1; impl$factory_4(); return this_0.t2(); } function _get_goToLearningSpaceUseCase__yq7hh5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.azq_1; goToLearningSpaceUseCase$factory_0(); return this_0.t2(); } function Companion_185() { this.czq_1 = 'LearningSpaceList'; this.dzq_1 = 'stateUrl'; } var Companion_instance_234; function Companion_getInstance_202() { return Companion_instance_234; } function sam$kotlinx_coroutines_flow_FlowCollector$0_35(function_0) { this.ezq_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_35).n1e = function (value, $completion) { return this.ezq_1(value, $completion); }; function LearningSpaceListViewModel$slambda(this$0, resultContinuation) { this.nzq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LearningSpaceListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LearningSpaceListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.nzq_1.kqv_1, LearningSpaceListViewModel$slambda$slambda_0(this.nzq_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(LearningSpaceListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new LearningSpaceListViewModel$slambda(this.nzq_1, completion); i.ozq_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.o1n($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.zzp_1 = Instance(this, tmp$ret$0, null).u5d(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.azq_1 = Instance(this, tmp$ret$2, null).u5d(this, goToLearningSpaceUseCase$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var tmp_4 = get_direct(di).z58(); // 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.bzq_1 = tmp_4.x58(tmp$ret$4, null).rl2(); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_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).coj(strings_getInstance().fnq_1); var nextValue = prevValue.cq6(VOID, VOID, tmp0_title, false, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.kqv_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.dzq_1); var nextValue_0 = prevValue_0.pzo(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.gqn(); launch(tmp_6, VOID, VOID, LearningSpaceListViewModel$slambda_0(this, null)); } protoOf(LearningSpaceListViewModel).cwg = function () { Companion_getInstance_217(); // 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_125(); this.cqo(this_0, 'next'); this.dqo(this_0, Companion_getInstance_212().vr6_1); var tmp$ret$2 = this_0.f3(); this.rqm_1.dp6('LearningSpaceEnterLink', tmp$ret$2); }; protoOf(LearningSpaceListViewModel).pzq = function (learningSpace) { var tmp; Companion_getInstance_212(); var tmp_0 = this.pqm_1.ba('newOrExisting'); Companion_getInstance_212(); 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_125(); this.cqo(this_0, 'next'); this.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_116(); this_0.s('learningSpaceUrl', learningSpace); var args = this_0.f3(); _get_goToLearningSpaceUseCase__yq7hh5(this).api(learningSpace, this.rqm_1, args, viewName); }; protoOf(LearningSpaceListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(LearningSpaceListViewModel).fqw = function () { }; function LearningSpaceListUiState(siteLink, learningSpaces) { siteLink = siteLink === VOID ? '' : siteLink; learningSpaces = learningSpaces === VOID ? emptyList() : learningSpaces; this.nzo_1 = siteLink; this.ozo_1 = learningSpaces; } protoOf(LearningSpaceListUiState).qzq = function (siteLink, learningSpaces) { return new LearningSpaceListUiState(siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).pzo = function (siteLink, learningSpaces, $super) { siteLink = siteLink === VOID ? this.nzo_1 : siteLink; learningSpaces = learningSpaces === VOID ? this.ozo_1 : learningSpaces; return $super === VOID ? this.qzq(siteLink, learningSpaces) : $super.qzq.call(this, siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).toString = function () { return 'LearningSpaceListUiState(siteLink=' + this.nzo_1 + ', learningSpaces=' + this.ozo_1 + ')'; }; protoOf(LearningSpaceListUiState).hashCode = function () { var result = getStringHashCode(this.nzo_1); result = imul(result, 31) + hashCode(this.ozo_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.nzo_1 === tmp0_other_with_cast.nzo_1)) return false; if (!equals(this.ozo_1, tmp0_other_with_cast.ozo_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 EmptyPagingSource() { PagingSource.call(this); } protoOf(EmptyPagingSource).j55 = function (params, $completion) { var tmp = Page_init_$Create$(emptyList(), null, null); return tmp instanceof LoadResult ? tmp : THROW_CCE(); }; function PersonListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function PersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.azr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda$slambda).bqf = function (hasPermissionToList, $completion) { var tmp = this.cqf(hasPermissionToList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.azr_1.kqv_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.bzr_1) { tmp_0 = this.azr_1.gzs_1; } else { tmp_0 = PersonListViewModel$slambda$slambda$slambda$lambda; } var tmp0_personList = tmp_0; var tmp1_showInviteViaLink = !(this.azr_1.hzs_1 == null); var tmp2_inviteCode = this.azr_1.hzs_1; var tmp3_showInviteViaContact = this.azr_1.izs_1; var nextValue = prevValue.uzs(tmp0_personList, VOID, VOID, VOID, tmp1_showInviteViaLink, tmp3_showInviteViaContact, tmp2_inviteCode, this.bzr_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.azr_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.uq5_1.mq5(this.bzr_1)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonListViewModel$slambda$slambda$slambda).cqf = function (hasPermissionToList, completion) { var i = new PersonListViewModel$slambda$slambda$slambda(this.azr_1, completion); i.bzr_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.bqf(hasPermissionToList, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda$slambda($hasPermissionToListFlow, this$0, resultContinuation) { this.dzt_1 = $hasPermissionToListFlow; this.ezt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(PersonListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = distinctUntilChanged(this.dzt_1); var tmp_1 = PersonListViewModel$slambda$slambda$slambda_0(this.ezt_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonListViewModel$slambda$slambda).f79 = function (completion) { return new PersonListViewModel$slambda$slambda(this.dzt_1, this.ezt_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.d88($completion); }; l.$arity = 0; return l; } function PersonListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.nzt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda_1).at3 = function (it, $completion) { var tmp = this.bt3(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.at3(p1 instanceof PermissionPair ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_container = this.ozt_1; var hasAddPermission = tmp0_container.y6(); var hasViewAllPermission = tmp0_container.z6(); var hasBulkAddPermission = hasAddPermission ? hasViewAllPermission : false; l$ret$1: do { var this_0 = this.nzt_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.uzs(VOID, VOID, VOID, this.nzt_1.pqv().equals(ListViewMode_PICKER_getInstance()) ? hasAddPermission : false, VOID, VOID, VOID, VOID, VOID, hasBulkAddPermission); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.nzt_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(prevValue_0.nq5_1.iq6(this.nzt_1.pqv().equals(ListViewMode_BROWSER_getInstance()) ? hasAddPermission : false)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(PersonListViewModel$slambda$slambda_1).bt3 = function (it, completion) { var i = new PersonListViewModel$slambda$slambda_1(this.nzt_1, completion); i.ozt_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.at3(it, $completion); }; l.$arity = 1; return l; } function _get_setClipboardStringUseCase__31i1s1_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jzs_1; setClipboardStringUseCase$factory_4(); return this_0.t2(); } function onClickFab($this) { if ($this.kqv_1.t2().tzs_1) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickFab.' call var nextValue = prevValue.uzs(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } else { $this.fqw(); } } function Companion_186() { Companion_instance_235 = this; this.pzt_1 = 'People'; this.qzt_1 = 'PersonListHome'; this.rzt_1 = listOf(['People', 'PersonListHome']); this.szt_1 = 'exlcudeFromClazz'; this.tzt_1 = 'excludeAlreadySelectedList'; this.uzt_1 = 'showAddViaInviteLink'; this.vzt_1 = 'showAddViaContact'; this.wzt_1 = 'role'; this.xzt_1 = 'rptsl'; } var Companion_instance_235; function Companion_getInstance_203() { if (Companion_instance_235 == null) new Companion_186(); return Companion_instance_235; } function sam$kotlinx_coroutines_flow_FlowCollector$0_36(function_0) { this.yzt_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_36).n1e = function (value, $completion) { return this.yzt_1(value, $completion); }; function PersonListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.lqn().h7e().ig5(getSystemTimeInMillis(), this$0.czs_1, this$0.ezs_1, this$0.hqn(), this$0.kqv_1.t2().mzs_1.jqc_1, toQueryLikeParam(this$0.tqm_1.t2().uq5_1.jq5_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.hzu_1 = this$0; this.izu_1 = $hasPermissionToListFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.hzu_1.kqv_1, PersonListViewModel$slambda$slambda_0(this.izu_1, this.hzu_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new PersonListViewModel$slambda(this.hzu_1, this.izu_1, completion); i.jzu_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda_1(this$0, resultContinuation) { this.szu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonListViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.szu_1.lqn().j7g(); var tmp_1 = this.szu_1.hqn(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); var tmp_3 = tmp_0.ti0(tmp_1, tmp_2, new Long(8192, 0)); var tmp_4 = PersonListViewModel$slambda$slambda_2(this.szu_1, null); suspendResult = tmp_3.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(PersonListViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new PersonListViewModel$slambda_1(this.szu_1, completion); i.tzu_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function PersonListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_203(); 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.czs_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.dzs_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.ezs_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.fzs_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_6 = this; tmp_6.gzs_1 = PersonListViewModel$pagingSourceFactory$lambda(this); this.hzs_1 = savedStateHandle.ba('showAddViaInviteLink'); this.izs_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.jzs_1 = Instance(this, tmp$ret$9, null).u5d(this, setClipboardStringUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.' call var tmp1_searchState = this.sqw(false); Companion_getInstance_125(); var tmp0_elvis_lhs = savedStateHandle.ba('t'); var tmp2_title = tmp0_elvis_lhs == null ? this.bqx(strings_getInstance().rmu_1, strings_getInstance().mnl_1) : tmp0_elvis_lhs; var tmp_9 = this.pqn().coj(strings_getInstance().on1_1); var tmp_10 = FabIcon_ADD_getInstance(); var tmp3_fabState = new FabUiState(VOID, tmp_9, tmp_10, PersonListViewModel$onClickFab$ref(this)); var nextValue = prevValue.cq6(tmp3_fabState, VOID, tmp2_title, true, VOID, VOID, VOID, tmp1_searchState); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_11; if (this.fzs_1.equals(new Long(0, 0))) { tmp_11 = flowOf(true); } else { tmp_11 = this.lqn().j7g().si0(this.hqn(), this.fzs_1); } var hasPermissionToListFlow = tmp_11; var tmp_12 = this.gqn(); launch(tmp_12, VOID, VOID, PersonListViewModel$slambda_0(this, hasPermissionToListFlow, null)); var tmp_13 = this.gqn(); launch(tmp_13, VOID, VOID, PersonListViewModel$slambda_2(this, null)); } protoOf(PersonListViewModel).eqw = function (searchText) { this.mqv_1.c1i(new RefreshCommand()); }; protoOf(PersonListViewModel).bsv = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.uzs(VOID, VOID, sortOption); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.mqv_1.c1i(new RefreshCommand()); }; protoOf(PersonListViewModel).uzu = function () { if (this.hzs_1 == null) return Unit_instance; Companion_getInstance_125(); this.rqm_1.dp6('InviteWithLink', mapOf_0(to('inviteCode', this.hzs_1))); }; protoOf(PersonListViewModel).vzu = function () { var tmp0_safe_receiver = this.kqv_1.t2().qzs_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).ip1(tmp0_safe_receiver); this.nqn().rq6(new Snack(this.pqn().coj(strings_getInstance().rn8_1))); } }; protoOf(PersonListViewModel).wzu = 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.dzs_1.toString()); this_0.s('clazz_uid', this.czs_1.toString()); var args = this_0.f3(); this.rqm_1.dp6('invite_via_contact', args); }; protoOf(PersonListViewModel).xzu = function () { this.rqm_1.dp6('BulkAddPersonSelectFile', emptyMap()); }; protoOf(PersonListViewModel).fqw = function () { Companion_getInstance_201(); var tmp0_safe_receiver = this.pqm_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.xqw('PersonEditView', tmp1_elvis_lhs == null ? emptyMap() : tmp1_elvis_lhs); }; protoOf(PersonListViewModel).yzu = function (entry) { var goToOnPersonSelected = this.pqm_1.ba('goToOnPersonSelected'); if (!(goToOnPersonSelected == null)) { var tmp = UMFileUtil_getInstance().parseURLQueryString(goToOnPersonSelected); Companion_getInstance_116(); var args = plus_0(tmp, mapOf_0(to('personUid', entry.z96_1.toString()))); var goToDestName = substringBefore_0(goToOnPersonSelected, '?'); var popUpTo = this.pqm_1.ba('popUpToOnPersonSelected'); this.rqm_1.bq9(goToDestName, args, new UstadGoOptions(popUpTo, true)); } else { this.aqx('PersonDetailView', entry.z96_1, entry); } }; protoOf(PersonListViewModel).zzu = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kqv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onDismissAddSheetOrDialog.' call var nextValue = prevValue.uzs(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; 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().ymj_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().ymj_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().xmj_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().xmj_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.kzs_1 = personList; this.lzs_1 = sortOptions; this.mzs_1 = sortOption; this.nzs_1 = showAddItem; this.ozs_1 = showInviteViaLink; this.pzs_1 = showInviteViaContact; this.qzs_1 = inviteCode; this.rzs_1 = showSortOptions; this.szs_1 = addSheetOrDialogVisible; this.tzs_1 = hasBulkImportPermission; } protoOf(PersonListUiState).azv = 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).uzs = function (personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission, $super) { personList = personList === VOID ? this.kzs_1 : personList; sortOptions = sortOptions === VOID ? this.lzs_1 : sortOptions; sortOption = sortOption === VOID ? this.mzs_1 : sortOption; showAddItem = showAddItem === VOID ? this.nzs_1 : showAddItem; showInviteViaLink = showInviteViaLink === VOID ? this.ozs_1 : showInviteViaLink; showInviteViaContact = showInviteViaContact === VOID ? this.pzs_1 : showInviteViaContact; inviteCode = inviteCode === VOID ? this.qzs_1 : inviteCode; showSortOptions = showSortOptions === VOID ? this.rzs_1 : showSortOptions; addSheetOrDialogVisible = addSheetOrDialogVisible === VOID ? this.szs_1 : addSheetOrDialogVisible; hasBulkImportPermission = hasBulkImportPermission === VOID ? this.tzs_1 : hasBulkImportPermission; return $super === VOID ? this.azv(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) : $super.azv.call(this, personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission); }; protoOf(PersonListUiState).toString = function () { return 'PersonListUiState(personList=' + this.kzs_1 + ', sortOptions=' + this.lzs_1 + ', sortOption=' + this.mzs_1 + ', showAddItem=' + this.nzs_1 + ', showInviteViaLink=' + this.ozs_1 + ', showInviteViaContact=' + this.pzs_1 + ', inviteCode=' + this.qzs_1 + ', showSortOptions=' + this.rzs_1 + ', addSheetOrDialogVisible=' + this.szs_1 + ', hasBulkImportPermission=' + this.tzs_1 + ')'; }; protoOf(PersonListUiState).hashCode = function () { var result = hashCode(this.kzs_1); result = imul(result, 31) + hashCode(this.lzs_1) | 0; result = imul(result, 31) + this.mzs_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.nzs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ozs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.pzs_1) | 0; result = imul(result, 31) + (this.qzs_1 == null ? 0 : getStringHashCode(this.qzs_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.rzs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.szs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.tzs_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.kzs_1, tmp0_other_with_cast.kzs_1)) return false; if (!equals(this.lzs_1, tmp0_other_with_cast.lzs_1)) return false; if (!this.mzs_1.equals(tmp0_other_with_cast.mzs_1)) return false; if (!(this.nzs_1 === tmp0_other_with_cast.nzs_1)) return false; if (!(this.ozs_1 === tmp0_other_with_cast.ozs_1)) return false; if (!(this.pzs_1 === tmp0_other_with_cast.pzs_1)) return false; if (!(this.qzs_1 == tmp0_other_with_cast.qzs_1)) return false; if (!(this.rzs_1 === tmp0_other_with_cast.rzs_1)) return false; if (!(this.szs_1 === tmp0_other_with_cast.szs_1)) return false; if (!(this.tzs_1 === tmp0_other_with_cast.tzs_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.jzv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda$slambda).lzv = function (it, $completion) { var tmp = this.mzv(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ManageAccountViewModel$slambda$slambda).he = function (p1, $completion) { return this.lzv((p1 == null ? true : p1 instanceof PersonAuth2) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.jzv_1.mzw_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wzw(VOID, VOID, VOID, VOID, VOID, this.kzv_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ManageAccountViewModel$slambda$slambda).mzv = function (it, completion) { var i = new ManageAccountViewModel$slambda$slambda(this.jzv_1, completion); i.kzv_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.lzv(it, $completion); }; l.$arity = 1; return l; } function ManageAccountViewModel$slambda$slambda_1(this$0, resultContinuation) { this.fzx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda$slambda_1).hzx = function (it, $completion) { var tmp = this.izx(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ManageAccountViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.hzx((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.fzx_1.mzw_1; while (true) { var prevValue = this_0.t2(); var tmp0_showCreatePasskey = this.gzx_1.c1(); var tmp1_passkeyCount = this.gzx_1.u(); var nextValue = prevValue.wzw(tmp1_passkeyCount, tmp0_showCreatePasskey); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ManageAccountViewModel$slambda$slambda_1).izx = function (it, completion) { var i = new ManageAccountViewModel$slambda$slambda_1(this.fzx_1, completion); i.gzx_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.hzx(it, $completion); }; l.$arity = 1; return l; } function _get_apiUrlConfig__mldllg_5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lzw_1; apiUrlConfig$factory_12(); return this_0.t2(); } function _get_createPasskeyUseCase__ryoxza($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nzw_1; createPasskeyUseCase$factory_0(); return this_0.t2(); } function Companion_187() { this.jzx_1 = 'ManageAccount'; this.kzx_1 = 'PersonFullName'; this.lzx_1 = 'PersonUsername'; } var Companion_instance_236; function Companion_getInstance_204() { return Companion_instance_236; } function sam$kotlinx_coroutines_flow_FlowCollector$0_37(function_0) { this.mzx_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_37).n1e = function (value, $completion) { return this.mzx_1(value, $completion); }; function ManageAccountViewModel$slambda(this$0, resultContinuation) { this.vzx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ManageAccountViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.vzx_1.iqn().uk2().u7f().tg0(this.vzx_1.izw_1); var tmp_1 = ManageAccountViewModel$slambda$slambda_0(this.vzx_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ManageAccountViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ManageAccountViewModel$slambda(this.vzx_1, completion); i.wzx_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ManageAccountViewModel$slambda_1($di, this$0, resultContinuation) { this.fzy_1 = $di; this.gzy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ManageAccountViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ManageAccountViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ManageAccountViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var this_0 = this.fzy_1; var context = new LearningSpace(_get_apiUrlConfig__mldllg_5(this.gzy_1).io2_1); var trigger = this_0.x57(); 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.b58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).z58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.izy_1 = tmp_3.x58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null).tk2(); this.jzy_1 = this.izy_1.v7g().oh0(this.gzy_1.fqn().zo9().rky_1); this.hd_1 = 1; var tmp_5 = ManageAccountViewModel$slambda$slambda_2(this.gzy_1, null); suspendResult = this.jzy_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ManageAccountViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new ManageAccountViewModel$slambda_1(this.fzy_1, this.gzy_1, completion); i.hzy_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ManageAccountViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ManageAccount'); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.izw_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.jzw_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp_1 = this; var tmp0_elvis_lhs_0 = savedStateHandle.ba('PersonUsername'); tmp_1.kzw_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.lzw_1 = Instance(this, tmp$ret$0, null).u5d(this, apiUrlConfig$factory_11()); this.mzw_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.nzw_1 = InstanceOrNull(this, tmp$ret$2, null).u5d(this, createPasskeyUseCase$factory()); this.ozw_1 = asStateFlow(this.mzw_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).io2_1); var trigger = di.x57(); // 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.b58(tmp$ret$4, context); var tmp$ret$6 = On(di, tmp$ret$5, trigger); var tmp_9 = get_direct(tmp$ret$6).z58(); // 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.pzw_1 = tmp_9.y58(tmp$ret$7, null); var tmp_11 = this.gqn(); launch(tmp_11, VOID, VOID, ManageAccountViewModel$slambda_0(this, null)); var tmp_12; if (savedStateHandle.ba('listMode') === ListViewMode_PICKER_getInstance().pqj_1) { tmp_12 = this.pqn().coj(strings_getInstance().pna_1); } else { tmp_12 = this.pqn().coj(strings_getInstance().tml_1); } var tmp0_title = tmp_12; this.tqm_1.r1l(new AppUiState(VOID, VOID, tmp0_title, false, VOID, VOID, false)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.mzw_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.manageaccount.ManageAccountViewModel.' call var tmp0_personUsername = this.kzw_1; var tmp1_personName = this.jzw_1; var tmp2_passkeySupported = !(_get_createPasskeyUseCase__ryoxza(this) == null) ? this.fqn().zo9().rky_1.equals(this.izw_1) : false; var nextValue = prevValue.wzw(VOID, VOID, tmp2_passkeySupported, tmp1_personName, tmp0_personUsername); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_13 = this.gqn(); launch(tmp_13, VOID, VOID, ManageAccountViewModel$slambda_2(di, this, null)); } protoOf(ManageAccountViewModel).kzy = function () { Companion_getInstance_125(); this.rqm_1.dp6('AccountEdit', mapOf_0(to('entityUid', this.izw_1.toString()))); }; function ManageAccountUiState(passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth) { 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; this.qzw_1 = passkeyCount; this.rzw_1 = showCreatePasskey; this.szw_1 = passkeySupported; this.tzw_1 = personName; this.uzw_1 = personUsername; this.vzw_1 = personAuth; } protoOf(ManageAccountUiState).lzy = function (passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth) { return new ManageAccountUiState(passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth); }; protoOf(ManageAccountUiState).wzw = function (passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth, $super) { passkeyCount = passkeyCount === VOID ? this.qzw_1 : passkeyCount; showCreatePasskey = showCreatePasskey === VOID ? this.rzw_1 : showCreatePasskey; passkeySupported = passkeySupported === VOID ? this.szw_1 : passkeySupported; personName = personName === VOID ? this.tzw_1 : personName; personUsername = personUsername === VOID ? this.uzw_1 : personUsername; personAuth = personAuth === VOID ? this.vzw_1 : personAuth; return $super === VOID ? this.lzy(passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth) : $super.lzy.call(this, passkeyCount, showCreatePasskey, passkeySupported, personName, personUsername, personAuth); }; protoOf(ManageAccountUiState).toString = function () { return 'ManageAccountUiState(passkeyCount=' + this.qzw_1 + ', showCreatePasskey=' + this.rzw_1 + ', passkeySupported=' + this.szw_1 + ', personName=' + this.tzw_1 + ', personUsername=' + this.uzw_1 + ', personAuth=' + this.vzw_1 + ')'; }; protoOf(ManageAccountUiState).hashCode = function () { var result = this.qzw_1; result = imul(result, 31) + getBooleanHashCode(this.rzw_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.szw_1) | 0; result = imul(result, 31) + getStringHashCode(this.tzw_1) | 0; result = imul(result, 31) + getStringHashCode(this.uzw_1) | 0; result = imul(result, 31) + (this.vzw_1 == null ? 0 : hashCode(this.vzw_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.qzw_1 === tmp0_other_with_cast.qzw_1)) return false; if (!(this.rzw_1 === tmp0_other_with_cast.rzw_1)) return false; if (!(this.szw_1 === tmp0_other_with_cast.szw_1)) return false; if (!(this.tzw_1 === tmp0_other_with_cast.tzw_1)) return false; if (!(this.uzw_1 === tmp0_other_with_cast.uzw_1)) return false; if (!equals(this.vzw_1, tmp0_other_with_cast.vzw_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_188() { this.mzy_1 = 'RegisterAgeRedirect'; } var Companion_instance_237; function Companion_getInstance_205() { return Companion_instance_237; } function RegisterAgeRedirectViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.cwg(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function RegisterAgeRedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'RegisterAgeRedirect'); this.izz_1 = MutableStateFlow(new RegisterAgeRedirectUiState(VOID, systemTimeInMillis())); this.jzz_1 = asStateFlow(this.izz_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.' call var tmp0_title = this.pqn().coj(strings_getInstance().unp_1); var tmp = this.pqn().coj(strings_getInstance().rmj_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, RegisterAgeRedirectViewModel$onClickNext$ref(this)); var nextValue = prevValue.cq6(VOID, VOID, tmp0_title, false, VOID, VOID, false, VOID, tmp1_actionBarButtonState); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } } protoOf(RegisterAgeRedirectViewModel).kzz = function (date) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.izz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onSetDate.' call var nextValue = prevValue.ozz(date, VOID, !prevValue.lzz_1.equals(date) ? null : prevValue.nzz_1); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(RegisterAgeRedirectViewModel).cwg = function () { var date = this.izz_1.t2().lzz_1; if (date.equals(new Long(0, 0))) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.izz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onClickNext.' call var nextValue = prevValue.ozz(VOID, VOID, this.pqn().coj(strings_getInstance().rmn_1)); if (this_0.s1l(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.izz_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.ozz(VOID, VOID, this.pqn().coj(strings_getInstance().gmq_1)); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var dateOfBirthInstant = Companion_getInstance_6().bmh(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.dqo(this_3, Companion_getInstance_212().vr6_1); Companion_getInstance_125(); this.cqo(this_3, 'next'); this_3.s('showAccept', 'true'); Companion_getInstance_201(); this_3.s('DateOfBirth', date.toString()); var args = this_3.f3(); if (!isMinor) { this.rqm_1.dp6('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.lzz_1 = dateOfBirth; this.mzz_1 = maxDate; this.nzz_1 = dateOfBirthError; } protoOf(RegisterAgeRedirectUiState).pzz = function (dateOfBirth, maxDate, dateOfBirthError) { return new RegisterAgeRedirectUiState(dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).ozz = function (dateOfBirth, maxDate, dateOfBirthError, $super) { dateOfBirth = dateOfBirth === VOID ? this.lzz_1 : dateOfBirth; maxDate = maxDate === VOID ? this.mzz_1 : maxDate; dateOfBirthError = dateOfBirthError === VOID ? this.nzz_1 : dateOfBirthError; return $super === VOID ? this.pzz(dateOfBirth, maxDate, dateOfBirthError) : $super.pzz.call(this, dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).toString = function () { return 'RegisterAgeRedirectUiState(dateOfBirth=' + this.lzz_1.toString() + ', maxDate=' + this.mzz_1.toString() + ', dateOfBirthError=' + this.nzz_1 + ')'; }; protoOf(RegisterAgeRedirectUiState).hashCode = function () { var result = this.lzz_1.hashCode(); result = imul(result, 31) + this.mzz_1.hashCode() | 0; result = imul(result, 31) + (this.nzz_1 == null ? 0 : getStringHashCode(this.nzz_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.lzz_1.equals(tmp0_other_with_cast.lzz_1)) return false; if (!this.mzz_1.equals(tmp0_other_with_cast.mzz_1)) return false; if (!(this.nzz_1 == tmp0_other_with_cast.nzz_1)) return false; return true; }; function Companion_189() { this.qzz_1 = 'WaitForParent'; this.rzz_1 = 'username'; this.szz_1 = 'password'; this.tzz_1 = 'parentContact'; } var Companion_instance_238; function Companion_getInstance_206() { return Companion_instance_238; } function RegisterMinorWaitForParentViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'WaitForParent'); this.p100_1 = MutableStateFlow(new RegisterMinorWaitForParentUiState()); this.q100_1 = asStateFlow(this.p100_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerminorwaitforparent.RegisterMinorWaitForParentViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().jmk_1), false, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.p100_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.u100(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(RegisterMinorWaitForParentViewModel).v100 = function () { this.rqm_1.cq9('WaitForParent', true); }; function RegisterMinorWaitForParentUiState(username, password, parentContact) { username = username === VOID ? '' : username; password = password === VOID ? '' : password; parentContact = parentContact === VOID ? '' : parentContact; this.r100_1 = username; this.s100_1 = password; this.t100_1 = parentContact; } protoOf(RegisterMinorWaitForParentUiState).u100 = function (username, password, parentContact) { return new RegisterMinorWaitForParentUiState(username, password, parentContact); }; protoOf(RegisterMinorWaitForParentUiState).toString = function () { return 'RegisterMinorWaitForParentUiState(username=' + this.r100_1 + ', password=' + this.s100_1 + ', parentContact=' + this.t100_1 + ')'; }; protoOf(RegisterMinorWaitForParentUiState).hashCode = function () { var result = getStringHashCode(this.r100_1); result = imul(result, 31) + getStringHashCode(this.s100_1) | 0; result = imul(result, 31) + getStringHashCode(this.t100_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.r100_1 === tmp0_other_with_cast.r100_1)) return false; if (!(this.s100_1 === tmp0_other_with_cast.s100_1)) return false; if (!(this.t100_1 === tmp0_other_with_cast.t100_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.x57(); // 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.b58(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).z58(); // 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.x58(tmp$ret$3, null); }; } function _get_apiUrlConfig__mldllg_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t101_1; apiUrlConfig$factory_14(); return this_0.t2(); } function Companion_190() { this.u101_1 = ''; } var Companion_instance_239; function Companion_getInstance_207() { return Companion_instance_239; } function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1(function_0) { this.v101_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1).lpi = function (url, target) { return this.v101_1(url, target); }; function RedirectViewModel$slambda(this$0, $destinationArg, $destination, $di, resultContinuation) { this.e102_1 = this$0; this.f102_1 = $destinationArg; this.g102_1 = $destination; this.h102_1 = $di; CoroutineImpl.call(this, resultContinuation); } protoOf(RedirectViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(RedirectViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(RedirectViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_$receiver = this.e102_1.rqm_1; var tmp1_accountManager = this.e102_1.fqn(); var tmp_0 = RedirectViewModel$slambda$lambda; var tmp2_openExternalLinkUseCase = new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1(tmp_0); var tmp3_userCanSelectServer = _get_apiUrlConfig__mldllg_6(this.e102_1).lo2_1; var tmp4_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp5_forceAccountSelection = !(this.f102_1 == null); var tmp6_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_6(this.e102_1).jo2_1; navigateToLink(tmp0_$receiver, this.g102_1, tmp1_accountManager, tmp2_openExternalLinkUseCase, tmp4_goOptions, tmp5_forceAccountSelection, tmp3_userCanSelectServer, VOID, VOID, VOID, VOID, tmp6_presetLearningSpaceUrl, RedirectViewModel$slambda$lambda_0(this.h102_1)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(RedirectViewModel$slambda).p1n = function ($this$launch, completion) { var i = new RedirectViewModel$slambda(this.e102_1, this.f102_1, this.g102_1, this.h102_1, completion); i.i102_1 = $this$launch; return i; }; function RedirectViewModel$slambda_0(this$0, $destinationArg, $destination, $di, resultContinuation) { var i = new RedirectViewModel$slambda(this$0, $destinationArg, $destination, $di, resultContinuation); var l = function ($this$launch, $completion) { return i.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function RedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, ''); var tmp = this; Companion_getInstance_116(); tmp.r101_1 = savedStateHandle.ba('next'); var tmp_0 = this; Companion_getInstance_116(); tmp_0.s101_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.t101_1 = Instance(this, tmp$ret$0, null).u5d(this, apiUrlConfig$factory_13()); this.tqm_1.r1l(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, VOID, VOID, VOID, VOID, true)); var tmp0_elvis_lhs = this.s101_1; var destinationArg = tmp0_elvis_lhs == null ? this.r101_1 : tmp0_elvis_lhs; var activeLearningSpace = this.fqn().boa(); if (!contains(activeLearningSpace.mnt_1, 'localhost')) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var tmp_3 = get_direct(di).z58(); // 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.b58(tmp$ret$2, activeLearningSpace); var tmp_6 = tmp_3.w58(tmp$ret$3).z58(); // 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.x58(tmp$ret$5, 1); println(db); } var tmp_8; if (destinationArg == null) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.fqn().ko9().fnu_1; var trigger = di.x57(); // 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.b58(tmp$ret$7, context); var tmp$ret$9 = On(di, tmp$ret$8, trigger); var tmp_11 = get_direct(tmp$ret$9).z58(); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(GetDefaultDestinationUseCase), arrayOf([]), false)); var tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_8 = tmp_11.x58(tmp$ret$10, null).jpe(); } else { tmp_8 = destinationArg; } var destination = tmp_8; var tmp_13 = this.gqn(); launch(tmp_13, VOID, VOID, RedirectViewModel$slambda_0(this, destinationArg, destination, di, 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).s102 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.s102(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ScheduleEditViewModel$slambda$slambda).ony = function (it, completion) { var i = new ScheduleEditViewModel$slambda$slambda(completion); i.r102_1 = it; return i; }; function ScheduleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ScheduleEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.s102(it, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.b103_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda_1).e103 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.e103($completion); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; tmp_0.c103_1 = new Schedule(); var tmp_1 = this; tmp_1.d103_1 = this.c103_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.b103_1.jqn()); suspendResult = tmp_2.i63(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.d103_1.nhf_1 = ARGUMENT; this.d103_1.zhf_1 = true; this.d103_1.shf_1 = Companion_instance_29.tkv_1; return this.c103_1; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).f79 = function (completion) { return new ScheduleEditViewModel$slambda$slambda_1(this.b103_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.e103($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.c104_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel...' call var nextValue = prevValue.i104(schedule); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_191() { this.j104_1 = 'ScheduleEdit'; } var Companion_instance_240; function Companion_getInstance_208() { return Companion_instance_240; } function ScheduleEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ScheduleEditViewModel$slambda(this$0, resultContinuation) { this.s104_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.u104_1 = Companion_instance_29.h4s(); this.hd_1 = 1; var tmp_0 = ScheduleEditViewModel$slambda$slambda_0(null); var tmp_1 = ScheduleEditViewModel$slambda$slambda_2(this.s104_1, null); suspendResult = this.s104_1.zqn(this.u104_1, VOID, VOID, tmp_0, tmp_1, ScheduleEditViewModel$slambda$lambda(this.s104_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.s104_1.c104_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.i104(VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ScheduleEditViewModel$slambda).p1n = function ($this$launch, completion) { var i = new ScheduleEditViewModel$slambda(this.s104_1, completion); i.t104_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.d105_1 = $commitDelay; this.e105_1 = $entity; this.f105_1 = $this; this.g105_1 = $key; this.h105_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.d105_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.e105_1 == null)) { this.hd_1 = 2; suspendResult = this.f105_1.vqn(this.f105_1.pqm_1, this.g105_1, this.h105_1, this.e105_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(ScheduleEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new ScheduleEditViewModel$onEntityChanged$slambda(this.d105_1, this.e105_1, this.f105_1, this.g105_1, this.h105_1, completion); i.i105_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ScheduleEdit'); this.c104_1 = MutableStateFlow(new ScheduleEditUiState(VOID, VOID, VOID, false)); this.d104_1 = asStateFlow(this.c104_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.' call var tmp0_title = this.zqt(strings_getInstance().xmu_1, strings_getInstance().ymu_1); var tmp = this.pqn().coj(strings_getInstance().pmr_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, ScheduleEditViewModel$onClickSave$ref(this)); var nextValue = prevValue.cq6(VOID, VOID, tmp0_title, VOID, true, VOID, VOID, VOID, tmp1_actionBarButtonState); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, ScheduleEditViewModel$slambda_0(this, null)); } protoOf(ScheduleEditViewModel).j105 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.c104_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.e104_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ohf_1; var tmp4_toTimeError = this.aqu(tmp, entity == null ? null : entity.ohf_1, prevValue.g104_1); var tmp0_safe_receiver = prevValue.e104_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.phf_1; var tmp5_fromTimeError = this.aqu(tmp_0, entity == null ? null : entity.phf_1, prevValue.f104_1); var nextValue = prevValue.i104(entity, tmp5_fromTimeError, tmp4_toTimeError); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_29.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_1 = this; var tmp_2 = this.gqn(); tmp_1.wqs_1 = launch(tmp_2, VOID, VOID, ScheduleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ScheduleEditViewModel).os5 = function () { var tmp0_elvis_lhs = this.c104_1.t2().e104_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.c104_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onClickSave.' call var tmp_0; if (schedule.ohf_1.equals(new Long(0, 0))) { tmp_0 = this.pqn().coj(strings_getInstance().rmn_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; if (schedule.phf_1.equals(new Long(0, 0))) { tmp_2 = this.pqn().coj(strings_getInstance().rmn_1); } else if (schedule.phf_1.c7(schedule.ohf_1) <= 0) { tmp_2 = this.pqn().coj(strings_getInstance().on9_1); } else { tmp_2 = null; } var nextValue = prevValue.i104(VOID, tmp_1, tmp_2); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } if (this.c104_1.t2().f104_1 == null ? this.c104_1.t2().g104_1 == null : false) { this.aqt(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.e104_1 = entity; this.f104_1 = fromTimeError; this.g104_1 = toTimeError; this.h104_1 = fieldsEnabled; } protoOf(ScheduleEditUiState).k105 = function (entity, fromTimeError, toTimeError, fieldsEnabled) { return new ScheduleEditUiState(entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).i104 = function (entity, fromTimeError, toTimeError, fieldsEnabled, $super) { entity = entity === VOID ? this.e104_1 : entity; fromTimeError = fromTimeError === VOID ? this.f104_1 : fromTimeError; toTimeError = toTimeError === VOID ? this.g104_1 : toTimeError; fieldsEnabled = fieldsEnabled === VOID ? this.h104_1 : fieldsEnabled; return $super === VOID ? this.k105(entity, fromTimeError, toTimeError, fieldsEnabled) : $super.k105.call(this, entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).toString = function () { return 'ScheduleEditUiState(entity=' + this.e104_1 + ', fromTimeError=' + this.f104_1 + ', toTimeError=' + this.g104_1 + ', fieldsEnabled=' + this.h104_1 + ')'; }; protoOf(ScheduleEditUiState).hashCode = function () { var result = this.e104_1 == null ? 0 : this.e104_1.hashCode(); result = imul(result, 31) + (this.f104_1 == null ? 0 : getStringHashCode(this.f104_1)) | 0; result = imul(result, 31) + (this.g104_1 == null ? 0 : getStringHashCode(this.g104_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.h104_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.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 (!(this.h104_1 === tmp0_other_with_cast.h104_1)) return false; return true; }; function Companion_192() { this.l105_1 = 'DevSettings'; this.m105_1 = 'showDevSettings'; } var Companion_instance_241; function Companion_getInstance_209() { return Companion_instance_241; } function SettingsViewModel$slambda$slambda(this$0, resultContinuation) { this.v105_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda$slambda).bqf = function (siteAdminSettingsVisible, $completion) { var tmp = this.cqf(siteAdminSettingsVisible, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda$slambda).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.v105_1.s106_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.d108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.w105_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SettingsViewModel$slambda$slambda).cqf = function (siteAdminSettingsVisible, completion) { var i = new SettingsViewModel$slambda$slambda(this.v105_1, completion); i.w105_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.bqf(siteAdminSettingsVisible, $completion); }; l.$arity = 1; return l; } function _get_supportedLangConfig__llzj1v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.u106_1; supportedLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.v106_1; setLanguageUseCase$factory_4(); return this_0.t2(); } function _get_getHtmlContentDisplayOptsUseCase__lppxoi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x106_1; getHtmlContentDisplayOptsUseCase$factory_0(); return this_0.t2(); } function _get_getHtmlContentDisplaySettingUseCase__usawf4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.y106_1; getHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_setHtmlContentDisplaySettingUseCase__8cgzqk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.z106_1; setHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.a107_1; getVersionUseCase$factory_4(); return this_0.t2(); } function _get_getStorageOptionsUseCase__v5dedp($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.b107_1; getStorageOptionsUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageSettingUseCase__5c8mhw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.c107_1; getOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_setOfflineStorageSettingUseCase__lx9or4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.d107_1; setOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageAvailableSpace__om40zq($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.e107_1; getOfflineStorageAvailableSpace$factory_0(); return this_0.t2(); } function _get_settings__lbkut4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.g107_1; settings$factory_0(); return this_0.t2(); } function _get_zipFileUseCase__jhxb01($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.h107_1; zipFileUseCase$factory_0(); return this_0.t2(); } function Companion_193() { this.e108_1 = 'Settings'; } var Companion_instance_242; function Companion_getInstance_210() { return Companion_instance_242; } function sam$kotlinx_coroutines_flow_FlowCollector$0_38(function_0) { this.f108_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_38).n1e = function (value, $completion) { return this.f108_1(value, $completion); }; function SettingsViewModel$slambda(this$0, resultContinuation) { this.o108_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; var tmp_0 = this; var tmp0_safe_receiver = _get_getStorageOptionsUseCase__v5dedp(this.o108_1); tmp_0.q108_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jpe(); var tmp_1 = this; var tmp1_safe_receiver = _get_getOfflineStorageSettingUseCase__5c8mhw(this.o108_1); tmp_1.r108_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jpe(); if (!(this.q108_1 == null)) { var tmp_2 = this; tmp_2.s108_1 = this.q108_1; var tmp_3 = this; tmp_3.t108_1 = this.s108_1; var tmp_4 = this; tmp_4.u108_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.s108_1, 10)); this.v108_1 = this.t108_1.w(); this.hd_1 = 1; continue $sm; } else { this.hd_1 = 5; continue $sm; } case 1: if (!this.v108_1.f()) { this.hd_1 = 4; continue $sm; } this.w108_1 = this.v108_1.e(); var tmp_5 = this; tmp_5.x108_1 = this.w108_1; this.y108_1 = _get_getOfflineStorageAvailableSpace__om40zq(this.o108_1); if (this.y108_1 == null) { this.z108_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.y108_1.ipm(this.x108_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.z108_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: var tmp1_elvis_lhs = this.z108_1; var ARGUMENT = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var ARGUMENT_0 = new SettingsOfflineStorageOption(this.x108_1, ARGUMENT); this.u108_1.i1(ARGUMENT_0); this.hd_1 = 1; continue $sm; case 4: var optionsWithSpace = this.u108_1; l$ret$1: do { var this_0 = this.o108_1.s106_1; while (true) { var prevValue = this_0.t2(); var tmp0_elvis_lhs = this.r108_1; var nextValue = prevValue.d108(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.q108_1) : tmp0_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 5; continue $sm; case 5: return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 6) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SettingsViewModel$slambda).p1n = function ($this$launch, completion) { var i = new SettingsViewModel$slambda(this.o108_1, completion); i.p108_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel$slambda_1(this$0, resultContinuation) { this.i109_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SettingsViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.i109_1.lqn().j7g(); var tmp_1 = this.i109_1.hqn(); PermissionFlags_getInstance(); var tmp_2 = tmp_0.si0(tmp_1, new Long(16384, 0)); var tmp_3 = SettingsViewModel$slambda$slambda_0(this.i109_1, null); suspendResult = tmp_2.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SettingsViewModel$slambda_1).p1n = function ($this$launch, completion) { var i = new SettingsViewModel$slambda_1(this.i109_1, completion); i.j109_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Settings'); this.s106_1 = MutableStateFlow(new SettingsUiState()); this.t106_1 = asStateFlow(this.s106_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.u106_1 = Instance(this, tmp$ret$0, null).u5d(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.v106_1 = Instance(this, tmp$ret$2, null).u5d(this, setLanguageUseCase$factory_3()); this.w106_1 = _get_supportedLangConfig__llzj1v(this).qq7(this.pqn()); 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.x106_1 = InstanceOrNull(this, tmp$ret$4, null).u5d(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.y106_1 = InstanceOrNull(this, tmp$ret$6, null).u5d(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.z106_1 = InstanceOrNull(this, tmp$ret$8, null).u5d(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.a107_1 = Instance(this, tmp$ret$10, null).u5d(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.b107_1 = InstanceOrNull(this, tmp$ret$12, null).u5d(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.c107_1 = InstanceOrNull(this, tmp$ret$14, null).u5d(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.d107_1 = InstanceOrNull(this, tmp$ret$16, null).u5d(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.e107_1 = InstanceOrNull(this, tmp$ret$18, null).u5d(this, getOfflineStorageAvailableSpace$factory()); this.f107_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.g107_1 = Instance(this, tmp$ret$20, null).u5d(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.h107_1 = Instance(this, tmp$ret$22, null).u5d(this, zipFileUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().rmk_1), VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = _get_supportedLangConfig__llzj1v(this).iq7(); var tmp_23; if (tmp0_elvis_lhs == null) { Companion_getInstance_96(); 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.w106_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call if (element.xq3_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.s106_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var tmp3_currentLanguage = currentLang.yq3_1; var tmp4_availableLanguages = this.w106_1; var tmp0_safe_receiver = _get_getHtmlContentDisplayOptsUseCase__lppxoi(this); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jpe(); 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.jpe(); var tmp7_version = _get_getVersionUseCase__n7x57g_1(this).jpe().hpe_1; var tmp_24 = _get_settings__lbkut4(this); var tmp8_showDeveloperOptions = tmp_24.wm7('showDevSettings', false); var nextValue_0 = prevValue_0.d108(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.s1l(prevValue_0, nextValue_0)) { break $l$block_1; } } } var tmp_25 = this.gqn(); launch(tmp_25, VOID, VOID, SettingsViewModel$slambda_0(this, null)); var tmp_26 = this.gqn(); launch(tmp_26, VOID, VOID, SettingsViewModel$slambda_2(this, null)); } protoOf(SettingsViewModel).k109 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.s106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLanguage.' call var nextValue = prevValue.d108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).l109 = function (lang) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.s106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue = prevValue.d108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var result = _get_setLanguageUseCase__st7nci_1(this).zph(lang, 'Settings', this.rqm_1); if (result.xph_1) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.s106_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_0 = prevValue_0.d108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } else { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.s106_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_1 = prevValue_1.d108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, lang.yq3_1); if (this_2.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(SettingsViewModel).uz4 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.s106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onDismissLangDialog.' call var nextValue = prevValue.d108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).m109 = function () { this.rqm_1.dp6('Community', emptyMap()); }; protoOf(SettingsViewModel).n109 = function () { this.rqm_1.dp6('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.i107_1 = sendAppOptionVisible; this.j107_1 = selectedBackupFolderUri; this.k107_1 = selectedBackupFolderName; this.l107_1 = isCreatingBackup; this.m107_1 = backupProgress; this.n107_1 = selectedBackupPath; this.o107_1 = htmlContentDisplayOptions; this.p107_1 = currentHtmlContentDisplayOption; this.q107_1 = holidayCalendarVisible; this.r107_1 = workspaceSettingsVisible; this.s107_1 = reasonLeavingVisible; this.t107_1 = langDialogVisible; this.u107_1 = htmlContentDisplayDialogVisible; this.v107_1 = currentLanguage; this.w107_1 = availableLanguages; this.x107_1 = waitForRestartDialogVisible; this.y107_1 = showDeveloperOptions; this.z107_1 = version; this.a108_1 = storageOptions; this.b108_1 = selectedOfflineStorageOption; this.c108_1 = storageOptionsDialogVisible; } protoOf(SettingsUiState).o109 = 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).d108 = 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.i107_1 : sendAppOptionVisible; selectedBackupFolderUri = selectedBackupFolderUri === VOID ? this.j107_1 : selectedBackupFolderUri; selectedBackupFolderName = selectedBackupFolderName === VOID ? this.k107_1 : selectedBackupFolderName; isCreatingBackup = isCreatingBackup === VOID ? this.l107_1 : isCreatingBackup; backupProgress = backupProgress === VOID ? this.m107_1 : backupProgress; selectedBackupPath = selectedBackupPath === VOID ? this.n107_1 : selectedBackupPath; htmlContentDisplayOptions = htmlContentDisplayOptions === VOID ? this.o107_1 : htmlContentDisplayOptions; currentHtmlContentDisplayOption = currentHtmlContentDisplayOption === VOID ? this.p107_1 : currentHtmlContentDisplayOption; holidayCalendarVisible = holidayCalendarVisible === VOID ? this.q107_1 : holidayCalendarVisible; workspaceSettingsVisible = workspaceSettingsVisible === VOID ? this.r107_1 : workspaceSettingsVisible; reasonLeavingVisible = reasonLeavingVisible === VOID ? this.s107_1 : reasonLeavingVisible; langDialogVisible = langDialogVisible === VOID ? this.t107_1 : langDialogVisible; htmlContentDisplayDialogVisible = htmlContentDisplayDialogVisible === VOID ? this.u107_1 : htmlContentDisplayDialogVisible; currentLanguage = currentLanguage === VOID ? this.v107_1 : currentLanguage; availableLanguages = availableLanguages === VOID ? this.w107_1 : availableLanguages; waitForRestartDialogVisible = waitForRestartDialogVisible === VOID ? this.x107_1 : waitForRestartDialogVisible; showDeveloperOptions = showDeveloperOptions === VOID ? this.y107_1 : showDeveloperOptions; version = version === VOID ? this.z107_1 : version; storageOptions = storageOptions === VOID ? this.a108_1 : storageOptions; selectedOfflineStorageOption = selectedOfflineStorageOption === VOID ? this.b108_1 : selectedOfflineStorageOption; storageOptionsDialogVisible = storageOptionsDialogVisible === VOID ? this.c108_1 : storageOptionsDialogVisible; return $super === VOID ? this.o109(sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) : $super.o109.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.i107_1 + ', selectedBackupFolderUri=' + this.j107_1 + ', selectedBackupFolderName=' + this.k107_1 + ', isCreatingBackup=' + this.l107_1 + ', backupProgress=' + this.m107_1 + ', selectedBackupPath=' + this.n107_1 + ', htmlContentDisplayOptions=' + this.o107_1 + ', currentHtmlContentDisplayOption=' + this.p107_1 + ', holidayCalendarVisible=' + this.q107_1 + ', workspaceSettingsVisible=' + this.r107_1 + ', reasonLeavingVisible=' + this.s107_1 + ', langDialogVisible=' + this.t107_1 + ', htmlContentDisplayDialogVisible=' + this.u107_1 + ', currentLanguage=' + this.v107_1 + ', availableLanguages=' + this.w107_1 + ', waitForRestartDialogVisible=' + this.x107_1 + ', showDeveloperOptions=' + this.y107_1 + ', version=' + this.z107_1 + ', storageOptions=' + this.a108_1 + ', selectedOfflineStorageOption=' + this.b108_1 + ', storageOptionsDialogVisible=' + this.c108_1 + ')'; }; protoOf(SettingsUiState).hashCode = function () { var result = getBooleanHashCode(this.i107_1); result = imul(result, 31) + (this.j107_1 == null ? 0 : getStringHashCode(this.j107_1)) | 0; result = imul(result, 31) + (this.k107_1 == null ? 0 : getStringHashCode(this.k107_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.l107_1) | 0; result = imul(result, 31) + getNumberHashCode(this.m107_1) | 0; result = imul(result, 31) + (this.n107_1 == null ? 0 : getStringHashCode(this.n107_1)) | 0; result = imul(result, 31) + hashCode(this.o107_1) | 0; result = imul(result, 31) + (this.p107_1 == null ? 0 : this.p107_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.q107_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.r107_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.s107_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.t107_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.u107_1) | 0; result = imul(result, 31) + getStringHashCode(this.v107_1) | 0; result = imul(result, 31) + hashCode(this.w107_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.x107_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.y107_1) | 0; result = imul(result, 31) + getStringHashCode(this.z107_1) | 0; result = imul(result, 31) + hashCode(this.a108_1) | 0; result = imul(result, 31) + (this.b108_1 == null ? 0 : this.b108_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.c108_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.i107_1 === tmp0_other_with_cast.i107_1)) return false; if (!(this.j107_1 == tmp0_other_with_cast.j107_1)) return false; if (!(this.k107_1 == tmp0_other_with_cast.k107_1)) return false; if (!(this.l107_1 === tmp0_other_with_cast.l107_1)) return false; if (!equals(this.m107_1, tmp0_other_with_cast.m107_1)) return false; if (!(this.n107_1 == tmp0_other_with_cast.n107_1)) return false; if (!equals(this.o107_1, tmp0_other_with_cast.o107_1)) return false; if (!equals(this.p107_1, tmp0_other_with_cast.p107_1)) return false; if (!(this.q107_1 === tmp0_other_with_cast.q107_1)) return false; if (!(this.r107_1 === tmp0_other_with_cast.r107_1)) return false; if (!(this.s107_1 === tmp0_other_with_cast.s107_1)) return false; if (!(this.t107_1 === tmp0_other_with_cast.t107_1)) return false; if (!(this.u107_1 === tmp0_other_with_cast.u107_1)) return false; if (!(this.v107_1 === tmp0_other_with_cast.v107_1)) return false; if (!equals(this.w107_1, tmp0_other_with_cast.w107_1)) return false; if (!(this.x107_1 === tmp0_other_with_cast.x107_1)) return false; if (!(this.y107_1 === tmp0_other_with_cast.y107_1)) return false; if (!(this.z107_1 === tmp0_other_with_cast.z107_1)) return false; if (!equals(this.a108_1, tmp0_other_with_cast.a108_1)) return false; if (!equals(this.b108_1, tmp0_other_with_cast.b108_1)) return false; if (!(this.c108_1 === tmp0_other_with_cast.c108_1)) return false; return true; }; function SettingsOfflineStorageOption(option, availableSpace) { this.p109_1 = option; this.q109_1 = availableSpace; } protoOf(SettingsOfflineStorageOption).toString = function () { return 'SettingsOfflineStorageOption(option=' + this.p109_1 + ', availableSpace=' + this.q109_1.toString() + ')'; }; protoOf(SettingsOfflineStorageOption).hashCode = function () { var result = this.p109_1.hashCode(); result = imul(result, 31) + this.q109_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.p109_1.equals(tmp0_other_with_cast.p109_1)) return false; if (!this.q109_1.equals(tmp0_other_with_cast.q109_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_194() { this.r109_1 = 'otheroption'; this.s109_1 = 'otheroptionperson'; this.t109_1 = 'otheroptionpersonprofilepic'; this.u109_1 = 'isparent'; } var Companion_instance_243; function Companion_getInstance_211() { return Companion_instance_243; } function SignUpViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda).gz5 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$slambda$slambda).he = function (p1, $completion) { return this.gz5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda).ony = function (it, completion) { var i = new SignUpViewModel$slambda$slambda(completion); i.d10a_1 = it; return i; }; function SignUpViewModel$slambda$slambda_0(resultContinuation) { var i = new SignUpViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.gz5(it, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda_1).qz5 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$slambda$slambda_1).g79 = function ($completion) { return this.qz5($completion); }; protoOf(SignUpViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return new Person(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda_1).f79 = function (completion) { return new SignUpViewModel$slambda$slambda_1(completion); }; function SignUpViewModel$slambda$slambda_2(resultContinuation) { var i = new SignUpViewModel$slambda$slambda_1(resultContinuation); var l = function ($completion) { return i.qz5($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.j10b_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.ykq(); 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.q10c(it, VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SignUpViewModel$slambda$slambda_3(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda_3).nzi = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.nzi(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda_3).ony = function (it, completion) { var i = new SignUpViewModel$slambda$slambda_3(completion); i.z10c_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.nzi(it, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda$slambda_5).wzi = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$slambda$slambda_5).g79 = function ($completion) { return this.wzi($completion); }; protoOf(SignUpViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return new PersonPicture(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SignUpViewModel$slambda$slambda_5).f79 = 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.wzi($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.j10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel...' call var nextValue = prevValue.q10c(VOID, VOID, VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SignUpViewModel$onFullNameFocusedChanged$slambda$lambda($suggestedUsername) { return function ($this$shallowCopy) { $this$shallowCopy.a97_1 = $suggestedUsername; return Unit_instance; }; } function SignUpViewModel$onClickSignup$slambda$lambda($e) { return function () { return 'exception ' + $e.message; }; } function _get_apiUrlConfig__mldllg_7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.n10b_1; apiUrlConfig$factory_16(); return this_0.t2(); } function _get_getLocalAccountsSupportedUseCase__hoi7c7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.o10b_1; getLocalAccountsSupportedUseCase$factory_0(); return this_0.t2(); } function _get_createPasskeyUseCase__ryoxza_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.q10b_1; createPasskeyUseCase$factory_2(); return this_0.t2(); } function _get_genderConfig__kyr0zc_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.s10b_1; genderConfig$factory_4(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.w10b_1; enqueueSavePictureUseCase$factory_2(); return this_0.t2(); } function hasErrors_5(_this__u8e3s4, $this) { return (!(_this__u8e3s4.g10c_1 == null) ? true : !(_this__u8e3s4.f10c_1 == null)) ? true : !(_this__u8e3s4.n10c_1 == null); } function navigateToAppropriateScreen($this, savePerson) { if ($this.j10b_1.t2().h10c_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_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.navigateToAppropriateScreen.' call Companion_getInstance_125(); this_0.s('next', $this.l10b_1); $this.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_125(); $this.cqo(this_0, 'next'); var tmp$ret$2 = this_0.f3(); $this.rqm_1.dp6('AddChildProfile', tmp$ret$2); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.e5f(VOID, VOID, SignUpViewModel$navigateToAppropriateScreen$lambda($this)); $this.bqu($this.rqm_1, appendSelectedAccount($this.l10b_1, savePerson.z96_1, new LearningSpace($this.fqn().boa().mnt_1)), goOptions); } } function enrollToCourseFromInviteUid($this, personUid, $completion) { var tmp = new $enrollToCourseFromInviteUidCOROUTINE$77($this, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_195() { Companion_instance_244 = this; this.or6_1 = 'picState'; this.pr6_1 = 'SignUp'; this.qr6_1 = 'DateOfBirth'; this.rr6_1 = 'personalAccount'; this.sr6_1 = 'newOrExisting'; this.tr6_1 = 'new'; this.ur6_1 = 'existing'; var tmp = this; Companion_getInstance_116(); Companion_getInstance_116(); Companion_getInstance_201(); tmp.vr6_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'DateOfBirth', 'RegMode', 'newOrExisting', 'personalAccount']); this.wr6_1 = 'SignupWithUsernameAndPassword'; } var Companion_instance_244; function Companion_getInstance_212() { if (Companion_instance_244 == null) new Companion_195(); return Companion_instance_244; } function SignUpViewModel$slambda(this$0, resultContinuation) { this.b10e_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = Companion_instance_3.h4s(); var tmp_1 = SignUpViewModel$slambda$slambda_0(null); var tmp_2 = SignUpViewModel$slambda$slambda_2(null); suspendResult = this.b10e_1.zqn(tmp_0, VOID, 'otheroptionperson', tmp_1, tmp_2, SignUpViewModel$slambda$lambda(this.b10e_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = Companion_instance_7.h4s(); var tmp_4 = SignUpViewModel$slambda$slambda_4(null); var tmp_5 = SignUpViewModel$slambda$slambda_6(null); suspendResult = this.b10e_1.zqn(tmp_3, VOID, 'otheroptionpersonprofilepic', tmp_4, tmp_5, SignUpViewModel$slambda$lambda_0(this.b10e_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SignUpViewModel$slambda).p1n = function ($this$launch, completion) { var i = new SignUpViewModel$slambda(this.b10e_1, completion); i.c10e_1 = $this$launch; return i; }; function SignUpViewModel$slambda_0(this$0, resultContinuation) { var i = new SignUpViewModel$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.l10e_1 = $commitDelay; this.m10e_1 = $entity; this.n10e_1 = $this; this.o10e_1 = $key; this.p10e_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.l10e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.m10e_1 == null)) { this.hd_1 = 2; suspendResult = this.n10e_1.vqn(this.n10e_1.pqm_1, this.o10e_1, this.p10e_1, this.m10e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SignUpViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new SignUpViewModel$onEntityChanged$slambda(this.l10e_1, this.m10e_1, this.n10e_1, this.o10e_1, this.p10e_1, completion); i.q10e_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation) { this.z10e_1 = this$0; this.a10f_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onPersonPictureChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$onPersonPictureChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onPersonPictureChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.z10e_1.vqn(this.z10e_1.pqm_1, 'picState', Companion_instance_7.h4s(), this.a10f_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SignUpViewModel$onPersonPictureChanged$slambda).p1n = function ($this$launch, completion) { var i = new SignUpViewModel$onPersonPictureChanged$slambda(this.z10e_1, this.a10f_1, completion); i.b10f_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onUsernameChanged$lambda($filteredValue) { return function ($this$shallowCopy) { $this$shallowCopy.a97_1 = $filteredValue; return Unit_instance; }; } function SignUpViewModel$onFullNameFocusedChanged$slambda(this$0, resultContinuation) { this.k10f_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var tmp0_elvis_lhs = this.k10f_1.j10b_1.t2().d10c_1; tmp_0.m10f_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; if (isBlank(this.m10f_1)) return Unit_instance; this.id_1 = 2; this.hd_1 = 1; suspendResult = this.k10f_1.t10b_1.apo(this.m10f_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var suggestedUsername = suspendResult; var tmp0_safe_receiver = this.k10f_1.j10b_1.t2().y10b_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.k10f_1.j10b_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.q10c(updatedPerson); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_2 = this.kd_1; if (tmp_2 instanceof UsernameErrorException) { var e = this.kd_1; l$ret$3: do { var this_1 = this.k10f_1.j10b_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.q10c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, stringResourceOrMessage(e, this.k10f_1.pqn())); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 4; continue $sm; } else { var tmp_3 = this.kd_1; if (tmp_3 instanceof Exception) { var e_0 = this.kd_1; l$ret$5: do { var this_2 = this.k10f_1.j10b_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.q10c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, stringResourceOrMessage(e_0, this.k10f_1.pqn())); if (this_2.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_1 = $p; if (this.id_1 === 3) { throw e_1; } else { this.hd_1 = this.id_1; this.kd_1 = e_1; } } while (true); }; protoOf(SignUpViewModel$onFullNameFocusedChanged$slambda).p1n = function ($this$launch, completion) { var i = new SignUpViewModel$onFullNameFocusedChanged$slambda(this.k10f_1, completion); i.l10f_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onClickSignup$lambda($firstName, $lastName) { return function ($this$shallowCopy) { $this$shallowCopy.b97_1 = $firstName; $this$shallowCopy.c97_1 = $lastName; return Unit_instance; }; } function SignUpViewModel$onClickSignup$slambda(this$0, $savePerson, $createPasskeyUseCaseVal, resultContinuation) { this.v10f_1 = this$0; this.w10f_1 = $savePerson; this.x10f_1 = $createPasskeyUseCaseVal; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onClickSignup$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$onClickSignup$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onClickSignup$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 14; this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 13; this.id_1 = 10; this.hd_1 = 3; var tmp_0 = get_doorPrimaryKeyManager(this.v10f_1.jqn()); suspendResult = tmp_0.i63(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.b10g_1 = suspendResult; this.w10f_1.z96_1 = this.b10g_1; if (!(this.x10f_1 == null)) { var tmp_1 = this; var tmp0_elvis_lhs = this.w10f_1.a97_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.c10g_1 = tmp_2; this.hd_1 = 4; suspendResult = this.x10f_1.bpb(this.c10g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var this_0 = LinkedHashMap_init_$Create$(); this.v10f_1.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_125(); this.v10f_1.cqo(this_0, 'next'); this_0.s('otheroptionperson', this.v10f_1.g4s().l46(Companion_instance_3.h4s(), this.w10f_1)); var tmp_3 = this.v10f_1.g4s(); var tmp_4 = Companion_instance_7.h4s(); var tmp0_elvis_lhs_0 = this.v10f_1.j10b_1.t2().b10c_1; this_0.s('otheroptionpersonprofilepic', tmp_3.l46(tmp_4, tmp0_elvis_lhs_0 == null ? new PersonPicture() : tmp0_elvis_lhs_0)); this_0.s('isparent', this.v10f_1.j10b_1.t2().h10c_1.toString()); this.v10f_1.rqm_1.dp6('SignupEnterUsernamePassword', this_0.f3()); this.hd_1 = 9; continue $sm; } case 4: this.d10g_1 = suspendResult; this.hd_1 = 5; suspendResult = this.v10f_1.fqn().eoa(this.v10f_1.p10b_1, this.d10g_1, this.w10f_1, this.v10f_1.j10b_1.t2().b10c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.e10g_1 = this.v10f_1.j10b_1.t2().b10c_1; if (!(this.e10g_1 == null)) { this.e10g_1.y97_1 = this.w10f_1.z96_1; this.e10g_1.z97_1 = systemTimeInMillis(); this.f10g_1 = this.e10g_1.a98_1; this.hd_1 = 6; var tmp_5 = _get_enqueueSavePictureUseCase__rl1s31_0(this.v10f_1); var tmp_6 = this.w10f_1.z96_1; suspendResult = tmp_5.nor(tmp_6, 50, this.f10g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 7; continue $sm; } case 6: this.hd_1 = 7; continue $sm; case 7: this.hd_1 = 8; suspendResult = enrollToCourseFromInviteUid(this.v10f_1, this.w10f_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: navigateToAppropriateScreen(this.v10f_1, this.w10f_1); this.hd_1 = 9; continue $sm; case 9: this.z10f_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 12; continue $sm; case 10: this.id_1 = 13; var tmp_7 = this.kd_1; if (tmp_7 instanceof Exception) { var e = this.kd_1; var tmp_8 = Napier_getInstance(); tmp_8.e5f(VOID, VOID, SignUpViewModel$onClickSignup$slambda$lambda(e)); this.v10f_1.nqn().rq6(new Snack(this.v10f_1.pqn().coj(strings_getInstance().mmi_1) + ':' + e.message)); this.a10g_1 = Unit_instance; this.id_1 = 14; this.hd_1 = 11; var tmp_9 = this; continue $sm; } else { throw this.kd_1; } case 11: this.id_1 = 14; this.v10f_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; case 12: this.id_1 = 14; this.v10f_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; case 13: this.id_1 = 14; var t = this.kd_1; this.v10f_1.rqn(Companion_getInstance_97().kq6_1); throw t; case 14: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 14) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(SignUpViewModel$onClickSignup$slambda).p1n = function ($this$launch, completion) { var i = new SignUpViewModel$onClickSignup$slambda(this.v10f_1, this.w10f_1, this.x10f_1, completion); i.y10f_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$navigateToAppropriateScreen$lambda(this$0) { return function () { return 'AddSignUpPresenter: go to next destination: ' + this$0.l10b_1; }; } function $enrollToCourseFromInviteUidCOROUTINE$77(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.q10d_1 = _this__u8e3s4; this.r10d_1 = personUid; } protoOf($enrollToCourseFromInviteUidCOROUTINE$77).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; Companion_getInstance_116(); tmp_0.s10d_1 = this.q10d_1.pqm_1.ba('next'); var tmp_1; if (!(this.s10d_1 == null)) { tmp_1 = contains(this.s10d_1, 'ClazzInviteRedeem'); } else { tmp_1 = false; } if (tmp_1) { var tmp_2 = this.q10d_1; Companion_getInstance_139(); tmp_2.l10b_1 = 'CourseListHome'; this.hd_1 = 1; suspendResult = this.q10d_1.x10b_1.rpg(this.s10d_1, this.r10d_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function SignUpViewModel(di, savedStateHandle, destName) { Companion_getInstance_212(); destName = destName === VOID ? 'SignUp' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.j10b_1 = MutableStateFlow(new SignUpUiState()); this.k10b_1 = new ValidateUsernameUseCase(); var tmp = this; Companion_getInstance_116(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_0; if (tmp0_elvis_lhs == null) { Companion_getInstance_139(); tmp_0 = 'CourseListHome'; } else { tmp_0 = tmp0_elvis_lhs; } tmp.l10b_1 = tmp_0; this.m10b_1 = asStateFlow(this.j10b_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(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.n10b_1 = Instance(this, tmp$ret$0, null).u5d(this, apiUrlConfig$factory_15()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(GetLocalAccountsSupportedUseCase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.o10b_1 = Instance(this, tmp$ret$2, null).u5d(this, getLocalAccountsSupportedUseCase$factory()); var tmp_5 = this; Companion_getInstance_116(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_7(this).ko2_1 : tmp0_elvis_lhs_0; tmp_5.p10b_1 = tmp1_elvis_lhs == null ? 'http://localhost' : tmp1_elvis_lhs; var tmp_6 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.p10b_1); var trigger = di.x57(); // 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.b58(tmp$ret$4, context); var this_0 = On(di, tmp$ret$5, trigger); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(CreatePasskeyUseCase), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); tmp_6.q10b_1 = InstanceOrNull(this_0, tmp$ret$7, null).u5d(this, createPasskeyUseCase$factory_1()); var tmp_10 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.p10b_1); var trigger_0 = di.x57(); // Inline function 'org.kodein.di.diContext' call var tmp_11 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); var tmp$ret$10 = tmp_11.b58(tmp$ret$9, context_0); var tmp$ret$11 = On(di, tmp$ret$10, trigger_0); var tmp_13 = get_direct(tmp$ret$11).z58(); // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_10.r10b_1 = tmp_13.x58(tmp$ret$12, null); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.s10b_1 = Instance(this, tmp$ret$14, null).u5d(this, genderConfig$factory_3()); var tmp_17 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_1 = new LearningSpace(this.p10b_1); var trigger_1 = di.x57(); // Inline function 'org.kodein.di.diContext' call var tmp_18 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); var tmp$ret$17 = tmp_18.b58(tmp$ret$16, context_1); var tmp$ret$18 = On(di, tmp$ret$17, trigger_1); var tmp_20 = get_direct(tmp$ret$18).z58(); // Inline function 'org.kodein.type.generic' call var tmp_21 = typeToken(createKType(getKClass(GetUsernameSuggestionUseCase), arrayOf([]), false)); var tmp$ret$19 = isInterface(tmp_21, TypeToken) ? tmp_21 : THROW_CCE(); tmp_17.t10b_1 = tmp_20.x58(tmp$ret$19, null); this.u10b_1 = new FilterUsernameUseCase(); this.v10b_1 = null; var tmp_22 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_2 = new LearningSpace(this.p10b_1); var trigger_2 = this.x57(); // Inline function 'org.kodein.di.diContext' call var tmp_23 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$21 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); var tmp$ret$22 = tmp_23.b58(tmp$ret$21, context_2); var this_1 = On(this, tmp$ret$22, trigger_2); // Inline function 'org.kodein.type.generic' call var tmp_25 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$24 = isInterface(tmp_25, TypeToken) ? tmp_25 : THROW_CCE(); tmp_22.w10b_1 = Instance(this_1, tmp$ret$24, null).u5d(this, enqueueSavePictureUseCase$factory_1()); var tmp_26 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_3 = new LearningSpace(this.p10b_1); var trigger_3 = di.x57(); // Inline function 'org.kodein.di.diContext' call var tmp_27 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_28 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$26 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE(); var tmp$ret$27 = tmp_27.b58(tmp$ret$26, context_3); var tmp$ret$28 = On(di, tmp$ret$27, trigger_3); var tmp_29 = get_direct(tmp$ret$28).z58(); // Inline function 'org.kodein.type.generic' call var tmp_30 = typeToken(createKType(getKClass(EnrollToCourseFromInviteCodeUseCase), arrayOf([]), false)); var tmp$ret$29 = isInterface(tmp_30, TypeToken) ? tmp_30 : THROW_CCE(); tmp_26.x10b_1 = tmp_29.x58(tmp$ret$29, null); this.rqn(Companion_getInstance_97().jq6_1); var title = this.pqn().coj(strings_getInstance().qn7_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tqm_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.s1l(prevValue, nextValue)) { break $l$block; } } } if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.j10b_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue_0 = prevValue_0.q10c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_31 = this; Companion_getInstance_168(); tmp_31.l10b_1 = 'ContentEntryListHome'; } var tmp_32 = this.gqn(); launch(tmp_32, VOID, VOID, SignUpViewModel$slambda_0(this, null)); $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.j10b_1; while (true) { var prevValue_1 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var tmp4_genderOptions = _get_genderConfig__kyr0zc_1(this).bq7_1; Companion_getInstance_201(); 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.j10b_1.t2().m10c_1; var tmp5_person = new Person(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_isPersonalAccount, tmp2_dateOfBirth); var tmp6_serverUrl_ = this.p10b_1; var tmp7_passkeySupported = !(_get_createPasskeyUseCase__ryoxza_0(this) == null); var tmp8_showOtherOption = _get_createPasskeyUseCase__ryoxza_0(this) == null ? _get_getLocalAccountsSupportedUseCase__hoi7c7(this).jpe() : false; var nextValue_1 = prevValue_1.q10c(tmp5_person, VOID, tmp4_genderOptions, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp7_passkeySupported, tmp6_serverUrl_, tmp8_showOtherOption); if (this_4.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } } protoOf(SignUpViewModel).yz7 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.y10b_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f97_1; var tmp_0 = this.aqu(tmp, entity == null ? null : entity.f97_1, prevValue.f10c_1); var tmp2_safe_receiver = prevValue.y10b_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.b97_1; var tmp_2 = this.aqu(tmp_1, entity == null ? null : entity.b97_1, prevValue.g10c_1); var tmp4_safe_receiver = prevValue.y10b_1; var tmp_3 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.a97_1; var nextValue = prevValue.q10c(entity, VOID, VOID, VOID, VOID, VOID, VOID, tmp_0, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, this.aqu(tmp_3, entity == null ? null : entity.a97_1, prevValue.n10c_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_4 = this; var tmp_5 = this.gqn(); tmp_4.wqs_1 = launch(tmp_5, VOID, VOID, SignUpViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignUpViewModel).g10g = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onParentCheckChanged.' call var nextValue = prevValue.q10c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).h10g = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onTeacherCheckChanged.' call var nextValue = prevValue.q10c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).vzn = 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.j10b_1.t2().b10c_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y97_1; tmp.y97_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.a98_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.j10b_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onPersonPictureChanged.' call var nextValue = prevValue.q10c(VOID, VOID, VOID, personPicture); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, SignUpViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(SignUpViewModel).i10g = function (fullName) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onFullNameValueChange.' call var nextValue = prevValue.q10c(VOID, VOID, VOID, VOID, VOID, fullName); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).syd = function (newValue) { var filteredValue = this.u10b_1.fpe(newValue, ''); var tmp0_safe_receiver = this.j10b_1.t2().y10b_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.j10b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onUsernameChanged.' call var tmp0_safe_receiver_0 = this.j10b_1.t2().y10b_1; var tmp1_usernameSetByUser = !((tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.a97_1) === filteredValue); var nextValue = prevValue.q10c(updatedPerson, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_usernameSetByUser); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).j10g = function (hasFocused) { if (hasFocused) return Unit_instance; var tmp; if (this.j10b_1.t2().o10c_1) { // Inline function 'kotlin.text.isNullOrEmpty' call var tmp0_safe_receiver = this.j10b_1.t2().y10b_1; var this_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ykq(); // 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.v10b_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.gs(); } var tmp_0 = this; var tmp_1 = this.gqn(); tmp_0.v10b_1 = launch(tmp_1, VOID, VOID, SignUpViewModel$onFullNameFocusedChanged$slambda_0(this, null)); }; protoOf(SignUpViewModel).k10g = function () { this.rqn(Companion_getInstance_97().jq6_1); var tmp0_safe_receiver = this.j10b_1.t2().d10c_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.j10b_1.t2().y10b_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.yz7(tmp_3); var tmp6_elvis_lhs = this.j10b_1.t2().y10b_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.pqn().coj(strings_getInstance().rmn_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10b_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.b97_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.f97_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.a97_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.q10c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_genderError, tmp0_fullNameError, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_usernameError); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_5(this.j10b_1.t2(), this)) { this.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; } var createPasskeyUseCaseVal = _get_createPasskeyUseCase__ryoxza_0(this); var tmp_9 = this.gqn(); 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().dq7_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.y10b_1 = person; this.z10b_1 = password; this.a10c_1 = genderOptions; this.b10c_1 = personPicture; this.c10c_1 = registrationMode; this.d10c_1 = fullName; this.e10c_1 = dateOfBirthError; this.f10c_1 = genderError; this.g10c_1 = fullNameError; this.h10c_1 = isParent; this.i10c_1 = isTeacher; this.j10c_1 = passkeySupported; this.k10c_1 = serverUrl_; this.l10c_1 = showOtherOption; this.m10c_1 = isPersonalAccount; this.n10c_1 = usernameError; this.o10c_1 = usernameSetByUser; this.p10c_1 = errorText; } protoOf(SignUpUiState).l10g = 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).q10c = function (person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText, $super) { person = person === VOID ? this.y10b_1 : person; password = password === VOID ? this.z10b_1 : password; genderOptions = genderOptions === VOID ? this.a10c_1 : genderOptions; personPicture = personPicture === VOID ? this.b10c_1 : personPicture; registrationMode = registrationMode === VOID ? this.c10c_1 : registrationMode; fullName = fullName === VOID ? this.d10c_1 : fullName; dateOfBirthError = dateOfBirthError === VOID ? this.e10c_1 : dateOfBirthError; genderError = genderError === VOID ? this.f10c_1 : genderError; fullNameError = fullNameError === VOID ? this.g10c_1 : fullNameError; isParent = isParent === VOID ? this.h10c_1 : isParent; isTeacher = isTeacher === VOID ? this.i10c_1 : isTeacher; passkeySupported = passkeySupported === VOID ? this.j10c_1 : passkeySupported; serverUrl_ = serverUrl_ === VOID ? this.k10c_1 : serverUrl_; showOtherOption = showOtherOption === VOID ? this.l10c_1 : showOtherOption; isPersonalAccount = isPersonalAccount === VOID ? this.m10c_1 : isPersonalAccount; usernameError = usernameError === VOID ? this.n10c_1 : usernameError; usernameSetByUser = usernameSetByUser === VOID ? this.o10c_1 : usernameSetByUser; errorText = errorText === VOID ? this.p10c_1 : errorText; return $super === VOID ? this.l10g(person, password, genderOptions, personPicture, registrationMode, fullName, dateOfBirthError, genderError, fullNameError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, isPersonalAccount, usernameError, usernameSetByUser, errorText) : $super.l10g.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.y10b_1 + ', password=' + this.z10b_1 + ', genderOptions=' + this.a10c_1 + ', personPicture=' + this.b10c_1 + ', registrationMode=' + this.c10c_1 + ', fullName=' + this.d10c_1 + ', dateOfBirthError=' + this.e10c_1 + ', genderError=' + this.f10c_1 + ', fullNameError=' + this.g10c_1 + ', isParent=' + this.h10c_1 + ', isTeacher=' + this.i10c_1 + ', passkeySupported=' + this.j10c_1 + ', serverUrl_=' + this.k10c_1 + ', showOtherOption=' + this.l10c_1 + ', isPersonalAccount=' + this.m10c_1 + ', usernameError=' + this.n10c_1 + ', usernameSetByUser=' + this.o10c_1 + ', errorText=' + this.p10c_1 + ')'; }; protoOf(SignUpUiState).hashCode = function () { var result = this.y10b_1 == null ? 0 : this.y10b_1.hashCode(); result = imul(result, 31) + (this.z10b_1 == null ? 0 : getStringHashCode(this.z10b_1)) | 0; result = imul(result, 31) + hashCode(this.a10c_1) | 0; result = imul(result, 31) + (this.b10c_1 == null ? 0 : this.b10c_1.hashCode()) | 0; result = imul(result, 31) + this.c10c_1 | 0; result = imul(result, 31) + (this.d10c_1 == null ? 0 : getStringHashCode(this.d10c_1)) | 0; result = imul(result, 31) + (this.e10c_1 == null ? 0 : getStringHashCode(this.e10c_1)) | 0; result = imul(result, 31) + (this.f10c_1 == null ? 0 : getStringHashCode(this.f10c_1)) | 0; result = imul(result, 31) + (this.g10c_1 == null ? 0 : getStringHashCode(this.g10c_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.h10c_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.i10c_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.j10c_1) | 0; result = imul(result, 31) + (this.k10c_1 == null ? 0 : getStringHashCode(this.k10c_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.l10c_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.m10c_1) | 0; result = imul(result, 31) + (this.n10c_1 == null ? 0 : getStringHashCode(this.n10c_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.o10c_1) | 0; result = imul(result, 31) + (this.p10c_1 == null ? 0 : getStringHashCode(this.p10c_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.y10b_1, tmp0_other_with_cast.y10b_1)) return false; if (!(this.z10b_1 == tmp0_other_with_cast.z10b_1)) return false; if (!equals(this.a10c_1, tmp0_other_with_cast.a10c_1)) return false; if (!equals(this.b10c_1, tmp0_other_with_cast.b10c_1)) return false; if (!(this.c10c_1 === tmp0_other_with_cast.c10c_1)) return false; if (!(this.d10c_1 == tmp0_other_with_cast.d10c_1)) return false; if (!(this.e10c_1 == tmp0_other_with_cast.e10c_1)) return false; if (!(this.f10c_1 == tmp0_other_with_cast.f10c_1)) return false; if (!(this.g10c_1 == tmp0_other_with_cast.g10c_1)) return false; if (!(this.h10c_1 === tmp0_other_with_cast.h10c_1)) return false; if (!(this.i10c_1 === tmp0_other_with_cast.i10c_1)) return false; if (!(this.j10c_1 === tmp0_other_with_cast.j10c_1)) return false; if (!(this.k10c_1 == tmp0_other_with_cast.k10c_1)) return false; if (!(this.l10c_1 === tmp0_other_with_cast.l10c_1)) return false; if (!(this.m10c_1 === tmp0_other_with_cast.m10c_1)) return false; if (!(this.n10c_1 == tmp0_other_with_cast.n10c_1)) return false; if (!(this.o10c_1 === tmp0_other_with_cast.o10c_1)) return false; if (!(this.p10c_1 == tmp0_other_with_cast.p10c_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$onClickedSignupEnterUsernamePassword$slambda$lambda($e) { return function () { return 'enrollToCourseFromInviteCodeUseCase :' + $e.message; }; } function _get_apiUrlConfig__mldllg_8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.n10h_1; apiUrlConfig$factory_18(); return this_0.t2(); } function _get_genderConfig__kyr0zc_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.r10h_1; genderConfig$factory_6(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t10h_1; enqueueSavePictureUseCase$factory_4(); return this_0.t2(); } function hasErrors_6(_this__u8e3s4, $this) { return !(_this__u8e3s4.a10i_1 == null); } function navigateToAppropriateScreen_0($this, savePerson) { if ($this.o10h_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_0 = LinkedHashMap_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.navigateToAppropriateScreen.' call Companion_getInstance_125(); this_0.s('next', $this.l10h_1); $this.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_125(); $this.cqo(this_0, 'next'); var tmp$ret$2 = this_0.f3(); $this.rqm_1.dp6('AddChildProfile', tmp$ret$2); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.e5f(VOID, VOID, SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$lambda($this)); $this.bqu($this.rqm_1, appendSelectedAccount($this.l10h_1, savePerson.z96_1, new LearningSpace($this.fqn().boa().mnt_1)), goOptions); } } function Companion_196() { this.h10i_1 = 'SignupEnterUsernamePassword'; } var Companion_instance_245; function Companion_getInstance_213() { return Companion_instance_245; } function SignupEnterUsernamePasswordViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.q10i_1 = this$0; this.r10i_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignupEnterUsernamePasswordViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignupEnterUsernamePasswordViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.q10i_1.uqn(this.r10i_1, 'otheroptionperson', Companion_instance_3.h4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.t10i_1 = suspendResult; this.u10i_1 = this.t10i_1 == null ? new Person() : this.t10i_1; this.hd_1 = 2; suspendResult = this.q10i_1.uqn(this.r10i_1, 'otheroptionpersonprofilepic', Companion_instance_7.h4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var personPicture = suspendResult; l$ret$1: do { var this_0 = this.q10i_1.j10h_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.u10i_1.b97_1 === '') { tmp_0 = null; } else { tmp_0 = this.u10i_1.ykq(); } var nextValue = prevValue.v10i(this.u10i_1, VOID, VOID, personPicture, VOID, tmp_0); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SignupEnterUsernamePasswordViewModel$slambda).p1n = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$slambda(this.q10i_1, this.r10i_1, completion); i.s10i_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.e10j_1 = $commitDelay; this.f10j_1 = $entity; this.g10j_1 = $this; this.h10j_1 = $key; this.i10j_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.e10j_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.f10j_1 == null)) { this.hd_1 = 2; suspendResult = this.g10j_1.vqn(this.g10j_1.pqm_1, this.h10j_1, this.i10j_1, this.f10j_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda(this.e10j_1, this.f10j_1, this.g10j_1, this.h10j_1, this.i10j_1, completion); i.j10j_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$lambda($firstName, $lastName) { return function ($this$shallowCopy) { $this$shallowCopy.b97_1 = $firstName; $this$shallowCopy.c97_1 = $lastName; return Unit_instance; }; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this$0, $savePerson, resultContinuation) { this.s10j_1 = this$0; this.t10j_1 = $savePerson; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 16; this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 15; this.id_1 = 14; this.hd_1 = 3; var tmp_0 = get_doorPrimaryKeyManager(this.s10j_1.jqn()); suspendResult = tmp_0.i63(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.x10j_1 = suspendResult; this.t10j_1.z96_1 = this.x10j_1; this.y10j_1 = this.s10j_1.j10h_1.t2().v10h_1; if (this.y10j_1 == null) { this.w10j_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 17; var tmp_1 = this; continue $sm; } else { this.z10j_1 = this.y10j_1; this.hd_1 = 4; continue $sm; } case 4: this.a10k_1 = this.z10j_1; this.hd_1 = 5; suspendResult = this.s10j_1.fqn().goa(this.t10j_1, this.a10k_1, this.s10j_1.p10h_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.b10k_1 = this.s10j_1.j10h_1.t2().x10h_1; if (!(this.b10k_1 == null)) { this.b10k_1.y97_1 = this.t10j_1.z96_1; this.b10k_1.z97_1 = systemTimeInMillis(); this.c10k_1 = this.b10k_1.a98_1; this.hd_1 = 6; var tmp_2 = _get_enqueueSavePictureUseCase__rl1s31_1(this.s10j_1); var tmp_3 = this.t10j_1.z96_1; suspendResult = tmp_2.nor(tmp_3, 50, this.c10k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 7; continue $sm; } case 6: this.hd_1 = 7; continue $sm; case 7: var tmp_4 = this; var this_0 = this.s10j_1.u57(); var context = new LearningSpace(this.s10j_1.p10h_1); var trigger = this_0.x57(); 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.b58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).z58(); var tmp_8 = typeToken(createKType(getKClass(SavePasswordUseCase), arrayOf([]), false)); tmp_4.d10k_1 = tmp_7.y58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), null); this.e10k_1 = this.d10k_1; if (this.e10k_1 == null) { this.f10k_1 = null; this.hd_1 = 9; continue $sm; } else { this.hd_1 = 8; suspendResult = this.e10k_1.hpc(toString_0(this.t10j_1.a97_1), this.a10k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 8: var tmp_9 = this; tmp_9.f10k_1 = Unit_instance; this.hd_1 = 9; continue $sm; case 9: this.id_1 = 12; var tmp_10 = this; Companion_getInstance_116(); tmp_10.g10k_1 = this.s10j_1.pqm_1.ba('next'); if (!(this.g10k_1 == null) ? contains(this.g10k_1, 'ClazzInviteRedeem') : false) { var tmp_11 = this.s10j_1; Companion_getInstance_139(); tmp_11.l10h_1 = 'CourseListHome'; this.hd_1 = 10; suspendResult = this.s10j_1.s10h_1.rpg(this.g10k_1, this.t10j_1.z96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 11; continue $sm; } case 10: this.hd_1 = 11; continue $sm; case 11: this.id_1 = 14; this.hd_1 = 13; continue $sm; case 12: this.id_1 = 14; var tmp_12 = this.kd_1; if (tmp_12 instanceof Exception) { var e = this.kd_1; var tmp_13 = Napier_getInstance(); tmp_13.e5f(VOID, VOID, SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda$lambda(e)); this.hd_1 = 13; continue $sm; } else { throw this.kd_1; } case 13: this.id_1 = 14; var tmp_14 = this; navigateToAppropriateScreen_0(this.s10j_1, this.t10j_1); tmp_14.v10j_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 18; continue $sm; case 14: this.id_1 = 15; var tmp_15 = this.kd_1; if (tmp_15 instanceof Exception) { var e_0 = this.kd_1; if (e_0 instanceof IllegalStateException) { l$ret$5: do { var this_1 = this.s10j_1.j10h_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.v10i(VOID, VOID, VOID, VOID, VOID, VOID, this.s10j_1.pqn().coj(strings_getInstance().un7_1)); if (this_1.s1l(prevValue, nextValue)) { break l$ret$5; } } } while (false); } else { this.s10j_1.nqn().rq6(new Snack(this.s10j_1.pqn().coj(strings_getInstance().wmi_1))); } this.w10j_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 17; var tmp_16 = this; continue $sm; } else { throw this.kd_1; } case 15: this.id_1 = 16; var t = this.kd_1; this.s10j_1.rqn(Companion_getInstance_97().kq6_1); throw t; case 16: throw this.kd_1; case 17: this.id_1 = 16; this.s10j_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; case 18: this.id_1 = 16; this.s10j_1.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; } } catch ($p) { var e_1 = $p; if (this.id_1 === 16) { throw e_1; } else { this.hd_1 = this.id_1; this.kd_1 = e_1; } } while (true); }; protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).p1n = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this.s10j_1, this.t10j_1, completion); i.u10j_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$lambda(this$0) { return function () { return 'AddSignupEnterUsernamePasswordPresenter: go to next destination: ' + this$0.l10h_1; }; } function SignupEnterUsernamePasswordViewModel(di, savedStateHandle, destName) { destName = destName === VOID ? 'SignupEnterUsernamePassword' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.j10h_1 = MutableStateFlow(new SignupEnterUsernamePasswordUiState()); this.k10h_1 = new ValidateUsernameUseCase(); var tmp = this; Companion_getInstance_116(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_0; if (tmp0_elvis_lhs == null) { Companion_getInstance_139(); tmp_0 = 'CourseListHome'; } else { tmp_0 = tmp0_elvis_lhs; } tmp.l10h_1 = tmp_0; this.m10h_1 = asStateFlow(this.j10h_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(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(); tmp_1.n10h_1 = Instance(this, tmp$ret$0, null).u5d(this, apiUrlConfig$factory_17()); var tmp_3 = this; tmp_3.o10h_1 = toBoolean(savedStateHandle.ba('isparent')); var tmp_4 = this; Companion_getInstance_116(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_8(this).ko2_1 : tmp0_elvis_lhs_0; tmp_4.p10h_1 = tmp1_elvis_lhs == null ? 'http://localhost' : tmp1_elvis_lhs; var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.p10h_1); var trigger = di.x57(); // 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$2 = isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(); var tmp$ret$3 = tmp_6.b58(tmp$ret$2, context); var tmp$ret$4 = On(di, tmp$ret$3, trigger); var tmp_8 = get_direct(tmp$ret$4).z58(); // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$5 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); tmp_5.q10h_1 = tmp_8.x58(tmp$ret$5, null); var tmp_10 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_11 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(); tmp_10.r10h_1 = Instance(this, tmp$ret$7, null).u5d(this, genderConfig$factory_5()); var tmp_12 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.p10h_1); var trigger_0 = di.x57(); // Inline function 'org.kodein.di.diContext' call var tmp_13 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); var tmp$ret$10 = tmp_13.b58(tmp$ret$9, context_0); var tmp$ret$11 = On(di, tmp$ret$10, trigger_0); var tmp_15 = get_direct(tmp$ret$11).z58(); // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(EnrollToCourseFromInviteCodeUseCase), arrayOf([]), false)); var tmp$ret$12 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_12.s10h_1 = tmp_15.x58(tmp$ret$12, null); var tmp_17 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_1 = new LearningSpace(this.p10h_1); var trigger_1 = this.x57(); // Inline function 'org.kodein.di.diContext' call var tmp_18 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); var tmp$ret$15 = tmp_18.b58(tmp$ret$14, context_1); var this_0 = On(this, tmp$ret$15, trigger_1); // Inline function 'org.kodein.type.generic' call var tmp_20 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$17 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE(); tmp_17.t10h_1 = Instance(this_0, tmp$ret$17, null).u5d(this, enqueueSavePictureUseCase$factory_3()); this.rqn(Companion_getInstance_97().jq6_1); var title = this.pqn().coj(strings_getInstance().qn7_1); var tmp_21 = this.gqn(); launch(tmp_21, VOID, VOID, SignupEnterUsernamePasswordViewModel$slambda_0(this, savedStateHandle, null)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_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.s1l(prevValue, nextValue)) { break $l$block; } } } Companion_getInstance_212(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.j10h_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.' call var nextValue_0 = prevValue_0.v10i(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_2.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_22 = this; Companion_getInstance_168(); tmp_22.l10h_1 = 'ContentEntryListHome'; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.j10h_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).bq7_1; Companion_getInstance_201(); 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.j10h_1.t2().g10i_1; var tmp5_person = new Person(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_isPersonalAccount, tmp2_dateOfBirth); var nextValue_1 = prevValue_1.v10i(tmp5_person, VOID, tmp4_genderOptions); if (this_3.s1l(prevValue_1, nextValue_1)) { break $l$block_1; } } } } protoOf(SignupEnterUsernamePasswordViewModel).yz7 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10h_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onEntityChanged.' call var nextValue = prevValue.v10i(entity); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver = this.wqs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.wqs_1 = launch(tmp_0, VOID, VOID, SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignupEnterUsernamePasswordViewModel).uzn = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j10h_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onPasswordChanged.' call var nextValue = prevValue.v10i(VOID, password, VOID, VOID, VOID, VOID, null); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignupEnterUsernamePasswordViewModel).h10k = function () { this.rqn(Companion_getInstance_97().jq6_1); var tmp0_safe_receiver = this.j10h_1.t2().z10h_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.j10h_1.t2().u10h_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.yz7(tmp_3); var tmp6_elvis_lhs = this.j10h_1.t2().u10h_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.j10h_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.v10h_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_5 = this.pqn().coj(strings_getInstance().rmn_1); } else { tmp_5 = null; } var nextValue = prevValue.v10i(VOID, VOID, VOID, VOID, VOID, VOID, tmp_5); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_6(this.j10h_1.t2(), this)) { this.rqn(Companion_getInstance_97().kq6_1); return Unit_instance; } var tmp_6 = this.gqn(); 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().dq7_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.u10h_1 = person; this.v10h_1 = password; this.w10h_1 = genderOptions; this.x10h_1 = personPicture; this.y10h_1 = registrationMode; this.z10h_1 = firstName; this.a10i_1 = passwordError; this.b10i_1 = dateOfBirthError; this.c10i_1 = parentContactError; this.d10i_1 = genderError; this.e10i_1 = fullNameError; this.f10i_1 = passkeySupported; this.g10i_1 = isPersonalAccount; } protoOf(SignupEnterUsernamePasswordUiState).i10k = 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).v10i = function (person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount, $super) { person = person === VOID ? this.u10h_1 : person; password = password === VOID ? this.v10h_1 : password; genderOptions = genderOptions === VOID ? this.w10h_1 : genderOptions; personPicture = personPicture === VOID ? this.x10h_1 : personPicture; registrationMode = registrationMode === VOID ? this.y10h_1 : registrationMode; firstName = firstName === VOID ? this.z10h_1 : firstName; passwordError = passwordError === VOID ? this.a10i_1 : passwordError; dateOfBirthError = dateOfBirthError === VOID ? this.b10i_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.c10i_1 : parentContactError; genderError = genderError === VOID ? this.d10i_1 : genderError; fullNameError = fullNameError === VOID ? this.e10i_1 : fullNameError; passkeySupported = passkeySupported === VOID ? this.f10i_1 : passkeySupported; isPersonalAccount = isPersonalAccount === VOID ? this.g10i_1 : isPersonalAccount; return $super === VOID ? this.i10k(person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) : $super.i10k.call(this, person, password, genderOptions, personPicture, registrationMode, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount); }; protoOf(SignupEnterUsernamePasswordUiState).toString = function () { return 'SignupEnterUsernamePasswordUiState(person=' + this.u10h_1 + ', password=' + this.v10h_1 + ', genderOptions=' + this.w10h_1 + ', personPicture=' + this.x10h_1 + ', registrationMode=' + this.y10h_1 + ', firstName=' + this.z10h_1 + ', passwordError=' + this.a10i_1 + ', dateOfBirthError=' + this.b10i_1 + ', parentContactError=' + this.c10i_1 + ', genderError=' + this.d10i_1 + ', fullNameError=' + this.e10i_1 + ', passkeySupported=' + this.f10i_1 + ', isPersonalAccount=' + this.g10i_1 + ')'; }; protoOf(SignupEnterUsernamePasswordUiState).hashCode = function () { var result = this.u10h_1 == null ? 0 : this.u10h_1.hashCode(); result = imul(result, 31) + (this.v10h_1 == null ? 0 : getStringHashCode(this.v10h_1)) | 0; result = imul(result, 31) + hashCode(this.w10h_1) | 0; result = imul(result, 31) + (this.x10h_1 == null ? 0 : this.x10h_1.hashCode()) | 0; result = imul(result, 31) + this.y10h_1 | 0; result = imul(result, 31) + (this.z10h_1 == null ? 0 : getStringHashCode(this.z10h_1)) | 0; result = imul(result, 31) + (this.a10i_1 == null ? 0 : getStringHashCode(this.a10i_1)) | 0; result = imul(result, 31) + (this.b10i_1 == null ? 0 : getStringHashCode(this.b10i_1)) | 0; result = imul(result, 31) + (this.c10i_1 == null ? 0 : getStringHashCode(this.c10i_1)) | 0; result = imul(result, 31) + (this.d10i_1 == null ? 0 : getStringHashCode(this.d10i_1)) | 0; result = imul(result, 31) + (this.e10i_1 == null ? 0 : getStringHashCode(this.e10i_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.f10i_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.g10i_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.u10h_1, tmp0_other_with_cast.u10h_1)) return false; if (!(this.v10h_1 == tmp0_other_with_cast.v10h_1)) return false; if (!equals(this.w10h_1, tmp0_other_with_cast.w10h_1)) return false; if (!equals(this.x10h_1, tmp0_other_with_cast.x10h_1)) return false; if (!(this.y10h_1 === tmp0_other_with_cast.y10h_1)) return false; if (!(this.z10h_1 == tmp0_other_with_cast.z10h_1)) return false; if (!(this.a10i_1 == tmp0_other_with_cast.a10i_1)) return false; if (!(this.b10i_1 == tmp0_other_with_cast.b10i_1)) return false; if (!(this.c10i_1 == tmp0_other_with_cast.c10i_1)) return false; if (!(this.d10i_1 == tmp0_other_with_cast.d10i_1)) return false; if (!(this.e10i_1 == tmp0_other_with_cast.e10i_1)) return false; if (!(this.f10i_1 === tmp0_other_with_cast.f10i_1)) return false; if (!(this.g10i_1 === tmp0_other_with_cast.g10i_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 SiteDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).t10k = function (site, hasAdminPermission, $completion) { var tmp = this.u10k(site, hasAdminPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).on = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof Site) ? p1 : THROW_CCE(); return this.t10k(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return new Pair(this.r10k_1, this.s10k_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).u10k = function (site, hasAdminPermission, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda(completion); i.r10k_1 = site; i.s10k_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.t10k(site, hasAdminPermission, $completion); }; l.$arity = 2; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.d10l_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).f10l = function (it, $completion) { var tmp = this.g10l(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.f10l(p1 instanceof Pair ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp0_container = this.e10l_1; var entity = tmp0_container.y6(); var hasEditSitePermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.d10l_1.d10m_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.h10m(entity); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.d10l_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(prevValue_0.nq5_1.iq6(!(this.e10l_1.w6_1 == null) ? hasEditSitePermission : false)); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).g10l = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this.d10l_1, completion); i.e10l_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.f10l(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, $uiLangList, resultContinuation) { this.q10m_1 = this$0; this.r10m_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).t10m = function (it, $completion) { var tmp = this.u10m(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.t10m((!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$3: do { var this_0 = this.q10m_1.d10m_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.s10m_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.r10m_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (element_0.xq3_1 === element.dht_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.yq3_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.h10m(VOID, destination); if (this_0.s1l(prevValue, nextValue)) { break l$ret$3; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).u10m = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this.q10m_1, this.r10m_1, completion); i.s10m_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.t10m(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda($siteFlow, $permissionFlow, this$0, resultContinuation) { this.d10n_1 = $siteFlow; this.e10n_1 = $permissionFlow; this.f10n_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = combine(this.d10n_1, this.e10n_1, SiteDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_2(this.f10n_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda(this.d10n_1, this.e10n_1, this.f10n_1, completion); i.g10n_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda_1(this$0, $uiLangList, resultContinuation) { this.p10n_1 = this$0; this.q10n_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.p10n_1.lqn().q7f().dhs(1); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_4(this.p10n_1, this.q10n_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda_1(this.p10n_1, this.q10n_1, completion); i.r10n_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda(this$0, $this_launch, $uiLangList, resultContinuation) { this.a10o_1 = this$0; this.b10o_1 = $this_launch; this.c10o_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(SiteDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var siteFlow = this.a10o_1.lqn().p7f().khn(); var tmp_0 = this.a10o_1.lqn().j7g(); var tmp_1 = this.a10o_1.hqn(); PermissionFlags_getInstance(); var permissionFlow = tmp_0.si0(tmp_1, new Long(16384, 0)); launch(this.b10o_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_0(siteFlow, permissionFlow, this.a10o_1, null)); launch(this.b10o_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_2(this.a10o_1, this.c10o_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda).f79 = function (completion) { return new SiteDetailViewModel$slambda$slambda(this.a10o_1, this.b10o_1, this.c10o_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.d88($completion); }; l.$arity = 0; return l; } function Companion_197() { this.d10o_1 = 'Community'; } var Companion_instance_246; function Companion_getInstance_214() { return Companion_instance_246; } function sam$kotlinx_coroutines_flow_FlowCollector$0_39(function_0) { this.e10o_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_39).n1e = function (value, $completion) { return this.e10o_1(value, $completion); }; function SiteDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.ox1(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function SiteDetailViewModel$slambda(this$0, $uiLangList, resultContinuation) { this.n10o_1 = this$0; this.o10o_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.n10o_1.d10m_1, SiteDetailViewModel$slambda$slambda_0(this.n10o_1, this.p10o_1, this.o10o_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda(this.n10o_1, this.o10o_1, completion); i.p10o_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Community'); this.d10m_1 = MutableStateFlow(new SiteDetailUiState()); this.e10m_1 = asStateFlow(this.d10m_1); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this).z58(); // 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.x58(tmp$ret$0, null); var uiLangList = supportLangConfig.xpl_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.detail.SiteDetailViewModel.' call var tmp0_text = this.pqn().coj(strings_getInstance().pmv_1); var tmp1_onClick = SiteDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.cq6(new FabUiState(false, tmp0_text, tmp2_icon, tmp1_onClick), VOID, this.pqn().coj(strings_getInstance().zn9_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.gqn(); launch(tmp_1, VOID, VOID, SiteDetailViewModel$slambda_0(this, uiLangList, null)); } protoOf(SiteDetailViewModel).ox1 = function () { Companion_getInstance_125(); var tmp0_safe_receiver = this.d10m_1.t2().f10m_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ohn_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); this.rqm_1.dp6('SiteEdit', mapOf_0(to('entityUid', tmp2_elvis_lhs == null ? '-1' : tmp2_elvis_lhs))); }; protoOf(SiteDetailViewModel).q10o = function (termsAndLang) { var tmp0_elvis_lhs = termsAndLang.ska_1.dht_1; this.rqm_1.dp6('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.f10m_1 = site; this.g10m_1 = siteTerms; } protoOf(SiteDetailUiState).r10o = function (site, siteTerms) { return new SiteDetailUiState(site, siteTerms); }; protoOf(SiteDetailUiState).h10m = function (site, siteTerms, $super) { site = site === VOID ? this.f10m_1 : site; siteTerms = siteTerms === VOID ? this.g10m_1 : siteTerms; return $super === VOID ? this.r10o(site, siteTerms) : $super.r10o.call(this, site, siteTerms); }; protoOf(SiteDetailUiState).toString = function () { return 'SiteDetailUiState(site=' + this.f10m_1 + ', siteTerms=' + this.g10m_1 + ')'; }; protoOf(SiteDetailUiState).hashCode = function () { var result = this.f10m_1 == null ? 0 : hashCode(this.f10m_1); result = imul(result, 31) + hashCode(this.g10m_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.f10m_1, tmp0_other_with_cast.f10m_1)) return false; if (!equals(this.g10m_1, tmp0_other_with_cast.g10m_1)) return false; return true; }; function SiteEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.a10p_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda$slambda).gqa = function (it, $completion) { var tmp = this.hqa(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.gqa(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var tmp_0 = this.b10p_1.nq9_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.a10p_1.d10q(newTerms); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda$slambda).hqa = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda$slambda(this.a10p_1, completion); i.b10p_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.gqa(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda).n10q = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.n10q(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.m10q_1.p7f().jhn(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new SiteEditViewModel$slambda$slambda(completion); i.m10q_1 = db; return i; }; function SiteEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.n10q(db, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_1).rhp = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.rhp($completion); }; protoOf(SiteEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return new Site(); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_1).f79 = 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.rhp($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.z10p_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.e10r(it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda$slambda_3($supportedLangCodes, resultContinuation) { this.n10r_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_3).p10r = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_3).he = function (p1, $completion) { return this.p10r(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.o10r_1.q7f().ehs(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.n10r_1, element.dht_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.dht_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.n10r_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.dht_1 = item; destination_2.i1(this_3); } this_1.m1(destination_2); return this_1.f3(); case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_3).ony = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda_3(this.n10r_1, completion); i.o10r_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.p10r(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_5).y10r = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_5).g79 = function ($completion) { return this.y10r($completion); }; protoOf(SiteEditViewModel$slambda$slambda_5).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_5).f79 = 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.y10r($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.z10p_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.e10r(VOID, it == null ? emptyList() : it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SiteEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.h10s_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_7).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_7).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda$slambda_7).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.h10s_1.tqn(this.h10s_1.mqn(), 'siteTermsHtml'); var tmp_1 = SiteEditViewModel$slambda$slambda$slambda_0(this.h10s_1, null); suspendResult = tmp_0.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda$slambda_7).p1n = function ($this$launch, completion) { var i = new SiteEditViewModel$slambda$slambda_7(this.h10s_1, completion); i.i10s_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.o1n($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.cht_1; var this_0 = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); // Inline function 'kotlin.contracts.contract' call tmp.fht_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.b10q_1; languagesConfig$factory_2(); return this_0.t2(); } function Companion_198() { this.j10s_1 = 'SiteEdit'; this.k10s_1 = 'siteTermsLang'; this.l10s_1 = 'termsList'; this.m10s_1 = 'siteTermsHtml'; } var Companion_instance_247; function Companion_getInstance_215() { return Companion_instance_247; } function sam$kotlinx_coroutines_flow_FlowCollector$0_40(function_0) { this.n10s_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_40).n1e = function (value, $completion) { return this.n10s_1(value, $completion); }; function SiteEditViewModel$slambda(this$0, resultContinuation) { this.w10s_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda).as8 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.x10s_1.j7g(); var tmp_1 = this.w10s_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ri0(tmp_1, new Long(16384, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda).ony = function (db, completion) { var i = new SiteEditViewModel$slambda(this.w10s_1, completion); i.x10s_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.as8(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.z10p_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var nextValue = prevValue.e10r(VOID, VOID, VOID, enabled); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda_1(this$0, $supportedLangCodes, resultContinuation) { this.g10t_1 = this$0; this.h10t_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = Companion_instance_31.h4s(); var tmp_1 = SiteEditViewModel$slambda$slambda_0(null); var tmp_2 = SiteEditViewModel$slambda$slambda_2(null); suspendResult = this.g10t_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, SiteEditViewModel$slambda$lambda(this.g10t_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = ListSerializer(Companion_instance_47.h4s()); var tmp_4 = listOf_0('termsList'); var tmp_5 = SiteEditViewModel$slambda$slambda_4(this.h10t_1, null); var tmp_6 = SiteEditViewModel$slambda$slambda_6(null); suspendResult = this.g10t_1.yqn(tmp_3, tmp_4, 'termsList', tmp_5, tmp_6, SiteEditViewModel$slambda$lambda_0(this.g10t_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: l$ret$1: do { var this_0 = this.g10t_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_7 = this.g10t_1.pqn().coj(strings_getInstance().dn3_1); var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, SiteEditViewModel$onClickSave$ref(this.g10t_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.i10t_1, VOID, VOID, SiteEditViewModel$slambda$slambda_8(this.g10t_1, null)); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new SiteEditViewModel$slambda_1(this.g10t_1, this.h10t_1, completion); i.i10t_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.o1n($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onChangeTermsHtml$lambda($html) { return function ($this$shallowCopy) { $this$shallowCopy.cht_1 = $html; return Unit_instance; }; } function SiteEditViewModel$onChangeTermsHtml$lambda_0($prev) { return function (it) { return it.dht_1 === $prev.c10r_1.xq3_1; }; } function SiteEditViewModel$onChangeTermsHtml$slambda(this$0, $newTerms, resultContinuation) { this.r10t_1 = this$0; this.s10t_1 = $newTerms; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = delay(new Long(200, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.r10t_1.vqn(this.r10t_1.pqm_1, 'termsList', ListSerializer(Companion_instance_47.h4s()), this.s10t_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).p1n = function ($this$launch, completion) { var i = new SiteEditViewModel$onChangeTermsHtml$slambda(this.r10t_1, this.s10t_1, completion); i.t10t_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.c10u_1 = $commitDelay; this.d10u_1 = $entity; this.e10u_1 = $this; this.f10u_1 = $key; this.g10u_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onEntityChanged$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$onEntityChanged$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$onEntityChanged$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; this.hd_1 = 1; suspendResult = delay(this.c10u_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.d10u_1 == null)) { this.hd_1 = 2; suspendResult = this.e10u_1.vqn(this.e10u_1.pqm_1, this.f10u_1, this.g10u_1, this.d10u_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.hd_1 = 3; continue $sm; case 3: return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$onEntityChanged$slambda).p1n = function ($this$launch, completion) { var i = new SiteEditViewModel$onEntityChanged$slambda(this.c10u_1, this.d10u_1, this.e10u_1, this.f10u_1, this.g10u_1, completion); i.h10u_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onClickSave$slambda(this$0, $siteToSave, resultContinuation) { this.q10u_1 = this$0; this.r10u_1 = $siteToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onClickSave$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$onClickSave$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.q10u_1.lqn().p7f().lhn(this.r10u_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.q10u_1.lqn().q7f(); var this_0 = this.q10u_1.z10p_1.t2().x10q_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp_1; var tmp0_safe_receiver = element.cht_1; var this_1 = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); if (!(this_1 == null ? true : isBlank(this_1))) { tmp_1 = true; } else { tmp_1 = !element.bht_1.equals(new Long(0, 0)); } if (tmp_1) { 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_0.fhs(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.q10u_1.zqs('Community', this.r10u_1.ohn_1, this.r10u_1); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteEditViewModel$onClickSave$slambda).p1n = function ($this$launch, completion) { var i = new SiteEditViewModel$onClickSave$slambda(this.q10u_1, this.r10u_1, completion); i.s10u_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SiteEdit'); this.z10p_1 = MutableStateFlow(new SiteEditUiState()); this.a10q_1 = asStateFlow(this.z10p_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.b10q_1 = Instance(this, tmp$ret$0, null).u5d(this, languagesConfig$factory_1()); this.c10q_1 = null; var supportedLangs = _get_languagesConfig__hebcss_0(this).xpl_1; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(supportedLangs, 10)); var tmp0_iterator = supportedLangs.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp$ret$2 = item.xq3_1; destination.i1(tmp$ret$2); } var supportedLangCodes = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp0_title = this.pqn().coj(strings_getInstance().yn9_1); var nextValue = prevValue.cq6(VOID, VOID, tmp0_title, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.z10p_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp$ret$8; $l$block_0: { // Inline function 'kotlin.collections.first' call var tmp0_iterator_0 = supportedLangs.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var tmp0_elvis_lhs = savedStateHandle.ba('siteTermsLang'); if (element.xq3_1 === (tmp0_elvis_lhs == null ? _get_languagesConfig__hebcss_0(this).zpl_1 : tmp0_elvis_lhs)) { tmp$ret$8 = element; break $l$block_0; } } throw NoSuchElementException_init_$Create$_0('Collection contains no element matching the predicate.'); } var nextValue_0 = prevValue_0.e10r(VOID, VOID, supportedLangs, VOID, VOID, VOID, tmp$ret$8); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_1; } } } var tmp_1 = SiteEditViewModel$slambda_0(this, null); var tmp_2 = SiteEditViewModel$lambda(this); this.aqo(tmp_1, true, tmp_2, SiteEditViewModel$slambda_2(this, supportedLangCodes, null)); } protoOf(SiteEditViewModel).t10u = function (uiLang) { this.pqm_1.tqi('siteTermsLang', uiLang.xq3_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.z10p_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onChangeTermsLanguage.' call var nextValue = prevValue.e10r(VOID, VOID, VOID, VOID, VOID, VOID, uiLang); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SiteEditViewModel).d10q = function (html) { var tmp0_elvis_lhs = this.z10p_1.t2().u10u(); 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.z10p_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.e10r(VOID, replace_0(prevValue.x10q_1, tmp_0, SiteEditViewModel$onChangeTermsHtml$lambda_0(prevValue)), VOID, VOID, VOID, null); if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newTerms = tmp$ret$1.x10q_1; var tmp1_safe_receiver = this.c10q_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.gs(); } var tmp_1 = this; var tmp_2 = this.gqn(); tmp_1.c10q_1 = launch(tmp_2, VOID, VOID, SiteEditViewModel$onChangeTermsHtml$slambda_0(this, newTerms, null)); }; protoOf(SiteEditViewModel).v10u = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.z10p_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.w10q_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.thn_1; var nextValue = prevValue.e10r(entity, VOID, VOID, VOID, this.aqu(tmp, entity == null ? null : entity.thn_1, prevValue.a10r_1)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_31.h4s(); var commitDelay = new Long(200, 0); Companion_getInstance_125(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.wqs_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.gs(); } var tmp_0 = this; var tmp_1 = this.gqn(); tmp_0.wqs_1 = launch(tmp_1, VOID, VOID, SiteEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SiteEditViewModel).os5 = function () { var tmp0_elvis_lhs = this.z10p_1.t2().w10q_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.thn_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.z10p_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var nextValue = prevValue.e10r(VOID, VOID, VOID, VOID, this.pqn().coj(strings_getInstance().vnl_1)); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } } // Inline function 'kotlin.collections.map' call var this_2 = this.z10p_1.t2().x10q_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.dht_1; var tmp_0 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp0_safe_receiver = item.cht_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.vhn_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.z10p_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.e10r(VOID, VOID, VOID, VOID, VOID, this.pqn().coj(strings_getInstance().gnm_1)); if (this_3.s1l(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if (this.z10p_1.t2().d10r_1) return Unit_instance; var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, SiteEditViewModel$onClickSave$slambda_0(this, siteToSave, null)); }; function SiteEditUiState(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) { 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; registrationEnabledError = registrationEnabledError === VOID ? null : registrationEnabledError; currentSiteTermsLang = currentSiteTermsLang === VOID ? first_0(uiLangs) : currentSiteTermsLang; this.w10q_1 = site; this.x10q_1 = siteTerms; this.y10q_1 = uiLangs; this.z10q_1 = fieldsEnabled; this.a10r_1 = siteNameError; this.b10r_1 = registrationEnabledError; this.c10r_1 = currentSiteTermsLang; this.d10r_1 = !(this.a10r_1 == null) ? true : !(this.b10r_1 == null); } protoOf(SiteEditUiState).u10u = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.x10q_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditUiState..' call if (element.dht_1 === this.c10r_1.xq3_1) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } return tmp$ret$1; }; protoOf(SiteEditUiState).w10u = function () { var tmp0_safe_receiver = this.u10u(); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cht_1; }; protoOf(SiteEditUiState).x10u = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) { return new SiteEditUiState(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).e10r = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang, $super) { site = site === VOID ? this.w10q_1 : site; siteTerms = siteTerms === VOID ? this.x10q_1 : siteTerms; uiLangs = uiLangs === VOID ? this.y10q_1 : uiLangs; fieldsEnabled = fieldsEnabled === VOID ? this.z10q_1 : fieldsEnabled; siteNameError = siteNameError === VOID ? this.a10r_1 : siteNameError; registrationEnabledError = registrationEnabledError === VOID ? this.b10r_1 : registrationEnabledError; currentSiteTermsLang = currentSiteTermsLang === VOID ? this.c10r_1 : currentSiteTermsLang; return $super === VOID ? this.x10u(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) : $super.x10u.call(this, site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).toString = function () { return 'SiteEditUiState(site=' + this.w10q_1 + ', siteTerms=' + this.x10q_1 + ', uiLangs=' + this.y10q_1 + ', fieldsEnabled=' + this.z10q_1 + ', siteNameError=' + this.a10r_1 + ', registrationEnabledError=' + this.b10r_1 + ', currentSiteTermsLang=' + this.c10r_1 + ')'; }; protoOf(SiteEditUiState).hashCode = function () { var result = this.w10q_1 == null ? 0 : hashCode(this.w10q_1); result = imul(result, 31) + hashCode(this.x10q_1) | 0; result = imul(result, 31) + hashCode(this.y10q_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.z10q_1) | 0; result = imul(result, 31) + (this.a10r_1 == null ? 0 : getStringHashCode(this.a10r_1)) | 0; result = imul(result, 31) + (this.b10r_1 == null ? 0 : getStringHashCode(this.b10r_1)) | 0; result = imul(result, 31) + this.c10r_1.hashCode() | 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.w10q_1, tmp0_other_with_cast.w10q_1)) return false; if (!equals(this.x10q_1, tmp0_other_with_cast.x10q_1)) return false; if (!equals(this.y10q_1, tmp0_other_with_cast.y10q_1)) return false; if (!(this.z10q_1 === tmp0_other_with_cast.z10q_1)) return false; if (!(this.a10r_1 == tmp0_other_with_cast.a10r_1)) return false; if (!(this.b10r_1 == tmp0_other_with_cast.b10r_1)) return false; if (!this.c10r_1.equals(tmp0_other_with_cast.c10r_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_199() { this.y10u_1 = 'locale'; this.z10u_1 = 'Terms'; } var Companion_instance_248; function Companion_getInstance_216() { 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.i10v_1 = $acceptButtonMode; this.j10v_1 = $apiUrl; this.k10v_1 = $di; this.l10v_1 = $learningSpace; this.m10v_1 = this$0; this.n10v_1 = $savedStateHandle; this.o10v_1 = $getLocaleForSiteTermsUseCase$delegate; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteTermsDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; var tmp_0 = this; var tmp_1; if (this.i10v_1 ? !(this.j10v_1 == null) : false) { var this_0 = get_direct(this.k10v_1); var context = this.l10v_1; var tmp_2 = this_0.z58(); var tmp_3 = Companion_instance_0; var tmp_4 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_5 = tmp_2.w58(tmp_3.b58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), context)).z58(); var tmp_6 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1 = tmp_5.x58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), null).uk2(); } else { tmp_1 = this.m10v_1.lqn(); } tmp_0.q10v_1 = tmp_1; this.r10v_1 = this.n10v_1.ba('locale'); this.s10v_1 = this.r10v_1; if (this.s10v_1 == null) { this.hd_1 = 1; suspendResult = _init_$lambda(this.o10v_1).cpm(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.t10v_1 = this.s10v_1; this.hd_1 = 2; continue $sm; } case 1: this.t10v_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.u10v_1 = this.t10v_1; this.hd_1 = 3; suspendResult = this.q10v_1.q7f().hhs(this.u10v_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.m10v_1.r10w_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.w10w(displayTerms, this.i10v_1); if (this_1.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); } else { l$ret$3: do { var this_2 = this.m10v_1.r10w_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.w10w(VOID, VOID, this.m10v_1.pqn().coj(strings_getInstance().wmi_1)); if (this_2.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } return Unit_instance; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SiteTermsDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new SiteTermsDetailViewModel$slambda(this.i10v_1, this.j10v_1, this.k10v_1, this.l10v_1, this.m10v_1, this.n10v_1, this.o10v_1, completion); i.p10v_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SiteTermsDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Terms'); this.r10w_1 = MutableStateFlow(new SiteTermsDetailUiState()); this.s10w_1 = asStateFlow(this.r10w_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_116(); var apiUrl = savedStateHandle.ba('learningSpaceUrl'); var tmp; if (acceptButtonMode ? !(apiUrl == null) : false) { tmp = new LearningSpace(apiUrl); } else { tmp = this.fqn().boa(); } var learningSpace = tmp; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var trigger = this.x57(); // 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.b58(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).u5d(null, getLocalDelegateReference('getLocaleForSiteTermsUseCase', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tqm_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.pqn().coj(strings_getInstance().sn9_1); var nextValue = prevValue.cq6(VOID, VOID, tmp1_title, tmp0_navigationVisible, true, VOID, false); if (this_1.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.gqn(); launch(tmp_3, VOID, VOID, SiteTermsDetailViewModel$slambda_0(acceptButtonMode, apiUrl, di, learningSpace, this, savedStateHandle, getLocaleForSiteTermsUseCase$delegate, null)); } protoOf(SiteTermsDetailViewModel).x10w = function () { Companion_getInstance_212(); // 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.dqo(this_0, Companion_getInstance_212().vr6_1); Companion_getInstance_125(); this.cqo(this_0, 'next'); var tmp$ret$2 = this_0.f3(); this.rqm_1.dp6('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.t10w_1 = siteTerms; this.u10w_1 = acceptButtonVisible; this.v10w_1 = error; } protoOf(SiteTermsDetailUiState).y10w = function (siteTerms, acceptButtonVisible, error) { return new SiteTermsDetailUiState(siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).w10w = function (siteTerms, acceptButtonVisible, error, $super) { siteTerms = siteTerms === VOID ? this.t10w_1 : siteTerms; acceptButtonVisible = acceptButtonVisible === VOID ? this.u10w_1 : acceptButtonVisible; error = error === VOID ? this.v10w_1 : error; return $super === VOID ? this.y10w(siteTerms, acceptButtonVisible, error) : $super.y10w.call(this, siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).toString = function () { return 'SiteTermsDetailUiState(siteTerms=' + this.t10w_1 + ', acceptButtonVisible=' + this.u10w_1 + ', error=' + this.v10w_1 + ')'; }; protoOf(SiteTermsDetailUiState).hashCode = function () { var result = this.t10w_1 == null ? 0 : hashCode(this.t10w_1); result = imul(result, 31) + getBooleanHashCode(this.u10w_1) | 0; result = imul(result, 31) + (this.v10w_1 == null ? 0 : getStringHashCode(this.v10w_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.t10w_1, tmp0_other_with_cast.t10w_1)) return false; if (!(this.u10w_1 === tmp0_other_with_cast.u10w_1)) return false; if (!(this.v10w_1 == tmp0_other_with_cast.v10w_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.w10x_1; httpClient$factory_12(); return this_0.t2(); } function _get_impl__d88w17_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x10x_1; impl$factory_6(); return this_0.t2(); } function Companion_200() { Companion_instance_249 = this; this.y10x_1 = 'LearningSpaceEnterLink'; var tmp = this; Companion_getInstance_125(); Companion_getInstance_116(); Companion_getInstance_125(); tmp.z10x_1 = listOf(['next', 'intMsg', 'noSessionChange']); this.a10y_1 = 'stateUrl'; } var Companion_instance_249; function Companion_getInstance_217() { if (Companion_instance_249 == null) new Companion_200(); return Companion_instance_249; } function LearningSpaceEnterLinkViewModel$onClickNext$slambda(this$0, $endpointUrl, $viewName, resultContinuation) { this.j10y_1 = this$0; this.k10y_1 = $endpointUrl; this.l10y_1 = $viewName; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; suspendResult = verifySite(_get_httpClient__2ty1zc_5(this.j10y_1), this.k10y_1, VOID, this.j10y_1.g4s(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var site = suspendResult; Companion_getInstance_116(); var tmp_0 = to('learningSpaceUrl', this.k10y_1); Companion_getInstance_116(); var this_0 = this.j10y_1.g4s(); var this_1 = this_0.n46(); var this_2 = serializer(this_1, createKType(getKClass(Site), arrayOf([]), false)); var args = mutableMapOf([tmp_0, to('site', this_0.l46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), site))]); var tmp0_iterator = Companion_getInstance_217().z10x_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); this.j10y_1.cqo(args, element); } this.j10y_1.rqn(Companion_getInstance_97().kq6_1); l$ret$1: do { var this_3 = this.j10y_1.u10x_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.s10y(VOID, true, VOID, null, true); if (this_3.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_1; if (equals(this.l10y_1, 'RegisterAgeRedirect')) { tmp_1 = !site.vhn_1; } else { tmp_1 = false; } if (tmp_1) { this.j10y_1.rqn(Companion_getInstance_97().kq6_1); l$ret$3: do { var this_4 = this.j10y_1.u10x_1; while (true) { var prevValue_0 = this_4.t2(); this.j10y_1.rqn(Companion_getInstance_97().kq6_1); var tmp0_linkError = _get_impl__d88w17_2(this.j10y_1).coj(strings_getInstance().pnq_1); var nextValue_0 = prevValue_0.s10y(VOID, true, VOID, tmp0_linkError, true); if (this_4.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } this.j10y_1.rqm_1.dp6(this.l10y_1, args); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_2 = this.kd_1; if (tmp_2 instanceof Error) { var e = this.kd_1; var tmp_3 = Napier_getInstance(); tmp_3.e5f(e, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda$lambda(this.k10y_1)); l$ret$5: do { var this_5 = this.j10y_1.u10x_1; while (true) { var prevValue_1 = this_5.t2(); this.j10y_1.rqn(Companion_getInstance_97().kq6_1); var tmp0_linkError_0 = _get_impl__d88w17_2(this.j10y_1).coj(strings_getInstance().tmt_1); var nextValue_1 = prevValue_1.s10y(VOID, false, VOID, tmp0_linkError_0, true); if (this_5.s1l(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).p1n = function ($this$launch, completion) { var i = new LearningSpaceEnterLinkViewModel$onClickNext$slambda(this.j10y_1, this.k10y_1, this.l10y_1, completion); i.m10y_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function LearningSpaceEnterLinkViewModel(di, savedStateHandle) { Companion_getInstance_217(); UstadViewModel.call(this, di, savedStateHandle, 'LearningSpaceEnterLink'); this.u10x_1 = MutableStateFlow(new LearningSpaceEnterLinkUiState()); this.v10x_1 = asStateFlow(this.u10x_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.w10x_1 = Instance(this, tmp$ret$0, null).u5d(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.x10x_1 = Instance(this, tmp$ret$2, null).u5d(this, impl$factory_5()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_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).coj(strings_getInstance().qnc_1); var nextValue = prevValue.cq6(VOID, VOID, tmp0_title, false, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.u10x_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_217().a10y_1); var nextValue_0 = prevValue_0.s10y(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(LearningSpaceEnterLinkViewModel).cwg = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.u10x_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onClickNext.' call var nextValue = prevValue.s10y(VOID, VOID, VOID, VOID, false); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp; Companion_getInstance_212(); if (this.pqm_1.ba('newOrExisting') === 'new') { tmp = 'RegisterAgeRedirect'; } else { tmp = 'Login'; } var viewName = tmp; this.rqn(Companion_getInstance_97().jq6_1); var endpointUrl = requirePostfix(requireHttpPrefix(this.u10x_1.t2().n10y_1), '/'); var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda_0(this, endpointUrl, viewName, null)); }; protoOf(LearningSpaceEnterLinkViewModel).t10y = function (siteLink) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.u10x_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onSiteLinkUpdated.' call var nextValue = prevValue.s10y(siteLink); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } this.pqm_1.tqi(Companion_getInstance_217().a10y_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.n10y_1 = siteLink; this.o10y_1 = validLink; this.p10y_1 = progressVisible; this.q10y_1 = linkError; this.r10y_1 = fieldsEnabled; } protoOf(LearningSpaceEnterLinkUiState).u10y = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled) { return new LearningSpaceEnterLinkUiState(siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).s10y = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled, $super) { siteLink = siteLink === VOID ? this.n10y_1 : siteLink; validLink = validLink === VOID ? this.o10y_1 : validLink; progressVisible = progressVisible === VOID ? this.p10y_1 : progressVisible; linkError = linkError === VOID ? this.q10y_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.r10y_1 : fieldsEnabled; return $super === VOID ? this.u10y(siteLink, validLink, progressVisible, linkError, fieldsEnabled) : $super.u10y.call(this, siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).toString = function () { return 'LearningSpaceEnterLinkUiState(siteLink=' + this.n10y_1 + ', validLink=' + this.o10y_1 + ', progressVisible=' + this.p10y_1 + ', linkError=' + this.q10y_1 + ', fieldsEnabled=' + this.r10y_1 + ')'; }; protoOf(LearningSpaceEnterLinkUiState).hashCode = function () { var result = getStringHashCode(this.n10y_1); result = imul(result, 31) + getBooleanHashCode(this.o10y_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.p10y_1) | 0; result = imul(result, 31) + (this.q10y_1 == null ? 0 : getStringHashCode(this.q10y_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.r10y_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.n10y_1 === tmp0_other_with_cast.n10y_1)) return false; if (!(this.o10y_1 === tmp0_other_with_cast.o10y_1)) return false; if (!(this.p10y_1 === tmp0_other_with_cast.p10y_1)) return false; if (!(this.q10y_1 == tmp0_other_with_cast.q10y_1)) return false; if (!(this.r10y_1 === tmp0_other_with_cast.r10y_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().cno_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1024, 0)); var tmp_2 = strings_getInstance().dno_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().eno_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(32768, 0)); var tmp_6 = strings_getInstance().jno_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(131072, 0)); var tmp_8 = strings_getInstance().ino_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(4096, 0)); var tmp_10 = strings_getInstance().hno_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(512, 0)); var tmp_12 = strings_getInstance().vnn_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(1, 0)); var tmp_14 = strings_getInstance().wnn_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(2, 0)); var tmp_16 = strings_getInstance().xnn_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(4, 0)); var tmp_18 = strings_getInstance().snn_1; PermissionFlags_getInstance(); var tmp_19 = to(tmp_18, new Long(2048, 0)); var tmp_20 = strings_getInstance().ynn_1; PermissionFlags_getInstance(); var tmp_21 = to(tmp_20, new Long(8, 0)); var tmp_22 = strings_getInstance().znn_1; PermissionFlags_getInstance(); var tmp_23 = to(tmp_22, new Long(16, 0)); var tmp_24 = strings_getInstance().ano_1; PermissionFlags_getInstance(); var tmp_25 = to(tmp_24, new Long(32, 0)); var tmp_26 = strings_getInstance().bno_1; PermissionFlags_getInstance(); var tmp_27 = to(tmp_26, new Long(64, 0)); var tmp_28 = strings_getInstance().fno_1; PermissionFlags_getInstance(); var tmp_29 = to(tmp_28, new Long(128, 0)); var tmp_30 = strings_getInstance().gno_1; PermissionFlags_getInstance(); tmp.v10y_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.si0(accountPersonUid, new Long(-1, 2147483647)); } return tmp; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).g10z = function (entity, hasViewPermission, $completion) { var tmp = this.h10z(entity, hasViewPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).on = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof SystemPermission) ? p1 : THROW_CCE(); return this.g10z(tmp, (!(p2 == null) ? typeof p2 === 'boolean' : false) ? p2 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.e10z_1; var tmp_0; if (this.f10z_1) { tmp_0 = this_0; } else { tmp_0 = null; } return tmp_0; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).h10z = function (entity, hasViewPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.e10z_1 = entity; i.f10z_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.g10z(entity, hasViewPermission, $completion); }; l.$arity = 2; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.q10z_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).s10z = function (it, $completion) { var tmp = this.t10z(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.s10z((p1 == null ? true : p1 instanceof SystemPermission) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; l$ret$1: do { var this_0 = this.q10z_1.r110_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.r10z_1 == null)) { tmp_0 = SystemPermissionConstants_getInstance().v10y_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.v110(this.r10z_1, tmp_0); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); if (!(this.r10z_1 == null)) { this.hd_1 = 1; suspendResult = this.q10z_1.lqn().h7e().lg5(this.q10z_1.q110_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: var title = suspendResult; l$ret$3: do { var this_1 = this.q10z_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).t10z = function (it, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.q10z_1, completion); i.r10z_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.s10z(it, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.e111_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).bqf = function (hasEditPermission, $completion) { var tmp = this.cqf(hasEditPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.bqf((!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; l$ret$1: do { var this_0 = this.e111_1.tqm_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cq6(prevValue.nq5_1.iq6(this.f111_1)); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).cqf = function (hasEditPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this.e111_1, completion); i.f111_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.bqf(hasEditPermission, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $viewPermissionFlow, this$0, resultContinuation) { this.o111_1 = $entityFlow; this.p111_1 = $viewPermissionFlow; this.q111_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = combine(this.o111_1, this.p111_1, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null)); suspendResult = collectLatest(tmp_0, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.q111_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).p1n = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda(this.o111_1, this.p111_1, this.q111_1, completion); i.r111_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda_1($editPermissionFlow, this$0, resultContinuation) { this.a112_1 = $editPermissionFlow; this.b112_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_4(this.b112_1, null); suspendResult = this.a112_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda_1(this.a112_1, this.b112_1, completion); i.c112_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewPermissionFlow, this$0, $editPermissionFlow, resultContinuation) { this.l112_1 = $this_launch; this.m112_1 = $entityFlow; this.n112_1 = $viewPermissionFlow; this.o112_1 = this$0; this.p112_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; launch(this.l112_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_0(this.m112_1, this.n112_1, this.o112_1, null)); launch(this.l112_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_2(this.p112_1, this.o112_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).f79 = function (completion) { return new SystemPermissionDetailViewModel$slambda$slambda(this.l112_1, this.m112_1, this.n112_1, this.o112_1, this.p112_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.d88($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_125(); $this.cqo(this_0, 'personUid'); var tmp$ret$2 = this_0.f3(); $this.rqm_1.dp6('SystemPermissionEdit', tmp$ret$2); } function Companion_201() { this.q112_1 = 'SystemPermission'; } var Companion_instance_250; function Companion_getInstance_218() { return Companion_instance_250; } function sam$kotlinx_coroutines_flow_FlowCollector$0_41(function_0) { this.r112_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_41).n1e = function (value, $completion) { return this.r112_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.a113_1 = this$0; this.b113_1 = $entityFlow; this.c113_1 = $viewPermissionFlow; this.d113_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDetailViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = whenSubscribed(this.a113_1.r110_1, SystemPermissionDetailViewModel$slambda$slambda_0(this.e113_1, this.b113_1, this.c113_1, this.a113_1, this.d113_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionDetailViewModel$slambda).p1n = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda(this.a113_1, this.b113_1, this.c113_1, this.d113_1, completion); i.e113_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'SystemPermission'); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.q110_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.r110_1 = MutableStateFlow(new SystemPermissionDetailUiState()); this.s110_1 = asStateFlow(this.r110_1); var entityFlow = this.lqn().j7g().pi0(this.q110_1); var viewPermissionFlow = personHasSystemPermissionAsFlowForUser(this.lqn().j7g(), this.hqn(), this.q110_1); var tmp_0 = this.lqn().j7g(); var tmp_1 = this.hqn(); PermissionFlags_getInstance(); var editPermissionFlow = tmp_0.si0(tmp_1, new Long(4096, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.detail.SystemPermissionDetailViewModel.' call var tmp0_text = this.pqn().coj(strings_getInstance().pmv_1); var tmp1_onClick = SystemPermissionDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.cq6(new FabUiState(VOID, tmp0_text, tmp2_icon, tmp1_onClick)); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.gqn(); 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.t110_1 = systemPermission; this.u110_1 = permissionLabels; } protoOf(SystemPermissionDetailUiState).v110 = function (systemPermission, permissionLabels) { return new SystemPermissionDetailUiState(systemPermission, permissionLabels); }; protoOf(SystemPermissionDetailUiState).toString = function () { return 'SystemPermissionDetailUiState(systemPermission=' + this.t110_1 + ', permissionLabels=' + this.u110_1 + ')'; }; protoOf(SystemPermissionDetailUiState).hashCode = function () { var result = this.t110_1 == null ? 0 : this.t110_1.hashCode(); result = imul(result, 31) + hashCode(this.u110_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.t110_1, tmp0_other_with_cast.t110_1)) return false; if (!equals(this.u110_1, tmp0_other_with_cast.u110_1)) return false; return true; }; function SystemPermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.n113_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda).p113 = function (db, $completion) { var tmp = this.ony(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.p113(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.o113_1.j7g().qi0(this.n113_1.p114_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).ony = function (db, completion) { var i = new SystemPermissionEditViewModel$slambda$slambda(this.n113_1, completion); i.o113_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.p113(db, $completion); }; l.$arity = 1; return l; } function SystemPermissionEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda_1).ci4 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).g79 = function ($completion) { return this.ci4($completion); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return null; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).f79 = 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.ci4($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.n114_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().v10y_1; } else { tmp = emptyList(); } var nextValue = prevValue.b115(it, VOID, tmp); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.os5(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SystemPermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.k115_1 = this$0; this.l115_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.k115_1.lqn().j7g().wi0(this.l115_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).ony = function (it, completion) { var i = new SystemPermissionEditViewModel$onClickSave$slambda$slambda(this.k115_1, this.l115_1, completion); i.m115_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.nny(it, $completion); }; l.$arity = 1; return l; } function Companion_202() { this.n115_1 = 'SystemPermissionEdit'; } var Companion_instance_251; function Companion_getInstance_219() { return Companion_instance_251; } function SystemPermissionEditViewModel$slambda(this$0, resultContinuation) { this.w115_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda).as8 = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda).he = function (p1, $completion) { return this.as8(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = this.w115_1.lqn().j7g(); var tmp_1 = this.w115_1.hqn(); PermissionFlags_getInstance(); suspendResult = tmp_0.ri0(tmp_1, new Long(4096, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$slambda).ony = function (it, completion) { var i = new SystemPermissionEditViewModel$slambda(this.w115_1, completion); i.x115_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.as8(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.n114_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel..' call var nextValue = prevValue.b115(VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$slambda_1(this$0, resultContinuation) { this.g116_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda_1).o1n = function ($this$launchIfHasPermission, $completion) { var tmp = this.p1n($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionEditViewModel$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; var tmp_0 = Companion_getInstance_7().h4s(); var tmp_1 = SystemPermissionEditViewModel$slambda$slambda_0(this.g116_1, null); var tmp_2 = SystemPermissionEditViewModel$slambda$slambda_2(null); suspendResult = this.g116_1.zqn(tmp_0, VOID, VOID, tmp_1, tmp_2, SystemPermissionEditViewModel$slambda$lambda(this.g116_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.g116_1.tqm_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.g116_1.pqn().coj(strings_getInstance().dn3_1); var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, SystemPermissionEditViewModel$onClickSave$ref(this.g116_1))); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.g116_1.lqn().h7e().lg5(this.g116_1.p114_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$3: do { var this_1 = this.g116_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$slambda_1).p1n = function ($this$launchIfHasPermission, completion) { var i = new SystemPermissionEditViewModel$slambda_1(this.g116_1, completion); i.h116_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.o1n($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.n114_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onClickSave..' call var nextValue = prevValue.b115(VOID, it); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.q116_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.q116_1.n114_1.t2().y114_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.r116_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.q116_1.lqn(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, SystemPermissionEditViewModel$onClickSave$slambda$slambda_0(this.q116_1, this.r116_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_116(); this.q116_1.rqm_1.cq9('', true); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).f79 = function (completion) { return new SystemPermissionEditViewModel$onClickSave$slambda(this.q116_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.d88($completion); }; l.$arity = 0; return l; } function SystemPermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SystemPermissionEdit'); this.n114_1 = MutableStateFlow(new SystemPermissionEditUiState()); this.o114_1 = asStateFlow(this.n114_1); var tmp = this; Companion_getInstance_125(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.p114_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.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = SystemPermissionEditViewModel$slambda_0(this, null); var tmp_1 = SystemPermissionEditViewModel$lambda(this); this.bqo(tmp_0, VOID, tmp_1, SystemPermissionEditViewModel$slambda_2(this, null)); } protoOf(SystemPermissionEditViewModel).ot2 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.n114_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onTogglePermission.' call var tmp0_safe_receiver = prevValue.y114_1; var nextValue = prevValue.b115(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xkx(VOID, VOID, VOID, toggleFlag(prevValue.y114_1.oi1_1, flag))); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SystemPermissionEditViewModel).os5 = function () { var tmp = SystemPermissionEditViewModel$onClickSave$lambda(this); this.cqu(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.y114_1 = entity; this.z114_1 = fieldsEnabled; this.a115_1 = permissionLabels; } protoOf(SystemPermissionEditUiState).s116 = function (entity, fieldsEnabled, permissionLabels) { return new SystemPermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).b115 = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.y114_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.z114_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.a115_1 : permissionLabels; return $super === VOID ? this.s116(entity, fieldsEnabled, permissionLabels) : $super.s116.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).toString = function () { return 'SystemPermissionEditUiState(entity=' + this.y114_1 + ', fieldsEnabled=' + this.z114_1 + ', permissionLabels=' + this.a115_1 + ')'; }; protoOf(SystemPermissionEditUiState).hashCode = function () { var result = this.y114_1 == null ? 0 : this.y114_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.z114_1) | 0; result = imul(result, 31) + hashCode(this.a115_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.y114_1, tmp0_other_with_cast.y114_1)) return false; if (!(this.z114_1 === tmp0_other_with_cast.z114_1)) return false; if (!equals(this.a115_1, tmp0_other_with_cast.a115_1)) return false; return true; }; function TimeZoneListViewModel$slambda$slambda(this$0, resultContinuation) { this.b117_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda$slambda).d117 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TimeZoneListViewModel$slambda$slambda).he = function (p1, $completion) { return this.d117((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; return _get_allTimeZones__4t4mtu(this.b117_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TimeZoneListViewModel$slambda$slambda).p1n = function ($this$withContext, completion) { var i = new TimeZoneListViewModel$slambda$slambda(this.b117_1, completion); i.c117_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.d117($this$withContext, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda($searchText, this$0, resultContinuation) { this.m117_1 = $searchText; this.n117_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).d117 = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).he = function (p1, $completion) { return this.d117((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; var this_0 = this.m117_1; var searchWords = Regex_init_$Create$('\\s+').y9(this_0, 0); var this_1 = _get_allTimeZones__4t4mtu(this.n117_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.umg(), 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.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).p1n = function ($this$withContext, completion) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda(this.m117_1, this.n117_1, completion); i.o117_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.d117($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_allTimeZones__4t4mtu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p118_1; allTimeZones$factory(); return this_0.t2(); } function Companion_203() { this.r118_1 = 'TimeZoneList'; } var Companion_instance_252; function Companion_getInstance_220() { return Companion_instance_252; } function sam$kotlin_Comparator$0_3(function_0) { this.s118_1 = function_0; } protoOf(sam$kotlin_Comparator$0_3).pa = function (a, b) { return this.s118_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.umd(); // Inline function 'kotlin.collections.sortedBy' call // Inline function 'kotlin.collections.map' call var this_0 = Companion_getInstance_9().umh(); // 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_9().rmg(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).ymh(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.allTimeZones$delegate..' call var tmp$ret$1 = offsetAt(b, $now).ymh(); return compareValues(tmp, tmp$ret$1); }; } function TimeZoneListViewModel$slambda(this$0, resultContinuation) { this.b119_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TimeZoneListViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_0, TimeZoneListViewModel$slambda$slambda_0(this.b119_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.b119_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.e119(allTimeZonesVal); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(TimeZoneListViewModel$slambda).p1n = function ($this$launch, completion) { var i = new TimeZoneListViewModel$slambda(this.b119_1, completion); i.c119_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda(this$0, $searchText, resultContinuation) { this.n119_1 = this$0; this.o119_1 = $searchText; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().j13_1; suspendResult = withContext(tmp_0, TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda_0(this.o119_1, this.n119_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.n119_1.kqv_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.e119(filteredList); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).p1n = function ($this$launch, completion) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda(this.n119_1, this.o119_1, completion); i.p119_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new TimezoneListUiState(), 'TimeZoneList'); var tmp = this; tmp.p118_1 = lazy_0(TimeZoneListViewModel$allTimeZones$delegate$lambda); this.q118_1 = null; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, this.pqn().coj(strings_getInstance().hn3_1), VOID, VOID, VOID, VOID, this.tqw()); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.gqn(); launch(tmp_0, VOID, VOID, TimeZoneListViewModel$slambda_0(this, null)); } protoOf(TimeZoneListViewModel).eqw = function (searchText) { var tmp0_safe_receiver = this.q118_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.gs(); } var tmp = this; var tmp_0 = this.gqn(); tmp.q118_1 = launch(tmp_0, VOID, VOID, TimeZoneListViewModel$onUpdateSearchResult$slambda_0(this, searchText, null)); }; protoOf(TimeZoneListViewModel).q119 = function (entry) { this.aqt(entry.umg()); }; protoOf(TimeZoneListViewModel).fqw = function () { }; function TimezoneListUiState(timeZoneList) { timeZoneList = timeZoneList === VOID ? emptyList() : timeZoneList; this.d119_1 = timeZoneList; } protoOf(TimezoneListUiState).e119 = function (timeZoneList) { return new TimezoneListUiState(timeZoneList); }; protoOf(TimezoneListUiState).toString = function () { return 'TimezoneListUiState(timeZoneList=' + this.d119_1 + ')'; }; protoOf(TimezoneListUiState).hashCode = function () { return hashCode(this.d119_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.d119_1, tmp0_other_with_cast.d119_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.z119_1 = this$0; this.a11a_1 = $contentEntryVersion; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(VideoContentViewModel$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VideoContentViewModel$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; var tmp_0 = this; tmp_0.c11a_1 = this.z119_1.g4s(); var tmp_1 = this; tmp_1.d11a_1 = _get_httpClient__2ty1zc_6(this.z119_1); var tmp_2 = this; tmp_2.e11a_1 = ensureNotNull(this.a11a_1.jay_1); var tmp_3 = this; tmp_3.f11a_1 = this.d11a_1; var tmp_4 = this; tmp_4.g11a_1 = this.f11a_1; var tmp_5 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.e11a_1); tmp_5.h11a_1 = this_0; this.h11a_1.q39_1 = Companion_getInstance().f2y_1; var tmp_6 = this; tmp_6.i11a_1 = this.g11a_1; var tmp_7 = this; tmp_7.j11a_1 = this.h11a_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.j11a_1, this.i11a_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.k11a_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.k11a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.l11a_1 = suspendResult; var tmp_8 = this; var this_1 = this.c11a_1.n46(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_8.m11a_1 = this.c11a_1.m46(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.l11a_1); this.n11a_1 = requireBodyUrlForUri(this.m11a_1, ensureNotNull(this.a11a_1.hay_1)); var tmp_9 = this; tmp_9.o11a_1 = this.z119_1.g4s(); var tmp_10 = this; tmp_10.p11a_1 = _get_httpClient__2ty1zc_6(this.z119_1); var tmp_11 = this; tmp_11.q11a_1 = this.n11a_1; var tmp_12 = this; tmp_12.r11a_1 = this.p11a_1; var tmp_13 = this; tmp_13.s11a_1 = this.r11a_1; var tmp_14 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.q11a_1); tmp_14.t11a_1 = this_3; this.t11a_1.q39_1 = Companion_getInstance().f2y_1; var tmp_15 = this; tmp_15.u11a_1 = this.s11a_1; var tmp_16 = this; tmp_16.v11a_1 = this.t11a_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.v11a_1, this.u11a_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.w11a_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.w11a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var string = suspendResult; var this_4 = this.o11a_1.n46(); var this_5 = serializer(this_4, createKType(getKClass(MediaContentInfo), arrayOf([]), false)); var mediaInfo = this.o11a_1.m46(isInterface(this_5, KSerializer) ? this_5 : THROW_CCE(), string); l$ret$1: do { var this_6 = this.z119_1.y11b_1; while (true) { var prevValue = this_6.t2(); var tmp0_contentEntryVersionUid = this.z119_1.x11b_1; var tmp1_learningSpace = this.z119_1.fqn().boa(); var tmp2_manifestUrl = ensureNotNull(this.a11a_1.jay_1); var tmp3_contentManifestMap = new ContentManifestMap(this.m11a_1); var nextValue = prevValue.j11c(mediaInfo, tmp0_contentEntryVersionUid, tmp1_learningSpace, VOID, tmp2_manifestUrl, tmp3_contentManifestMap); if (this_6.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; case 5: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 5) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(VideoContentViewModel$slambda$slambda).p1n = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda$slambda(this.z119_1, this.a11a_1, completion); i.b11a_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function VideoContentViewModel$slambda$slambda_1(this$0, $contentEntryVersion, resultContinuation) { this.s11c_1 = this$0; this.t11c_1 = $contentEntryVersion; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda$slambda_1).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(VideoContentViewModel$slambda$slambda_1).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VideoContentViewModel$slambda$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.s11c_1.lqn().p7e().lav(this.t11c_1.gay_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var contentEntry = suspendResult; l$ret$1: do { var this_0 = this.s11c_1.y11b_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.j11c(VOID, VOID, VOID, VOID, VOID, VOID, contentEntry); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.s11c_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = contentEntry == null ? null : contentEntry.iaw_1; var nextValue_0 = prevValue_0.cq6(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(VideoContentViewModel$slambda$slambda_1).p1n = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda$slambda_1(this.s11c_1, this.t11c_1, completion); i.u11c_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.o1n($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.v11c_1 = timestamp; this.w11c_1 = timeInMillis; this.x11c_1 = totalDuration; this.y11c_1 = resumed; } protoOf(MediaPlayState).z11c = function () { var tmp; if (this.x11c_1.c7(new Long(0, 0)) > 0) { // Inline function 'kotlin.Long.times' call tmp = this.w11c_1.cb(toLong(100)).bb(this.x11c_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(MediaPlayState).toString = function () { return 'MediaPlayState(timestamp=' + this.v11c_1.toString() + ', timeInMillis=' + this.w11c_1.toString() + ', totalDuration=' + this.x11c_1.toString() + ', resumed=' + this.y11c_1 + ')'; }; protoOf(MediaPlayState).hashCode = function () { var result = this.v11c_1.hashCode(); result = imul(result, 31) + this.w11c_1.hashCode() | 0; result = imul(result, 31) + this.x11c_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.y11c_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.v11c_1.equals(tmp0_other_with_cast.v11c_1)) return false; if (!this.w11c_1.equals(tmp0_other_with_cast.w11c_1)) return false; if (!this.x11c_1.equals(tmp0_other_with_cast.x11c_1)) return false; if (!(this.y11c_1 === tmp0_other_with_cast.y11c_1)) return false; return true; }; function _get_httpClient__2ty1zc_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.a11c_1; httpClient$factory_14(); return this_0.t2(); } function Companion_204() { this.a11d_1 = 'Video'; } var Companion_instance_253; function Companion_getInstance_221() { return Companion_instance_253; } function VideoContentViewModel$slambda(this$0, resultContinuation) { this.j11d_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(VideoContentViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VideoContentViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.j11d_1.lqn().c7g().zbq(this.j11d_1.x11b_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.k11d_1, VOID, VOID, VideoContentViewModel$slambda$slambda_0(this.j11d_1, contentEntryVersion, null)); launch(this.k11d_1, VOID, VOID, VideoContentViewModel$slambda$slambda_2(this.j11d_1, contentEntryVersion, null)); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(VideoContentViewModel$slambda).p1n = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda(this.j11d_1, completion); i.k11d_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function VideoContentViewModel(di, savedStateHandle) { AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'Video'); this.w11b_1 = MutableStateFlow(new MediaPlayState()); var tmp = this; Companion_getInstance_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.x11b_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.y11b_1 = MutableStateFlow(new VideoContentUiState()); this.z11b_1 = asStateFlow(this.y11b_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.a11c_1 = Instance(this, tmp$ret$0, null).u5d(this, httpClient$factory_13()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tqm_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.' call var nextValue = prevValue.cq6(VOID, VOID, VOID, VOID, true); if (this_0.s1l(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.gqn(); launch(tmp_2, VOID, VOID, VideoContentViewModel$slambda_0(this, null)); } protoOf(VideoContentViewModel).ey8 = function () { var tmp0_safe_receiver = this.y11b_1.t2().h11c_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.iaw_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).l11d = function (playState) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.w11b_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.onPlayStateChanged.' call var nextValue = playState; if (this_0.s1l(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var prevState = tmp$ret$1; if (!(prevState.y11c_1 === playState.y11c_1)) { this.iq2(playState.y11c_1); } this.vq2(playState.z11c()); }; 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.b11c_1 = mediaContentInfo; this.c11c_1 = contentEntryVersionUid; this.d11c_1 = learningSpace; this.e11c_1 = mediaSrc; this.f11c_1 = manifestUrl; this.g11c_1 = contentManifestMap; this.h11c_1 = contentEntry; this.i11c_1 = isFullScreen; } protoOf(VideoContentUiState).m11d = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) { return new VideoContentUiState(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).j11c = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen, $super) { mediaContentInfo = mediaContentInfo === VOID ? this.b11c_1 : mediaContentInfo; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.c11c_1 : contentEntryVersionUid; learningSpace = learningSpace === VOID ? this.d11c_1 : learningSpace; mediaSrc = mediaSrc === VOID ? this.e11c_1 : mediaSrc; manifestUrl = manifestUrl === VOID ? this.f11c_1 : manifestUrl; contentManifestMap = contentManifestMap === VOID ? this.g11c_1 : contentManifestMap; contentEntry = contentEntry === VOID ? this.h11c_1 : contentEntry; isFullScreen = isFullScreen === VOID ? this.i11c_1 : isFullScreen; return $super === VOID ? this.m11d(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) : $super.m11d.call(this, mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).toString = function () { return 'VideoContentUiState(mediaContentInfo=' + this.b11c_1 + ', contentEntryVersionUid=' + this.c11c_1.toString() + ', learningSpace=' + this.d11c_1 + ', mediaSrc=' + this.e11c_1 + ', manifestUrl=' + this.f11c_1 + ', contentManifestMap=' + this.g11c_1 + ', contentEntry=' + this.h11c_1 + ', isFullScreen=' + this.i11c_1 + ')'; }; protoOf(VideoContentUiState).hashCode = function () { var result = this.b11c_1 == null ? 0 : hashCode(this.b11c_1); result = imul(result, 31) + this.c11c_1.hashCode() | 0; result = imul(result, 31) + (this.d11c_1 == null ? 0 : this.d11c_1.hashCode()) | 0; result = imul(result, 31) + (this.e11c_1 == null ? 0 : getStringHashCode(this.e11c_1)) | 0; result = imul(result, 31) + (this.f11c_1 == null ? 0 : getStringHashCode(this.f11c_1)) | 0; result = imul(result, 31) + (this.g11c_1 == null ? 0 : this.g11c_1.hashCode()) | 0; result = imul(result, 31) + (this.h11c_1 == null ? 0 : this.h11c_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.i11c_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.b11c_1, tmp0_other_with_cast.b11c_1)) return false; if (!this.c11c_1.equals(tmp0_other_with_cast.c11c_1)) return false; if (!equals(this.d11c_1, tmp0_other_with_cast.d11c_1)) return false; if (!(this.e11c_1 == tmp0_other_with_cast.e11c_1)) return false; if (!(this.f11c_1 == tmp0_other_with_cast.f11c_1)) return false; if (!equals(this.g11c_1, tmp0_other_with_cast.g11c_1)) return false; if (!equals(this.h11c_1, tmp0_other_with_cast.h11c_1)) return false; if (!(this.i11c_1 === tmp0_other_with_cast.i11c_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.i11e_1; resolveXapiLaunchHrefUseCase$factory_0(); return this_0.t2(); } function Companion_205() { this.m11e_1 = 'XapiContent'; } var Companion_instance_254; function Companion_getInstance_222() { return Companion_instance_254; } function XapiContentViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.v11e_1 = this$0; this.w11e_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiContentViewModel$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(XapiContentViewModel$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(XapiContentViewModel$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.id_1 = 2; this.hd_1 = 1; var tmp_0 = _get_resolveXapiLaunchHrefUseCase__8u4pj4(this.v11e_1); Companion_getInstance_125(); var tmp0_safe_receiver = this.w11e_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_125(); var tmp2_safe_receiver = this.w11e_1.ba('courseBlockUid'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); suspendResult = tmp_0.np9(this.v11e_1.j11e_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.v11e_1.k11e_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.a11f(launchHrefResult.gp6_1); if (this_0.s1l(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.v11e_1.tqm_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.cq6(VOID, VOID, launchHrefResult.ip6_1.bp9_1, VOID, true); if (this_1.s1l(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_2 = this.kd_1; if (tmp_2 instanceof Error) { var e = this.kd_1; Napier_getInstance().k5f('Exception opening xapi content', e); this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(XapiContentViewModel$slambda).p1n = function ($this$launch, completion) { var i = new XapiContentViewModel$slambda(this.v11e_1, this.w11e_1, completion); i.x11e_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.o1n($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.i11e_1 = Instance(this_0, tmp$ret$0, null).u5d(this, resolveXapiLaunchHrefUseCase$factory()); var tmp_1 = this; Companion_getInstance_116(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.j11e_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.k11e_1 = MutableStateFlow(new XapiContentUiState(VOID, this.j11e_1)); this.l11e_1 = asStateFlow(this.k11e_1); var tmp_2 = this.gqn(); 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.y11e_1 = url; this.z11e_1 = contentEntryVersionUid; } protoOf(XapiContentUiState).b11f = function (url, contentEntryVersionUid) { return new XapiContentUiState(url, contentEntryVersionUid); }; protoOf(XapiContentUiState).a11f = function (url, contentEntryVersionUid, $super) { url = url === VOID ? this.y11e_1 : url; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.z11e_1 : contentEntryVersionUid; return $super === VOID ? this.b11f(url, contentEntryVersionUid) : $super.b11f.call(this, url, contentEntryVersionUid); }; protoOf(XapiContentUiState).toString = function () { return 'XapiContentUiState(url=' + this.y11e_1 + ', contentEntryVersionUid=' + this.z11e_1.toString() + ')'; }; protoOf(XapiContentUiState).hashCode = function () { var result = this.y11e_1 == null ? 0 : getStringHashCode(this.y11e_1); result = imul(result, 31) + this.z11e_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.y11e_1 == tmp0_other_with_cast.y11e_1)) return false; if (!this.z11e_1.equals(tmp0_other_with_cast.z11e_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$78(_this__u8e3s4, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function doublePbkdf2HashAsBase64(_this__u8e3s4, password, $completion) { var tmp = new $doublePbkdf2HashAsBase64COROUTINE$80(_this__u8e3s4, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $encryptPbkdf2COROUTINE$78(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.k11f_1 = _this__u8e3s4; this.l11f_1 = password; } protoOf($encryptPbkdf2COROUTINE$78).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var tmp_1 = get_direct(this.k11f_1.vns_1).z58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.m11f_1 = tmp_1.x58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.n11f_1 = this.m11f_1; var tmp_4 = this; tmp_4.o11f_1 = this.k11f_1.uns_1.mnt_1 + 'api/pbkdf2/encryptPbkdf2'; var tmp_5 = this; tmp_5.p11f_1 = this.n11f_1; var tmp_6 = this; tmp_6.q11f_1 = this.p11f_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.o11f_1); parameter(this_0, 'secret', this.l11f_1); tmp_7.r11f_1 = this_0; this.r11f_1.q39_1 = Companion_getInstance().f2y_1; var tmp_8 = this; tmp_8.s11f_1 = this.q11f_1; var tmp_9 = this; tmp_9.t11f_1 = this.r11f_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.t11f_1, this.s11f_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.u11f_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.u11f_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; return decodeBase64Bytes(ARGUMENT); case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function $doublePbkdf2HashAsBase64COROUTINE$80(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.d11g_1 = _this__u8e3s4; this.e11g_1 = password; } protoOf($doublePbkdf2HashAsBase64COROUTINE$80).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var tmp_1 = get_direct(this.d11g_1.vns_1).z58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.f11g_1 = tmp_1.x58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.g11g_1 = this.f11g_1; var tmp_4 = this; tmp_4.h11g_1 = this.d11g_1.uns_1.mnt_1 + 'api/pbkdf2/doubleEncryptPbkdf2'; var tmp_5 = this; tmp_5.i11g_1 = this.g11g_1; var tmp_6 = this; tmp_6.j11g_1 = this.i11g_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.h11g_1); parameter(this_0, 'secret', this.e11g_1); tmp_7.k11g_1 = this_0; this.k11g_1.q39_1 = Companion_getInstance().f2y_1; var tmp_8 = this; tmp_8.l11g_1 = this.j11g_1; var tmp_9 = this; tmp_9.m11g_1 = this.k11g_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.m11g_1, this.l11g_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.n11g_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.n11g_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_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_116(); if (_this__u8e3s4 === '') { tmp = get_ustadViewName(this$0.p11g_1); } else { tmp = _this__u8e3s4; } return tmp; } function NavHostFunction(navigateFn, location, onHideChildren) { this.o11g_1 = navigateFn; this.p11g_1 = location; this.q11g_1 = onHideChildren; } protoOf(NavHostFunction).r11g = function (cmd) { if (cmd instanceof NavigateNavCommand) { var tmp1_safe_receiver = cmd.hq9_1.tq3_1; var popUpToView = tmp1_safe_receiver == null ? null : invoke$effectivePopUpTo(tmp1_safe_receiver, this); if ((popUpToView == null ? true : popUpToView === get_ustadViewName(this.p11g_1)) ? !cmd.hq9_1.vq3_1 ? true : this.p11g_1.key === get_firstLocationKey() : false) { Napier_getInstance().c5f('NavHostFunction: go to /' + cmd.fq9_1 + '?' + toUrlQueryString(cmd.gq9_1)); var replaceNav = (popUpToView === get_ustadViewName(this.p11g_1) ? cmd.hq9_1.uq3_1 : false) ? true : cmd.hq9_1.vq3_1; var tmp = '/' + cmd.fq9_1 + '?' + toUrlQueryString(cmd.gq9_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.p11g_1); this.o11g_1(tmp, this_0); } else { Napier_getInstance().c5f('NavHostFunction: pop, then go /' + cmd.fq9_1 + '?' + toUrlQueryString(cmd.gq9_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.hq9_1.vq3_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.hq9_1.uq3_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerGoToAfterPop'] = '/' + cmd.fq9_1 + '?' + toUrlQueryString(cmd.gq9_1); this.q11g_1(); this.o11g_1(-1); } } else { if (cmd instanceof PopNavCommand) { var popUpTo = invoke$effectivePopUpTo(cmd.jq9_1, this); if (popUpTo === get_ustadViewName(this.p11g_1) ? cmd.kq9_1 : false) { Napier_getInstance().c5f('NavHostFunction: pop to current viewname ' + popUpTo + ' (inclusive) ' + 'e.g. go back one'); this.o11g_1(-1); } else if (!(popUpTo === get_ustadViewName(this.p11g_1))) { Napier_getInstance().c5f('NavHostFunction: pop to ' + popUpTo + ' inclusive = ' + cmd.kq9_1); sessionStorage.removeItem('navHostHitPopupto'); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpTo'] = cmd.jq9_1; // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.kq9_1.toString(); this.q11g_1(); this.o11g_1(-1); } else { Napier_getInstance().c5f('NavHostFunction: pop up to current viewname, inclusive = false?? Nothing to do.'); } } else { Napier_getInstance().c5f('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().n13().lj(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.gs(); } // 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().w5e('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().w5e('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().w5e('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().w5e('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().w5e('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().w5e('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().w5e('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().w5e('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.a11h_1 = $navigateFn; CoroutineImpl.call(this, resultContinuation); } protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = delay(new Long(250, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Napier_getInstance().w5e('NavHost: action: clearStackTimeout: apparently at the end of history. go to clearstack'); sessionStorage['navControllerClearStack'] = 'true'; this.a11h_1('/ClearStack'); return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).p1n = function ($this$launch, completion) { var i = new NavHost$lambda$lambda$launchClearStackTimeout$slambda(this.a11h_1, completion); i.b11h_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.o1n($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$81(_this__u8e3s4, activeUserPersonUid, personUid, username, newPassword, currentPassword, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.k11h_1 = _this__u8e3s4; this.l11h_1 = activeUserPersonUid; this.m11h_1 = personUid; this.n11h_1 = username; this.o11h_1 = newPassword; this.p11h_1 = currentPassword; } protoOf($invokeCOROUTINE$81).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; var tmp_1 = this.k11h_1.z11h_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.q11h_1 = tmp_2; this.id_1 = 2; var tmp_3 = this; tmp_3.r11h_1 = this.k11h_1.a11i_1; var tmp_4 = this; tmp_4.s11h_1 = this.k11h_1.y11h_1.mnt_1 + 'api/account/setpassword'; var tmp_5 = this; tmp_5.t11h_1 = this.r11h_1; var tmp_6 = this; tmp_6.u11h_1 = this.t11h_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.s11h_1); doorNodeIdHeader(this_0, this.q11h_1); parameter(this_0, 'nodeActiveUserUid', this.l11h_1); parameter(this_0, 'personUid', this.m11h_1.toString()); parameter(this_0, 'username', this.n11h_1); parameter(this_0, 'newPassword', this.o11h_1); var tmp0_safe_receiver = this.p11h_1; if (tmp0_safe_receiver == null) null; else { parameter(this_0, 'currentPassword', tmp0_safe_receiver); } set_expectSuccess(this_0, false); tmp_7.v11h_1 = this_0; this.v11h_1.q39_1 = Companion_getInstance().g2y_1; var tmp_8 = this; tmp_8.w11h_1 = this.u11h_1; var tmp_9 = this; tmp_9.x11h_1 = this.v11h_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.x11h_1, this.w11h_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; if (result.d3c().equals(Companion_getInstance_0().r2z_1)) { throw new UnauthorizedException(); } else if (!isSuccess(result.d3c())) { throw IllegalStateException_init_$Create$('Bad response to set password request: ' + result.d3c()); } this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_10 = this.kd_1; if (tmp_10 instanceof Error) { var e = this.kd_1; var tmp_11 = Napier_getInstance(); tmp_11.m5f(e, VOID, SetPasswordUseCaseJs$invoke$lambda); throw e; } else { throw this.kd_1; } case 3: throw this.kd_1; case 4: this.id_1 = 3; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 3) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function SetPasswordUseCaseJs(learningSpace, repo, httpClient) { this.y11h_1 = learningSpace; this.z11h_1 = repo; this.a11i_1 = httpClient; } protoOf(SetPasswordUseCaseJs).boi = function (activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion) { var tmp = new $invokeCOROUTINE$81(this, activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OpenBlobUseCaseJs() { } protoOf(OpenBlobUseCaseJs).dop = function (item, onProgress, intent, $completion) { var element = document.createElement('a'); element.setAttribute('href', item.loo_1); element.setAttribute('download', item.noo_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.j11i_1 = $transferJobItemStatusUpdater; this.k11i_1 = this$0; this.l11i_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).nny = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).he = function (p1, $completion) { return this.nny(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = this.j11i_1.jow(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.k11i_1.q11i_1.e7g(); var tmp0_safe_receiver = firstOrNull(this.l11i_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t11i_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tcc_1; suspendResult = tmp_0.wie(tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs, TransferJobItemStatus_FAILED_getInstance().okb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).ony = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda(this.j11i_1, this.k11i_1, this.l11i_1, completion); i.m11i_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.nny(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda($transferJobItemStatusUpdater, $uploadItem) { return function (it) { $transferJobItemStatusUpdater.gow(new BlobTransferProgressUpdate($uploadItem, it.apn_1)); return Unit_instance; }; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this$0, $transferJobItemStatusUpdater, $uriToSaveQueueItems, resultContinuation) { this.c11j_1 = this$0; this.d11j_1 = $transferJobItemStatusUpdater; this.e11j_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).o1n = function ($this$withContext, $completion) { var tmp = this.p1n($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.c11j_1.q11i_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda_0(this.d11j_1, this.c11j_1, this.e11j_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).p1n = function ($this$withContext, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this.c11j_1, this.d11j_1, this.e11j_1, completion); i.f11j_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.o1n($this$withContext, $completion); }; l.$arity = 1; return l; } function UriToSaveQueueItem(uriToSaveItem, transferJobItem) { this.s11i_1 = uriToSaveItem; this.t11i_1 = transferJobItem; } protoOf(UriToSaveQueueItem).toString = function () { return 'UriToSaveQueueItem(uriToSaveItem=' + this.s11i_1 + ', transferJobItem=' + this.t11i_1 + ')'; }; protoOf(UriToSaveQueueItem).hashCode = function () { var result = this.s11i_1.hashCode(); result = imul(result, 31) + this.t11i_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.s11i_1.equals(tmp0_other_with_cast.s11i_1)) return false; if (!this.t11i_1.equals(tmp0_other_with_cast.t11i_1)) return false; return true; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this$0, $localUrisToSave, $onTransferJobItemCreated, resultContinuation) { this.o11j_1 = this$0; this.p11j_1 = $localUrisToSave; this.q11j_1 = $onTransferJobItemCreated; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).j11k = function (it, $completion) { var tmp = this.ony(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).he = function (p1, $completion) { return this.j11k(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 8; this.hd_1 = 1; suspendResult = this.o11j_1.q11i_1.d7g().iic(new TransferJob(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.s11j_1 = suspendResult; this.t11j_1 = this.s11j_1.mb(); var tmp_0 = this; tmp_0.u11j_1 = this.p11j_1; var tmp_1 = this; tmp_1.v11j_1 = this.u11j_1; var tmp_2 = this; tmp_2.w11j_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.u11j_1, 10)); this.x11j_1 = this.v11j_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.x11j_1.f()) { this.hd_1 = 7; continue $sm; } this.y11j_1 = this.x11j_1.e(); var tmp_3 = this; tmp_3.z11j_1 = this.y11j_1; var tmp_4 = this; tmp_4.a11k_1 = fetch(this.z11j_1.dor_1); this.hd_1 = 3; var this_0 = this.a11k_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.b11k_1 = suspendResult; this.c11k_1 = this.b11k_1.blob(); this.hd_1 = 4; var this_1 = this.c11k_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.d11k_1 = suspendResult; this.e11k_1 = this.d11k_1.size; this.f11k_1 = numberToLong(this.e11k_1); var tmp_5 = this; var tmp0_tjiSrc = this.z11j_1.dor_1; var tmp1_tjiTableId = this.z11j_1.for_1; var tmp2_tjiEntityUid = this.z11j_1.eor_1; tmp_5.g11k_1 = new TransferJobItem(VOID, this.t11j_1, this.f11k_1, VOID, VOID, tmp0_tjiSrc, VOID, VOID, VOID, tmp1_tjiTableId, tmp2_tjiEntityUid); this.hd_1 = 5; suspendResult = this.o11j_1.q11i_1.e7g().sie(this.g11k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.h11k_1 = suspendResult; this.i11k_1 = this.h11k_1.mb(); this.q11j_1(this.z11j_1, this.g11k_1.kky(this.i11k_1)); this.hd_1 = 6; suspendResult = this.o11j_1.r11i_1.yow(this.o11j_1.q11i_1, this.z11j_1.for_1, this.z11j_1.eor_1, this.i11k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var ARGUMENT = new UriToSaveQueueItem(this.z11j_1, this.g11k_1.kky(this.i11k_1)); this.w11j_1.i1(ARGUMENT); this.hd_1 = 2; continue $sm; case 7: return this.w11j_1; case 8: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 8) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).ony = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this.o11j_1, this.p11j_1, this.q11j_1, completion); i.r11j_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.j11k(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this$0, $uriToSaveQueueItems, resultContinuation) { this.s11k_1 = this$0; this.t11k_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).p11l = function ($this$coroutineScope, $completion) { var tmp = this.p1n($this$coroutineScope, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).he = function (p1, $completion) { return this.p11l((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 8; this.v11k_1 = new TransferJobItemStatusUpdater(this.s11k_1.q11i_1, null, this.u11k_1); this.id_1 = 5; var tmp_0 = this; tmp_0.x11k_1 = this.t11k_1; var tmp_1 = this; tmp_1.y11k_1 = this.x11k_1; var tmp_2 = this; tmp_2.z11k_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.x11k_1, 10)); this.a11l_1 = this.y11k_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.a11l_1.f()) { this.hd_1 = 3; continue $sm; } this.b11l_1 = this.a11l_1.e(); var tmp_3 = this; tmp_3.c11l_1 = this.b11l_1; this.d11l_1 = new BlobTransferJobItem('', this.c11l_1.t11i_1.scc_1); this.v11k_1.how(new BlobTransferStatusUpdate(this.d11l_1, TransferJobItemStatus_IN_PROGRESS_getInstance().okb_1)); this.e11l_1 = this.s11k_1.n11i_1; this.f11l_1 = randomUuidAsString(); this.g11l_1 = Companion_getInstance_3().i2s(this.c11l_1.s11i_1.dor_1); this.h11l_1 = this.s11k_1.o11i_1.mnt_1 + 'api/blob/upload-item'; var tmp_4 = this; var this_0 = LinkedHashMap_init_$Create$(); var tmp0_safe_receiver = this.c11l_1.s11i_1.gor_1; if (tmp0_safe_receiver == null) null; else { this_0.s('X-Blob-Response-' + 'Content-Type', listOf_0(tmp0_safe_receiver)); } tmp_4.i11l_1 = asIStringValues(this_0.f3()); this.hd_1 = 2; suspendResult = this.e11l_1.gpn(this.f11l_1, this.g11l_1, this.h11l_1, VOID, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda(this.v11k_1, this.d11l_1), VOID, this.i11l_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.j11l_1 = suspendResult; var tmp_5 = this; var tmp5_elvis_lhs = this.j11l_1.cpn_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.k11l_1 = tmp_6; this.v11k_1.how(new BlobTransferStatusUpdate(this.d11l_1, TransferJobItemStatus_COMPLETE_getInstance().okb_1)); this.l11l_1 = this.s11k_1.p11i_1.m46(Companion_instance_82.h4s(), this.k11l_1); Napier_getInstance().c5f('SaveLocalUrisAsBlobUseCaseJs: upload complete: ' + (this.c11l_1.s11i_1.dor_1 + ' stored as ' + this.l11l_1.doq_1)); this.m11l_1 = this.l11l_1.lor(this.c11l_1.s11i_1.eor_1, this.c11l_1.s11i_1.for_1, this.c11l_1.s11i_1.dor_1); this.z11k_1.i1(this.m11l_1); this.hd_1 = 1; continue $sm; case 3: this.n11l_1 = this.z11k_1; this.hd_1 = 4; suspendResult = this.v11k_1.jow(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.w11k_1 = this.n11l_1; this.id_1 = 8; this.hd_1 = 7; continue $sm; case 5: this.id_1 = 8; var tmp_7 = this.kd_1; if (tmp_7 instanceof Error) { this.o11l_1 = this.kd_1; Napier_getInstance().k5f('SaveLocalUriAsBlobUseCaseJs: exception uploading', this.o11l_1); this.hd_1 = 6; var tmp_8 = NonCancellable_getInstance(); suspendResult = withContext(tmp_8, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda_0(this.s11k_1, this.v11k_1, this.t11k_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.kd_1; } case 6: var tmp_9 = this; throw this.o11l_1; case 7: this.id_1 = 8; return this.w11k_1; case 8: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 8) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).p1n = function ($this$coroutineScope, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this.s11k_1, this.t11k_1, completion); i.u11k_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.p11l($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$82(_this__u8e3s4, localUrisToSave, onTransferJobItemCreated, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.y11l_1 = _this__u8e3s4; this.z11l_1 = localUrisToSave; this.a11m_1 = onTransferJobItemCreated; } protoOf($invokeCOROUTINE$82).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.y11l_1.q11i_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_0(this.y11l_1, this.z11l_1, this.a11m_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.b11m_1 = suspendResult; this.hd_1 = 2; suspendResult = coroutineScope(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_2(this.y11l_1, this.b11m_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return suspendResult; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function SaveLocalUrisAsBlobUseCaseJs(chunkedUploadClientLocalUriUseCase, learningSpace, json, db, updateTransferJobItemEtagUseCase) { updateTransferJobItemEtagUseCase = updateTransferJobItemEtagUseCase === VOID ? new UpdateTransferJobItemEtagUseCase() : updateTransferJobItemEtagUseCase; this.n11i_1 = chunkedUploadClientLocalUriUseCase; this.o11i_1 = learningSpace; this.p11i_1 = json; this.q11i_1 = db; this.r11i_1 = updateTransferJobItemEtagUseCase; } protoOf(SaveLocalUrisAsBlobUseCaseJs).mor = function (localUrisToSave, onTransferJobItemCreated, $completion) { var tmp = new $invokeCOROUTINE$82(this, localUrisToSave, onTransferJobItemCreated, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnqueueSavePictureUseCaseJs$invoke$slambda(this$0, $entityUid, $tableId, $pictureUri, resultContinuation) { this.k11m_1 = this$0; this.l11m_1 = $entityUid; this.m11m_1 = $tableId; this.n11m_1 = $pictureUri; CoroutineImpl.call(this, resultContinuation); } protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.k11m_1.p11m_1.nor(this.l11m_1, this.m11m_1, this.n11m_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).p1n = function ($this$launch, completion) { var i = new EnqueueSavePictureUseCaseJs$invoke$slambda(this.k11m_1, this.l11m_1, this.m11m_1, this.n11m_1, completion); i.o11m_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function EnqueueSavePictureUseCaseJs(savePictureUseCase) { this.p11m_1 = savePictureUseCase; this.q11m_1 = CoroutineScope_0(Dispatchers_getInstance().j13_1.lj(Job())); } protoOf(EnqueueSavePictureUseCaseJs).nor = function (entityUid, tableId, pictureUri, $completion) { launch(this.q11m_1, VOID, VOID, EnqueueSavePictureUseCaseJs$invoke$slambda_0(this, entityUid, tableId, pictureUri, null)); return Unit_instance; }; function SetClipboardStringUseCaseJs() { } protoOf(SetClipboardStringUseCaseJs).ip1 = 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().c5f('CompressImageUseCaseJs: compressing ' + $fromUri + ' : success'); $completeable.az(it); return Unit_instance; }; } function CompressImageUseCaseJs$invoke$lambda_0($fromUri, $completeable) { return function (it) { Napier_getInstance().k5f('CompressImageUseCaseJs: compressing ' + $fromUri + ' : error', it); $completeable.cz(it); return Unit_instance; }; } function $invokeCOROUTINE$83(_this__u8e3s4, fromUri, toUri, params, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z11m_1 = _this__u8e3s4; this.a11n_1 = fromUri; this.b11n_1 = toUri; this.c11n_1 = params; this.d11n_1 = onProgress; } protoOf($invokeCOROUTINE$83).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 6; this.e11n_1 = CompletableDeferred(); Napier_getInstance().c5f('CompressImageUseCaseJs: compressing ' + this.a11n_1); this.id_1 = 4; var tmp_0 = this; tmp_0.f11n_1 = fetch(this.a11n_1); this.hd_1 = 1; var this_0 = this.f11n_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.g11n_1 = suspendResult; this.h11n_1 = this.g11n_1.blob(); this.hd_1 = 2; var this_1 = this.h11n_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.i11n_1 = suspendResult; var this_2 = {}; this_2.maxWidth = this.c11n_1.lp1_1; this_2.maxHeight = this.c11n_1.mp1_1; this_2.convertSize = 50000; this_2.convertTypes = ['image/png']; this_2.success = CompressImageUseCaseJs$invoke$lambda(this.a11n_1, this.e11n_1); this_2.error = CompressImageUseCaseJs$invoke$lambda_0(this.a11n_1, this.e11n_1); new com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk(this.i11n_1, this_2); this.hd_1 = 3; suspendResult = this.e11n_1.hw(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.i11n_1.size), numberToLong(compressedBlob.size)); case 4: this.id_1 = 6; var tmp_1 = this.kd_1; if (tmp_1 instanceof Error) { var e = this.kd_1; Napier_getInstance().k5f('CompressImageUseCase: Exception caught: ', e); throw e; } else { throw this.kd_1; } case 5: this.id_1 = 6; return Unit_instance; case 6: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 6) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function CompressImageUseCaseJs() { } protoOf(CompressImageUseCaseJs).j11n = function (fromUri, toUri, params, onProgress, $completion) { var tmp = new $invokeCOROUTINE$83(this, fromUri, toUri, params, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CompressImageUseCaseJs).op1 = function (fromUri, toUri, params, onProgress, $completion) { return this.j11n(fromUri, toUri, params, onProgress, $completion); }; function Companion_206() { this.k11n_1 = 3; } var Companion_instance_255; function Companion_getInstance_223() { return Companion_instance_255; } function ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda($onProgress) { return function (it) { $onProgress(new ContentEntryGetMetadataStatus(false, VOID, it.apn_1, it.bpn_1)); return Unit_instance; }; } function $invokeCOROUTINE$84(_this__u8e3s4, contentUri, fileName, learningSpace, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.t11n_1 = _this__u8e3s4; this.u11n_1 = contentUri; this.v11n_1 = fileName; this.w11n_1 = learningSpace; this.x11n_1 = onProgress; } protoOf($invokeCOROUTINE$84).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 9; this.y11n_1 = randomUuid().toString(); this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 8; this.a11o_1 = until(0, 3).w(); this.hd_1 = 3; continue $sm; case 3: if (!this.a11o_1.f()) { this.hd_1 = 6; continue $sm; } this.b11o_1 = this.a11o_1.e(); this.c11o_1 = this.t11n_1.g11o_1; this.d11o_1 = this.w11n_1.mnt_1 + 'api/contentupload/upload'; var tmp_0 = this; var this_0 = LinkedHashMap_init_$Create$(); if (!(this.v11n_1 == null)) { this_0.s('upload-original-filename', listOf_0(encodeURIComponent(this.v11n_1))); } tmp_0.e11o_1 = asIStringValues(this_0.f3()); this.hd_1 = 4; var tmp_1 = new Long(0, 0); suspendResult = this.c11o_1.gpn(this.y11n_1, this.u11n_1, this.d11o_1, tmp_1, VOID, ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda(this.x11n_1), VOID, this.e11o_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var finalResponse = suspendResult; var tmp4_subject = finalResponse.dpn_1; if (tmp4_subject === 400) { var tmp5_elvis_lhs = finalResponse.cpn_1; throw new InvalidContentException(tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs); } else if (tmp4_subject === 406) { var tmp6_elvis_lhs = finalResponse.cpn_1; throw new UnsupportedContentException(tmp6_elvis_lhs == null ? '' : tmp6_elvis_lhs); } var tmp_2 = this; var tmp7_safe_receiver = finalResponse.cpn_1; var tmp_3; if (tmp7_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = this.t11n_1.f11o_1.m46(Companion_instance_81.h4s(), 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.z11n_1 = tmp_4; this.id_1 = 9; this.hd_1 = 5; continue $sm; case 5: var tmp_5 = this.z11n_1; this.id_1 = 9; URL.revokeObjectURL(this.u11n_1.toString()); return tmp_5; case 6: var tmp_6 = this; throw IllegalStateException_init_$Create$('Retried upload 3 times... failed.'); case 7: this.id_1 = 9; URL.revokeObjectURL(this.u11n_1.toString()); return Unit_instance; case 8: this.id_1 = 9; var t = this.kd_1; URL.revokeObjectURL(this.u11n_1.toString()); throw t; case 9: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 9) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ContentEntryGetMetaDataFromUriUseCaseJs(json, chunkedUploadClientLocalUriUseCase) { this.f11o_1 = json; this.g11o_1 = chunkedUploadClientLocalUriUseCase; } protoOf(ContentEntryGetMetaDataFromUriUseCaseJs).xp2 = function (contentUri, fileName, learningSpace, onProgress, $completion) { var tmp = new $invokeCOROUTINE$84(this, contentUri, fileName, learningSpace, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function $invokeCOROUTINE$85(_this__u8e3s4, subtitleTrackUri, filename, locale, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.p11o_1 = _this__u8e3s4; this.q11o_1 = subtitleTrackUri; this.r11o_1 = filename; this.s11o_1 = locale; } protoOf($invokeCOROUTINE$85).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 8; this.id_1 = 4; this.hd_1 = 1; suspendResult = fetch_0(toString(this.q11o_1.k73_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.u11o_1 = suspendResult; this.v11o_1 = this.u11o_1.blob(); this.hd_1 = 2; var this_0 = this.v11o_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.w11o_1 = suspendResult; this.x11o_1 = this.w11o_1.text(); this.hd_1 = 3; var this_1 = this.x11o_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.t11o_1 = suspendResult; this.id_1 = 8; this.hd_1 = 5; continue $sm; case 4: this.id_1 = 8; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { this.y11o_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().k5f('GetSubtitleTrackFromUriUseCaseJs: exception fetching local uri ' + this.q11o_1, this.y11o_1); throw IllegalStateException_init_$Create$_1('Failed to fetch blob for local uri ' + this.q11o_1, this.y11o_1); } else { throw this.kd_1; } case 5: this.id_1 = 8; this.z11o_1 = this.t11o_1; var tmp_2 = this; tmp_2.a11p_1 = this.p11o_1.j11p_1; var tmp_3 = this; tmp_3.b11p_1 = this.p11o_1.i11p_1.mnt_1 + 'api/contentupload/getsubtitletrack'; var tmp_4 = this; tmp_4.c11p_1 = this.a11p_1; var tmp_5 = this; tmp_5.d11p_1 = this.c11p_1; var tmp_6 = this; var this_2 = new HttpRequestBuilder(); url(this_2, this.b11p_1); parameter(this_2, 'filename', this.r11o_1); var tmp0_elvis_lhs = this.s11o_1; parameter(this_2, 'locale', tmp0_elvis_lhs == null ? this.p11o_1.l11p_1.zpl_1 : tmp0_elvis_lhs); var body = new TextContent(this.z11o_1, Companion_getInstance_15().i2s('text/vtt; charset=utf-8')); if (body == null) { this_2.s39_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.p3f(typeInfoImpl(tmp_7, tmp_8, tmp_9)); } else { if (body instanceof OutgoingContent) { this_2.s39_1 = body; this_2.p3f(null); } else { this_2.s39_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.p3f(typeInfoImpl(tmp_11, tmp_12, tmp_13)); } } tmp_6.e11p_1 = this_2; this.e11p_1.q39_1 = Companion_getInstance().g2y_1; var tmp_15 = this; tmp_15.f11p_1 = this.d11p_1; var tmp_16 = this; tmp_16.g11p_1 = this.e11p_1; this.hd_1 = 6; suspendResult = (new HttpStatement(this.g11p_1, this.f11p_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.h11p_1 = suspendResult; this.hd_1 = 7; suspendResult = bodyAsText(this.h11p_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var subtitleJsonStr = suspendResult; return this.p11o_1.k11p_1.m46(Companion_instance_80.h4s(), subtitleJsonStr); case 8: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 8) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function GetSubtitleTrackFromUriUseCaseJs(endpoint, httpClient, json, supportedLanguagesConfig) { this.i11p_1 = endpoint; this.j11p_1 = httpClient; this.k11p_1 = json; this.l11p_1 = supportedLanguagesConfig; } protoOf(GetSubtitleTrackFromUriUseCaseJs).jp3 = function (subtitleTrackUri, filename, locale, $completion) { var tmp = new $invokeCOROUTINE$85(this, subtitleTrackUri, filename, locale, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function LaunchXapiUseCaseJs$invoke$lambda($resolveResult) { return function () { return 'LaunchXapiUseCaseJs: launching xapi in new windows: ' + $resolveResult.gp6_1; }; } function LaunchXapiUseCaseJs$invoke$lambda_0($resolveResult) { return function () { return 'LaunchXapiUseCaseJs: navigating to: ' + $resolveResult.gp6_1; }; } function $invokeCOROUTINE$86(_this__u8e3s4, contentEntryVersion, navController, clazzUid, cbUid, target, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.u11p_1 = _this__u8e3s4; this.v11p_1 = contentEntryVersion; this.w11p_1 = navController; this.x11p_1 = clazzUid; this.y11p_1 = cbUid; this.z11p_1 = target; } protoOf($invokeCOROUTINE$86).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.u11p_1.a11q_1.np9(this.v11p_1.fay_1, this.x11p_1, this.y11p_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var resolveResult = suspendResult; if (!this.z11p_1.equals(LinkTarget_TOP_getInstance())) { var tmp_0 = Napier_getInstance(); tmp_0.e5f(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda(resolveResult)); window.open(resolveResult.gp6_1, asWindowTarget(this.z11p_1), 'popup=true,noopener,noreferrer'); } else { var tmp_1 = Napier_getInstance(); tmp_1.e5f(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda_0(resolveResult)); location.href = resolveResult.gp6_1; } return new LaunchResult(); case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function LaunchXapiUseCaseJs(resolveXapiLaunchHrefUseCase) { this.a11q_1 = resolveXapiLaunchHrefUseCase; } protoOf(LaunchXapiUseCaseJs).cp6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp = new $invokeCOROUTINE$86(this, contentEntryVersion, navController, clazzUid, cbUid, target, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LaunchXapiUseCaseJs).ep6 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.cp6(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function SetLanguageUseCaseJs(languagesConfig) { this.b11q_1 = languagesConfig; } protoOf(SetLanguageUseCaseJs).yph = function (uiLang, currentDestination, navController, navArgs) { var currentDisplayLang = this.b11q_1.zpl_1; this.b11q_1.hq7(uiLang.xq3_1); var newDisplayLang = this.b11q_1.zpl_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.c11q_1 = di; } protoOf(GoToLearningSpaceUseCaseJs).api = function (url, navController, args, viewName) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = this.c11q_1; var context = new LearningSpace(url); var trigger = this_0.x57(); // 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.b58(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).u5d(null, getLocalDelegateReference('makeLinkUseCase', KProperty0, false, function () { return THROW_ISE(); })); var finalUrl = invoke$lambda_3(makeLinkUseCase$delegate).dpi(viewName, args); location.href = finalUrl; }; function OpenExternalLinkUseCaseJs() { } protoOf(OpenExternalLinkUseCaseJs).lpi = function (url, target) { window.open(url, asWindowTarget(target)); }; function BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this$0, $text, $accountPersonUid, $onProgress, resultContinuation) { this.l11q_1 = this$0; this.m11q_1 = $text; this.n11q_1 = $accountPersonUid; this.o11q_1 = $onProgress; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).m11r = function ($this$coroutineScope, $completion) { var tmp = this.p1n($this$coroutineScope, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).he = function (p1, $completion) { return this.m11r((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 11; var tmp_0 = this; tmp_0.q11q_1 = this.l11q_1.n11r_1; var tmp_1 = this; tmp_1.r11q_1 = this.l11q_1.o11r_1.mnt_1 + 'api/person/bulkadd/enqueue'; var tmp_2 = this; tmp_2.s11q_1 = this.q11q_1; var tmp_3 = this; tmp_3.t11q_1 = this.s11q_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.r11q_1); var body = new TextContent(this.m11q_1, Text_getInstance().k2t_1); if (body == null) { this_0.s39_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.p3f(typeInfoImpl(tmp_5, tmp_6, tmp_7)); } else { if (body instanceof OutgoingContent) { this_0.s39_1 = body; this_0.p3f(null); } else { this_0.s39_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.p3f(typeInfoImpl(tmp_9, tmp_10, tmp_11)); } } parameter(this_0, 'accountPersonUid', this.n11q_1.toString()); var tmp_13 = this.l11q_1.q11r_1; doorNodeAndVersionHeaders(this_0, isInterface(tmp_13, DoorDatabaseRepository) ? tmp_13 : THROW_CCE()); tmp_4.u11q_1 = this_0; this.u11q_1.q39_1 = Companion_getInstance().g2y_1; var tmp_14 = this; tmp_14.v11q_1 = this.t11q_1; var tmp_15 = this; tmp_15.w11q_1 = this.u11q_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.w11q_1, this.v11q_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.x11q_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.x11q_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.y11q_1 = suspendResult; this.z11q_1 = toLong_0(this.y11q_1); this.hd_1 = 3; continue $sm; case 3: if (!get_isActive(this.p11q_1)) { this.hd_1 = 10; continue $sm; } this.id_1 = 7; var tmp_16 = this; tmp_16.a11r_1 = this.l11q_1.n11r_1; var tmp_17 = this; tmp_17.b11r_1 = this.l11q_1.o11r_1.mnt_1 + 'api/person/bulkadd/status'; var tmp_18 = this; tmp_18.c11r_1 = this.a11r_1; var tmp_19 = this; tmp_19.d11r_1 = this.c11r_1; var tmp_20 = this; var this_1 = new HttpRequestBuilder(); url(this_1, this.b11r_1); parameter(this_1, 'timestamp', this.z11q_1.toString()); tmp_20.e11r_1 = this_1; this.e11r_1.q39_1 = Companion_getInstance().f2y_1; var tmp_21 = this; tmp_21.f11r_1 = this.d11r_1; var tmp_22 = this; tmp_22.g11r_1 = this.e11r_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.g11r_1, this.f11r_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.h11r_1 = suspendResult; if (this.h11r_1.d3c().z30_1 === 200) { var tmp_23 = this; tmp_23.i11r_1 = this.l11q_1.p11r_1; this.hd_1 = 5; suspendResult = bodyAsText(this.h11r_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 6; continue $sm; } case 5: this.j11r_1 = suspendResult; var tmp_24 = this; var this_2 = this.i11r_1.n46(); var this_3 = serializer(this_2, createKType(getKClass(BulkAddPersonRunImportUiState), arrayOf([]), false)); tmp_24.k11r_1 = this.i11r_1.m46(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.j11r_1); if (this.k11r_1.lyv_1) { this.o11q_1.uyv(this.k11r_1.nyv_1, this.k11r_1.myv_1); } else { if (this.k11r_1.fu0()) { throw new BulkAddPersonException(this.k11r_1.pyv_1, this.k11r_1.oyv_1); } return new BulkAddUsersResult(this.k11r_1.nyv_1); } this.hd_1 = 6; continue $sm; case 6: this.id_1 = 11; this.hd_1 = 8; continue $sm; case 7: this.id_1 = 11; var tmp_25 = this.kd_1; if (tmp_25 instanceof Error) { this.l11r_1 = this.kd_1; Napier_getInstance().g5f('BulkAddPersonFromLocalUriUseCaseJs exception', this.l11r_1); var tmp_26 = this.l11r_1; if (tmp_26 instanceof BulkAddPersonException) throw this.l11r_1; this.hd_1 = 8; continue $sm; } else { throw this.kd_1; } case 8: this.id_1 = 11; this.hd_1 = 9; suspendResult = delay(new Long(1000, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.hd_1 = 3; continue $sm; case 10: throw IllegalStateException_init_$Create$('Should not get here'); case 11: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 11) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).p1n = function ($this$coroutineScope, completion) { var i = new BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this.l11q_1, this.m11q_1, this.n11q_1, this.o11q_1, completion); i.p11q_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.m11r($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$87(_this__u8e3s4, uri, accountPersonUid, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z11r_1 = _this__u8e3s4; this.a11s_1 = uri; this.b11s_1 = accountPersonUid; this.c11s_1 = onProgress; } protoOf($invokeCOROUTINE$87).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 4; console.log('Getting csv text'); this.hd_1 = 1; suspendResult = fetch_0(this.a11s_1.toString(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.d11s_1 = suspendResult; this.e11s_1 = this.d11s_1.text(); this.hd_1 = 2; var this_0 = this.e11s_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.f11s_1 = suspendResult; console.log('csv text = ' + this.f11s_1); this.hd_1 = 3; suspendResult = coroutineScope(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda_0(this.z11r_1, this.f11s_1, this.b11s_1, this.c11s_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return suspendResult; case 4: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 4) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function BulkAddPersonsFromLocalUriUseCaseJs(httpClient, learningSpace, json, repo) { this.n11r_1 = httpClient; this.o11r_1 = learningSpace; this.p11r_1 = json; this.q11r_1 = repo; } protoOf(BulkAddPersonsFromLocalUriUseCaseJs).bpl = function (uri, accountPersonUid, onProgress, $completion) { var tmp = new $invokeCOROUTINE$87(this, uri, accountPersonUid, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickPhoneNumUseCaseJs() { } protoOf(OnClickPhoneNumUseCaseJs).ip1 = 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).upg = 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.g11s_1 = phoneNumber; } function PhoneNumberUtilJs() { } protoOf(PhoneNumberUtilJs).fpl = function (numberToParse, defaultRegion) { return new PhoneNumberJs(parsePhoneNumber(numberToParse, defaultRegion, null)); }; protoOf(PhoneNumberUtilJs).gpl = function (number) { return (number instanceof PhoneNumberJs ? number : THROW_CCE()).g11s_1.formatInternational(); }; function OnClickSendEmailUseCaseJs() { } protoOf(OnClickSendEmailUseCaseJs).ip1 = 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.h11s_1 = isTempFileCheckerUseCase; } protoOf(DeleteUrisUseCaseJs).pot = 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.h11s_1.gp9(element)) { var tmp = Napier_getInstance(); tmp.e5f(VOID, VOID, DeleteUrisUseCaseJs$invoke$lambda(element)); URL.revokeObjectURL(element); } } return Unit_instance; }; function IsTempFileCheckerUseCaseJs() { } protoOf(IsTempFileCheckerUseCaseJs).gp9 = function (uri) { return startsWith(uri, 'blob:'); }; function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.vpm_1; }; } function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.vpm_1 + ' complete '; }; } function $invokeCOROUTINE$88(_this__u8e3s4, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.q11s_1 = _this__u8e3s4; this.r11s_1 = uploadUuid; this.s11s_1 = localUri; this.t11s_1 = remoteUrl; this.u11s_1 = fromByte; this.v11s_1 = chunkSize; this.w11s_1 = onProgress; this.x11s_1 = onStatusChange; this.y11s_1 = lastChunkHeaders; } protoOf($invokeCOROUTINE$88).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 14; this.z11s_1 = 'ChunkedUploadClientLocalUriUseCaseJs (' + this.r11s_1 + ') : ' + this.s11s_1 + ' -> ' + this.t11s_1 + ':'; this.id_1 = 13; Napier_getInstance().c5f(this.z11s_1 + ' : starting'); this.id_1 = 3; this.hd_1 = 1; suspendResult = fetch_0(toString(this.s11s_1.k73_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.b11t_1 = suspendResult; this.c11t_1 = this.b11t_1.blob(); this.hd_1 = 2; var this_0 = this.c11t_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.a11t_1 = suspendResult; this.id_1 = 13; this.hd_1 = 4; continue $sm; case 3: this.id_1 = 13; var tmp_0 = this.kd_1; if (tmp_0 instanceof Error) { this.d11t_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().k5f(this.z11s_1 + ' exception fetching local uri ' + this.s11s_1, this.d11t_1); throw IllegalStateException_init_$Create$_1(this.z11s_1 + ': failed to fetch blob for local uri ' + this.s11s_1.k73_1, this.d11t_1); } else { throw this.kd_1; } case 4: this.id_1 = 13; this.e11t_1 = this.a11t_1; this.f11t_1 = this.e11t_1.size; if (this.f11t_1 <= 0.0) throw IllegalArgumentException_init_$Create$('Upload size <= 0'); this.g11t_1 = new ChunkInfo(numberToLong(this.f11t_1), this.v11s_1, this.u11s_1); if (this.f11t_1 >= IntCompanionObject_instance.MAX_VALUE) throw IllegalArgumentException_init_$Create$('JS: upload size(' + numberToLong(this.f11t_1).toString() + ') > ' + IntCompanionObject_instance.MAX_VALUE + ' not supported'); this.x11s_1(TransferJobItemStatus_IN_PROGRESS_getInstance()); var tmp_2 = this; tmp_2.h11t_1 = this.g11t_1; this.i11t_1 = 0; this.j11t_1 = this.h11t_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.j11t_1.f()) { this.hd_1 = 12; continue $sm; } this.k11t_1 = this.j11t_1.e(); var tmp_3 = this; var tmp1 = this.i11t_1; this.i11t_1 = tmp1 + 1 | 0; tmp_3.l11t_1 = checkIndexOverflow(tmp1); var tmp_4 = this; tmp_4.m11t_1 = this.k11t_1; var tmp_5 = Napier_getInstance(); tmp_5.y5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda(this.z11s_1, this.l11t_1, this.g11t_1)); this.n11t_1 = this.e11t_1.slice(this.m11t_1.wpm_1.a7(), this.m11t_1.xpm_1.a7()); this.id_1 = 7; var tmp_6 = this; var this_1 = {}; this_1.body = this.n11t_1; this_1.method = 'POST'; var this_2 = new Headers(); this_2.set(get_HEADER_UPLOAD_UUID(), this.r11s_1); this_2.set(get_HEADER_IS_FINAL_CHUNK(), this.m11t_1.ypm_1.toString()); this_2.set(get_HEADER_UPLOAD_START_BYTE(), this.m11t_1.wpm_1.toString()); if (this.m11t_1.ypm_1 ? !(this.y11s_1 == null) : false) { var tmp0_iterator = this.y11s_1.i2o().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_iterator_0 = this.y11s_1.h2o(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.p11t_1 = fetch(this.t11s_1, this_1); this.hd_1 = 6; var this_3 = this.p11t_1; suspendResult = await_0(this_3, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.o11t_1 = suspendResult; this.id_1 = 13; this.hd_1 = 8; continue $sm; case 7: this.id_1 = 13; var tmp_7 = this.kd_1; if (tmp_7 instanceof Error) { this.q11t_1 = this.kd_1; var tmp_8 = this; Napier_getInstance().k5f(this.z11s_1 + ' exception fetching response for blob upload ' + ('fromByte=' + this.g11t_1.tpm_1.toString()), this.q11t_1); throw IllegalStateException_init_$Create$_1(this.z11s_1 + ' exception fetching response for blob upload ', this.q11t_1); } else { throw this.kd_1; } case 8: this.id_1 = 13; this.r11t_1 = this.o11t_1; var tmp_9 = Napier_getInstance(); tmp_9.y5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0(this.z11s_1, this.l11t_1, this.g11t_1)); this.w11s_1(new UploadProgress(this.m11t_1.xpm_1, numberToLong(this.f11t_1))); if (this.m11t_1.ypm_1) { this.x11s_1(TransferJobItemStatus_COMPLETE_getInstance()); Napier_getInstance().c5f(this.z11s_1 + ': Complete!'); if (!(this.r11t_1.status === 204)) { var tmp_10 = this; tmp_10.t11t_1 = this.r11t_1.text(); this.hd_1 = 10; var this_4 = this.t11t_1; suspendResult = await_0(this_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_11 = this; tmp_11.s11t_1 = null; this.hd_1 = 11; continue $sm; } } else { this.hd_1 = 9; continue $sm; } case 9: this.hd_1 = 5; continue $sm; case 10: this.s11t_1 = suspendResult; this.hd_1 = 11; continue $sm; case 11: var ARGUMENT = this.s11t_1; return new LastChunkResponse(ARGUMENT, this.r11t_1.status, asIStringValues_0(this.r11t_1.headers)); case 12: throw IllegalStateException_init_$Create$(this.z11s_1 + ' should have returned with last chunk'); case 13: this.id_1 = 14; var tmp_12 = this.kd_1; if (tmp_12 instanceof Error) { var e = this.kd_1; Napier_getInstance().k5f(this.z11s_1 + ', ChunkedUploadClientLocalUriUseCaseJs: Exception', e); this.x11s_1(TransferJobItemStatus_FAILED_getInstance()); throw e; } else { throw this.kd_1; } case 14: throw this.kd_1; case 15: this.id_1 = 14; return Unit_instance; } } catch ($p) { var e_0 = $p; if (this.id_1 === 14) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; function ChunkedUploadClientLocalUriUseCaseJs() { } protoOf(ChunkedUploadClientLocalUriUseCaseJs).fpn = function (uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) { var tmp = new $invokeCOROUTINE$88(this, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SaveStatementOnClearUseCaseJs$invoke$slambda(this$0, $statements, $xapiSession, resultContinuation) { this.c11u_1 = this$0; this.d11u_1 = $statements; this.e11u_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.c11u_1.g11u_1.mok(this.d11u_1, this.e11u_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).p1n = function ($this$launch, completion) { var i = new SaveStatementOnClearUseCaseJs$invoke$slambda(this.c11u_1, this.d11u_1, this.e11u_1, completion); i.f11u_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.o1n($this$launch, $completion); }; l.$arity = 1; return l; } function SaveStatementOnClearUseCaseJs(xapiStatementResource) { this.g11u_1 = xapiStatementResource; } protoOf(SaveStatementOnClearUseCaseJs).xq2 = function (statements, xapiSession) { var tmp = GlobalScope_instance; launch(tmp, VOID, VOID, SaveStatementOnClearUseCaseJs$invoke$slambda_0(this, statements, xapiSession, null)); }; function SaveStatementOnUnloadUseCaseJs(learningSpace, json) { this.h11u_1 = learningSpace; this.i11u_1 = json; } protoOf(SaveStatementOnUnloadUseCaseJs).xq2 = function (statements, xapiSession) { var tmp = navigator; var tmp_0 = this.h11u_1.mnt_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.i11u_1.l46(Companion_getInstance_94().h4s(), new XapiStatementsAndSession(statements, xapiSession)); tmp.sendBeacon(tmp_0, tmp$ret$2); }; function $invokeCOROUTINE$89(_this__u8e3s4, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.r11u_1 = _this__u8e3s4; this.s11u_1 = accountPersonUid; this.t11u_1 = actor; this.u11u_1 = activityId; this.v11u_1 = clazzUid; this.w11u_1 = cbUid; this.x11u_1 = contentEntryUid; this.y11u_1 = contentEntryVersionUid; } protoOf($invokeCOROUTINE$89).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; var tmp_0 = this; tmp_0.z11u_1 = this.r11u_1.i11v_1; var tmp_1 = this; tmp_1.a11v_1 = this.r11u_1.h11v_1.mnt_1 + 'api/xapi-ext/resumeOrStartSession'; var tmp_2 = this; tmp_2.b11v_1 = this.z11u_1; var tmp_3 = this; tmp_3.c11v_1 = this.b11v_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.a11v_1); var tmp_5 = this.r11u_1.j11v_1; doorNodeIdHeader(this_0, isInterface(tmp_5, DoorDatabaseRepository) ? tmp_5 : THROW_CCE()); parameter(this_0, 'accountPersonUid', this.s11u_1.toString()); parameter(this_0, 'actor', this.r11u_1.k11v_1.l46(Companion_instance_112.h4s(), this.t11u_1)); parameter(this_0, 'activityId', this.u11u_1); parameter(this_0, 'clazzUid', this.v11u_1.toString()); parameter(this_0, 'cbUid', this.w11u_1.toString()); parameter(this_0, 'contentEntryUid', this.x11u_1.toString()); parameter(this_0, 'contentEntryVersionUid', this.y11u_1.toString()); tmp_4.d11v_1 = this_0; this.d11v_1.q39_1 = Companion_getInstance().g2y_1; var tmp_6 = this; tmp_6.e11v_1 = this.c11v_1; var tmp_7 = this; tmp_7.f11v_1 = this.d11v_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.f11v_1, this.e11v_1)).b40(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.g11v_1 = suspendResult; this.hd_1 = 2; var tmp_8 = this.g11v_1.y3c(); 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.b3c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; function ResumeOrStartXapiSessionUseCaseJs(learningSpace, httpClient, repo, xapiJson) { this.h11v_1 = learningSpace; this.i11v_1 = httpClient; this.j11v_1 = repo; this.k11v_1 = xapiJson.xpq_1; } protoOf(ResumeOrStartXapiSessionUseCaseJs).fp9 = function (accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion) { var tmp = new $invokeCOROUTINE$89(this, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function collectAsState(_this__u8e3s4, initialState, dispatcher) { dispatcher = dispatcher === VOID ? Dispatchers_getInstance().n13() : 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.l11v_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_42).n1e = function (value, $completion) { return this.l11v_1(value, $completion); }; function collectAsState$lambda$slambda$slambda($state, resultContinuation) { this.u11v_1 = $state; CoroutineImpl.call(this, resultContinuation); } protoOf(collectAsState$lambda$slambda$slambda).y1o = function (it, $completion) { var tmp = this.z1o(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(collectAsState$lambda$slambda$slambda).he = function (p1, $completion) { return this.y1o((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion); }; protoOf(collectAsState$lambda$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; this.u11v_1[1](this.v11v_1); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(collectAsState$lambda$slambda$slambda).z1o = function (it, completion) { var i = new collectAsState$lambda$slambda$slambda(this.u11v_1, completion); i.v11v_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.y1o(it, $completion); }; l.$arity = 1; return l; } function collectAsState$lambda$slambda($this_collectAsState, $state, resultContinuation) { this.e11w_1 = $this_collectAsState; this.f11w_1 = $state; CoroutineImpl.call(this, resultContinuation); } protoOf(collectAsState$lambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(collectAsState$lambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(collectAsState$lambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; var tmp_0 = collectAsState$lambda$slambda$slambda_0(this.f11w_1, null); suspendResult = this.e11w_1.u1c(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.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(collectAsState$lambda$slambda).p1n = function ($this$launch, completion) { var i = new collectAsState$lambda$slambda(this.e11w_1, this.f11w_1, completion); i.g11w_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.o1n($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().n13().lj(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.p11w_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(useLaunchedEffect$lambda$slambda).o1n = function ($this$launch, $completion) { var tmp = this.p1n($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useLaunchedEffect$lambda$slambda).he = function (p1, $completion) { return this.o1n((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(useLaunchedEffect$lambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.hd_1 = 1; suspendResult = this.p11w_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_instance; case 2: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 2) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(useLaunchedEffect$lambda$slambda).p1n = function ($this$launch, completion) { var i = new useLaunchedEffect$lambda$slambda(this.p11w_1, completion); i.q11w_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.o1n($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().n13().lj(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().n13().lj(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.r11w_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_43).n1e = function (value, $completion) { return this.r11w_1(value, $completion); }; function useNavControllerEffect$slambda$slambda($navHostFn, resultContinuation) { this.a11x_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda$slambda).c11x = function (it, $completion) { var tmp = this.d11x(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda$slambda).he = function (p1, $completion) { return this.c11x(p1 instanceof NavCommand ? p1 : THROW_CCE(), $completion); }; protoOf(useNavControllerEffect$slambda$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; if (tmp === 0) { this.id_1 = 1; Napier_getInstance().c5f('useNavControllerEffect: collect command: ' + this.b11x_1); this.a11x_1.r11g(this.b11x_1); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(useNavControllerEffect$slambda$slambda).d11x = function (it, completion) { var i = new useNavControllerEffect$slambda$slambda(this.a11x_1, completion); i.b11x_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.c11x(it, $completion); }; l.$arity = 1; return l; } function useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation) { this.m11x_1 = $commandFlow; this.n11x_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda).d88 = function ($completion) { var tmp = this.f79($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda).g79 = function ($completion) { return this.d88($completion); }; protoOf(useNavControllerEffect$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.o11x_1 = this.m11x_1; if (this.o11x_1 == null) { this.p11x_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = useNavControllerEffect$slambda$slambda_0(this.n11x_1, null); suspendResult = this.o11x_1.u1c(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.p11x_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: return Unit_instance; case 3: throw this.kd_1; } } catch ($p) { var e = $p; if (this.id_1 === 3) { throw e; } else { this.hd_1 = this.id_1; this.kd_1 = e; } } while (true); }; protoOf(useNavControllerEffect$slambda).f79 = function (completion) { return new useNavControllerEffect$slambda(this.m11x_1, this.n11x_1, completion); }; function useNavControllerEffect$slambda_0($commandFlow, $navHostFn, resultContinuation) { var i = new useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation); var l = function ($completion) { return i.d88($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).z58(); // 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.x58(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).q11x_1; } function ViewModelAndKey(viewModel, locationKey) { this.q11x_1 = viewModel; this.r11x_1 = locationKey; } protoOf(ViewModelAndKey).toString = function () { return 'ViewModelAndKey(viewModel=' + this.q11x_1 + ', locationKey=' + this.r11x_1 + ')'; }; protoOf(ViewModelAndKey).hashCode = function () { var result = hashCode(this.q11x_1); result = imul(result, 31) + getStringHashCode(this.r11x_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.q11x_1, tmp0_other_with_cast.q11x_1)) return false; if (!(this.r11x_1 === tmp0_other_with_cast.r11x_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().c5f('Creating ViewModel: ' + getKClassFromExpression(this_0.q11x_1).f7()); return this_0; }; } function useViewModel$lambda$lambda($viewModelAndKey$delegate) { return function () { Napier_getInstance().c5f('Close ViewModel: ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).q11x_1).f7()); useViewModel$lambda($viewModelAndKey$delegate).q11x_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).r11x_1 === $locationKey)) { useViewModel$lambda_0($viewModelAndKey$delegate, new ViewModelAndKey($viewModelFactory(new SavedStateHandle2(window.history, $searchParams)), $locationKey)); Napier_getInstance().c5f('Recreating ViewModel ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).q11x_1).f7()); tmp = Unit_instance; } $this$useEffect.push(useViewModel$lambda$lambda($viewModelAndKey$delegate)); return Unit_instance; }; } function Companion_207() { } var Companion_instance_256; function Companion_getInstance_224() { return Companion_instance_256; } function UstadMobileSystemImpl(settings, langConfig, jsStringProvider) { UstadMobileSystemCommon.call(this, settings, langConfig); this.boj_1 = jsStringProvider; } protoOf(UstadMobileSystemImpl).coj = function (stringResource) { return stringResource.dm8(this.boj_1, this.uq4_1.zpl_1); }; protoOf(UstadMobileSystemImpl).doj = function (stringResource, args) { return stringResource.em8(this.boj_1, this.uq4_1.zpl_1, args.slice()); }; protoOf(UstadMobileSystemImpl).twl = function (pluralsResource, number) { return format(pluralsResource, number, [number]).im8(this.boj_1); }; protoOf(UstadMobileSystemImpl).s11x = 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.s11x(context, zip, $completion); }; protoOf(UstadMobileSystemImpl).t11x = 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.t11x(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.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.z58(); // 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.x58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_8 = $this$singleton.z58(); // 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.x58(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.z58(); // 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.x58(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.z58(); // 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.x58(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.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.z58(); // 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.x58(tmp$ret$4, null).rk2_1; var tmp_8 = new CompressImageUseCaseJs(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); var tmp_2 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.z58(); // 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.x58(tmp$ret$2, null); return new ContentEntryGetMetaDataFromUriUseCaseJs(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_15($this$provider) { var tmp = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.z58(); // 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.x58(tmp$ret$0, null).tk2(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null).uk2(); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.z58(); // 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.x58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.z58(); // 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.x58(tmp$ret$4, null).xpq_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.z58(); // 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.x58(tmp$ret$6, 1); var tmp4_learningSpace = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_7 = $this$provider.z58(); // 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.x58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.z58(); // 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.x58(tmp$ret$10, null); // Inline function 'org.kodein.di.instance' call var tmp_11 = $this$provider.z58(); // 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.x58(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.od()); } function DomainDiModuleJs$lambda$lambda_19($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null).tk2(); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.z58(); // 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.x58(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.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null).uk2(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); return new DeleteContentEntryParentChildJoinUseCase(tmp$ret$1.uk2()); } function DomainDiModuleJs$lambda$lambda_23($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.z58(); // 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.x58(tmp$ret$0, null); return new RestoreDeletedItemUseCase(tmp$ret$1.uk2()); } function DomainDiModuleJs$lambda$lambda_24($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.z58(); // 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.x58(tmp$ret$0, null); return new DeletePermanentlyUseCase(tmp$ret$1.uk2()); } 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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.z58(); // 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.x58(tmp$ret$4, null); return new SaveAndUploadLocalUrisUseCase(tmp_1, null, tmp_4, tmp$ret$5.rk2_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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); return new OpenBlobUiUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_29($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); return new CancelRemoteContentEntryImportUseCase(tmp, tmp_2, tmp$ret$3.tk2()); } function DomainDiModuleJs$lambda$lambda_30($this$singleton) { var tmp0_learningSpace = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null).tk2(); 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.z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); return new StoreActivitiesUseCase(tmp_1, tmp$ret$3.rk2_1); } function DomainDiModuleJs$lambda$lambda_34($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null).rk2_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.z58(); // 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.x58(tmp$ret$4, null); var tmp_8 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.z58(); // 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.x58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$singleton.z58(); // 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.x58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_15 = $this$singleton.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); return new SaveStatementOnClearUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_36($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.z58(); // 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.x58(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.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.z58(); // 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.x58(tmp$ret$4, null); return new NonInteractiveContentXapiStatementRecorderFactory(tmp_1, tmp_4, tmp$ret$5, $this$singleton.od()); } function DomainDiModuleJs$lambda$lambda_38($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.z58(); // 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.x58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); return new AddNewPersonUseCase(tmp_1, tmp$ret$3.rk2_1); } function DomainDiModuleJs$lambda$lambda_39($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.z58(); // 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.x58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.z58(); // 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.x58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.z58(); // 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.x58(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.i57(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.v56(); // 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.w5b(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.i57(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call var creator_0 = DomainDiModuleJs$lambda$lambda_0; var tmp_6 = $this$$receiver.v56(); // 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.w5b(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.i57(tmp$ret$10, null, null); // Inline function 'org.kodein.di.singleton' call var creator_1 = DomainDiModuleJs$lambda$lambda_1; var tmp_10 = $this$$receiver.w56(); var tmp_11 = $this$$receiver.v56(); var tmp_12 = $this$$receiver.x56(); // 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.w5b(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.i57(tmp$ret$14, null, null); // Inline function 'org.kodein.di.singleton' call var creator_2 = DomainDiModuleJs$lambda$lambda_2; var tmp_16 = $this$$receiver.w56(); var tmp_17 = $this$$receiver.v56(); var tmp_18 = $this$$receiver.x56(); // 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.w5b(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.i57(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call var creator_3 = DomainDiModuleJs$lambda$lambda_3; var tmp_22 = $this$$receiver.v56(); // 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.w5b(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.i57(tmp$ret$22, null, null); // Inline function 'org.kodein.di.provider' call var creator_4 = DomainDiModuleJs$lambda$lambda_4; var tmp_26 = $this$$receiver.v56(); // 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.w5b(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.i57(tmp$ret$26, null, null); // Inline function 'org.kodein.di.provider' call var creator_5 = DomainDiModuleJs$lambda$lambda_5; var tmp_30 = $this$$receiver.v56(); // 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.w5b(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.i57(tmp$ret$30, null, null); // Inline function 'org.kodein.di.provider' call var creator_6 = DomainDiModuleJs$lambda$lambda_6; var tmp_34 = $this$$receiver.v56(); // 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.w5b(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.i57(tmp$ret$34, null, null); // Inline function 'org.kodein.di.provider' call var creator_7 = DomainDiModuleJs$lambda$lambda_7; var tmp_38 = $this$$receiver.v56(); // 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.w5b(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.i57(tmp$ret$38, null, null); // Inline function 'org.kodein.di.singleton' call var creator_8 = DomainDiModuleJs$lambda$lambda_8; var tmp_42 = $this$$receiver.w56(); var tmp_43 = $this$$receiver.v56(); var tmp_44 = $this$$receiver.x56(); // 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.w5b(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.i57(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.w56(); var tmp_50 = this_1.v56(); var tmp_51 = this_1.x56(); // 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.w5b(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.i57(tmp$ret$48, null, null); // Inline function 'org.kodein.di.singleton' call var creator_10 = DomainDiModuleJs$lambda$lambda_10; var tmp_55 = $this$$receiver.w56(); var tmp_56 = $this$$receiver.v56(); var tmp_57 = $this$$receiver.x56(); // 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.w5b(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.i57(tmp$ret$52, null, null); // Inline function 'org.kodein.di.singleton' call var creator_11 = DomainDiModuleJs$lambda$lambda_11; var tmp_61 = $this$$receiver.w56(); var tmp_62 = $this$$receiver.v56(); var tmp_63 = $this$$receiver.x56(); // 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.w5b(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.i57(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.w56(); var tmp_69 = this_2.v56(); var tmp_70 = this_2.x56(); // 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.w5b(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.i57(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.w56(); var tmp_76 = this_3.v56(); var tmp_77 = this_3.x56(); // 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.w5b(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.i57(tmp$ret$68, null, null); // Inline function 'org.kodein.di.provider' call var creator_14 = DomainDiModuleJs$lambda$lambda_14; var tmp_81 = $this$$receiver.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(tmp$ret$84, null, null); // Inline function 'org.kodein.di.singleton' call var creator_17 = DomainDiModuleJs$lambda$lambda_17; var tmp_95 = $this$$receiver.w56(); var tmp_96 = $this$$receiver.v56(); var tmp_97 = $this$$receiver.x56(); // 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.w5b(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.i57(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.w56(); var tmp_103 = this_6.v56(); var tmp_104 = this_6.x56(); // 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.w5b(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.i57(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.w56(); var tmp_110 = this_7.v56(); var tmp_111 = this_7.x56(); // 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.w5b(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.i57(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.v56(); // 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.w5b(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.i57(tmp$ret$106, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = Companion_getInstance_17().pnt_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.v56(); // 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.w5b(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.i57(tmp$ret$112, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_9 = Companion_getInstance_17().pnt_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.v56(); // 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.w5b(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.i57(tmp$ret$118, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_10 = Companion_getInstance_17().pnt_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.v56(); // 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.w5b(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.i57(tmp$ret$124, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_11 = Companion_getInstance_17().pnt_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.v56(); // 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.w5b(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.i57(tmp$ret$130, null, null); // Inline function 'org.kodein.di.singleton' call var creator_25 = DomainDiModuleJs$lambda$lambda_25; var tmp_140 = $this$$receiver.w56(); var tmp_141 = $this$$receiver.v56(); var tmp_142 = $this$$receiver.x56(); // 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.w5b(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.i57(tmp$ret$134, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_12 = Companion_getInstance_17().pnt_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.w56(); var tmp_148 = this_13.v56(); var tmp_149 = this_13.x56(); // 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.w5b(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.i57(tmp$ret$140, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_13 = Companion_getInstance_17().pnt_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.v56(); // 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.w5b(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.i57(tmp$ret$146, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_14 = Companion_getInstance_17().pnt_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.w56(); var tmp_160 = this_15.v56(); var tmp_161 = this_15.x56(); // 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.w5b(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.i57(tmp$ret$152, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_15 = Companion_getInstance_17().pnt_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.w56(); var tmp_167 = this_16.v56(); var tmp_168 = this_16.x56(); // 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.w5b(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.i57(tmp$ret$158, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_16 = Companion_getInstance_17().pnt_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.w56(); var tmp_174 = this_17.v56(); var tmp_175 = this_17.x56(); // 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.w5b(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.i57(tmp$ret$164, null, null); // Inline function 'org.kodein.di.singleton' call var creator_31 = DomainDiModuleJs$lambda$lambda_31; var tmp_179 = $this$$receiver.w56(); var tmp_180 = $this$$receiver.v56(); var tmp_181 = $this$$receiver.x56(); // 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.w5b(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.i57(tmp$ret$168, null, null); // Inline function 'org.kodein.di.singleton' call var creator_32 = DomainDiModuleJs$lambda$lambda_32; var tmp_185 = $this$$receiver.w56(); var tmp_186 = $this$$receiver.v56(); var tmp_187 = $this$$receiver.x56(); // 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.w5b(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.i57(tmp$ret$172, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_17 = Companion_getInstance_17().pnt_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.w56(); var tmp_193 = this_18.v56(); var tmp_194 = this_18.x56(); // 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.w5b(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.i57(tmp$ret$178, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_18 = Companion_getInstance_17().pnt_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.w56(); var tmp_200 = this_19.v56(); var tmp_201 = this_19.x56(); // 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.w5b(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.i57(tmp$ret$184, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_19 = Companion_getInstance_17().pnt_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.w56(); var tmp_207 = this_20.v56(); var tmp_208 = this_20.x56(); // 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.w5b(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.i57(tmp$ret$190, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_20 = Companion_getInstance_17().pnt_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.w56(); var tmp_214 = this_21.v56(); var tmp_215 = this_21.x56(); // 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.w5b(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.i57(tmp$ret$196, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_21 = Companion_getInstance_17().pnt_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.w56(); var tmp_221 = this_22.v56(); var tmp_222 = this_22.x56(); // 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.w5b(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.i57(tmp$ret$202, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_22 = Companion_getInstance_17().pnt_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.w56(); var tmp_228 = this_23.v56(); var tmp_229 = this_23.x56(); // 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.w5b(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.i57(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.w56(); var tmp_235 = this_24.v56(); var tmp_236 = this_24.x56(); // 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.w5b(tmp$ret$213); return Unit_instance; }; } function StringProviderJs(locale, jsStringProvider) { this.u11x_1 = locale; this.v11x_1 = jsStringProvider; } protoOf(StringProviderJs).eq8 = function (stringResource) { return stringResource.dm8(this.v11x_1, this.u11x_1); }; protoOf(StringProviderJs).w11x = function (stringResource, args) { return stringResource.em8(this.v11x_1, this.u11x_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.k73_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_208() { this.x11x_1 = '_handleId'; } var Companion_instance_257; function Companion_getInstance_225() { return Companion_instance_257; } function SavedStateHandle2(history, searchParams) { this.y11x_1 = history; this.z11x_1 = searchParams; var storedHandleId = this.ba('_handleId'); if (storedHandleId == null) { this.a11y_1 = Default_getInstance_1().fg().toString(); setStateKey(this.y11x_1, this, '_handleId', this.a11y_1); } else { this.a11y_1 = storedHandleId; } } protoOf(SavedStateHandle2).tqi = function (key, value) { var tmp0_safe_receiver = this.y11x_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.a11y_1) { throw IllegalStateException_init_$Create$('SavedState cannot save values after the user has changed page'); } if (!(value == null)) { setStateKey(this.y11x_1, this, key, value); } }; protoOf(SavedStateHandle2).ba = function (key) { var tmp0_safe_receiver = this.y11x_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.z11x_1.get(key) : tmp3_elvis_lhs; }; function UrlKmp(url) { return new UrlKmpJs(new URL(url)); } function UrlKmpJs(url) { this.b11y_1 = url; } protoOf(UrlKmpJs).toString = function () { return toString(this.b11y_1); }; protoOf(UrlKmpJs).zp1 = function (path) { return new UrlKmpJs(new URL(path, toString(this.b11y_1))); }; function Companion_209() { } protoOf(Companion_209).nqc = function (text) { return encodeURIComponent(text); }; protoOf(Companion_209).mqc = function (text) { return decodeURIComponent(text); }; var Companion_instance_258; function Companion_getInstance_226() { return Companion_instance_258; } function UstadAntilog(defaultTag) { defaultTag = defaultTag === VOID ? 'NoTag' : defaultTag; Antilog.call(this); this.c11y_1 = defaultTag; } protoOf(UstadAntilog).n5e = 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).p5e = function (priority, tag, throwable, message) { var logTag = tag == null ? this.c11y_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.d11y_1 = headers; } protoOf(JsHeaderStringValuesAdapter).h2o = function (key) { var tmp0_safe_receiver = this.d11y_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).i2o = function () { return toSet_0(this.d11y_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).w57 = get_diContext; protoOf(AuthManager).x57 = get_diTrigger; protoOf($serializer).f4h = typeParametersSerializers; protoOf($serializer_0).f4h = typeParametersSerializers; protoOf($serializer_1).f4h = typeParametersSerializers; protoOf($serializer_2).f4h = typeParametersSerializers; protoOf($serializer_3).f4h = typeParametersSerializers; protoOf($serializer_4).f4h = typeParametersSerializers; protoOf($serializer_5).f4h = typeParametersSerializers; protoOf($serializer_6).f4h = typeParametersSerializers; protoOf($serializer_7).f4h = typeParametersSerializers; protoOf($serializer_8).f4h = typeParametersSerializers; protoOf($serializer_9).f4h = typeParametersSerializers; protoOf($serializer_10).f4h = typeParametersSerializers; protoOf($serializer_11).f4h = typeParametersSerializers; protoOf($serializer_12).f4h = typeParametersSerializers; protoOf($serializer_13).f4h = typeParametersSerializers; protoOf($serializer_14).f4h = typeParametersSerializers; protoOf($serializer_15).f4h = typeParametersSerializers; protoOf($serializer_16).f4h = typeParametersSerializers; protoOf($serializer_17).f4h = typeParametersSerializers; protoOf($serializer_18).f4h = typeParametersSerializers; protoOf($serializer_19).f4h = typeParametersSerializers; protoOf($serializer_20).f4h = typeParametersSerializers; protoOf($serializer_21).f4h = typeParametersSerializers; protoOf($serializer_22).f4h = typeParametersSerializers; protoOf($serializer_23).f4h = typeParametersSerializers; protoOf($serializer_24).f4h = typeParametersSerializers; protoOf($serializer_25).f4h = typeParametersSerializers; protoOf($serializer_26).f4h = typeParametersSerializers; protoOf($serializer_27).f4h = typeParametersSerializers; protoOf($serializer_28).f4h = typeParametersSerializers; protoOf($serializer_29).f4h = typeParametersSerializers; protoOf($serializer_30).f4h = typeParametersSerializers; protoOf($serializer_31).f4h = typeParametersSerializers; protoOf($serializer_32).f4h = typeParametersSerializers; protoOf($serializer_33).f4h = typeParametersSerializers; protoOf($serializer_34).f4h = typeParametersSerializers; protoOf($serializer_35).f4h = typeParametersSerializers; protoOf($serializer_36).f4h = typeParametersSerializers; protoOf($serializer_37).f4h = typeParametersSerializers; protoOf($serializer_38).f4h = typeParametersSerializers; protoOf($serializer_39).f4h = typeParametersSerializers; protoOf($serializer_40).f4h = typeParametersSerializers; protoOf($serializer_41).f4h = typeParametersSerializers; protoOf($serializer_42).f4h = typeParametersSerializers; protoOf($serializer_43).f4h = typeParametersSerializers; protoOf($serializer_44).f4h = typeParametersSerializers; protoOf($serializer_45).f4h = typeParametersSerializers; protoOf($serializer_46).f4h = typeParametersSerializers; protoOf($serializer_47).f4h = typeParametersSerializers; protoOf($serializer_48).f4h = typeParametersSerializers; protoOf($serializer_49).f4h = typeParametersSerializers; protoOf($serializer_50).f4h = typeParametersSerializers; protoOf($serializer_51).f4h = typeParametersSerializers; protoOf($serializer_52).f4h = typeParametersSerializers; protoOf($serializer_53).f4h = typeParametersSerializers; protoOf($serializer_54).f4h = typeParametersSerializers; protoOf($serializer_55).f4h = typeParametersSerializers; protoOf($serializer_56).f4h = typeParametersSerializers; protoOf($serializer_57).f4h = typeParametersSerializers; protoOf($serializer_58).f4h = typeParametersSerializers; protoOf(CommandFlowUstadNavController).dp6 = navigate$default; protoOf(UstadViewModel).w57 = get_diContext; protoOf(UstadViewModel).x57 = get_diTrigger; protoOf($serializer_59).f4h = typeParametersSerializers; protoOf($serializer_60).f4h = typeParametersSerializers; protoOf($serializer_61).f4h = typeParametersSerializers; protoOf($serializer_62).f4h = typeParametersSerializers; protoOf($serializer_63).f4h = typeParametersSerializers; protoOf($serializer_64).f4h = typeParametersSerializers; protoOf(SaveLocalUrisAsBlobUseCaseJs).yoq = invoke$default; protoOf(CompressImageUseCaseJs).kot = invoke$default_2; protoOf(GetSubtitleTrackFromUriUseCaseJs).kp3 = invoke$default_3; protoOf(SetLanguageUseCaseJs).zph = invoke$default_4; protoOf(ChunkedUploadClientLocalUriUseCaseJs).gpn = invoke$default_5; //endregion //region block: init Companion_instance_48 = new Companion(); Companion_instance_50 = new Companion_1(); Companion_instance_51 = new Companion_2(); Companion_instance_53 = new Companion_4(); Companion_instance_54 = new Companion_5(); Companion_instance_55 = new Companion_6(); BodySerializer_instance = new BodySerializer(); Companion_instance_56 = new Companion_7(); Companion_instance_57 = new Companion_8(); Companion_instance_58 = new Companion_9(); Companion_instance_60 = new Companion_11(); Companion_instance_65 = new Companion_16(); Companion_instance_66 = new Companion_17(); Companion_instance_67 = new Companion_18(); Companion_instance_68 = new Companion_19(); Companion_instance_69 = new Companion_20(); Companion_instance_70 = new Companion_21(); Companion_instance_71 = new Companion_22(); Companion_instance_73 = new Companion_24(); Companion_instance_75 = new Companion_26(); Companion_instance_80 = new Companion_31(); Companion_instance_81 = new Companion_32(); Companion_instance_82 = new Companion_33(); Companion_instance_83 = new Companion_34(); Companion_instance_84 = new Companion_35(); Companion_instance_85 = new Companion_36(); Companion_instance_87 = new Companion_38(); Companion_instance_88 = new Companion_39(); Companion_instance_89 = new Companion_40(); Companion_instance_90 = new Companion_41(); Companion_instance_91 = new Companion_42(); Companion_instance_92 = new Companion_43(); Companion_instance_93 = new Companion_44(); Companion_instance_94 = new Companion_45(); Companion_instance_96 = new Companion_47(); Companion_instance_98 = new Companion_49(); Companion_instance_99 = new Companion_50(); Companion_instance_100 = new Companion_51(); Companion_instance_101 = new Companion_52(); Companion_instance_102 = new Companion_53(); Companion_instance_103 = new Companion_54(); Companion_instance_104 = 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_109 = new Companion_60(); Companion_instance_112 = new Companion_63(); Companion_instance_113 = new Companion_64(); Companion_instance_115 = new Companion_66(); XapiInteractionTypeSerializer_instance = new XapiInteractionTypeSerializer(); XapiObjectTypeSerializer_instance = new XapiObjectTypeSerializer(); Companion_instance_120 = new Companion_71(); XAPI_RESULT_EXTENSION_PROGRESS = 'https://w3id.org/xapi/cmi5/result/extensions/progress'; Companion_instance_123 = new Companion_74(); Companion_instance_124 = new Companion_75(); VERB_COMPLETED = 'http://adlnet.gov/expapi/verbs/completed'; VERB_PROGRESSED = 'http://adlnet.gov/expapi/verbs/progressed'; Companion_instance_130 = new Companion_81(); Companion_instance_131 = new Companion_82(); Companion_instance_132 = new Companion_83(); Companion_instance_133 = new Companion_84(); Companion_instance_135 = new Companion_86(); Companion_instance_136 = new Companion_87(); DiTag_instance = new DiTag(); MS_PER_HOUR = 3600000; MS_PER_MIN = 60000; Companion_instance_138 = new Companion_89(); UNSET_DISTANT_FUTURE = new Long(-289930240, 1689); Companion_instance_139 = new Companion_90(); Companion_instance_140 = new Companion_91(); Companion_instance_141 = new Companion_92(); Companion_instance_142 = new Companion_93(); Companion_instance_143 = new Companion_94(); Companion_instance_144 = new Companion_95(); Companion_instance_145 = new Companion_96(); Companion_instance_146 = new Companion_97(); Companion_instance_149 = new Companion_100(); Companion_instance_150 = new Companion_101(); Companion_instance_151 = new Companion_102(); Companion_instance_152 = new Companion_103(); Companion_instance_153 = new Companion_104(); Companion_instance_154 = new Companion_105(); Companion_instance_156 = new Companion_107(); Companion_instance_158 = new Companion_109(); Companion_instance_159 = new Companion_110(); Companion_instance_160 = new Companion_111(); Companion_instance_161 = new Companion_112(); Companion_instance_162 = new Companion_113(); Companion_instance_163 = new Companion_114(); Companion_instance_164 = new Companion_115(); Companion_instance_166 = new Companion_117(); Companion_instance_167 = new Companion_118(); Companion_instance_168 = new Companion_119(); Companion_instance_169 = new Companion_120(); Companion_instance_170 = new Companion_121(); Companion_instance_173 = new Companion_124(); Companion_instance_174 = new Companion_125(); Companion_instance_175 = new Companion_126(); Companion_instance_176 = new Companion_127(); Companion_instance_177 = new Companion_128(); Companion_instance_178 = new Companion_129(); Companion_instance_180 = new Companion_131(); Companion_instance_181 = new Companion_132(); Companion_instance_183 = new Companion_134(); Companion_instance_184 = new Companion_135(); Companion_instance_185 = new Companion_136(); Companion_instance_186 = new Companion_137(); Companion_instance_187 = new Companion_138(); Companion_instance_188 = new Companion_139(); Companion_instance_189 = new Companion_140(); Companion_instance_190 = new Companion_141(); Companion_instance_192 = new Companion_143(); Companion_instance_193 = new Companion_144(); Companion_instance_194 = new Companion_145(); Companion_instance_195 = new Companion_146(); Companion_instance_196 = new Companion_147(); Companion_instance_197 = new Companion_148(); Companion_instance_198 = new Companion_149(); Companion_instance_199 = new Companion_150(); Companion_instance_202 = new Companion_153(); Companion_instance_203 = new Companion_154(); Companion_instance_207 = new Companion_158(); Companion_instance_208 = new Companion_159(); Companion_instance_209 = new Companion_160(); Companion_instance_210 = new Companion_161(); Companion_instance_212 = new Companion_163(); Companion_instance_213 = new Companion_164(); Companion_instance_214 = new Companion_165(); Companion_instance_215 = new Companion_166(); Companion_instance_216 = new Companion_167(); Companion_instance_217 = new Companion_168(); Companion_instance_218 = new Companion_169(); Companion_instance_219 = new Companion_170(); Companion_instance_220 = new Companion_171(); Companion_instance_222 = new Companion_173(); Companion_instance_223 = new Companion_174(); Companion_instance_224 = new Companion_175(); PersonViewModelConstants_instance = new PersonViewModelConstants(); Companion_instance_225 = new Companion_176(); Companion_instance_226 = new Companion_177(); Companion_instance_227 = new Companion_178(); Companion_instance_229 = new Companion_180(); Companion_instance_230 = new Companion_181(); Companion_instance_231 = new Companion_182(); Companion_instance_232 = new Companion_183(); Companion_instance_234 = new Companion_185(); Companion_instance_236 = new Companion_187(); Companion_instance_237 = new Companion_188(); Companion_instance_238 = new Companion_189(); Companion_instance_239 = new Companion_190(); Companion_instance_240 = new Companion_191(); Companion_instance_241 = new Companion_192(); Companion_instance_242 = new Companion_193(); Companion_instance_243 = new Companion_194(); Companion_instance_245 = new Companion_196(); Companion_instance_246 = new Companion_197(); Companion_instance_247 = new Companion_198(); Companion_instance_248 = new Companion_199(); Companion_instance_250 = new Companion_201(); Companion_instance_251 = new Companion_202(); Companion_instance_252 = new Companion_203(); Companion_instance_253 = new Companion_204(); Companion_instance_254 = new Companion_205(); NAVHOST_CLEARSTACK_VIEWNAME = 'ClearStack'; Companion_instance_255 = new Companion_206(); Companion_instance_256 = new Companion_207(); Companion_instance_257 = new Companion_208(); Companion_instance_258 = new Companion_209(); //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_0; _.$_$.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 = htmlToPlainText; _.$_$.r2 = initial; _.$_$.s2 = maxScoreSummedIfModule; _.$_$.t2 = penaltyPercentage; _.$_$.u2 = personFullName; _.$_$.v2 = get_progressAsFloat; _.$_$.w2 = requirePostfix; _.$_$.x2 = rgbColorProperty; _.$_$.y2 = textLength; _.$_$.z2 = toDisplayString; _.$_$.a3 = toNullIfBlank; _.$_$.b3 = toTerminologyEntries; _.$_$.c3 = get_MS_PER_HOUR; _.$_$.d3 = get_MS_PER_MIN; _.$_$.e3 = MessageIdOption2; _.$_$.f3 = SortOrderOption; _.$_$.g3 = UstadAntilog; _.$_$.h3 = avatarColorForName; _.$_$.i3 = OpenLicensesViewModel; _.$_$.j3 = AddAccountSelectNewOrExistingUiState; _.$_$.k3 = AddAccountSelectNewOrExistingViewModel; _.$_$.l3 = AddAccountSelectNewOrExistingUserTypeUiState; _.$_$.m3 = AddAccountSelectNewOrExistingUserTypeViewModel; _.$_$.n3 = AccountListUiState; _.$_$.o3 = AccountListViewModel; _.$_$.p3 = ClazzDetailUiState; _.$_$.q3 = ClazzDetailViewModel; _.$_$.r3 = ClazzDetailOverviewUiState; _.$_$.s3 = ClazzDetailOverviewViewModel; _.$_$.t3 = ClazzEditUiState; _.$_$.u3 = ClazzEditViewModel; _.$_$.v3 = ClazzGradebookUiState; _.$_$.w3 = ClazzGradebookViewModel; _.$_$.x3 = aggregateIfModule; _.$_$.y3 = displayMarkFor; _.$_$.z3 = maxScoreForBlock; _.$_$.a4 = get_thumbnailUri; _.$_$.b4 = ClazzInviteRedeemUiState; _.$_$.c4 = ClazzInviteRedeemViewModel; _.$_$.d4 = ClazzInviteViaContactUiState; _.$_$.e4 = ClazzInviteViaContactViewModel; _.$_$.f4 = ClazzInviteViaLinkUiState; _.$_$.g4 = ClazzInviteViaLinkViewModel; _.$_$.h4 = JoinWithCodeUiState; _.$_$.i4 = JoinWithCodeViewModel; _.$_$.j4 = ClazzListUiState; _.$_$.k4 = ClazzListViewModel; _.$_$.l4 = CoursePermissionDetailUiState; _.$_$.m4 = CoursePermissionDetailViewModel; _.$_$.n4 = CoursePermissionEditUiState; _.$_$.o4 = CoursePermissionEditViewModel; _.$_$.p4 = CoursePermissionListUiState; _.$_$.q4 = CoursePermissionListViewModel; _.$_$.r4 = get_blockTypeStringResource; _.$_$.s4 = defaultCourseBannerImageIndex; _.$_$.t4 = AssignmentSubmitterSummaryUiState; _.$_$.u4 = ClazzAssignmentDetailSubmissionsTabUiState; _.$_$.v4 = ClazzAssignmentDetailSubmissionsTabViewModel; _.$_$.w4 = get_listItemUiState; _.$_$.x4 = ClazzAssignmentDetailUiState; _.$_$.y4 = ClazzAssignmentDetailViewModel; _.$_$.z4 = ClazzAssignmentDetailOverviewUiState; _.$_$.a5 = ClazzAssignmentDetailOverviewViewModel; _.$_$.b5 = ClazzAssignmentDetailoverviewSubmissionUiState; _.$_$.c5 = ClazzAssignmentEditUiState; _.$_$.d5 = ClazzAssignmentEditViewModel; _.$_$.e5 = PeerReviewerAllocationEditUIState; _.$_$.f5 = PeerReviewerAllocationEditViewModel; _.$_$.g5 = ClazzAssignmentSubmitterDetailUiState; _.$_$.h5 = ClazzAssignmentSubmitterDetailViewModel; _.$_$.i5 = get_entries_1; _.$_$.j5 = values_2; _.$_$.k5 = UstadCourseAssignmentMarkListItemUiState; _.$_$.l5 = avatarColorName; _.$_$.m5 = avatarName; _.$_$.n5 = get_isFromSubmitterGroup; _.$_$.o5 = ClazzMemberListUiState; _.$_$.p5 = ClazzMemberListViewModel; _.$_$.q5 = ClazzEnrolmentEditUiState; _.$_$.r5 = ClazzEnrolmentEditViewModel; _.$_$.s5 = ClazzEnrolmentListUiState; _.$_$.t5 = ClazzEnrolmentListViewModel; _.$_$.u5 = ClazzLogListAttendanceUiState; _.$_$.v5 = ClazzLogListAttendanceViewModel; _.$_$.w5 = ClazzLogEditUiState; _.$_$.x5 = ClazzLogEditViewModel; _.$_$.y5 = ClazzLogEditAttendanceUiState; _.$_$.z5 = ClazzLogEditAttendanceViewModel; _.$_$.a6 = ContentEntryDetailUiState; _.$_$.b6 = ContentEntryDetailViewModel; _.$_$.c6 = ContentEntryDetailAttemptsPersonListUiState; _.$_$.d6 = ContentEntryDetailAttemptsPersonListViewModel; _.$_$.e6 = ContentEntryDetailAttemptsSessionListUiState; _.$_$.f6 = ContentEntryDetailAttemptsSessionListViewModel; _.$_$.g6 = ContentEntryDetailAttemptsStatementListUiState; _.$_$.h6 = ContentEntryDetailAttemptsStatementListViewModel; _.$_$.i6 = get_descriptionStringRes; _.$_$.j6 = get_statementSummary; _.$_$.k6 = get_statementSummary_0; _.$_$.l6 = get_verbDisplayName; _.$_$.m6 = ContentEntryDetailOverviewUiState; _.$_$.n6 = ContentEntryDetailOverviewViewModel; _.$_$.o6 = get_progress; _.$_$.p6 = ContentEntryEditUiState; _.$_$.q6 = ContentEntryEditViewModel; _.$_$.r6 = ContentEntryGetMetadataUiState; _.$_$.s6 = ContentEntryGetMetadataViewModel; _.$_$.t6 = GetSubtitleUiState; _.$_$.u6 = GetSubtitleViewModel; _.$_$.v6 = ContentEntryImportLinkUiState; _.$_$.w6 = ContentEntryImportLinkViewModel; _.$_$.x6 = ContentEntryListItemUiState; _.$_$.y6 = ContentEntryListUiState; _.$_$.z6 = ContentEntryListViewModel; _.$_$.a7 = get_listItemUiState_0; _.$_$.b7 = SubtitleEditUiState; _.$_$.c7 = SubtitleEditViewModel; _.$_$.d7 = get_contentTypeStringResource; _.$_$.e7 = get_stringResource; _.$_$.f7 = CourseBlockEditUiState; _.$_$.g7 = CourseBlockEditViewModel; _.$_$.h7 = TextBlockDetailUiState; _.$_$.i7 = TextBlockDetailViewModel; _.$_$.j7 = CourseGroupSetDetailUiState; _.$_$.k7 = CourseGroupSetDetailViewModel; _.$_$.l7 = CourseGroupSetEditUiState; _.$_$.m7 = CourseGroupSetEditViewModel; _.$_$.n7 = appendGroupNumIfNotInList; _.$_$.o7 = CourseGroupSetListUiState; _.$_$.p7 = CourseGroupSetListViewModel; _.$_$.q7 = CourseTerminologyEditUiState; _.$_$.r7 = CourseTerminologyEditViewModel; _.$_$.s7 = CourseTerminologyListUiState; _.$_$.t7 = CourseTerminologyListViewModel; _.$_$.u7 = DeletedItemListUiState; _.$_$.v7 = DeletedItemListViewModel; _.$_$.w7 = get_delItemContentTypeStringResource; _.$_$.x7 = CourseDiscussionDetailUiState; _.$_$.y7 = CourseDiscussionDetailViewModel; _.$_$.z7 = DiscussionPostDetailUiState2; _.$_$.a8 = DiscussionPostDetailViewModel; _.$_$.b8 = DiscussionPostEditUiState; _.$_$.c8 = DiscussionPostEditViewModel; _.$_$.d8 = EpubContentUiState; _.$_$.e8 = EpubContentViewModel; _.$_$.f8 = EpubScrollCommand; _.$_$.g8 = LoginUiState; _.$_$.h8 = LoginViewModel; _.$_$.i8 = ConversationListUiState; _.$_$.j8 = ConversationListViewModel; _.$_$.k8 = MessageListUiState; _.$_$.l8 = MessageListViewModel; _.$_$.m8 = daysUntil_0; _.$_$.n8 = ParentalConsentManagementUiState; _.$_$.o8 = ParentalConsentManagementViewModel; _.$_$.p8 = PdfContentUiState; _.$_$.q8 = PdfContentViewModel; _.$_$.r8 = PersonAccountEditUiState; _.$_$.s8 = PersonAccountEditViewModel; _.$_$.t8 = PersonUsernameAndPasswordModel; _.$_$.u8 = BulkAddPersonRunImportUiState; _.$_$.v8 = BulkAddPersonRunImportViewModel; _.$_$.w8 = BulkAddPersonSelectFileUiState; _.$_$.x8 = BulkAddPersonSelectFileViewModel; _.$_$.y8 = AddChildProfilesUiState; _.$_$.z8 = AddChildProfilesViewModel; _.$_$.a9 = EditChildProfileUiState; _.$_$.b9 = EditChildProfileViewModel; _.$_$.c9 = PersonDetailUiState; _.$_$.d9 = PersonDetailViewModel; _.$_$.e9 = PersonEditUiState; _.$_$.f9 = PersonEditViewModel; _.$_$.g9 = LearningSpaceListUiState; _.$_$.h9 = LearningSpaceListViewModel; _.$_$.i9 = PersonListUiState; _.$_$.j9 = PersonListViewModel; _.$_$.k9 = ManageAccountUiState; _.$_$.l9 = ManageAccountViewModel; _.$_$.m9 = RegisterAgeRedirectUiState; _.$_$.n9 = RegisterAgeRedirectViewModel; _.$_$.o9 = RegisterMinorWaitForParentUiState; _.$_$.p9 = RegisterMinorWaitForParentViewModel; _.$_$.q9 = RedirectViewModel; _.$_$.r9 = ScheduleEditUiState; _.$_$.s9 = ScheduleEditViewModel; _.$_$.t9 = SettingsUiState; _.$_$.u9 = SettingsViewModel; _.$_$.v9 = SignUpUiState; _.$_$.w9 = SignUpViewModel; _.$_$.x9 = SignupEnterUsernamePasswordUiState; _.$_$.y9 = SignupEnterUsernamePasswordViewModel; _.$_$.z9 = SiteDetailUiState; _.$_$.aa = SiteDetailViewModel; _.$_$.ba = SiteEditUiState; _.$_$.ca = SiteEditViewModel; _.$_$.da = SiteTermsDetailUiState; _.$_$.ea = SiteTermsDetailViewModel; _.$_$.fa = LearningSpaceEnterLinkUiState; _.$_$.ga = LearningSpaceEnterLinkViewModel; _.$_$.ha = SystemPermissionDetailUiState; _.$_$.ia = SystemPermissionDetailViewModel; _.$_$.ja = SystemPermissionEditUiState; _.$_$.ka = SystemPermissionEditViewModel; _.$_$.la = TimeZoneListViewModel; _.$_$.ma = TimezoneListUiState; _.$_$.na = VideoContentUiState; _.$_$.oa = MediaPlayState; _.$_$.pa = VideoContentViewModel; _.$_$.qa = XapiContentUiState; _.$_$.ra = XapiContentViewModel; _.$_$.sa = ErrorReportUiState; _.$_$.ta = HolidayCalendarDetailUIState; _.$_$.ua = HolidayCalendarEditUiState; _.$_$.va = HolidayCalendarListUiState; _.$_$.wa = LanguageDetailUiState; _.$_$.xa = LanguageEditUiState; _.$_$.ya = LanguageListUiState; _.$_$.za = LeavingReasonEditUiState; _.$_$.ab = LeavingReasonEditViewModel; _.$_$.bb = ReportFilterEditUiState; _.$_$.cb = ScopedGrantDetailUiState; _.$_$.db = ScopedGrantEditUiState; _.$_$.eb = CompressionLevel_MEDIUM_getInstance; _.$_$.fb = LinkTarget_DEFAULT_getInstance; _.$_$.gb = AppBarColors_SELECTION_MODE_getInstance; _.$_$.hb = AppBarColors_STANDARD_getInstance; _.$_$.ib = FabIcon_ADD_getInstance; _.$_$.jb = FabIcon_EDIT_getInstance; _.$_$.kb = State_INDETERMINATE_getInstance; _.$_$.lb = MarkingType_PEERS_getInstance; _.$_$.mb = TextLimitType_LIMIT_WORDS_getInstance; _.$_$.nb = SupportedLanguagesConfig_init_$Create$; _.$_$.ob = _AssignmentSubmitterSummaryUiState___get_fileSubmissionStatusIconVisible__impl__so25h0; _.$_$.pb = _AssignmentSubmitterSummaryUiState___get_latestPrivateCommentVisible__impl__bdq0p0; _.$_$.qb = _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2; _.$_$.rb = _ContentEntryListItemUiState___get_descriptionVisible__impl__xyu083; _.$_$.sb = _ContentEntryListItemUiState___get_mimetypeVisible__impl__l8r8g7; _.$_$.tb = Companion_getInstance_17; _.$_$.ub = PersonConstants_getInstance; _.$_$.vb = SubmissionConstants_getInstance; _.$_$.wb = Companion_getInstance_54; _.$_$.xb = Companion_instance_98; _.$_$.yb = Companion_instance_102; _.$_$.zb = Companion_getInstance_73; _.$_$.ac = Companion_instance_130; _.$_$.bc = Companion_instance_131; _.$_$.cc = Companion_instance_132; _.$_$.dc = Companion_instance_133; _.$_$.ec = ClazzEnrolmentListConstants_getInstance; _.$_$.fc = ConditionConstants_getInstance; _.$_$.gc = ContentCompletionStatusConstants_getInstance; _.$_$.hc = EnrolmentPolicyConstants_getInstance; _.$_$.ic = FieldConstants_getInstance; _.$_$.jc = LicenceConstants_getInstance; _.$_$.kc = OutcomeConstants_getInstance; _.$_$.lc = PersonParentJoinConstants_getInstance; _.$_$.mc = RoleConstants_getInstance; _.$_$.nc = ScheduleConstants_getInstance; _.$_$.oc = SubmissionPolicyConstants_getInstance; _.$_$.pc = UstadMobileConstants_getInstance; _.$_$.qc = Companion_getInstance_96; _.$_$.rc = DiTag_instance; _.$_$.sc = Companion_getInstance_105; _.$_$.tc = UMFileUtil_getInstance; _.$_$.uc = Companion_instance_138; _.$_$.vc = Companion_instance_140; _.$_$.wc = Companion_instance_141; _.$_$.xc = Companion_instance_142; _.$_$.yc = Companion_instance_143; _.$_$.zc = Companion_instance_144; _.$_$.ad = Companion_instance_145; _.$_$.bd = Companion_instance_146; _.$_$.cd = Companion_instance_158; _.$_$.dd = Companion_instance_159; _.$_$.ed = Companion_instance_160; _.$_$.fd = Companion_instance_161; _.$_$.gd = Companion_instance_162; _.$_$.hd = Companion_instance_163; _.$_$.id = Companion_instance_164; _.$_$.jd = Companion_instance_166; _.$_$.kd = Companion_instance_167; _.$_$.ld = Companion_instance_168; _.$_$.md = Companion_instance_169; _.$_$.nd = Companion_instance_170; _.$_$.od = Companion_getInstance_140; _.$_$.pd = Companion_getInstance_139; _.$_$.qd = Companion_instance_173; _.$_$.rd = Companion_instance_174; _.$_$.sd = Companion_instance_175; _.$_$.td = Companion_instance_178; _.$_$.ud = Companion_instance_177; _.$_$.vd = Companion_instance_180; _.$_$.wd = Companion_instance_181; _.$_$.xd = Companion_instance_183; _.$_$.yd = Companion_instance_184; _.$_$.zd = Companion_instance_176; _.$_$.ae = ClazzAssignmentViewModelConstants_getInstance; _.$_$.be = Companion_instance_185; _.$_$.ce = Companion_instance_186; _.$_$.de = Companion_instance_187; _.$_$.ee = Companion_instance_188; _.$_$.fe = Companion_instance_189; _.$_$.ge = Companion_instance_190; _.$_$.he = Companion_getInstance_159; _.$_$.ie = Companion_instance_192; _.$_$.je = Companion_instance_193; _.$_$.ke = Companion_instance_194; _.$_$.le = Companion_instance_195; _.$_$.me = Companion_instance_196; _.$_$.ne = Companion_instance_197; _.$_$.oe = Companion_instance_198; _.$_$.pe = Companion_instance_199; _.$_$.qe = Companion_getInstance_168; _.$_$.re = Companion_instance_203; _.$_$.se = Companion_getInstance_173; _.$_$.te = Companion_instance_207; _.$_$.ue = Companion_getInstance_172; _.$_$.ve = Companion_instance_208; _.$_$.we = Companion_instance_209; _.$_$.xe = Companion_instance_210; _.$_$.ye = Companion_instance_212; _.$_$.ze = Companion_instance_213; _.$_$.af = Companion_instance_214; _.$_$.bf = Companion_instance_215; _.$_$.cf = Companion_instance_216; _.$_$.df = Companion_instance_217; _.$_$.ef = Companion_instance_218; _.$_$.ff = Companion_instance_220; _.$_$.gf = Companion_getInstance_189; _.$_$.hf = Companion_instance_222; _.$_$.if = Companion_instance_223; _.$_$.jf = Companion_instance_224; _.$_$.kf = Companion_instance_225; _.$_$.lf = Companion_instance_227; _.$_$.mf = Companion_instance_229; _.$_$.nf = Companion_instance_230; _.$_$.of = Companion_instance_231; _.$_$.pf = Companion_instance_232; _.$_$.qf = Companion_getInstance_201; _.$_$.rf = Companion_instance_234; _.$_$.sf = Companion_getInstance_203; _.$_$.tf = Companion_instance_236; _.$_$.uf = Companion_instance_237; _.$_$.vf = Companion_instance_238; _.$_$.wf = Companion_instance_240; _.$_$.xf = Companion_instance_242; _.$_$.yf = Companion_getInstance_212; _.$_$.zf = Companion_instance_245; _.$_$.ag = Companion_instance_246; _.$_$.bg = Companion_instance_247; _.$_$.cg = Companion_instance_248; _.$_$.dg = Companion_getInstance_217; _.$_$.eg = Companion_instance_250; _.$_$.fg = Companion_instance_251; _.$_$.gg = Companion_instance_252; _.$_$.hg = Companion_instance_253; _.$_$.ig = Companion_instance_254; _.$_$.jg = Companion_instance_149; _.$_$.kg = Companion_instance_150; _.$_$.lg = Companion_instance_151; _.$_$.mg = Companion_instance_152; _.$_$.ng = Companion_instance_153; _.$_$.og = Companion_instance_154; _.$_$.pg = Companion_getInstance_125; _.$_$.qg = strings_getInstance; _.$_$.rg = 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