(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_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_com_github_UstadMobile_door_door_runtime, kotlin_io_github_aakira_napier, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, 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.$_$.ji; var SupportedLocale = kotlin_dev_icerock_moko_resources.$_$.b; var listOf = kotlin_kotlin.$_$.l8; var SupportedLocales = kotlin_dev_icerock_moko_resources.$_$.a; var Impl = kotlin_dev_icerock_moko_resources.$_$.d; var StringResource = kotlin_dev_icerock_moko_resources.$_$.f; var protoOf = kotlin_kotlin.$_$.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.$_$.ai; var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2; var captureStack = kotlin_kotlin.$_$.gb; var CoroutineImpl = kotlin_kotlin.$_$.va; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha; var PersonAuth2 = kotlin_com_ustadmobile_app_lib_database.$_$.k4; var Companion_instance = kotlin_com_ustadmobile_app_lib_database.$_$.w7; var Unit_instance = kotlin_kotlin.$_$.m5; var Companion_instance_0 = kotlin_org_kodein_di_kodein_di.$_$.c; var getKClass = kotlin_kotlin.$_$.e; var arrayOf = kotlin_kotlin.$_$.yi; 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 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.$_$.r; var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.g; var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.q; var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g; 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.$_$.gj; 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 LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v; var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u; var Long = kotlin_kotlin.$_$.ci; var interfaceMeta = kotlin_kotlin.$_$.yb; 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.$_$.tf; var removeSuffix = kotlin_kotlin.$_$.uf; var hashCode = kotlin_kotlin.$_$.xb; var compareValues = kotlin_kotlin.$_$.fa; var List = kotlin_kotlin.$_$.w5; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m; var collectionSizeOrDefault = kotlin_kotlin.$_$.n6; var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l; var UserSession = kotlin_com_ustadmobile_app_lib_database.$_$.b5; var Person = kotlin_com_ustadmobile_app_lib_database.$_$.q4; var sortedWith = kotlin_kotlin.$_$.o9; var plus = kotlin_kotlin.$_$.z8; var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1; var get_direct = kotlin_org_kodein_di_kodein_di.$_$.o; var Companion_instance_1 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c3; 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.$_$.gi; 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 toString = kotlin_kotlin.$_$.cd; var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l; var Companion_instance_2 = kotlin_com_ustadmobile_app_lib_database.$_$.l8; var get_doorWrapperNodeId = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m; var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e2; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2; var listOf_0 = kotlin_kotlin.$_$.k8; var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a; var StringCompanionObject_instance = kotlin_kotlin.$_$.a5; var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b1; var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x; var toSet = kotlin_kotlin.$_$.aa; var toList = kotlin_kotlin.$_$.t9; var Comparator = kotlin_kotlin.$_$.th; var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1; var Exception = kotlin_kotlin.$_$.yh; var withDoorTransactionAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x2; var Exception_init_$Create$ = kotlin_kotlin.$_$.n1; var NodeIdAndAuth = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b; var toHexString = kotlin_kotlin.$_$.ug; var to = kotlin_kotlin.$_$.pj; var decodeToString = kotlin_kotlin.$_$.te; var substringAfter = kotlin_kotlin.$_$.hg; var parameter = kotlin_io_ktor_ktor_client_core.$_$.m; var UmAccount = kotlin_com_ustadmobile_app_lib_database.$_$.a5; var ensureNotNull = kotlin_kotlin.$_$.bj; var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h2; var header = kotlin_io_ktor_ktor_client_core.$_$.l; var set_expectSuccess = kotlin_io_ktor_ktor_client_core.$_$.h; var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.i; var addAll = kotlin_kotlin.$_$.e6; var Companion_instance_3 = kotlin_com_ustadmobile_app_lib_database.$_$.v7; var Companion_instance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.x7; var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1; 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.$_$.lh; var buildClassSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1; var XmlInput = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.c; var EventType_END_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.d; var EventType_START_ELEMENT_getInstance = kotlin_io_github_pdvrieze_xmlutil_core.$_$.f; var XmlSerialName = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.e; var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2; var emptyList = kotlin_kotlin.$_$.i7; var XmlValue = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.f; var Regex_init_$Create$ = kotlin_kotlin.$_$.d1; var contains = kotlin_kotlin.$_$.re; var firstOrNull = kotlin_kotlin.$_$.n7; var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2; var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r; var IllegalArgumentException = kotlin_kotlin.$_$.zh; var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.v1; var $serializer_getInstance_3 = kotlin_com_ustadmobile_app_lib_database.$_$.d7; var $serializer_getInstance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.a7; var mapOf = kotlin_kotlin.$_$.o8; var Companion_instance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.o6; var Companion_getInstance_1 = kotlin_com_ustadmobile_app_lib_database.$_$.e7; var charSequenceLength = kotlin_kotlin.$_$.kb; var toCharArray = kotlin_kotlin.$_$.rg; var isUpperCase = kotlin_kotlin.$_$.mf; var Exception_init_$Init$ = kotlin_kotlin.$_$.m1; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1; var shallowCopy_0 = kotlin_com_ustadmobile_app_lib_database.$_$.s1; var uuid4 = kotlin_com_benasher44_uuid.$_$.a; var Companion_getInstance_2 = kotlin_kotlin.$_$.g5; var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1; var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y; var plus_0 = kotlin_kotlin.$_$.t8; var XapiSessionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.t2; var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.f2; var compareTo = kotlin_kotlin.$_$.nb; var mapOf_0 = kotlin_kotlin.$_$.n8; var shallowCopy_1 = kotlin_com_ustadmobile_app_lib_database.$_$.y1; var PersonNames = kotlin_com_ustadmobile_app_lib_database.$_$.i1; var first = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f; var toLong = kotlin_kotlin.$_$.ad; var toString_0 = kotlin_kotlin.$_$.oj; var CancellationException = kotlin_kotlin.$_$.ga; var Enum = kotlin_kotlin.$_$.wh; 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 Companion_getInstance_3 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f3; var get_isActive = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k2; var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k; var TransferJobItemStatus_COMPLETE_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.c5; var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e; var plus_1 = kotlin_kotlin.$_$.a9; var Companion_instance_11 = kotlin_com_ustadmobile_app_lib_database.$_$.c7; var Companion_getInstance_4 = kotlin_com_ustadmobile_app_lib_database.$_$.n6; var randomString = kotlin_com_ustadmobile_app_lib_util.$_$.c; var Companion_instance_12 = kotlin_com_ustadmobile_app_lib_database.$_$.p6; var Companion_getInstance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.l7; var CoursePermission = kotlin_com_ustadmobile_app_lib_database.$_$.w3; var Exception_init_$Init$_0 = kotlin_kotlin.$_$.l1; var IllegalStateException_init_$Init$_0 = kotlin_kotlin.$_$.x1; var Companion_instance_13 = kotlin_com_ustadmobile_app_lib_database.$_$.r7; var ClazzEnrolment_init_$Create$ = kotlin_com_ustadmobile_app_lib_database.$_$.i5; var Companion_getInstance_6 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.e; var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.s1; var EnrolmentRequest = kotlin_com_ustadmobile_app_lib_database.$_$.a4; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i; var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.h2; var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v2; var enumEntries = kotlin_kotlin.$_$.za; var INT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i; var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1; var mapCapacity = kotlin_kotlin.$_$.m8; var coerceAtLeast = kotlin_kotlin.$_$.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.$_$.k; var $serializer_getInstance_5 = kotlin_com_ustadmobile_app_lib_database.$_$.x6; var setInputString = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.c; var substringBeforeLast = kotlin_kotlin.$_$.ig; var Collection = kotlin_kotlin.$_$.p5; var ContentEntryParentChildJoin = kotlin_com_ustadmobile_app_lib_database.$_$.i3; var toMutableList = kotlin_kotlin.$_$.x9; var checkIndexOverflow = kotlin_kotlin.$_$.l6; var Companion_instance_14 = kotlin_com_ustadmobile_app_lib_database.$_$.g7; var getOrNull = kotlin_kotlin.$_$.t7; var split = kotlin_kotlin.$_$.bg; var startsWith = kotlin_kotlin.$_$.cg; var PersonPasskey = kotlin_com_ustadmobile_app_lib_database.$_$.o4; var Companion_instance_15 = kotlin_com_ustadmobile_app_lib_database.$_$.p7; var Companion_instance_16 = kotlin_com_ustadmobile_app_lib_database.$_$.z6; var plus_2 = kotlin_kotlin.$_$.x8; var emptySet = kotlin_kotlin.$_$.k7; var first_0 = kotlin_kotlin.$_$.p7; var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.f; var charSequenceGet = kotlin_kotlin.$_$.jb; var Char = kotlin_kotlin.$_$.rh; var isDigit = kotlin_kotlin.$_$.gf; var toString_1 = kotlin_kotlin.$_$.c3; var isLetter = kotlin_kotlin.$_$.if; var joinToString = kotlin_kotlin.$_$.a8; var Companion_instance_17 = kotlin_com_ustadmobile_app_lib_database.$_$.r6; var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u2; var indexOf = kotlin_kotlin.$_$.ef; var emptyMap = kotlin_kotlin.$_$.j7; var first_1 = kotlin_kotlin.$_$.q7; var distinct = kotlin_kotlin.$_$.f7; 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.$_$.w9; var checkCountOverflow = kotlin_kotlin.$_$.k6; var shuffled = kotlin_kotlin.$_$.l9; var shallowCopy_2 = kotlin_com_ustadmobile_app_lib_database.$_$.e2; var SystemPermission = kotlin_com_ustadmobile_app_lib_database.$_$.w4; var Companion_instance_19 = kotlin_com_ustadmobile_app_lib_database.$_$.z7; var PersonParentJoin = kotlin_com_ustadmobile_app_lib_database.$_$.n4; var Companion_getInstance_7 = kotlin_com_ustadmobile_app_lib_database.$_$.i8; var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.t1; var filterNotNull = kotlin_kotlin.$_$.m7; var Iterator = kotlin_kotlin.$_$.t5; var numberToLong = kotlin_kotlin.$_$.uc; var isWhitespace = kotlin_kotlin.$_$.nf; var setOf = kotlin_kotlin.$_$.k9; 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.$_$.e5; var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.s2; var XapiEntityObjectTypeFlags_instance = kotlin_com_ustadmobile_app_lib_database.$_$.j6; var plus_3 = kotlin_kotlin.$_$.w8; var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.c; var Uuid_init_$Create$ = kotlin_com_benasher44_uuid.$_$.c; var encodeBase64 = kotlin_io_ktor_ktor_utils.$_$.v; var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.v; var get_intOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.t; var replace = kotlin_kotlin.$_$.wf; var toBooleanStrictOrNull = kotlin_kotlin.$_$.og; var listOfNotNull = kotlin_kotlin.$_$.j8; var flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1; var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c; var Companion_instance_21 = kotlin_com_ustadmobile_app_lib_database.$_$.e6; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.c5; var createInvariantKTypeProjection = kotlin_kotlin.$_$.a; var ActivityEntity = kotlin_com_ustadmobile_app_lib_database.$_$.i2; var Companion_instance_22 = kotlin_com_ustadmobile_app_lib_database.$_$.f6; var Companion_instance_23 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b; var ActivityExtensionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.j2; var ActivityLangMapEntry = kotlin_com_ustadmobile_app_lib_database.$_$.l2; var ActivityInteractionEntity = kotlin_com_ustadmobile_app_lib_database.$_$.k2; var JsonContentPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g; var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.u; var noWhenBranchMatchedException = kotlin_kotlin.$_$.ij; 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.$_$.ki; 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.$_$.oh; 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.$_$.wg; var sorted = kotlin_kotlin.$_$.p9; var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a; var ImplWithScope = kotlin_org_kodein_di_kodein_di.$_$.h; var Provider = kotlin_org_kodein_di_kodein_di.$_$.d; var XXStringHasher = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.d; var Singleton = kotlin_org_kodein_di_kodein_di.$_$.f; 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 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.$_$.n; 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.$_$.pf; var HashMap_init_$Create$ = kotlin_kotlin.$_$.p; var round = kotlin_kotlin.$_$.gd; var lazy_0 = kotlin_kotlin.$_$.hj; var roundToInt = kotlin_kotlin.$_$.fd; var substringBefore = kotlin_kotlin.$_$.lg; 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.$_$.v9; var substringBefore_0 = kotlin_kotlin.$_$.kg; var toMutableSet = kotlin_kotlin.$_$.z9; var titlecase = kotlin_kotlin.$_$.ng; 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.$_$.sf; var substringAfterLast = kotlin_kotlin.$_$.fg; var equals_0 = kotlin_kotlin.$_$.ze; var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1; var toLong_0 = kotlin_kotlin.$_$.zg; 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.$_$.g8; var KProperty0 = kotlin_kotlin.$_$.vd; var THROW_ISE = kotlin_kotlin.$_$.li; 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.$_$.y9; var Companion_instance_32 = kotlin_com_ustadmobile_app_lib_database.$_$.l6; var toBoolean = kotlin_kotlin.$_$.pg; var InstanceOrNull = kotlin_org_kodein_di_kodein_di.$_$.l; var PermissionFlags_getInstance = kotlin_com_ustadmobile_app_lib_database.$_$.s5; var ClazzAndDetailPermissions = kotlin_com_ustadmobile_app_lib_database.$_$.n; var mutableListOf = kotlin_kotlin.$_$.q8; var PermissionTriple = kotlin_com_ustadmobile_app_lib_database.$_$.e1; var ClazzAndDisplayDetails = kotlin_com_ustadmobile_app_lib_database.$_$.o; var combine = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1; var 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.$_$.t1; var DelegatedInvalidationPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n1; var ClazzEnrolmentDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.m5; var ClazzInviteAndClazz = kotlin_com_ustadmobile_app_lib_database.$_$.p; var last = kotlin_kotlin.$_$.h8; var ClazzDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.l5; var PermissionPair = kotlin_com_ustadmobile_app_lib_database.$_$.d1; var first_2 = kotlin_kotlin.$_$.r7; var eachCount = kotlin_kotlin.$_$.h7; var AverageCourseAssignmentMark = kotlin_com_ustadmobile_app_lib_database.$_$.x2; var CourseAssignmentMarkAndMarkerName = kotlin_com_ustadmobile_app_lib_database.$_$.v; var SubmissionAndFiles = kotlin_com_ustadmobile_app_lib_database.$_$.l1; var ClazzAssignment = kotlin_com_ustadmobile_app_lib_database.$_$.z2; var AssignmentProgressSummary = kotlin_com_ustadmobile_app_lib_database.$_$.u2; var ClazzAssignmentDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.k5; var ClazzAssignmentCourseBlockAndSubmitterUid = kotlin_com_ustadmobile_app_lib_database.$_$.y2; var throwKotlinNothingValueException = kotlin_kotlin.$_$.lj; 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.$_$.j9; var ContentEntryDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.n5; var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2; var CourseBlockAndPicture = kotlin_com_ustadmobile_app_lib_database.$_$.y; var CourseGroupMemberAndName = kotlin_com_ustadmobile_app_lib_database.$_$.t3; var CourseGroupMember = kotlin_com_ustadmobile_app_lib_database.$_$.u3; var Companion_instance_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.$_$.kj; var XML = kotlin_io_github_pdvrieze_xmlutil_serialization.$_$.d; var get_doorIdentityHashCode = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i; 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.$_$.ei; var shallowCopy_11 = kotlin_com_ustadmobile_app_lib_database.$_$.x1; var Companion_instance_46 = kotlin_com_ustadmobile_app_lib_database.$_$.a8; var get_lastIndex = kotlin_kotlin.$_$.e8; var PersonAndDisplayDetail = kotlin_com_ustadmobile_app_lib_database.$_$.j4; var EditAndViewPermission = kotlin_com_ustadmobile_app_lib_database.$_$.a1; var PersonPicture = kotlin_com_ustadmobile_app_lib_database.$_$.p4; var CentralAppConfigDbDataSource = kotlin_UstadMobile_lib_centralappconfigdb_common.$_$.b; var getSystemTimeInMillis = kotlin_com_ustadmobile_app_lib_util.$_$.b; var PersonDaoCommon_instance = kotlin_com_ustadmobile_app_lib_database.$_$.r5; var println = kotlin_kotlin.$_$.bb; var Settings = kotlin_com_russhwolf_multiplatform_settings.$_$.a; var print = kotlin_kotlin.$_$.cb; var SiteTermsAndLangName = kotlin_com_ustadmobile_app_lib_database.$_$.j1; var contains_0 = kotlin_kotlin.$_$.o6; var SiteTerms = kotlin_com_ustadmobile_app_lib_database.$_$.u4; var Companion_instance_47 = kotlin_com_ustadmobile_app_lib_database.$_$.h8; var shallowCopy_12 = kotlin_com_ustadmobile_app_lib_database.$_$.d2; var mutableMapOf = kotlin_kotlin.$_$.r8; 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.$_$.t; 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.$_$.d2; 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.$_$.j; var IntCompanionObject_instance = kotlin_kotlin.$_$.y4; var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g2; var useRequiredContext = kotlin_org_jetbrains_kotlin_wrappers_kotlin_react_core.$_$.j; var getKClassFromExpression = kotlin_kotlin.$_$.d; var format = kotlin_dev_icerock_moko_resources.$_$.g; var XmlPullParserFactory = kotlin_com_github_UstadMobile_xmlpullparserkmp.$_$.a; var XXStringHasherJs = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.b; var XXHasher64FactoryJs = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.a; var XXHasher64Factory = kotlin_UstadMobile_lib_xxhashkmp_core.$_$.c; var Default_getInstance_0 = kotlin_kotlin.$_$.b5; var Antilog = kotlin_io_github_aakira_napier.$_$.h; var LogLevel_VERBOSE_getInstance = kotlin_io_github_aakira_napier.$_$.e; var LogLevel_DEBUG_getInstance = kotlin_io_github_aakira_napier.$_$.b; var toSet_0 = kotlin_org_jetbrains_kotlin_wrappers_kotlin_js.$_$.b; //endregion //region block: pre-declaration setMetadataFor(strings, 'strings', objectMeta); setMetadataFor(plurals, 'plurals', objectMeta); setMetadataFor(MR, 'MR', objectMeta); setMetadataFor(AccountRegisterOptions, 'AccountRegisterOptions', classMeta, VOID, VOID, AccountRegisterOptions); setMetadataFor(AdultAccountRequiredException, 'AdultAccountRequiredException', classMeta, IllegalStateException, VOID, AdultAccountRequiredException); setMetadataFor($setAuthCOROUTINE$1, '$setAuthCOROUTINE$1', classMeta, CoroutineImpl); setMetadataFor(AuthManager, 'AuthManager', classMeta, VOID, [DIAware], VOID, VOID, VOID, [2]); setMetadataFor(ConsentNotGrantedException, 'ConsentNotGrantedException', classMeta, IllegalStateException, VOID, ConsentNotGrantedException); setMetadataFor($invokeCOROUTINE$2, '$invokeCOROUTINE$2', classMeta, CoroutineImpl); setMetadataFor(SendConsentRequestToParentUseCase, 'SendConsentRequestToParentUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ConsentRequestToParentUseCaseSendToServerImpl, 'ConsentRequestToParentUseCaseSendToServerImpl', classMeta, VOID, [SendConsentRequestToParentUseCase], VOID, VOID, VOID, [1]); 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(PassKeyPromptData, 'PassKeyPromptData', classMeta); 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(Companion_2, 'Companion', objectMeta); setMetadataFor($serializer_1, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SendConsentRequestToParentRequest, 'SendConsentRequestToParentRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_13}); setMetadataFor(UnauthorizedException, 'UnauthorizedException', classMeta, IllegalStateException, VOID, UnauthorizedException); setMetadataFor(Companion_3, 'Companion', objectMeta); setMetadataFor($serializer_2, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UserSessionWithPersonAndLearningSpace, 'UserSessionWithPersonAndLearningSpace', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_14}); 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_4, '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$3, '$activeSessionsListCOROUTINE$3', classMeta, CoroutineImpl); setMetadataFor($activeSessionCountCOROUTINE$4, '$activeSessionCountCOROUTINE$4', classMeta, CoroutineImpl); setMetadataFor($addSessionCOROUTINE$5, '$addSessionCOROUTINE$5', classMeta, CoroutineImpl); setMetadataFor($endSessionCOROUTINE$7, '$endSessionCOROUTINE$7', classMeta, CoroutineImpl); setMetadataFor($getSiteFromDbOrLoadFromHttpCOROUTINE$8, '$getSiteFromDbOrLoadFromHttpCOROUTINE$8', classMeta, CoroutineImpl); setMetadataFor($startGuestSessionCOROUTINE$10, '$startGuestSessionCOROUTINE$10', classMeta, CoroutineImpl); setMetadataFor(UstadAccountManager, 'UstadAccountManager', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 5, 4, 3, 0]); setMetadataFor(Companion_5, 'Companion', objectMeta); setMetadataFor(Companion_6, 'Companion', objectMeta); setMetadataFor(Anchor, 'Anchor', classMeta, VOID, VOID, Anchor, VOID, {0: AnchorSerializer_getInstance}); setMetadataFor(AnchorSerializer, 'AnchorSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_7, 'Companion', objectMeta); setMetadataFor(Body, 'Body', classMeta, VOID, VOID, VOID, VOID, {0: BodySerializer_getInstance}); setMetadataFor(BodySerializer, 'BodySerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_8, 'Companion', objectMeta); setMetadataFor($serializer_3, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ListItem, 'ListItem', classMeta, VOID, VOID, ListItem, VOID, {0: $serializer_getInstance_15}); setMetadataFor(Companion_9, 'Companion', objectMeta); setMetadataFor($serializer_4, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavElement, 'NavElement', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_16}); setMetadataFor(Companion_10, 'Companion', objectMeta); setMetadataFor($serializer_5, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavigationDocument, 'NavigationDocument', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_17}); setMetadataFor(Companion_11, 'Companion', objectMeta); setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(OrderedList, 'OrderedList', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_18}); setMetadataFor(Companion_12, 'Companion', objectMeta); setMetadataFor(Span, 'Span', classMeta, VOID, VOID, Span, VOID, {0: SpanSerializer_getInstance}); setMetadataFor(SpanSerializer, 'SpanSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Content, 'Content', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_19}); setMetadataFor(Companion_13, 'Companion', objectMeta); setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DocTitle, 'DocTitle', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_20}); setMetadataFor(Companion_14, 'Companion', objectMeta); setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Head, 'Head', classMeta, VOID, VOID, Head, VOID, {0: $serializer_getInstance_21}); setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavLabel, 'NavLabel', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_22}); setMetadataFor(Companion_15, 'Companion', objectMeta); setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavMap, 'NavMap', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_23}); setMetadataFor(Companion_16, 'Companion', objectMeta); setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NavPoint, 'NavPoint', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_24}); setMetadataFor(Companion_17, 'Companion', objectMeta); setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(NcxDocument, 'NcxDocument', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_25}); setMetadataFor(Companion_18, 'Companion', objectMeta); setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Text, 'Text', classMeta, VOID, VOID, Text, VOID, {0: $serializer_getInstance_26}); setMetadataFor(Companion_19, 'Companion', objectMeta); setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcCreator, 'DcCreator', classMeta, VOID, VOID, DcCreator, VOID, {0: $serializer_getInstance_27}); setMetadataFor(Companion_20, 'Companion', objectMeta); setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcDescription, 'DcDescription', classMeta, VOID, VOID, DcDescription, VOID, {0: $serializer_getInstance_28}); setMetadataFor(Companion_21, 'Companion', objectMeta); setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcIdentifier, 'DcIdentifier', classMeta, VOID, VOID, DcIdentifier, VOID, {0: $serializer_getInstance_29}); setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcLanguage, 'DcLanguage', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_30}); setMetadataFor(Companion_22, 'Companion', objectMeta); setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DcTitle, 'DcTitle', classMeta, VOID, VOID, DcTitle, VOID, {0: $serializer_getInstance_31}); setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Item, 'Item', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_32}); setMetadataFor(Companion_23, 'Companion', objectMeta); setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ItemRef, 'ItemRef', classMeta, VOID, VOID, ItemRef, VOID, {0: $serializer_getInstance_33}); setMetadataFor(Companion_24, 'Companion', objectMeta); setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Manifest, 'Manifest', classMeta, VOID, VOID, Manifest, VOID, {0: $serializer_getInstance_34}); setMetadataFor(Companion_25, 'Companion', objectMeta); setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Meta, 'Meta', classMeta, VOID, VOID, Meta, VOID, {0: $serializer_getInstance_35}); setMetadataFor(Companion_26, 'Companion', objectMeta); setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Metadata, 'Metadata', classMeta, VOID, VOID, Metadata, VOID, {0: $serializer_getInstance_36}); setMetadataFor(Companion_27, 'Companion', objectMeta); setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PackageDocument, 'PackageDocument', classMeta, VOID, VOID, PackageDocument, VOID, {0: $serializer_getInstance_37}); setMetadataFor(Companion_28, 'Companion', objectMeta); setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Spine, 'Spine', classMeta, VOID, VOID, Spine, VOID, {0: $serializer_getInstance_38}); setMetadataFor(Companion_29, 'Companion', objectMeta); setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentManifest, 'ContentManifest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_39}); setMetadataFor(Companion_30, 'Companion', objectMeta); setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentManifestEntry, 'ContentManifestEntry', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_40}); setMetadataFor(Companion_31, 'Companion', objectMeta); setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MediaContentInfo, 'MediaContentInfo', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_41}); setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MediaSource, 'MediaSource', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_42}); setMetadataFor(Companion_32, 'Companion', objectMeta); setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SubtitleTrack, 'SubtitleTrack', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_43}); setMetadataFor(InvalidContentException, 'InvalidContentException', classMeta, IllegalArgumentException); setMetadataFor(Companion_33, 'Companion', objectMeta); setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MetadataResult, 'MetadataResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_44}); setMetadataFor(PersonConstants, 'PersonConstants', objectMeta); setMetadataFor(SubmissionConstants, 'SubmissionConstants', objectMeta); setMetadataFor(TerminologyKeys, 'TerminologyKeys', objectMeta); setMetadataFor(ValidateUsernameUseCase, 'ValidateUsernameUseCase', classMeta, VOID, VOID, ValidateUsernameUseCase); setMetadataFor($invokeCOROUTINE$11, '$invokeCOROUTINE$11', 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$12, '$invokeCOROUTINE$12', 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$13, '$invokeCOROUTINE$13', 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$15, '$collectCOROUTINE$15', 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$14, '$invokeCOROUTINE$14', 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$17, '$invokeCOROUTINE$17', 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$18, '$invokeCOROUTINE$18', classMeta, CoroutineImpl); setMetadataFor(SaveAndUploadLocalUrisUseCase, 'SaveAndUploadLocalUrisUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_34, 'Companion', objectMeta); setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SaveLocalUriAsBlobItem, 'SaveLocalUriAsBlobItem', classMeta); setMetadataFor(SavedBlob, 'SavedBlob', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_45}); 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.ooo(localUrisToSave, onTransferJobItemCreated, $completion) : $super.ooo.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_35, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$19, '$invokeCOROUTINE$19', 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$20, '$commitCOROUTINE$20', classMeta, CoroutineImpl); setMetadataFor($onFinishedCOROUTINE$21, '$onFinishedCOROUTINE$21', classMeta, CoroutineImpl); setMetadataFor(TransferJobItemStatusUpdater, 'TransferJobItemStatusUpdater', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$22, '$invokeCOROUTINE$22', classMeta, CoroutineImpl); setMetadataFor(UpdateTransferJobItemEtagUseCase, 'UpdateTransferJobItemEtagUseCase', classMeta, VOID, VOID, UpdateTransferJobItemEtagUseCase, VOID, VOID, [4]); setMetadataFor(Companion_36, '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.hou(items, batchUuid, chunkSize, tableId, entityUid, $completion) : $super.hou.call(this, items, batchUuid, chunkSize, tableId, entityUid, $completion); } setMetadataFor(EnqueueBlobUploadClientUseCase, 'EnqueueBlobUploadClientUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($getLocalUriIfRemoteCOROUTINE$23, '$getLocalUriIfRemoteCOROUTINE$23', 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.xou(url, progressInterval, onStateChange, inflateToTmpFileIfCompressed, $completion) : $super.xou.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$24, '$invokeCOROUTINE$24', 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$25, '$invokeCOROUTINE$25', classMeta, CoroutineImpl); setMetadataFor(EnrolIntoCourseUseCase, 'EnrolIntoCourseUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$26, '$invokeCOROUTINE$26', classMeta, CoroutineImpl); setMetadataFor(RequestEnrolmentUseCase, 'RequestEnrolmentUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(SetClipboardStringUseCase, 'SetClipboardStringUseCase', interfaceMeta); setMetadataFor(Companion_37, 'Companion', objectMeta); setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CompressParams, 'CompressParams', classMeta, VOID, VOID, CompressParams, VOID, {0: $serializer_getInstance_46}); 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.qoy(fromUri, toUri, params, onProgress, $completion) : $super.qoy.call(this, fromUri, toUri, params, onProgress, $completion); } setMetadataFor(CompressUseCase, 'CompressUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(Companion_38, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(CompressionLevel, 'CompressionLevel', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_55}); setMetadataFor(CompressionLevelSerializer, 'CompressionLevelSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(ContentManifestMap, 'ContentManifestMap', classMeta); setMetadataFor(DeleteContentEntryParentChildJoinUseCase$invoke$slambda, 'DeleteContentEntryParentChildJoinUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeleteContentEntryParentChildJoinUseCase, 'DeleteContentEntryParentChildJoinUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(Companion_39, '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_40, 'Companion', objectMeta); function invoke$default_3(subtitleTrackUri, filename, locale, $completion, $super) { locale = locale === VOID ? null : locale; return $super === VOID ? this.lp0(subtitleTrackUri, filename, locale, $completion) : $super.lp0.call(this, subtitleTrackUri, filename, locale, $completion); } setMetadataFor(GetSubtitleTrackFromUriUseCase, 'GetSubtitleTrackFromUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(CancelImportContentEntryUseCase, 'CancelImportContentEntryUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$27, '$invokeCOROUTINE$27', classMeta, CoroutineImpl); setMetadataFor(CancelRemoteContentEntryImportUseCase, 'CancelRemoteContentEntryImportUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor($invokeCOROUTINE$28, '$invokeCOROUTINE$28', classMeta, CoroutineImpl); setMetadataFor(DismissRemoteContentEntryImportErrorUseCase, 'DismissRemoteContentEntryImportErrorUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(EnqueueContentEntryImportUseCase, 'EnqueueContentEntryImportUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$29, '$invokeCOROUTINE$29', classMeta, CoroutineImpl); setMetadataFor(EnqueueImportContentEntryUseCaseRemote, 'EnqueueImportContentEntryUseCaseRemote', classMeta, VOID, [EnqueueContentEntryImportUseCase], VOID, VOID, VOID, [1]); setMetadataFor(Companion_41, 'Companion', objectMeta); setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ImportRequest, 'ImportRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_47}); 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$30, '$invokeCOROUTINE$30', 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$31, '$invokeCOROUTINE$31', 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(CreatePasskeyParams, 'CreatePasskeyParams', classMeta); setMetadataFor(CreatePasskeyRequestJsonUseCase, 'CreatePasskeyRequestJsonUseCase', classMeta); 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(Companion_42, 'Companion', objectMeta); setMetadataFor(GetCredentialUseCase, 'GetCredentialUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_43, 'Companion', objectMeta); setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PasskeyVerifyResult, 'PasskeyVerifyResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_48}); setMetadataFor(SavePersonPasskeyUseCase, 'SavePersonPasskeyUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SavePasswordUseCase, 'SavePasswordUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); 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$32, '$invokeCOROUTINE$32', classMeta, CoroutineImpl); setMetadataFor(GetEpubTableOfContentsUseCase, 'GetEpubTableOfContentsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(Companion_44, '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_45, '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$33, '$invokeCOROUTINE$33', classMeta, CoroutineImpl); setMetadataFor(ClazzInviteRedeemUseCase, 'ClazzInviteRedeemUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(ClazzRedeemResult, 'ClazzRedeemResult', classMeta); setMetadataFor($invokeCOROUTINE$34, '$invokeCOROUTINE$34', classMeta, CoroutineImpl); setMetadataFor(EnrollToCourseFromInviteCodeUseCase, 'EnrollToCourseFromInviteCodeUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(ParseInviteUseCase, 'ParseInviteUseCase', classMeta); setMetadataFor(Companion_46, 'Companion', objectMeta); setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ResendInviteRequest, 'ResendInviteRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_49}); setMetadataFor($invokeCOROUTINE$35, '$invokeCOROUTINE$35', classMeta, CoroutineImpl); setMetadataFor(ResendInviteUseCase, 'ResendInviteUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [2]); setMetadataFor(Companion_47, 'Companion', objectMeta); setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SendClazzInvitesRequest, 'SendClazzInvitesRequest', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_50}); setMetadataFor(SendClazzInvitesUseCase, 'SendClazzInvitesUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$36, '$invokeCOROUTINE$36', 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.qpf(uiLang, currentDestination, navController, navArgs) : $super.qpf.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_48, 'Companion', objectMeta); setMetadataFor(LinkTarget, 'LinkTarget', classMeta, Enum); setMetadataFor(OpenExternalLinkUseCase, 'OpenExternalLinkUseCase', interfaceMeta); setMetadataFor($invokeCOROUTINE$37, '$invokeCOROUTINE$37', 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_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonsDataError, 'BulkAddPersonsDataError', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_51}); setMetadataFor(BulkAddPersonsFromLocalUriUseCase, 'BulkAddPersonsFromLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [3]); setMetadataFor(Companion_49, 'Companion', objectMeta); setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddUsersResult, 'BulkAddUsersResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_52}); 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_50, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$38, '$invokeCOROUTINE$38', classMeta, CoroutineImpl); setMetadataFor(GetLocaleForSiteTermsUseCase, 'GetLocaleForSiteTermsUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(OnClickSendSmsUseCase, 'OnClickSendSmsUseCase', interfaceMeta); setMetadataFor(Companion_51, 'Companion', objectMeta); setMetadataFor(DismissSocialWarningUseCase, 'DismissSocialWarningUseCase', classMeta); setMetadataFor(Companion_52, 'Companion', objectMeta); setMetadataFor(ShowSocialWarningUseCase, 'ShowSocialWarningUseCase', classMeta); setMetadataFor(GetOfflineStorageAvailableSpace, 'GetOfflineStorageAvailableSpace', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_53, '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.xpk(uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) : $super.xpk.call(this, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion); } setMetadataFor(ChunkedUploadClientLocalUriUseCase, 'ChunkedUploadClientLocalUriUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [8]); setMetadataFor(Companion_54, 'Companion', objectMeta); setMetadataFor(StartUserSessionUseCase, 'StartUserSessionUseCase', classMeta); setMetadataFor(ValidateEmailUseCase, 'ValidateEmailUseCase', classMeta, VOID, VOID, ValidateEmailUseCase); setMetadataFor(Companion_55, 'Companion', objectMeta); setMetadataFor(ValidateUsernameUseCase_0, 'ValidateUsernameUseCase', classMeta, VOID, VOID, ValidateUsernameUseCase_0); setMetadataFor(Companion_56, 'Companion', objectMeta); setMetadataFor(ValidationResult, 'ValidationResult', classMeta, VOID, VOID, ValidationResult); setMetadataFor(StoreActivitiesUseCase$invoke$slambda, 'StoreActivitiesUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($invokeCOROUTINE$42, '$invokeCOROUTINE$42', classMeta, CoroutineImpl); setMetadataFor(StoreActivitiesUseCase, 'StoreActivitiesUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(XapiException, 'XapiException', classMeta, Exception); setMetadataFor(XapiJson, 'XapiJson', classMeta, VOID, VOID, XapiJson); setMetadataFor(StatementStoreResult, 'StatementStoreResult', classMeta); setMetadataFor(XapiStatementResource$storeStatements$slambda, 'XapiStatementResource$storeStatements$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($storeStatementsCOROUTINE$43, '$storeStatementsCOROUTINE$43', classMeta, CoroutineImpl); setMetadataFor($postCOROUTINE$45, '$postCOROUTINE$45', classMeta, CoroutineImpl); setMetadataFor(XapiStatementResource, 'XapiStatementResource', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 3]); setMetadataFor(XapiGroupAndPersonUidMap, 'XapiGroupAndPersonUidMap', classMeta); setMetadataFor($invokeCOROUTINE$47, '$invokeCOROUTINE$47', classMeta, CoroutineImpl); setMetadataFor(CreateXapiGroupForCourseGroupUseCase, 'CreateXapiGroupForCourseGroupUseCase', classMeta, VOID, VOID, VOID, VOID, VOID, [5]); setMetadataFor($insertOrUpdateActorsIfNameChangedCOROUTINE$48, '$insertOrUpdateActorsIfNameChangedCOROUTINE$48', classMeta, CoroutineImpl); setMetadataFor($insertOrUpdateIfLastModChangedCOROUTINE$49, '$insertOrUpdateIfLastModChangedCOROUTINE$49', classMeta, CoroutineImpl); setMetadataFor(FormattedStatementResponse, 'FormattedStatementResponse', classMeta); setMetadataFor(Companion_57, 'Companion', objectMeta); setMetadataFor(FormatStatementResponseUseCase$invoke$slambda, 'FormatStatementResponseUseCase$invoke$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(FormatStatementResponseUseCase, 'FormatStatementResponseUseCase', classMeta); setMetadataFor(Companion_58, 'Companion', objectMeta); setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Attachment, 'Attachment', classMeta, VOID, VOID, Attachment, VOID, {0: $serializer_getInstance_53}); setMetadataFor(Companion_59, 'Companion', objectMeta); setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiAccount, 'XapiAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_54}); setMetadataFor(Companion_60, 'Companion', objectMeta); setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Interaction, 'Interaction', classMeta, VOID, VOID, Interaction, VOID, {0: $serializer_getInstance_55}); setMetadataFor(Companion_61, 'Companion', objectMeta); setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivity, 'XapiActivity', classMeta, VOID, VOID, XapiActivity, VOID, {0: $serializer_getInstance_56}); setMetadataFor(ActivityEntities, 'ActivityEntities', classMeta); setMetadataFor(Companion_62, '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_63, 'Companion', objectMeta); setMetadataFor($serializer_45, '$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_57}); setMetadataFor(Companion_64, 'Companion', objectMeta); setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContext, 'XapiContext', classMeta, VOID, VOID, XapiContext, VOID, {0: $serializer_getInstance_58}); setMetadataFor(Companion_65, 'Companion', objectMeta); setMetadataFor(XapiContextActivities, 'XapiContextActivities', classMeta, VOID, VOID, XapiContextActivities, VOID, {0: XapiContextActivitiesSerializer_getInstance}); setMetadataFor(XapiContextActivitiesSerializer, 'XapiContextActivitiesSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_66, 'Companion', objectMeta); setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiContextActivitiesSurrogate, 'XapiContextActivitiesSurrogate', classMeta, VOID, VOID, XapiContextActivitiesSurrogate, VOID, {0: $serializer_getInstance_59}); setMetadataFor(Companion_67, 'Companion', objectMeta); setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiGroup, 'XapiGroup', classMeta, VOID, [XapiActor, XapiStatementObject], XapiGroup, VOID, {0: $serializer_getInstance_60}); setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta, VOID, [Comparator]); setMetadataFor(Companion_68, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiInteractionType, 'XapiInteractionType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_85}); setMetadataFor(XapiInteractionTypeSerializer, 'XapiInteractionTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_69, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(XapiObjectType, 'XapiObjectType', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_86}); setMetadataFor(XapiObjectTypeSerializer, 'XapiObjectTypeSerializer', objectMeta, VOID, [KSerializer]); setMetadataFor(Companion_70, 'Companion', objectMeta); setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Score, 'Score', classMeta, VOID, VOID, Score, VOID, {0: $serializer_getInstance_61}); setMetadataFor(Companion_71, 'Companion', objectMeta); setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiResult, 'XapiResult', classMeta, VOID, VOID, XapiResult, VOID, {0: $serializer_getInstance_62}); setMetadataFor(Companion_72, 'Companion', objectMeta); setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatement, 'XapiStatement', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_63}); setMetadataFor(StatementEntities, 'StatementEntities', classMeta, VOID, VOID, StatementEntities); setMetadataFor(XapiStatementObjectSerializer, 'XapiStatementObjectSerializer', objectMeta, JsonContentPolymorphicSerializer); setMetadataFor(Companion_73, 'Companion', objectMeta); setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiActivityStatementObject, 'XapiActivityStatementObject', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_64}); setMetadataFor(Companion_74, 'Companion', objectMeta); setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementRef, 'XapiStatementRef', classMeta, VOID, [XapiStatementObject], VOID, VOID, {0: $serializer_getInstance_65}); setMetadataFor(Companion_75, 'Companion', objectMeta); setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiVerb, 'XapiVerb', classMeta, VOID, VOID, XapiVerb, VOID, {0: $serializer_getInstance_66}); 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_76, 'Companion', objectMeta); setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiStatementsAndSession, 'XapiStatementsAndSession', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_67}); setMetadataFor(ResumeOrStartXapiSessionUseCase, 'ResumeOrStartXapiSessionUseCase', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [7]); setMetadataFor(UstadMobileConstants, 'UstadMobileConstants', objectMeta); setMetadataFor(Companion_77, 'Companion', objectMeta); setMetadataFor(UstadGoOptions, 'UstadGoOptions', classMeta, VOID, VOID, UstadGoOptions); setMetadataFor(UiLanguage, 'UiLanguage', classMeta); setMetadataFor(Companion_78, '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_79, '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_80, 'Companion', objectMeta); setMetadataFor(GenderConfig, 'GenderConfig', classMeta, VOID, VOID, GenderConfig); setMetadataFor(SettingsLocaleSettingDelegate, 'SettingsLocaleSettingDelegate', classMeta); setMetadataFor(Companion_81, 'Companion', objectMeta); setMetadataFor(SupportedLanguagesConfig, 'SupportedLanguagesConfig', classMeta); setMetadataFor(Companion_82, 'Companion', objectMeta); setMetadataFor(SystemUrlConfig, 'SystemUrlConfig', classMeta); setMetadataFor(Companion_83, 'Companion', objectMeta); setMetadataFor(Companion_84, '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_94().rq0_1 : goOptions; var tmp; if ($super === VOID) { this.bq6(viewName, args, goOptions); tmp = Unit_instance; } else { tmp = $super.bq6.call(this, viewName, args, goOptions); } return tmp; } setMetadataFor(UstadNavController, 'UstadNavController', interfaceMeta); setMetadataFor(CommandFlowUstadNavController, 'CommandFlowUstadNavController', classMeta, VOID, [UstadNavController], CommandFlowUstadNavController); setMetadataFor(NavCommand, 'NavCommand', classMeta); setMetadataFor(NavigateNavCommand, 'NavigateNavCommand', classMeta, NavCommand); setMetadataFor(PopNavCommand, 'PopNavCommand', classMeta, NavCommand); setMetadataFor(NavResult, 'NavResult', classMeta); setMetadataFor(NavResultDest, 'NavResultDest', classMeta); setMetadataFor(NavResultReturner, 'NavResultReturner', interfaceMeta); setMetadataFor(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda, 'NavResultReturnerImpl$resultFlowForKey$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$50, '$collectCOROUTINE$50', classMeta, CoroutineImpl); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_1, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(NavResultReturnerImpl, 'NavResultReturnerImpl', classMeta, VOID, [NavResultReturner], NavResultReturnerImpl); setMetadataFor(BitmaskFlag, 'BitmaskFlag', classMeta); setMetadataFor(ListPagingSource, 'ListPagingSource', classMeta, PagingSource, VOID, VOID, VOID, VOID, [1]); setMetadataFor(RefreshCommand, 'RefreshCommand', classMeta, VOID, VOID, RefreshCommand); setMetadataFor(Activity, 'Activity', classMeta); setMetadataFor(Companion_85, 'Companion', objectMeta); setMetadataFor(TinCanXML, 'TinCanXML', classMeta, VOID, VOID, TinCanXML); setMetadataFor(DiTag, 'DiTag', objectMeta); setMetadataFor(EventCollator2$receiveEvent$slambda, 'EventCollator2$receiveEvent$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EventCollator2, 'EventCollator2', classMeta); setMetadataFor(Companion_86, 'Companion', objectMeta); setMetadataFor(MessageIdOption2, 'MessageIdOption2', classMeta); setMetadataFor(SortOrderOption, 'SortOrderOption', classMeta); setMetadataFor(UMFileUtil, 'UMFileUtil', objectMeta); setMetadataFor(Companion_87, 'Companion', objectMeta); setMetadataFor(UstadUrlComponents, 'UstadUrlComponents', classMeta); setMetadataFor($verifySiteCOROUTINE$51, '$verifySiteCOROUTINE$51', classMeta, CoroutineImpl); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_2, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(whenSubscribed$o$collect$slambda, 'whenSubscribed$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$52, '$collectCOROUTINE$52', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_1, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(whenSubscribed$slambda, 'whenSubscribed$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1, 'sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0', classMeta); setMetadataFor(navigateToLink$slambda, 'navigateToLink$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScopedGrantResult, 'ScopedGrantResult', classMeta); setMetadataFor($insertPersonAndGroupCOROUTINE$53, '$insertPersonAndGroupCOROUTINE$53', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfFalseCOROUTINE$54, '$localFirstThenRepoIfFalseCOROUTINE$54', classMeta, CoroutineImpl); setMetadataFor($grantScopedPermissionCOROUTINE$55, '$grantScopedPermissionCOROUTINE$55', classMeta, CoroutineImpl); setMetadataFor($localFirstThenRepoIfNullCOROUTINE$56, '$localFirstThenRepoIfNullCOROUTINE$56', classMeta, CoroutineImpl); setMetadataFor(Companion_88, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(IStringValues, 'IStringValues', interfaceMeta, VOID, VOID, VOID, VOID, {0: Companion_getInstance_105}); setMetadataFor(MapStringValues, 'MapStringValues', classMeta, VOID, [IStringValues]); setMetadataFor(StringValuesSerializer, 'StringValuesSerializer', classMeta, VOID, [KSerializer], StringValuesSerializer); setMetadataFor(Companion_89, 'Companion', objectMeta); setMetadataFor(Companion_90, 'Companion', objectMeta); 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(ListViewMode, 'ListViewMode', classMeta, Enum); setMetadataFor(Companion_97, '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_98, 'Companion', objectMeta); setMetadataFor(HolidayCalendarEditUiState, 'HolidayCalendarEditUiState', classMeta, VOID, VOID, HolidayCalendarEditUiState); setMetadataFor(Companion_99, '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_100, '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_101, '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_102, 'Companion', objectMeta); setMetadataFor(ReportFilterEditUiState, 'ReportFilterEditUiState', classMeta, VOID, VOID, ReportFilterEditUiState); setMetadataFor(ScopedGrantDetailUiState, 'ScopedGrantDetailUiState', classMeta, VOID, VOID, ScopedGrantDetailUiState); setMetadataFor(Companion_103, 'Companion', objectMeta); setMetadataFor(ScopedGrantEditUiState, 'ScopedGrantEditUiState', classMeta, VOID, VOID, ScopedGrantEditUiState); setMetadataFor(Companion_104, 'Companion', objectMeta); setMetadataFor(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda, 'UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_105, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_3, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(UstadListViewModel$searchEvtCollator$slambda, 'UstadListViewModel$searchEvtCollator$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda, 'UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(UstadListViewModel, 'UstadListViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [3, 2, 6]); setMetadataFor(UstadViewModel$filteredResultFlowForKey$o$collect$slambda, 'UstadViewModel$filteredResultFlowForKey$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$60, '$collectCOROUTINE$60', classMeta, CoroutineImpl); setMetadataFor(Companion_106, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_4, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0, 'sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0', classMeta, VOID, [OpenExternalLinkUseCase]); setMetadataFor(_no_name_provided__qut3iv_2, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$getJson$slambda, 'UstadViewModel$getJson$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$setJson$slambda, 'UstadViewModel$setJson$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$launchIfHasPermission$slambda, 'UstadViewModel$launchIfHasPermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UstadViewModel$launchWithLoadingIndicator$slambda, 'UstadViewModel$launchWithLoadingIndicator$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($getJsonCOROUTINE$57, '$getJsonCOROUTINE$57', classMeta, CoroutineImpl); setMetadataFor($setJsonCOROUTINE$58, '$setJsonCOROUTINE$58', classMeta, CoroutineImpl); setMetadataFor($loadEntityCOROUTINE$59, '$loadEntityCOROUTINE$59', classMeta, CoroutineImpl); setMetadataFor(Companion_107, 'Companion', objectMeta); setMetadataFor(OpenLicensesViewModel, 'OpenLicensesViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(Companion_108, '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_109, '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_110, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_5, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0, 'sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0', classMeta, VOID, [OpenExternalLinkUseCase]); setMetadataFor(AccountListViewModel$slambda, 'AccountListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$slambda_1, 'AccountListViewModel$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickLogout$slambda, 'AccountListViewModel$onClickLogout$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickAddAccount$slambda, 'AccountListViewModel$onClickAddAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickAccount$slambda, 'AccountListViewModel$onClickAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickDeleteAccount$slambda, 'AccountListViewModel$onClickDeleteAccount$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(AccountListViewModel$onClickOpenLicenses$slambda, 'AccountListViewModel$onClickOpenLicenses$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($getChildDetailCOROUTINE$61, '$getChildDetailCOROUTINE$61', classMeta, CoroutineImpl); setMetadataFor(AccountListViewModel, 'AccountListViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [0, 2, 3, 6]); setMetadataFor(AccountListUiState, 'AccountListUiState', classMeta, VOID, VOID, AccountListUiState); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_6, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(launchSetTitleFromClazzUid$slambda$slambda, 'launchSetTitleFromClazzUid$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(launchSetTitleFromClazzUid$slambda, 'launchSetTitleFromClazzUid$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_7, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]); setMetadataFor(collectClazzNameAndUpdateTitle$slambda, 'collectClazzNameAndUpdateTitle$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionConstants, 'CoursePermissionConstants', objectMeta); setMetadataFor(getTitleForCoursePermission$slambda, 'getTitleForCoursePermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(getTitleForCoursePermission$slambda_1, 'getTitleForCoursePermission$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($getTitleForCoursePermissionCOROUTINE$62, '$getTitleForCoursePermissionCOROUTINE$62', classMeta, CoroutineImpl); setMetadataFor(ClazzDetailViewModel$slambda$slambda$slambda$slambda, 'ClazzDetailViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel$slambda$slambda$slambda, 'ClazzDetailViewModel$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailViewModel$slambda$slambda, 'ClazzDetailViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(Companion_111, '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$63, '$collectCOROUTINE$63', classMeta, CoroutineImpl); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda, '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$64, '$collectCOROUTINE$64', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_4, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($collectCOROUTINE$65, '$collectCOROUTINE$65', classMeta, CoroutineImpl); setMetadataFor(_no_name_provided__qut3iv_5, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7, 'ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDetailOverviewViewModel$slambda$slambda$slambda, '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_112, '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_113, '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$66, '$updateCourseBlockListCOROUTINE$66', classMeta, CoroutineImpl); setMetadataFor(ClazzEditViewModel, 'ClazzEditViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(CourseBlockUiState, 'CourseBlockUiState', classMeta); setMetadataFor(Companion_114, 'Companion', objectMeta); setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEditUiState, 'ClazzEditUiState', classMeta, VOID, VOID, ClazzEditUiState, VOID, {0: $serializer_getInstance_68}); setMetadataFor($loadCOROUTINE$67, '$loadCOROUTINE$67', classMeta, CoroutineImpl); setMetadataFor($loadHttpCOROUTINE$68, '$loadHttpCOROUTINE$68', 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_115, '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_116, '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_117, 'Companion', objectMeta); setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Companion_118, 'Companion', objectMeta); setMetadataFor(InviteResult, 'InviteResult', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_69}); setMetadataFor(ClazzInviteViaContactViewModel$onClickSend$slambda, 'ClazzInviteViaContactViewModel$onClickSend$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($sendContactsToServerCOROUTINE$69, '$sendContactsToServerCOROUTINE$69', 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_119, 'Companion', objectMeta); setMetadataFor(ClazzInviteViaLinkViewModel, 'ClazzInviteViaLinkViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(ClazzInviteViaLinkUiState, 'ClazzInviteViaLinkUiState', classMeta, VOID, VOID, ClazzInviteViaLinkUiState); setMetadataFor(Companion_120, '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_121, '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_122, '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_123, '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_124, '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_125, '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_126, '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_127, '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_128, '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_129, '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$70, '$collectCOROUTINE$70', 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_130, '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_131, '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_132, 'Companion', objectMeta); setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentEditUiState, 'ClazzAssignmentEditUiState', classMeta, VOID, VOID, ClazzAssignmentEditUiState, VOID, {0: $serializer_getInstance_70}); 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_133, '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_134, '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_135, '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_136, '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$71, '$collectCOROUTINE$71', 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$72, '$collectCOROUTINE$72', 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_137, '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_138, '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_139, '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_140, '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$73, '$savePersonAndAttendanceRecordsCOROUTINE$73', classMeta, CoroutineImpl); setMetadataFor($commitAttendanceRecordsToStateCOROUTINE$74, '$commitAttendanceRecordsToStateCOROUTINE$74', classMeta, CoroutineImpl); setMetadataFor(ClazzLogEditAttendanceViewModel, 'ClazzLogEditAttendanceViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 0, 3, 6]); setMetadataFor(ClazzLogEditAttendanceUiState, 'ClazzLogEditAttendanceUiState', classMeta, VOID, VOID, ClazzLogEditAttendanceUiState); setMetadataFor(Companion_141, '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_142, '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$75, '$buildSortOptionsCOROUTINE$75', 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_143, '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_144, '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_145, '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_146, '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_147, '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_148, '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_149, '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_150, '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_151, 'Companion', objectMeta); setMetadataFor(ContentEntryListUiState, 'ContentEntryListUiState', classMeta, VOID, VOID, ContentEntryListUiState); setMetadataFor(Companion_152, 'Companion', objectMeta); setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryListSelectedItem, 'ContentEntryListSelectedItem', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_71}); 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_153, '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_154, 'Companion', objectMeta, VOID, [SerializerFactory]); setMetadataFor(CompletionCriteria, 'CompletionCriteria', classMeta, Enum, VOID, VOID, VOID, {0: Companion_getInstance_171}); 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_155, '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_156, 'Companion', objectMeta); setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockEditUiState, 'CourseBlockEditUiState', classMeta, VOID, VOID, CourseBlockEditUiState, VOID, {0: $serializer_getInstance_72}); 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_157, '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_158, '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_159, '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_160, '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_161, '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_162, '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_163, '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_164, '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_165, '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_166, '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$76, '$submitReplyCOROUTINE$76', 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_167, '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_168, '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_169, 'Companion', objectMeta); setMetadataFor(Companion_170, '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_171, '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_172, '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(Companion_173, 'Companion', objectMeta); setMetadataFor(ParentConsentWaitingScreenViewModel, 'ParentConsentWaitingScreenViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); 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_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonUsernameAndPasswordModel, 'PersonUsernameAndPasswordModel', classMeta, VOID, VOID, PersonUsernameAndPasswordModel, VOID, {0: $serializer_getInstance_73}); 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_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BulkAddPersonRunImportUiState, 'BulkAddPersonRunImportUiState', classMeta, VOID, VOID, BulkAddPersonRunImportUiState, VOID, {0: $serializer_getInstance_74}); 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(ChildProfileListViewModel$lambda$slambda$slambda$slambda, 'ChildProfileListViewModel$lambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ChildProfileListViewModel$lambda$slambda$slambda$slambda_1, 'ChildProfileListViewModel$lambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [0]); setMetadataFor(ChildProfileListViewModel$lambda$slambda$slambda$slambda_3, 'ChildProfileListViewModel$lambda$slambda$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ChildProfileListViewModel$lambda$slambda$slambda, 'ChildProfileListViewModel$lambda$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(ChildProfileListViewModel$lambda$slambda, 'ChildProfileListViewModel$lambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ChildProfileListViewModel$lambda$slambda_1, 'ChildProfileListViewModel$lambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ChildProfileListViewModel$updateChildProfileList$slambda, 'ChildProfileListViewModel$updateChildProfileList$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ChildProfileListViewModel$addChildIntoUiState$slambda, 'ChildProfileListViewModel$addChildIntoUiState$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ChildProfileListViewModel$onClickDeleteChildProfile$slambda, 'ChildProfileListViewModel$onClickDeleteChildProfile$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ChildProfileListViewModel$onProfileSelected$slambda, 'ChildProfileListViewModel$onProfileSelected$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($updateChildProfileListCOROUTINE$77, '$updateChildProfileListCOROUTINE$77', classMeta, CoroutineImpl); setMetadataFor(ChildProfileListViewModel, 'ChildProfileListViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(ChildProfileListUiState, 'ChildProfileListUiState', classMeta, VOID, VOID, ChildProfileListUiState); 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(Companion_187, 'Companion', objectMeta); setMetadataFor(RegisterAgeRedirectViewModel, 'RegisterAgeRedirectViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterAgeRedirectUiState, 'RegisterAgeRedirectUiState', classMeta, VOID, VOID, RegisterAgeRedirectUiState); setMetadataFor(Companion_188, 'Companion', objectMeta); setMetadataFor(RegisterMinorWaitForParentViewModel, 'RegisterMinorWaitForParentViewModel', classMeta, UstadViewModel, VOID, VOID, VOID, VOID, [2, 3, 6]); setMetadataFor(RegisterMinorWaitForParentUiState, 'RegisterMinorWaitForParentUiState', classMeta, VOID, VOID, RegisterMinorWaitForParentUiState); setMetadataFor(Companion_189, '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_190, '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_191, 'Companion', objectMeta); setMetadataFor(SettingsViewModel$slambda$slambda, 'SettingsViewModel$slambda$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(Companion_192, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_37, '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_193, 'Companion', objectMeta); setMetadataFor(Companion_194, '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$onClickDone$slambda, 'SignUpViewModel$onClickDone$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onPersonPictureChanged$slambda, 'SignUpViewModel$onPersonPictureChanged$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SignUpViewModel$onClickedSignup$slambda, 'SignUpViewModel$onClickedSignup$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($sendConsentAndNavigateToMinorWaitScreenCOROUTINE$80, '$sendConsentAndNavigateToMinorWaitScreenCOROUTINE$80', classMeta, CoroutineImpl); setMetadataFor($enrollToCourseFromInviteUidCOROUTINE$81, '$enrollToCourseFromInviteUidCOROUTINE$81', classMeta, CoroutineImpl); setMetadataFor(SignUpViewModel, 'SignUpViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 2, 3, 6]); setMetadataFor(SignUpUiState, 'SignUpUiState', classMeta, VOID, VOID, SignUpUiState); setMetadataFor(Companion_195, '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$navigateToAppropriateScreen$slambda, 'SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]); setMetadataFor($sendConsentAndNavigateToMinorWaitScreenCOROUTINE$82, '$sendConsentAndNavigateToMinorWaitScreenCOROUTINE$82', classMeta, CoroutineImpl); setMetadataFor(SignupEnterUsernamePasswordViewModel, 'SignupEnterUsernamePasswordViewModel', classMeta, UstadEditViewModel, VOID, VOID, VOID, VOID, [1, 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_196, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_38, '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_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(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_198, '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_199, '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_200, 'Companion', objectMeta); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_40, '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_201, '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_202, '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_203, '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_204, '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$83, '$encryptPbkdf2COROUTINE$83', classMeta, CoroutineImpl); setMetadataFor($doublePbkdf2HashAsBase64COROUTINE$85, '$doublePbkdf2HashAsBase64COROUTINE$85', 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$86, '$invokeCOROUTINE$86', 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$87, '$invokeCOROUTINE$87', 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$88, '$invokeCOROUTINE$88', classMeta, CoroutineImpl); setMetadataFor(CompressImageUseCaseJs, 'CompressImageUseCaseJs', classMeta, VOID, [CompressUseCase], CompressImageUseCaseJs, VOID, VOID, [4]); setMetadataFor(Companion_205, 'Companion', objectMeta); setMetadataFor($invokeCOROUTINE$89, '$invokeCOROUTINE$89', classMeta, CoroutineImpl); setMetadataFor(ContentEntryGetMetaDataFromUriUseCaseJs, 'ContentEntryGetMetaDataFromUriUseCaseJs', classMeta, VOID, [ContentEntryGetMetaDataFromUriUseCase], VOID, VOID, VOID, [4]); setMetadataFor($invokeCOROUTINE$90, '$invokeCOROUTINE$90', classMeta, CoroutineImpl); setMetadataFor(GetSubtitleTrackFromUriUseCaseJs, 'GetSubtitleTrackFromUriUseCaseJs', classMeta, VOID, [GetSubtitleTrackFromUriUseCase], VOID, VOID, VOID, [3]); setMetadataFor($invokeCOROUTINE$91, '$invokeCOROUTINE$91', 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$92, '$invokeCOROUTINE$92', 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$93, '$invokeCOROUTINE$93', 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$94, '$invokeCOROUTINE$94', classMeta, CoroutineImpl); setMetadataFor(ResumeOrStartXapiSessionUseCaseJs, 'ResumeOrStartXapiSessionUseCaseJs', classMeta, VOID, [ResumeOrStartXapiSessionUseCase], VOID, VOID, VOID, [7]); setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_41, '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_42, '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_206, 'Companion', objectMeta); setMetadataFor(UstadMobileSystemImpl, 'UstadMobileSystemImpl', classMeta, UstadMobileSystemCommon, VOID, VOID, VOID, VOID, [2]); setMetadataFor(StringProviderJs, 'StringProviderJs', classMeta); setMetadataFor(Companion_207, 'Companion', objectMeta); setMetadataFor(SavedStateHandle2, 'SavedStateHandle2', classMeta); setMetadataFor(UrlKmpJs, 'UrlKmpJs', classMeta); setMetadataFor(Companion_208, '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.pmd_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.qmd_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.rmd_1 = new Impl(this.qmd_1, this.pmd_1); this.smd_1 = new StringResource('app_name', this.rmd_1); this.tmd_1 = new StringResource('blank', this.rmd_1); this.umd_1 = new StringResource('login', this.rmd_1); this.vmd_1 = new StringResource('got_it', this.rmd_1); this.wmd_1 = new StringResource('learn_more', this.rmd_1); this.xmd_1 = new StringResource('be_careful_interacting_online', this.rmd_1); this.ymd_1 = new StringResource('be_careful_not_to_share', this.rmd_1); this.zmd_1 = new StringResource('share_app', this.rmd_1); this.ame_1 = new StringResource('send_apk_file', this.rmd_1); this.bme_1 = new StringResource('send_app_link', this.rmd_1); this.cme_1 = new StringResource('error', this.rmd_1); this.dme_1 = new StringResource('create_backup', this.rmd_1); this.eme_1 = new StringResource('create_backup_description', this.rmd_1); this.fme_1 = new StringResource('err_registering_new_user', this.rmd_1); this.gme_1 = new StringResource('register_empty_fields', this.rmd_1); this.hme_1 = new StringResource('register_incorrect_email', this.rmd_1); this.ime_1 = new StringResource('group_activity', this.rmd_1); this.jme_1 = new StringResource('select_group_members', this.rmd_1); this.kme_1 = new StringResource('confirm_delete_message', this.rmd_1); this.lme_1 = new StringResource('wrong_user_pass_combo', this.rmd_1); this.mme_1 = new StringResource('login_network_error', this.rmd_1); this.nme_1 = new StringResource('download', this.rmd_1); this.ome_1 = new StringResource('downloaded', this.rmd_1); this.pme_1 = new StringResource('recycled', this.rmd_1); this.qme_1 = new StringResource('libraries', this.rmd_1); this.rme_1 = new StringResource('pause_download', this.rmd_1); this.sme_1 = new StringResource('ok', this.rmd_1); this.tme_1 = new StringResource('confirm', this.rmd_1); this.ume_1 = new StringResource('cancel', this.rmd_1); this.vme_1 = new StringResource('canceled', this.rmd_1); this.wme_1 = new StringResource('delete', this.rmd_1); this.xme_1 = new StringResource('deleted', this.rmd_1); this.yme_1 = new StringResource('new_tab', this.rmd_1); this.zme_1 = new StringResource('loading', this.rmd_1); this.amf_1 = new StringResource('deleting', this.rmd_1); this.bmf_1 = new StringResource('processing', this.rmd_1); this.cmf_1 = new StringResource('uploading', this.rmd_1); this.dmf_1 = new StringResource('error_opening_file', this.rmd_1); this.emf_1 = new StringResource('logout', this.rmd_1); this.fmf_1 = new StringResource('about', this.rmd_1); this.gmf_1 = new StringResource('download_all', this.rmd_1); this.hmf_1 = new StringResource('next', this.rmd_1); this.imf_1 = new StringResource('previous', this.rmd_1); this.jmf_1 = new StringResource('back', this.rmd_1); this.kmf_1 = new StringResource('username', this.rmd_1); this.lmf_1 = new StringResource('password', this.rmd_1); this.mmf_1 = new StringResource('confirm_password', this.rmd_1); this.nmf_1 = new StringResource('last_name', this.rmd_1); this.omf_1 = new StringResource('first_name', this.rmd_1); this.pmf_1 = new StringResource('least_recent', this.rmd_1); this.qmf_1 = new StringResource('by_score', this.rmd_1); this.rmf_1 = new StringResource('by_completion', this.rmd_1); this.smf_1 = new StringResource('by_recent_attempt', this.rmd_1); this.tmf_1 = new StringResource('by_timestamp', this.rmd_1); this.umf_1 = new StringResource('register_now', this.rmd_1); this.vmf_1 = new StringResource('new_password', this.rmd_1); this.wmf_1 = new StringResource('phone_memory', this.rmd_1); this.xmf_1 = new StringResource('memory_card', this.rmd_1); this.ymf_1 = new StringResource('device', this.rmd_1); this.zmf_1 = new StringResource('register', this.rmd_1); this.amg_1 = new StringResource('phone_number', this.rmd_1); this.bmg_1 = new StringResource('name_key', this.rmd_1); this.cmg_1 = new StringResource('description', this.rmd_1); this.dmg_1 = new StringResource('male', this.rmd_1); this.emg_1 = new StringResource('female', this.rmd_1); this.fmg_1 = new StringResource('other', this.rmd_1); this.gmg_1 = new StringResource('unset', this.rmd_1); this.hmg_1 = new StringResource('settings', this.rmd_1); this.img_1 = new StringResource('language', this.rmd_1); this.jmg_1 = new StringResource('add_a_new_language', this.rmd_1); this.kmg_1 = new StringResource('add_new_language', this.rmd_1); this.lmg_1 = new StringResource('select_language', this.rmd_1); this.mmg_1 = new StringResource('languages', this.rmd_1); this.nmg_1 = new StringResource('edit_language', this.rmd_1); this.omg_1 = new StringResource('two_letter_code', this.rmd_1); this.pmg_1 = new StringResource('three_letter_code', this.rmd_1); this.qmg_1 = new StringResource('languages_description', this.rmd_1); this.rmg_1 = new StringResource('advanced', this.rmd_1); this.smg_1 = new StringResource('optional', this.rmd_1); this.tmg_1 = new StringResource('email', this.rmd_1); this.umg_1 = new StringResource('regcode', this.rmd_1); this.vmg_1 = new StringResource('home', this.rmd_1); this.wmg_1 = new StringResource('phone', this.rmd_1); this.xmg_1 = new StringResource('attendance', this.rmd_1); this.ymg_1 = new StringResource('classes', this.rmd_1); this.zmg_1 = new StringResource('exams', this.rmd_1); this.amh_1 = new StringResource('reports', this.rmd_1); this.bmh_1 = new StringResource('choose_template', this.rmd_1); this.cmh_1 = new StringResource('save_as_template', this.rmd_1); this.dmh_1 = new StringResource('contents', this.rmd_1); this.emh_1 = new StringResource('students', this.rmd_1); this.fmh_1 = new StringResource('add_a_student', this.rmd_1); this.gmh_1 = new StringResource('forgot_password', this.rmd_1); this.hmh_1 = new StringResource('notifications', this.rmd_1); this.imh_1 = new StringResource('account', this.rmd_1); this.jmh_1 = new StringResource('accounts', this.rmd_1); this.kmh_1 = new StringResource('share', this.rmd_1); this.lmh_1 = new StringResource('send', this.rmd_1); this.mmh_1 = new StringResource('open', this.rmd_1); this.nmh_1 = new StringResource('downloading', this.rmd_1); this.omh_1 = new StringResource('waiting', this.rmd_1); this.pmh_1 = new StringResource('waiting_for_connection', this.rmd_1); this.qmh_1 = new StringResource('queued', this.rmd_1); this.rmh_1 = new StringResource('failed', this.rmd_1); this.smh_1 = new StringResource('passed', this.rmd_1); this.tmh_1 = new StringResource('success', this.rmd_1); this.umh_1 = new StringResource('failure', this.rmd_1); this.vmh_1 = new StringResource('incomplete', this.rmd_1); this.wmh_1 = new StringResource('completed', this.rmd_1); this.xmh_1 = new StringResource('experience', this.rmd_1); this.ymh_1 = new StringResource('answered', this.rmd_1); this.zmh_1 = new StringResource('select_subtitle_video', this.rmd_1); this.ami_1 = new StringResource('no_subtitle', this.rmd_1); this.bmi_1 = new StringResource('no_video_file_found', this.rmd_1); this.cmi_1 = new StringResource('content_from_file', this.rmd_1); this.dmi_1 = new StringResource('content_from_link', this.rmd_1); this.emi_1 = new StringResource('import_from_file', this.rmd_1); this.fmi_1 = new StringResource('import_from_link', this.rmd_1); this.gmi_1 = new StringResource('import_content', this.rmd_1); this.hmi_1 = new StringResource('update_content', this.rmd_1); this.imi_1 = new StringResource('publicly_accessible', this.rmd_1); this.jmi_1 = new StringResource('title', this.rmd_1); this.kmi_1 = new StringResource('licence', this.rmd_1); this.lmi_1 = new StringResource('ebook', this.rmd_1); this.mmi_1 = new StringResource('interactive', this.rmd_1); this.nmi_1 = new StringResource('collection', this.rmd_1); this.omi_1 = new StringResource('document', this.rmd_1); this.pmi_1 = new StringResource('article', this.rmd_1); this.qmi_1 = new StringResource('audio', this.rmd_1); this.rmi_1 = new StringResource('move', this.rmd_1); this.smi_1 = new StringResource('hide', this.rmd_1); this.tmi_1 = new StringResource('unhide', this.rmd_1); this.umi_1 = new StringResource('compress', this.rmd_1); this.vmi_1 = new StringResource('and_key', this.rmd_1); this.wmi_1 = new StringResource('added', this.rmd_1); this.xmi_1 = new StringResource('attempts', this.rmd_1); this.ymi_1 = new StringResource('add_link_description', this.rmd_1); this.zmi_1 = new StringResource('add_gallery_description', this.rmd_1); this.amj_1 = new StringResource('add_file_description', this.rmd_1); this.bmj_1 = new StringResource('error_this_device_doesnt_support_bluetooth_sharing', this.rmd_1); this.cmj_1 = new StringResource('share_offline_zip_checkbox_label', this.rmd_1); this.dmj_1 = new StringResource('share_offline_dialog_message', this.rmd_1); this.emj_1 = new StringResource('preparing', this.rmd_1); this.fmj_1 = new StringResource('fixed_date', this.rmd_1); this.gmj_1 = new StringResource('relative_date', this.rmd_1); this.hmj_1 = new StringResource('field_required_prompt', this.rmd_1); this.imj_1 = new StringResource('field_password_error_min', this.rmd_1); this.jmj_1 = new StringResource('filed_password_no_match', this.rmd_1); this.kmj_1 = new StringResource('update', this.rmd_1); this.lmj_1 = new StringResource('profile', this.rmd_1); this.mmj_1 = new StringResource('dialog_download_from_playstore_message', this.rmd_1); this.nmj_1 = new StringResource('dialog_download_from_playstore_ok', this.rmd_1); this.omj_1 = new StringResource('dialog_download_from_playstore_cancel', this.rmd_1); this.pmj_1 = new StringResource('accept', this.rmd_1); this.qmj_1 = new StringResource('also_available_in', this.rmd_1); this.rmj_1 = new StringResource('created_partnership', this.rmd_1); this.smj_1 = new StringResource('onboarding_get_started_label', this.rmd_1); this.tmj_1 = new StringResource('lets_get_started_label', this.rmd_1); this.umj_1 = new StringResource('onboarding_headline1', this.rmd_1); this.vmj_1 = new StringResource('onboarding_subheadline1', this.rmd_1); this.wmj_1 = new StringResource('onboarding_headline2', this.rmd_1); this.xmj_1 = new StringResource('onboarding_subheadline2', this.rmd_1); this.ymj_1 = new StringResource('onboarding_headline3', this.rmd_1); this.zmj_1 = new StringResource('onboarding_subheadline3', this.rmd_1); this.amk_1 = new StringResource('download_continue_stacked_label', this.rmd_1); this.bmk_1 = new StringResource('im_an_individual_learner', this.rmd_1); this.cmk_1 = new StringResource('im_an_individual_learner_description', this.rmd_1); this.dmk_1 = new StringResource('i_want_to_join_my_organization_school', this.rmd_1); this.emk_1 = new StringResource('i_want_to_join_my_organization_school_description', this.rmd_1); this.fmk_1 = new StringResource('i_want_to_add_my_organization_school', this.rmd_1); this.gmk_1 = new StringResource('i_want_to_add_my_organization_school_description', this.rmd_1); this.hmk_1 = new StringResource('individual_action_title', this.rmd_1); this.imk_1 = new StringResource('create_new_local_account_title', this.rmd_1); this.jmk_1 = new StringResource('create_new_local_account_description', this.rmd_1); this.kmk_1 = new StringResource('restore_local_account_title', this.rmd_1); this.lmk_1 = new StringResource('restore_local_account_description', this.rmd_1); this.mmk_1 = new StringResource('download_continue_btn_label', this.rmd_1); this.nmk_1 = new StringResource('download_wifi_only', this.rmd_1); this.omk_1 = new StringResource('download_calculating', this.rmd_1); this.pmk_1 = new StringResource('download_state_download', this.rmd_1); this.qmk_1 = new StringResource('download_state_downloading', this.rmd_1); this.rmk_1 = new StringResource('download_state_downloaded', this.rmd_1); this.smk_1 = new StringResource('download_downloading_placeholder', this.rmd_1); this.tmk_1 = new StringResource('download_summary_title', this.rmd_1); this.umk_1 = new StringResource('download_cancel_label', this.rmd_1); this.vmk_1 = new StringResource('download_pause_download', this.rmd_1); this.wmk_1 = new StringResource('download_storage_option_device', this.rmd_1); this.xmk_1 = new StringResource('download_locally_availability', this.rmd_1); this.ymk_1 = new StringResource('download_cloud_availability', this.rmd_1); this.zmk_1 = new StringResource('insufficient_space', this.rmd_1); this.aml_1 = new StringResource('download_entry_state_paused', this.rmd_1); this.bml_1 = new StringResource('get_app', this.rmd_1); this.cml_1 = new StringResource('no_app_found', this.rmd_1); this.dml_1 = new StringResource('entry_details_author', this.rmd_1); this.eml_1 = new StringResource('entry_details_publisher', this.rmd_1); this.fml_1 = new StringResource('entry_details_license', this.rmd_1); this.gml_1 = new StringResource('file_not_found', this.rmd_1); this.hml_1 = new StringResource('multiple_choice', this.rmd_1); this.iml_1 = new StringResource('preview', this.rmd_1); this.jml_1 = new StringResource('content_creation_storage_option_title', this.rmd_1); this.kml_1 = new StringResource('file_required_prompt', this.rmd_1); this.lml_1 = new StringResource('content_creation_folder_new_message', this.rmd_1); this.mml_1 = new StringResource('content_creation_folder_update_message', this.rmd_1); this.nml_1 = new StringResource('error_message_load_page', this.rmd_1); this.oml_1 = new StringResource('error_message_update_document', this.rmd_1); this.pml_1 = new StringResource('supported_files', this.rmd_1); this.qml_1 = new StringResource('content_editor_save_error', this.rmd_1); this.rml_1 = new StringResource('content_entry_export_inprogress', this.rmd_1); this.sml_1 = new StringResource('content_entry_export_message', this.rmd_1); this.tml_1 = new StringResource('show_hidden_items', this.rmd_1); this.uml_1 = new StringResource('open_folder', this.rmd_1); this.vml_1 = new StringResource('action_hidden', this.rmd_1); this.wml_1 = new StringResource('invalid', this.rmd_1); this.xml_1 = new StringResource('enter_register_code', this.rmd_1); this.yml_1 = new StringResource('bar_chart', this.rmd_1); this.zml_1 = new StringResource('line_chart', this.rmd_1); this.amm_1 = new StringResource('score', this.rmd_1); this.bmm_1 = new StringResource('content_total_duration', this.rmd_1); this.cmm_1 = new StringResource('content_average_duration', this.rmd_1); this.dmm_1 = new StringResource('count_session', this.rmd_1); this.emm_1 = new StringResource('interaction_recorded', this.rmd_1); this.fmm_1 = new StringResource('number_active_users', this.rmd_1); this.gmm_1 = new StringResource('average_usage_time_per_user', this.rmd_1); this.hmm_1 = new StringResource('number_students_completed', this.rmd_1); this.imm_1 = new StringResource('percent_students_completed', this.rmd_1); this.jmm_1 = new StringResource('total_attendances', this.rmd_1); this.kmm_1 = new StringResource('total_absences', this.rmd_1); this.lmm_1 = new StringResource('total_lates', this.rmd_1); this.mmm_1 = new StringResource('percent_students_attended', this.rmd_1); this.nmm_1 = new StringResource('percent_students_attended_or_late', this.rmd_1); this.omm_1 = new StringResource('total_number_of_classes', this.rmd_1); this.pmm_1 = new StringResource('number_unique_students_attending', this.rmd_1); this.qmm_1 = new StringResource('xapi_day', this.rmd_1); this.rmm_1 = new StringResource('xapi_week', this.rmd_1); this.smm_1 = new StringResource('xapi_month', this.rmd_1); this.tmm_1 = new StringResource('xapi_custom_date', this.rmd_1); this.umm_1 = new StringResource('xapi_content_entry', this.rmd_1); this.vmm_1 = new StringResource('xapi_clear', this.rmd_1); this.wmm_1 = new StringResource('last_week_date_range', this.rmd_1); this.xmm_1 = new StringResource('last_two_week_date_range', this.rmd_1); this.ymm_1 = new StringResource('last_month_date_range', this.rmd_1); this.zmm_1 = new StringResource('last_three_months_date_range', this.rmd_1); this.amn_1 = new StringResource('new_custom_date_range', this.rmd_1); this.bmn_1 = new StringResource('selected_custom_range', this.rmd_1); this.cmn_1 = new StringResource('time_range', this.rmd_1); this.dmn_1 = new StringResource('year', this.rmd_1); this.emn_1 = new StringResource('from', this.rmd_1); this.fmn_1 = new StringResource('done', this.rmd_1); this.gmn_1 = new StringResource('xapi_options_general', this.rmd_1); this.hmn_1 = new StringResource('xapi_options_report_title', this.rmd_1); this.imn_1 = new StringResource('xapi_options_visual_type', this.rmd_1); this.jmn_1 = new StringResource('xapi_options_data_set', this.rmd_1); this.kmn_1 = new StringResource('xapi_options_series', this.rmd_1); this.lmn_1 = new StringResource('xapi_options_axes', this.rmd_1); this.mmn_1 = new StringResource('xapi_options_y_axes', this.rmd_1); this.nmn_1 = new StringResource('xapi_options_x_axes', this.rmd_1); this.omn_1 = new StringResource('xapi_options_subgroup', this.rmd_1); this.pmn_1 = new StringResource('xapi_options_filters', this.rmd_1); this.qmn_1 = new StringResource('xapi_options_who', this.rmd_1); this.rmn_1 = new StringResource('xapi_options_did', this.rmd_1); this.smn_1 = new StringResource('xapi_options_what', this.rmd_1); this.tmn_1 = new StringResource('xapi_options_when', this.rmd_1); this.umn_1 = new StringResource('xapi_options_where', this.rmd_1); this.vmn_1 = new StringResource('time_range_all', this.rmd_1); this.wmn_1 = new StringResource('report_filter_edit_field', this.rmd_1); this.xmn_1 = new StringResource('report_filter_edit_condition', this.rmd_1); this.ymn_1 = new StringResource('report_filter_edit_values', this.rmd_1); this.zmn_1 = new StringResource('report', this.rmd_1); this.amo_1 = new StringResource('create_a_new_report', this.rmd_1); this.bmo_1 = new StringResource('edit_report', this.rmd_1); this.cmo_1 = new StringResource('verb', this.rmd_1); this.dmo_1 = new StringResource('add_a_new_verb', this.rmd_1); this.emo_1 = new StringResource('id_verbentity_urlid', this.rmd_1); this.fmo_1 = new StringResource('edit_filters', this.rmd_1); this.gmo_1 = new StringResource('field_person_gender', this.rmd_1); this.hmo_1 = new StringResource('field_person_age', this.rmd_1); this.imo_1 = new StringResource('field_content_completion', this.rmd_1); this.jmo_1 = new StringResource('field_content_entry', this.rmd_1); this.kmo_1 = new StringResource('field_content_progress', this.rmd_1); this.lmo_1 = new StringResource('field_attendance_percentage', this.rmd_1); this.mmo_1 = new StringResource('condition_is', this.rmd_1); this.nmo_1 = new StringResource('condition_is_not', this.rmd_1); this.omo_1 = new StringResource('condition_greater_than', this.rmd_1); this.pmo_1 = new StringResource('condition_less_than', this.rmd_1); this.qmo_1 = new StringResource('condition_in_list', this.rmd_1); this.rmo_1 = new StringResource('condition_not_in_list', this.rmd_1); this.smo_1 = new StringResource('condition_between', this.rmd_1); this.tmo_1 = new StringResource('add_person_filter', this.rmd_1); this.umo_1 = new StringResource('add_verb_filter', this.rmd_1); this.vmo_1 = new StringResource('add_content_filter', this.rmd_1); this.wmo_1 = new StringResource('dashboard', this.rmd_1); this.xmo_1 = new StringResource('activity_import_link', this.rmd_1); this.ymo_1 = new StringResource('xapi_hours', this.rmd_1); this.zmo_1 = new StringResource('xapi_minutes', this.rmd_1); this.amp_1 = new StringResource('xapi_seconds', this.rmd_1); this.bmp_1 = new StringResource('xapi_verb_header', this.rmd_1); this.cmp_1 = new StringResource('xapi_result_header', this.rmd_1); this.dmp_1 = new StringResource('xapi_score', this.rmd_1); this.emp_1 = new StringResource('content_score', this.rmd_1); this.fmp_1 = new StringResource('completion_key', this.rmd_1); this.gmp_1 = new StringResource('import_title_not_entered', this.rmd_1); this.hmp_1 = new StringResource('no_account', this.rmd_1); this.imp_1 = new StringResource('enter_url', this.rmd_1); this.jmp_1 = new StringResource('invalid_link', this.rmd_1); this.kmp_1 = new StringResource('invalid_file', this.rmd_1); this.lmp_1 = new StringResource('import_link_content_not_supported', this.rmd_1); this.mmp_1 = new StringResource('unsupported_file_type', this.rmd_1); this.nmp_1 = new StringResource('import_link_big_size', this.rmd_1); this.omp_1 = new StringResource('import_link_error', this.rmd_1); this.pmp_1 = new StringResource('supported_link', this.rmd_1); this.qmp_1 = new StringResource('offline_sharing_enable_bluetooth_prompt', this.rmd_1); this.rmp_1 = new StringResource('offline_sharing_enable_wifi_promot', this.rmd_1); this.smp_1 = new StringResource('enable', this.rmd_1); this.tmp_1 = new StringResource('repo_loading_status_loading_cloud', this.rmd_1); this.ump_1 = new StringResource('repo_loading_status_loading_mirror', this.rmd_1); this.vmp_1 = new StringResource('repo_loading_status_failed_noconnection', this.rmd_1); this.wmp_1 = new StringResource('repo_loading_status_failed_connection_error', this.rmd_1); this.xmp_1 = new StringResource('licence_type_cc_by', this.rmd_1); this.ymp_1 = new StringResource('licence_type_cc_by_sa', this.rmd_1); this.zmp_1 = new StringResource('licence_type_cc_by_sa_nc', this.rmd_1); this.amq_1 = new StringResource('licence_type_cc_by_nc', this.rmd_1); this.bmq_1 = new StringResource('licence_type_cc_by_nc_sa', this.rmd_1); this.cmq_1 = new StringResource('licence_type_public_domain', this.rmd_1); this.dmq_1 = new StringResource('licence_type_all_rights', this.rmd_1); this.emq_1 = new StringResource('license_type_cc_0', this.rmd_1); this.fmq_1 = new StringResource('syncing', this.rmd_1); this.gmq_1 = new StringResource('feed', this.rmd_1); this.hmq_1 = new StringResource('people', this.rmd_1); this.imq_1 = new StringResource('record_attendance', this.rmd_1); this.jmq_1 = new StringResource('today', this.rmd_1); this.kmq_1 = new StringResource('sort_by', this.rmd_1); this.lmq_1 = new StringResource('log', this.rmd_1); this.mmq_1 = new StringResource('schedule', this.rmd_1); this.nmq_1 = new StringResource('add_a_schedule', this.rmd_1); this.omq_1 = new StringResource('edit_schedule', this.rmd_1); this.pmq_1 = new StringResource('first_key', this.rmd_1); this.qmq_1 = new StringResource('last_key', this.rmd_1); this.rmq_1 = new StringResource('last_week', this.rmd_1); this.smq_1 = new StringResource('mark_all', this.rmd_1); this.tmq_1 = new StringResource('mark_all_present', this.rmd_1); this.umq_1 = new StringResource('mark_all_absent', this.rmd_1); this.vmq_1 = new StringResource('present', this.rmd_1); this.wmq_1 = new StringResource('absent', this.rmd_1); this.xmq_1 = new StringResource('attendance_report', this.rmd_1); this.ymq_1 = new StringResource('father', this.rmd_1); this.zmq_1 = new StringResource('mother', this.rmd_1); this.amr_1 = new StringResource('birthday', this.rmd_1); this.bmr_1 = new StringResource('first_names', this.rmd_1); this.cmr_1 = new StringResource('basic_details', this.rmd_1); this.dmr_1 = new StringResource('address', this.rmd_1); this.emr_1 = new StringResource('add_person_to_class', this.rmd_1); this.fmr_1 = new StringResource('edit', this.rmd_1); this.gmr_1 = new StringResource('clazz', this.rmd_1); this.hmr_1 = new StringResource('add_a_new_class', this.rmd_1); this.imr_1 = new StringResource('edit_clazz', this.rmd_1); this.jmr_1 = new StringResource('add_a_class', this.rmd_1); this.kmr_1 = new StringResource('join_existing_class', this.rmd_1); this.lmr_1 = new StringResource('student_image', this.rmd_1); this.mmr_1 = new StringResource('question_key', this.rmd_1); this.nmr_1 = new StringResource('add_question', this.rmd_1); this.omr_1 = new StringResource('edit_question', this.rmd_1); this.pmr_1 = new StringResource('questions', this.rmd_1); this.qmr_1 = new StringResource('add_person', this.rmd_1); this.rmr_1 = new StringResource('add_class', this.rmd_1); this.smr_1 = new StringResource('class_name', this.rmd_1); this.tmr_1 = new StringResource('class_description', this.rmd_1); this.umr_1 = new StringResource('to_key', this.rmd_1); this.vmr_1 = new StringResource('holiday', this.rmd_1); this.wmr_1 = new StringResource('add_a_holiday', this.rmd_1); this.xmr_1 = new StringResource('edit_holiday', this.rmd_1); this.ymr_1 = new StringResource('holidays', this.rmd_1); this.zmr_1 = new StringResource('holiday_calendar', this.rmd_1); this.ams_1 = new StringResource('add_a_new_holiday_calendar', this.rmd_1); this.bms_1 = new StringResource('edit_holiday_calendar', this.rmd_1); this.cms_1 = new StringResource('features_enabled', this.rmd_1); this.dms_1 = new StringResource('weekly', this.rmd_1); this.ems_1 = new StringResource('once', this.rmd_1); this.fms_1 = new StringResource('daily', this.rmd_1); this.gms_1 = new StringResource('monthly', this.rmd_1); this.hms_1 = new StringResource('yearly', this.rmd_1); this.ims_1 = new StringResource('sunday', this.rmd_1); this.jms_1 = new StringResource('monday', this.rmd_1); this.kms_1 = new StringResource('tuesday', this.rmd_1); this.lms_1 = new StringResource('wednesday', this.rmd_1); this.mms_1 = new StringResource('thursday', this.rmd_1); this.nms_1 = new StringResource('friday', this.rmd_1); this.oms_1 = new StringResource('saturday', this.rmd_1); this.pms_1 = new StringResource('day', this.rmd_1); this.qms_1 = new StringResource('toC', this.rmd_1); this.rms_1 = new StringResource('last_month', this.rmd_1); this.sms_1 = new StringResource('activity_change', this.rmd_1); this.tms_1 = new StringResource('change_implemented_if_any', this.rmd_1); this.ums_1 = new StringResource('duration', this.rmd_1); this.vms_1 = new StringResource('how_did_it_go', this.rmd_1); this.wms_1 = new StringResource('notes', this.rmd_1); this.xms_1 = new StringResource('activity', this.rmd_1); this.yms_1 = new StringResource('sort_by_name', this.rmd_1); this.zms_1 = new StringResource('sort_by_name_asc', this.rmd_1); this.amt_1 = new StringResource('sort_by_name_desc', this.rmd_1); this.bmt_1 = new StringResource('date_enroll', this.rmd_1); this.cmt_1 = new StringResource('date_left', this.rmd_1); this.dmt_1 = new StringResource('enroled', this.rmd_1); this.emt_1 = new StringResource('class_enrolment', this.rmd_1); this.fmt_1 = new StringResource('graduated', this.rmd_1); this.gmt_1 = new StringResource('dropped_out', this.rmd_1); this.hmt_1 = new StringResource('moved', this.rmd_1); this.imt_1 = new StringResource('new_leaving_reason', this.rmd_1); this.jmt_1 = new StringResource('edit_leaving_reason', this.rmd_1); this.kmt_1 = new StringResource('edit_enrolment', this.rmd_1); this.lmt_1 = new StringResource('new_enrolment', this.rmd_1); this.mmt_1 = new StringResource('select_leaving_reason', this.rmd_1); this.nmt_1 = new StringResource('add_leaving_reason', this.rmd_1); this.omt_1 = new StringResource('leaving_reason', this.rmd_1); this.pmt_1 = new StringResource('leaving_reasons', this.rmd_1); this.qmt_1 = new StringResource('leaving_reason_manage', this.rmd_1); this.rmt_1 = new StringResource('view_profile', this.rmd_1); this.smt_1 = new StringResource('class_enrolment_outcome', this.rmd_1); this.tmt_1 = new StringResource('class_enrolment_leaving', this.rmd_1); this.umt_1 = new StringResource('in_progress', this.rmd_1); this.vmt_1 = new StringResource('outcome', this.rmd_1); this.wmt_1 = new StringResource('person_enrolment_in_class', this.rmd_1); this.xmt_1 = new StringResource('enrolment', this.rmd_1); this.ymt_1 = new StringResource('error_start_date_before_clazz_date', this.rmd_1); this.zmt_1 = new StringResource('error_start_date_before_previous_enrolment_date', this.rmd_1); this.amu_1 = new StringResource('time_present', this.rmd_1); this.bmu_1 = new StringResource('ascending', this.rmd_1); this.cmu_1 = new StringResource('descending', this.rmd_1); this.dmu_1 = new StringResource('sort_by_text', this.rmd_1); this.emu_1 = new StringResource('attendance_high_to_low', this.rmd_1); this.fmu_1 = new StringResource('attendance_low_to_high', this.rmd_1); this.gmu_1 = new StringResource('teacher', this.rmd_1); this.hmu_1 = new StringResource('add_a_teacher', this.rmd_1); this.imu_1 = new StringResource('partial', this.rmd_1); this.jmu_1 = new StringResource('teachers_literal', this.rmd_1); this.kmu_1 = new StringResource('participant', this.rmd_1); this.lmu_1 = new StringResource('primary_user', this.rmd_1); this.mmu_1 = new StringResource('up_key', this.rmd_1); this.nmu_1 = new StringResource('down_key', this.rmd_1); this.omu_1 = new StringResource('activity_went_good', this.rmd_1); this.pmu_1 = new StringResource('activity_went_bad', this.rmd_1); this.qmu_1 = new StringResource('activity_enter_any_notes', this.rmd_1); this.rmu_1 = new StringResource('uom_frequency_title', this.rmd_1); this.smu_1 = new StringResource('uom_duration_title', this.rmd_1); this.tmu_1 = new StringResource('uom_boolean_title', this.rmd_1); this.umu_1 = new StringResource('uom_default_title', this.rmd_1); this.vmu_1 = new StringResource('add_activity', this.rmd_1); this.wmu_1 = new StringResource('add_activity_literal', this.rmd_1); this.xmu_1 = new StringResource('select_one', this.rmd_1); this.ymu_1 = new StringResource('measurement_type', this.rmd_1); this.zmu_1 = new StringResource('frequency', this.rmd_1); this.amv_1 = new StringResource('yes_no', this.rmd_1); this.bmv_1 = new StringResource('time_period', this.rmd_1); this.cmv_1 = new StringResource('location', this.rmd_1); this.dmv_1 = new StringResource('last_three_months', this.rmd_1); this.emv_1 = new StringResource('export', this.rmd_1); this.fmv_1 = new StringResource('date', this.rmd_1); this.gmv_1 = new StringResource('average', this.rmd_1); this.hmv_1 = new StringResource('age', this.rmd_1); this.imv_1 = new StringResource('days', this.rmd_1); this.jmv_1 = new StringResource('apply', this.rmd_1); this.kmv_1 = new StringResource('file_selected', this.rmd_1); this.lmv_1 = new StringResource('all', this.rmd_1); this.mmv_1 = new StringResource('holiday_calendars', this.rmd_1); this.nmv_1 = new StringResource('holiday_calendars_desc', this.rmd_1); this.omv_1 = new StringResource('sel_question_set', this.rmd_1); this.pmv_1 = new StringResource('sel_question_set_desc', this.rmd_1); this.qmv_1 = new StringResource('users', this.rmd_1); this.rmv_1 = new StringResource('nomination', this.rmd_1); this.smv_1 = new StringResource('active', this.rmd_1); this.tmv_1 = new StringResource('class_id', this.rmd_1); this.umv_1 = new StringResource('gender_literal', this.rmd_1); this.vmv_1 = new StringResource('country', this.rmd_1); this.wmv_1 = new StringResource('connectivity', this.rmd_1); this.xmv_1 = new StringResource('home_internet_access', this.rmd_1); this.ymv_1 = new StringResource('mobile_internet_access', this.rmd_1); this.zmv_1 = new StringResource('connectivity_limited', this.rmd_1); this.amw_1 = new StringResource('connectivity_full', this.rmd_1); this.bmw_1 = new StringResource('prefer_not_to_say', this.rmd_1); this.cmw_1 = new StringResource('sel_question_set_to_use', this.rmd_1); this.dmw_1 = new StringResource('search', this.rmd_1); this.emw_1 = new StringResource('attendance_percentage', this.rmd_1); this.fmw_1 = new StringResource('filter', this.rmd_1); this.gmw_1 = new StringResource('over_key', this.rmd_1); this.hmw_1 = new StringResource('sync', this.rmd_1); this.imw_1 = new StringResource('not_recorded', this.rmd_1); this.jmw_1 = new StringResource('groups', this.rmd_1); this.kmw_1 = new StringResource('group_setting_desc', this.rmd_1); this.lmw_1 = new StringResource('roles', this.rmd_1); this.mmw_1 = new StringResource('role', this.rmd_1); this.nmw_1 = new StringResource('add_a_new_role', this.rmd_1); this.omw_1 = new StringResource('edit_role', this.rmd_1); this.pmw_1 = new StringResource('rols_assignment', this.rmd_1); this.qmw_1 = new StringResource('role_assignment_setting_desc', this.rmd_1); this.rmw_1 = new StringResource('locations', this.rmd_1); this.smw_1 = new StringResource('locations_setting_desc', this.rmd_1); this.tmw_1 = new StringResource('audit_log', this.rmd_1); this.umw_1 = new StringResource('audit_log_setting_desc', this.rmd_1); this.vmw_1 = new StringResource('entry_key', this.rmd_1); this.wmw_1 = new StringResource('permission_key', this.rmd_1); this.xmw_1 = new StringResource('permissions', this.rmd_1); this.ymw_1 = new StringResource('role_name', this.rmd_1); this.zmw_1 = new StringResource('members_key', this.rmd_1); this.amx_1 = new StringResource('member_key', this.rmd_1); this.bmx_1 = new StringResource('role_assignment', this.rmd_1); this.cmx_1 = new StringResource('scope_by', this.rmd_1); this.dmx_1 = new StringResource('assign_to', this.rmd_1); this.emx_1 = new StringResource('person', this.rmd_1); this.fmx_1 = new StringResource('add_a_new_person', this.rmd_1); this.gmx_1 = new StringResource('edit_person', this.rmd_1); this.hmx_1 = new StringResource('permission_person_select', this.rmd_1); this.imx_1 = new StringResource('permission_person_insert', this.rmd_1); this.jmx_1 = new StringResource('permission_person_update', this.rmd_1); this.kmx_1 = new StringResource('permission_person_picture_select', this.rmd_1); this.lmx_1 = new StringResource('permission_person_picture_insert', this.rmd_1); this.mmx_1 = new StringResource('permission_person_picture_update', this.rmd_1); this.nmx_1 = new StringResource('permission_clazz_select', this.rmd_1); this.omx_1 = new StringResource('permission_clazz_insert', this.rmd_1); this.pmx_1 = new StringResource('permission_clazz_update', this.rmd_1); this.qmx_1 = new StringResource('permission_clazz_add_teacher', this.rmd_1); this.rmx_1 = new StringResource('permission_clazz_add_student', this.rmd_1); this.smx_1 = new StringResource('permission_attendance_select', this.rmd_1); this.tmx_1 = new StringResource('permission_attendance_insert', this.rmd_1); this.umx_1 = new StringResource('permission_attendance_update', this.rmd_1); this.vmx_1 = new StringResource('permission_activity_select', this.rmd_1); this.wmx_1 = new StringResource('permission_activity_insert', this.rmd_1); this.xmx_1 = new StringResource('permission_activity_update', this.rmd_1); this.ymx_1 = new StringResource('permission_sel_question_select', this.rmd_1); this.zmx_1 = new StringResource('permission_sel_question_insert', this.rmd_1); this.amy_1 = new StringResource('permission_sel_question_update', this.rmd_1); this.bmy_1 = new StringResource('permission_sel_select', this.rmd_1); this.cmy_1 = new StringResource('permission_sel_update', this.rmd_1); this.dmy_1 = new StringResource('custom_fields', this.rmd_1); this.emy_1 = new StringResource('custom_field', this.rmd_1); this.fmy_1 = new StringResource('custom_fields_desc', this.rmd_1); this.gmy_1 = new StringResource('field_type', this.rmd_1); this.hmy_1 = new StringResource('text', this.rmd_1); this.imy_1 = new StringResource('dropdown', this.rmd_1); this.jmy_1 = new StringResource('options', this.rmd_1); this.kmy_1 = new StringResource('option_value', this.rmd_1); this.lmy_1 = new StringResource('errors', this.rmd_1); this.mmy_1 = new StringResource('shake_feedback', this.rmd_1); this.nmy_1 = new StringResource('feedback_hint', this.rmd_1); this.omy_1 = new StringResource('send_feedback', this.rmd_1); this.pmy_1 = new StringResource('feedback_thanks', this.rmd_1); this.qmy_1 = new StringResource('start_date', this.rmd_1); this.rmy_1 = new StringResource('end_date', this.rmd_1); this.smy_1 = new StringResource('last_active', this.rmd_1); this.tmy_1 = new StringResource('save', this.rmd_1); this.umy_1 = new StringResource('change_password', this.rmd_1); this.vmy_1 = new StringResource('current_password', this.rmd_1); this.wmy_1 = new StringResource('password_unchanged', this.rmd_1); this.xmy_1 = new StringResource('timezone', this.rmd_1); this.ymy_1 = new StringResource('users_settings_desc', this.rmd_1); this.zmy_1 = new StringResource('add', this.rmd_1); this.amz_1 = new StringResource('refresh', this.rmd_1); this.bmz_1 = new StringResource('school', this.rmd_1); this.cmz_1 = new StringResource('add_a_new_school', this.rmd_1); this.dmz_1 = new StringResource('edit_school', this.rmd_1); this.emz_1 = new StringResource('join_existing_school', this.rmd_1); this.fmz_1 = new StringResource('schools', this.rmd_1); this.gmz_1 = new StringResource('assignments', this.rmd_1); this.hmz_1 = new StringResource('assignment', this.rmd_1); this.imz_1 = new StringResource('none_key', this.rmd_1); this.jmz_1 = new StringResource('instructions_for_students', this.rmd_1); this.kmz_1 = new StringResource('not_started', this.rmd_1); this.lmz_1 = new StringResource('percentage_complete', this.rmd_1); this.mmz_1 = new StringResource('percentage_score', this.rmd_1); this.nmz_1 = new StringResource('started_date', this.rmd_1); this.omz_1 = new StringResource('started', this.rmd_1); this.pmz_1 = new StringResource('mixed', this.rmd_1); this.qmz_1 = new StringResource('store_title', this.rmd_1); this.rmz_1 = new StringResource('store_description_short', this.rmd_1); this.smz_1 = new StringResource('store_description_full', this.rmd_1); this.tmz_1 = new StringResource('due_date', this.rmd_1); this.umz_1 = new StringResource('content', this.rmd_1); this.vmz_1 = new StringResource('add_new_content', this.rmd_1); this.wmz_1 = new StringResource('add_content', this.rmd_1); this.xmz_1 = new StringResource('student_progress', this.rmd_1); this.ymz_1 = new StringResource('status', this.rmd_1); this.zmz_1 = new StringResource('use_device_language', this.rmd_1); this.an0_1 = new StringResource('select_item', this.rmd_1); this.bn0_1 = new StringResource('from_to_date', this.rmd_1); this.cn0_1 = new StringResource('num_items_with_name', this.rmd_1); this.dn0_1 = new StringResource('num_items_with_name_with_comma', this.rmd_1); this.en0_1 = new StringResource('add_to', this.rmd_1); this.fn0_1 = new StringResource('remove_from', this.rmd_1); this.gn0_1 = new StringResource('change_photo', this.rmd_1); this.hn0_1 = new StringResource('remove_picture', this.rmd_1); this.in0_1 = new StringResource('take_new_photo_from_camera', this.rmd_1); this.jn0_1 = new StringResource('select_picture_from_gallery', this.rmd_1); this.kn0_1 = new StringResource('select_file', this.rmd_1); this.ln0_1 = new StringResource('permission_clazz_assignment_view', this.rmd_1); this.mn0_1 = new StringResource('permission_clazz_asignment_edit', this.rmd_1); this.nn0_1 = new StringResource('overview', this.rmd_1); this.on0_1 = new StringResource('add_new', this.rmd_1); this.pn0_1 = new StringResource('staff', this.rmd_1); this.qn0_1 = new StringResource('x_teachers_y_students', this.rmd_1); this.rn0_1 = new StringResource('call', this.rmd_1); this.sn0_1 = new StringResource('organization_id', this.rmd_1); this.tn0_1 = new StringResource('student', this.rmd_1); this.un0_1 = new StringResource('contact_details', this.rmd_1); this.vn0_1 = new StringResource('untitled', this.rmd_1); this.wn0_1 = new StringResource('present_late_absent', this.rmd_1); this.xn0_1 = new StringResource('marked_cap', this.rmd_1); this.yn0_1 = new StringResource('submitted_cap', this.rmd_1); this.zn0_1 = new StringResource('not_submitted_cap', this.rmd_1); this.an1_1 = new StringResource('submitliteral', this.rmd_1); this.bn1_1 = new StringResource('x_percent_attended', this.rmd_1); this.cn1_1 = new StringResource('answer', this.rmd_1); this.dn1_1 = new StringResource('of_content', this.rmd_1); this.en1_1 = new StringResource('nothing_here', this.rmd_1); this.fn1_1 = new StringResource('not_answered', this.rmd_1); this.gn1_1 = new StringResource('clazz_work', this.rmd_1); this.hn1_1 = new StringResource('add_a_new_clazzwork', this.rmd_1); this.in1_1 = new StringResource('edit_clazzwork', this.rmd_1); this.jn1_1 = new StringResource('clazz_assignment', this.rmd_1); this.kn1_1 = new StringResource('new_assignment', this.rmd_1); this.ln1_1 = new StringResource('edit_assignment', this.rmd_1); this.mn1_1 = new StringResource('total_score', this.rmd_1); this.nn1_1 = new StringResource('late_submission', this.rmd_1); this.on1_1 = new StringResource('mark_penalty', this.rmd_1); this.pn1_1 = new StringResource('late_submission_penalty', this.rmd_1); this.qn1_1 = new StringResource('end_of_grace_period', this.rmd_1); this.rn1_1 = new StringResource('allow_class_comments', this.rmd_1); this.sn1_1 = new StringResource('after_deadline_date_error', this.rmd_1); this.tn1_1 = new StringResource('points', this.rmd_1); this.un1_1 = new StringResource('minimum_score', this.rmd_1); this.vn1_1 = new StringResource('automatic', this.rmd_1); this.wn1_1 = new StringResource('student_marks_content', this.rmd_1); this.xn1_1 = new StringResource('completion_criteria', this.rmd_1); this.yn1_1 = new StringResource('mark_complete', this.rmd_1); this.zn1_1 = new StringResource('late_penalty', this.rmd_1); this.an2_1 = new StringResource('marked_key', this.rmd_1); this.bn2_1 = new StringResource('submitted_key', this.rmd_1); this.cn2_1 = new StringResource('not_submitted', this.rmd_1); this.dn2_1 = new StringResource('visible_from_date', this.rmd_1); this.en2_1 = new StringResource('submission_type', this.rmd_1); this.fn2_1 = new StringResource('no_submission_required', this.rmd_1); this.gn2_1 = new StringResource('short_text', this.rmd_1); this.hn2_1 = new StringResource('attachment', this.rmd_1); this.in2_1 = new StringResource('quiz', this.rmd_1); this.jn2_1 = new StringResource('allow_private_comments_from_students', this.rmd_1); this.kn2_1 = new StringResource('deadline', this.rmd_1); this.ln2_1 = new StringResource('class_timezone', this.rmd_1); this.mn2_1 = new StringResource('maximum_score', this.rmd_1); this.nn2_1 = new StringResource('quiz_questions', this.rmd_1); this.on2_1 = new StringResource('time', this.rmd_1); this.pn2_1 = new StringResource('submission', this.rmd_1); this.qn2_1 = new StringResource('public_comments', this.rmd_1); this.rn2_1 = new StringResource('private_comments', this.rmd_1); this.sn2_1 = new StringResource('submit_your_answer', this.rmd_1); this.tn2_1 = new StringResource('add_class_comment', this.rmd_1); this.un2_1 = new StringResource('add_private_comment', this.rmd_1); this.vn2_1 = new StringResource('class_comments', this.rmd_1); this.wn2_1 = new StringResource('submit', this.rmd_1); this.xn2_1 = new StringResource('three_num_items_with_name_with_comma', this.rmd_1); this.yn2_1 = new StringResource('marking', this.rmd_1); this.zn2_1 = new StringResource('return_and_mark_next', this.rmd_1); this.an3_1 = new StringResource('return_only', this.rmd_1); this.bn3_1 = new StringResource('workspace', this.rmd_1); this.cn3_1 = new StringResource('organisation', this.rmd_1); this.dn3_1 = new StringResource('use_public_library_site', this.rmd_1); this.en3_1 = new StringResource('create_site', this.rmd_1); this.fn3_1 = new StringResource('connect_as_guest', this.rmd_1); this.gn3_1 = new StringResource('create_account', this.rmd_1); this.hn3_1 = new StringResource('my', this.rmd_1); this.in3_1 = new StringResource('add_another', this.rmd_1); this.jn3_1 = new StringResource('logged_in_as', this.rmd_1); this.kn3_1 = new StringResource('person_exists', this.rmd_1); this.ln3_1 = new StringResource('username_too_short', this.rmd_1); this.mn3_1 = new StringResource('username_too_long', this.rmd_1); this.nn3_1 = new StringResource('username_starts_with_number', this.rmd_1); this.on3_1 = new StringResource('invalid_username', this.rmd_1); this.pn3_1 = new StringResource('incorrect_current_password', this.rmd_1); this.qn3_1 = new StringResource('sel_question_type_free_text', this.rmd_1); this.rn3_1 = new StringResource('sel_question_type_multiple_choice', this.rmd_1); this.sn3_1 = new StringResource('question_text', this.rmd_1); this.tn3_1 = new StringResource('question_type', this.rmd_1); this.un3_1 = new StringResource('add_option', this.rmd_1); this.vn3_1 = new StringResource('roles_and_permissions', this.rmd_1); this.wn3_1 = new StringResource('add_role_permission', this.rmd_1); this.xn3_1 = new StringResource('scope', this.rmd_1); this.yn3_1 = new StringResource('scope_description', this.rmd_1); this.zn3_1 = new StringResource('role_description', this.rmd_1); this.an4_1 = new StringResource('assign_role', this.rmd_1); this.bn4_1 = new StringResource('more_information', this.rmd_1); this.cn4_1 = new StringResource('pending_requests', this.rmd_1); this.dn4_1 = new StringResource('pending', this.rmd_1); this.en4_1 = new StringResource('please_wait_for_approval', this.rmd_1); this.fn4_1 = new StringResource('reject', this.rmd_1); this.gn4_1 = new StringResource('ask_your_teacher_for_code', this.rmd_1); this.hn4_1 = new StringResource('copied_to_clipboard', this.rmd_1); this.in4_1 = new StringResource('invite_link_desc', this.rmd_1); this.jn4_1 = new StringResource('copy_link', this.rmd_1); this.kn4_1 = new StringResource('copy_code', this.rmd_1); this.ln4_1 = new StringResource('share_link', this.rmd_1); this.mn4_1 = new StringResource('invite_with_link', this.rmd_1); this.nn4_1 = new StringResource('role_not_selected_error', this.rmd_1); this.on4_1 = new StringResource('permission_person_delegate', this.rmd_1); this.pn4_1 = new StringResource('this_field_is_mandatory', this.rmd_1); this.qn4_1 = new StringResource('permission_role_select', this.rmd_1); this.rn4_1 = new StringResource('permission_role_insert', this.rmd_1); this.sn4_1 = new StringResource('permission_school_select', this.rmd_1); this.tn4_1 = new StringResource('permission_school_insert', this.rmd_1); this.un4_1 = new StringResource('permission_school_update', this.rmd_1); this.vn4_1 = new StringResource('add_student_to_school', this.rmd_1); this.wn4_1 = new StringResource('add_staff_to_school', this.rmd_1); this.xn4_1 = new StringResource('permission_password_reset', this.rmd_1); this.yn4_1 = new StringResource('school_code', this.rmd_1); this.zn4_1 = new StringResource('invite_code', this.rmd_1); this.an5_1 = new StringResource('entity_code', this.rmd_1); this.bn5_1 = new StringResource('join_code_instructions', this.rmd_1); this.cn5_1 = new StringResource('record_for_student', this.rmd_1); this.dn5_1 = new StringResource('moved_x_entries', this.rmd_1); this.en5_1 = new StringResource('end_is_before_start_error', this.rmd_1); this.fn5_1 = new StringResource('record_attendance_for_most_recent_occurrence', this.rmd_1); this.gn5_1 = new StringResource('add_a_new_occurrence', this.rmd_1); this.hn5_1 = new StringResource('active_classes', this.rmd_1); this.in5_1 = new StringResource('terms_and_policies', this.rmd_1); this.jn5_1 = new StringResource('manage_site_settings', this.rmd_1); this.kn5_1 = new StringResource('guest_login_enabled', this.rmd_1); this.ln5_1 = new StringResource('registration_allowed', this.rmd_1); this.mn5_1 = new StringResource('yes', this.rmd_1); this.nn5_1 = new StringResource('no', this.rmd_1); this.on5_1 = new StringResource('edit_site', this.rmd_1); this.pn5_1 = new StringResource('site', this.rmd_1); this.qn5_1 = new StringResource('site_link', this.rmd_1); this.rn5_1 = new StringResource('please_enter_the_linK', this.rmd_1); this.sn5_1 = new StringResource('or', this.rmd_1); this.tn5_1 = new StringResource('connect', this.rmd_1); this.un5_1 = new StringResource('terms_and_policies_text', this.rmd_1); this.vn5_1 = new StringResource('edit_terms_and_policies', this.rmd_1); this.wn5_1 = new StringResource('strings_not_allowed', this.rmd_1); this.xn5_1 = new StringResource('undo', this.rmd_1); this.yn5_1 = new StringResource('video', this.rmd_1); this.zn5_1 = new StringResource('content_editor_create_new_category', this.rmd_1); this.an6_1 = new StringResource('content_pieces_completed', this.rmd_1); this.bn6_1 = new StringResource('content_usage_duration', this.rmd_1); this.cn6_1 = new StringResource('manage_download', this.rmd_1); this.dn6_1 = new StringResource('powered_by', this.rmd_1); this.en6_1 = new StringResource('invalid_email', this.rmd_1); this.fn6_1 = new StringResource('select_account', this.rmd_1); this.gn6_1 = new StringResource('opening_link', this.rmd_1); this.hn6_1 = new StringResource('select_account_to_continue', this.rmd_1); this.in6_1 = new StringResource('you_are_already_in_class', this.rmd_1); this.jn6_1 = new StringResource('you_are_already_in_school', this.rmd_1); this.kn6_1 = new StringResource('join_class', this.rmd_1); this.ln6_1 = new StringResource('join_school', this.rmd_1); this.mn6_1 = new StringResource('what_is_your_date_of_birth', this.rmd_1); this.nn6_1 = new StringResource('parents_email_address', this.rmd_1); this.on6_1 = new StringResource('we_sent_a_message_to_your_parent', this.rmd_1); this.pn6_1 = new StringResource('toggle_visibility', this.rmd_1); this.qn6_1 = new StringResource('parental_consent', this.rmd_1); this.rn6_1 = new StringResource('parent_child_register_message_subject', this.rmd_1); this.sn6_1 = new StringResource('parent_child_register_message', this.rmd_1); this.tn6_1 = new StringResource('parent_consent_explanation', this.rmd_1); this.un6_1 = new StringResource('relationship', this.rmd_1); this.vn6_1 = new StringResource('i_consent', this.rmd_1); this.wn6_1 = new StringResource('i_do_not_consent', this.rmd_1); this.xn6_1 = new StringResource('revoke_consent', this.rmd_1); this.yn6_1 = new StringResource('restore_consent', this.rmd_1); this.zn6_1 = new StringResource('status_consent_granted', this.rmd_1); this.an7_1 = new StringResource('status_consent_denied', this.rmd_1); this.bn7_1 = new StringResource('other_legal_guardian', this.rmd_1); this.cn7_1 = new StringResource('manage_parental_consent', this.rmd_1); this.dn7_1 = new StringResource('view_class_content', this.rmd_1); this.en7_1 = new StringResource('edit_class_content', this.rmd_1); this.fn7_1 = new StringResource('view_class_learning_records', this.rmd_1); this.gn7_1 = new StringResource('view_contact_details_of_members', this.rmd_1); this.hn7_1 = new StringResource('edit_contact_details_of_members', this.rmd_1); this.in7_1 = new StringResource('view_socioeconomic_details_of_members', this.rmd_1); this.jn7_1 = new StringResource('edit_socioeconomic_details_of_members', this.rmd_1); this.kn7_1 = new StringResource('add_person_or_group', this.rmd_1); this.ln7_1 = new StringResource('lets_get_started', this.rmd_1); this.mn7_1 = new StringResource('looks_like_installed_app_from_link', this.rmd_1); this.nn7_1 = new StringResource('continue_using_link_recommended', this.rmd_1); this.on7_1 = new StringResource('continue_using_the_link', this.rmd_1); this.pn7_1 = new StringResource('start_from_scratch', this.rmd_1); this.qn7_1 = new StringResource('ignore_the_link', this.rmd_1); this.rn7_1 = new StringResource('add_permission_for_a_person', this.rmd_1); this.sn7_1 = new StringResource('add_permission_for_a_group', this.rmd_1); this.tn7_1 = new StringResource('add_using_link', this.rmd_1); this.un7_1 = new StringResource('add_using_a_web_link_then', this.rmd_1); this.vn7_1 = new StringResource('add_from_gallery', this.rmd_1); this.wn7_1 = new StringResource('add_video_or_audio_from_the_device_gallery', this.rmd_1); this.xn7_1 = new StringResource('add_file', this.rmd_1); this.yn7_1 = new StringResource('add_folder', this.rmd_1); this.zn7_1 = new StringResource('importing', this.rmd_1); this.an8_1 = new StringResource('downloading_content', this.rmd_1); this.bn8_1 = new StringResource('deleting_content', this.rmd_1); this.cn8_1 = new StringResource('add_folder_description', this.rmd_1); this.dn8_1 = new StringResource('add_educational_content_using_supported_formats_eg_pdf_xapi_h5p', this.rmd_1); this.en8_1 = new StringResource('current_status_consent_granted', this.rmd_1); this.fn8_1 = new StringResource('select_country', this.rmd_1); this.gn8_1 = new StringResource('enter_link', this.rmd_1); this.hn8_1 = new StringResource('add_subject', this.rmd_1); this.in8_1 = new StringResource('share_via', this.rmd_1); this.jn8_1 = new StringResource('share_apk_file', this.rmd_1); this.kn8_1 = new StringResource('recommended_for_advanced_users', this.rmd_1); this.ln8_1 = new StringResource('nearby_share', this.rmd_1); this.mn8_1 = new StringResource('recommended_for_offline_installation', this.rmd_1); this.nn8_1 = new StringResource('app_store_link', this.rmd_1); this.on8_1 = new StringResource('everything_works_offline', this.rmd_1); this.pn8_1 = new StringResource('swipe_to_next', this.rmd_1); this.qn8_1 = new StringResource('content_entries_completed', this.rmd_1); this.rn8_1 = new StringResource('content_usage_time', this.rmd_1); this.sn8_1 = new StringResource('all_permissions', this.rmd_1); this.tn8_1 = new StringResource('folder', this.rmd_1); this.un8_1 = new StringResource('create_a_new_learning_env', this.rmd_1); this.vn8_1 = new StringResource('add_educational_content_to_new_learning_env', this.rmd_1); this.wn8_1 = new StringResource('connect_to_an_existing_learning_environment', this.rmd_1); this.xn8_1 = new StringResource('does_your_class_already_have_learning_env', this.rmd_1); this.yn8_1 = new StringResource('use_the_public_lib_env', this.rmd_1); this.zn8_1 = new StringResource('just_want_to_browse', this.rmd_1); this.an9_1 = new StringResource('revoking_consent_will', this.rmd_1); this.bn9_1 = new StringResource('you_must_comply_with_license', this.rmd_1); this.cn9_1 = new StringResource('you_can_copypaste_a_link', this.rmd_1); this.dn9_1 = new StringResource('see_supported_sites', this.rmd_1); this.en9_1 = new StringResource('class_setup', this.rmd_1); this.fn9_1 = new StringResource('anyone_with_this_can_join_school', this.rmd_1); this.gn9_1 = new StringResource('this_class', this.rmd_1); this.hn9_1 = new StringResource('from_my_classes', this.rmd_1); this.in9_1 = new StringResource('my_content', this.rmd_1); this.jn9_1 = new StringResource('learning_environment', this.rmd_1); this.kn9_1 = new StringResource('grades_class_age', this.rmd_1); this.ln9_1 = new StringResource('add_remove_and_modify_grades', this.rmd_1); this.mn9_1 = new StringResource('subjects', this.rmd_1); this.nn9_1 = new StringResource('add_remove_and_modify_subjects', this.rmd_1); this.on9_1 = new StringResource('create_my_account', this.rmd_1); this.pn9_1 = new StringResource('recommend_it', this.rmd_1); this.qn9_1 = new StringResource('edit_permissions', this.rmd_1); this.rn9_1 = new StringResource('add_from_contacts', this.rmd_1); this.sn9_1 = new StringResource('almost_done', this.rmd_1); this.tn9_1 = new StringResource('your_username', this.rmd_1); this.un9_1 = new StringResource('select_content', this.rmd_1); this.vn9_1 = new StringResource('search_in', this.rmd_1); this.wn9_1 = new StringResource('type', this.rmd_1); this.xn9_1 = new StringResource('please_download_the_app', this.rmd_1); this.yn9_1 = new StringResource('alternatively_you_can_download_the_apk', this.rmd_1); this.zn9_1 = new StringResource('full_i_can_download_as_much_as_i_like', this.rmd_1); this.ana_1 = new StringResource('limited_i_avoid_downloading_too_much', this.rmd_1); this.bna_1 = new StringResource('oops', this.rmd_1); this.cna_1 = new StringResource('sorry_something_went_wrong', this.rmd_1); this.dna_1 = new StringResource('incident_id', this.rmd_1); this.ena_1 = new StringResource('error_code', this.rmd_1); this.fna_1 = new StringResource('take_me_home', this.rmd_1); this.gna_1 = new StringResource('view_clazz', this.rmd_1); this.hna_1 = new StringResource('view_clazzes', this.rmd_1); this.ina_1 = new StringResource('enrol_and_unenrol_students', this.rmd_1); this.jna_1 = new StringResource('enrol_and_unenrol_teachers', this.rmd_1); this.kna_1 = new StringResource('view_assignments', this.rmd_1); this.lna_1 = new StringResource('add_or_edit_assignment', this.rmd_1); this.mna_1 = new StringResource('view_basic_profile_of_members', this.rmd_1); this.nna_1 = new StringResource('edit_basic_profile_of_members', this.rmd_1); this.ona_1 = new StringResource('view_school', this.rmd_1); this.pna_1 = new StringResource('edit_clazzes', this.rmd_1); this.qna_1 = new StringResource('add_new_clazz_to_school', this.rmd_1); this.rna_1 = new StringResource('added_to_class_content', this.rmd_1); this.sna_1 = new StringResource('content_already_added_to_class', this.rmd_1); this.tna_1 = new StringResource('your_account_needs_approved', this.rmd_1); this.una_1 = new StringResource('adult_account_required', this.rmd_1); this.vna_1 = new StringResource('blank_report', this.rmd_1); this.wna_1 = new StringResource('attendance_over_time_by_class', this.rmd_1); this.xna_1 = new StringResource('percentage_of_students_attending_over_time', this.rmd_1); this.yna_1 = new StringResource('content_completion', this.rmd_1); this.zna_1 = new StringResource('number_of_students_completed_time', this.rmd_1); this.anb_1 = new StringResource('content_usage_by_class', this.rmd_1); this.bnb_1 = new StringResource('total_content_usage_duration_class', this.rmd_1); this.cnb_1 = new StringResource('content_usage_over_time', this.rmd_1); this.dnb_1 = new StringResource('total_content_duration_gender', this.rmd_1); this.enb_1 = new StringResource('unique_content_users_over_time', this.rmd_1); this.fnb_1 = new StringResource('number_of_active_users_over_time', this.rmd_1); this.gnb_1 = new StringResource('parent', this.rmd_1); this.hnb_1 = new StringResource('upload', this.rmd_1); this.inb_1 = new StringResource('selected_file_summary', this.rmd_1); this.jnb_1 = new StringResource('drag_and_drop_or_click_to_add_file', this.rmd_1); this.knb_1 = new StringResource('extra_active_tab_warning', this.rmd_1); this.lnb_1 = new StringResource('saved', this.rmd_1); this.mnb_1 = new StringResource('individual', this.rmd_1); this.nnb_1 = new StringResource('group', this.rmd_1); this.onb_1 = new StringResource('dont_show_before', this.rmd_1); this.pnb_1 = new StringResource('group_submission', this.rmd_1); this.qnb_1 = new StringResource('require_file_submission', this.rmd_1); this.rnb_1 = new StringResource('require_text_submission', this.rmd_1); this.snb_1 = new StringResource('maximum', this.rmd_1); this.tnb_1 = new StringResource('size_limit', this.rmd_1); this.unb_1 = new StringResource('size_limit_error', this.rmd_1); this.vnb_1 = new StringResource('limit', this.rmd_1); this.wnb_1 = new StringResource('number_of_files', this.rmd_1); this.xnb_1 = new StringResource('edit_after_submission', this.rmd_1); this.ynb_1 = new StringResource('allowed_till_deadline', this.rmd_1); this.znb_1 = new StringResource('allowed_till_grace', this.rmd_1); this.anc_1 = new StringResource('not_allowed', this.rmd_1); this.bnc_1 = new StringResource('marked_by', this.rmd_1); this.cnc_1 = new StringResource('peers', this.rmd_1); this.dnc_1 = new StringResource('peers_to_review', this.rmd_1); this.enc_1 = new StringResource('file_type', this.rmd_1); this.fnc_1 = new StringResource('file_type_chosen', this.rmd_1); this.gnc_1 = new StringResource('file_type_any', this.rmd_1); this.hnc_1 = new StringResource('file_document', this.rmd_1); this.inc_1 = new StringResource('file_image', this.rmd_1); this.jnc_1 = new StringResource('submit_grade', this.rmd_1); this.knc_1 = new StringResource('submit_grade_and_mark_next', this.rmd_1); this.lnc_1 = new StringResource('graded', this.rmd_1); this.mnc_1 = new StringResource('score_greater_than_zero', this.rmd_1); this.nnc_1 = new StringResource('words', this.rmd_1); this.onc_1 = new StringResource('characters', this.rmd_1); this.pnc_1 = new StringResource('class_timezone_set', this.rmd_1); this.qnc_1 = new StringResource('maximum_points', this.rmd_1); this.rnc_1 = new StringResource('penalty_label', this.rmd_1); this.snc_1 = new StringResource('submissions', this.rmd_1); this.tnc_1 = new StringResource('add_text', this.rmd_1); this.unc_1 = new StringResource('course_blocks', this.rmd_1); this.vnc_1 = new StringResource('add_block', this.rmd_1); this.wnc_1 = new StringResource('edit_block', this.rmd_1); this.xnc_1 = new StringResource('module', this.rmd_1); this.ync_1 = new StringResource('course_module', this.rmd_1); this.znc_1 = new StringResource('formatted_text_to_show_to_course_participants', this.rmd_1); this.and_1 = new StringResource('add_course_block_content_desc', this.rmd_1); this.bnd_1 = new StringResource('add_assignment_block_content_desc', this.rmd_1); this.cnd_1 = new StringResource('discussion_board', this.rmd_1); this.dnd_1 = new StringResource('add_discussion_board_desc', this.rmd_1); this.end_1 = new StringResource('new_module', this.rmd_1); this.fnd_1 = new StringResource('edit_module', this.rmd_1); this.gnd_1 = new StringResource('indent', this.rmd_1); this.hnd_1 = new StringResource('unindent', this.rmd_1); this.ind_1 = new StringResource('institution', this.rmd_1); this.jnd_1 = new StringResource('student_enrolment_policy', this.rmd_1); this.knd_1 = new StringResource('teacher_enrolment_policy', this.rmd_1); this.lnd_1 = new StringResource('open_enrolment', this.rmd_1); this.mnd_1 = new StringResource('enrolment_requests_must_be_approved', this.rmd_1); this.nnd_1 = new StringResource('accept_enrolment_requests_automatically', this.rmd_1); this.ond_1 = new StringResource('visibility', this.rmd_1); this.pnd_1 = new StringResource('hidden_enrolment_via_links_code_or_invitation', this.rmd_1); this.qnd_1 = new StringResource('visible_for_all', this.rmd_1); this.rnd_1 = new StringResource('terminology', this.rmd_1); this.snd_1 = new StringResource('select_terminology', this.rmd_1); this.tnd_1 = new StringResource('add_new_terminology', this.rmd_1); this.und_1 = new StringResource('edit_terminology', this.rmd_1); this.vnd_1 = new StringResource('your_words_for', this.rmd_1); this.wnd_1 = new StringResource('course_setup', this.rmd_1); this.xnd_1 = new StringResource('number_of_groups', this.rmd_1); this.ynd_1 = new StringResource('assign_to_random_groups', this.rmd_1); this.znd_1 = new StringResource('add_new_groups', this.rmd_1); this.ane_1 = new StringResource('edit_groups', this.rmd_1); this.bne_1 = new StringResource('num_replies', this.rmd_1); this.cne_1 = new StringResource('topics', this.rmd_1); this.dne_1 = new StringResource('add_topic', this.rmd_1); this.ene_1 = new StringResource('add_a_reply', this.rmd_1); this.fne_1 = new StringResource('messages', this.rmd_1); this.gne_1 = new StringResource('message', this.rmd_1); this.hne_1 = new StringResource('library', this.rmd_1); this.ine_1 = new StringResource('courses', this.rmd_1); this.jne_1 = new StringResource('course', this.rmd_1); this.kne_1 = new StringResource('reports_and_analytics', this.rmd_1); this.lne_1 = new StringResource('course_comments', this.rmd_1); this.mne_1 = new StringResource('currently_enroled', this.rmd_1); this.nne_1 = new StringResource('past_enrolments', this.rmd_1); this.one_1 = new StringResource('standard', this.rmd_1); this.pne_1 = new StringResource('group_number', this.rmd_1); this.qne_1 = new StringResource('add_group', this.rmd_1); this.rne_1 = new StringResource('edit_group', this.rmd_1); this.sne_1 = new StringResource('new_group_set', this.rmd_1); this.tne_1 = new StringResource('edit_text', this.rmd_1); this.une_1 = new StringResource('add_module', this.rmd_1); this.vne_1 = new StringResource('add_a_new_course', this.rmd_1); this.wne_1 = new StringResource('join_existing_course', this.rmd_1); this.xne_1 = new StringResource('edit_course', this.rmd_1); this.yne_1 = new StringResource('currently_enrolled', this.rmd_1); this.zne_1 = new StringResource('past_enrollments', this.rmd_1); this.anf_1 = new StringResource('unread', this.rmd_1); this.bnf_1 = new StringResource('new_chat', this.rmd_1); this.cnf_1 = new StringResource('new_group', this.rmd_1); this.dnf_1 = new StringResource('chat', this.rmd_1); this.enf_1 = new StringResource('you', this.rmd_1); this.fnf_1 = new StringResource('edit_topic', this.rmd_1); this.gnf_1 = new StringResource('posts', this.rmd_1); this.hnf_1 = new StringResource('post', this.rmd_1); this.inf_1 = new StringResource('individual_submission', this.rmd_1); this.jnf_1 = new StringResource('unassigned', this.rmd_1); this.knf_1 = new StringResource('error_too_long_text', this.rmd_1); this.lnf_1 = new StringResource('managed_enrolment', this.rmd_1); this.mnf_1 = new StringResource('text_file_submission_error', this.rmd_1); this.nnf_1 = new StringResource('submit_all_at_once_submission_policy', this.rmd_1); this.onf_1 = new StringResource('multiple_submission_allowed_submission_policy', this.rmd_1); this.pnf_1 = new StringResource('enrolment_policy', this.rmd_1); this.qnf_1 = new StringResource('submission_policy', this.rmd_1); this.rnf_1 = new StringResource('submission_already_made', this.rmd_1); this.snf_1 = new StringResource('grade_out_of_range', this.rmd_1); this.tnf_1 = new StringResource('update_grade', this.rmd_1); this.unf_1 = new StringResource('update_grade_and_mark_next', this.rmd_1); this.vnf_1 = new StringResource('add_discussion', this.rmd_1); this.wnf_1 = new StringResource('edit_discussion', this.rmd_1); this.xnf_1 = new StringResource('type_here', this.rmd_1); this.ynf_1 = new StringResource('deadline_has_passed', this.rmd_1); this.znf_1 = new StringResource('already_submitted', this.rmd_1); this.ang_1 = new StringResource('exceeds_word_limit', this.rmd_1); this.bng_1 = new StringResource('exceeds_char_limit', this.rmd_1); this.cng_1 = new StringResource('unassigned_error', this.rmd_1); this.dng_1 = new StringResource('enabled', this.rmd_1); this.eng_1 = new StringResource('disabled', this.rmd_1); this.fng_1 = new StringResource('from_my_courses', this.rmd_1); this.gng_1 = new StringResource('assign_reviewers', this.rmd_1); this.hng_1 = new StringResource('reviews_per_user_group', this.rmd_1); this.ing_1 = new StringResource('assign_random_reviewers', this.rmd_1); this.jng_1 = new StringResource('reviewer', this.rmd_1); this.kng_1 = new StringResource('app_language', this.rmd_1); this.lng_1 = new StringResource('pdf', this.rmd_1); this.mng_1 = new StringResource('panic_button_app', this.rmd_1); this.nng_1 = new StringResource('actions_to_be_taken_in_case_of_emergency', this.rmd_1); this.ong_1 = new StringResource('exit_app', this.rmd_1); this.png_1 = new StringResource('delete_app_data_from_device', this.rmd_1); this.qng_1 = new StringResource('more_options', this.rmd_1); this.rng_1 = new StringResource('num_holidays', this.rmd_1); this.sng_1 = new StringResource('hide_app', this.rmd_1); this.tng_1 = new StringResource('panic_button_explanation', this.rmd_1); this.ung_1 = new StringResource('hide_app_explanation', this.rmd_1); this.vng_1 = new StringResource('most_recent', this.rmd_1); this.wng_1 = new StringResource('comment', this.rmd_1); this.xng_1 = new StringResource('grant_app_permission', this.rmd_1); this.yng_1 = new StringResource('this_app_will_receive', this.rmd_1); this.zng_1 = new StringResource('my_profile', this.rmd_1); this.anh_1 = new StringResource('add_another_account', this.rmd_1); this.bnh_1 = new StringResource('end_is_before_start', this.rmd_1); this.cnh_1 = new StringResource('select_person', this.rmd_1); this.dnh_1 = new StringResource('your_submission', this.rmd_1); this.enh_1 = new StringResource('edit_content', this.rmd_1); this.fnh_1 = new StringResource('edit_folder', this.rmd_1); this.gnh_1 = new StringResource('add_new_post', this.rmd_1); this.hnh_1 = new StringResource('grades_scoring', this.rmd_1); this.inh_1 = new StringResource('mark_comment', this.rmd_1); this.jnh_1 = new StringResource('mark', this.rmd_1); this.knh_1 = new StringResource('too_high', this.rmd_1); this.lnh_1 = new StringResource('required', this.rmd_1); this.mnh_1 = new StringResource('expand', this.rmd_1); this.nnh_1 = new StringResource('collapse', this.rmd_1); this.onh_1 = new StringResource('remove', this.rmd_1); this.pnh_1 = new StringResource('table_of_contents', this.rmd_1); this.qnh_1 = new StringResource('select_date', this.rmd_1); this.rnh_1 = new StringResource('link', this.rmd_1); this.snh_1 = new StringResource('time_submitted', this.rmd_1); this.tnh_1 = new StringResource('group_assignment', this.rmd_1); this.unh_1 = new StringResource('menu', this.rmd_1); this.vnh_1 = new StringResource('restarting', this.rmd_1); this.wnh_1 = new StringResource('terms_required_if_registration_enabled', this.rmd_1); this.xnh_1 = new StringResource('drop_files_to_import', this.rmd_1); this.ynh_1 = new StringResource('compose_post', this.rmd_1); this.znh_1 = new StringResource('password_updated', this.rmd_1); this.ani_1 = new StringResource('html5_content_display_engine', this.rmd_1); this.bni_1 = new StringResource('chrome_recommended', this.rmd_1); this.cni_1 = new StringResource('chrome_recommended_info', this.rmd_1); this.dni_1 = new StringResource('internal_webview', this.rmd_1); this.eni_1 = new StringResource('internal_webview_info', this.rmd_1); this.fni_1 = new StringResource('content_not_ready_try_later', this.rmd_1); this.gni_1 = new StringResource('version', this.rmd_1); this.hni_1 = new StringResource('licenses', this.rmd_1); this.ini_1 = new StringResource('cannot_record_attendance_for_future_date_time', this.rmd_1); this.jni_1 = new StringResource('could_not_load_vlc', this.rmd_1); this.kni_1 = new StringResource('selected', this.rmd_1); this.lni_1 = new StringResource('clear_selection', this.rmd_1); this.mni_1 = new StringResource('move_entries_to_this_folder', this.rmd_1); this.nni_1 = new StringResource('cannot_move_to_subfolder_of_self', this.rmd_1); this.oni_1 = new StringResource('cannot_move_already_in_same_folder', this.rmd_1); this.pni_1 = new StringResource('move_to', this.rmd_1); this.qni_1 = new StringResource('restore', this.rmd_1); this.rni_1 = new StringResource('delete_permanently', this.rmd_1); this.sni_1 = new StringResource('deleted_items', this.rmd_1); this.tni_1 = new StringResource('delete_or_restore_items', this.rmd_1); this.uni_1 = new StringResource('yesterday', this.rmd_1); this.vni_1 = new StringResource('request_to_enrol_already_pending', this.rmd_1); this.wni_1 = new StringResource('request_submitted', this.rmd_1); this.xni_1 = new StringResource('canceled_enrolment_request', this.rmd_1); this.yni_1 = new StringResource('enroled_into_name', this.rmd_1); this.zni_1 = new StringResource('declined_request_from_name', this.rmd_1); this.anj_1 = new StringResource('view_course', this.rmd_1); this.bnj_1 = new StringResource('moderate', this.rmd_1); this.cnj_1 = new StringResource('manage_student_enrolments', this.rmd_1); this.dnj_1 = new StringResource('manage_teacher_enrolments', this.rmd_1); this.enj_1 = new StringResource('view_learning_records', this.rmd_1); this.fnj_1 = new StringResource('edit_learning_records', this.rmd_1); this.gnj_1 = new StringResource('view_members', this.rmd_1); this.hnj_1 = new StringResource('copy_invite_code', this.rmd_1); this.inj_1 = new StringResource('direct_enrol_users_onto_courses', this.rmd_1); this.jnj_1 = new StringResource('could_not_restart', this.rmd_1); this.knj_1 = new StringResource('close_now', this.rmd_1); this.lnj_1 = new StringResource('view_all_courses', this.rmd_1); this.mnj_1 = new StringResource('edit_all_courses', this.rmd_1); this.nnj_1 = new StringResource('moderate_all_courses', this.rmd_1); this.onj_1 = new StringResource('manage_student_enrolments_for_all_courses', this.rmd_1); this.pnj_1 = new StringResource('manage_teacher_enrolments_for_all_courses', this.rmd_1); this.qnj_1 = new StringResource('view_attendance_records_for_all_courses', this.rmd_1); this.rnj_1 = new StringResource('edit_attendance_records_for_all_courses', this.rmd_1); this.snj_1 = new StringResource('add_new_users', this.rmd_1); this.tnj_1 = new StringResource('view_all_users', this.rmd_1); this.unj_1 = new StringResource('edit_all_users', this.rmd_1); this.vnj_1 = new StringResource('view_learning_records_for_all_courses', this.rmd_1); this.wnj_1 = new StringResource('edit_learning_records_for_all_courses', this.rmd_1); this.xnj_1 = new StringResource('add_new_courses', this.rmd_1); this.ynj_1 = new StringResource('manage_user_permissions', this.rmd_1); this.znj_1 = new StringResource('reset_passwords', this.rmd_1); this.ank_1 = new StringResource('upload_failed', this.rmd_1); this.bnk_1 = new StringResource('opening_name', this.rmd_1); this.cnk_1 = new StringResource('invalid_invite_code', this.rmd_1); this.dnk_1 = new StringResource('bulk_import', this.rmd_1); this.enk_1 = new StringResource('import_key', this.rmd_1); this.fnk_1 = new StringResource('imported', this.rmd_1); this.gnk_1 = new StringResource('you_can_import_users_using_a_csv_file', this.rmd_1); this.hnk_1 = new StringResource('get_template', this.rmd_1); this.ink_1 = new StringResource('line_number', this.rmd_1); this.jnk_1 = new StringResource('selected_content', this.rmd_1); this.knk_1 = new StringResource('edit_content_block', this.rmd_1); this.lnk_1 = new StringResource('compression', this.rmd_1); this.mnk_1 = new StringResource('compression_highest', this.rmd_1); this.nnk_1 = new StringResource('compression_high', this.rmd_1); this.onk_1 = new StringResource('compression_medium', this.rmd_1); this.pnk_1 = new StringResource('compression_low', this.rmd_1); this.qnk_1 = new StringResource('compression_lowest', this.rmd_1); this.rnk_1 = new StringResource('compression_none', this.rmd_1); this.snk_1 = new StringResource('size_compressed_was', this.rmd_1); this.tnk_1 = new StringResource('size', this.rmd_1); this.unk_1 = new StringResource('import_error', this.rmd_1); this.vnk_1 = new StringResource('upload_error', this.rmd_1); this.wnk_1 = new StringResource('offline_items_storage', this.rmd_1); this.xnk_1 = new StringResource('space_available', this.rmd_1); this.ynk_1 = new StringResource('grant_permission', this.rmd_1); this.znk_1 = new StringResource('gradebook', this.rmd_1); this.anl_1 = new StringResource('full_screen', this.rmd_1); this.bnl_1 = new StringResource('exit_full_screen', this.rmd_1); this.cnl_1 = new StringResource('increase_text_size', this.rmd_1); this.dnl_1 = new StringResource('decrease_text_size', this.rmd_1); this.enl_1 = new StringResource('nothing_here_yet', this.rmd_1); this.fnl_1 = new StringResource('signup_with_passkey', this.rmd_1); this.gnl_1 = new StringResource('other_options', this.rmd_1); this.hnl_1 = new StringResource('i_am_teacher', this.rmd_1); this.inl_1 = new StringResource('i_am_parent', this.rmd_1); this.jnl_1 = new StringResource('select_picture_from_files', this.rmd_1); this.knl_1 = new StringResource('your_date_of_birth', this.rmd_1); this.lnl_1 = new StringResource('add_child_profile', this.rmd_1); this.mnl_1 = new StringResource('child_profiles', this.rmd_1); this.nnl_1 = new StringResource('finish', this.rmd_1); this.onl_1 = new StringResource('scan_badge_qr_code', this.rmd_1); this.pnl_1 = new StringResource('new_user', this.rmd_1); this.qnl_1 = new StringResource('existing_user', this.rmd_1); this.rnl_1 = new StringResource('personal_account', this.rmd_1); this.snl_1 = new StringResource('signup', this.rmd_1); this.tnl_1 = new StringResource('access_educational_content_download_offline', this.rmd_1); this.unl_1 = new StringResource('join_learning_space', this.rmd_1); this.vnl_1 = new StringResource('learning_space', this.rmd_1); this.wnl_1 = new StringResource('eg_for_your_school_organization', this.rmd_1); this.xnl_1 = new StringResource('new_learning_space', this.rmd_1); this.ynl_1 = new StringResource('full_name', this.rmd_1); this.znl_1 = new StringResource('which_profile_do_you_want_to_start', this.rmd_1); this.anm_1 = new StringResource('create_passkey_for_faster_and_easier_signin', this.rmd_1); this.bnm_1 = new StringResource('create_username_and_password', this.rmd_1); this.cnm_1 = new StringResource('create_local_account', this.rmd_1); this.dnm_1 = new StringResource('with_passkeys_no_complex_passwords_needed', this.rmd_1); this.enm_1 = new StringResource('enter_link_manually', this.rmd_1); this.fnm_1 = new StringResource('registration_not_allowed', this.rmd_1); this.gnm_1 = new StringResource('add_subtitles', this.rmd_1); this.hnm_1 = new StringResource('edit_subtitles', this.rmd_1); this.inm_1 = new StringResource('subtitles', this.rmd_1); this.jnm_1 = new StringResource('progress_key', this.rmd_1); this.knm_1 = new StringResource('response', this.rmd_1); this.lnm_1 = new StringResource('true_key', this.rmd_1); this.mnm_1 = new StringResource('false_key', this.rmd_1); this.nnm_1 = new StringResource('invite_via_contact', this.rmd_1); this.onm_1 = new StringResource('invite_to_course', this.rmd_1); this.pnm_1 = new StringResource('use_email', this.rmd_1); this.qnm_1 = new StringResource('use_phone_number', this.rmd_1); this.rnm_1 = new StringResource('add_username_email_phone', this.rmd_1); this.snm_1 = new StringResource('no_valid_contact_found', this.rmd_1); this.tnm_1 = new StringResource('no_contact_found', this.rmd_1); this.unm_1 = new StringResource('decline', this.rmd_1); this.vnm_1 = new StringResource('do_you_want_to_join_this_course', this.rmd_1); this.wnm_1 = new StringResource('invite_has_been_used', this.rmd_1); this.xnm_1 = new StringResource('pending_invites', this.rmd_1); this.ynm_1 = new StringResource('expires', this.rmd_1); this.znm_1 = new StringResource('reminder', this.rmd_1); this.ann_1 = new StringResource('resend', this.rmd_1); this.bnn_1 = new StringResource('revoke', this.rmd_1); this.cnn_1 = new StringResource('invite_code_redeemed', this.rmd_1); this.dnn_1 = new StringResource('invite_code_invalid', this.rmd_1); this.enn_1 = new StringResource('invite_declined', this.rmd_1); this.fnn_1 = new StringResource('invite_code_already_redeemed', this.rmd_1); this.gnn_1 = new StringResource('invite_code_expired', this.rmd_1); this.hnn_1 = new StringResource('invitation_is_revoked', this.rmd_1); this.inn_1 = new StringResource('invitations_sent', this.rmd_1); this.jnn_1 = new StringResource('parent_email', this.rmd_1); this.knn_1 = new StringResource('wait_for_parent_to_consent', this.rmd_1); this.lnn_1 = new StringResource('wait_for_parent', this.rmd_1); this.mnn_1 = new StringResource('policy', this.rmd_1); this.nnn_1 = new StringResource('your_profile', this.rmd_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.onn_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.pnn_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.qnn_1 = new Impl(this.pnn_1, this.onn_1); this.rnn_1 = new PluralsResource('number_of_attempts', this.qnn_1); this.snn_1 = new PluralsResource('duration_hours', this.qnn_1); this.tnn_1 = new PluralsResource('duration_minutes', this.qnn_1); this.unn_1 = new PluralsResource('duration_seconds', this.qnn_1); this.vnn_1 = new PluralsResource('items_selected', this.qnn_1); this.wnn_1 = new PluralsResource('items_deleted', this.qnn_1); this.xnn_1 = new PluralsResource('items_restored', this.qnn_1); this.ynn_1 = new PluralsResource('are_you_sure_you_want_to_permanently_delete', this.qnn_1); } var plurals_instance; function plurals_getInstance() { if (plurals_instance == null) new plurals(); return plurals_instance; } function MR() { MR_instance = this; this.znn_1 = 'd4ed127c929dae80b3a6cb93cf79273e'; this.ano_1 = strings_getInstance().rmd_1.zm8(plurals_getInstance().qnn_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.bno_1 = makeAccountActive; this.cno_1 = parentJoin; } protoOf(AccountRegisterOptions).toString = function () { return 'AccountRegisterOptions(makeAccountActive=' + this.bno_1 + ', parentJoin=' + this.cno_1 + ')'; }; protoOf(AccountRegisterOptions).hashCode = function () { var result = getBooleanHashCode(this.bno_1); result = imul(result, 31) + (this.cno_1 == null ? 0 : this.cno_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.bno_1 === tmp0_other_with_cast.bno_1)) return false; if (!equals(this.cno_1, tmp0_other_with_cast.cno_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.fno_1; dataLayer$factory_0(); return this_0.t2(); } function $setAuthCOROUTINE$1(_this__u8e3s4, personUid, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ono_1 = _this__u8e3s4; this.pno_1 = personUid; this.qno_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.ono_1, this.qno_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rno_1 = suspendResult; this.hd_1 = 2; var tmp_0 = _get_dataLayer__43yv12(this.ono_1).mjy().a7f(); var this_0 = new PersonAuth2(); this_0.sfz_1 = this.pno_1; var tmp_1 = this_0; tmp_1.tfz_1 = 'PBKDF2x2'; this_0.ufz_1 = this.rno_1; suspendResult = tmp_0.pfz(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.dno_1 = learningSpace; this.eno_1 = di; var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.dno_1; var trigger = this.d57(); // 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.h57(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.fno_1 = Instance(this_0, tmp$ret$3, null).a5d(this, dataLayer$factory()); } protoOf(AuthManager).a57 = function () { return this.eno_1; }; protoOf(AuthManager).sno = 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 ConsentRequestToParentUseCaseSendToServerImpl$invoke$lambda() { return 'SendConsentRequestToParentUseCase: sent OK'; } function ConsentRequestToParentUseCaseSendToServerImpl$invoke$lambda_0($e) { return function () { return 'SendConsentRequestToParentUseCase:- exception ' + $e; }; } function $invokeCOROUTINE$2(_this__u8e3s4, request, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bnp_1 = _this__u8e3s4; this.cnp_1 = request; } protoOf($invokeCOROUTINE$2).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.dnp_1 = this.bnp_1.knp_1; var tmp_1 = this; tmp_1.enp_1 = this.bnp_1.lnp_1.nnp_1 + 'api/account/sendcensentrequest'; var tmp_2 = this; tmp_2.fnp_1 = this.dnp_1; var tmp_3 = this; tmp_3.gnp_1 = this.fnp_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.enp_1); contentType(this_0, Application_getInstance().v2r_1); setBodyJson(this_0, this.bnp_1.mnp_1, Companion_instance_51.n4r(), this.cnp_1); tmp_4.hnp_1 = this_0; this.hnp_1.w38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.inp_1 = this.gnp_1; var tmp_6 = this; tmp_6.jnp_1 = this.hnp_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.jnp_1, this.inp_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_7 = Napier_getInstance(); tmp_7.k5e(VOID, VOID, ConsentRequestToParentUseCaseSendToServerImpl$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.k5e(VOID, VOID, ConsentRequestToParentUseCaseSendToServerImpl$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 ConsentRequestToParentUseCaseSendToServerImpl(httpClient, learningSpace, json) { this.knp_1 = httpClient; this.lnp_1 = learningSpace; this.mnp_1 = json; } protoOf(ConsentRequestToParentUseCaseSendToServerImpl).pnp = function (request, $completion) { var tmp = new $invokeCOROUTINE$2(this, request, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; 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.t4f('url', false); this.qnp_1 = tmp0_serialDesc; } protoOf($serializer).q44 = function () { return this.qnp_1; }; protoOf($serializer).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer).s44 = function (decoder) { var tmp0_desc = this.qnp_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp6_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return LearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer).rnp = function (encoder, value) { var tmp0_desc = this.qnp_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.nnp_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer).r44 = function (encoder, value) { return this.rnp(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().qnp_1); } $this.nnp_1 = url; var tmp = $this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.onp_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.nnp_1).y30_1, '.local'); }; } function LearningSpace$_init_$lambda_beny7x(this$0) { return function () { return endsWith(Url(this$0.nnp_1).y30_1, '.local'); }; } function LearningSpace(url) { this.nnp_1 = url; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.onp_1 = lazy(tmp_0, LearningSpace$isLocal$delegate$lambda(this)); } protoOf(LearningSpace).snp = function () { // Inline function 'kotlin.getValue' call var this_0 = this.onp_1; isLocal$factory(); return this_0.t2(); }; protoOf(LearningSpace).toString = function () { return 'LearningSpace(url=' + this.nnp_1 + ')'; }; protoOf(LearningSpace).hashCode = function () { return getStringHashCode(this.nnp_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.nnp_1 === tmp0_other_with_cast.nnp_1)) return false; return true; }; function isLocal$factory() { return getPropertyCallableRef('isLocal', 1, KProperty1, function (receiver) { return receiver.snp(); }, null); } function Companion_0() { Companion_instance_49 = this; this.tnp_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.unp_1 = LinkedHashMap_init_$Create$(); } protoOf(LearningSpaceScope).vnp = function (context) { // Inline function 'kotlin.collections.getOrPut' call var this_0 = this.unp_1; var key = context.nnp_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).h59 = function (context) { return this.vnp(context instanceof LearningSpace ? context : THROW_CCE()); }; function PassKeyPromptData(username, personUid, doorNodeId, usStartTime, serverUrl) { this.wnp_1 = username; this.xnp_1 = personUid; this.ynp_1 = doorNodeId; this.znp_1 = usStartTime; this.anq_1 = serverUrl; } protoOf(PassKeyPromptData).toString = function () { return 'PassKeyPromptData(username=' + this.wnp_1 + ', personUid=' + this.xnp_1.toString() + ', doorNodeId=' + this.ynp_1 + ', usStartTime=' + this.znp_1.toString() + ', serverUrl=' + this.anq_1 + ')'; }; protoOf(PassKeyPromptData).hashCode = function () { var result = getStringHashCode(this.wnp_1); result = imul(result, 31) + this.xnp_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.ynp_1) | 0; result = imul(result, 31) + this.znp_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.anq_1) | 0; return result; }; protoOf(PassKeyPromptData).equals = function (other) { if (this === other) return true; if (!(other instanceof PassKeyPromptData)) return false; var tmp0_other_with_cast = other instanceof PassKeyPromptData ? other : THROW_CCE(); if (!(this.wnp_1 === tmp0_other_with_cast.wnp_1)) return false; if (!this.xnp_1.equals(tmp0_other_with_cast.xnp_1)) return false; if (!(this.ynp_1 === tmp0_other_with_cast.ynp_1)) return false; if (!this.znp_1.equals(tmp0_other_with_cast.znp_1)) return false; if (!(this.anq_1 === tmp0_other_with_cast.anq_1)) return false; return true; }; function Pbkdf2Params(iterations, keyLength) { iterations = iterations === VOID ? 10000 : iterations; keyLength = keyLength === VOID ? 512 : keyLength; this.bnq_1 = iterations; this.cnq_1 = keyLength; } protoOf(Pbkdf2Params).toString = function () { return 'Pbkdf2Params(iterations=' + this.bnq_1 + ', keyLength=' + this.cnq_1 + ')'; }; protoOf(Pbkdf2Params).hashCode = function () { var result = this.bnq_1; result = imul(result, 31) + this.cnq_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.bnq_1 === tmp0_other_with_cast.bnq_1)) return false; if (!(this.cnq_1 === tmp0_other_with_cast.cnq_1)) return false; return true; }; function Companion_1() { } protoOf(Companion_1).n4r = 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.t4f('person', false); tmp0_serialDesc.t4f('newPassword', false); tmp0_serialDesc.t4f('parent', false); tmp0_serialDesc.t4f('learningSpaceUrl', false); tmp0_serialDesc.t4f('langCode', true); this.dnq_1 = tmp0_serialDesc; } protoOf($serializer_0).q44 = function () { return this.dnq_1; }; protoOf($serializer_0).k4g = 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).s44 = function (decoder) { var tmp0_desc = this.dnq_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.i48(tmp0_desc); if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.u48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.u48(tmp0_desc, 0, $serializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.w48(tmp0_desc, 2, $serializer_getInstance_0(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return RegisterRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_0).enq = function (encoder, value) { var tmp0_desc = this.dnq_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance(), value.fnq_1); tmp1_output.w49(tmp0_desc, 1, value.gnq_1); tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_0(), value.hnq_1); tmp1_output.w49(tmp0_desc, 3, value.inq_1); if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.jnq_1 === 'en')) { tmp1_output.w49(tmp0_desc, 4, value.jnq_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_0).r44 = function (encoder, value) { return this.enq(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().dnq_1); } $this.fnq_1 = person; $this.gnq_1 = newPassword; $this.hnq_1 = parent; $this.inq_1 = learningSpaceUrl; if (0 === (seen1 & 16)) $this.jnq_1 = 'en'; else $this.jnq_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.fnq_1 = person; this.gnq_1 = newPassword; this.hnq_1 = parent; this.inq_1 = learningSpaceUrl; this.jnq_1 = langCode; } protoOf(RegisterRequest).toString = function () { return 'RegisterRequest(person=' + this.fnq_1 + ', newPassword=' + this.gnq_1 + ', parent=' + this.hnq_1 + ', learningSpaceUrl=' + this.inq_1 + ', langCode=' + this.jnq_1 + ')'; }; protoOf(RegisterRequest).hashCode = function () { var result = this.fnq_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.gnq_1) | 0; result = imul(result, 31) + (this.hnq_1 == null ? 0 : this.hnq_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.inq_1) | 0; result = imul(result, 31) + getStringHashCode(this.jnq_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.fnq_1.equals(tmp0_other_with_cast.fnq_1)) return false; if (!(this.gnq_1 === tmp0_other_with_cast.gnq_1)) return false; if (!equals(this.hnq_1, tmp0_other_with_cast.hnq_1)) return false; if (!(this.inq_1 === tmp0_other_with_cast.inq_1)) return false; if (!(this.jnq_1 === tmp0_other_with_cast.jnq_1)) return false; return true; }; function Companion_2() { } protoOf(Companion_2).n4r = function () { return $serializer_getInstance_13(); }; 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.SendConsentRequestToParentUseCase.SendConsentRequestToParentRequest', this, 4); tmp0_serialDesc.t4f('childFullName', false); tmp0_serialDesc.t4f('childDateOfBirth', false); tmp0_serialDesc.t4f('childGender', false); tmp0_serialDesc.t4f('parentContact', false); this.knq_1 = tmp0_serialDesc; } protoOf($serializer_1).q44 = function () { return this.knq_1; }; protoOf($serializer_1).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_1).s44 = function (decoder) { var tmp0_desc = this.knq_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 = 0; var tmp7_local3 = null; var tmp8_input = decoder.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.n48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.n48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return SendConsentRequestToParentRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_1).lnq = function (encoder, value) { var tmp0_desc = this.knq_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.mnq_1); tmp1_output.s49(tmp0_desc, 1, value.nnq_1); tmp1_output.r49(tmp0_desc, 2, value.onq_1); tmp1_output.w49(tmp0_desc, 3, value.pnq_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_1).r44 = function (encoder, value) { return this.lnq(encoder, value instanceof SendConsentRequestToParentRequest ? value : THROW_CCE()); }; var $serializer_instance_1; function $serializer_getInstance_13() { if ($serializer_instance_1 == null) new $serializer_1(); return $serializer_instance_1; } function SendConsentRequestToParentRequest_init_$Init$(seen1, childFullName, childDateOfBirth, childGender, parentContact, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_13().knq_1); } $this.mnq_1 = childFullName; $this.nnq_1 = childDateOfBirth; $this.onq_1 = childGender; $this.pnq_1 = parentContact; return $this; } function SendConsentRequestToParentRequest_init_$Create$(seen1, childFullName, childDateOfBirth, childGender, parentContact, serializationConstructorMarker) { return SendConsentRequestToParentRequest_init_$Init$(seen1, childFullName, childDateOfBirth, childGender, parentContact, serializationConstructorMarker, objectCreate(protoOf(SendConsentRequestToParentRequest))); } function SendConsentRequestToParentRequest(childFullName, childDateOfBirth, childGender, parentContact) { this.mnq_1 = childFullName; this.nnq_1 = childDateOfBirth; this.onq_1 = childGender; this.pnq_1 = parentContact; } protoOf(SendConsentRequestToParentRequest).toString = function () { return 'SendConsentRequestToParentRequest(childFullName=' + this.mnq_1 + ', childDateOfBirth=' + this.nnq_1.toString() + ', childGender=' + this.onq_1 + ', parentContact=' + this.pnq_1 + ')'; }; protoOf(SendConsentRequestToParentRequest).hashCode = function () { var result = getStringHashCode(this.mnq_1); result = imul(result, 31) + this.nnq_1.hashCode() | 0; result = imul(result, 31) + this.onq_1 | 0; result = imul(result, 31) + getStringHashCode(this.pnq_1) | 0; return result; }; protoOf(SendConsentRequestToParentRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof SendConsentRequestToParentRequest)) return false; var tmp0_other_with_cast = other instanceof SendConsentRequestToParentRequest ? other : THROW_CCE(); if (!(this.mnq_1 === tmp0_other_with_cast.mnq_1)) return false; if (!this.nnq_1.equals(tmp0_other_with_cast.nnq_1)) return false; if (!(this.onq_1 === tmp0_other_with_cast.onq_1)) return false; if (!(this.pnq_1 === tmp0_other_with_cast.pnq_1)) return false; return true; }; function SendConsentRequestToParentUseCase() { } 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_3() { } var Companion_instance_52; function Companion_getInstance_20() { return Companion_instance_52; } function $serializer_2() { $serializer_instance_2 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.account.UserSessionWithPersonAndLearningSpace', this, 4); tmp0_serialDesc.t4f('userSession', false); tmp0_serialDesc.t4f('person', false); tmp0_serialDesc.t4f('learningSpace', false); tmp0_serialDesc.t4f('personPicture', true); this.qnq_1 = tmp0_serialDesc; } protoOf($serializer_2).q44 = function () { return this.qnq_1; }; protoOf($serializer_2).k4g = 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_2).s44 = function (decoder) { var tmp0_desc = this.qnq_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.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.u48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_1(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.u48(tmp0_desc, 2, $serializer_getInstance_11(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_2(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return UserSessionWithPersonAndLearningSpace_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_2).rnq = function (encoder, value) { var tmp0_desc = this.qnq_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_1(), value.snq_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance(), value.tnq_1); tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_11(), value.unq_1); if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.vnq_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_2(), value.vnq_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_2).r44 = function (encoder, value) { return this.rnq(encoder, value instanceof UserSessionWithPersonAndLearningSpace ? value : THROW_CCE()); }; var $serializer_instance_2; function $serializer_getInstance_14() { if ($serializer_instance_2 == null) new $serializer_2(); return $serializer_instance_2; } function UserSessionWithPersonAndLearningSpace_init_$Init$(seen1, userSession, person, learningSpace, personPicture, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_14().qnq_1); } $this.snq_1 = userSession; $this.tnq_1 = person; $this.unq_1 = learningSpace; if (0 === (seen1 & 8)) $this.vnq_1 = null; else $this.vnq_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.snq_1 = userSession; this.tnq_1 = person; this.unq_1 = learningSpace; this.vnq_1 = personPicture; } protoOf(UserSessionWithPersonAndLearningSpace).wnq = function () { var displayUrl = removeSuffix(removePrefix(removePrefix(this.unq_1.nnp_1, 'http://'), 'https://'), '/'); return '' + this.tnq_1.g96_1 + '@' + displayUrl; }; protoOf(UserSessionWithPersonAndLearningSpace).xnq = function () { return toUmAccount(this.tnq_1, this.unq_1.nnp_1); }; protoOf(UserSessionWithPersonAndLearningSpace).ynq = function () { var tmp0_elvis_lhs = this.tnq_1.g96_1; return new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(this.unq_1.nnp_1, tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs)); }; protoOf(UserSessionWithPersonAndLearningSpace).znq = function (userSession, person, learningSpace, personPicture) { return new UserSessionWithPersonAndLearningSpace(userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).anr = function (userSession, person, learningSpace, personPicture, $super) { userSession = userSession === VOID ? this.snq_1 : userSession; person = person === VOID ? this.tnq_1 : person; learningSpace = learningSpace === VOID ? this.unq_1 : learningSpace; personPicture = personPicture === VOID ? this.vnq_1 : personPicture; return $super === VOID ? this.znq(userSession, person, learningSpace, personPicture) : $super.znq.call(this, userSession, person, learningSpace, personPicture); }; protoOf(UserSessionWithPersonAndLearningSpace).toString = function () { return 'UserSessionWithPersonAndLearningSpace(userSession=' + this.snq_1 + ', person=' + this.tnq_1 + ', learningSpace=' + this.unq_1 + ', personPicture=' + this.vnq_1 + ')'; }; protoOf(UserSessionWithPersonAndLearningSpace).hashCode = function () { var result = hashCode(this.snq_1); result = imul(result, 31) + this.tnq_1.hashCode() | 0; result = imul(result, 31) + this.unq_1.hashCode() | 0; result = imul(result, 31) + (this.vnq_1 == null ? 0 : this.vnq_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.snq_1, tmp0_other_with_cast.snq_1)) return false; if (!this.tnq_1.equals(tmp0_other_with_cast.tnq_1)) return false; if (!this.unq_1.equals(tmp0_other_with_cast.unq_1)) return false; if (!equals(this.vnq_1, tmp0_other_with_cast.vnq_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.wnq(); // Inline function 'com.ustadmobile.core.account.UstadAccountManager........' call var tmp$ret$1 = b.wnq(); return compareValues(tmp, tmp$ret$1); } function UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.jnr_1 = this$0; this.knr_1 = $learningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda$slambda).mnr = function (learningSpaceSessions, $completion) { var tmp = this.nnr(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.mnr((!(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.jnr_1.snr_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.unq_1.equals(this.knr_1)) { destination.i1(element); } } var this_1 = this.lnr_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.wif_1; var tmp_0 = tmp0_elvis_lhs == null ? new UserSession() : tmp0_elvis_lhs; var tmp1_elvis_lhs = item.uif_1; destination_0.i1(new UserSessionWithPersonAndLearningSpace(tmp_0, tmp1_elvis_lhs == null ? new Person() : tmp1_elvis_lhs, this.knr_1, item.vif_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.y1k(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).nnr = function (learningSpaceSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda$slambda(this.jnr_1, this.knr_1, completion); i.lnr_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.mnr(learningSpaceSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda$slambda(this$0, $learningSpace, resultContinuation) { this.ins_1 = this$0; this.jns_1 = $learningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ins_1.pnr_1; var context = this.jns_1; var trigger = this_0.d57(); 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.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.lns_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.lns_1.b7f().pie(); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda$slambda_0(this.ins_1, this.jns_1, null); suspendResult = tmp_5.a1c(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).v1m = function ($this$launch, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda(this.ins_1, this.jns_1, completion); i.kns_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda(this$0, resultContinuation) { this.uns_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda).wns = function (learningSpacesWithSessions, $completion) { var tmp = this.xns(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.wns((!(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.vns_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); launch(this.uns_1.znr_1, VOID, VOID, UstadAccountManager$slambda$slambda$slambda$slambda_0(this.uns_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).xns = function (learningSpacesWithSessions, completion) { var i = new UstadAccountManager$slambda$slambda$slambda(this.uns_1, completion); i.vns_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.wns(learningSpacesWithSessions, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda(this$0, resultContinuation) { this.gnt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda).m78 = function ($completion) { return this.j87($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.gnt_1.rnr_1, UstadAccountManager$slambda$slambda$slambda_0(this.gnt_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).l78 = function (completion) { return new UstadAccountManager$slambda$slambda(this.gnt_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.j87($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.ag4_1; tmp.h96_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h96_1; var tmp_0 = $this$shallowCopy; var tmp2_safe_receiver = $personAndPictureFromDb; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ag4_1; tmp_0.i96_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i96_1; return Unit_instance; }; } function UstadAccountManager$slambda$slambda$slambda$slambda_1($session, this$0, resultContinuation) { this.pnt_1 = $session; this.qnt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda$slambda_1).snt = function (personAndPictureFromDb, $completion) { var tmp = this.tnt(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.snt((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.rnt_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag4_1; var nameChanged = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qkm()) === this.pnt_1.tnq_1.qkm()); var tmp2_safe_receiver = this.rnt_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.bg4_1; var tmp_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.h97_1; var tmp4_safe_receiver = this.pnt_1.vnq_1; var pictureUriChanged = !(tmp_0 == (tmp4_safe_receiver == null ? null : tmp4_safe_receiver.h97_1)); if (nameChanged ? true : pictureUriChanged) { var tmp_1; if (nameChanged) { tmp_1 = shallowCopy(this.pnt_1.tnq_1, UstadAccountManager$slambda$slambda$slambda$slambda$lambda(this.rnt_1)); } else { tmp_1 = this.pnt_1.tnq_1; } var tmp_2 = tmp_1; var tmp_3; if (pictureUriChanged) { var tmp5_safe_receiver = this.rnt_1; tmp_3 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.bg4_1; } else { tmp_3 = this.pnt_1.vnq_1; } this.qnt_1.unt(this.pnt_1.anr(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).tnt = function (personAndPictureFromDb, completion) { var i = new UstadAccountManager$slambda$slambda$slambda$slambda_1(this.pnt_1, this.qnt_1, completion); i.rnt_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.snt(personAndPictureFromDb, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda$slambda_1(this$0, resultContinuation) { this.dnu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda$slambda_1).gnu = function (session, $completion) { var tmp = this.hnu(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.gnu(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.dnu_1.pnr_1; var context = this.enu_1.unq_1; var trigger = this_0.d57(); 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.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_0.fnu_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), 1); this.hd_1 = 1; var tmp_5 = this.fnu_1.n7d().xck(this.enu_1.snq_1.mif_1); var tmp_6 = UstadAccountManager$slambda$slambda$slambda$slambda_2(this.enu_1, this.dnu_1, null); suspendResult = tmp_5.a1c(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).hnu = function (session, completion) { var i = new UstadAccountManager$slambda$slambda$slambda_1(this.dnu_1, completion); i.enu_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.gnu(session, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda$slambda_1(this$0, resultContinuation) { this.qnu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda$slambda_1).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda$slambda_1).m78 = function ($completion) { return this.j87($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.qnu_1.qnr_1, UstadAccountManager$slambda$slambda$slambda_2(this.qnu_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).l78 = function (completion) { return new UstadAccountManager$slambda$slambda_1(this.qnu_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.j87($completion); }; l.$arity = 0; return l; } function UstadAccountManager$registerWithPasskey$slambda$slambda($repo, $person, resultContinuation) { this.znu_1 = $repo; this.anv_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$registerWithPasskey$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.znu_1.n7d().ng2(this.anv_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cnv_1 = suspendResult; if (this.cnv_1 == null) { this.hd_1 = 2; suspendResult = this.znu_1.n7d().insertAsync(this.anv_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).env = function (it, completion) { var i = new UstadAccountManager$registerWithPasskey$slambda$slambda(this.znu_1, this.anv_1, completion); i.bnv_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.dnv(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda(this$0, resultContinuation) { this.nnv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda).rnv = function (response, $completion) { var tmp = this.c3i(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.rnv(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.onv_1.j3b().f30_1 === 200) { var tmp_0 = this; tmp_0.qnv_1 = _get_json__d8whur(this.nnv_1); this.hd_1 = 1; suspendResult = bodyAsText(this.onv_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.pnv_1 = new Pair(null, this.onv_1.j3b().f30_1); this.hd_1 = 2; continue $sm; } case 1: var string = suspendResult; var this_0 = this.qnv_1.t45(); var this_1 = serializer(this_0, createKType(getKClass(Person), arrayOf([]), false)); var ARGUMENT = this.qnv_1.s45(isInterface(this_1, KSerializer) ? this_1 : THROW_CCE(), string); this.pnv_1 = new Pair(ARGUMENT, 200); this.hd_1 = 2; continue $sm; case 2: return this.pnv_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).c3i = function (response, completion) { var i = new UstadAccountManager$register$slambda$slambda(this.nnv_1, completion); i.onv_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.rnv(response, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda$slambda_1($db, $registeredPerson, resultContinuation) { this.anw_1 = $db; this.bnw_1 = $registeredPerson; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda$slambda_1).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.anw_1.n7d().ng2(this.bnw_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dnw_1 = suspendResult; if (this.dnw_1 == null) { this.hd_1 = 2; suspendResult = this.anw_1.n7d().insertAsync(this.bnw_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).env = function (it, completion) { var i = new UstadAccountManager$register$slambda$slambda_1(this.anw_1, this.bnw_1, completion); i.cnw_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.dnv(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$loginWithPasskey$slambda$lambda($loginResponse) { return function () { return 'passkeyres' + toString($loginResponse); }; } function _get_createNewLocalAccountUseCase__gbdxzu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.unr_1; createNewLocalAccountUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vnr_1; httpClient$factory_0(); return this_0.t2(); } function _get_json__d8whur($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wnr_1; json$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xnr_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.hif_1 = tmp_0.n62(679); this_0.nif_1 = get_doorWrapperNodeId(currentDb); this_0.oif_1 = systemTimeInMillis(); var tmp_1 = this_0; tmp_1.tif_1 = 8 | 4; var tmp_2 = this_0; tmp_2.qif_1 = 1; var this_1 = new UserSessionWithPersonAndLearningSpace(this_0, Companion_getInstance_21().enw_1, new LearningSpace(learningSpaceUrl)); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.account.UstadAccountManager.makeNewTempGuestSession.' call launch($this.znr_1, VOID, VOID, UstadAccountManager$makeNewTempGuestSession$slambda_0(currentDb, this_1, null)); return this_1; } function assertNotClosed($this) { if ($this.ynr_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.rnr_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.y1k(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.rnr_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.y1k(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.rnr_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.nnp_1; destination.i1(tmp$ret$0); } var json = tmp.r45(tmp_0, toList(destination)); // Inline function 'com.russhwolf.settings.set' call var this_1 = $this.onr_1; var key = 'accountmgr.endpointswithsessions'; this_1.jm3(key, json); } function getSiteFromDbOrLoadFromHttp($this, repo, $completion) { var tmp = new $getSiteFromDbOrLoadFromHttpCOROUTINE$8($this, repo, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_4() { Companion_instance_53 = 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.f96_1 = new Long(0, 0); this_0.h96_1 = 'Guest'; this_0.i96_1 = 'User'; tmp.enw_1 = this_0; this.fnw_1 = 'accountmgr.activesession'; this.gnw_1 = 'accountmgr.activeendpoint'; this.hnw_1 = 'accountmgr.endpointswithsessions'; this.inw_1 = 'http://localhost/'; this.jnw_1 = 'com.ustadmobile'; this.knw_1 = 'com.ustadmobile.AUTH_GET_TOKEN'; } var Companion_instance_53; function Companion_getInstance_21() { if (Companion_instance_53 == null) new Companion_4(); return Companion_instance_53; } function sam$kotlin_Comparator$0(function_0) { this.xnw_1 = function_0; } protoOf(sam$kotlin_Comparator$0).pa = function (a, b) { return this.xnw_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.ynw_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t1d = function (value, $completion) { return this.ynw_1(value, $completion); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0(function_0) { this.znw_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0).anx = function (endpointUrl) { return this.znw_1(endpointUrl); }; function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0(function_0) { this.bnx_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_0).anx = function (endpointUrl) { return this.bnx_1(endpointUrl); }; function UstadAccountManager$slambda(this$0, resultContinuation) { this.knx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$slambda).he = function (p1, $completion) { return this.u1m((!(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.knx_1.snr_1, UstadAccountManager$slambda$slambda_0(this.knx_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).v1m = function ($this$launch, completion) { var i = new UstadAccountManager$slambda(this.knx_1, completion); i.lnx_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$slambda_1(this$0, resultContinuation) { this.unx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.unx_1.qnr_1, UstadAccountManager$slambda$slambda_2(this.unx_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).v1m = function ($this$launch, completion) { var i = new UstadAccountManager$slambda_1(this.unx_1, completion); i.vnx_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$makeNewTempGuestSession$slambda($currentDb, $it, resultContinuation) { this.eny_1 = $currentDb; this.fny_1 = $it; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$makeNewTempGuestSession$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.eny_1.b7f().oie(this.fny_1.snq_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).v1m = function ($this$launch, completion) { var i = new UstadAccountManager$makeNewTempGuestSession$slambda(this.eny_1, this.fny_1, completion); i.gny_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.u1m($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.pny_1 = $learningSpaceUrl; this.qny_1 = this$0; this.rny_1 = $passkeyResult; this.sny_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$registerWithPasskey$slambda).u1m = function ($this$withContext, $completion) { var tmp = this.v1m($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.u1m((!(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 = 7; this.uny_1 = new LearningSpace(this.pny_1); var tmp_0 = this; var this_0 = this.qny_1.pnr_1; var context = this.uny_1; var trigger = this_0.d57(); 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.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(SavePersonPasskeyUseCase), arrayOf([]), false)); tmp_0.vny_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; suspendResult = this.vny_1.bnz(this.rny_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_5 = this; var this_1 = this.qny_1.pnr_1; var context_0 = this.uny_1; var trigger_0 = this_1.d57(); 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.h57(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).f58(); var tmp_9 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_5.wny_1 = tmp_8.d58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null).ljy(); this.id_1 = 3; this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.qny_1, this.wny_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.id_1 = 7; this.hd_1 = 4; continue $sm; case 3: this.id_1 = 7; var tmp_10 = this.kd_1; if (tmp_10 instanceof Exception) { this.xny_1 = this.kd_1; this.hd_1 = 4; continue $sm; } else { throw this.kd_1; } case 4: this.id_1 = 7; this.hd_1 = 5; suspendResult = this.qny_1.cnz(this.sny_1, this.pny_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.yny_1 = suspendResult; this.hd_1 = 6; suspendResult = withDoorTransactionAsync(this.wny_1, VOID, UstadAccountManager$registerWithPasskey$slambda$slambda_0(this.wny_1, this.sny_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var this_2 = this.qny_1.pnr_1; var context_1 = this.uny_1; var trigger_1 = this_2.d57(); var tmp_11 = Companion_instance_0; var tmp_12 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_13 = get_direct(On(this_2, tmp_11.h57(isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(), context_1), trigger_1)).f58(); var tmp_14 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var db = tmp_13.d58(isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(), 1); this.qny_1.unt(this.yny_1); 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(UstadAccountManager$registerWithPasskey$slambda).v1m = function ($this$withContext, completion) { var i = new UstadAccountManager$registerWithPasskey$slambda(this.pny_1, this.qny_1, this.rny_1, this.sny_1, completion); i.tny_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.u1m($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$register$slambda(this$0, $learningSpaceUrl, $accountRegisterOptions, $person, $password, resultContinuation) { this.lnz_1 = this$0; this.mnz_1 = $learningSpaceUrl; this.nnz_1 = $accountRegisterOptions; this.onz_1 = $person; this.pnz_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$register$slambda).bo0 = function ($this$withContext, $completion) { var tmp = this.v1m($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.bo0((!(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.lnz_1); this.rnz_1 = new LearningSpace(this.mnz_1); this.snz_1 = this.nnz_1.cno_1; var tmp_0 = this; var this_0 = _get_httpClient__2ty1zc(this.lnz_1); var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.mnz_1, '/') + '/auth/register'); contentType(this_1, Application_getInstance().v2r_1); setBodyJson(this_1, _get_json__d8whur(this.lnz_1), Companion_instance_50.n4r(), new RegisterRequest(this.onz_1, this.pnz_1, this.snz_1, this.mnz_1)); this_1.w38_1 = Companion_getInstance().m2x_1; tmp_0.tnz_1 = new HttpStatement(this_1, this_0); this.hd_1 = 1; suspendResult = this.tnz_1.g3z(UstadAccountManager$register$slambda$slambda_0(this.lnz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.unz_1 = suspendResult; this.vnz_1 = this.unz_1.y6(); this.wnz_1 = this.unz_1.z6(); if (this.wnz_1 === 200 ? !(this.vnz_1 == null) : false) { var tmp_1 = this; var this_2 = this.lnz_1.pnr_1; var context = this.rnz_1; var trigger = this_2.d57(); 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.h57(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context), trigger)).f58(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1.ynz_1 = tmp_4.d58(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null).ljy(); this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.lnz_1, this.ynz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.wnz_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.wnz_1); } } case 2: this.hd_1 = 3; suspendResult = this.lnz_1.cnz(this.vnz_1, this.mnz_1, this.pnz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.znz_1 = suspendResult; var tmp_8 = this; var this_3 = this.lnz_1.pnr_1; var context_0 = this.rnz_1; var trigger_0 = this_3.d57(); 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.h57(isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(), context_0), trigger_0)).f58(); var tmp_12 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_8.ao0_1 = tmp_11.d58(isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(), 1); this.hd_1 = 4; suspendResult = withDoorTransactionAsync(this.ao0_1, VOID, UstadAccountManager$register$slambda$slambda_2(this.ao0_1, this.vnz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: if (this.nnz_1.bno_1) { this.lnz_1.unt(this.znz_1); } this.xnz_1 = this.vnz_1; this.hd_1 = 5; continue $sm; case 5: return this.xnz_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).v1m = function ($this$withContext, completion) { var i = new UstadAccountManager$register$slambda(this.lnz_1, this.mnz_1, this.nnz_1, this.onz_1, this.pnz_1, completion); i.qnz_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.bo0($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$addSession$slambda(this$0, $learningSpace, $person, $password, $authManager, $dataLayer, resultContinuation) { this.ko0_1 = this$0; this.lo0_1 = $learningSpace; this.mo0_1 = $person; this.no0_1 = $password; this.oo0_1 = $authManager; this.po0_1 = $dataLayer; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$addSession$slambda).co1 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager$addSession$slambda).he = function (p1, $completion) { return this.co1(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.ko0_1.pnr_1; var context = this.lo0_1; var trigger = this_0.d57(); 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.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(NodeIdAndAuth), arrayOf([]), false)); tmp_0.ro0_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null).q64_1; var tmp_5 = this; tmp_5.so0_1 = new UserSession(); var tmp_6 = this; tmp_6.to0_1 = this.so0_1; this.to0_1.nif_1 = this.ro0_1; this.to0_1.mif_1 = this.mo0_1.f96_1; this.to0_1.oif_1 = systemTimeInMillis(); var tmp_7 = this.to0_1; tmp_7.tif_1 = 1; var tmp_8 = this.to0_1; tmp_8.qif_1 = 1; this.uo0_1 = this.no0_1; if (this.uo0_1 == null) { this.vo0_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_9 = this; tmp_9.wo0_1 = this.uo0_1; var tmp_10 = this; tmp_10.xo0_1 = this.wo0_1; this.hd_1 = 1; suspendResult = encryptPbkdf2(this.oo0_1, this.xo0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.yo0_1 = suspendResult; this.vo0_1 = toHexString(this.yo0_1); this.hd_1 = 2; continue $sm; case 2: this.zo0_1 = this.vo0_1; this.to0_1.sif_1 = this.zo0_1; this.hd_1 = 3; suspendResult = this.po0_1.mjy().b7f().oie(this.to0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ao1_1 = suspendResult; this.to0_1.hif_1 = this.ao1_1; this.bo1_1 = this.so0_1; this.hd_1 = 4; suspendResult = this.po0_1.ijy_1.f7e().kh0(this.mo0_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var personPicture = suspendResult; return to(this.bo1_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).env = function (it, completion) { var i = new UstadAccountManager$addSession$slambda(this.ko0_1, this.lo0_1, this.mo0_1, this.no0_1, this.oo0_1, this.po0_1, completion); i.qo0_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.co1(it, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$endSession$lambda($session) { return function (it) { return it === $session.unq_1.nnp_1; }; } function UstadAccountManager$loginWithPasskey$slambda(this$0, $passKeySignInData, $currentServerUrl, resultContinuation) { this.lo1_1 = this$0; this.mo1_1 = $passKeySignInData; this.no1_1 = $currentServerUrl; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$loginWithPasskey$slambda).eo2 = function ($this$withContext, $completion) { var tmp = this.v1m($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.eo2((!(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.lo1_1); this.po1_1 = base64StringToByteArray(this.mo1_1.go2_1); this.qo1_1 = substringAfter(decodeToString(this.po1_1), '@'); var tmp_0 = this; tmp_0.ro1_1 = _get_httpClient__2ty1zc(this.lo1_1); var tmp_1 = this; tmp_1.so1_1 = this.ro1_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, removeSuffix(this.qo1_1, '/') + '/api/passkey/verifypasskey'); parameter(this_0, 'id', this.mo1_1.fo2_1); parameter(this_0, 'userHandle', this.mo1_1.go2_1); parameter(this_0, 'authenticatorData', this.mo1_1.ho2_1); parameter(this_0, 'clientDataJSON', this.mo1_1.io2_1); parameter(this_0, 'signature', this.mo1_1.jo2_1); parameter(this_0, 'origin', this.mo1_1.ko2_1); parameter(this_0, 'rpId', this.mo1_1.lo2_1); parameter(this_0, 'challenge', this.mo1_1.mo2_1); tmp_2.to1_1 = this_0; this.to1_1.w38_1 = Companion_getInstance().m2x_1; var tmp_3 = this; tmp_3.uo1_1 = this.so1_1; var tmp_4 = this; tmp_4.vo1_1 = this.to1_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.vo1_1, this.uo1_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wo1_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.wo1_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.xo1_1 = suspendResult; var tmp_5 = Napier_getInstance(); tmp_5.k5e(VOID, VOID, UstadAccountManager$loginWithPasskey$slambda$lambda(this.xo1_1)); var tmp_6 = this; var this_1 = Default_getInstance(); var string = this.xo1_1; var this_2 = this_1.t45(); var this_3 = serializer(this_2, createKType(getKClass(PasskeyVerifyResult), arrayOf([]), false)); tmp_6.yo1_1 = this_1.s45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); if (!this.yo1_1.no2_1) { throw new UnauthorizedException('Account not found'); } this.zo1_1 = new UmAccount(this.yo1_1.oo2_1); this.zo1_1.kku_1 = this.no1_1; var tmp_7 = this; var this_4 = this.lo1_1.pnr_1; var context = new LearningSpace(this.qo1_1); var trigger = this_4.d57(); 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.h57(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), context), trigger)).f58(); var tmp_11 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_7.ao2_1 = tmp_10.d58(isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE(), null).ljy(); this.hd_1 = 3; suspendResult = this.ao2_1.n7d().mg2(this.yo1_1.oo2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.bo2_1 = suspendResult; var tmp_12 = this; var tmp_13; if (this.bo2_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_13 = this.bo2_1; } tmp_12.co2_1 = tmp_13; this.do2_1 = ensureNotNull(this.co2_1.ag4_1); this.zo1_1.oku_1 = this.do2_1.n96_1; this.hd_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.lo1_1, this.ao2_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; suspendResult = this.lo1_1.cnz(this.do2_1, this.no1_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; this.lo1_1.unt(newSession); return this.zo1_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).v1m = function ($this$withContext, completion) { var i = new UstadAccountManager$loginWithPasskey$slambda(this.lo1_1, this.mo1_1, this.no1_1, completion); i.oo1_1 = $this$withContext; return i; }; function UstadAccountManager$loginWithPasskey$slambda_0(this$0, $passKeySignInData, $currentServerUrl, resultContinuation) { var i = new UstadAccountManager$loginWithPasskey$slambda(this$0, $passKeySignInData, $currentServerUrl, resultContinuation); var l = function ($this$withContext, $completion) { return i.eo2($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadAccountManager$login$slambda(this$0, $endpointUrl, $username, $password, $maxDateOfBirth, $dontSetCurrentSession, resultContinuation) { this.zo2_1 = this$0; this.ao3_1 = $endpointUrl; this.bo3_1 = $username; this.co3_1 = $password; this.do3_1 = $maxDateOfBirth; this.eo3_1 = $dontSetCurrentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadAccountManager$login$slambda).eo2 = function ($this$withContext, $completion) { var tmp = this.v1m($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.eo2((!(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.zo2_1); var tmp_0 = this; var this_0 = get_direct(this.zo2_1.pnr_1); var context = new LearningSpace(this.ao3_1); var tmp_1 = this_0.f58(); var tmp_2 = Companion_instance_0; var tmp_3 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_4 = tmp_1.c58(tmp_2.h57(isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(), context)).f58(); var tmp_5 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.go3_1 = tmp_4.d58(isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE(), null); var tmp_6 = this; var tmp_7 = this.go3_1.jjy_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.j39(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v65_1; var tmp_8; if (tmp2_elvis_lhs == null) { throw IllegalStateException_init_$Create$('Could not open repo for endpoint ' + this.ao3_1); } else { tmp_8 = tmp2_elvis_lhs; } tmp_6.ho3_1 = tmp_8; var tmp_9 = this; tmp_9.io3_1 = _get_httpClient__2ty1zc(this.zo2_1); var tmp_10 = this; tmp_10.jo3_1 = this.io3_1; var tmp_11 = this; var this_1 = new HttpRequestBuilder(); url(this_1, removeSuffix(this.ao3_1, '/') + '/auth/login'); parameter(this_1, 'username', this.bo3_1); parameter(this_1, 'password', this.co3_1); parameter(this_1, 'maxDateOfBirth', this.do3_1); header(this_1, 'X-nid', this.ho3_1); set_expectSuccess(this_1, false); tmp_11.ko3_1 = this_1; this.ko3_1.w38_1 = Companion_getInstance().m2x_1; var tmp_12 = this; tmp_12.lo3_1 = this.jo3_1; var tmp_13 = this; tmp_13.mo3_1 = this.ko3_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.mo3_1, this.lo3_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.no3_1 = suspendResult; if (this.no3_1.j3b().f30_1 === 403) { throw new UnauthorizedException('Access denied'); } else if (this.no3_1.j3b().equals(Companion_getInstance_0().q2z_1)) { throw new ConsentNotGrantedException('Parental consent required but not granted'); } else if (this.no3_1.j3b().equals(Companion_getInstance_0().f2z_1)) { throw new AdultAccountRequiredException('Adult account required, credentials for child account'); } else if (!(this.no3_1.j3b().f30_1 === 200)) { throw IllegalStateException_init_$Create$('Server error - response ' + this.no3_1.j3b().f30_1); } var tmp_14 = this; tmp_14.oo3_1 = _get_json__d8whur(this.zo2_1); this.hd_1 = 2; suspendResult = bodyAsText(this.no3_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.po3_1 = suspendResult; var tmp_15 = this; var this_2 = this.oo3_1.t45(); var this_3 = serializer(this_2, createKType(getKClass(UmAccount), arrayOf([]), false)); tmp_15.qo3_1 = this.oo3_1.s45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.po3_1); this.qo3_1.kku_1 = this.ao3_1; this.hd_1 = 3; suspendResult = this.go3_1.mjy().n7d().mg2(this.qo3_1.hku_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.ro3_1 = suspendResult; var tmp_16 = this; var tmp_17; if (this.ro3_1 == null) { throw IllegalStateException_init_$Create$('Cannot find person in repo/db'); } else { tmp_17 = this.ro3_1; } tmp_16.so3_1 = tmp_17; this.to3_1 = ensureNotNull(this.so3_1.ag4_1); this.qo3_1.oku_1 = this.to3_1.n96_1; this.hd_1 = 4; suspendResult = getSiteFromDbOrLoadFromHttp(this.zo2_1, this.go3_1.mjy(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hd_1 = 5; suspendResult = this.zo2_1.cnz(this.to3_1, this.ao3_1, this.co3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var newSession = suspendResult; if (!this.eo3_1) { this.zo2_1.unt(newSession); } return this.qo3_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).v1m = function ($this$withContext, completion) { var i = new UstadAccountManager$login$slambda(this.zo2_1, this.ao3_1, this.bo3_1, this.co3_1, this.do3_1, this.eo3_1, completion); i.fo3_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.eo2($this$withContext, $completion); }; l.$arity = 1; return l; } function $activeSessionsListCOROUTINE$3(_this__u8e3s4, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.co4_1 = _this__u8e3s4; this.do4_1 = endpointFilter; } protoOf($activeSessionsListCOROUTINE$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.co4_1.rnr_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.do4_1.anx(element.nnp_1)) { destination.i1(element); } } tmp_0.eo4_1 = destination; var tmp_1 = this; tmp_1.fo4_1 = this.eo4_1; var tmp_2 = this; tmp_2.go4_1 = ArrayList_init_$Create$(); this.ho4_1 = this.fo4_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.ho4_1.f()) { this.hd_1 = 3; continue $sm; } this.io4_1 = this.ho4_1.e(); var tmp_3 = this; tmp_3.jo4_1 = this.io4_1; var tmp_4 = this; var this_1 = this.co4_1.pnr_1; var context = this.jo4_1; var trigger = this_1.d57(); 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.h57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).f58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.ko4_1 = tmp_7.d58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.ko4_1.b7f().qie(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.jo4_1)); } var list = destination_0; addAll(this.go4_1, list); this.hd_1 = 1; continue $sm; case 3: return this.go4_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$4(_this__u8e3s4, maxDateOfBirth, endpointFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.to4_1 = _this__u8e3s4; this.uo4_1 = maxDateOfBirth; this.vo4_1 = endpointFilter; } protoOf($activeSessionCountCOROUTINE$4).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.to4_1.rnr_1.t2(); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (this.vo4_1.anx(element.nnp_1)) { destination.i1(element); } } tmp_0.wo4_1 = destination; var tmp_1 = this; tmp_1.xo4_1 = 0; this.yo4_1 = this.xo4_1; this.zo4_1 = this.wo4_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.zo4_1.f()) { this.hd_1 = 3; continue $sm; } this.ao5_1 = this.zo4_1.e(); var tmp_2 = this; tmp_2.bo5_1 = this.yo4_1; var tmp_3 = this; tmp_3.co5_1 = this.ao5_1; var tmp_4 = this; var this_1 = this.to4_1.pnr_1; var context = this.co5_1; var trigger = this_1.d57(); 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.h57(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), context), trigger)).f58(); var tmp_8 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); tmp_4.do5_1 = tmp_7.d58(isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE(), 1); this.hd_1 = 2; suspendResult = this.do5_1.b7f().rie(this.uo4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; this.yo4_1 = this.bo5_1 + ARGUMENT | 0; this.hd_1 = 1; continue $sm; case 3: return this.yo4_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$5(_this__u8e3s4, person, learningSpaceUrl, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mo5_1 = _this__u8e3s4; this.no5_1 = person; this.oo5_1 = learningSpaceUrl; this.po5_1 = password; } protoOf($addSessionCOROUTINE$5).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.mo5_1); this.qo5_1 = new LearningSpace(this.oo5_1); var tmp_0 = this; var this_0 = this.mo5_1.pnr_1; var context = this.qo5_1; var trigger = this_0.d57(); 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.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.ro5_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); if (!this.mo5_1.rnr_1.t2().a1(this.qo5_1)) { this.hd_1 = 1; suspendResult = addActiveLearningSpace(this.mo5_1, this.qo5_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; continue $sm; } case 1: commitActiveEndpointsToPref(this.mo5_1); this.hd_1 = 2; continue $sm; case 2: var tmp_5 = this; var this_1 = this.mo5_1.pnr_1; var context_0 = this.qo5_1; var trigger_0 = this_1.d57(); 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.h57(isInterface(tmp_7, TypeToken) ? tmp_7 : THROW_CCE(), context_0), trigger_0)).f58(); var tmp_9 = typeToken(createKType(getKClass(AuthManager), arrayOf([]), false)); tmp_5.so5_1 = tmp_8.d58(isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(), null); this.hd_1 = 3; var tmp_10 = this.ro5_1.mjy(); suspendResult = withDoorTransactionAsync(tmp_10, VOID, UstadAccountManager$addSession$slambda_0(this.mo5_1, this.qo5_1, this.no5_1, this.po5_1, this.so5_1, this.ro5_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.no5_1, this.qo5_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$7(_this__u8e3s4, session, endStatus, endReason, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bo6_1 = _this__u8e3s4; this.co6_1 = session; this.do6_1 = endStatus; this.eo6_1 = endReason; } protoOf($endSessionCOROUTINE$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 this_0 = this.bo6_1.pnr_1; var context = this.co6_1.unq_1; var trigger = this_0.d57(); 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.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.fo6_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; suspendResult = this.fo6_1.mjy().b7f().sie(this.co6_1.snq_1.hif_1, this.do6_1, this.eo6_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (this.bo6_1.go6().snq_1.hif_1.equals(this.co6_1.snq_1.hif_1) ? this.bo6_1.go6().unq_1.equals(this.co6_1.unq_1) : false) { this.bo6_1.unt(makeNewTempGuestSession(this.bo6_1, this.co6_1.unq_1.nnp_1, this.fo6_1.mjy())); } this.hd_1 = 2; var tmp_5 = UstadAccountManager$endSession$lambda(this.co6_1); suspendResult = this.bo6_1.ho6(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.bo6_1, this.co6_1.unq_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$8(_this__u8e3s4, repo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.tnw_1 = _this__u8e3s4; this.unw_1 = repo; } protoOf($getSiteFromDbOrLoadFromHttpCOROUTINE$8).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.unw_1; var tmp_2 = (isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : THROW_CCE()).x5i(); tmp_0.vnw_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : THROW_CCE(); this.hd_1 = 1; suspendResult = this.vnw_1.v7e().bhj(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wnw_1 = suspendResult; if (this.wnw_1 == null) { this.hd_1 = 2; suspendResult = this.unw_1.v7e().bhj(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$10(_this__u8e3s4, learningSpaceUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qo6_1 = _this__u8e3s4; this.ro6_1 = learningSpaceUrl; } protoOf($startGuestSessionCOROUTINE$10).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.qo6_1.pnr_1; var context = new LearningSpace(this.ro6_1); var trigger = this_0.d57(); 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.h57(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), context), trigger)).f58(); var tmp_4 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_0.so6_1 = tmp_3.d58(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), null); this.hd_1 = 1; var tmp_5 = this.so6_1.mjy(); var this_1 = new Person(); this_1.g96_1 = null; this_1.h96_1 = 'Guest'; this_1.i96_1 = 'User'; var tmp_6 = this_1; tmp_6.u96_1 = 2; suspendResult = insertPersonAndGroup(tmp_5, this_1, 1 | 16, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.to6_1 = suspendResult; this.hd_1 = 2; suspendResult = getSiteFromDbOrLoadFromHttp(this.qo6_1, this.so6_1.mjy(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.qo6_1.cnz(this.to6_1, this.ro6_1, null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var guestSession = suspendResult; this.qo6_1.unt(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_21(); this.onr_1 = settings; this.pnr_1 = di; this.tnr_1 = MutableSharedFlow(); var tmp = this; // Inline function 'org.kodein.di.instance' call var this_0 = this.pnr_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.unr_1 = Instance(this_0, tmp$ret$0, null).a5d(this, createNewLocalAccountUseCase$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call var this_1 = this.pnr_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.vnr_1 = Instance(this_1, tmp$ret$2, null).a5d(this, httpClient$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var this_2 = this.pnr_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.wnr_1 = Instance(this_2, tmp$ret$4, null).a5d(this, json$factory()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call var this_3 = this.pnr_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.xnr_1 = Instance(this_3, tmp$ret$6, null).a5d(this, apiUrlConfig$factory()); this.ynr_1 = atomic$boolean$1(false); this.znr_1 = CoroutineScope_0(Dispatchers_getInstance().t12().lj(Job())); var tmp0_elvis_lhs = this.onr_1.km3('accountmgr.activeendpoint'); var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg(this).wo6_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.pnr_1); var context = new LearningSpace(currentEndpointStr); var tmp_7 = this_4.f58(); // 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.h57(tmp$ret$8, context); var tmp_10 = tmp_7.c58(tmp$ret$9).f58(); // 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.d58(tmp$ret$11, 1); var tmp2_safe_receiver = this.onr_1.km3('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.t45(); // 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.s45(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.qnr_1 = MutableStateFlow(initUserSession); var tmp4_safe_receiver = this.onr_1.km3('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).s45(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.rnr_1 = MutableStateFlow(destination); this.snr_1 = MutableStateFlow(listOf_0(initUserSession)); launch(this.znr_1, VOID, VOID, UstadAccountManager$slambda_0(this, null)); launch(this.znr_1, VOID, VOID, UstadAccountManager$slambda_2(this, null)); } protoOf(UstadAccountManager).unt = function (value) { this.qnr_1.x1k(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.t45(); // 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.r45(tmp$ret$1, value); // Inline function 'com.russhwolf.settings.set' call var this_3 = this.onr_1; var key = 'accountmgr.activesession'; this_3.jm3(key, activeAccountJson); // Inline function 'com.russhwolf.settings.set' call var this_4 = this.onr_1; var key_0 = 'accountmgr.activeendpoint'; var value_0 = value.unq_1.nnp_1; this_4.jm3(key_0, value_0); }; protoOf(UstadAccountManager).go6 = function () { return this.qnr_1.t2(); }; protoOf(UstadAccountManager).zo6 = function () { return asStateFlow(this.qnr_1); }; protoOf(UstadAccountManager).ao7 = function () { return this.qnr_1.t2().xnq(); }; protoOf(UstadAccountManager).bo7 = function () { return asStateFlow(this.snr_1); }; protoOf(UstadAccountManager).co7 = function () { return this.qnr_1.t2().unq_1; }; protoOf(UstadAccountManager).ho6 = function (endpointFilter, $completion) { var tmp = new $activeSessionsListCOROUTINE$3(this, endpointFilter, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).do7 = function (maxDateOfBirth, endpointFilter, $completion) { var tmp = new $activeSessionCountCOROUTINE$4(this, maxDateOfBirth, endpointFilter, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).eo7 = 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.do7(maxDateOfBirth, endpointFilter, $completion) : $super.do7.call(this, maxDateOfBirth, endpointFilter, $completion); }; protoOf(UstadAccountManager).fo7 = function (username, personUid, doorNodeId, usStartTime, serverUrl, $completion) { var promptData = new PassKeyPromptData(username, personUid, doorNodeId, usStartTime, serverUrl); return this.tnr_1.t1d(promptData, $completion); }; protoOf(UstadAccountManager).go7 = function (learningSpaceUrl, passkeyResult, person, personPicture, $completion) { var tmp = Dispatchers_getInstance().p12_1; return withContext(tmp, UstadAccountManager$registerWithPasskey$slambda_0(learningSpaceUrl, this, passkeyResult, person, null), $completion); }; protoOf(UstadAccountManager).ho7 = function (person, password, learningSpaceUrl, accountRegisterOptions, $completion) { var tmp = Dispatchers_getInstance().p12_1; return withContext(tmp, UstadAccountManager$register$slambda_0(this, learningSpaceUrl, accountRegisterOptions, person, password, null), $completion); }; protoOf(UstadAccountManager).cnz = function (person, learningSpaceUrl, password, $completion) { var tmp = new $addSessionCOROUTINE$5(this, person, learningSpaceUrl, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).io7 = function (session, endStatus, endReason, $completion) { var tmp = new $endSessionCOROUTINE$7(this, session, endStatus, endReason, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadAccountManager).jo7 = 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.io7(session, endStatus, endReason, $completion) : $super.io7.call(this, session, endStatus, endReason, $completion); }; protoOf(UstadAccountManager).ko7 = function (passKeySignInData, currentServerUrl, $completion) { var tmp = Dispatchers_getInstance().p12_1; return withContext(tmp, UstadAccountManager$loginWithPasskey$slambda_0(this, passKeySignInData, currentServerUrl, null), $completion); }; protoOf(UstadAccountManager).lo7 = function (username, password, endpointUrl, maxDateOfBirth, dontSetCurrentSession, $completion) { var tmp = Dispatchers_getInstance().p12_1; return withContext(tmp, UstadAccountManager$login$slambda_0(this, endpointUrl, username, password, maxDateOfBirth, dontSetCurrentSession, null), $completion); }; protoOf(UstadAccountManager).mo7 = function (learningSpaceUrl, $completion) { var tmp = new $startGuestSessionCOROUTINE$10(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_5() { this.no7_1 = 101; } var Companion_instance_54; function Companion_getInstance_22() { return Companion_instance_54; } function Companion_6() { } protoOf(Companion_6).n4r = function () { return AnchorSerializer_getInstance(); }; var Companion_instance_55; function Companion_getInstance_23() { return Companion_instance_55; } function Anchor(content, href) { content = content === VOID ? '' : content; href = href === VOID ? '' : href; this.oo7_1 = content; this.po7_1 = href; } function deserializeDynamic($this, reader) { var href = reader.m7d(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.qo7_1 = buildClassSerialDescriptor('a', []); } protoOf(AnchorSerializer).q44 = function () { return this.qo7_1; }; protoOf(AnchorSerializer).s44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic(this, decoder.zla()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.qo7_1; var composite = decoder.i48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.AnchorSerializer.deserialize.' call var result = composite.v48(AnchorSerializer_getInstance().qo7_1, 0, Companion_instance_55.n4r()); composite.j48(descriptor); tmp = result; } return tmp; }; protoOf(AnchorSerializer).ro7 = function (encoder, value) { encoder.z49(Companion_instance_55.n4r(), value); }; protoOf(AnchorSerializer).r44 = function (encoder, value) { return this.ro7(encoder, value instanceof Anchor ? value : THROW_CCE()); }; var AnchorSerializer_instance; function AnchorSerializer_getInstance() { if (AnchorSerializer_instance == null) new AnchorSerializer(); return AnchorSerializer_instance; } function Companion_7() { } protoOf(Companion_7).n4r = function () { return BodySerializer_instance; }; var Companion_instance_56; function Companion_getInstance_24() { return Companion_instance_56; } function Body(navigationElements) { this.so7_1 = navigationElements; } function BodySerializer() { } protoOf(BodySerializer).q44 = function () { return buildClassSerialDescriptor('body', []); }; protoOf(BodySerializer).s44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = this.to7(decoder, decoder.zla()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.q44(); var composite = decoder.i48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.BodySerializer.deserialize.' call var result = composite.v48(BodySerializer_instance.q44(), 0, Companion_instance_56.n4r()); composite.j48(descriptor); tmp = result; } return tmp; }; protoOf(BodySerializer).to7 = function (decoder, reader) { var xml = this.uo7(decoder); // Inline function 'kotlin.collections.mutableListOf' call var navElementList = ArrayList_init_$Create$(); // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = this.q44(); var composite = decoder.i48(descriptor); while (!(reader.e().equals(EventType_END_ELEMENT_getInstance()) ? reader.dc().xl4() === 'body' : false)) { if (reader.gl1().equals(EventType_START_ELEMENT_getInstance()) ? reader.yl0() === 'nav' : false) { // Inline function 'kotlin.collections.plusAssign' call var element = xml.mlf(Companion_instance_58.n4r(), reader); navElementList.i1(element); } } var result = Unit_instance; composite.j48(descriptor); return new Body(toList(navElementList)); }; protoOf(BodySerializer).vo7 = function (encoder, value) { encoder.z49(Companion_instance_56.n4r(), value); }; protoOf(BodySerializer).r44 = function (encoder, value) { return this.vo7(encoder, value instanceof Body ? value : THROW_CCE()); }; protoOf(BodySerializer).uo7 = function (decoder) { return (isInterface(decoder, XmlInput) ? decoder : THROW_CCE()).ild(); }; var BodySerializer_instance; function BodySerializer_getInstance() { return BodySerializer_instance; } function Companion_8() { } 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.ListItem', this, 3); tmp0_serialDesc.t4f('anchor', true); tmp0_serialDesc.t4f('span', true); tmp0_serialDesc.t4f('orderedList', true); tmp0_serialDesc.v4f(new XmlSerialName('li', 'http://www.w3.org/1999/xhtml')); this.wo7_1 = tmp0_serialDesc; } protoOf($serializer_3).q44 = function () { return this.wo7_1; }; protoOf($serializer_3).k4g = 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_18())]; }; protoOf($serializer_3).s44 = function (decoder) { var tmp0_desc = this.wo7_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.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_18(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, AnchorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.w48(tmp0_desc, 1, SpanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_18(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return ListItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_3).xo7 = function (encoder, value) { var tmp0_desc = this.wo7_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.yo7_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, AnchorSerializer_getInstance(), value.yo7_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.zo7_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, SpanSerializer_getInstance(), value.zo7_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ao8_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_18(), value.ao8_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_3).r44 = function (encoder, value) { return this.xo7(encoder, value instanceof ListItem ? value : THROW_CCE()); }; var $serializer_instance_3; function $serializer_getInstance_15() { if ($serializer_instance_3 == null) new $serializer_3(); return $serializer_instance_3; } function ListItem_init_$Init$(seen1, anchor, span, orderedList, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_15().wo7_1); } if (0 === (seen1 & 1)) $this.yo7_1 = null; else $this.yo7_1 = anchor; if (0 === (seen1 & 2)) $this.zo7_1 = null; else $this.zo7_1 = span; if (0 === (seen1 & 4)) $this.ao8_1 = null; else $this.ao8_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.yo7_1 = anchor; this.zo7_1 = span; this.ao8_1 = orderedList; } function Companion_9() { } protoOf(Companion_9).n4r = function () { return $serializer_getInstance_16(); }; 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.NavElement', this, 2); tmp0_serialDesc.t4f('epubType', true); tmp0_serialDesc.u4f(new XmlSerialName('type', 'http://www.idpf.org/2007/ops')); tmp0_serialDesc.t4f('orderedList', false); tmp0_serialDesc.v4f(new XmlSerialName('nav', 'http://www.w3.org/1999/xhtml')); this.bo8_1 = tmp0_serialDesc; } protoOf($serializer_4).q44 = function () { return this.bo8_1; }; protoOf($serializer_4).k4g = 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_18()]; }; protoOf($serializer_4).s44 = function (decoder) { var tmp0_desc = this.bo8_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_18(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return NavElement_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_4).co8 = function (encoder, value) { var tmp0_desc = this.bo8_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.do8_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.do8_1); } tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_18(), value.eo8_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_4).r44 = function (encoder, value) { return this.co8(encoder, value instanceof NavElement ? value : THROW_CCE()); }; var $serializer_instance_4; function $serializer_getInstance_16() { if ($serializer_instance_4 == null) new $serializer_4(); return $serializer_instance_4; } function NavElement_init_$Init$(seen1, epubType, orderedList, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_16().bo8_1); } if (0 === (seen1 & 1)) $this.do8_1 = null; else $this.do8_1 = epubType; $this.eo8_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_10() { this.fo8_1 = 'http://www.w3.org/1999/xhtml'; this.go8_1 = 'http://www.idpf.org/2007/ops'; } var Companion_instance_59; function Companion_getInstance_27() { return Companion_instance_59; } function $serializer_5() { $serializer_instance_5 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.NavigationDocument', this, 1); tmp0_serialDesc.t4f('bodyElement', false); tmp0_serialDesc.v4f(new XmlSerialName('html', 'http://www.w3.org/1999/xhtml')); this.ho8_1 = tmp0_serialDesc; } protoOf($serializer_5).q44 = function () { return this.ho8_1; }; protoOf($serializer_5).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BodySerializer_instance]; }; protoOf($serializer_5).s44 = function (decoder) { var tmp0_desc = this.ho8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, BodySerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return NavigationDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_5).io8 = function (encoder, value) { var tmp0_desc = this.ho8_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, BodySerializer_instance, value.jo8_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_5).r44 = function (encoder, value) { return this.io8(encoder, value instanceof NavigationDocument ? value : THROW_CCE()); }; var $serializer_instance_5; function $serializer_getInstance_17() { if ($serializer_instance_5 == null) new $serializer_5(); return $serializer_instance_5; } function NavigationDocument_init_$Init$(seen1, bodyElement, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_17().ho8_1); } $this.jo8_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.jo8_1 = bodyElement; } function Companion_11() { Companion_instance_60 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.ko8_1 = [new ArrayListSerializer($serializer_getInstance_15())]; } var Companion_instance_60; function Companion_getInstance_28() { if (Companion_instance_60 == null) new Companion_11(); return Companion_instance_60; } function $serializer_6() { $serializer_instance_6 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.nav.OrderedList', this, 1); tmp0_serialDesc.t4f('listItems', false); tmp0_serialDesc.v4f(new XmlSerialName('ol', 'http://www.w3.org/1999/xhtml')); this.lo8_1 = tmp0_serialDesc; } protoOf($serializer_6).q44 = function () { return this.lo8_1; }; protoOf($serializer_6).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_28().ko8_1[0]]; }; protoOf($serializer_6).s44 = function (decoder) { var tmp0_desc = this.lo8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_28().ko8_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return OrderedList_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_6).mo8 = function (encoder, value) { var tmp0_desc = this.lo8_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_28().ko8_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.no8_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_6).r44 = function (encoder, value) { return this.mo8(encoder, value instanceof OrderedList ? value : THROW_CCE()); }; var $serializer_instance_6; function $serializer_getInstance_18() { if ($serializer_instance_6 == null) new $serializer_6(); return $serializer_instance_6; } function OrderedList_init_$Init$(seen1, listItems, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_18().lo8_1); } $this.no8_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_12() { } protoOf(Companion_12).n4r = function () { return SpanSerializer_getInstance(); }; var Companion_instance_61; function Companion_getInstance_29() { return Companion_instance_61; } function Span(content) { content = content === VOID ? '' : content; this.oo8_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.po8_1 = buildClassSerialDescriptor('span', []); } protoOf(SpanSerializer).q44 = function () { return this.po8_1; }; protoOf(SpanSerializer).s44 = function (decoder) { var tmp; if (isInterface(decoder, XmlInput)) { tmp = deserializeDynamic_0(this, decoder.zla()); } else { // Inline function 'kotlinx.serialization.encoding.decodeStructure' call var descriptor = AnchorSerializer_getInstance().qo7_1; var composite = decoder.i48(descriptor); // Inline function 'com.ustadmobile.core.contentformats.epub.nav.SpanSerializer.deserialize.' call var result = composite.v48(AnchorSerializer_getInstance().qo7_1, 0, Companion_instance_61.n4r()); composite.j48(descriptor); tmp = result; } return tmp; }; protoOf(SpanSerializer).qo8 = function (encoder, value) { encoder.z49(Companion_instance_61.n4r(), value); }; protoOf(SpanSerializer).r44 = function (encoder, value) { return this.qo8(encoder, value instanceof Span ? value : THROW_CCE()); }; var SpanSerializer_instance; function SpanSerializer_getInstance() { if (SpanSerializer_instance == null) new SpanSerializer(); return SpanSerializer_instance; } function $serializer_7() { $serializer_instance_7 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Content', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('src', false); tmp0_serialDesc.v4f(new XmlSerialName('content', 'http://www.daisy.org/z3986/2005/ncx/')); this.ro8_1 = tmp0_serialDesc; } protoOf($serializer_7).q44 = function () { return this.ro8_1; }; protoOf($serializer_7).k4g = 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_7).s44 = function (decoder) { var tmp0_desc = this.ro8_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Content_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_7).so8 = function (encoder, value) { var tmp0_desc = this.ro8_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.to8_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.to8_1); } tmp1_output.w49(tmp0_desc, 1, value.uo8_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_7).r44 = function (encoder, value) { return this.so8(encoder, value instanceof Content ? value : THROW_CCE()); }; var $serializer_instance_7; function $serializer_getInstance_19() { if ($serializer_instance_7 == null) new $serializer_7(); return $serializer_instance_7; } function Content_init_$Init$(seen1, id, src, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_19().ro8_1); } if (0 === (seen1 & 1)) $this.to8_1 = null; else $this.to8_1 = id; $this.uo8_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_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.vo8_1 = [new ArrayListSerializer($serializer_getInstance_26())]; } 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.DocTitle', this, 1); tmp0_serialDesc.t4f('texts', false); tmp0_serialDesc.v4f(new XmlSerialName('docTitle', 'http://www.daisy.org/z3986/2005/ncx/')); this.wo8_1 = tmp0_serialDesc; } protoOf($serializer_8).q44 = function () { return this.wo8_1; }; protoOf($serializer_8).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_30().vo8_1[0]]; }; protoOf($serializer_8).s44 = function (decoder) { var tmp0_desc = this.wo8_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_30().vo8_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return DocTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_8).xo8 = function (encoder, value) { var tmp0_desc = this.wo8_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_30().vo8_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.yo8_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_8).r44 = function (encoder, value) { return this.xo8(encoder, value instanceof DocTitle ? value : THROW_CCE()); }; var $serializer_instance_8; function $serializer_getInstance_20() { if ($serializer_instance_8 == null) new $serializer_8(); return $serializer_instance_8; } function DocTitle_init_$Init$(seen1, texts, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_20().wo8_1); } $this.yo8_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_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.zo8_1 = [new ArrayListSerializer($serializer_getInstance_36())]; } var Companion_instance_63; function Companion_getInstance_31() { if (Companion_instance_63 == null) new Companion_14(); return Companion_instance_63; } function $serializer_9() { $serializer_instance_9 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.Head', this, 1); tmp0_serialDesc.t4f('metadata', true); tmp0_serialDesc.v4f(new XmlSerialName('head', 'http://www.daisy.org/z3986/2005/ncx/')); this.ao9_1 = tmp0_serialDesc; } protoOf($serializer_9).q44 = function () { return this.ao9_1; }; protoOf($serializer_9).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_31().zo8_1[0]]; }; protoOf($serializer_9).s44 = function (decoder) { var tmp0_desc = this.ao9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_31().zo8_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return Head_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_9).bo9 = function (encoder, value) { var tmp0_desc = this.ao9_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_31().zo8_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.co9_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.co9_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_9).r44 = function (encoder, value) { return this.bo9(encoder, value instanceof Head ? value : THROW_CCE()); }; var $serializer_instance_9; function $serializer_getInstance_21() { if ($serializer_instance_9 == null) new $serializer_9(); return $serializer_instance_9; } function Head_init_$Init$(seen1, metadata, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_21().ao9_1); } if (0 === (seen1 & 1)) $this.co9_1 = emptyList(); else $this.co9_1 = metadata; return $this; } function Head_init_$Create$(seen1, metadata, serializationConstructorMarker) { return Head_init_$Init$(seen1, metadata, serializationConstructorMarker, objectCreate(protoOf(Head))); } function Head(metadata) { Companion_getInstance_31(); metadata = metadata === VOID ? emptyList() : metadata; this.co9_1 = metadata; } function $serializer_10() { $serializer_instance_10 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavLabel', this, 1); tmp0_serialDesc.t4f('text', false); tmp0_serialDesc.v4f(new XmlSerialName('navLabel', 'http://www.daisy.org/z3986/2005/ncx/')); this.do9_1 = tmp0_serialDesc; } protoOf($serializer_10).q44 = function () { return this.do9_1; }; protoOf($serializer_10).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_26()]; }; protoOf($serializer_10).s44 = function (decoder) { var tmp0_desc = this.do9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_26(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_26(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return NavLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_10).eo9 = function (encoder, value) { var tmp0_desc = this.do9_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_26(), value.fo9_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_10).r44 = function (encoder, value) { return this.eo9(encoder, value instanceof NavLabel ? value : THROW_CCE()); }; var $serializer_instance_10; function $serializer_getInstance_22() { if ($serializer_instance_10 == null) new $serializer_10(); return $serializer_instance_10; } function NavLabel_init_$Init$(seen1, text, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_22().do9_1); } $this.fo9_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_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.go9_1 = [new ArrayListSerializer($serializer_getInstance_24())]; } 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.NavMap', this, 1); tmp0_serialDesc.t4f('navPoints', false); tmp0_serialDesc.v4f(new XmlSerialName('navMap', 'http://www.daisy.org/z3986/2005/ncx/')); this.ho9_1 = tmp0_serialDesc; } protoOf($serializer_11).q44 = function () { return this.ho9_1; }; protoOf($serializer_11).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_32().go9_1[0]]; }; protoOf($serializer_11).s44 = function (decoder) { var tmp0_desc = this.ho9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_32().go9_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return NavMap_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_11).io9 = function (encoder, value) { var tmp0_desc = this.ho9_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_32().go9_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.jo9_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_11).r44 = function (encoder, value) { return this.io9(encoder, value instanceof NavMap ? value : THROW_CCE()); }; var $serializer_instance_11; function $serializer_getInstance_23() { if ($serializer_instance_11 == null) new $serializer_11(); return $serializer_instance_11; } function NavMap_init_$Init$(seen1, navPoints, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_23().ho9_1); } $this.jo9_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_16() { Companion_instance_65 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.ko9_1 = [new ArrayListSerializer($serializer_getInstance_22()), null, null, null]; } var Companion_instance_65; function Companion_getInstance_33() { if (Companion_instance_65 == null) new Companion_16(); return Companion_instance_65; } function $serializer_12() { $serializer_instance_12 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.ncx.NavPoint', this, 4); tmp0_serialDesc.t4f('navLabels', false); tmp0_serialDesc.t4f('content', false); tmp0_serialDesc.t4f('id', false); tmp0_serialDesc.t4f('childPoints', false); tmp0_serialDesc.v4f(new XmlSerialName('navPoint', 'http://www.daisy.org/z3986/2005/ncx/')); this.lo9_1 = tmp0_serialDesc; } protoOf($serializer_12).q44 = function () { return this.lo9_1; }; protoOf($serializer_12).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_33().ko9_1[0], $serializer_getInstance_19(), StringSerializer_getInstance(), new ArrayListSerializer($serializer_getInstance_24())]; }; protoOf($serializer_12).s44 = function (decoder) { var tmp0_desc = this.lo9_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.i48(tmp0_desc); var tmp9_cached = Companion_getInstance_33().ko9_1; if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.u48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_24()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.u48(tmp0_desc, 1, $serializer_getInstance_19(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.u48(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_24()), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return NavPoint_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_12).mo9 = function (encoder, value) { var tmp0_desc = this.lo9_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_33().ko9_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.no9_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_19(), value.oo9_1); tmp1_output.w49(tmp0_desc, 2, value.po9_1); tmp1_output.y49(tmp0_desc, 3, new ArrayListSerializer($serializer_getInstance_24()), value.qo9_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_12).r44 = function (encoder, value) { return this.mo9(encoder, value instanceof NavPoint ? value : THROW_CCE()); }; var $serializer_instance_12; function $serializer_getInstance_24() { if ($serializer_instance_12 == null) new $serializer_12(); return $serializer_instance_12; } function NavPoint_init_$Init$(seen1, navLabels, content, id, childPoints, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_24().lo9_1); } $this.no9_1 = navLabels; $this.oo9_1 = content; $this.po9_1 = id; $this.qo9_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_17() { this.ro9_1 = 'http://www.daisy.org/z3986/2005/ncx/'; this.so9_1 = 'application/x-dtbncx+xml'; } 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.NcxDocument', this, 3); tmp0_serialDesc.t4f('head', false); tmp0_serialDesc.t4f('docTitle', false); tmp0_serialDesc.t4f('navMap', false); tmp0_serialDesc.v4f(new XmlSerialName('ncx', 'http://www.daisy.org/z3986/2005/ncx/')); this.to9_1 = tmp0_serialDesc; } protoOf($serializer_13).q44 = function () { return this.to9_1; }; protoOf($serializer_13).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_21(), $serializer_getInstance_20(), $serializer_getInstance_23()]; }; protoOf($serializer_13).s44 = function (decoder) { var tmp0_desc = this.to9_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.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.u48(tmp0_desc, 0, $serializer_getInstance_21(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, $serializer_getInstance_20(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, $serializer_getInstance_23(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.u48(tmp0_desc, 0, $serializer_getInstance_21(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, $serializer_getInstance_20(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, $serializer_getInstance_23(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return NcxDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_13).uo9 = function (encoder, value) { var tmp0_desc = this.to9_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_21(), value.vo9_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_20(), value.wo9_1); tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_23(), value.xo9_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_13).r44 = function (encoder, value) { return this.uo9(encoder, value instanceof NcxDocument ? value : THROW_CCE()); }; var $serializer_instance_13; function $serializer_getInstance_25() { if ($serializer_instance_13 == null) new $serializer_13(); return $serializer_instance_13; } function NcxDocument_init_$Init$(seen1, head, docTitle, navMap, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_25().to9_1); } $this.vo9_1 = head; $this.wo9_1 = docTitle; $this.xo9_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.vo9_1 = head; this.wo9_1 = docTitle; this.xo9_1 = navMap; } 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.ncx.Text', this, 1); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('text', 'http://www.daisy.org/z3986/2005/ncx/')); this.yo9_1 = tmp0_serialDesc; } protoOf($serializer_14).q44 = function () { return this.yo9_1; }; protoOf($serializer_14).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_14).s44 = function (decoder) { var tmp0_desc = this.yo9_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return Text_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_14).zo9 = function (encoder, value) { var tmp0_desc = this.yo9_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.aoa_1 === '')) { tmp1_output.w49(tmp0_desc, 0, value.aoa_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_14).r44 = function (encoder, value) { return this.zo9(encoder, value instanceof Text ? value : THROW_CCE()); }; var $serializer_instance_14; function $serializer_getInstance_26() { if ($serializer_instance_14 == null) new $serializer_14(); return $serializer_instance_14; } function Text_init_$Init$(seen1, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_26().yo9_1); } if (0 === (seen1 & 1)) $this.aoa_1 = ''; else $this.aoa_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.aoa_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.DcCreator', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('creator', 'http://purl.org/dc/elements/1.1/')); this.boa_1 = tmp0_serialDesc; } protoOf($serializer_15).q44 = function () { return this.boa_1; }; protoOf($serializer_15).k4g = 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).s44 = function (decoder) { var tmp0_desc = this.boa_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcCreator_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_15).coa = function (encoder, value) { var tmp0_desc = this.boa_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.doa_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.doa_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.eoa_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.eoa_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_15).r44 = function (encoder, value) { return this.coa(encoder, value instanceof DcCreator ? value : THROW_CCE()); }; var $serializer_instance_15; function $serializer_getInstance_27() { if ($serializer_instance_15 == null) new $serializer_15(); return $serializer_instance_15; } function DcCreator_init_$Init$(seen1, id, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_27().boa_1); } if (0 === (seen1 & 1)) $this.doa_1 = null; else $this.doa_1 = id; if (0 === (seen1 & 2)) $this.eoa_1 = ''; else $this.eoa_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.doa_1 = id; this.eoa_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.DcDescription', this, 2); tmp0_serialDesc.t4f('lang', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('description', 'http://purl.org/dc/elements/1.1/')); this.foa_1 = tmp0_serialDesc; } protoOf($serializer_16).q44 = function () { return this.foa_1; }; protoOf($serializer_16).k4g = 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).s44 = function (decoder) { var tmp0_desc = this.foa_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcDescription_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_16).goa = function (encoder, value) { var tmp0_desc = this.foa_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.hoa_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.hoa_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ioa_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.ioa_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_16).r44 = function (encoder, value) { return this.goa(encoder, value instanceof DcDescription ? value : THROW_CCE()); }; var $serializer_instance_16; function $serializer_getInstance_28() { if ($serializer_instance_16 == null) new $serializer_16(); return $serializer_instance_16; } function DcDescription_init_$Init$(seen1, lang, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_28().foa_1); } if (0 === (seen1 & 1)) $this.hoa_1 = null; else $this.hoa_1 = lang; if (0 === (seen1 & 2)) $this.ioa_1 = ''; else $this.ioa_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.hoa_1 = lang; this.ioa_1 = content; } function Companion_21() { } var Companion_instance_70; function Companion_getInstance_38() { return Companion_instance_70; } function $serializer_17() { $serializer_instance_17 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcIdentifier', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('identifier', 'http://purl.org/dc/elements/1.1/')); this.joa_1 = tmp0_serialDesc; } protoOf($serializer_17).q44 = function () { return this.joa_1; }; protoOf($serializer_17).k4g = 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_17).s44 = function (decoder) { var tmp0_desc = this.joa_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcIdentifier_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_17).koa = function (encoder, value) { var tmp0_desc = this.joa_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.loa_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.loa_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.moa_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.moa_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_17).r44 = function (encoder, value) { return this.koa(encoder, value instanceof DcIdentifier ? value : THROW_CCE()); }; var $serializer_instance_17; function $serializer_getInstance_29() { if ($serializer_instance_17 == null) new $serializer_17(); return $serializer_instance_17; } function DcIdentifier_init_$Init$(seen1, id, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_29().joa_1); } if (0 === (seen1 & 1)) $this.loa_1 = null; else $this.loa_1 = id; if (0 === (seen1 & 2)) $this.moa_1 = ''; else $this.moa_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.loa_1 = id; this.moa_1 = content; } function $serializer_18() { $serializer_instance_18 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcLanguage', this, 1); tmp0_serialDesc.t4f('content', false); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('language', 'http://purl.org/dc/elements/1.1/')); this.noa_1 = tmp0_serialDesc; } protoOf($serializer_18).q44 = function () { return this.noa_1; }; protoOf($serializer_18).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_18).s44 = function (decoder) { var tmp0_desc = this.noa_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return DcLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_18).ooa = function (encoder, value) { var tmp0_desc = this.noa_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.poa_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_18).r44 = function (encoder, value) { return this.ooa(encoder, value instanceof DcLanguage ? value : THROW_CCE()); }; var $serializer_instance_18; function $serializer_getInstance_30() { if ($serializer_instance_18 == null) new $serializer_18(); return $serializer_instance_18; } function DcLanguage_init_$Init$(seen1, content, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_30().noa_1); } $this.poa_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_22() { } var Companion_instance_71; function Companion_getInstance_39() { return Companion_instance_71; } function $serializer_19() { $serializer_instance_19 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.DcTitle', this, 2); tmp0_serialDesc.t4f('lang', true); tmp0_serialDesc.u4f(new XmlSerialName(VOID, VOID, 'xml')); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.u4f(new XmlValue()); tmp0_serialDesc.v4f(new XmlSerialName('title', 'http://purl.org/dc/elements/1.1/')); this.qoa_1 = tmp0_serialDesc; } protoOf($serializer_19).q44 = function () { return this.qoa_1; }; protoOf($serializer_19).k4g = 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_19).s44 = function (decoder) { var tmp0_desc = this.qoa_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return DcTitle_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_19).roa = function (encoder, value) { var tmp0_desc = this.qoa_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.soa_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.soa_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.toa_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.toa_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_19).r44 = function (encoder, value) { return this.roa(encoder, value instanceof DcTitle ? value : THROW_CCE()); }; var $serializer_instance_19; function $serializer_getInstance_31() { if ($serializer_instance_19 == null) new $serializer_19(); return $serializer_instance_19; } function DcTitle_init_$Init$(seen1, lang, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_31().qoa_1); } if (0 === (seen1 & 1)) $this.soa_1 = null; else $this.soa_1 = lang; if (0 === (seen1 & 2)) $this.toa_1 = ''; else $this.toa_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.soa_1 = lang; this.toa_1 = content; } function $serializer_20() { $serializer_instance_20 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Item', this, 4); tmp0_serialDesc.t4f('id', false); tmp0_serialDesc.t4f('href', false); tmp0_serialDesc.t4f('properties', true); tmp0_serialDesc.t4f('mediaType', false); tmp0_serialDesc.u4f(new XmlSerialName('media-type')); tmp0_serialDesc.v4f(new XmlSerialName('item', 'http://www.idpf.org/2007/opf')); this.uoa_1 = tmp0_serialDesc; } protoOf($serializer_20).q44 = function () { return this.uoa_1; }; protoOf($serializer_20).k4g = 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_20).s44 = function (decoder) { var tmp0_desc = this.uoa_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.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return Item_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_20).voa = function (encoder, value) { var tmp0_desc = this.uoa_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.woa_1); tmp1_output.w49(tmp0_desc, 1, value.xoa_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.yoa_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.yoa_1); } tmp1_output.w49(tmp0_desc, 3, value.zoa_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_20).r44 = function (encoder, value) { return this.voa(encoder, value instanceof Item ? value : THROW_CCE()); }; var $serializer_instance_20; function $serializer_getInstance_32() { if ($serializer_instance_20 == null) new $serializer_20(); return $serializer_instance_20; } function Item_init_$Init$(seen1, id, href, properties, mediaType, serializationConstructorMarker, $this) { if (!(11 === (11 & seen1))) { throwMissingFieldException(seen1, 11, $serializer_getInstance_32().uoa_1); } $this.woa_1 = id; $this.xoa_1 = href; if (0 === (seen1 & 4)) $this.yoa_1 = null; else $this.yoa_1 = properties; $this.zoa_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_23() { } var Companion_instance_72; function Companion_getInstance_40() { return Companion_instance_72; } function $serializer_21() { $serializer_instance_21 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.ItemRef', this, 1); tmp0_serialDesc.t4f('idRef', true); tmp0_serialDesc.u4f(new XmlSerialName('idref')); tmp0_serialDesc.v4f(new XmlSerialName('itemref', 'http://www.idpf.org/2007/opf')); this.aob_1 = tmp0_serialDesc; } protoOf($serializer_21).q44 = function () { return this.aob_1; }; protoOf($serializer_21).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_21).s44 = 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_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return ItemRef_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_21).bob = function (encoder, value) { var tmp0_desc = this.aob_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.cob_1 === '')) { tmp1_output.w49(tmp0_desc, 0, value.cob_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_21).r44 = function (encoder, value) { return this.bob(encoder, value instanceof ItemRef ? value : THROW_CCE()); }; var $serializer_instance_21; function $serializer_getInstance_33() { if ($serializer_instance_21 == null) new $serializer_21(); return $serializer_instance_21; } function ItemRef_init_$Init$(seen1, idRef, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_33().aob_1); } if (0 === (seen1 & 1)) $this.cob_1 = ''; else $this.cob_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.cob_1 = idRef; } function Companion_24() { Companion_instance_73 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.dob_1 = [new ArrayListSerializer($serializer_getInstance_32())]; } var Companion_instance_73; function Companion_getInstance_41() { if (Companion_instance_73 == null) new Companion_24(); return Companion_instance_73; } function $serializer_22() { $serializer_instance_22 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Manifest', this, 1); tmp0_serialDesc.t4f('items', true); tmp0_serialDesc.v4f(new XmlSerialName('manifest', 'http://www.idpf.org/2007/opf')); this.eob_1 = tmp0_serialDesc; } protoOf($serializer_22).q44 = function () { return this.eob_1; }; protoOf($serializer_22).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_41().dob_1[0]]; }; protoOf($serializer_22).s44 = function (decoder) { var tmp0_desc = this.eob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); var tmp6_cached = Companion_getInstance_41().dob_1; if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, tmp6_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return Manifest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_22).fob = function (encoder, value) { var tmp0_desc = this.eob_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_41().dob_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.gob_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.gob_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_22).r44 = function (encoder, value) { return this.fob(encoder, value instanceof Manifest ? value : THROW_CCE()); }; var $serializer_instance_22; function $serializer_getInstance_34() { if ($serializer_instance_22 == null) new $serializer_22(); return $serializer_instance_22; } function Manifest_init_$Init$(seen1, items, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_34().eob_1); } if (0 === (seen1 & 1)) $this.gob_1 = emptyList(); else $this.gob_1 = items; return $this; } function Manifest_init_$Create$(seen1, items, serializationConstructorMarker) { return Manifest_init_$Init$(seen1, items, serializationConstructorMarker, objectCreate(protoOf(Manifest))); } function Manifest(items) { Companion_getInstance_41(); items = items === VOID ? emptyList() : items; this.gob_1 = items; } function Companion_25() { } var Companion_instance_74; function Companion_getInstance_42() { return Companion_instance_74; } function $serializer_23() { $serializer_instance_23 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Meta', this, 2); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('content', true); tmp0_serialDesc.v4f(new XmlSerialName('meta', 'http://www.idpf.org/2007/opf')); this.hob_1 = tmp0_serialDesc; } protoOf($serializer_23).q44 = function () { return this.hob_1; }; protoOf($serializer_23).k4g = 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_23).s44 = function (decoder) { var tmp0_desc = this.hob_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Meta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_23).iob = function (encoder, value) { var tmp0_desc = this.hob_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.job_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.job_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.kob_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.kob_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_23).r44 = function (encoder, value) { return this.iob(encoder, value instanceof Meta ? value : THROW_CCE()); }; var $serializer_instance_23; function $serializer_getInstance_35() { if ($serializer_instance_23 == null) new $serializer_23(); return $serializer_instance_23; } function Meta_init_$Init$(seen1, name, content, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_35().hob_1); } if (0 === (seen1 & 1)) $this.job_1 = null; else $this.job_1 = name; if (0 === (seen1 & 2)) $this.kob_1 = null; else $this.kob_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.job_1 = name; this.kob_1 = content; } function Companion_26() { Companion_instance_75 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.lob_1 = [new ArrayListSerializer($serializer_getInstance_31()), new ArrayListSerializer($serializer_getInstance_27()), new ArrayListSerializer($serializer_getInstance_30()), new ArrayListSerializer($serializer_getInstance_28()), new ArrayListSerializer($serializer_getInstance_29()), new ArrayListSerializer($serializer_getInstance_35())]; } var Companion_instance_75; function Companion_getInstance_43() { if (Companion_instance_75 == null) new Companion_26(); return Companion_instance_75; } function $serializer_24() { $serializer_instance_24 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.Metadata', this, 6); tmp0_serialDesc.t4f('titles', true); tmp0_serialDesc.t4f('creators', true); tmp0_serialDesc.t4f('languages', true); tmp0_serialDesc.t4f('descriptions', true); tmp0_serialDesc.t4f('identifiers', true); tmp0_serialDesc.t4f('metas', true); tmp0_serialDesc.v4f(new XmlSerialName('metadata', 'http://www.idpf.org/2007/opf')); this.mob_1 = tmp0_serialDesc; } protoOf($serializer_24).q44 = function () { return this.mob_1; }; protoOf($serializer_24).k4g = function () { var tmp0_cached = Companion_getInstance_43().lob_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_24).s44 = function (decoder) { var tmp0_desc = this.mob_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.i48(tmp0_desc); var tmp11_cached = Companion_getInstance_43().lob_1; if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.u48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.u48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.u48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.u48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.u48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.u48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.u48(tmp0_desc, 0, tmp11_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.u48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.u48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.u48(tmp0_desc, 3, tmp11_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.u48(tmp0_desc, 4, tmp11_cached[4], tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.u48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return Metadata_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_24).nob = function (encoder, value) { var tmp0_desc = this.mob_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_43().lob_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.oob_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.oob_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !equals(value.pob_1, emptyList())) { tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.pob_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !equals(value.qob_1, emptyList())) { tmp1_output.y49(tmp0_desc, 2, tmp2_cached[2], value.qob_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.rob_1, emptyList())) { tmp1_output.y49(tmp0_desc, 3, tmp2_cached[3], value.rob_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !equals(value.sob_1, emptyList())) { tmp1_output.y49(tmp0_desc, 4, tmp2_cached[4], value.sob_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !equals(value.tob_1, emptyList())) { tmp1_output.y49(tmp0_desc, 5, tmp2_cached[5], value.tob_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_24).r44 = function (encoder, value) { return this.nob(encoder, value instanceof Metadata ? value : THROW_CCE()); }; var $serializer_instance_24; function $serializer_getInstance_36() { if ($serializer_instance_24 == null) new $serializer_24(); return $serializer_instance_24; } function Metadata_init_$Init$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_36().mob_1); } if (0 === (seen1 & 1)) $this.oob_1 = emptyList(); else $this.oob_1 = titles; if (0 === (seen1 & 2)) $this.pob_1 = emptyList(); else $this.pob_1 = creators; if (0 === (seen1 & 4)) $this.qob_1 = emptyList(); else $this.qob_1 = languages; if (0 === (seen1 & 8)) $this.rob_1 = emptyList(); else $this.rob_1 = descriptions; if (0 === (seen1 & 16)) $this.sob_1 = emptyList(); else $this.sob_1 = identifiers; if (0 === (seen1 & 32)) $this.tob_1 = emptyList(); else $this.tob_1 = metas; return $this; } function Metadata_init_$Create$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker) { return Metadata_init_$Init$(seen1, titles, creators, languages, descriptions, identifiers, metas, serializationConstructorMarker, objectCreate(protoOf(Metadata))); } function Metadata(titles, creators, languages, descriptions, identifiers, metas) { Companion_getInstance_43(); titles = titles === VOID ? emptyList() : titles; creators = creators === VOID ? emptyList() : creators; languages = languages === VOID ? emptyList() : languages; descriptions = descriptions === VOID ? emptyList() : descriptions; identifiers = identifiers === VOID ? emptyList() : identifiers; metas = metas === VOID ? emptyList() : metas; this.oob_1 = titles; this.pob_1 = creators; this.qob_1 = languages; this.rob_1 = descriptions; this.sob_1 = identifiers; this.tob_1 = metas; } function Companion_27() { this.uob_1 = 'http://www.idpf.org/2007/opf'; this.vob_1 = 'http://purl.org/dc/elements/1.1/'; } protoOf(Companion_27).n4r = function () { return $serializer_getInstance_37(); }; var Companion_instance_76; function Companion_getInstance_44() { return Companion_instance_76; } function $serializer_25() { $serializer_instance_25 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.epub.opf.PackageDocument', this, 5); tmp0_serialDesc.t4f('version', true); tmp0_serialDesc.t4f('uniqueIdentifier', true); tmp0_serialDesc.u4f(new XmlSerialName('unique-identifier')); tmp0_serialDesc.t4f('metadata', true); tmp0_serialDesc.t4f('manifest', true); tmp0_serialDesc.t4f('spine', true); tmp0_serialDesc.v4f(new XmlSerialName('package', 'http://www.idpf.org/2007/opf')); this.wob_1 = tmp0_serialDesc; } protoOf($serializer_25).q44 = function () { return this.wob_1; }; protoOf($serializer_25).k4g = 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_36(), $serializer_getInstance_34(), $serializer_getInstance_38()]; }; protoOf($serializer_25).s44 = function (decoder) { var tmp0_desc = this.wob_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_input = decoder.i48(tmp0_desc); if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.u48(tmp0_desc, 2, $serializer_getInstance_36(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, $serializer_getInstance_34(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.u48(tmp0_desc, 4, $serializer_getInstance_38(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.u48(tmp0_desc, 2, $serializer_getInstance_36(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, $serializer_getInstance_34(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.u48(tmp0_desc, 4, $serializer_getInstance_38(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return PackageDocument_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_25).xob = function (encoder, value) { var tmp0_desc = this.wob_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.yob_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.yob_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.zob_1 === '')) { tmp1_output.w49(tmp0_desc, 1, value.zob_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !equals(value.aoc_1, new Metadata())) { tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_36(), value.aoc_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.boc_1, new Manifest())) { tmp1_output.y49(tmp0_desc, 3, $serializer_getInstance_34(), value.boc_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !equals(value.coc_1, new Spine())) { tmp1_output.y49(tmp0_desc, 4, $serializer_getInstance_38(), value.coc_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_25).r44 = function (encoder, value) { return this.xob(encoder, value instanceof PackageDocument ? value : THROW_CCE()); }; var $serializer_instance_25; function $serializer_getInstance_37() { if ($serializer_instance_25 == null) new $serializer_25(); return $serializer_instance_25; } function PackageDocument_init_$Init$(seen1, version, uniqueIdentifier, metadata, manifest, spine, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_37().wob_1); } if (0 === (seen1 & 1)) $this.yob_1 = null; else $this.yob_1 = version; if (0 === (seen1 & 2)) $this.zob_1 = ''; else $this.zob_1 = uniqueIdentifier; if (0 === (seen1 & 4)) $this.aoc_1 = new Metadata(); else $this.aoc_1 = metadata; if (0 === (seen1 & 8)) $this.boc_1 = new Manifest(); else $this.boc_1 = manifest; if (0 === (seen1 & 16)) $this.coc_1 = new Spine(); else $this.coc_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.yob_1 = version; this.zob_1 = uniqueIdentifier; this.aoc_1 = metadata; this.boc_1 = manifest; this.coc_1 = spine; } protoOf(PackageDocument).doc = function () { var whitespaceRegex = Regex_init_$Create$('\\s+'); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.boc_1.gob_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.yoa_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.aoc_1.tob_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.job_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.kob_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.boc_1.gob_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.woa_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).eoc = function () { var whiteSpaceRegex = Regex_init_$Create$('\\s+'); // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.boc_1.gob_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.yoa_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.coc_1.goc_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.boc_1.gob_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.woa_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.yoa_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_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.hoc_1 = [new ArrayListSerializer($serializer_getInstance_33()), null]; } 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.epub.opf.Spine', this, 2); tmp0_serialDesc.t4f('itemRefs', true); tmp0_serialDesc.t4f('toc', true); tmp0_serialDesc.v4f(new XmlSerialName('spine', 'http://www.idpf.org/2007/opf')); this.ioc_1 = tmp0_serialDesc; } protoOf($serializer_26).q44 = function () { return this.ioc_1; }; protoOf($serializer_26).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_45().hoc_1[0], get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_26).s44 = function (decoder) { var tmp0_desc = this.ioc_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.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_45().hoc_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Spine_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_26).joc = function (encoder, value) { var tmp0_desc = this.ioc_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_45().hoc_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !equals(value.foc_1, emptyList())) { tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.foc_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.goc_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.goc_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_26).r44 = function (encoder, value) { return this.joc(encoder, value instanceof Spine ? value : THROW_CCE()); }; var $serializer_instance_26; function $serializer_getInstance_38() { if ($serializer_instance_26 == null) new $serializer_26(); return $serializer_instance_26; } function Spine_init_$Init$(seen1, itemRefs, toc, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_38().ioc_1); } if (0 === (seen1 & 1)) $this.foc_1 = emptyList(); else $this.foc_1 = itemRefs; if (0 === (seen1 & 2)) $this.goc_1 = null; else $this.goc_1 = toc; return $this; } function Spine_init_$Create$(seen1, itemRefs, toc, serializationConstructorMarker) { return Spine_init_$Init$(seen1, itemRefs, toc, serializationConstructorMarker, objectCreate(protoOf(Spine))); } function Spine(itemRefs, toc) { Companion_getInstance_45(); itemRefs = itemRefs === VOID ? emptyList() : itemRefs; toc = toc === VOID ? null : toc; this.foc_1 = itemRefs; this.goc_1 = toc; } 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.koc_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new ArrayListSerializer($serializer_getInstance_40())]; } 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.ContentManifest', this, 3); tmp0_serialDesc.t4f('version', false); tmp0_serialDesc.t4f('metadata', false); tmp0_serialDesc.t4f('entries', false); this.loc_1 = tmp0_serialDesc; } protoOf($serializer_27).q44 = function () { return this.loc_1; }; protoOf($serializer_27).k4g = function () { var tmp0_cached = Companion_getInstance_46().koc_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_27).s44 = function (decoder) { var tmp0_desc = this.loc_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.i48(tmp0_desc); var tmp8_cached = Companion_getInstance_46().koc_1; if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.u48(tmp0_desc, 1, tmp8_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, tmp8_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return ContentManifest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_27).moc = function (encoder, value) { var tmp0_desc = this.loc_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_46().koc_1; tmp1_output.r49(tmp0_desc, 0, value.noc_1); tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.ooc_1); tmp1_output.y49(tmp0_desc, 2, tmp2_cached[2], value.poc_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_27).r44 = function (encoder, value) { return this.moc(encoder, value instanceof ContentManifest ? value : THROW_CCE()); }; var $serializer_instance_27; function $serializer_getInstance_39() { if ($serializer_instance_27 == null) new $serializer_27(); return $serializer_instance_27; } function ContentManifest_init_$Init$(seen1, version, metadata, entries, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_39().loc_1); } $this.noc_1 = version; $this.ooc_1 = metadata; $this.poc_1 = entries; return $this; } function ContentManifest_init_$Create$(seen1, version, metadata, entries, serializationConstructorMarker) { return ContentManifest_init_$Init$(seen1, version, metadata, entries, serializationConstructorMarker, objectCreate(protoOf(ContentManifest))); } function ContentManifest(version, metadata, entries) { Companion_getInstance_46(); this.noc_1 = version; this.ooc_1 = metadata; this.poc_1 = entries; } protoOf(ContentManifest).toString = function () { return 'ContentManifest(version=' + this.noc_1 + ', metadata=' + this.ooc_1 + ', entries=' + this.poc_1 + ')'; }; protoOf(ContentManifest).hashCode = function () { var result = this.noc_1; result = imul(result, 31) + hashCode(this.ooc_1) | 0; result = imul(result, 31) + hashCode(this.poc_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.noc_1 === tmp0_other_with_cast.noc_1)) return false; if (!equals(this.ooc_1, tmp0_other_with_cast.ooc_1)) return false; if (!equals(this.poc_1, tmp0_other_with_cast.poc_1)) return false; return true; }; 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.qoc_1 = [null, null, null, null, null, null, new StringValuesSerializer(), new StringValuesSerializer(), null]; } 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.manifest.ContentManifestEntry', this, 9); tmp0_serialDesc.t4f('uri', false); tmp0_serialDesc.t4f('storageSize', false); tmp0_serialDesc.t4f('ignoreQueryParams', true); tmp0_serialDesc.t4f('status', true); tmp0_serialDesc.t4f('method', true); tmp0_serialDesc.t4f('integrity', false); tmp0_serialDesc.t4f('requestHeaders', true); tmp0_serialDesc.t4f('responseHeaders', false); tmp0_serialDesc.t4f('bodyDataUrl', false); this.roc_1 = tmp0_serialDesc; } protoOf($serializer_28).q44 = function () { return this.roc_1; }; protoOf($serializer_28).k4g = function () { var tmp0_cached = Companion_getInstance_47().qoc_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_28).s44 = function (decoder) { var tmp0_desc = this.roc_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.i48(tmp0_desc); var tmp14_cached = Companion_getInstance_47().qoc_1; if (tmp13_input.x48()) { tmp4_local0 = tmp13_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.n48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.u48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.u48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.s48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.n48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.u48(tmp0_desc, 6, tmp14_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.u48(tmp0_desc, 7, tmp14_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.s48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.j48(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_28).soc = function (encoder, value) { var tmp0_desc = this.roc_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_47().qoc_1; tmp1_output.w49(tmp0_desc, 0, value.toc_1); tmp1_output.s49(tmp0_desc, 1, value.uoc_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.voc_1 === true)) { tmp1_output.o49(tmp0_desc, 2, value.voc_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.woc_1 === 200)) { tmp1_output.r49(tmp0_desc, 3, value.woc_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.xoc_1 === 'GET')) { tmp1_output.w49(tmp0_desc, 4, value.xoc_1); } tmp1_output.w49(tmp0_desc, 5, value.yoc_1); if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.zoc_1, emptyStringValues())) { tmp1_output.y49(tmp0_desc, 6, tmp2_cached[6], value.zoc_1); } tmp1_output.y49(tmp0_desc, 7, tmp2_cached[7], value.aod_1); tmp1_output.w49(tmp0_desc, 8, value.bod_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_28).r44 = function (encoder, value) { return this.soc(encoder, value instanceof ContentManifestEntry ? value : THROW_CCE()); }; var $serializer_instance_28; function $serializer_getInstance_40() { if ($serializer_instance_28 == null) new $serializer_28(); return $serializer_instance_28; } 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_40().roc_1); } $this.toc_1 = uri; $this.uoc_1 = storageSize; if (0 === (seen1 & 4)) $this.voc_1 = true; else $this.voc_1 = ignoreQueryParams; if (0 === (seen1 & 8)) $this.woc_1 = 200; else $this.woc_1 = status; if (0 === (seen1 & 16)) $this.xoc_1 = 'GET'; else $this.xoc_1 = method; $this.yoc_1 = integrity; if (0 === (seen1 & 64)) $this.zoc_1 = emptyStringValues(); else $this.zoc_1 = requestHeaders; $this.aod_1 = responseHeaders; $this.bod_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_31() { Companion_instance_80 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.cod_1 = [new ArrayListSerializer($serializer_getInstance_42()), new ArrayListSerializer($serializer_getInstance_43())]; } var Companion_instance_80; function Companion_getInstance_48() { if (Companion_instance_80 == null) new Companion_31(); return Companion_instance_80; } function $serializer_29() { $serializer_instance_29 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaContentInfo', this, 2); tmp0_serialDesc.t4f('sources', false); tmp0_serialDesc.t4f('subtitles', true); this.dod_1 = tmp0_serialDesc; } protoOf($serializer_29).q44 = function () { return this.dod_1; }; protoOf($serializer_29).k4g = function () { var tmp0_cached = Companion_getInstance_48().cod_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_29).s44 = function (decoder) { var tmp0_desc = this.dod_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.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_48().cod_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return MediaContentInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_29).eod = function (encoder, value) { var tmp0_desc = this.dod_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_48().cod_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.fod_1); if (tmp1_output.e4a(tmp0_desc, 1) ? true : !equals(value.god_1, emptyList())) { tmp1_output.y49(tmp0_desc, 1, tmp2_cached[1], value.god_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_29).r44 = function (encoder, value) { return this.eod(encoder, value instanceof MediaContentInfo ? value : THROW_CCE()); }; var $serializer_instance_29; function $serializer_getInstance_41() { if ($serializer_instance_29 == null) new $serializer_29(); return $serializer_instance_29; } function MediaContentInfo_init_$Init$(seen1, sources, subtitles, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_41().dod_1); } $this.fod_1 = sources; if (0 === (seen1 & 2)) $this.god_1 = emptyList(); else $this.god_1 = subtitles; return $this; } function MediaContentInfo_init_$Create$(seen1, sources, subtitles, serializationConstructorMarker) { return MediaContentInfo_init_$Init$(seen1, sources, subtitles, serializationConstructorMarker, objectCreate(protoOf(MediaContentInfo))); } function MediaContentInfo(sources, subtitles) { Companion_getInstance_48(); subtitles = subtitles === VOID ? emptyList() : subtitles; this.fod_1 = sources; this.god_1 = subtitles; } function $serializer_30() { $serializer_instance_30 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.contentformats.media.MediaSource', this, 2); tmp0_serialDesc.t4f('uri', false); tmp0_serialDesc.t4f('mimeType', false); this.hod_1 = tmp0_serialDesc; } protoOf($serializer_30).q44 = function () { return this.hod_1; }; protoOf($serializer_30).k4g = 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_30).s44 = function (decoder) { var tmp0_desc = this.hod_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return MediaSource_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_30).iod = function (encoder, value) { var tmp0_desc = this.hod_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.jod_1); tmp1_output.w49(tmp0_desc, 1, value.kod_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_30).r44 = function (encoder, value) { return this.iod(encoder, value instanceof MediaSource ? value : THROW_CCE()); }; var $serializer_instance_30; function $serializer_getInstance_42() { if ($serializer_instance_30 == null) new $serializer_30(); return $serializer_instance_30; } function MediaSource_init_$Init$(seen1, uri, mimeType, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_42().hod_1); } $this.jod_1 = uri; $this.kod_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_32() { } protoOf(Companion_32).n4r = 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.contentformats.media.SubtitleTrack', this, 4); tmp0_serialDesc.t4f('uri', false); tmp0_serialDesc.t4f('mimeType', false); tmp0_serialDesc.t4f('langCode', false); tmp0_serialDesc.t4f('title', false); this.lod_1 = tmp0_serialDesc; } protoOf($serializer_31).q44 = function () { return this.lod_1; }; protoOf($serializer_31).k4g = 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_31).s44 = function (decoder) { var tmp0_desc = this.lod_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.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return SubtitleTrack_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_31).mod = function (encoder, value) { var tmp0_desc = this.lod_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.nod_1); tmp1_output.w49(tmp0_desc, 1, value.ood_1); tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.pod_1); tmp1_output.w49(tmp0_desc, 3, value.qod_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_31).r44 = function (encoder, value) { return this.mod(encoder, value instanceof SubtitleTrack ? value : THROW_CCE()); }; var $serializer_instance_31; function $serializer_getInstance_43() { if ($serializer_instance_31 == null) new $serializer_31(); return $serializer_instance_31; } function SubtitleTrack_init_$Init$(seen1, uri, mimeType, langCode, title, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_43().lod_1); } $this.nod_1 = uri; $this.ood_1 = mimeType; $this.pod_1 = langCode; $this.qod_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.nod_1 = uri; this.ood_1 = mimeType; this.pod_1 = langCode; this.qod_1 = title; } protoOf(SubtitleTrack).rod = function (uri, mimeType, langCode, title) { return new SubtitleTrack(uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).sod = function (uri, mimeType, langCode, title, $super) { uri = uri === VOID ? this.nod_1 : uri; mimeType = mimeType === VOID ? this.ood_1 : mimeType; langCode = langCode === VOID ? this.pod_1 : langCode; title = title === VOID ? this.qod_1 : title; return $super === VOID ? this.rod(uri, mimeType, langCode, title) : $super.rod.call(this, uri, mimeType, langCode, title); }; protoOf(SubtitleTrack).toString = function () { return 'SubtitleTrack(uri=' + this.nod_1 + ', mimeType=' + this.ood_1 + ', langCode=' + this.pod_1 + ', title=' + this.qod_1 + ')'; }; protoOf(SubtitleTrack).hashCode = function () { var result = getStringHashCode(this.nod_1); result = imul(result, 31) + getStringHashCode(this.ood_1) | 0; result = imul(result, 31) + (this.pod_1 == null ? 0 : getStringHashCode(this.pod_1)) | 0; result = imul(result, 31) + getStringHashCode(this.qod_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.nod_1 === tmp0_other_with_cast.nod_1)) return false; if (!(this.ood_1 === tmp0_other_with_cast.ood_1)) return false; if (!(this.pod_1 == tmp0_other_with_cast.pod_1)) return false; if (!(this.qod_1 === tmp0_other_with_cast.qod_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_33() { this.tod_1 = 'upload-tmp'; this.uod_1 = 'upload-tmp:///'; } protoOf(Companion_33).n4r = 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.contentjob.MetadataResult', this, 4); tmp0_serialDesc.t4f('entry', false); tmp0_serialDesc.t4f('importerId', false); tmp0_serialDesc.t4f('originalFilename', true); tmp0_serialDesc.t4f('picture', true); this.vod_1 = tmp0_serialDesc; } protoOf($serializer_32).q44 = function () { return this.vod_1; }; protoOf($serializer_32).k4g = 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_32).s44 = function (decoder) { var tmp0_desc = this.vod_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.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, $serializer_getInstance_3(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, $serializer_getInstance_4(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return MetadataResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_32).wod = function (encoder, value) { var tmp0_desc = this.vod_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_3(), value.xod_1); tmp1_output.r49(tmp0_desc, 1, value.yod_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.zod_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.zod_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.aoe_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, $serializer_getInstance_4(), value.aoe_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_32).r44 = function (encoder, value) { return this.wod(encoder, value instanceof MetadataResult ? value : THROW_CCE()); }; var $serializer_instance_32; function $serializer_getInstance_44() { if ($serializer_instance_32 == null) new $serializer_32(); return $serializer_instance_32; } function MetadataResult_init_$Init$(seen1, entry, importerId, originalFilename, picture, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_44().vod_1); } $this.xod_1 = entry; $this.yod_1 = importerId; if (0 === (seen1 & 4)) $this.zod_1 = null; else $this.zod_1 = originalFilename; if (0 === (seen1 & 8)) $this.aoe_1 = null; else $this.aoe_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.xod_1 = entry; this.yod_1 = importerId; this.zod_1 = originalFilename; this.aoe_1 = picture; } protoOf(MetadataResult).toString = function () { return 'MetadataResult(entry=' + this.xod_1 + ', importerId=' + this.yod_1 + ', originalFilename=' + this.zod_1 + ', picture=' + this.aoe_1 + ')'; }; protoOf(MetadataResult).hashCode = function () { var result = this.xod_1.hashCode(); result = imul(result, 31) + this.yod_1 | 0; result = imul(result, 31) + (this.zod_1 == null ? 0 : getStringHashCode(this.zod_1)) | 0; result = imul(result, 31) + (this.aoe_1 == null ? 0 : this.aoe_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.xod_1.equals(tmp0_other_with_cast.xod_1)) return false; if (!(this.yod_1 === tmp0_other_with_cast.yod_1)) return false; if (!(this.zod_1 == tmp0_other_with_cast.zod_1)) return false; if (!equals(this.aoe_1, tmp0_other_with_cast.aoe_1)) return false; return true; }; function PersonConstants() { PersonConstants_instance = this; var tmp = this; var tmp_0 = to(1, strings_getInstance().emg_1); var tmp_1 = to(2, strings_getInstance().dmg_1); var tmp_2 = to(4, strings_getInstance().fmg_1); tmp.boe_1 = mapOf([tmp_0, tmp_1, tmp_2, to(0, strings_getInstance().gmg_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().gnc_1); var tmp_1 = to(4, strings_getInstance().qmi_1); var tmp_2 = to(1, strings_getInstance().hnc_1); var tmp_3 = to(2, strings_getInstance().inc_1); tmp.coe_1 = mapOf([tmp_0, tmp_1, tmp_2, tmp_3, to(3, strings_getInstance().yn5_1)]); var tmp_4 = this; Companion_getInstance_1(); var tmp_5 = to(0, strings_getInstance().zn0_1); Companion_getInstance_1(); var tmp_6 = to(1, strings_getInstance().yn0_1); Companion_getInstance_1(); tmp_4.doe_1 = mapOf([tmp_5, tmp_6, to(2, strings_getInstance().xn0_1)]); } var SubmissionConstants_instance; function SubmissionConstants_getInstance() { if (SubmissionConstants_instance == null) new SubmissionConstants(); return SubmissionConstants_instance; } function TerminologyKeys() { TerminologyKeys_instance = this; this.eoe_1 = 'Teacher'; this.foe_1 = 'Student'; this.goe_1 = 'Teachers'; this.hoe_1 = 'Students'; this.ioe_1 = 'AddTeacher'; this.joe_1 = 'AddStudent'; this.koe_1 = mapOf([to('Teacher', strings_getInstance().gmu_1), to('Student', strings_getInstance().tn0_1), to('Teachers', strings_getInstance().jmu_1), to('Students', strings_getInstance().emh_1), to('AddTeacher', strings_getInstance().hmu_1), to('AddStudent', strings_getInstance().fmh_1)]); } var TerminologyKeys_instance; function TerminologyKeys_getInstance() { if (TerminologyKeys_instance == null) new TerminologyKeys(); return TerminologyKeys_instance; } function ValidateUsernameUseCase() { } protoOf(ValidateUsernameUseCase).loe = function (username) { var isValid = true; // Inline function 'kotlin.text.isEmpty' call if (charSequenceLength(username) === 0) { isValid = false; } if (isValid) { if (contains(username, ' ')) { isValid = false; } } if (isValid) { var usernameChars = toCharArray(username); var inductionVariable = 1; // Inline function 'kotlin.collections.count' call var last = usernameChars.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (isUpperCase(usernameChars[i])) { isValid = false; } } while (inductionVariable < last); } return isValid; }; function $invokeCOROUTINE$11(_this__u8e3s4, destUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uoe_1 = _this__u8e3s4; this.voe_1 = destUri; } 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; this.hd_1 = 1; suspendResult = this.uoe_1.aof_1.ijy_1.v7e().bhj(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.woe_1 = suspendResult; this.id_1 = 4; var tmp_0 = this; var tmp0_safe_receiver = this.uoe_1.aof_1.jjy_1; tmp_0.yoe_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7e(); if (this.yoe_1 == null) { this.zoe_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.yoe_1.bhj(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.zoe_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: var tmp2_safe_receiver = this.zoe_1; this.xoe_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.nhj_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().i5e('GetRegistrationAllowedUseCase: Error occurred: ' + e.message, e); var tmp3_safe_receiver = this.woe_1; tmp_2.xoe_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.nhj_1; this.hd_1 = 5; continue $sm; } else { throw this.kd_1; } case 5: this.id_1 = 6; return this.xoe_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.aof_1 = dataLayer; } protoOf(CheckRegistrationAllowedUseCase).bof = function (destUri, $completion) { var tmp = new $invokeCOROUTINE$11(this, destUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function CreateNewLocalAccountUseCase(di) { this.cof_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.eof_1 = submission; } protoOf(SubmitAssignmentResult).toString = function () { return 'SubmitAssignmentResult(submission=' + this.eof_1 + ')'; }; protoOf(SubmitAssignmentResult).hashCode = function () { return this.eof_1 == null ? 0 : this.eof_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.eof_1, tmp0_other_with_cast.eof_1)) return false; return true; }; function SubmitAssignmentUseCase$invoke$lambda($assignmentUid, $submitterUid, $accountPersonUid, $assignment) { return function ($this$shallowCopy) { $this$shallowCopy.cc2_1 = $assignmentUid; $this$shallowCopy.dc2_1 = $submitterUid; $this$shallowCopy.ec2_1 = $accountPersonUid; $this$shallowCopy.hc2_1 = systemTimeInMillis(); $this$shallowCopy.ic2_1 = $assignment.f7u_1; return Unit_instance; }; } function $invokeCOROUTINE$12(_this__u8e3s4, repo, submitterUid, assignmentUid, accountPersonUid, submission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nof_1 = _this__u8e3s4; this.oof_1 = repo; this.pof_1 = submitterUid; this.qof_1 = assignmentUid; this.rof_1 = accountPersonUid; this.sof_1 = submission; } 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 = 6; if (this.pof_1.equals(new Long(0, 0))) throw new AccountIsNotSubmitterException('Not a valid submitter'); this.hd_1 = 1; suspendResult = this.oof_1.q7e().q7s(this.qof_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.tof_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.tof_1 == null) { throw IllegalArgumentException_init_$Create$('Could not find assignment uid ' + this.qof_1.toString()); } else { tmp_1 = this.tof_1; } tmp_0.uof_1 = tmp_1; var tmp_2 = this; var tmp1_elvis_lhs = this.uof_1.s7x_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.vof_1 = tmp_3; var tmp_4 = this; var tmp2_elvis_lhs = this.uof_1.r7x_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.wof_1 = tmp_5; var tmp_6 = this.wof_1.z7t_1; if (tmp_6 === 1) { this.hd_1 = 2; suspendResult = this.oof_1.r7e().jc1(this.rof_1, this.qof_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.xof_1 = false; this.hd_1 = 3; continue $sm; } case 2: this.xof_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: if (this.xof_1) { throw new AssignmentAlreadySubmittedException(this.nof_1.zof_1.eog(strings_getInstance().znf_1)); } else { this.hd_1 = 4; continue $sm; } case 4: if (lastPossibleSubmissionTime(this.vof_1).c7(systemTimeInMillis()) < 0) { throw new AssignmentDeadlinePassedException(this.nof_1.zof_1.eog(strings_getInstance().ynf_1)); } if (this.wof_1.b7u_1) { var tmp_7 = this.wof_1.c7u_1; if (tmp_7 === 1) { var tmp3_safe_receiver = this.sof_1.fc2_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.wof_1.d7u_1) { throw new AssignmentTextTooLongException(this.nof_1.zof_1.fog(strings_getInstance().ang_1, [wordCount.toString(), this.wof_1.d7u_1.toString()])); } } else { var tmp_8 = this.wof_1.c7u_1; if (tmp_8 === 2) { var tmp6_safe_receiver = this.sof_1.fc2_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.wof_1.d7u_1) { throw new AssignmentTextTooLongException(this.nof_1.zof_1.fog(strings_getInstance().bng_1, [charCount.toString(), this.wof_1.d7u_1.toString()])); } } } } var tmp_9 = this; tmp_9.yof_1 = shallowCopy_0(this.sof_1, SubmitAssignmentUseCase$invoke$lambda(this.qof_1, this.pof_1, this.rof_1, this.wof_1)); Napier_getInstance().i5e('SubmitAssignmentUseCase: save to repo for submitterUid=' + this.pof_1.toString() + ' assignmentUid=' + this.qof_1.toString()); this.hd_1 = 5; suspendResult = this.oof_1.r7e().insertAsync(this.yof_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return new SubmitAssignmentResult(this.yof_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.zof_1 = systemImpl; } protoOf(SubmitAssignmentUseCase).gog = function (repo, submitterUid, assignmentUid, accountPersonUid, submission, $completion) { var tmp = new $invokeCOROUTINE$12(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.xbv_1 = $assignment.n7t_1; $this$shallowCopy.ybv_1 = $submitterUid; $this$shallowCopy.zbv_1 = $activeUserSubmitterUid; $this$shallowCopy.abw_1 = $activeUserPerson.f96_1; var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $courseBlock.e7y_1; tmp.dbw_1 = tmp0_elvis_lhs == null ? 0.0 : tmp0_elvis_lhs; $this$shallowCopy.gbw_1 = $clazzUid; var tmp_0; if ($applyPenalty) { $this$shallowCopy.ebw_1 = roundTo($this$shallowCopy.cbw_1 * ($courseBlock.c7y_1 / 100.0), 2); $this$shallowCopy.cbw_1 = $this$shallowCopy.cbw_1 - $this$shallowCopy.ebw_1; tmp_0 = Unit_instance; } return Unit_instance; }; } function SubmitMarkUseCase$invoke$slambda(this$0, $stmt, $activeUserPerson, $courseBlock, $instructorActorToPersonUidMap, $actorToPersonUidMap, $clazzUid, $activityId, $markToRecord, resultContinuation) { this.pog_1 = this$0; this.qog_1 = $stmt; this.rog_1 = $activeUserPerson; this.sog_1 = $courseBlock; this.tog_1 = $instructorActorToPersonUidMap; this.uog_1 = $actorToPersonUidMap; this.vog_1 = $clazzUid; this.wog_1 = $activityId; this.xog_1 = $markToRecord; CoroutineImpl.call(this, resultContinuation); } protoOf(SubmitMarkUseCase$invoke$slambda).aoh = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubmitMarkUseCase$invoke$slambda).he = function (p1, $completion) { return this.aoh(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.zog_1 = uuid4(); this.hd_1 = 1; var tmp_0 = listOf_0(this.qog_1); var tmp0_xseAccountPersonUid = this.rog_1.f96_1; var tmp1_xseAccountUsername = ensureNotNull(this.rog_1.g96_1); var tmp2_xseCbUid = this.sog_1.t7x_1; var tmp3_xseRegistrationHi = this.zog_1.hm9(); var tmp4_xseRegistrationLo = this.zog_1.im9(); var tmp5_knownActorUidToPersonUids = this.pog_1.goh_1.r45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), plus_0(this.tog_1, this.uog_1)); suspendResult = this.pog_1.eoh_1.ooh(tmp_0, new XapiSessionEntity(VOID, VOID, tmp3_xseRegistrationHi, tmp4_xseRegistrationLo, VOID, tmp0_xseAccountPersonUid, VOID, tmp1_xseAccountUsername, this.vog_1, tmp2_xseCbUid, VOID, VOID, this.wog_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.pog_1.boh_1.t7e().insertAsync(this.xog_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).env = function (it, completion) { var i = new SubmitMarkUseCase$invoke$slambda(this.pog_1, this.qog_1, this.rog_1, this.sog_1, this.tog_1, this.uog_1, this.vog_1, this.wog_1, this.xog_1, completion); i.yog_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.aoh(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$13(_this__u8e3s4, activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xoh_1 = _this__u8e3s4; this.yoh_1 = activeUserPerson; this.zoh_1 = assignment; this.aoi_1 = clazzUid; this.boi_1 = submitterUid; this.coi_1 = draftMark; this.doi_1 = submissions; this.eoi_1 = courseBlock; } 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 = 8; var tmp_0 = this; var tmp_1; if (!this.doi_1.c1()) { var iterator = this.doi_1.w(); if (!iterator.f()) throw NoSuchElementException_init_$Create$(); var maxValue = iterator.e().hc2_1; while (iterator.f()) { var v = iterator.e().hc2_1; if (compareTo(maxValue, v) < 0) { maxValue = v; } } tmp_1 = maxValue.c7(this.eoi_1.b7y_1) > 0; } else { tmp_1 = false; } tmp_0.foi_1 = tmp_1; this.hd_1 = 1; suspendResult = this.xoh_1.boh_1.q7e().o7s(this.zoh_1.n7t_1, this.aoi_1, this.yoh_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.goi_1 = suspendResult; var tmp_2; if (this.zoh_1.q7t_1.equals(new Long(0, 0))) { tmp_2 = true; } else { var tmp_3 = this.zoh_1.a7u_1; tmp_2 = tmp_3 === 1; } if (tmp_2) { var tmp_4 = this; var activeUserPersonXapiAgent = toXapiAgent(this.yoh_1, this.xoh_1.coh_1); tmp_4.hoi_1 = to(activeUserPersonXapiAgent, mapOf_0(to(identifierHash(activeUserPersonXapiAgent, this.xoh_1.foh_1), this.yoh_1.f96_1))); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.xoh_1.doh_1.aoj(this.zoh_1.q7t_1, this.goi_1.mb(), this.zoh_1.f7u_1, this.zoh_1.n7t_1, this.yoh_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.ioi_1 = suspendResult; var tmp_5 = this; var it = this.ioi_1; tmp_5.hoi_1 = to(it.boj_1, it.coj_1); this.hd_1 = 3; continue $sm; case 3: this.joi_1 = this.hoi_1; this.koi_1 = this.joi_1.y6(); this.loi_1 = this.joi_1.z6(); if (this.zoh_1.q7t_1.equals(new Long(0, 0))) { this.hd_1 = 5; suspendResult = this.xoh_1.boh_1.n7d().ng2(this.boi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 4; suspendResult = this.xoh_1.doh_1.aoj(this.zoh_1.q7t_1, this.boi_1.mb(), this.zoh_1.f7u_1, this.zoh_1.n7t_1, this.yoh_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.noi_1 = suspendResult; var tmp_6 = this; var it_0 = this.noi_1; tmp_6.moi_1 = to(it_0.boj_1, it_0.coj_1); this.hd_1 = 6; continue $sm; case 5: this.ooi_1 = suspendResult; this.poi_1 = this.ooi_1 == null ? null : toXapiAgent(this.ooi_1, this.xoh_1.coh_1); var tmp_7 = this; var tmp_8; if (this.poi_1 == null) { throw IllegalStateException_init_$Create$('Could not find person for ' + this.boi_1.toString()); } else { tmp_8 = this.poi_1; } tmp_7.qoi_1 = tmp_8; this.moi_1 = to(this.qoi_1, mapOf_0(to(identifierHash(this.qoi_1, this.xoh_1.foh_1), this.boi_1))); this.hd_1 = 6; continue $sm; case 6: this.roi_1 = this.moi_1; this.soi_1 = this.roi_1.y6(); this.toi_1 = this.roi_1.z6(); var tmp_9 = this; tmp_9.uoi_1 = shallowCopy_1(this.coi_1, SubmitMarkUseCase$invoke$lambda(this.zoh_1, this.boi_1, this.goi_1, this.yoh_1, this.eoi_1, this.aoi_1, this.foi_1)); var tmp_10 = this; var tmp4_viewName = 'CourseAssignment'; var tmp5_learningSpace = this.xoh_1.coh_1.nnp_1; Companion_getInstance_123(); var tmp_11 = to('clazzUid', this.aoi_1.toString()); Companion_getInstance_123(); var tmp6_queryString = toQueryString(mapOf([tmp_11, to('entityUid', this.zoh_1.n7t_1.toString())])); tmp_10.voi_1 = (new UstadUrlComponents(tmp5_learningSpace, tmp4_viewName, tmp6_queryString)).ioj(); var tmp_12 = this; var tmp7_verb = new XapiVerb(get_VERB_COMPLETED()); var tmp8_object = new XapiActivityStatementObject(XapiObjectType_Activity_getInstance(), this.voi_1); var tmp9_context = new XapiContext(this.koi_1); var tmp10_result = new XapiResult(true, true, new Score(this.uoi_1.cbw_1 / this.uoi_1.dbw_1, this.uoi_1.cbw_1, 0.0, this.uoi_1.dbw_1)); tmp_12.woi_1 = new XapiStatement(VOID, this.soi_1, tmp7_verb, tmp8_object, tmp10_result, tmp9_context); this.hd_1 = 7; suspendResult = withDoorTransactionAsync(this.xoh_1.boh_1, VOID, SubmitMarkUseCase$invoke$slambda_0(this.xoh_1, this.woi_1, this.yoh_1, this.eoi_1, this.loi_1, this.toi_1, this.aoi_1, this.voi_1, this.uoi_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.boh_1 = repo; this.coh_1 = learningSpace; this.doh_1 = createXapiGroupUseCase; this.eoh_1 = xapiStatementResource; this.foh_1 = xxStringHasher; this.goh_1 = json; } protoOf(SubmitMarkUseCase).joj = function (activeUserPerson, assignment, clazzUid, submitterUid, draftMark, submissions, courseBlock, $completion) { var tmp = new $invokeCOROUTINE$13(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.soj_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda).xoj = function (value, $completion) { var tmp = this.yoj(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.xoj((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.voj_1 = this.soj_1; var tmp_1 = this; tmp_1.woj_1 = this.toj_1; var tmp0_safe_receiver = this.woj_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag7_1) == null)) { this.hd_1 = 3; suspendResult = this.voj_1.t1d(this.woj_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.uoj_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).yoj = function (value, completion) { var i = new GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda(this.soj_1, completion); i.toj_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.xoj(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$15(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hok_1 = _this__u8e3s4; this.iok_1 = collector; } protoOf($collectCOROUTINE$15).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.jok_1 = this.iok_1; this.hd_1 = 1; var tmp_1 = GetAssignmentSubmitterNameUseCase$invoke$o$collect$slambda_0(this.jok_1, null); suspendResult = this.hok_1.kok_1.a1c(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.lok_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).t1d = function (value, $completion) { return this.lok_1(value, $completion); }; function _no_name_provided__qut3iv($this) { this.kok_1 = $this; } protoOf(_no_name_provided__qut3iv).mok = function (collector, $completion) { var tmp = new $collectCOROUTINE$15(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv).a1c = function (collector, $completion) { return this.mok(collector, $completion); }; function $invokeCOROUTINE$14(_this__u8e3s4, submitterUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vok_1 = _this__u8e3s4; this.wok_1 = submitterUid; } protoOf($invokeCOROUTINE$14).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.wok_1.c7(toLong(10000)) < 0) { var tmp_0 = this; tmp_0.xok_1 = this.vok_1.zok_1.eog(strings_getInstance().nnb_1) + ' ' + this.wok_1.toString(); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var this_0 = this.vok_1.yok_1.n7d().rg2(this.wok_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.ag7_1; tmp_1.xok_1 = '' + tmp_2 + ' ' + (it == null ? null : it.bg7_1); this.hd_1 = 2; continue $sm; case 2: return this.xok_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.yok_1 = repo; this.zok_1 = systemImpl; } protoOf(GetAssignmentSubmitterNameUseCase).aol = function (submitterUid, $completion) { var tmp = new $invokeCOROUTINE$14(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.bol_1 = blobUrl; this.col_1 = transferJobItemUid; this.dol_1 = lockIdToRelease; this.eol_1 = estimatedSize; this.fol_1 = partialResponseFile; } protoOf(BlobTransferJobItem).toString = function () { return 'BlobTransferJobItem(blobUrl=' + this.bol_1 + ', transferJobItemUid=' + this.col_1 + ', lockIdToRelease=' + this.dol_1.toString() + ', estimatedSize=' + toString_0(this.eol_1) + ', partialResponseFile=' + this.fol_1 + ')'; }; protoOf(BlobTransferJobItem).hashCode = function () { var result = getStringHashCode(this.bol_1); result = imul(result, 31) + this.col_1 | 0; result = imul(result, 31) + this.dol_1.hashCode() | 0; result = imul(result, 31) + (this.eol_1 == null ? 0 : this.eol_1.hashCode()) | 0; result = imul(result, 31) + (this.fol_1 == null ? 0 : getStringHashCode(this.fol_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.bol_1 === tmp0_other_with_cast.bol_1)) return false; if (!(this.col_1 === tmp0_other_with_cast.col_1)) return false; if (!this.dol_1.equals(tmp0_other_with_cast.dol_1)) return false; if (!equals(this.eol_1, tmp0_other_with_cast.eol_1)) return false; if (!(this.fol_1 == tmp0_other_with_cast.fol_1)) return false; return true; }; function BlobTransferProgressUpdate(transferItem, bytesTransferred) { this.gol_1 = transferItem; this.hol_1 = bytesTransferred; } protoOf(BlobTransferProgressUpdate).toString = function () { return 'Uid #' + this.gol_1.col_1 + ' transferred=' + this.hol_1.toString() + ' bytes'; }; protoOf(BlobTransferProgressUpdate).hashCode = function () { var result = this.gol_1.hashCode(); result = imul(result, 31) + this.hol_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.gol_1.equals(tmp0_other_with_cast.gol_1)) return false; if (!this.hol_1.equals(tmp0_other_with_cast.hol_1)) return false; return true; }; function BlobTransferStatusUpdate(transferItem, status) { this.iol_1 = transferItem; this.jol_1 = status; } protoOf(BlobTransferStatusUpdate).toString = function () { return 'BlobTransferStatusUpdate(transferItem=' + this.iol_1 + ', status=' + this.jol_1 + ')'; }; protoOf(BlobTransferStatusUpdate).hashCode = function () { var result = this.iol_1.hashCode(); result = imul(result, 31) + this.jol_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.iol_1.equals(tmp0_other_with_cast.iol_1)) return false; if (!(this.jol_1 === tmp0_other_with_cast.jol_1)) return false; return true; }; function CancelDownloadUseCase() { } function MakeContentEntryAvailableOfflineUseCase(repo, nodeIdAndAuth, enqueueContentManifestDownloadUseCase) { this.kol_1 = repo; this.lol_1 = nodeIdAndAuth; this.mol_1 = enqueueContentManifestDownloadUseCase; } function OpenBlobItem(uri, mimeType, fileName, fileSize) { this.nol_1 = uri; this.ool_1 = mimeType; this.pol_1 = fileName; this.qol_1 = fileSize; } protoOf(OpenBlobItem).toString = function () { return 'OpenBlobItem(uri=' + this.nol_1 + ', mimeType=' + this.ool_1 + ', fileName=' + this.pol_1 + ', fileSize=' + this.qol_1.toString() + ')'; }; protoOf(OpenBlobItem).hashCode = function () { var result = getStringHashCode(this.nol_1); result = imul(result, 31) + getStringHashCode(this.ool_1) | 0; result = imul(result, 31) + getStringHashCode(this.pol_1) | 0; result = imul(result, 31) + this.qol_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.nol_1 === tmp0_other_with_cast.nol_1)) return false; if (!(this.ool_1 === tmp0_other_with_cast.ool_1)) return false; if (!(this.pol_1 === tmp0_other_with_cast.pol_1)) return false; if (!this.qol_1.equals(tmp0_other_with_cast.qol_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$17(_this__u8e3s4, openItem, onUiUpdate, intent, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zol_1 = _this__u8e3s4; this.aom_1 = openItem; this.bom_1 = onUiUpdate; this.com_1 = intent; } 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 = 4; this.bom_1(new OpeningBlobState(this.aom_1, new Long(0, 0), new Long(0, 0))); this.id_1 = 2; this.hd_1 = 1; suspendResult = this.zol_1.dom_1.fom(this.aom_1, OpenBlobUiUseCase$invoke$lambda(this.bom_1, this.aom_1), this.com_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bom_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().m5e('OpenBlobUiCase: could not open ' + this.aom_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.bom_1(new OpeningBlobState(this.aom_1, tmp_1, tmp_2, tmp0_elvis_lhs == null ? this.zol_1.eom_1.eog(strings_getInstance().cme_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.dom_1 = openBlobUseCase; this.eom_1 = systemImpl; } protoOf(OpenBlobUiUseCase).gom = function (openItem, onUiUpdate, intent, $completion) { var tmp = new $invokeCOROUTINE$17(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.hom_1 = item; this.iom_1 = bytesReady; this.jom_1 = totalBytes; this.kom_1 = error; } protoOf(OpeningBlobState).toString = function () { return 'OpeningBlobState(item=' + this.hom_1 + ', bytesReady=' + this.iom_1.toString() + ', totalBytes=' + this.jom_1.toString() + ', error=' + this.kom_1 + ')'; }; protoOf(OpeningBlobState).hashCode = function () { var result = this.hom_1.hashCode(); result = imul(result, 31) + this.iom_1.hashCode() | 0; result = imul(result, 31) + this.jom_1.hashCode() | 0; result = imul(result, 31) + (this.kom_1 == null ? 0 : getStringHashCode(this.kom_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.hom_1.equals(tmp0_other_with_cast.hom_1)) return false; if (!this.iom_1.equals(tmp0_other_with_cast.iom_1)) return false; if (!this.jom_1.equals(tmp0_other_with_cast.jom_1)) return false; if (!(this.kom_1 == tmp0_other_with_cast.kom_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.tom_1 = $blobs; this.uom_1 = $this_updateUris; this.vom_1 = $timeNow; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveAndUploadLocalUrisUseCase$updateUris$slambda).dnv = function (_anonymous_parameter_0__qggqh8, $completion) { var tmp = this.env(_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.dnv(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.xom_1 = this.tom_1; this.yom_1 = this.xom_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.yom_1.f()) { this.hd_1 = 4; continue $sm; } this.zom_1 = this.yom_1.e(); var tmp_1 = this; tmp_1.aon_1 = this.zom_1; this.bon_1 = this.aon_1.don_1; if (this.bon_1 === 90) { this.hd_1 = 2; suspendResult = this.uom_1.s7e().uc9(this.aon_1.con_1, this.aon_1.fon_1, this.vom_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).env = function (_anonymous_parameter_0__qggqh8, completion) { var i = new SaveAndUploadLocalUrisUseCase$updateUris$slambda(this.tom_1, this.uom_1, this.vom_1, completion); i.wom_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.dnv(_anonymous_parameter_0__qggqh8, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$18(_this__u8e3s4, localUrisToSave, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.son_1 = _this__u8e3s4; this.ton_1 = localUrisToSave; } 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 = 6; this.hd_1 = 1; suspendResult = this.son_1.won_1.aoo(this.ton_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uon_1 = suspendResult; this.von_1 = this.son_1.xon_1; if (!(this.von_1 == null)) { this.hd_1 = 3; suspendResult = updateUris(this.son_1.yon_1, this.son_1, this.uon_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 2; var tmp0_elvis_lhs = this.son_1.zon_1; suspendResult = updateUris(tmp0_elvis_lhs == null ? this.son_1.yon_1 : tmp0_elvis_lhs, this.son_1, this.uon_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.uon_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.fon_1; var tmp1_entityUid = item.con_1; var tmp2_tableId = item.don_1; var tmp3_retentionLockIdToRelease = item.gon_1; destination.i1(new EnqueueBlobUploadItem(tmp0_blobUrl, tmp2_tableId, tmp1_entityUid, tmp3_retentionLockIdToRelease)); } suspendResult = this.von_1.boo(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.won_1 = saveLocalUrisAsBlobsUseCase; this.xon_1 = enqueueBlobUploadClientUseCase; this.yon_1 = activeDb; this.zon_1 = activeRepo; } protoOf(SaveAndUploadLocalUrisUseCase).coo = function (localUrisToSave, $completion) { var tmp = new $invokeCOROUTINE$18(this, localUrisToSave, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_34() { } protoOf(Companion_34).n4r = function () { return $serializer_getInstance_45(); }; var Companion_instance_83; function Companion_getInstance_51() { return Companion_instance_83; } function $serializer_33() { $serializer_instance_33 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.blob.savelocaluris.SaveLocalUrisAsBlobsUseCase.SavedBlob', this, 8); tmp0_serialDesc.t4f('entityUid', false); tmp0_serialDesc.t4f('tableId', false); tmp0_serialDesc.t4f('localUri', false); tmp0_serialDesc.t4f('blobUrl', false); tmp0_serialDesc.t4f('retentionLockId', true); tmp0_serialDesc.t4f('integrity', false); tmp0_serialDesc.t4f('mimeType', false); tmp0_serialDesc.t4f('storageSize', false); this.doo_1 = tmp0_serialDesc; } protoOf($serializer_33).q44 = function () { return this.doo_1; }; protoOf($serializer_33).k4g = 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_33).s44 = function (decoder) { var tmp0_desc = this.doo_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.i48(tmp0_desc); if (tmp12_input.x48()) { tmp4_local0 = tmp12_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.s48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.o48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.s48(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.s48(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.o48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.j48(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_33).eoo = function (encoder, value) { var tmp0_desc = this.doo_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.s49(tmp0_desc, 0, value.con_1); tmp1_output.r49(tmp0_desc, 1, value.don_1); tmp1_output.w49(tmp0_desc, 2, value.eon_1); tmp1_output.w49(tmp0_desc, 3, value.fon_1); if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.gon_1.equals(new Long(0, 0))) { tmp1_output.s49(tmp0_desc, 4, value.gon_1); } tmp1_output.w49(tmp0_desc, 5, value.hon_1); tmp1_output.w49(tmp0_desc, 6, value.ion_1); tmp1_output.s49(tmp0_desc, 7, value.jon_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_33).r44 = function (encoder, value) { return this.eoo(encoder, value instanceof SavedBlob ? value : THROW_CCE()); }; var $serializer_instance_33; function $serializer_getInstance_45() { if ($serializer_instance_33 == null) new $serializer_33(); return $serializer_instance_33; } function SavedBlob_init_$Init$(seen1, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, serializationConstructorMarker, $this) { if (!(239 === (239 & seen1))) { throwMissingFieldException(seen1, 239, $serializer_getInstance_45().doo_1); } $this.con_1 = entityUid; $this.don_1 = tableId; $this.eon_1 = localUri; $this.fon_1 = blobUrl; if (0 === (seen1 & 16)) $this.gon_1 = new Long(0, 0); else $this.gon_1 = retentionLockId; $this.hon_1 = integrity; $this.ion_1 = mimeType; $this.jon_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_137.b4e() : extraHeaders; this.foo_1 = localUri; this.goo_1 = entityUid; this.hoo_1 = tableId; this.ioo_1 = mimeType; this.joo_1 = deleteLocalUriAfterSave; this.koo_1 = createRetentionLock; this.loo_1 = extraHeaders; } protoOf(SaveLocalUriAsBlobItem).toString = function () { return 'SaveLocalUriAsBlobItem(localUri=' + this.foo_1 + ', entityUid=' + this.goo_1.toString() + ', tableId=' + this.hoo_1 + ', mimeType=' + this.ioo_1 + ', deleteLocalUriAfterSave=' + this.joo_1 + ', createRetentionLock=' + this.koo_1 + ', extraHeaders=' + this.loo_1 + ')'; }; protoOf(SaveLocalUriAsBlobItem).hashCode = function () { var result = getStringHashCode(this.foo_1); result = imul(result, 31) + this.goo_1.hashCode() | 0; result = imul(result, 31) + this.hoo_1 | 0; result = imul(result, 31) + (this.ioo_1 == null ? 0 : getStringHashCode(this.ioo_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.joo_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.koo_1) | 0; result = imul(result, 31) + hashCode(this.loo_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.foo_1 === tmp0_other_with_cast.foo_1)) return false; 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; if (!(this.ioo_1 == tmp0_other_with_cast.ioo_1)) return false; if (!(this.joo_1 === tmp0_other_with_cast.joo_1)) return false; if (!(this.koo_1 === tmp0_other_with_cast.koo_1)) return false; if (!equals(this.loo_1, tmp0_other_with_cast.loo_1)) return false; return true; }; function SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { retentionLockId = retentionLockId === VOID ? new Long(0, 0) : retentionLockId; this.con_1 = entityUid; this.don_1 = tableId; this.eon_1 = localUri; this.fon_1 = blobUrl; this.gon_1 = retentionLockId; this.hon_1 = integrity; this.ion_1 = mimeType; this.jon_1 = storageSize; } protoOf(SavedBlob).moo = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) { return new SavedBlob(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).noo = function (entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize, $super) { entityUid = entityUid === VOID ? this.con_1 : entityUid; tableId = tableId === VOID ? this.don_1 : tableId; localUri = localUri === VOID ? this.eon_1 : localUri; blobUrl = blobUrl === VOID ? this.fon_1 : blobUrl; retentionLockId = retentionLockId === VOID ? this.gon_1 : retentionLockId; integrity = integrity === VOID ? this.hon_1 : integrity; mimeType = mimeType === VOID ? this.ion_1 : mimeType; storageSize = storageSize === VOID ? this.jon_1 : storageSize; return $super === VOID ? this.moo(entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize) : $super.moo.call(this, entityUid, tableId, localUri, blobUrl, retentionLockId, integrity, mimeType, storageSize); }; protoOf(SavedBlob).toString = function () { return 'SavedBlob(entityUid=' + this.con_1.toString() + ', tableId=' + this.don_1 + ', localUri=' + this.eon_1 + ', blobUrl=' + this.fon_1 + ', retentionLockId=' + this.gon_1.toString() + ', integrity=' + this.hon_1 + ', mimeType=' + this.ion_1 + ', storageSize=' + this.jon_1.toString() + ')'; }; protoOf(SavedBlob).hashCode = function () { var result = this.con_1.hashCode(); result = imul(result, 31) + this.don_1 | 0; result = imul(result, 31) + getStringHashCode(this.eon_1) | 0; result = imul(result, 31) + getStringHashCode(this.fon_1) | 0; result = imul(result, 31) + this.gon_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.hon_1) | 0; result = imul(result, 31) + getStringHashCode(this.ion_1) | 0; result = imul(result, 31) + this.jon_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.con_1.equals(tmp0_other_with_cast.con_1)) return false; if (!(this.don_1 === tmp0_other_with_cast.don_1)) return false; if (!(this.eon_1 === tmp0_other_with_cast.eon_1)) return false; if (!(this.fon_1 === tmp0_other_with_cast.fon_1)) return false; if (!this.gon_1.equals(tmp0_other_with_cast.gon_1)) return false; if (!(this.hon_1 === tmp0_other_with_cast.hon_1)) return false; if (!(this.ion_1 === tmp0_other_with_cast.ion_1)) return false; if (!this.jon_1.equals(tmp0_other_with_cast.jon_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.f7e(); } else { if (tableId === 125) { tmp = _this__u8e3s4.d7f(); } else { if (tableId === 6677) { tmp = _this__u8e3s4.q7f(); } else { if (tableId === 6678) { tmp = _this__u8e3s4.r7f(); } else { tmp = null; } } } } return tmp; } function Companion_35() { this.qoo_1 = 160; } var Companion_instance_84; function Companion_getInstance_52() { return Companion_instance_84; } function $invokeCOROUTINE$19(_this__u8e3s4, entityUid, tableId, pictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.zoo_1 = _this__u8e3s4; this.aop_1 = entityUid; this.bop_1 = tableId; this.cop_1 = pictureUri; } protoOf($invokeCOROUTINE$19).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.cop_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.dop_1 = Companion_getInstance_3().o2r(this.cop_1); this.eop_1 = this.zoo_1.loq_1; if (this.eop_1 == null) { this.fop_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = getLocalUriIfRemote(this.eop_1, this.dop_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { var tmp_2 = this; var tmp12_elvis_lhs = this.zoo_1.ioq_1; tmp_2.gop_1 = imageDaoForTable(tmp12_elvis_lhs == null ? this.zoo_1.hoq_1 : tmp12_elvis_lhs, this.zoo_1, this.bop_1); if (this.gop_1 == null) { this.hop_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.gop_1.lbi(this.aop_1, null, null, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp_3 = this; tmp_3.hop_1 = Unit_instance; this.hd_1 = 2; continue $sm; case 2: this.hd_1 = 20; continue $sm; case 3: this.fop_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: this.iop_1 = this.fop_1; this.jop_1 = this.iop_1 == null ? this.dop_1 : this.iop_1; this.hd_1 = 5; suspendResult = this.zoo_1.joq_1.moq(this.jop_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.kop_1 = suspendResult; this.hd_1 = 6; suspendResult = this.zoo_1.joq_1.moq(this.jop_1.toString(), VOID, new CompressParams(160, 160), VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.lop_1 = suspendResult; this.mop_1 = this.zoo_1.foq_1; var tmp_4 = this; tmp_4.nop_1 = ArrayList_init_$Create$(); var tmp_5 = this; tmp_5.oop_1 = this.nop_1; if (this.kop_1 == null) null; else { this.oop_1.i1(new SaveLocalUriAsBlobItem(this.kop_1.noq_1, this.aop_1, this.bop_1, this.kop_1.ooq_1, true, true)); } if (this.lop_1 == null) null; else { this.oop_1.i1(new SaveLocalUriAsBlobItem(this.lop_1.noq_1, this.aop_1, this.bop_1, this.lop_1.ooq_1, true, true)); } if (this.kop_1 == null ? true : this.lop_1 == null) { this.hd_1 = 7; suspendResult = isRemote(this.dop_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.pop_1 = false; this.hd_1 = 8; continue $sm; } case 7: this.qop_1 = suspendResult; this.pop_1 = !this.qop_1; this.hd_1 = 8; continue $sm; case 8: this.rop_1 = this.pop_1; if (this.rop_1) { this.oop_1.i1(new SaveLocalUriAsBlobItem(this.cop_1, this.aop_1, this.bop_1, VOID, VOID, true)); } this.sop_1 = this.nop_1; this.top_1 = this.sop_1.f3(); this.hd_1 = 9; suspendResult = this.mop_1.aoo(this.top_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: this.uop_1 = suspendResult; this.hd_1 = 10; suspendResult = this.zoo_1.koq_1.roq(listOf_0(this.cop_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.uop_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.eon_1 === this.cop_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.fon_1; tmp_6.vop_1 = tmp4_elvis_lhs == null ? this.dop_1.toString() : tmp4_elvis_lhs; var tmp_7 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_0 = this.uop_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = this.kop_1; if (element_0.eon_1 === (tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.noq_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.fon_1; tmp_7.wop_1 = tmp6_elvis_lhs == null ? this.vop_1 : tmp6_elvis_lhs; var tmp_8 = this; var tmp$ret$4; l$ret$5: do { var tmp0_iterator_1 = this.uop_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_1 = this.lop_1; if (element_1.eon_1 === (tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.noq_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.fon_1; tmp_8.xop_1 = tmp8_elvis_lhs == null ? this.vop_1 : tmp8_elvis_lhs; if (!(this.zoo_1.goq_1 == null)) { if (this.kop_1 == null ? true : this.lop_1 == null) { this.hd_1 = 13; suspendResult = isRemote(this.dop_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.zop_1 = false; this.hd_1 = 14; continue $sm; } } else { var tmp_9 = this; var tmp10_elvis_lhs = this.zoo_1.ioq_1; tmp_9.aoq_1 = imageDaoForTable(tmp10_elvis_lhs == null ? this.zoo_1.hoq_1 : tmp10_elvis_lhs, this.zoo_1, this.bop_1); if (this.aoq_1 == null) { this.boq_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.aoq_1.lbi(this.aop_1, this.wop_1, this.xop_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 11: var tmp_10 = this; tmp_10.boq_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: this.hd_1 = 19; continue $sm; case 13: this.zop_1 = suspendResult; this.hd_1 = 14; continue $sm; case 14: if (this.zop_1) { var tmp_11 = this; tmp_11.yop_1 = new EnqueueBlobUploadItem(this.dop_1.toString(), this.bop_1, this.aop_1, new Long(0, 0)); this.hd_1 = 15; continue $sm; } else { var tmp_12 = this; tmp_12.yop_1 = null; this.hd_1 = 15; continue $sm; } case 15: this.coq_1 = this.yop_1; this.doq_1 = imageDaoForTable(this.zoo_1.hoq_1, this.zoo_1, this.bop_1); if (this.doq_1 == null) { this.eoq_1 = null; this.hd_1 = 17; continue $sm; } else { this.hd_1 = 16; suspendResult = this.doq_1.lbi(this.aop_1, this.wop_1, this.xop_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: var tmp_13 = this; tmp_13.eoq_1 = Unit_instance; this.hd_1 = 17; continue $sm; case 17: Napier_getInstance().i5e('SavePictureUseCase: Set picture url = ' + this.wop_1 + ' on entity=' + this.aop_1.toString() + ' table=' + this.bop_1); this.hd_1 = 18; var this_0 = this.uop_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.fon_1, this.bop_1, this.aop_1, item.gon_1)); } var this_1 = listOf_0(this.coq_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.zoo_1.goq_1.boo(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.foq_1 = saveLocalUrisAsBlobUseCase; this.goq_1 = enqueueBlobUploadClientUseCase; this.hoq_1 = db; this.ioq_1 = repo; this.joq_1 = compressImageUseCase; this.koq_1 = deleteUrisUseCase; this.loq_1 = getStoragePathForUrlUseCase; } protoOf(SavePictureUseCase).poo = function (entityUid, tableId, pictureUri, $completion) { var tmp = new $invokeCOROUTINE$19(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.aor_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$updateJob$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.bor_1)) { this.hd_1 = 4; continue $sm; } this.hd_1 = 2; suspendResult = delay(this.aor_1.eor_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.hd_1 = 3; suspendResult = this.aor_1.jor(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).v1m = function ($this$launch, completion) { var i = new TransferJobItemStatusUpdater$updateJob$slambda(this.aor_1, completion); i.bor_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function TransferJobItemStatusUpdater$commit$slambda($progressUpdatesToCommit, this$0, $statusUpdatesToCommit, $repoNodeId, $updateTransferJobStatusUid, resultContinuation) { this.sor_1 = $progressUpdatesToCommit; this.tor_1 = this$0; this.uor_1 = $statusUpdatesToCommit; this.vor_1 = $repoNodeId; this.wor_1 = $updateTransferJobStatusUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemStatusUpdater$commit$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater$commit$slambda).he = function (p1, $completion) { return this.dnv(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.yor_1 = this.sor_1; this.zor_1 = this.yor_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.zor_1.f()) { this.hd_1 = 3; continue $sm; } this.aos_1 = this.zor_1.e(); var tmp_1 = this; tmp_1.bos_1 = this.aos_1; this.hd_1 = 2; suspendResult = this.tor_1.cor_1.k7f().lia(this.bos_1.gol_1.col_1, this.bos_1.hol_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.cos_1 = this.uor_1; this.dos_1 = this.cos_1.w(); this.hd_1 = 4; continue $sm; case 4: if (!this.dos_1.f()) { this.hd_1 = 8; continue $sm; } this.eos_1 = this.dos_1.e(); var tmp_3 = this; tmp_3.fos_1 = this.eos_1; this.hd_1 = 5; suspendResult = this.tor_1.cor_1.k7f().mia(this.fos_1.iol_1.col_1, this.fos_1.jol_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: if (this.fos_1.jol_1 === TransferJobItemStatus_COMPLETE_getInstance().gk7_1 ? !(this.vor_1 == null) : false) { this.hd_1 = 6; suspendResult = this.tor_1.cor_1.k7f().nia(this.vor_1, this.fos_1.iol_1.col_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.wor_1 === 0)) { this.hd_1 = 9; suspendResult = this.tor_1.cor_1.j7f().bi8(this.wor_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.k5e(VOID, VOID, TransferJobItemStatusUpdater$commit$slambda$lambda(this.wor_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).env = function (it, completion) { var i = new TransferJobItemStatusUpdater$commit$slambda(this.sor_1, this.tor_1, this.uor_1, this.vor_1, this.wor_1, completion); i.xor_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.dnv(it, $completion); }; l.$arity = 1; return l; } function $commitCOROUTINE$20(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oos_1 = _this__u8e3s4; this.pos_1 = updateTransferJobStatusUid; } protoOf($commitCOROUTINE$20).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.qos_1 = this.oos_1.gor_1.atomicfu$getAndSet(emptyList()); this.ros_1 = this.oos_1.hor_1.atomicfu$getAndSet(emptyList()); var tmp_0 = this; var this_0 = this.qos_1; var map = LinkedHashMap_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var key = element.gol_1.col_1; map.s(key, element); } tmp_0.sos_1 = toList(map.p2()); var tmp_1 = this; var this_1 = this.ros_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.iol_1.col_1; map_0.s(key_0, element_0); } tmp_1.tos_1 = toList(map_0.p2()); var tmp_2 = this; var tmp_3 = this.oos_1.dor_1; var tmp0_safe_receiver = (!(tmp_3 == null) ? isInterface(tmp_3, DoorDatabaseRepository) : false) ? tmp_3 : null; tmp_2.uos_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m61(); var tmp_4 = this; var this_2 = this.oos_1.cor_1; var tmp_5; var tmp_6; var tmp_7; if (!this.sos_1.c1()) { tmp_7 = true; } else { tmp_7 = !this.tos_1.c1(); } if (tmp_7) { tmp_6 = true; } else { tmp_6 = !(this.pos_1 === 0); } if (tmp_6) { tmp_5 = this_2; } else { tmp_5 = null; } tmp_4.vos_1 = tmp_5; if (this.vos_1 == null) { this.wos_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.vos_1, VOID, TransferJobItemStatusUpdater$commit$slambda_0(this.sos_1, this.oos_1, this.tos_1, this.uos_1, this.pos_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_8 = this; tmp_8.wos_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$21(_this__u8e3s4, updateTransferJobStatusUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fot_1 = _this__u8e3s4; this.got_1 = updateTransferJobStatusUid; } protoOf($onFinishedCOROUTINE$21).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.fot_1.for_1.atomicfu$getAndSet(true)) { this.fot_1.ior_1.mr(); this.hd_1 = 1; suspendResult = this.fot_1.hot(this.got_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.cor_1 = db; this.dor_1 = repo; this.eor_1 = commitInterval; this.for_1 = atomic$boolean$1(false); this.gor_1 = atomic$ref$1(emptyList()); this.hor_1 = atomic$ref$1(emptyList()); var tmp = this; tmp.ior_1 = launch(scope, VOID, VOID, TransferJobItemStatusUpdater$updateJob$slambda_0(this, null)); } protoOf(TransferJobItemStatusUpdater).iot = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.gor_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).jot = function (update) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.hor_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).hot = function (updateTransferJobStatusUid, $completion) { var tmp = new $commitCOROUTINE$20(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).jor = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.hot(updateTransferJobStatusUid, $completion) : $super.hot.call(this, updateTransferJobStatusUid, $completion); }; protoOf(TransferJobItemStatusUpdater).kot = function (updateTransferJobStatusUid, $completion) { var tmp = new $onFinishedCOROUTINE$21(this, updateTransferJobStatusUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TransferJobItemStatusUpdater).lot = function (updateTransferJobStatusUid, $completion, $super) { updateTransferJobStatusUid = updateTransferJobStatusUid === VOID ? 0 : updateTransferJobStatusUid; return $super === VOID ? this.kot(updateTransferJobStatusUid, $completion) : $super.kot.call(this, updateTransferJobStatusUid, $completion); }; function $invokeCOROUTINE$22(_this__u8e3s4, db, tableId, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.uot_1 = _this__u8e3s4; this.vot_1 = db; this.wot_1 = tableId; this.xot_1 = entityUid; this.yot_1 = transferJobItemUid; } protoOf($invokeCOROUTINE$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.zot_1 = this.wot_1; if (this.zot_1 === 50) { this.hd_1 = 2; suspendResult = this.vot_1.f7e().zbp(this.xot_1, this.yot_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { if (this.zot_1 === 738) { this.hd_1 = 1; suspendResult = this.vot_1.i7f().zbp(this.xot_1, this.yot_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).aou = function (db, tableId, entityUid, transferJobItemUid, $completion) { var tmp = new $invokeCOROUTINE$22(this, db, tableId, entityUid, transferJobItemUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_36() { this.bou_1 = 'X-Blob-Response-'; this.cou_1 = 'Blob-Upload-Batch-Uuid'; } var Companion_instance_85; function Companion_getInstance_53() { return Companion_instance_85; } 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.dou_1 = blobUrl; this.eou_1 = tableId; this.fou_1 = entityUid; this.gou_1 = retentionLockIdToRelease; } protoOf(EnqueueBlobUploadItem).toString = function () { return 'EnqueueBlobUploadItem(blobUrl=' + this.dou_1 + ', tableId=' + this.eou_1 + ', entityUid=' + this.fou_1.toString() + ', retentionLockIdToRelease=' + this.gou_1.toString() + ')'; }; protoOf(EnqueueBlobUploadItem).hashCode = function () { var result = getStringHashCode(this.dou_1); result = imul(result, 31) + this.eou_1 | 0; result = imul(result, 31) + this.fou_1.hashCode() | 0; result = imul(result, 31) + this.gou_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.dou_1 === tmp0_other_with_cast.dou_1)) return false; if (!(this.eou_1 === tmp0_other_with_cast.eou_1)) return false; if (!this.fou_1.equals(tmp0_other_with_cast.fou_1)) return false; if (!this.gou_1.equals(tmp0_other_with_cast.gou_1)) return false; return true; }; function EnqueueBlobUploadClientUseCase() { } function getLocalUriIfRemote(_this__u8e3s4, uri, $completion) { var tmp = new $getLocalUriIfRemoteCOROUTINE$23(_this__u8e3s4, uri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $getLocalUriIfRemoteCOROUTINE$23(_this__u8e3s4, uri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qou_1 = _this__u8e3s4; this.rou_1 = uri; } protoOf($getLocalUriIfRemoteCOROUTINE$23).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.rou_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (suspendResult) { this.tou_1 = Companion_getInstance_3(); this.hd_1 = 2; suspendResult = this.qou_1.uou(this.rou_1.toString(), VOID, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0 = this; tmp_0.sou_1 = this.rou_1; this.hd_1 = 3; continue $sm; } case 2: var ARGUMENT = suspendResult; var ARGUMENT_0 = ARGUMENT.vou_1; this.sou_1 = this.tou_1.o2r(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 3: return this.sou_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.gov_1 = $clazz; this.hov_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CreateNewClazzUseCase$invoke$slambda).aoh = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CreateNewClazzUseCase$invoke$slambda).he = function (p1, $completion) { return this.aoh(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.gov_1; var tmp_0; if (this_0.o8e_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.o8e_1 = randomString(6); } this.hd_1 = 1; suspendResult = this.hov_1.kov_1.o7d().insertAsync(this.gov_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jov_1 = suspendResult; this.hd_1 = 2; var tmp_2 = this.hov_1.kov_1.o7f(); var tmp_3 = this.gov_1.r8d_1; Companion_getInstance_5(); suspendResult = tmp_2.udj(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.hov_1.kov_1.o7f(); var tmp_5 = this.gov_1.r8d_1; Companion_getInstance_5(); suspendResult = tmp_4.udj(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.jov_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).env = function (it, completion) { var i = new CreateNewClazzUseCase$invoke$slambda(this.gov_1, this.hov_1, completion); i.iov_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.aoh(it, $completion); }; l.$arity = 1; return l; } function CreateNewClazzUseCase(repoOrDb) { this.kov_1 = repoOrDb; } protoOf(CreateNewClazzUseCase).lov = function (clazz, $completion) { return withDoorTransactionAsync(this.kov_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.uov_1 = $approved; this.vov_1 = this$0; this.wov_1 = $enrolmentRequest; this.xov_1 = $effectiveClazz; CoroutineImpl.call(this, resultContinuation); } protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda).he = function (p1, $completion) { return this.dnv(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.uov_1) { this.hd_1 = 1; var tmp_0 = this.wov_1.cey_1; var tmp_1 = this.wov_1.eey_1; var tmp_2 = ClazzEnrolment_init_$Create$(tmp_0, tmp_1, 1000); var tmp0_elvis_lhs = this.xov_1.j8e_1; suspendResult = this.vov_1.dow_1.gow(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.zov_1 = 3; this.hd_1 = 2; continue $sm; } case 1: var tmp_4 = this; tmp_4.zov_1 = 2; this.hd_1 = 2; continue $sm; case 2: this.aow_1 = this.zov_1; this.hd_1 = 3; var tmp1_elvis_lhs = this.vov_1.cow_1; suspendResult = (tmp1_elvis_lhs == null ? this.vov_1.bow_1 : tmp1_elvis_lhs).n7f().lex(this.wov_1.bey_1, this.aow_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).env = function (it, completion) { var i = new ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda(this.uov_1, this.vov_1, this.wov_1, this.xov_1, completion); i.yov_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.dnv(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$24(_this__u8e3s4, enrolmentRequest, approved, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pow_1 = _this__u8e3s4; this.qow_1 = enrolmentRequest; this.row_1 = approved; } 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; suspendResult = this.pow_1.bow_1.o7d().s8c(this.qow_1.cey_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.sow_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.sow_1 == null) { throw IllegalStateException_init_$Create$('Class does not exist'); } else { tmp_1 = this.sow_1; } tmp_0.tow_1 = tmp_1; this.hd_1 = 2; var tmp1_elvis_lhs = this.pow_1.cow_1; var tmp_2 = tmp1_elvis_lhs == null ? this.pow_1.bow_1 : tmp1_elvis_lhs; suspendResult = withDoorTransactionAsync(tmp_2, VOID, ApproveOrDeclinePendingEnrolmentUseCase$invoke$slambda_0(this.row_1, this.pow_1, this.qow_1, this.tow_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.bow_1 = db; this.cow_1 = repo; this.dow_1 = enrolIntoCourseUseCase; } protoOf(ApproveOrDeclinePendingEnrolmentUseCase).uow = function (enrolmentRequest, approved, $completion) { var tmp = new $invokeCOROUTINE$24(this, enrolmentRequest, approved, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnrolIntoCourseUseCase$invoke$slambda($effectiveDb, $enrolment, resultContinuation) { this.dox_1 = $effectiveDb; this.eox_1 = $enrolment; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolIntoCourseUseCase$invoke$slambda).aoh = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EnrolIntoCourseUseCase$invoke$slambda).he = function (p1, $completion) { return this.aoh(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.dox_1.t7d().insertAsync(this.eox_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).env = function (it, completion) { var i = new EnrolIntoCourseUseCase$invoke$slambda(this.dox_1, this.eox_1, completion); i.fox_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.aoh(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$25(_this__u8e3s4, enrolment, timeZoneId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.oox_1 = _this__u8e3s4; this.pox_1 = enrolment; this.qox_1 = timeZoneId; } 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 = 3; this.hd_1 = 1; var tmp0_elvis_lhs = this.oox_1.fow_1; suspendResult = (tmp0_elvis_lhs == null ? this.oox_1.eow_1 : tmp0_elvis_lhs).t7d().i93(this.pox_1.d8i_1, this.pox_1.c8i_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rox_1 = suspendResult; if (!this.rox_1.c1()) { throw new AlreadyEnroledInClassException(); } this.pox_1.e8i_1 = toLocalMidnight(Companion_getInstance_6().rmc(this.pox_1.e8i_1), this.qox_1).qmc(); if (this.pox_1.f8i_1.c7(get_UNSET_DISTANT_FUTURE()) < 0) { this.pox_1.f8i_1 = toLocalEndOfDay(Companion_getInstance_6().rmc(this.pox_1.f8i_1), this.qox_1).qmc(); } var tmp_0 = this; var tmp1_elvis_lhs = this.oox_1.fow_1; tmp_0.sox_1 = tmp1_elvis_lhs == null ? this.oox_1.eow_1 : tmp1_elvis_lhs; this.hd_1 = 2; suspendResult = withDoorTransactionAsync(this.sox_1, VOID, EnrolIntoCourseUseCase$invoke$slambda_0(this.sox_1, this.pox_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.eow_1 = db; this.fow_1 = repo; } protoOf(EnrolIntoCourseUseCase).gow = function (enrolment, timeZoneId, $completion) { var tmp = new $invokeCOROUTINE$25(this, enrolment, timeZoneId, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function IApproveOrDeclinePendingEnrolmentRequestUseCase() { } function $invokeCOROUTINE$26(_this__u8e3s4, clazzCode, person, roleId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.boy_1 = _this__u8e3s4; this.coy_1 = clazzCode; this.doy_1 = person; this.eoy_1 = roleId; } 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 = 7; this.hd_1 = 1; suspendResult = this.boy_1.ioy_1.o7d().r8c(this.coy_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.foy_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.foy_1 == null) { throw IllegalArgumentException_init_$Create$_0(); } else { tmp_1 = this.foy_1; } tmp_0.goy_1 = tmp_1; this.hd_1 = 2; suspendResult = this.boy_1.ioy_1.n7f().jex(this.doy_1.f96_1, this.goy_1.r8d_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.boy_1.ioy_1.t7d().i93(this.goy_1.r8d_1, this.doy_1.f96_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.hoy_1 = suspendResult; if (!this.hoy_1.c1()) { throw new AlreadyEnroledInClassException(); } else { this.hd_1 = 5; continue $sm; } case 5: this.hd_1 = 6; var tmp_2 = this.boy_1.ioy_1.n7f(); var tmp_3 = this.goy_1.r8d_1; var tmp_4 = this.goy_1.s8d_1; var tmp_5 = this.doy_1.f96_1; var tmp_6 = this.doy_1.qkm(); var tmp_7 = this.doy_1.g96_1; var tmp_8 = systemTimeInMillis(); suspendResult = tmp_2.iex(new EnrolmentRequest(VOID, tmp_3, tmp_4, tmp_5, tmp_6, VOID, tmp_7, this.eoy_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.ioy_1 = activeRepo; } protoOf(RequestEnrolmentUseCase).joy = function (clazzCode, person, roleId, $completion) { var tmp = new $invokeCOROUTINE$26(this, clazzCode, person, roleId, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SetClipboardStringUseCase() { } function Companion_37() { } var Companion_instance_86; function Companion_getInstance_54() { return Companion_instance_86; } function $serializer_34() { $serializer_instance_34 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.compress.CompressParams', this, 3); tmp0_serialDesc.t4f('maxWidth', true); tmp0_serialDesc.t4f('maxHeight', true); tmp0_serialDesc.t4f('compressionLevel', true); this.loy_1 = tmp0_serialDesc; } protoOf($serializer_34).q44 = function () { return this.loy_1; }; protoOf($serializer_34).k4g = 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_34).s44 = function (decoder) { var tmp0_desc = this.loy_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.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.u48(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return CompressParams_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_34).moy = function (encoder, value) { var tmp0_desc = this.loy_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.noy_1 === 1280)) { tmp1_output.r49(tmp0_desc, 0, value.noy_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ooy_1 === 1280)) { tmp1_output.r49(tmp0_desc, 1, value.ooy_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !value.poy_1.equals(CompressionLevel_MEDIUM_getInstance())) { tmp1_output.y49(tmp0_desc, 2, CompressionLevelSerializer_getInstance(), value.poy_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_34).r44 = function (encoder, value) { return this.moy(encoder, value instanceof CompressParams ? value : THROW_CCE()); }; var $serializer_instance_34; function $serializer_getInstance_46() { if ($serializer_instance_34 == null) new $serializer_34(); return $serializer_instance_34; } function CompressParams_init_$Init$(seen1, maxWidth, maxHeight, compressionLevel, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_46().loy_1); } if (0 === (seen1 & 1)) $this.noy_1 = 1280; else $this.noy_1 = maxWidth; if (0 === (seen1 & 2)) $this.ooy_1 = 1280; else $this.ooy_1 = maxHeight; if (0 === (seen1 & 4)) $this.poy_1 = CompressionLevel_MEDIUM_getInstance(); else $this.poy_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.noy_1 = maxWidth; this.ooy_1 = maxHeight; this.poy_1 = compressionLevel; } protoOf(CompressParams).toString = function () { return 'CompressParams(maxWidth=' + this.noy_1 + ', maxHeight=' + this.ooy_1 + ', compressionLevel=' + this.poy_1 + ')'; }; protoOf(CompressParams).hashCode = function () { var result = this.noy_1; result = imul(result, 31) + this.ooy_1 | 0; result = imul(result, 31) + this.poy_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.noy_1 === tmp0_other_with_cast.noy_1)) return false; if (!(this.ooy_1 === tmp0_other_with_cast.ooy_1)) return false; if (!this.poy_1.equals(tmp0_other_with_cast.poy_1)) return false; return true; }; function CompressResult(uri, mimeType, originalSize, compressedSize) { this.noq_1 = uri; this.ooq_1 = mimeType; this.poq_1 = originalSize; this.qoq_1 = compressedSize; } protoOf(CompressResult).toString = function () { return 'CompressResult(uri=' + this.noq_1 + ', mimeType=' + this.ooq_1 + ', originalSize=' + this.poq_1.toString() + ', compressedSize=' + this.qoq_1.toString() + ')'; }; protoOf(CompressResult).hashCode = function () { var result = getStringHashCode(this.noq_1); result = imul(result, 31) + getStringHashCode(this.ooq_1) | 0; result = imul(result, 31) + this.poq_1.hashCode() | 0; result = imul(result, 31) + this.qoq_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.noq_1 === tmp0_other_with_cast.noq_1)) return false; if (!(this.ooq_1 === tmp0_other_with_cast.ooq_1)) return false; if (!this.poq_1.equals(tmp0_other_with_cast.poq_1)) return false; if (!this.qoq_1.equals(tmp0_other_with_cast.qoq_1)) return false; return true; }; function CompressUseCase() { } function _get_$cachedSerializer__te6jhj($this) { return $this.roy_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_38() { Companion_instance_87 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.roy_1 = lazy(tmp_0, CompressionLevel$Companion$_anonymous__cmsj0x); } protoOf(Companion_38).soy = 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.voy_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_38).n4r = function () { return _get_$cachedSerializer__te6jhj(this); }; protoOf(Companion_38).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_87; function Companion_getInstance_55() { CompressionLevel_initEntries(); if (Companion_instance_87 == null) new Companion_38(); return Companion_instance_87; } function values_0() { return [CompressionLevel_NONE_getInstance(), CompressionLevel_LOWEST_getInstance(), CompressionLevel_LOW_getInstance(), CompressionLevel_MEDIUM_getInstance(), CompressionLevel_HIGH_getInstance(), CompressionLevel_HIGHEST_getInstance()]; } function get_entries() { if ($ENTRIES == null) $ENTRIES = enumEntries(values_0()); return $ENTRIES; } var CompressionLevel_entriesInitialized; function CompressionLevel_initEntries() { if (CompressionLevel_entriesInitialized) return Unit_instance; CompressionLevel_entriesInitialized = true; CompressionLevel_NONE_instance = new CompressionLevel('NONE', 0, 0); CompressionLevel_LOWEST_instance = new CompressionLevel('LOWEST', 1, 1); CompressionLevel_LOW_instance = new CompressionLevel('LOW', 2, 2); CompressionLevel_MEDIUM_instance = new CompressionLevel('MEDIUM', 3, 3); CompressionLevel_HIGH_instance = new CompressionLevel('HIGH', 4, 4); CompressionLevel_HIGHEST_instance = new CompressionLevel('HIGHEST', 5, 5); Companion_getInstance_55(); } var $ENTRIES; function CompressionLevel(name, ordinal, value) { Enum.call(this, name, ordinal); this.voy_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.woy_1 = PrimitiveSerialDescriptor('CompressionLevel', INT_getInstance()); } protoOf(CompressionLevelSerializer).q44 = function () { return this.woy_1; }; protoOf(CompressionLevelSerializer).s44 = function (decoder) { return Companion_getInstance_55().soy(decoder.y47()); }; protoOf(CompressionLevelSerializer).xoy = function (encoder, value) { encoder.g49(value.voy_1); }; protoOf(CompressionLevelSerializer).r44 = function (encoder, value) { return this.xoy(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.poc_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().em9(element.toc_1); destination.s(tmp$ret$0, element); } tmp = destination; } else { tmp = entryMap; } entryMap = tmp; this.yoy_1 = manifest; this.zoy_1 = entryMap; } protoOf(ContentManifestMap).aoz = function (manifestUrl, pathInContentEntryVersion) { return UrlKmp(manifestUrl).boz(pathInContentEntryVersion).toString(); }; protoOf(ContentManifestMap).toString = function () { return 'ContentManifestMap(manifest=' + this.yoy_1 + ', entryMap=' + this.zoy_1 + ')'; }; protoOf(ContentManifestMap).hashCode = function () { var result = this.yoy_1.hashCode(); result = imul(result, 31) + hashCode(this.zoy_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.yoy_1.equals(tmp0_other_with_cast.yoy_1)) return false; if (!equals(this.zoy_1, tmp0_other_with_cast.zoy_1)) return false; return true; }; function DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this$0, $entries, $timeNow, $activeUserPersonUid, resultContinuation) { this.koz_1 = this$0; this.loz_1 = $entries; this.moz_1 = $timeNow; this.noz_1 = $activeUserPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DeleteContentEntryParentChildJoinUseCase$invoke$slambda).he = function (p1, $completion) { return this.dnv(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.koz_1.toz_1.x7d(); var this_0 = this.loz_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.voz_1); } suspendResult = tmp_0.ibd(destination, true, this.moz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; tmp_1.poz_1 = this.loz_1; this.qoz_1 = this.poz_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.qoz_1.f()) { this.hd_1 = 4; continue $sm; } this.roz_1 = this.qoz_1.e(); var tmp_2 = this; tmp_2.soz_1 = this.roz_1; this.hd_1 = 3; suspendResult = this.koz_1.toz_1.m7f().tef(this.soz_1.voz_1, this.moz_1, this.noz_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).env = function (it, completion) { var i = new DeleteContentEntryParentChildJoinUseCase$invoke$slambda(this.koz_1, this.loz_1, this.moz_1, this.noz_1, completion); i.ooz_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.dnv(it, $completion); }; l.$arity = 1; return l; } function DeleteContentEntryParentChildJoinUseCase(repoOrDb) { this.toz_1 = repoOrDb; } protoOf(DeleteContentEntryParentChildJoinUseCase).xoz = function (entries, activeUserPersonUid, $completion) { var timeNow = systemTimeInMillis(); return withDoorTransactionAsync(this.toz_1, VOID, DeleteContentEntryParentChildJoinUseCase$invoke$slambda_0(this, entries, timeNow, activeUserPersonUid, null), $completion); }; function Companion_39() { this.yoz_1 = 'upload-original-filename'; } var Companion_instance_88; function Companion_getInstance_56() { return Companion_instance_88; } 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.ap0_1 = indeterminate; this.bp0_1 = error; this.cp0_1 = processedBytes; this.dp0_1 = totalBytes; } protoOf(ContentEntryGetMetadataStatus).ep0 = function () { var tmp; if (!this.dp0_1.equals(new Long(0, 0))) { // Inline function 'kotlin.Long.times' call tmp = this.cp0_1.cb(toLong(100)).bb(this.dp0_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(ContentEntryGetMetadataStatus).fp0 = function (indeterminate, error, processedBytes, totalBytes) { return new ContentEntryGetMetadataStatus(indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).gp0 = function (indeterminate, error, processedBytes, totalBytes, $super) { indeterminate = indeterminate === VOID ? this.ap0_1 : indeterminate; error = error === VOID ? this.bp0_1 : error; processedBytes = processedBytes === VOID ? this.cp0_1 : processedBytes; totalBytes = totalBytes === VOID ? this.dp0_1 : totalBytes; return $super === VOID ? this.fp0(indeterminate, error, processedBytes, totalBytes) : $super.fp0.call(this, indeterminate, error, processedBytes, totalBytes); }; protoOf(ContentEntryGetMetadataStatus).toString = function () { return 'ContentEntryGetMetadataStatus(indeterminate=' + this.ap0_1 + ', error=' + this.bp0_1 + ', processedBytes=' + this.cp0_1.toString() + ', totalBytes=' + this.dp0_1.toString() + ')'; }; protoOf(ContentEntryGetMetadataStatus).hashCode = function () { var result = getBooleanHashCode(this.ap0_1); result = imul(result, 31) + (this.bp0_1 == null ? 0 : getStringHashCode(this.bp0_1)) | 0; result = imul(result, 31) + this.cp0_1.hashCode() | 0; result = imul(result, 31) + this.dp0_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.ap0_1 === tmp0_other_with_cast.ap0_1)) return false; if (!(this.bp0_1 == tmp0_other_with_cast.bp0_1)) return false; if (!this.cp0_1.equals(tmp0_other_with_cast.cp0_1)) return false; if (!this.dp0_1.equals(tmp0_other_with_cast.dp0_1)) return false; return true; }; function UnsupportedContentException(message) { Exception_init_$Init$(message, this); captureStack(this, UnsupportedContentException); } function Companion_40() { this.hp0_1 = 'text/vtt'; this.ip0_1 = 'filename'; this.jp0_1 = 'locale'; this.kp0_1 = 'WEBVTT'; } var Companion_instance_89; function Companion_getInstance_57() { return Companion_instance_89; } function GetSubtitleTrackFromUriUseCase() { } function CancelImportContentEntryUseCase() { } function $invokeCOROUTINE$27(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vp0_1 = _this__u8e3s4; this.wp0_1 = cjiUid; this.xp0_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.vp0_1.ip1_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.yp0_1 = tmp_2; var tmp_3 = this; tmp_3.zp0_1 = this.vp0_1.hp1_1; var tmp_4 = this; tmp_4.ap1_1 = this.vp0_1.gp1_1.nnp_1 + 'api/contententryimportjob/cancel'; var tmp_5 = this; tmp_5.bp1_1 = this.zp0_1; var tmp_6 = this; tmp_6.cp1_1 = this.bp1_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ap1_1); parameter(this_0, 'jobUid', this.wp0_1); doorNodeIdHeader(this_0, this.yp0_1); parameter(this_0, 'accountPersonUid', this.xp0_1); header(this_0, 'cache-control', 'no-store'); tmp_7.dp1_1 = this_0; this.dp1_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.ep1_1 = this.cp1_1; var tmp_9 = this; tmp_9.fp1_1 = this.dp1_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.fp1_1, this.ep1_1)).h3z(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.gp1_1 = learningSpace; this.hp1_1 = httpClient; this.ip1_1 = repo; } protoOf(CancelRemoteContentEntryImportUseCase).jp1 = 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 $invokeCOROUTINE$28(_this__u8e3s4, cjiUid, activeUserPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sp1_1 = _this__u8e3s4; this.tp1_1 = cjiUid; this.up1_1 = activeUserPersonUid; } 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; var tmp_1 = this.sp1_1.fp2_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.vp1_1 = tmp_2; var tmp_3 = this; tmp_3.wp1_1 = this.sp1_1.dp2_1; var tmp_4 = this; tmp_4.xp1_1 = this.sp1_1.ep2_1.nnp_1 + 'api/contententryimportjob/dismissError'; var tmp_5 = this; tmp_5.yp1_1 = this.wp1_1; var tmp_6 = this; tmp_6.zp1_1 = this.yp1_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.xp1_1); parameter(this_0, 'jobUid', this.tp1_1); doorNodeIdHeader(this_0, this.vp1_1); parameter(this_0, 'accountPersonUid', this.up1_1); header(this_0, 'cache-control', 'no-store'); tmp_7.ap2_1 = this_0; this.ap2_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.bp2_1 = this.zp1_1; var tmp_9 = this; tmp_9.cp2_1 = this.ap2_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.cp2_1, this.bp2_1)).h3z(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.dp2_1 = httpClient; this.ep2_1 = learningSpace; this.fp2_1 = repo; } protoOf(DismissRemoteContentEntryImportErrorUseCase).jp1 = function (cjiUid, activeUserPersonUid, $completion) { var tmp = new $invokeCOROUTINE$28(this, cjiUid, activeUserPersonUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function EnqueueContentEntryImportUseCase() { } function $invokeCOROUTINE$29(_this__u8e3s4, contentJobItem, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.pp2_1 = _this__u8e3s4; this.qp2_1 = contentJobItem; } 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 = 2; var tmp_0 = this; tmp_0.rp2_1 = this.pp2_1.zp2_1; var tmp_1 = this; tmp_1.sp2_1 = this.pp2_1.yp2_1.nnp_1 + 'api/import/importRequest'; var tmp_2 = this; tmp_2.tp2_1 = this.rp2_1; var tmp_3 = this; tmp_3.up2_1 = this.tp2_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.sp2_1); contentType(this_0, Application_getInstance().v2r_1); setBodyJson(this_0, this.pp2_1.ap3_1, Companion_instance_90.n4r(), new ImportRequest(this.qp2_1)); tmp_4.vp2_1 = this_0; this.vp2_1.w38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.wp2_1 = this.up2_1; var tmp_6 = this; tmp_6.xp2_1 = this.vp2_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.xp2_1, this.wp2_1)).h3z(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.yp2_1 = learningSpace; this.zp2_1 = httpClient; this.ap3_1 = json; } protoOf(EnqueueImportContentEntryUseCaseRemote).gp2 = function (contentJobItem, $completion) { var tmp = new $invokeCOROUTINE$29(this, contentJobItem, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_41() { } protoOf(Companion_41).n4r = function () { return $serializer_getInstance_47(); }; 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.contententry.importcontent.ImportRequest', this, 1); tmp0_serialDesc.t4f('contentJobItem', false); this.bp3_1 = tmp0_serialDesc; } protoOf($serializer_35).q44 = function () { return this.bp3_1; }; protoOf($serializer_35).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_5()]; }; protoOf($serializer_35).s44 = function (decoder) { var tmp0_desc = this.bp3_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.u48(tmp0_desc, 0, $serializer_getInstance_5(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return ImportRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_35).cp3 = function (encoder, value) { var tmp0_desc = this.bp3_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, $serializer_getInstance_5(), value.dp3_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_35).r44 = function (encoder, value) { return this.cp3(encoder, value instanceof ImportRequest ? value : THROW_CCE()); }; var $serializer_instance_35; function $serializer_getInstance_47() { if ($serializer_instance_35 == null) new $serializer_35(); return $serializer_instance_35; } function ImportRequest_init_$Init$(seen1, contentJobItem, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_47().bp3_1); } $this.dp3_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.dp3_1 = contentJobItem; } protoOf(ImportRequest).toString = function () { return 'ImportRequest(contentJobItem=' + this.dp3_1 + ')'; }; protoOf(ImportRequest).hashCode = function () { return this.dp3_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.dp3_1.equals(tmp0_other_with_cast.dp3_1)) return false; return true; }; function DefaultLaunchContentEntryVersionUseCase() { } protoOf(DefaultLaunchContentEntryVersionUseCase).ep3 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp0_subject = contentEntryVersion.fax_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_123(); var tmp_0 = to('entityUid', contentEntryVersion.cax_1.toString()); Companion_getInstance_123(); var tmp_1 = to('courseBlockUid', cbUid.toString()); Companion_getInstance_123(); var tmp_2 = to('clazzUid', clazzUid.toString()); Companion_getInstance_123(); navController.fp3(destName, mapOf([tmp_0, tmp_1, tmp_2, to('entryid', contentEntryVersion.dax_1.toString())])); } return new LaunchResult(); }; protoOf(DefaultLaunchContentEntryVersionUseCase).gp3 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.ep3(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function LaunchResult(message) { message = message === VOID ? null : message; this.hp3_1 = message; } protoOf(LaunchResult).toString = function () { return 'LaunchResult(message=' + this.hp3_1 + ')'; }; protoOf(LaunchResult).hashCode = function () { return this.hp3_1 == null ? 0 : getStringHashCode(this.hp3_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.hp3_1 == tmp0_other_with_cast.hp3_1)) return false; return true; }; function LaunchContentEntryVersionUseCase() { } function LaunchEpubUseCase() { } function LaunchXapiUseCase() { } function XapiLaunchHrefResult(url, launchUriInContent, launchActivity, manifestUrl) { this.ip3_1 = url; this.jp3_1 = launchUriInContent; this.kp3_1 = launchActivity; this.lp3_1 = manifestUrl; } function ResolveXapiLaunchHrefUseCase$invoke$lambda($contentEntryVersionUid) { return function () { return 'Resolving xAPI url for contentEntryVersion ' + $contentEntryVersionUid.toString(); }; } function ResolveXapiLaunchHrefUseCase$invoke$slambda($contentEntryVersionUid, resultContinuation) { this.up3_1 = $contentEntryVersionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).wp3 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ResolveXapiLaunchHrefUseCase$invoke$slambda).he = function (p1, $completion) { return this.wp3(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.vp3_1.i7f().wbp(this.up3_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).env = function (it, completion) { var i = new ResolveXapiLaunchHrefUseCase$invoke$slambda(this.up3_1, completion); i.vp3_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.wp3(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$30(_this__u8e3s4, contentEntryVersionUid, clazzUid, cbUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fp4_1 = _this__u8e3s4; this.gp4_1 = contentEntryVersionUid; this.hp4_1 = clazzUid; this.ip4_1 = cbUid; } 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 = 7; var tmp_0 = Napier_getInstance(); tmp_0.e5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda(this.gp4_1)); this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.fp4_1.mp5_1, ResolveXapiLaunchHrefUseCase$invoke$slambda_0(this.gp4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.jp4_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.jp4_1 == null) { throw IllegalArgumentException_init_$Create$('could not load contententryversion ' + this.gp4_1.toString()); } else { tmp_2 = this.jp4_1; } tmp_1.kp4_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.kp4_1.gax_1; var tmp_4; if (tmp1_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.gp4_1.toString() + ' manifesturl is null'); } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.lp4_1 = tmp_4; var tmp_5 = this; tmp_5.mp4_1 = this.fp4_1.op5_1; var tmp_6 = this; tmp_6.np4_1 = this.fp4_1.np5_1; var tmp_7 = this; tmp_7.op4_1 = this.lp4_1; var tmp_8 = this; tmp_8.pp4_1 = this.np4_1; var tmp_9 = this; tmp_9.qp4_1 = this.pp4_1; var tmp_10 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.op4_1); tmp_10.rp4_1 = this_0; this.rp4_1.w38_1 = Companion_getInstance().l2x_1; var tmp_11 = this; tmp_11.sp4_1 = this.qp4_1; var tmp_12 = this; tmp_12.tp4_1 = this.rp4_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.tp4_1, this.sp4_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.up4_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.up4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.vp4_1 = suspendResult; var tmp_13 = this; var this_1 = this.mp4_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_13.wp4_1 = this.mp4_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.vp4_1); this.xp4_1 = requireEntryByUri(this.wp4_1, ensureNotNull(this.kp4_1.eax_1)); var tmp_14 = this; tmp_14.yp4_1 = this.fp4_1.np5_1; var tmp_15 = this; tmp_15.zp4_1 = this.xp4_1.bod_1; var tmp_16 = this; tmp_16.ap5_1 = this.yp4_1; var tmp_17 = this; tmp_17.bp5_1 = this.ap5_1; var tmp_18 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.zp4_1); tmp_18.cp5_1 = this_3; this.cp5_1.w38_1 = Companion_getInstance().l2x_1; var tmp_19 = this; tmp_19.dp5_1 = this.bp5_1; var tmp_20 = this; tmp_20.ep5_1 = this.cp5_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.ep5_1, this.dp5_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.fp5_1 = suspendResult; this.hd_1 = 5; suspendResult = bodyAsDecodedText(this.fp5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.gp5_1 = suspendResult; this.hp5_1 = this.fp4_1.pp5_1.y7c(); setInputString(this.hp5_1, this.gp5_1); this.ip5_1 = Companion_instance_134.vp5(this.hp5_1); var tmp_21 = this; var tmp2_safe_receiver = this.ip5_1.wp5_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ep6_1; var tmp_22; if (tmp3_elvis_lhs == null) { throw IllegalStateException_init_$Create$('ContentEntryVersion ' + this.gp4_1.toString() + ' manifesturl is null'); } else { tmp_22 = tmp3_elvis_lhs; } tmp_21.jp5_1 = tmp_22; var tmp_23 = this; var tmp4_safe_receiver = this.ip5_1.wp5_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.bp6_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.kp5_1 = tmp_24; this.lp5_1 = this.fp4_1.sp5_1.go6().tnq_1.f96_1; this.hd_1 = 6; suspendResult = this.fp4_1.qp5_1.hp6(this.lp5_1, this.fp4_1.sp5_1.go6().ynq(), this.kp5_1, this.hp4_1, this.ip4_1, this.kp4_1.dax_1, this.gp4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var xapiSession = suspendResult; var queryParams = mapOf([to('endpoint', this.fp4_1.rp5_1.loe('/api/xapi/')), to('auth', authorizationHeader(xapiSession)), to('actor', this.fp4_1.op5_1.r45(Companion_instance_112.n4r(), agent(xapiSession, this.fp4_1.tp5_1))), to('registration', get_registrationUuid(xapiSession).toString()), to('activity_id', xapiSession.kjv_1)]); var url_0 = appendQueryArgs(UMFileUtil_getInstance().np6(this.lp4_1, this.jp5_1), queryParams); var tinCanXmlPathPrefix = substringBeforeLast(ensureNotNull(this.kp4_1.eax_1), '/', ''); var tmp_25 = Napier_getInstance(); tmp_25.e5e(VOID, VOID, ResolveXapiLaunchHrefUseCase$invoke$lambda_0(this.gp4_1, url_0)); return new XapiLaunchHrefResult(url_0, appendQueryArgs(tinCanXmlPathPrefix + this.jp5_1, queryParams), ensureNotNull(this.ip5_1.wp5_1), this.lp4_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.mp5_1 = activeRepoOrDb; this.np5_1 = httpClient; this.op5_1 = json; this.pp5_1 = xppFactory; this.qp5_1 = resumeOrStartXapiSessionUseCase; this.rp5_1 = getApiUrlUseCase; this.sp5_1 = accountManager; this.tp5_1 = learningSpace; } protoOf(ResolveXapiLaunchHrefUseCase).op6 = function (contentEntryVersionUid, clazzUid, cbUid, $completion) { var tmp = new $invokeCOROUTINE$30(this, contentEntryVersionUid, clazzUid, cbUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function MoveContentEntriesUseCase(repo, systemImpl) { this.pp6_1 = repo; this.qp6_1 = systemImpl; } protoOf(MoveContentEntriesUseCase).rp6 = 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.uoz_1.equals(destContentEntry.eav_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { throw IllegalArgumentException_init_$Create$(this.qp6_1.eog(strings_getInstance().nni_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.woz_1.equals(destContentEntry.eav_1)) { tmp$ret$2 = true; break $l$block_2; } } tmp$ret$2 = false; } if (tmp$ret$2) { throw IllegalArgumentException_init_$Create$(this.qp6_1.eog(strings_getInstance().oni_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.voz_1; destination.i1(tmp$ret$4); } var uidsToMove = destination; if (uidsToMove.c1()) return Unit_instance; return this.pp6_1.x7d().hbd(destContentEntry.eav_1, uidsToMove, systemTimeInMillis(), $completion); }; function SaveContentEntryUseCase$invoke$slambda$lambda($picture) { return function () { return 'SavePictureUseCase: ContentEntry Set picture upsert uri = ' + $picture.waw_1 + ' uid=' + $picture.uaw_1.toString(); }; } function SaveContentEntryUseCase$invoke$slambda($effectiveDb, $contentEntry, $picture, $initPictureUri, this$0, $joinToParentUid, resultContinuation) { this.ap7_1 = $effectiveDb; this.bp7_1 = $contentEntry; this.cp7_1 = $picture; this.dp7_1 = $initPictureUri; this.ep7_1 = this$0; this.fp7_1 = $joinToParentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveContentEntryUseCase$invoke$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveContentEntryUseCase$invoke$slambda).he = function (p1, $completion) { return this.dnv(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.ap7_1.v7d().hau(this.bp7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.cp7_1 == null) ? !(this.cp7_1.waw_1 == this.dp7_1) : false) { var tmp_0 = Napier_getInstance(); tmp_0.e5e(VOID, VOID, SaveContentEntryUseCase$invoke$slambda$lambda(this.cp7_1)); this.hd_1 = 2; suspendResult = this.ep7_1.hp7_1.r7f().kbi(listOf_0(this.cp7_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.fp7_1 == null)) { this.hd_1 = 4; suspendResult = this.ap7_1.x7d().insertAsync(new ContentEntryParentChildJoin(this.fp7_1, this.bp7_1.eav_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).env = function (it, completion) { var i = new SaveContentEntryUseCase$invoke$slambda(this.ap7_1, this.bp7_1, this.cp7_1, this.dp7_1, this.ep7_1, this.fp7_1, completion); i.gp7_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.dnv(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$31(_this__u8e3s4, contentEntry, joinToParentUid, picture, initPictureUri, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.sp7_1 = _this__u8e3s4; this.tp7_1 = contentEntry; this.up7_1 = joinToParentUid; this.vp7_1 = picture; this.wp7_1 = initPictureUri; } 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; var tmp_0 = this; var tmp0_elvis_lhs = this.sp7_1.ip7_1; tmp_0.xp7_1 = tmp0_elvis_lhs == null ? this.sp7_1.hp7_1 : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.xp7_1, VOID, SaveContentEntryUseCase$invoke$slambda_0(this.xp7_1, this.tp7_1, this.vp7_1, this.wp7_1, this.sp7_1, this.up7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.vp7_1 == null) ? !(this.vp7_1.waw_1 == this.wp7_1) : false) { this.hd_1 = 2; var tmp_1 = this.vp7_1.uaw_1; suspendResult = this.sp7_1.jp7_1.poo(tmp_1, 6678, this.vp7_1.waw_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.hp7_1 = db; this.ip7_1 = repo; this.jp7_1 = enqueueSavePictureUseCase; } protoOf(SaveContentEntryUseCase).yp7 = function (contentEntry, joinToParentUid, picture, initPictureUri, $completion) { var tmp = new $invokeCOROUTINE$31(this, contentEntry, joinToParentUid, picture, initPictureUri, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function AddOrUpdateCourseBlockUseCase() { } protoOf(AddOrUpdateCourseBlockUseCase).zp7 = 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.dk4_1.t7x_1.equals(addOrUpdateBlock.dk4_1.t7x_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.pk4(addOrUpdateBlock.dk4_1.vkh(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.dk4_1.w7x_1.equals(parentModUid) ? true : !(item.dk4_1.g7y_1 === index_0)) { tmp = item.pk4(item.dk4_1.vkh(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).dk4_1; var tmp = block.u7x_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.dk4_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.u7x_1; if (tmp_2 === 100) { tmp_1 = 1; } else { tmp_1 = prevBlock.v7x_1; } var autoIndent = tmp_1; var tmp_3; if (!(block.v7x_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).pk4(this_0.v(index).dk4_1.vkh(VOID, VOID, autoIndent))); tmp_3 = toList(this_0); } else { tmp_3 = _this__u8e3s4; } return tmp_3; } function findParentModule(_this__u8e3s4, forBlock) { var tmp = forBlock.dk4_1.u7x_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.dk4_1.t7x_1.equals(forBlock.dk4_1.t7x_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.dk4_1.u7x_1; if (tmp_2 === 100) { tmp_1 = prevBlock.dk4_1.t7x_1; } else { if (prevBlock.dk4_1.v7x_1 >= 1) { tmp_1 = prevBlock.dk4_1.w7x_1; } else { tmp_1 = new Long(0, 0); } } return tmp_1; } function UpdateCourseBlocksOnReorderOrCommitUseCase() { } protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).ap8 = function (currentList, autoIndentIndex) { var tmp; if (autoIndentIndex >= 0) { tmp = autoIndent(currentList, autoIndentIndex); } else { tmp = currentList; } var listIndented = tmp; return updateParentModuleUidsAndIndex(listIndented); }; protoOf(UpdateCourseBlocksOnReorderOrCommitUseCase).bp8 = function (currentList, autoIndentIndex, $super) { autoIndentIndex = autoIndentIndex === VOID ? -1 : autoIndentIndex; return $super === VOID ? this.ap8(currentList, autoIndentIndex) : $super.ap8.call(this, currentList, autoIndentIndex); }; function CreatePasskeyParams(username, personUid, doorNodeId, usStartTime, serverUrl, masterUrl, person) { this.cp8_1 = username; this.dp8_1 = personUid; this.ep8_1 = doorNodeId; this.fp8_1 = usStartTime; this.gp8_1 = serverUrl; this.hp8_1 = masterUrl; this.ip8_1 = person; } protoOf(CreatePasskeyParams).toString = function () { return 'CreatePasskeyParams(username=' + this.cp8_1 + ', personUid=' + this.dp8_1 + ', doorNodeId=' + this.ep8_1 + ', usStartTime=' + this.fp8_1.toString() + ', serverUrl=' + this.gp8_1 + ', masterUrl=' + this.hp8_1 + ', person=' + this.ip8_1 + ')'; }; protoOf(CreatePasskeyParams).hashCode = function () { var result = getStringHashCode(this.cp8_1); result = imul(result, 31) + getStringHashCode(this.dp8_1) | 0; result = imul(result, 31) + getStringHashCode(this.ep8_1) | 0; result = imul(result, 31) + this.fp8_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.gp8_1) | 0; result = imul(result, 31) + getStringHashCode(this.hp8_1) | 0; result = imul(result, 31) + this.ip8_1.hashCode() | 0; return result; }; protoOf(CreatePasskeyParams).equals = function (other) { if (this === other) return true; if (!(other instanceof CreatePasskeyParams)) return false; var tmp0_other_with_cast = other instanceof CreatePasskeyParams ? other : THROW_CCE(); if (!(this.cp8_1 === tmp0_other_with_cast.cp8_1)) return false; if (!(this.dp8_1 === tmp0_other_with_cast.dp8_1)) return false; if (!(this.ep8_1 === tmp0_other_with_cast.ep8_1)) return false; if (!this.fp8_1.equals(tmp0_other_with_cast.fp8_1)) return false; if (!(this.gp8_1 === tmp0_other_with_cast.gp8_1)) return false; if (!(this.hp8_1 === tmp0_other_with_cast.hp8_1)) return false; if (!this.ip8_1.equals(tmp0_other_with_cast.ip8_1)) return false; return true; }; function CreatePasskeyRequestJsonUseCase(systemImpl, json) { this.jp8_1 = systemImpl; this.kp8_1 = json; } function CreatePasskeyUseCase() { } function CredentialResult() { } function PasswordCredentialResult() { } function PasskeyCredentialResult() { } function Error_1() { } function Companion_42() { } protoOf(Companion_42).mp8 = 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; }; var Companion_instance_91; function Companion_getInstance_59() { return Companion_instance_91; } function GetCredentialUseCase() { } function Companion_43() { } var Companion_instance_92; function Companion_getInstance_60() { return Companion_instance_92; } function $serializer_36() { $serializer_instance_36 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.credentials.PasskeyVerifyResult', this, 4); tmp0_serialDesc.t4f('isVerified', false); tmp0_serialDesc.t4f('personUid', false); tmp0_serialDesc.t4f('firstName', true); tmp0_serialDesc.t4f('lastName', true); this.op8_1 = tmp0_serialDesc; } protoOf($serializer_36).q44 = function () { return this.op8_1; }; protoOf($serializer_36).k4g = 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_36).s44 = function (decoder) { var tmp0_desc = this.op8_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.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return PasskeyVerifyResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_36).pp8 = function (encoder, value) { var tmp0_desc = this.op8_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.o49(tmp0_desc, 0, value.no2_1); tmp1_output.s49(tmp0_desc, 1, value.oo2_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.po2_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.po2_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.qo2_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.qo2_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_36).r44 = function (encoder, value) { return this.pp8(encoder, value instanceof PasskeyVerifyResult ? value : THROW_CCE()); }; var $serializer_instance_36; function $serializer_getInstance_48() { if ($serializer_instance_36 == null) new $serializer_36(); return $serializer_instance_36; } function PasskeyVerifyResult_init_$Init$(seen1, isVerified, personUid, firstName, lastName, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_48().op8_1); } $this.no2_1 = isVerified; $this.oo2_1 = personUid; if (0 === (seen1 & 4)) $this.po2_1 = null; else $this.po2_1 = firstName; if (0 === (seen1 & 8)) $this.qo2_1 = null; else $this.qo2_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.no2_1 = isVerified; this.oo2_1 = personUid; this.po2_1 = firstName; this.qo2_1 = lastName; } protoOf(PasskeyVerifyResult).toString = function () { return 'PasskeyVerifyResult(isVerified=' + this.no2_1 + ', personUid=' + this.oo2_1.toString() + ', firstName=' + this.po2_1 + ', lastName=' + this.qo2_1 + ')'; }; protoOf(PasskeyVerifyResult).hashCode = function () { var result = getBooleanHashCode(this.no2_1); result = imul(result, 31) + this.oo2_1.hashCode() | 0; result = imul(result, 31) + (this.po2_1 == null ? 0 : getStringHashCode(this.po2_1)) | 0; result = imul(result, 31) + (this.qo2_1 == null ? 0 : getStringHashCode(this.qo2_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.no2_1 === tmp0_other_with_cast.no2_1)) return false; if (!this.oo2_1.equals(tmp0_other_with_cast.oo2_1)) return false; if (!(this.po2_1 == tmp0_other_with_cast.po2_1)) return false; if (!(this.qo2_1 == tmp0_other_with_cast.qo2_1)) return false; return true; }; function SavePersonPasskeyUseCase(db, repo) { this.zny_1 = db; this.anz_1 = repo; } protoOf(SavePersonPasskeyUseCase).bnz = function (passkeyResult, $completion) { var tmp0_elvis_lhs = this.anz_1; var effectiveDb = tmp0_elvis_lhs == null ? this.zny_1 : tmp0_elvis_lhs; var personPasskey = new PersonPasskey(VOID, passkeyResult.xp8_1, passkeyResult.qp8_1, passkeyResult.rp8_1, passkeyResult.sp8_1, passkeyResult.tp8_1, passkeyResult.wp8_1, passkeyResult.up8_1, passkeyResult.vp8_1); return effectiveDb.b7g().ugx(personPasskey, $completion); }; function SavePasswordUseCase() { } function DeletePermanentlyUseCase(repoOrDb) { this.ap9_1 = repoOrDb; } protoOf(DeletePermanentlyUseCase).bp9 = function (items, $completion) { var timeNow = systemTimeInMillis(); var tmp = this.ap9_1.m7f(); // 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.wef_1; destination.i1(tmp$ret$0); } var tmp_0 = destination; return tmp.vef(tmp_0, 3, timeNow, $completion); }; function RestoreDeletedItemUseCase$invoke$slambda($itemsByType, this$0, $timeNow, $items, resultContinuation) { this.kp9_1 = $itemsByType; this.lp9_1 = this$0; this.mp9_1 = $timeNow; this.np9_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(RestoreDeletedItemUseCase$invoke$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(RestoreDeletedItemUseCase$invoke$slambda).he = function (p1, $completion) { return this.dnv(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.pp9_1 = this.kp9_1; var tmp_1 = this; tmp_1.qp9_1 = this.pp9_1.q2().w(); this.hd_1 = 1; continue $sm; case 1: if (!this.qp9_1.f()) { this.hd_1 = 4; continue $sm; } this.rp9_1 = this.qp9_1.e(); var tmp_2 = this; tmp_2.sp9_1 = this.rp9_1; this.tp9_1 = this.sp9_1.s2(); if (this.tp9_1 === 7) { this.hd_1 = 2; var tmp_3 = this.lp9_1.up9_1.x7d(); var this_0 = this.sp9_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.ceg_1); } suspendResult = tmp_3.ibd(destination, false, this.mp9_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.lp9_1.up9_1.m7f(); var this_1 = this.np9_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.wef_1); } suspendResult = tmp_4.vef(destination_0, 2, this.mp9_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).env = function (it, completion) { var i = new RestoreDeletedItemUseCase$invoke$slambda(this.kp9_1, this.lp9_1, this.mp9_1, this.np9_1, completion); i.op9_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.dnv(it, $completion); }; l.$arity = 1; return l; } function RestoreDeletedItemUseCase(repoOrDb) { this.up9_1 = repoOrDb; } protoOf(RestoreDeletedItemUseCase).bp9 = 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.beg_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.up9_1, VOID, RestoreDeletedItemUseCase$invoke$slambda_0(itemsByType, this, timeNow, items, null), $completion); }; function toEpubTocItem(_this__u8e3s4, $this, indentLevel, parentUids) { var uid = $this.wp9_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp8_uid = $this.wp9_1.atomicfu$incrementAndGet(); var tmp0_safe_receiver = _this__u8e3s4.yo7_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.oo7_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.zo7_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.oo8_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.yo7_1; var tmp10_href = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.po7_1; var tmp5_safe_receiver = _this__u8e3s4.ao8_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.no8_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.wp9_1.atomicfu$incrementAndGet(); var uidsForChildren = plus_2(parentUids, uid); var tmp0_safe_receiver = firstOrNull(_this__u8e3s4.no9_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fo9_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.aoa_1; var tmp3_label = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp4_href = _this__u8e3s4.oo9_1.uo8_1; // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.qo9_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$32(_this__u8e3s4, opfPackage, readItemText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.fpa_1 = _this__u8e3s4; this.gpa_1 = opfPackage; this.hpa_1 = readItemText; } 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 = 4; this.ipa_1 = this.gpa_1.eoc(); if (!(this.ipa_1 == null) ? startsWith(this.ipa_1.zoa_1, 'application/xhtml') : false) { this.hd_1 = 2; suspendResult = this.hpa_1(this.ipa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_0; if (!(this.ipa_1 == null)) { tmp_0 = this.ipa_1.zoa_1 === 'application/x-dtbncx+xml'; } else { tmp_0 = false; } if (tmp_0) { this.hd_1 = 1; suspendResult = this.hpa_1(this.ipa_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.jpa_1 = null; this.hd_1 = 3; continue $sm; } } case 1: var docStr = suspendResult; var this_0 = this.fpa_1.vp9_1; var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(NcxDocument), arrayOf([]), false)); var ncxDoc = this_0.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), docStr); var tmp_2 = this; var this_3 = ncxDoc.xo9_1.jo9_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.fpa_1, 0, emptySet()); var list = plus(listOf_0(it), it.npa_1); addAll(destination, list); } tmp_2.jpa_1 = destination; this.hd_1 = 3; continue $sm; case 2: var docStr_0 = suspendResult; var this_4 = this.fpa_1.vp9_1; var this_5 = this_4.t45(); var this_6 = serializer(this_5, createKType(getKClass(NavigationDocument), arrayOf([]), false)); var navDoc = this_4.s45(isInterface(this_6, KSerializer) ? this_6 : THROW_CCE(), docStr_0); var tmp_3 = this; var this_7 = first_0(navDoc.jo8_1.so7_1).eo8_1.no8_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.fpa_1, 0, emptySet()); var list_0 = plus(listOf_0(it_0), it_0.npa_1); addAll(destination_0, list_0); } tmp_3.jpa_1 = destination_0; this.hd_1 = 3; continue $sm; case 3: return this.jpa_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.vp9_1 = xml; this.wp9_1 = atomic$int$1(0); } protoOf(GetEpubTableOfContentsUseCase).rpa = function (opfPackage, readItemText, $completion) { var tmp = new $invokeCOROUTINE$32(this, opfPackage, readItemText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_44() { Companion_instance_93 = this; this.spa_1 = Companion_getInstance_72().vpa_1; } var Companion_instance_93; function Companion_getInstance_61() { if (Companion_instance_93 == null) new Companion_44(); return Companion_instance_93; } function FilterUsernameUseCase() { Companion_getInstance_61(); } protoOf(FilterUsernameUseCase).wpa = 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_61().spa_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.xpa_1 = learningSpace; } protoOf(GetApiUrlUseCaseDirect).loe = function (path) { return requirePostfix(this.xpa_1.nnp_1, '/') + removePrefix(path, '/'); }; function VersionInfo(versionString, buildTime) { this.ypa_1 = versionString; this.zpa_1 = buildTime; } protoOf(VersionInfo).toString = function () { return 'VersionInfo(versionString=' + this.ypa_1 + ', buildTime=' + this.zpa_1.toString() + ')'; }; protoOf(VersionInfo).hashCode = function () { var result = getStringHashCode(this.ypa_1); result = imul(result, 31) + this.zpa_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.ypa_1 === tmp0_other_with_cast.ypa_1)) return false; if (!this.zpa_1.equals(tmp0_other_with_cast.zpa_1)) return false; return true; }; function GetVersionUseCase() { } function HideKeyboardUseCase() { } function GetHtmlContentDisplayEngineOptionsUseCase(optionsList) { this.cpb_1 = optionsList; } protoOf(GetHtmlContentDisplayEngineOptionsUseCase).apb = function () { return this.cpb_1; }; function GetHtmlContentDisplayEngineUseCase(settings, getOptionsUseCase) { this.dpb_1 = settings; this.epb_1 = getOptionsUseCase; } protoOf(GetHtmlContentDisplayEngineUseCase).apb = function () { // Inline function 'com.russhwolf.settings.get' call var this_0 = this.dpb_1; var key = 'com.ustadmobile.htmlcontentdisplayengine'; var settingInt = this_0.im3(key, 0); var tmp$ret$2; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.epb_1.apb().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.domain.htmlcontentdisplayengine.GetHtmlContentDisplayEngineUseCase.invoke.' call if (element.fpb_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.epb_1.apb()) : tmp0_elvis_lhs; }; function Companion_45() { this.ipb_1 = 'com.ustadmobile.htmlcontentdisplayengine'; } var Companion_instance_94; function Companion_getInstance_62() { return Companion_instance_94; } function SetHtmlContentDisplayEngineUseCase(settings) { this.jpb_1 = settings; } function ClazzInviteRedeemException(message, stringResource) { Exception_init_$Init$(message, this); captureStack(this, ClazzInviteRedeemException); this.kpb_1 = stringResource; } protoOf(ClazzInviteRedeemException).lpb = function () { return this.kpb_1; }; function ClazzInviteRedeemUseCase$invoke$slambda($effectiveDb, $clazzInvite, $enrolmentUid, resultContinuation) { this.upb_1 = $effectiveDb; this.vpb_1 = $clazzInvite; this.wpb_1 = $enrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemUseCase$invoke$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemUseCase$invoke$slambda).he = function (p1, $completion) { return this.dnv(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.upb_1.t7d().m93(this.vpb_1.c9n_1, this.wpb_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.upb_1.e7g(); suspendResult = tmp_0.l9m(1, this.vpb_1.c9n_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).env = function (it, completion) { var i = new ClazzInviteRedeemUseCase$invoke$slambda(this.upb_1, this.vpb_1, this.wpb_1, completion); i.xpb_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.dnv(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$33(_this__u8e3s4, inviteCode, isAccepting, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gpc_1 = _this__u8e3s4; this.hpc_1 = inviteCode; this.ipc_1 = isAccepting; this.jpc_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 = 5; var tmp_0 = this; var tmp0_elvis_lhs = this.gpc_1.qpc_1; tmp_0.kpc_1 = tmp0_elvis_lhs == null ? this.gpc_1.ppc_1 : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = this.kpc_1.e7g().j9m(this.hpc_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.lpc_1 = suspendResult; var tmp_1 = this; var tmp1_safe_receiver = this.lpc_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n9n_1; var tmp_2; if (tmp2_elvis_lhs == null) { throw new ClazzInviteRedeemException('Invite not found', strings_getInstance().cnk_1); } else { tmp_2 = tmp2_elvis_lhs; } tmp_1.mpc_1 = tmp_2; var tmp_3 = this.mpc_1.j9n_1; if (tmp_3 === 3) { throw new ClazzInviteRedeemException('Invite code is revoked', strings_getInstance().hnn_1); } var tmp_4 = this.mpc_1.j9n_1; if (!(tmp_4 === 0)) { throw new ClazzInviteRedeemException('Invite already used', strings_getInstance().wnm_1); } if (this.mpc_1.k9n_1.c7(systemTimeInMillis()) < 0) { throw new ClazzInviteRedeemException('Invite code is expired', strings_getInstance().gnn_1); } if (this.ipc_1) { this.hd_1 = 3; var tmp_5 = ClazzEnrolment_init_$Create$(this.mpc_1.f9n_1, this.jpc_1, this.mpc_1.e9n_1.mb()); var tmp3_elvis_lhs = this.lpc_1.o9n_1; suspendResult = this.gpc_1.opc_1.gow(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.kpc_1.e7g(); suspendResult = tmp_6.l9m(2, this.mpc_1.c9n_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: return new ClazzRedeemResult(this.gpc_1.rpc_1.eog(strings_getInstance().enn_1)); case 3: this.npc_1 = suspendResult; this.hd_1 = 4; suspendResult = withDoorTransactionAsync(this.kpc_1, VOID, ClazzInviteRedeemUseCase$invoke$slambda_0(this.kpc_1, this.mpc_1, this.npc_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return new ClazzRedeemResult(this.gpc_1.rpc_1.eog(strings_getInstance().cnn_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.opc_1 = enrolIntoCourseUseCase; this.ppc_1 = db; this.qpc_1 = repo; this.rpc_1 = systemImpl; } protoOf(ClazzInviteRedeemUseCase).spc = function (inviteCode, isAccepting, personUid, $completion) { var tmp = new $invokeCOROUTINE$33(this, inviteCode, isAccepting, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function ClazzRedeemResult(message) { this.tpc_1 = message; } protoOf(ClazzRedeemResult).toString = function () { return 'ClazzRedeemResult(message=' + this.tpc_1 + ')'; }; protoOf(ClazzRedeemResult).hashCode = function () { return getStringHashCode(this.tpc_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.tpc_1 === tmp0_other_with_cast.tpc_1)) return false; return true; }; function $invokeCOROUTINE$34(_this__u8e3s4, viewUri, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.cpd_1 = _this__u8e3s4; this.dpd_1 = viewUri; this.epd_1 = personUid; } 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 = 2; this.fpd_1 = indexOf(this.dpd_1, _Char___init__impl__6a9atx(63)); var tmp_0 = this; var tmp_1; if (this.fpd_1 > 0) { var tmp_2 = UMFileUtil_getInstance(); var this_0 = this.dpd_1; var startIndex = this.fpd_1; tmp_1 = tmp_2.parseURLQueryString(this_0.substring(startIndex)); } else { tmp_1 = emptyMap(); } tmp_0.gpd_1 = tmp_1; this.hd_1 = 1; suspendResult = this.cpd_1.hpd_1.spc(first_1(this.gpd_1.p2()), true, this.epd_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.hpd_1 = clazzInviteRedeemUseCase; } protoOf(EnrollToCourseFromInviteCodeUseCase).ipd = function (viewUri, personUid, $completion) { var tmp = new $invokeCOROUTINE$34(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.jpd_1 = phoneNumValidatorUseCase; this.kpd_1 = validateEmailUseCase; } protoOf(ParseInviteUseCase).loe = 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.kpd_1.loe(item_0) == null)) { tmp = new InviteViaContactChip(item_0, true, 1); } else if (this.jpd_1.lpd(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_46() { } protoOf(Companion_46).n4r = function () { return $serializer_getInstance_49(); }; var Companion_instance_95; function Companion_getInstance_63() { return Companion_instance_95; } function $serializer_37() { $serializer_instance_37 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.invite.ResendInviteRequest', this, 2); tmp0_serialDesc.t4f('contacts', false); tmp0_serialDesc.t4f('personUid', false); this.mpd_1 = tmp0_serialDesc; } protoOf($serializer_37).q44 = function () { return this.mpd_1; }; protoOf($serializer_37).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_37).s44 = function (decoder) { var tmp0_desc = this.mpd_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_input = decoder.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return ResendInviteRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_37).npd = function (encoder, value) { var tmp0_desc = this.mpd_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.opd_1); tmp1_output.s49(tmp0_desc, 1, value.ppd_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_37).r44 = function (encoder, value) { return this.npd(encoder, value instanceof ResendInviteRequest ? value : THROW_CCE()); }; var $serializer_instance_37; function $serializer_getInstance_49() { if ($serializer_instance_37 == null) new $serializer_37(); return $serializer_instance_37; } function ResendInviteRequest_init_$Init$(seen1, contacts, personUid, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_49().mpd_1); } $this.opd_1 = contacts; $this.ppd_1 = personUid; return $this; } function ResendInviteRequest_init_$Create$(seen1, contacts, personUid, serializationConstructorMarker) { return ResendInviteRequest_init_$Init$(seen1, contacts, personUid, serializationConstructorMarker, objectCreate(protoOf(ResendInviteRequest))); } function ResendInviteRequest(contacts, personUid) { this.opd_1 = contacts; this.ppd_1 = personUid; } protoOf(ResendInviteRequest).toString = function () { return 'ResendInviteRequest(contacts=' + this.opd_1 + ', personUid=' + this.ppd_1.toString() + ')'; }; protoOf(ResendInviteRequest).hashCode = function () { var result = getStringHashCode(this.opd_1); result = imul(result, 31) + this.ppd_1.hashCode() | 0; return result; }; protoOf(ResendInviteRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof ResendInviteRequest)) return false; var tmp0_other_with_cast = other instanceof ResendInviteRequest ? other : THROW_CCE(); if (!(this.opd_1 === tmp0_other_with_cast.opd_1)) return false; if (!this.ppd_1.equals(tmp0_other_with_cast.ppd_1)) return false; return true; }; function ResendInviteUseCase$invoke$lambda($respose) { return function () { return 'ResendInviteUseCase:- ' + $respose; }; } function ResendInviteUseCase$invoke$lambda_0($e) { return function () { return 'ResendInviteUseCase:- exception ' + $e; }; } function $invokeCOROUTINE$35(_this__u8e3s4, contact, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ypd_1 = _this__u8e3s4; this.zpd_1 = contact; this.ape_1 = personUid; } 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 = 4; this.id_1 = 3; var tmp_0 = this; tmp_0.bpe_1 = this.ypd_1.jpe_1; var tmp_1 = this; tmp_1.cpe_1 = this.ypd_1.kpe_1.nnp_1 + 'api/resendinvite/sendcontact'; var tmp_2 = this; tmp_2.dpe_1 = this.bpe_1; var tmp_3 = this; tmp_3.epe_1 = this.dpe_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.cpe_1); contentType(this_0, Application_getInstance().v2r_1); setBodyJson(this_0, this.ypd_1.lpe_1, Companion_instance_95.n4r(), new ResendInviteRequest(this.zpd_1, this.ape_1)); tmp_4.fpe_1 = this_0; this.fpe_1.w38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.gpe_1 = this.epe_1; var tmp_6 = this; tmp_6.hpe_1 = this.fpe_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.hpe_1, this.gpe_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ipe_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.ipe_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var respose = suspendResult; var tmp_7 = Napier_getInstance(); tmp_7.k5e(VOID, VOID, ResendInviteUseCase$invoke$lambda(respose)); return respose; case 3: this.id_1 = 4; var tmp_8 = this.kd_1; if (tmp_8 instanceof Error) { var e = this.kd_1; var tmp_9 = Napier_getInstance(); tmp_9.k5e(VOID, VOID, ResendInviteUseCase$invoke$lambda_0(e)); return toString_0(e.message); } 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 ResendInviteUseCase(httpClient, learningSpace, json) { this.jpe_1 = httpClient; this.kpe_1 = learningSpace; this.lpe_1 = json; } protoOf(ResendInviteUseCase).mpe = function (contact, personUid, $completion) { var tmp = new $invokeCOROUTINE$35(this, contact, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function Companion_47() { Companion_instance_96 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.npe_1 = [new ArrayListSerializer(StringSerializer_getInstance()), null, null, null]; } protoOf(Companion_47).n4r = function () { return $serializer_getInstance_50(); }; var Companion_instance_96; function Companion_getInstance_64() { if (Companion_instance_96 == null) new Companion_47(); return Companion_instance_96; } function $serializer_38() { $serializer_instance_38 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.invite.SendClazzInvitesUseCase.SendClazzInvitesRequest', this, 4); tmp0_serialDesc.t4f('contacts', false); tmp0_serialDesc.t4f('clazzUid', false); tmp0_serialDesc.t4f('role', false); tmp0_serialDesc.t4f('personUid', false); this.ope_1 = tmp0_serialDesc; } protoOf($serializer_38).q44 = function () { return this.ope_1; }; protoOf($serializer_38).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_64().npe_1[0], LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_38).s44 = function (decoder) { var tmp0_desc = this.ope_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.i48(tmp0_desc); var tmp9_cached = Companion_getInstance_64().npe_1; if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.o48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.u48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.o48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return SendClazzInvitesRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_38).ppe = function (encoder, value) { var tmp0_desc = this.ope_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_64().npe_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.qpe_1); tmp1_output.s49(tmp0_desc, 1, value.rpe_1); tmp1_output.s49(tmp0_desc, 2, value.spe_1); tmp1_output.s49(tmp0_desc, 3, value.tpe_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_38).r44 = function (encoder, value) { return this.ppe(encoder, value instanceof SendClazzInvitesRequest ? value : THROW_CCE()); }; var $serializer_instance_38; function $serializer_getInstance_50() { if ($serializer_instance_38 == null) new $serializer_38(); return $serializer_instance_38; } function SendClazzInvitesRequest_init_$Init$(seen1, contacts, clazzUid, role, personUid, serializationConstructorMarker, $this) { if (!(15 === (15 & seen1))) { throwMissingFieldException(seen1, 15, $serializer_getInstance_50().ope_1); } $this.qpe_1 = contacts; $this.rpe_1 = clazzUid; $this.spe_1 = role; $this.tpe_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_64(); this.qpe_1 = contacts; this.rpe_1 = clazzUid; this.spe_1 = role; this.tpe_1 = personUid; } protoOf(SendClazzInvitesRequest).toString = function () { return 'SendClazzInvitesRequest(contacts=' + this.qpe_1 + ', clazzUid=' + this.rpe_1.toString() + ', role=' + this.spe_1.toString() + ', personUid=' + this.tpe_1.toString() + ')'; }; protoOf(SendClazzInvitesRequest).hashCode = function () { var result = hashCode(this.qpe_1); result = imul(result, 31) + this.rpe_1.hashCode() | 0; result = imul(result, 31) + this.spe_1.hashCode() | 0; result = imul(result, 31) + this.tpe_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.qpe_1, tmp0_other_with_cast.qpe_1)) return false; if (!this.rpe_1.equals(tmp0_other_with_cast.rpe_1)) return false; if (!this.spe_1.equals(tmp0_other_with_cast.spe_1)) return false; if (!this.tpe_1.equals(tmp0_other_with_cast.tpe_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$36(_this__u8e3s4, request, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.dpf_1 = _this__u8e3s4; this.epf_1 = request; } 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 = 3; this.id_1 = 2; var tmp_0 = this; tmp_0.fpf_1 = this.dpf_1.mpf_1; var tmp_1 = this; tmp_1.gpf_1 = this.dpf_1.npf_1.nnp_1 + 'api/invite/sendclazzinvites'; var tmp_2 = this; tmp_2.hpf_1 = this.fpf_1; var tmp_3 = this; tmp_3.ipf_1 = this.hpf_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.gpf_1); contentType(this_0, Application_getInstance().v2r_1); setBodyJson(this_0, this.dpf_1.opf_1, Companion_getInstance_64().n4r(), this.epf_1); tmp_4.jpf_1 = this_0; this.jpf_1.w38_1 = Companion_getInstance().m2x_1; var tmp_5 = this; tmp_5.kpf_1 = this.ipf_1; var tmp_6 = this; tmp_6.lpf_1 = this.jpf_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.lpf_1, this.kpf_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_7 = Napier_getInstance(); tmp_7.k5e(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.k5e(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.mpf_1 = httpClient; this.npf_1 = learningSpace; this.opf_1 = json; } protoOf(SendClazzInvitesUseCaseSendToServerImpl).upe = function (request, $completion) { var tmp = new $invokeCOROUTINE$36(this, request, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SetLangResult(waitForRestart) { this.ppf_1 = waitForRestart; } protoOf(SetLangResult).toString = function () { return 'SetLangResult(waitForRestart=' + this.ppf_1 + ')'; }; protoOf(SetLangResult).hashCode = function () { return getBooleanHashCode(this.ppf_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.ppf_1 === tmp0_other_with_cast.ppf_1)) return false; return true; }; function SetLanguageUseCase() { } function LaunchOpenLicensesUseCase() { } function GoToLearningSpaceUseCase() { } function GetLocalAccountsSupportedUseCase(localAccountsSupported) { this.tpf_1 = localAccountsSupported; } protoOf(GetLocalAccountsSupportedUseCase).apb = function () { return this.tpf_1; }; function MakeLinkUseCase(learningSpace) { this.upf_1 = learningSpace; } protoOf(MakeLinkUseCase).vpf = function (destName, args) { var tmp = UMFileUtil_getInstance(); Companion_getInstance_95(); return appendQueryArgs_0(tmp.wpf([this.upf_1.nnp_1, '/umapp/#/']) + destName, toQueryString(args)); }; function GetDefaultDestinationUseCase(systemUrlConfig, learningSpace) { this.xpf_1 = systemUrlConfig; this.ypf_1 = learningSpace; } protoOf(GetDefaultDestinationUseCase).apb = function () { var tmp; if (this.ypf_1.nnp_1 === this.xpf_1.uo6_1 ? true : this.ypf_1.snp()) { Companion_getInstance_167(); tmp = 'ContentEntryListHome'; } else { Companion_getInstance_138(); tmp = 'CourseListHome'; } return tmp; }; function OnClickLinkUseCase_init_$Init$(navController, accountManager, openExternalLinkUseCase, apiUrlConfig, $this) { OnClickLinkUseCase.call($this, navController, accountManager, openExternalLinkUseCase, apiUrlConfig.yo6_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.zpf_1 = navController; this.apg_1 = accountManager; this.bpg_1 = openExternalLinkUseCase; this.cpg_1 = userCanSelectServer; } protoOf(OnClickLinkUseCase).dpg = function (link, target) { navigateToLink(this.zpf_1, link, this.apg_1, this.bpg_1, VOID, VOID, this.cpg_1, VOID, VOID, target); }; var LinkTarget_BLANK_instance; var LinkTarget_TOP_instance; var LinkTarget_SELF_instance; var LinkTarget_DEFAULT_instance; function Companion_48() { } protoOf(Companion_48).hmc = function (targetAttr) { // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call switch (targetAttr.toLowerCase()) { case '_top': return LinkTarget_TOP_getInstance(); case '_blank': return LinkTarget_BLANK_getInstance(); case '_self': return LinkTarget_SELF_getInstance(); default: return LinkTarget_DEFAULT_getInstance(); } }; var Companion_instance_97; function Companion_getInstance_65() { return Companion_instance_97; } var LinkTarget_entriesInitialized; function LinkTarget_initEntries() { if (LinkTarget_entriesInitialized) return Unit_instance; LinkTarget_entriesInitialized = true; LinkTarget_BLANK_instance = new LinkTarget('BLANK', 0); LinkTarget_TOP_instance = new LinkTarget('TOP', 1); LinkTarget_SELF_instance = new LinkTarget('SELF', 2); LinkTarget_DEFAULT_instance = new LinkTarget('DEFAULT', 3); } function LinkTarget(name, ordinal) { Enum.call(this, name, ordinal); } function LinkTarget_BLANK_getInstance() { LinkTarget_initEntries(); return LinkTarget_BLANK_instance; } function LinkTarget_TOP_getInstance() { LinkTarget_initEntries(); return LinkTarget_TOP_instance; } function LinkTarget_SELF_getInstance() { LinkTarget_initEntries(); return LinkTarget_SELF_instance; } function LinkTarget_DEFAULT_getInstance() { LinkTarget_initEntries(); return LinkTarget_DEFAULT_instance; } function OpenExternalLinkUseCase() { } function UpdatePeerReviewAllocationUseCase$invoke$lambda($selectedMarkerUid) { return function ($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_elvis_lhs = $selectedMarkerUid; tmp.ffu_1 = tmp0_elvis_lhs == null ? new Long(0, 0) : tmp0_elvis_lhs; return Unit_instance; }; } function $invokeCOROUTINE$37(_this__u8e3s4, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mpg_1 = _this__u8e3s4; this.npg_1 = existingAllocations; this.opg_1 = groupUid; this.ppg_1 = clazzUid; this.qpg_1 = assignmentUid; this.rpg_1 = numReviewsPerSubmission; this.spg_1 = allocateRemaining; this.tpg_1 = resetAllocations; } protoOf($invokeCOROUTINE$37).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.mpg_1.nph_1.q7e().m7s(this.ppg_1, this.opg_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.upg_1 = suspendResult; var tmp_0 = this; tmp_0.vpg_1 = this.upg_1; var tmp_1 = this; tmp_1.wpg_1 = this.vpg_1; var tmp_2 = this; tmp_2.xpg_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.vpg_1, 10)); this.ypg_1 = this.wpg_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.ypg_1.f()) { this.hd_1 = 7; continue $sm; } this.zpg_1 = this.ypg_1.e(); var tmp_3 = this; tmp_3.aph_1 = this.zpg_1; var tmp_4 = this; tmp_4.bph_1 = this.mpg_1; var tmp_5 = this; var this_0 = this.npg_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.gfu_1.equals(this.aph_1)) { destination.i1(element); } } tmp_5.cph_1 = this.mpg_1.pph(destination, this.rpg_1); var tmp_6 = this; tmp_6.dph_1 = this.rpg_1; if (this.cph_1.u() >= this.dph_1) { this.eph_1 = this.cph_1; this.hd_1 = 6; continue $sm; } else { var tmp_7 = this; tmp_7.fph_1 = until(0, this.dph_1 - this.cph_1.u() | 0); var tmp_8 = this; tmp_8.gph_1 = this.fph_1; var tmp_9 = this; tmp_9.hph_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.fph_1, 10)); this.iph_1 = this.gph_1.w(); this.hd_1 = 3; continue $sm; } case 3: if (!this.iph_1.f()) { this.hd_1 = 5; continue $sm; } this.jph_1 = this.iph_1.e(); var tmp_10 = this; tmp_10.kph_1 = this.jph_1; var tmp_11 = this; tmp_11.lph_1 = new PeerReviewerAllocation(); var tmp_12 = this; tmp_12.mph_1 = this.lph_1; this.hd_1 = 4; var tmp_13 = get_doorPrimaryKeyManager(this.mpg_1.nph_1); suspendResult = tmp_13.o62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var ARGUMENT = suspendResult; this.mph_1.efu_1 = ARGUMENT; this.mph_1.gfu_1 = this.aph_1; this.mph_1.hfu_1 = this.qpg_1; var ARGUMENT_0 = this.lph_1; this.hph_1.i1(ARGUMENT_0); this.hd_1 = 3; continue $sm; case 5: var ARGUMENT_1 = this.hph_1; this.eph_1 = plus(this.cph_1, ARGUMENT_1); this.hd_1 = 6; continue $sm; case 6: var existingAllocationsForSubmitter = this.eph_1; var ARGUMENT_2 = to(this.aph_1, existingAllocationsForSubmitter); this.xpg_1.i1(ARGUMENT_2); this.hd_1 = 2; continue $sm; case 7: var ARGUMENT_3 = this.xpg_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.tpg_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).ckm(VOID, new Long(0, 0))); } while (inductionVariable <= last); } if (this.spg_1) { var this_1 = this.upg_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.ffu_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.rpg_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.ffu_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.gfu_1.equals(allocation.gfu_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.ffu_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.gfu_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.nph_1 = db; this.oph_1 = systemImpl; } protoOf(UpdatePeerReviewAllocationUseCase).pph = function (_this__u8e3s4, maxSize) { return _this__u8e3s4.u() <= maxSize ? _this__u8e3s4 : _this__u8e3s4.z(0, maxSize); }; protoOf(UpdatePeerReviewAllocationUseCase).qph = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) { var tmp = new $invokeCOROUTINE$37(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UpdatePeerReviewAllocationUseCase).rph = function (existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion, $super) { resetAllocations = resetAllocations === VOID ? false : resetAllocations; return $super === VOID ? this.qph(existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion) : $super.qph.call(this, existingAllocations, groupUid, clazzUid, assignmentUid, numReviewsPerSubmission, allocateRemaining, resetAllocations, $completion); }; function AddNewPersonUseCase$invoke$slambda($effectiveDb, $person, $systemPermissions, $createPersonParentApprovalIfMinor, $addedByPersonUid, $relationship, resultContinuation) { this.api_1 = $effectiveDb; this.bpi_1 = $person; this.cpi_1 = $systemPermissions; this.dpi_1 = $createPersonParentApprovalIfMinor; this.epi_1 = $addedByPersonUid; this.fpi_1 = $relationship; CoroutineImpl.call(this, resultContinuation); } protoOf(AddNewPersonUseCase$invoke$slambda).aoh = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AddNewPersonUseCase$invoke$slambda).he = function (p1, $completion) { return this.aoh(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.api_1.n7d().insertAsync(this.bpi_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hpi_1 = suspendResult; this.ipi_1 = this.bpi_1.f96_1.equals(new Long(0, 0)) ? this.hpi_1 : this.bpi_1.f96_1; this.hd_1 = 2; suspendResult = this.api_1.p7f().ohw(new SystemPermission(VOID, this.ipi_1, VOID, this.cpi_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: if (isDateOfBirthAMinor(Companion_getInstance_6().rmc(this.bpi_1.o96_1)) ? this.dpi_1 : false) { this.hd_1 = 3; var tmp_0 = this.api_1.x7e(); var tmp1_ppjApprovalTiemstamp = systemTimeInMillis(); suspendResult = tmp_0.vgq(new PersonParentJoin(VOID, VOID, VOID, VOID, VOID, this.epi_1, this.ipi_1, this.fpi_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.ipi_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).env = function (it, completion) { var i = new AddNewPersonUseCase$invoke$slambda(this.api_1, this.bpi_1, this.cpi_1, this.dpi_1, this.epi_1, this.fpi_1, completion); i.gpi_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.aoh(it, $completion); }; l.$arity = 1; return l; } function AddNewPersonUseCase(db, repo) { this.jpi_1 = db; this.kpi_1 = repo; } protoOf(AddNewPersonUseCase).lpi = function (person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) { var tmp0_elvis_lhs = this.kpi_1; var effectiveDb = tmp0_elvis_lhs == null ? this.jpi_1 : tmp0_elvis_lhs; return withDoorTransactionAsync(effectiveDb, VOID, AddNewPersonUseCase$invoke$slambda_0(effectiveDb, person, systemPermissions, createPersonParentApprovalIfMinor, addedByPersonUid, relationship, null), $completion); }; protoOf(AddNewPersonUseCase).mpi = 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.lpi(person, addedByPersonUid, createPersonParentApprovalIfMinor, systemPermissions, relationship, $completion) : $super.lpi.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.npi_1 = errors; } protoOf(BulkAddPersonException).toString = function () { var tmp0_elvis_lhs = this.message; return (tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs) + ' ' + joinToString(this.npi_1); }; function $serializer_39() { $serializer_instance_39 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsDataError', this, 3); tmp0_serialDesc.t4f('lineNum', false); tmp0_serialDesc.t4f('colName', false); tmp0_serialDesc.t4f('invalidValue', false); this.opi_1 = tmp0_serialDesc; } protoOf($serializer_39).q44 = function () { return this.opi_1; }; protoOf($serializer_39).k4g = 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_39).s44 = function (decoder) { var tmp0_desc = this.opi_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.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return BulkAddPersonsDataError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_39).ppi = function (encoder, value) { var tmp0_desc = this.opi_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.r49(tmp0_desc, 0, value.qpi_1); tmp1_output.w49(tmp0_desc, 1, value.rpi_1); tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.spi_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_39).r44 = function (encoder, value) { return this.ppi(encoder, value instanceof BulkAddPersonsDataError ? value : THROW_CCE()); }; var $serializer_instance_39; function $serializer_getInstance_51() { if ($serializer_instance_39 == null) new $serializer_39(); return $serializer_instance_39; } function BulkAddPersonsDataError_init_$Init$(seen1, lineNum, colName, invalidValue, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_51().opi_1); } $this.qpi_1 = lineNum; $this.rpi_1 = colName; $this.spi_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.qpi_1 + ', colName=' + this.rpi_1 + ', invalidValue=' + this.spi_1 + ')'; }; protoOf(BulkAddPersonsDataError).hashCode = function () { var result = this.qpi_1; result = imul(result, 31) + getStringHashCode(this.rpi_1) | 0; result = imul(result, 31) + (this.spi_1 == null ? 0 : getStringHashCode(this.spi_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.qpi_1 === tmp0_other_with_cast.qpi_1)) return false; if (!(this.rpi_1 === tmp0_other_with_cast.rpi_1)) return false; if (!(this.spi_1 == tmp0_other_with_cast.spi_1)) return false; return true; }; function BulkAddPersonsFromLocalUriUseCase() { } function Companion_49() { } var Companion_instance_98; function Companion_getInstance_66() { return Companion_instance_98; } function $serializer_40() { $serializer_instance_40 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.person.bulkadd.BulkAddPersonsUseCase.BulkAddUsersResult', this, 1); tmp0_serialDesc.t4f('numImported', false); this.upi_1 = tmp0_serialDesc; } protoOf($serializer_40).q44 = function () { return this.upi_1; }; protoOf($serializer_40).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance()]; }; protoOf($serializer_40).s44 = function (decoder) { var tmp0_desc = this.upi_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return BulkAddUsersResult_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_40).vpi = function (encoder, value) { var tmp0_desc = this.upi_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.r49(tmp0_desc, 0, value.wpi_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_40).r44 = function (encoder, value) { return this.vpi(encoder, value instanceof BulkAddUsersResult ? value : THROW_CCE()); }; var $serializer_instance_40; function $serializer_getInstance_52() { if ($serializer_instance_40 == null) new $serializer_40(); return $serializer_instance_40; } function BulkAddUsersResult_init_$Init$(seen1, numImported, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_52().upi_1); } $this.wpi_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.wpi_1 = numImported; } protoOf(BulkAddUsersResult).toString = function () { return 'BulkAddUsersResult(numImported=' + this.wpi_1 + ')'; }; protoOf(BulkAddUsersResult).hashCode = function () { return this.wpi_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.wpi_1 === tmp0_other_with_cast.wpi_1)) return false; return true; }; function IPhoneNumberUtil() { } function formatInternationalOrNull(_this__u8e3s4, number) { var tmp; try { tmp = _this__u8e3s4.ypi(_this__u8e3s4.xpi(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.zpi_1 = showPoweredBy; } protoOf(GetShowPoweredByUseCase).apb = function () { return this.zpi_1; }; function Companion_50() { this.apj_1 = 'en'; } var Companion_instance_99; function Companion_getInstance_67() { return Companion_instance_99; } function $invokeCOROUTINE$38(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jpj_1 = _this__u8e3s4; } protoOf($invokeCOROUTINE$38).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.kpj_1 = plus(listOf_0(this.jpj_1.spj_1.rpj_1), this.jpj_1.spj_1.lpj_1); this.hd_1 = 1; suspendResult = this.jpj_1.tpj_1.w7e().yhn(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.kpj_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.spj_1 = supportedLangConfig; this.tpj_1 = repo; } protoOf(GetLocaleForSiteTermsUseCase).upj = function ($completion) { var tmp = new $invokeCOROUTINE$38(this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickSendSmsUseCase() { } function Companion_51() { this.vpj_1 = 'dismissed-social-warning-'; } var Companion_instance_100; function Companion_getInstance_68() { return Companion_instance_100; } function DismissSocialWarningUseCase(settings) { this.wpj_1 = settings; } protoOf(DismissSocialWarningUseCase).koy = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); // Inline function 'com.russhwolf.settings.set' call this.wpj_1.lm3(key, true); }; function Companion_52() { this.xpj_1 = 'dismissed-social-warning-'; this.ypj_1 = 'https://beinternetawesome.withgoogle.com'; } var Companion_instance_101; function Companion_getInstance_69() { return Companion_instance_101; } function ShowSocialWarningUseCase(settings) { this.zpj_1 = settings; } protoOf(ShowSocialWarningUseCase).loe = function (username) { var key = 'dismissed-social-warning-' + (username == null ? 'guest' : username); return !this.zpj_1.mm3(key, false); }; function GetOfflineStorageAvailableSpace() { } function Companion_53() { this.bpk_1 = 'offlineStoragePath'; } var Companion_instance_102; function Companion_getInstance_70() { return Companion_instance_102; } function GetOfflineStorageOptionsUseCase() { } function GetOfflineStorageSettingUseCase(getOfflineStorageOptionsUseCase, settings) { this.cpk_1 = getOfflineStorageOptionsUseCase; this.dpk_1 = settings; } protoOf(GetOfflineStorageSettingUseCase).apb = function () { var setting = this.dpk_1.km3('offlineStoragePath'); var options = this.cpk_1.apb(); // 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.fpk_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.epk_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.fpk_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.epk_1.equals(tmp0_other_with_cast.epk_1)) return false; if (!(this.fpk_1 === tmp0_other_with_cast.fpk_1)) return false; return true; }; function SetOfflineStorageSettingUseCase(settings) { this.gpk_1 = settings; } function DeleteUrisUseCase() { } function IsTempFileCheckerUseCase() { } function ChunkIterator(chunkInfo) { this.hpk_1 = chunkInfo; this.ipk_1 = 0; } protoOf(ChunkIterator).f = function () { return this.ipk_1 < this.hpk_1.npk_1; }; protoOf(ChunkIterator).e = function () { // Inline function 'kotlin.also' call var this_0 = this.hpk_1.v(this.ipk_1); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.upload.ChunkIterator.next.' call this.ipk_1 = this.ipk_1 + 1 | 0; return this_0; }; function Chunk(start, end, isLastChunk, size) { size = size === VOID ? end.mc(start).mb() : size; this.opk_1 = start; this.ppk_1 = end; this.qpk_1 = isLastChunk; this.rpk_1 = size; } protoOf(Chunk).toString = function () { return 'Chunk(start=' + this.opk_1.toString() + ', end=' + this.ppk_1.toString() + ', isLastChunk=' + this.qpk_1 + ', size=' + this.rpk_1 + ')'; }; protoOf(Chunk).hashCode = function () { var result = this.opk_1.hashCode(); result = imul(result, 31) + this.ppk_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.qpk_1) | 0; result = imul(result, 31) + this.rpk_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.opk_1.equals(tmp0_other_with_cast.opk_1)) return false; if (!this.ppk_1.equals(tmp0_other_with_cast.ppk_1)) return false; if (!(this.qpk_1 === tmp0_other_with_cast.qpk_1)) return false; if (!(this.rpk_1 === tmp0_other_with_cast.rpk_1)) return false; return true; }; function ChunkInfo(totalSize, chunkSize, fromByte) { fromByte = fromByte === VOID ? new Long(0, 0) : fromByte; this.jpk_1 = totalSize; this.kpk_1 = chunkSize; this.lpk_1 = fromByte; this.mpk_1 = this.jpk_1.mc(this.lpk_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.mpk_1; var other = this.kpk_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.mpk_1; var other_0 = this.kpk_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.npk_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.kpk_1)).lc(this.lpk_1); // Inline function 'kotlin.math.min' call // Inline function 'kotlin.Long.plus' call var other = this.kpk_1; var a = start.lc(toLong(other)); var b = this.jpk_1; var end = a.c7(b) <= 0 ? a : b; var isLastChunk = index === (this.npk_1 - 1 | 0); return new Chunk(start, end, isLastChunk); }; function UploadProgress(bytesTransferred, totalBytes) { this.spk_1 = bytesTransferred; this.tpk_1 = totalBytes; } protoOf(UploadProgress).toString = function () { return 'UploadProgress(bytesTransferred=' + this.spk_1.toString() + ', totalBytes=' + this.tpk_1.toString() + ')'; }; protoOf(UploadProgress).hashCode = function () { var result = this.spk_1.hashCode(); result = imul(result, 31) + this.tpk_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.spk_1.equals(tmp0_other_with_cast.spk_1)) return false; if (!this.tpk_1.equals(tmp0_other_with_cast.tpk_1)) return false; return true; }; function LastChunkResponse(body, statusCode, headers) { this.upk_1 = body; this.vpk_1 = statusCode; this.wpk_1 = headers; } protoOf(LastChunkResponse).toString = function () { return 'LastChunkResponse(body=' + this.upk_1 + ', statusCode=' + this.vpk_1 + ', headers=' + this.wpk_1 + ')'; }; protoOf(LastChunkResponse).hashCode = function () { var result = this.upk_1 == null ? 0 : getStringHashCode(this.upk_1); result = imul(result, 31) + this.vpk_1 | 0; result = imul(result, 31) + hashCode(this.wpk_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.upk_1 == tmp0_other_with_cast.upk_1)) return false; if (!(this.vpk_1 === tmp0_other_with_cast.vpk_1)) return false; if (!equals(this.wpk_1, tmp0_other_with_cast.wpk_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_54() { this.zpk_1 = 524288; } var Companion_instance_103; function Companion_getInstance_71() { return Companion_instance_103; } function get_HEADER_UPLOAD_UUID() { return HEADER_UPLOAD_UUID; } var HEADER_UPLOAD_UUID; function get_HEADER_IS_FINAL_CHUNK() { return HEADER_IS_FINAL_CHUNK; } var HEADER_IS_FINAL_CHUNK; function get_HEADER_UPLOAD_START_BYTE() { return HEADER_UPLOAD_START_BYTE; } var HEADER_UPLOAD_START_BYTE; function get_DEFAULT_CHUNK_SIZE() { return DEFAULT_CHUNK_SIZE; } var DEFAULT_CHUNK_SIZE; function StartUserSessionUseCase(accountManager) { this.apl_1 = accountManager; } protoOf(StartUserSessionUseCase).bpl = function (session, nextDest, navController, goOptions, dontSetCurrentSession) { // Inline function 'kotlin.takeIf' call var this_0 = this.apl_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.unt(session); } navigateToViewUri(navController, appendSelectedAccount(nextDest, session.tnq_1.f96_1, session.unq_1), goOptions); }; protoOf(StartUserSessionUseCase).cpl = function (session, nextDest, navController, goOptions, dontSetCurrentSession, $super) { var tmp; if (nextDest === VOID) { Companion_getInstance_138(); 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.bpl(session, nextDest, navController, goOptions, dontSetCurrentSession); tmp_0 = Unit_instance; } else { tmp_0 = $super.bpl.call(this, session, nextDest, navController, goOptions, dontSetCurrentSession); } return tmp_0; }; function ValidateEmailUseCase() { } protoOf(ValidateEmailUseCase).loe = 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_55() { Companion_instance_104 = this; this.tpa_1 = 3; this.upa_1 = 30; this.vpa_1 = setOf([new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95))]); } protoOf(Companion_55).dpl = function (character) { return isLetter(character) ? true : isDigit(character) ? true : this.vpa_1.a1(new Char(character)) ? true : false; }; var Companion_instance_104; function Companion_getInstance_72() { if (Companion_instance_104 == null) new Companion_55(); return Companion_instance_104; } function ValidateUsernameUseCase_0() { Companion_getInstance_72(); } protoOf(ValidateUsernameUseCase_0).loe = function (username) { var tmp; if (username.length < 3) { tmp = Companion_getInstance_73().fpl_1; } else { if (username.length > 30) { tmp = Companion_getInstance_73().gpl_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_73().hpl_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_72().dpl(element)) { tmp$ret$1 = false; break $l$block; } } tmp$ret$1 = true; } if (!tmp$ret$1) { tmp = Companion_getInstance_73().ipl_1; } else { tmp = Companion_getInstance_73().epl_1; } } } } return tmp; }; function Companion_56() { Companion_instance_105 = this; this.epl_1 = new ValidationResult(); this.fpl_1 = new ValidationResult(strings_getInstance().ln3_1); this.gpl_1 = new ValidationResult(strings_getInstance().mn3_1); this.hpl_1 = new ValidationResult(strings_getInstance().nn3_1); this.ipl_1 = new ValidationResult(strings_getInstance().on3_1); } var Companion_instance_105; function Companion_getInstance_73() { if (Companion_instance_105 == null) new Companion_56(); return Companion_instance_105; } function ValidationResult(errorMessage) { Companion_getInstance_73(); errorMessage = errorMessage === VOID ? null : errorMessage; this.jpl_1 = errorMessage; } protoOf(ValidationResult).toString = function () { return 'ValidationResult(errorMessage=' + this.jpl_1 + ')'; }; protoOf(ValidationResult).hashCode = function () { return this.jpl_1 == null ? 0 : this.jpl_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.jpl_1, tmp0_other_with_cast.jpl_1)) return false; return true; }; function isAnonymous(_this__u8e3s4) { return ((_this__u8e3s4.piz_1 == null ? _this__u8e3s4.niz_1 == null : false) ? _this__u8e3s4.qiz_1 == null : false) ? _this__u8e3s4.oiz_1 == null : false; } function _get_isIdOnly__t0wrie(_this__u8e3s4, $this) { var tmp; var tmp_0; if (_this__u8e3s4.mil_1 == null ? _this__u8e3s4.nil_1 == null : false) { var tmp_1 = _this__u8e3s4.oil_1; tmp_0 = tmp_1 === 0; } else { tmp_0 = false; } if (tmp_0) { tmp = _this__u8e3s4.pil_1 == null; } else { tmp = false; } return tmp; } function StoreActivitiesUseCase$invoke$slambda($activityEntities, $timeNow, this$0, resultContinuation) { this.spl_1 = $activityEntities; this.tpl_1 = $timeNow; this.upl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StoreActivitiesUseCase$invoke$slambda).bpn = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(StoreActivitiesUseCase$invoke$slambda).he = function (p1, $completion) { return this.bpn(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.spl_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.cpn_1.skv(VOID, VOID, VOID, VOID, VOID, VOID, this.tpl_1)); } tmp_0.wpl_1 = destination; this.hd_1 = 1; suspendResult = this.upl_1.ipn_1.h7e().fil(this.wpl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var this_1 = this.wpl_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.upl_1)) { destination_0.i1(element); } } tmp_1.xpl_1 = destination_0; this.ypl_1 = this.xpl_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.ypl_1.f()) { this.hd_1 = 5; continue $sm; } this.zpl_1 = this.ypl_1.e(); var tmp_2 = this; tmp_2.apm_1 = this.zpl_1; this.hd_1 = 3; suspendResult = this.upl_1.ipn_1.h7e().gil(this.apm_1.kil_1, this.apm_1.nil_1, this.tpl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; suspendResult = this.upl_1.ipn_1.h7e().hil(this.apm_1.kil_1, this.apm_1.mil_1, this.apm_1.nil_1, this.apm_1.oil_1, this.apm_1.pil_1, this.tpl_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.spl_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.dpn_1; addAll(destination_1, list); } tmp_3.bpm_1 = destination_1; var tmp_4 = this; var this_3 = this.spl_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.epn_1; addAll(destination_2, list_0); } tmp_4.cpm_1 = destination_2; this.hd_1 = 6; var tmp_5 = this.upl_1.hpn_1.w7f(); var this_4 = this.cpm_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.xiq_1); } suspendResult = tmp_5.uiq(toList(distinct(destination_3)), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.dpm_1 = suspendResult; this.epm_1 = toSet(this.dpm_1); this.hd_1 = 7; var tmp_6 = this.upl_1.ipn_1.w7f(); var this_5 = this.cpm_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.epm_1.a1(element_2.xiq_1)) { destination_4.i1(element_2); } } suspendResult = tmp_6.tiq(destination_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var tmp_7 = this; var this_6 = this.bpm_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.dit_1.equals(new Long(0, 0))) { first.i1(element_3); } else { second.i1(element_3); } } tmp_7.fpm_1 = new Pair(first, second); this.gpm_1 = this.fpm_1.y6(); this.hpm_1 = this.fpm_1.z6(); this.hd_1 = 8; suspendResult = this.upl_1.ipn_1.v7f().sis(this.gpm_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: var tmp_8 = this; tmp_8.ipm_1 = this.hpm_1; this.jpm_1 = this.ipm_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.jpm_1.f()) { this.hd_1 = 11; continue $sm; } this.kpm_1 = this.jpm_1.e(); var tmp_9 = this; tmp_9.lpm_1 = this.kpm_1; this.mpm_1 = this.upl_1.ipn_1.v7f(); this.npm_1 = this.lpm_1.yis_1; this.opm_1 = this.lpm_1.dit_1; this.ppm_1 = this.lpm_1.bit_1; this.qpm_1 = this.lpm_1.cit_1; this.rpm_1 = this.lpm_1.ait_1; this.spm_1 = this.lpm_1.zis_1; this.hd_1 = 10; suspendResult = this.mpm_1.tis(this.npm_1, this.spm_1, this.ppm_1, this.rpm_1, this.qpm_1, this.opm_1, this.tpl_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.tpm_1 = this.bpm_1; this.upm_1 = this.tpm_1.w(); this.hd_1 = 12; continue $sm; case 12: if (!this.upm_1.f()) { this.hd_1 = 14; continue $sm; } this.vpm_1 = this.upm_1.e(); var tmp_11 = this; tmp_11.wpm_1 = this.vpm_1; this.hd_1 = 13; suspendResult = this.upl_1.ipn_1.v7f().uis(this.wpm_1.yis_1, this.wpm_1.zis_1, this.wpm_1.cit_1, this.tpl_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.upl_1.ipn_1.x7f(); var this_7 = this.spl_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.fpn_1; addAll(destination_5, list_1); } suspendResult = tmp_12.pip(destination_5, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: var tmp_13 = this; var this_8 = this.spl_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.gpn_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.xpm_1 = tmp_14; if (this.xpm_1 == null) { this.ypm_1 = null; this.hd_1 = 17; continue $sm; } else { var tmp_15 = this; tmp_15.zpm_1 = this.xpm_1; var tmp_16 = this; tmp_16.apn_1 = this.zpm_1; this.hd_1 = 16; suspendResult = this.upl_1.ipn_1.y7f().xj8(this.apn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 16: this.ypm_1 = this.zpm_1; this.hd_1 = 17; continue $sm; case 17: return this.ypm_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).env = function (it, completion) { var i = new StoreActivitiesUseCase$invoke$slambda(this.spl_1, this.tpl_1, this.upl_1, completion); i.vpl_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.bpn(it, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$42(_this__u8e3s4, activityEntities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.rpn_1 = _this__u8e3s4; this.spn_1 = activityEntities; } protoOf($invokeCOROUTINE$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.tpn_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.rpn_1.ipn_1, VOID, StoreActivitiesUseCase$invoke$slambda_0(this.spn_1, this.tpn_1, this.rpn_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.hpn_1 = db; var tmp = this; tmp.ipn_1 = repo == null ? this.hpn_1 : repo; } protoOf(StoreActivitiesUseCase).upn = function (activityEntities, $completion) { var tmp = new $invokeCOROUTINE$42(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.vpn_1 = responseCode; } function XapiJson$_init_$lambda_lhwgtd($this$Json) { $this$Json.d4q_1 = false; $this$Json.f4q_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.wpn_1 = json; } protoOf(XapiJson).toString = function () { return 'XapiJson(json=' + this.wpn_1 + ')'; }; protoOf(XapiJson).hashCode = function () { return hashCode(this.wpn_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.wpn_1, tmp0_other_with_cast.wpn_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().jm(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().o2r(timestampStr).qmc(); } 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().o2r(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.xpn_1 = statementUuids; } protoOf(StatementStoreResult).toString = function () { return 'StatementStoreResult(statementUuids=' + this.xpn_1 + ')'; }; protoOf(StatementStoreResult).hashCode = function () { return hashCode(this.xpn_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.xpn_1, tmp0_other_with_cast.xpn_1)) return false; return true; }; function storeStatements($this, statements, xapiSession, $completion) { var tmp = new $storeStatementsCOROUTINE$43($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.upo_1 = $statementEntities; this.vpo_1 = this$0; this.wpo_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiStatementResource$storeStatements$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(XapiStatementResource$storeStatements$slambda).he = function (p1, $completion) { return this.dnv(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.upo_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.rpp_1; var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { tmp_1 = tmp0_safe_receiver.ojb_1 ? tmp0_safe_receiver.wja_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.ypo_1 = this.vpo_1.moh_1.z7f(); this.zpo_1 = this.wpo_1.yju_1; this.app_1 = systemTimeInMillis(); this.hd_1 = 1; suspendResult = this.ypo_1.qju(true, this.app_1, this.zpo_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.vpo_1.moh_1.j7e(); var this_1 = this.upo_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.rpp_1; if (tmp0_safe_receiver_0 == null) null; else { destination.i1(tmp0_safe_receiver_0); } } suspendResult = tmp_2.cja(destination, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.hd_1 = 4; var tmp_3 = this.vpo_1.moh_1.a7g(); var this_2 = this.upo_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.spp_1; if (tmp0_safe_receiver_1 == null) null; else { destination_0.i1(tmp0_safe_receiver_1); } } suspendResult = tmp_3.sjr(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_4 = this; var this_3 = this.upo_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.tpp_1; var list = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs; addAll(destination_1, list); } tmp_4.bpp_1 = destination_1; var tmp_5 = this; var this_4 = this.bpp_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.wpp_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.uiz_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.cpp_1 = tmp_7; if (this.cpp_1 == null) { this.dpp_1 = null; this.hd_1 = 6; continue $sm; } else { var tmp_8 = this; tmp_8.epp_1 = this.cpp_1; var tmp_9 = this; tmp_9.fpp_1 = this.epp_1; this.hd_1 = 5; suspendResult = insertOrUpdateActorsIfNameChanged(this.vpo_1.moh_1.k7e(), this.fpp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 5: this.dpp_1 = this.epp_1; this.hd_1 = 6; continue $sm; case 6: var tmp_10 = this; var this_5 = this.bpp_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.wpp_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.uiz_1; if (tmp_11 === 2) { destination_5.i1(element_4); } } tmp_10.gpp_1 = destination_5; this.hd_1 = 7; var tmp_12 = this.vpo_1.hoh_1.k7e(); var this_6 = this.gpp_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.kiz_1); } suspendResult = tmp_12.qiy(destination_6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.hpp_1 = suspendResult; var tmp_13 = this; var this_7 = this.bpp_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.xpp_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.kiz_1, element_6); } tmp_13.ipp_1 = destination_8; var tmp_14 = this; tmp_14.jpp_1 = this.gpp_1; this.kpp_1 = this.jpp_1.w(); this.hd_1 = 8; continue $sm; case 8: if (!this.kpp_1.f()) { this.hd_1 = 14; continue $sm; } this.lpp_1 = this.kpp_1.e(); var tmp_15 = this; tmp_15.mpp_1 = this.lpp_1; var tmp_16 = this; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_10 = this.hpp_1.w(); while (tmp0_iterator_10.f()) { var element_7 = tmp0_iterator_10.e(); if (element_7.mj0_1.equals(this.mpp_1.kiz_1)) { tmp$ret$2 = element_7; break l$ret$3; } } tmp$ret$2 = null; } while (false); tmp_16.npp_1 = tmp$ret$2; var tmp_17 = this; var tmp_18; if (!isAnonymous(this.mpp_1)) { var tmp_19 = this.mpp_1.siz_1; var tmp0_safe_receiver_2 = this.npp_1; tmp_18 = !tmp_19.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.nj0_1); } else { tmp_18 = true; } tmp_17.opp_1 = tmp_18; var tmp_20 = this; var this_8 = this.bpp_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.ypp_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.hj4_1.equals(this.mpp_1.kiz_1)) { destination_10.i1(element_9); } } tmp_20.ppp_1 = destination_10; var tmp_21 = this; var this_9 = this.ppp_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.ipp_1.q(element_10.ij4_1); if (tmp0_safe_receiver_3 == null) null; else { destination_11.i1(tmp0_safe_receiver_3); } } tmp_21.qpp_1 = destination_11; this.hd_1 = 9; suspendResult = insertOrUpdateActorsIfNameChanged(this.vpo_1.moh_1.k7e(), this.qpp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 9: if (!this.opp_1 ? !(this.npp_1 == null) : false) { this.hd_1 = 12; var tmp_22 = this.vpo_1.moh_1.u7f(); var this_10 = this.ppp_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.okw(VOID, VOID, this.npp_1.oj0_1)); } suspendResult = insertOrUpdateIfLastModChanged(tmp_22, destination_12, this.npp_1.oj0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 10; suspendResult = this.vpo_1.moh_1.k7e().oiy(listOf_0(this.mpp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 10: this.hd_1 = 11; suspendResult = this.vpo_1.moh_1.u7f().dj4(this.ppp_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.vpo_1.moh_1.g7e(); var this_11 = this.upo_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.upp_1; var tmp0_safe_receiver_5 = tmp0_safe_receiver_4 == null ? null : tmp0_safe_receiver_4.zpp_1; if (tmp0_safe_receiver_5 == null) null; else { destination_13.i1(tmp0_safe_receiver_5); } } suspendResult = tmp_23.ujs(destination_13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 15: this.hd_1 = 16; var tmp_24 = this.vpo_1.moh_1.t7f(); var this_12 = this.upo_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.upp_1; var tmp1_elvis_lhs = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.apq_1; var list_2 = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs; addAll(destination_14, list_2); } suspendResult = tmp_24.sjt(destination_14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 16: this.hd_1 = 17; var this_13 = this.upo_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.vpp_1; var list_3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0; addAll(destination_15, list_3); } suspendResult = this.vpo_1.loh_1.upn(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).env = function (it, completion) { var i = new XapiStatementResource$storeStatements$slambda(this.upo_1, this.vpo_1, this.wpo_1, completion); i.xpo_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.dnv(it, $completion); }; l.$arity = 1; return l; } function $storeStatementsCOROUTINE$43(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gpo_1 = _this__u8e3s4; this.hpo_1 = statements; this.ipo_1 = xapiSession; } protoOf($storeStatementsCOROUTINE$43).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 2; this.jpo_1 = identifierHash(agent(this.ipo_1, this.gpo_1.joh_1), this.gpo_1.ioh_1); var tmp_0 = this; var it = knownActorUidToPersonUidsMap(this.ipo_1, this.gpo_1.noh_1); var tmp_1; if (!it.r(this.jpo_1)) { tmp_1 = plus_3(it, to(this.jpo_1, this.ipo_1.djv_1)); } else { tmp_1 = it; } tmp_0.kpo_1 = tmp_1; var tmp_2 = this; var this_0 = this.hpo_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.km9().toString(); var tmp1_elvis_lhs = element.hpq_1; var tmp4_timestamp = tmp1_elvis_lhs == null ? timeNowStr : tmp1_elvis_lhs; var tmp0_elvis_lhs = xapiRequireValidUuidOrNullAsString(element.bpq_1); var tmp5_id = tmp0_elvis_lhs == null ? randomUuidAsString() : tmp0_elvis_lhs; var tmp2_name = this.ipo_1.fjv_1; var tmp3_homePage = this.gpo_1.joh_1.nnp_1; var tmp6_authority = new XapiAgent(VOID, VOID, VOID, VOID, VOID, new XapiAccount(tmp3_homePage, tmp2_name)); var exactStatement = element.npq(tmp5_id, VOID, VOID, VOID, VOID, VOID, tmp4_timestamp, timeNowStr, tmp6_authority); var tmp7_stringHasher = this.gpo_1.ioh_1; var tmp8_exactJson = this.gpo_1.noh_1.r45(Companion_getInstance_89().n4r(), exactStatement); var tmp9_primaryKeyManager = get_doorPrimaryKeyManager(this.gpo_1.hoh_1); var tmp10_hasherFactory = this.gpo_1.koh_1; var tmp11_json = this.gpo_1.noh_1; var tmp12_learningSpace = this.gpo_1.joh_1; var list = toEntities_3(exactStatement, tmp7_stringHasher, tmp9_primaryKeyManager, tmp10_hasherFactory, tmp11_json, this.ipo_1, this.kpo_1, tmp8_exactJson, false, tmp12_learningSpace); addAll(destination, list); } tmp_2.lpo_1 = destination; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.gpo_1.moh_1, VOID, XapiStatementResource$storeStatements$slambda_0(this.lpo_1, this.gpo_1, this.ipo_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_1 = this.lpo_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.rpp_1; var tmp_3; if (tmp0_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = Uuid_init_$Create$(tmp0_safe_receiver.mja_1, tmp0_safe_receiver.nja_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$45(_this__u8e3s4, statements, xapiSession, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xpq_1 = _this__u8e3s4; this.ypq_1 = statements; this.zpq_1 = xapiSession; } protoOf($postCOROUTINE$45).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.xpq_1, this.ypq_1, this.zpq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return ARGUMENT.xpn_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.hoh_1 = db; this.ioh_1 = xxHasher; this.joh_1 = learningSpace; this.koh_1 = hasherFactory; this.loh_1 = storeActivitiesUseCase; var tmp = this; tmp.moh_1 = repo == null ? this.hoh_1 : repo; this.noh_1 = xapiJson.wpn_1; } protoOf(XapiStatementResource).ooh = function (statements, xapiSession, $completion) { var tmp = new $postCOROUTINE$45(this, statements, xapiSession, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function XapiGroupAndPersonUidMap(group, actorUidToPersonUidMap) { this.boj_1 = group; this.coj_1 = actorUidToPersonUidMap; } protoOf(XapiGroupAndPersonUidMap).toString = function () { return 'XapiGroupAndPersonUidMap(group=' + this.boj_1 + ', actorUidToPersonUidMap=' + this.coj_1 + ')'; }; protoOf(XapiGroupAndPersonUidMap).hashCode = function () { var result = this.boj_1.hashCode(); result = imul(result, 31) + hashCode(this.coj_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.boj_1.equals(tmp0_other_with_cast.boj_1)) return false; if (!equals(this.coj_1, tmp0_other_with_cast.coj_1)) return false; return true; }; function $invokeCOROUTINE$47(_this__u8e3s4, groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ipr_1 = _this__u8e3s4; this.jpr_1 = groupSetUid; this.kpr_1 = groupNum; this.lpr_1 = clazzUid; this.mpr_1 = assignmentUid; this.npr_1 = accountPersonUid; } protoOf($invokeCOROUTINE$47).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.ipr_1.xoi_1.s7d().md3(this.jpr_1, this.kpr_1, this.lpr_1, this.mpr_1, this.npr_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.td5_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toXapiAgent(tmp0_safe_receiver, this.ipr_1.yoi_1); var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = element.sd5_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.jd4_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.ipr_1.yoi_1.nnp_1, 'cgs-' + this.jpr_1.toString() + '-' + this.kpr_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.ipr_1.zoi_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.xoi_1 = repo; this.yoi_1 = learningSpace; this.zoi_1 = stringHasher; } protoOf(CreateXapiGroupForCourseGroupUseCase).aoj = function (groupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new $invokeCOROUTINE$47(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$48(_this__u8e3s4, actors, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateActorsIfNameChangedCOROUTINE$48(_this__u8e3s4, actors, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wpr_1 = _this__u8e3s4; this.xpr_1 = actors; } protoOf($insertOrUpdateActorsIfNameChangedCOROUTINE$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.wpr_1.niy(this.xpr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ypr_1 = systemTimeInMillis(); var tmp_0 = this; tmp_0.zpr_1 = this.xpr_1; this.aps_1 = this.zpr_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.aps_1.f()) { this.hd_1 = 4; continue $sm; } this.bps_1 = this.aps_1.e(); var tmp_1 = this; tmp_1.cps_1 = this.bps_1; this.hd_1 = 3; suspendResult = this.wpr_1.piy(this.cps_1.kiz_1, this.cps_1.miz_1, this.ypr_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$49(_this__u8e3s4, memberJoins, lastModTime, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertOrUpdateIfLastModChangedCOROUTINE$49(_this__u8e3s4, memberJoins, lastModTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.lps_1 = _this__u8e3s4; this.mps_1 = memberJoins; this.nps_1 = lastModTime; } protoOf($insertOrUpdateIfLastModChangedCOROUTINE$49).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.lps_1.cj4(this.mps_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this; tmp_0.ops_1 = this.mps_1; this.pps_1 = this.ops_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.pps_1.f()) { this.hd_1 = 4; continue $sm; } this.qps_1 = this.pps_1.e(); var tmp_1 = this; tmp_1.rps_1 = this.qps_1; this.hd_1 = 3; suspendResult = this.lps_1.ej4(this.rps_1.hj4_1, this.rps_1.ij4_1, this.nps_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.nnp_1, _this__u8e3s4.fjv_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.qjv_1; if (charSequenceLength(this_0) > 0) { tmp = json.s45(MapSerializer(serializer_1(Companion_getInstance_2()), serializer_1(Companion_getInstance_2())), _this__u8e3s4.qjv_1); } else { tmp = emptyMap(); } return tmp; } function authorizationHeader(_this__u8e3s4) { return 'Basic ' + encodeBase64(_this__u8e3s4.yju_1.toString() + ':' + _this__u8e3s4.ojv_1); } function get_registrationUuid(_this__u8e3s4) { return Uuid_init_$Create$(_this__u8e3s4.ajv_1, _this__u8e3s4.bjv_1); } function get_resultProgressExtension(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.fpq_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xps_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.yps_1 = string; this.zps_1 = stringResource; } protoOf(FormattedStatementResponse).apt = function () { return !(this.yps_1 == null) ? true : !(this.zps_1 == null); }; protoOf(FormattedStatementResponse).toString = function () { return 'FormattedStatementResponse(string=' + this.yps_1 + ', stringResource=' + this.zps_1 + ')'; }; protoOf(FormattedStatementResponse).hashCode = function () { var result = this.yps_1 == null ? 0 : getStringHashCode(this.yps_1); result = imul(result, 31) + (this.zps_1 == null ? 0 : this.zps_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.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 Companion_57() { Companion_instance_106 = this; var tmp = this; tmp.bpt_1 = listOf([2, 7, 8, 5, 6]); } var Companion_instance_106; function Companion_getInstance_74() { if (Companion_instance_106 == null) new Companion_57(); return Companion_instance_106; } function FormatStatementResponseUseCase$invoke$slambda($activityEntity, $statement, this$0, resultContinuation) { this.kpt_1 = $activityEntity; this.lpt_1 = $statement; this.mpt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(FormatStatementResponseUseCase$invoke$slambda).ypt = function ($this$flow, $completion) { var tmp = this.zpt($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.ypt((!(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.kpt_1; tmp_0.opt_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.oil_1; this.ppt_1 = this.lpt_1.djb_1; var tmp_1; if (this.ppt_1 == null ? true : this.opt_1 == null) { tmp_1 = true; } else { tmp_1 = this.opt_1 === 0; } if (tmp_1) { this.hd_1 = 10; var tmp1_safe_receiver = this.ppt_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.npt_1.t1d(new FormattedStatementResponse(tmp_2), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; continue $sm; } case 1: this.qpt_1 = this.opt_1; if (Companion_getInstance_74().bpt_1.a1(this.qpt_1)) { var tmp_3 = this; tmp_3.rpt_1 = listOfNotNull([this.mpt_1.apu_1, this.mpt_1.bpu_1]); this.spt_1 = this.rpt_1.w(); this.hd_1 = 5; continue $sm; } else { if (this.qpt_1 === 1) { this.tpt_1 = toBooleanStrictOrNull(this.ppt_1); this.hd_1 = 4; var tmp_4; if (this.tpt_1 === true) { tmp_4 = strings_getInstance().lnm_1; } else if (this.tpt_1 === false) { tmp_4 = strings_getInstance().mnm_1; } else { tmp_4 = null; } suspendResult = this.npt_1.t1d(new FormattedStatementResponse(null, tmp_4), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_5; if (this.qpt_1 === 3) { tmp_5 = true; } else { tmp_5 = this.qpt_1 === 4; } if (tmp_5) { this.hd_1 = 3; var this_0 = htmlToPlainText(replace(this.ppt_1, '[,]', ', ')); suspendResult = this.npt_1.t1d(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.ppt_1); suspendResult = this.npt_1.t1d(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.spt_1.f()) { this.hd_1 = 8; continue $sm; } this.upt_1 = this.spt_1.e(); var tmp_6 = this; tmp_6.vpt_1 = this.upt_1; this.hd_1 = 6; suspendResult = this.vpt_1.v7f().vis(this.lpt_1.rja_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.wpt_1 = suspendResult; var tmp_7 = this; var tmp0_subject = this.opt_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.opt_1 === 8) { tmp_11 = 'scale'; } else { tmp_11 = 'choices'; } var propPrefix = tmp_11; var responseIds = split(this.ppt_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.wpt_1.w(); while (tmp0_iterator_0.f()) { var element = tmp0_iterator_0.e(); if (element.bit_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.cit_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.ppt_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.wpt_1.w(); while (tmp0_iterator_2.f()) { var element_0 = tmp0_iterator_2.e(); if (element_0.bit_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.cit_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.wpt_1.w(); while (tmp0_iterator_3.f()) { var element_1 = tmp0_iterator_3.e(); if (element_1.bit_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.cit_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.ppt_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.wpt_1.w(); while (tmp0_iterator_5.f()) { var element_2 = tmp0_iterator_5.e(); if (element_2.bit_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.cit_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.xpt_1 = tmp_8; this.hd_1 = 7; var tmp1_elvis_lhs_2 = this.xpt_1; var this_4 = htmlToPlainText(tmp1_elvis_lhs_2 == null ? this.ppt_1 : tmp1_elvis_lhs_2); suspendResult = this.npt_1.t1d(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).zpt = function ($this$flow, completion) { var i = new FormatStatementResponseUseCase$invoke$slambda(this.kpt_1, this.lpt_1, this.mpt_1, completion); i.npt_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.ypt($this$flow, $completion); }; l.$arity = 1; return l; } function FormatStatementResponseUseCase(db, repo) { Companion_getInstance_74(); this.apu_1 = db; this.bpu_1 = repo; } protoOf(FormatStatementResponseUseCase).cpu = function (statement, activityEntity) { return flow(FormatStatementResponseUseCase$invoke$slambda_0(activityEntity, statement, this, null)); }; function Companion_58() { Companion_instance_107 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.dpu_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance()), null, null, null]; } var Companion_instance_107; function Companion_getInstance_75() { if (Companion_instance_107 == null) new Companion_58(); return Companion_instance_107; } function $serializer_41() { $serializer_instance_41 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.Attachment', this, 6); tmp0_serialDesc.t4f('usageType', true); tmp0_serialDesc.t4f('display', true); tmp0_serialDesc.t4f('description', true); tmp0_serialDesc.t4f('contentType', true); tmp0_serialDesc.t4f('length', true); tmp0_serialDesc.t4f('sha2', true); this.epu_1 = tmp0_serialDesc; } protoOf($serializer_41).q44 = function () { return this.epu_1; }; protoOf($serializer_41).k4g = function () { var tmp0_cached = Companion_getInstance_75().dpu_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_41).s44 = function (decoder) { var tmp0_desc = this.epu_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.i48(tmp0_desc); var tmp11_cached = Companion_getInstance_75().dpu_1; if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, tmp11_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, tmp11_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.o48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return Attachment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_41).fpu = function (encoder, value) { var tmp0_desc = this.epu_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_75().dpu_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.gpu_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.gpu_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.hpu_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.hpu_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ipu_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, tmp2_cached[2], value.ipu_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.jpu_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.jpu_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !value.kpu_1.equals(new Long(0, 0))) { tmp1_output.s49(tmp0_desc, 4, value.kpu_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.lpu_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.lpu_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_41).r44 = function (encoder, value) { return this.fpu(encoder, value instanceof Attachment ? value : THROW_CCE()); }; var $serializer_instance_41; function $serializer_getInstance_53() { if ($serializer_instance_41 == null) new $serializer_41(); return $serializer_instance_41; } function Attachment_init_$Init$(seen1, usageType, display, description, contentType, length, sha2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_53().epu_1); } if (0 === (seen1 & 1)) $this.gpu_1 = null; else $this.gpu_1 = usageType; if (0 === (seen1 & 2)) $this.hpu_1 = null; else $this.hpu_1 = display; if (0 === (seen1 & 4)) $this.ipu_1 = null; else $this.ipu_1 = description; if (0 === (seen1 & 8)) $this.jpu_1 = null; else $this.jpu_1 = contentType; if (0 === (seen1 & 16)) $this.kpu_1 = new Long(0, 0); else $this.kpu_1 = length; if (0 === (seen1 & 32)) $this.lpu_1 = null; else $this.lpu_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_75(); 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.gpu_1 = usageType; this.hpu_1 = display; this.ipu_1 = description; this.jpu_1 = contentType; this.kpu_1 = length; this.lpu_1 = sha2; } protoOf(Attachment).toString = function () { return 'Attachment(usageType=' + this.gpu_1 + ', display=' + this.hpu_1 + ', description=' + this.ipu_1 + ', contentType=' + this.jpu_1 + ', length=' + this.kpu_1.toString() + ', sha2=' + this.lpu_1 + ')'; }; protoOf(Attachment).hashCode = function () { var result = this.gpu_1 == null ? 0 : getStringHashCode(this.gpu_1); result = imul(result, 31) + (this.hpu_1 == null ? 0 : hashCode(this.hpu_1)) | 0; result = imul(result, 31) + (this.ipu_1 == null ? 0 : hashCode(this.ipu_1)) | 0; result = imul(result, 31) + (this.jpu_1 == null ? 0 : getStringHashCode(this.jpu_1)) | 0; result = imul(result, 31) + this.kpu_1.hashCode() | 0; result = imul(result, 31) + (this.lpu_1 == null ? 0 : getStringHashCode(this.lpu_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.gpu_1 == tmp0_other_with_cast.gpu_1)) return false; if (!equals(this.hpu_1, tmp0_other_with_cast.hpu_1)) return false; if (!equals(this.ipu_1, tmp0_other_with_cast.ipu_1)) return false; if (!(this.jpu_1 == tmp0_other_with_cast.jpu_1)) return false; if (!this.kpu_1.equals(tmp0_other_with_cast.kpu_1)) return false; if (!(this.lpu_1 == tmp0_other_with_cast.lpu_1)) return false; return true; }; function Companion_59() { } var Companion_instance_108; function Companion_getInstance_76() { return Companion_instance_108; } function $serializer_42() { $serializer_instance_42 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAccount', this, 2); tmp0_serialDesc.t4f('homePage', false); tmp0_serialDesc.t4f('name', false); this.mpu_1 = tmp0_serialDesc; } protoOf($serializer_42).q44 = function () { return this.mpu_1; }; protoOf($serializer_42).k4g = 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_42).s44 = function (decoder) { var tmp0_desc = this.mpu_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_42).npu = function (encoder, value) { var tmp0_desc = this.mpu_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.opu_1); tmp1_output.w49(tmp0_desc, 1, value.ppu_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_42).r44 = function (encoder, value) { return this.npu(encoder, value instanceof XapiAccount ? value : THROW_CCE()); }; var $serializer_instance_42; function $serializer_getInstance_54() { if ($serializer_instance_42 == null) new $serializer_42(); return $serializer_instance_42; } function XapiAccount_init_$Init$(seen1, homePage, name, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_54().mpu_1); } $this.opu_1 = homePage; $this.ppu_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.opu_1 = homePage; this.ppu_1 = name; } protoOf(XapiAccount).toString = function () { return 'XapiAccount(homePage=' + this.opu_1 + ', name=' + this.ppu_1 + ')'; }; protoOf(XapiAccount).hashCode = function () { var result = getStringHashCode(this.opu_1); result = imul(result, 31) + getStringHashCode(this.ppu_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.opu_1 === tmp0_other_with_cast.opu_1)) return false; if (!(this.ppu_1 === tmp0_other_with_cast.ppu_1)) return false; return true; }; function Companion_60() { Companion_instance_109 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.qpu_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_109; function Companion_getInstance_77() { if (Companion_instance_109 == null) new Companion_60(); return Companion_instance_109; } function $serializer_43() { $serializer_instance_43 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivity.Interaction', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('description', true); this.rpu_1 = tmp0_serialDesc; } protoOf($serializer_43).q44 = function () { return this.rpu_1; }; protoOf($serializer_43).k4g = function () { var tmp0_cached = Companion_getInstance_77().qpu_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_43).s44 = function (decoder) { var tmp0_desc = this.rpu_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.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_77().qpu_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return Interaction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_43).spu = function (encoder, value) { var tmp0_desc = this.rpu_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_77().qpu_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.tpu_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.tpu_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.upu_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.upu_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_43).r44 = function (encoder, value) { return this.spu(encoder, value instanceof Interaction ? value : THROW_CCE()); }; var $serializer_instance_43; function $serializer_getInstance_55() { if ($serializer_instance_43 == null) new $serializer_43(); return $serializer_instance_43; } function Interaction_init_$Init$(seen1, id, description, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_55().rpu_1); } if (0 === (seen1 & 1)) $this.tpu_1 = null; else $this.tpu_1 = id; if (0 === (seen1 & 2)) $this.upu_1 = null; else $this.upu_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_77(); id = id === VOID ? null : id; description = description === VOID ? null : description; this.tpu_1 = id; this.upu_1 = description; } protoOf(Interaction).toString = function () { return 'Interaction(id=' + this.tpu_1 + ', description=' + this.upu_1 + ')'; }; protoOf(Interaction).hashCode = function () { var result = this.tpu_1 == null ? 0 : getStringHashCode(this.tpu_1); result = imul(result, 31) + (this.upu_1 == null ? 0 : hashCode(this.upu_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.tpu_1 == tmp0_other_with_cast.tpu_1)) return false; if (!equals(this.upu_1, tmp0_other_with_cast.upu_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.vpu_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_55()), new ArrayListSerializer($serializer_getInstance_55()), new ArrayListSerializer($serializer_getInstance_55()), new ArrayListSerializer($serializer_getInstance_55()), new ArrayListSerializer($serializer_getInstance_55())]; } var Companion_instance_110; function Companion_getInstance_78() { if (Companion_instance_110 == null) new Companion_61(); return Companion_instance_110; } function $serializer_44() { $serializer_instance_44 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('Activity', this, 12); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('description', true); tmp0_serialDesc.t4f('type', true); tmp0_serialDesc.t4f('extensions', true); tmp0_serialDesc.t4f('moreInfo', true); tmp0_serialDesc.t4f('interactionType', true); tmp0_serialDesc.t4f('correctResponsePattern', true); tmp0_serialDesc.t4f('choices', true); tmp0_serialDesc.t4f('scale', true); tmp0_serialDesc.t4f('source', true); tmp0_serialDesc.t4f('target', true); tmp0_serialDesc.t4f('steps', true); this.wpu_1 = tmp0_serialDesc; } protoOf($serializer_44).q44 = function () { return this.wpu_1; }; protoOf($serializer_44).k4g = function () { var tmp0_cached = Companion_getInstance_78().vpu_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_44).s44 = function (decoder) { var tmp0_desc = this.wpu_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.i48(tmp0_desc); var tmp17_cached = Companion_getInstance_78().vpu_1; if (tmp16_input.x48()) { tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.w48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.w48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, tmp17_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.w48(tmp0_desc, 1, tmp17_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.w48(tmp0_desc, 3, tmp17_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, tmp17_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, tmp17_cached[7], tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, tmp17_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, tmp17_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, tmp17_cached[11], tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.j48(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_44).xpu = function (encoder, value) { var tmp0_desc = this.wpu_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_78().vpu_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ypu_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, tmp2_cached[0], value.ypu_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.zpu_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.zpu_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.apv_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.apv_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.bpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, tmp2_cached[3], value.bpv_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.cpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.cpv_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.dpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, XapiInteractionTypeSerializer_instance, value.dpv_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.epv_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, tmp2_cached[6], value.epv_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.fpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, tmp2_cached[7], value.fpv_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.gpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 8, tmp2_cached[8], value.gpv_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.hpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, tmp2_cached[9], value.hpv_1); } if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.ipv_1 == null)) { tmp1_output.a4a(tmp0_desc, 10, tmp2_cached[10], value.ipv_1); } if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.jpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 11, tmp2_cached[11], value.jpv_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_44).r44 = function (encoder, value) { return this.xpu(encoder, value instanceof XapiActivity ? value : THROW_CCE()); }; var $serializer_instance_44; function $serializer_getInstance_56() { if ($serializer_instance_44 == null) new $serializer_44(); return $serializer_instance_44; } 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_56().wpu_1); } if (0 === (seen1 & 1)) $this.ypu_1 = null; else $this.ypu_1 = name; if (0 === (seen1 & 2)) $this.zpu_1 = null; else $this.zpu_1 = description; if (0 === (seen1 & 4)) $this.apv_1 = null; else $this.apv_1 = type; if (0 === (seen1 & 8)) $this.bpv_1 = null; else $this.bpv_1 = extensions; if (0 === (seen1 & 16)) $this.cpv_1 = null; else $this.cpv_1 = moreInfo; if (0 === (seen1 & 32)) $this.dpv_1 = null; else $this.dpv_1 = interactionType; if (0 === (seen1 & 64)) $this.epv_1 = null; else $this.epv_1 = correctResponsePattern; if (0 === (seen1 & 128)) $this.fpv_1 = null; else $this.fpv_1 = choices; if (0 === (seen1 & 256)) $this.gpv_1 = null; else $this.gpv_1 = scale; if (0 === (seen1 & 512)) $this.hpv_1 = null; else $this.hpv_1 = source; if (0 === (seen1 & 1024)) $this.ipv_1 = null; else $this.ipv_1 = target; if (0 === (seen1 & 2048)) $this.jpv_1 = null; else $this.jpv_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_78(); 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.ypu_1 = name; this.zpu_1 = description; this.apv_1 = type; this.bpv_1 = extensions; this.cpv_1 = moreInfo; this.dpv_1 = interactionType; this.epv_1 = correctResponsePattern; this.fpv_1 = choices; this.gpv_1 = scale; this.hpv_1 = source; this.ipv_1 = target; this.jpv_1 = steps; } protoOf(XapiActivity).toString = function () { return 'XapiActivity(name=' + this.ypu_1 + ', description=' + this.zpu_1 + ', type=' + this.apv_1 + ', extensions=' + this.bpv_1 + ', moreInfo=' + this.cpv_1 + ', interactionType=' + this.dpv_1 + ', correctResponsePattern=' + this.epv_1 + ', choices=' + this.fpv_1 + ', scale=' + this.gpv_1 + ', source=' + this.hpv_1 + ', target=' + this.ipv_1 + ', steps=' + this.jpv_1 + ')'; }; protoOf(XapiActivity).hashCode = function () { var result = this.ypu_1 == null ? 0 : hashCode(this.ypu_1); result = imul(result, 31) + (this.zpu_1 == null ? 0 : hashCode(this.zpu_1)) | 0; result = imul(result, 31) + (this.apv_1 == null ? 0 : getStringHashCode(this.apv_1)) | 0; result = imul(result, 31) + (this.bpv_1 == null ? 0 : hashCode(this.bpv_1)) | 0; result = imul(result, 31) + (this.cpv_1 == null ? 0 : getStringHashCode(this.cpv_1)) | 0; result = imul(result, 31) + (this.dpv_1 == null ? 0 : this.dpv_1.hashCode()) | 0; result = imul(result, 31) + (this.epv_1 == null ? 0 : hashCode(this.epv_1)) | 0; result = imul(result, 31) + (this.fpv_1 == null ? 0 : hashCode(this.fpv_1)) | 0; result = imul(result, 31) + (this.gpv_1 == null ? 0 : hashCode(this.gpv_1)) | 0; result = imul(result, 31) + (this.hpv_1 == null ? 0 : hashCode(this.hpv_1)) | 0; result = imul(result, 31) + (this.ipv_1 == null ? 0 : hashCode(this.ipv_1)) | 0; result = imul(result, 31) + (this.jpv_1 == null ? 0 : hashCode(this.jpv_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.ypu_1, tmp0_other_with_cast.ypu_1)) return false; if (!equals(this.zpu_1, tmp0_other_with_cast.zpu_1)) return false; if (!(this.apv_1 == tmp0_other_with_cast.apv_1)) return false; if (!equals(this.bpv_1, tmp0_other_with_cast.bpv_1)) return false; if (!(this.cpv_1 == tmp0_other_with_cast.cpv_1)) return false; if (!equals(this.dpv_1, tmp0_other_with_cast.dpv_1)) return false; if (!equals(this.epv_1, tmp0_other_with_cast.epv_1)) return false; if (!equals(this.fpv_1, tmp0_other_with_cast.fpv_1)) return false; if (!equals(this.gpv_1, tmp0_other_with_cast.gpv_1)) return false; if (!equals(this.hpv_1, tmp0_other_with_cast.hpv_1)) return false; if (!equals(this.ipv_1, tmp0_other_with_cast.ipv_1)) return false; if (!equals(this.jpv_1, tmp0_other_with_cast.jpv_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.cpn_1 = activityEntity; this.dpn_1 = activityLangMapEntries; this.epn_1 = activityInteractionEntities; this.fpn_1 = activityExtensionEntities; this.gpn_1 = statementContextActivityJoin; } protoOf(ActivityEntities).kpv = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) { return new ActivityEntities(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).lpv = function (activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin, $super) { activityEntity = activityEntity === VOID ? this.cpn_1 : activityEntity; activityLangMapEntries = activityLangMapEntries === VOID ? this.dpn_1 : activityLangMapEntries; activityInteractionEntities = activityInteractionEntities === VOID ? this.epn_1 : activityInteractionEntities; activityExtensionEntities = activityExtensionEntities === VOID ? this.fpn_1 : activityExtensionEntities; statementContextActivityJoin = statementContextActivityJoin === VOID ? this.gpn_1 : statementContextActivityJoin; return $super === VOID ? this.kpv(activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin) : $super.kpv.call(this, activityEntity, activityLangMapEntries, activityInteractionEntities, activityExtensionEntities, statementContextActivityJoin); }; protoOf(ActivityEntities).toString = function () { return 'ActivityEntities(activityEntity=' + this.cpn_1 + ', activityLangMapEntries=' + this.dpn_1 + ', activityInteractionEntities=' + this.epn_1 + ', activityExtensionEntities=' + this.fpn_1 + ', statementContextActivityJoin=' + this.gpn_1 + ')'; }; protoOf(ActivityEntities).hashCode = function () { var result = this.cpn_1.hashCode(); result = imul(result, 31) + hashCode(this.dpn_1) | 0; result = imul(result, 31) + hashCode(this.epn_1) | 0; result = imul(result, 31) + hashCode(this.fpn_1) | 0; result = imul(result, 31) + (this.gpn_1 == null ? 0 : this.gpn_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.cpn_1.equals(tmp0_other_with_cast.cpn_1)) return false; if (!equals(this.dpn_1, tmp0_other_with_cast.dpn_1)) return false; if (!equals(this.epn_1, tmp0_other_with_cast.epn_1)) return false; if (!equals(this.fpn_1, tmp0_other_with_cast.fpn_1)) return false; if (!equals(this.gpn_1, tmp0_other_with_cast.gpn_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.tm2(activityId); var tmp9_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fpv_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.gpv_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.hpv_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.ipv_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.jpv_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.apv_1; var tmp_9 = _this__u8e3s4 == null ? null : _this__u8e3s4.cpv_1; var tmp13_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.dpv_1; var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.ppv_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.epv_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.t45(); // 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.r45(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.ypu_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.zpu_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.bpv_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.tm2(key), xapiRequireValidIRI(key, activityId + ' extension ' + key + ' is not a valid IRI'), json.r45(Companion_instance_23.n4r(), 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.tm2(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.tm2('' + propId + _this__u8e3s4.tpu_1); var tmp = new ActivityInteractionEntity(activityUid, aieHash, propId, _this__u8e3s4.tpu_1); var tmp0_safe_receiver = _this__u8e3s4.upu_1; return to(tmp, toEmptyIfNull(tmp0_safe_receiver == null ? null : toEntities$toLangMapEntries(tmp0_safe_receiver, activityUid, $stringHasher, propName + '-' + _this__u8e3s4.tpu_1, aieHash))); } function Companion_62() { } protoOf(Companion_62).n4r = function () { return XapiActorSerializer_getInstance(); }; protoOf(Companion_62).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_111; function Companion_getInstance_79() { return Companion_instance_111; } function XapiActor() { } function XapiActorSerializer() { XapiActorSerializer_instance = this; JsonContentPolymorphicSerializer.call(this, getKClass(XapiActor)); } protoOf(XapiActorSerializer).l4r = 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.g3b(); var tmp; if (tmp2_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiActorSerializer.selectDeserializer.' call tmp = valueOf(tmp2_safe_receiver); } var tmp3_elvis_lhs = tmp; var objectType = tmp3_elvis_lhs == null ? XapiObjectType_Agent_getInstance() : tmp3_elvis_lhs; var tmp_0; switch (objectType.za_1) { case 3: tmp_0 = Companion_instance_112.n4r(); break; case 4: tmp_0 = Companion_getInstance_84().n4r(); 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.tpv() == null)) { var tmp0_safe_receiver = _this__u8e3s4.tpv(); var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ppu_1; var tmp1_safe_receiver = _this__u8e3s4.tpv(); tmp = '' + tmp_0 + '@' + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.opu_1); } else if (!(_this__u8e3s4.qpv() == null)) { tmp = _this__u8e3s4.qpv(); } else if (!(_this__u8e3s4.rpv() == null)) { tmp = _this__u8e3s4.rpv(); } else if (!(_this__u8e3s4.spv() == null)) { tmp = _this__u8e3s4.spv(); } 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.tm2(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.wpp_1 = actor; this.xpp_1 = groupMemberAgents; this.ypp_1 = groupMemberJoins; } protoOf(ActorEntities).toString = function () { return 'ActorEntities(actor=' + this.wpp_1 + ', groupMemberAgents=' + this.xpp_1 + ', groupMemberJoins=' + this.ypp_1 + ')'; }; protoOf(ActorEntities).hashCode = function () { var result = this.wpp_1.hashCode(); result = imul(result, 31) + hashCode(this.xpp_1) | 0; result = imul(result, 31) + hashCode(this.ypp_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.wpp_1.equals(tmp0_other_with_cast.wpp_1)) return false; if (!equals(this.xpp_1, tmp0_other_with_cast.xpp_1)) return false; if (!equals(this.ypp_1, tmp0_other_with_cast.ypp_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_63() { } protoOf(Companion_63).n4r = function () { return $serializer_getInstance_57(); }; var Companion_instance_112; function Companion_getInstance_80() { return Companion_instance_112; } function $serializer_45() { $serializer_instance_45 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiAgent', this, 6); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('mbox', true); tmp0_serialDesc.t4f('mbox_sha1sum', true); tmp0_serialDesc.t4f('openid', true); tmp0_serialDesc.t4f('objectType', true); tmp0_serialDesc.t4f('account', true); this.xpv_1 = tmp0_serialDesc; } protoOf($serializer_45).q44 = function () { return this.xpv_1; }; protoOf($serializer_45).k4g = 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_54())]; }; protoOf($serializer_45).s44 = function (decoder) { var tmp0_desc = this.xpv_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.i48(tmp0_desc); if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, $serializer_getInstance_54(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, $serializer_getInstance_54(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return XapiAgent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_45).ypv = function (encoder, value) { var tmp0_desc = this.xpv_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.zpv_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.zpv_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.apw_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.apw_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.bpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.bpw_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.cpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.cpw_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.dpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.dpw_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.epw_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, $serializer_getInstance_54(), value.epw_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_45).r44 = function (encoder, value) { return this.ypv(encoder, value instanceof XapiAgent ? value : THROW_CCE()); }; var $serializer_instance_45; function $serializer_getInstance_57() { if ($serializer_instance_45 == null) new $serializer_45(); return $serializer_instance_45; } function XapiAgent_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_57().xpv_1); } if (0 === (seen1 & 1)) $this.zpv_1 = null; else $this.zpv_1 = name; if (0 === (seen1 & 2)) $this.apw_1 = null; else $this.apw_1 = mbox; if (0 === (seen1 & 4)) $this.bpw_1 = null; else $this.bpw_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.cpw_1 = null; else $this.cpw_1 = openid; if (0 === (seen1 & 16)) $this.dpw_1 = null; else $this.dpw_1 = objectType; if (0 === (seen1 & 32)) $this.epw_1 = null; else $this.epw_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.zpv_1 = name; this.apw_1 = mbox; this.bpw_1 = mbox_sha1sum; this.cpw_1 = openid; this.dpw_1 = objectType; this.epw_1 = account; } protoOf(XapiAgent).qpv = function () { return this.apw_1; }; protoOf(XapiAgent).rpv = function () { return this.bpw_1; }; protoOf(XapiAgent).spv = function () { return this.cpw_1; }; protoOf(XapiAgent).fpw = function () { return this.dpw_1; }; protoOf(XapiAgent).tpv = function () { return this.epw_1; }; protoOf(XapiAgent).toString = function () { return 'XapiAgent(name=' + this.zpv_1 + ', mbox=' + this.apw_1 + ', mbox_sha1sum=' + this.bpw_1 + ', openid=' + this.cpw_1 + ', objectType=' + this.dpw_1 + ', account=' + this.epw_1 + ')'; }; protoOf(XapiAgent).hashCode = function () { var result = this.zpv_1 == null ? 0 : getStringHashCode(this.zpv_1); result = imul(result, 31) + (this.apw_1 == null ? 0 : getStringHashCode(this.apw_1)) | 0; result = imul(result, 31) + (this.bpw_1 == null ? 0 : getStringHashCode(this.bpw_1)) | 0; result = imul(result, 31) + (this.cpw_1 == null ? 0 : getStringHashCode(this.cpw_1)) | 0; result = imul(result, 31) + (this.dpw_1 == null ? 0 : this.dpw_1.hashCode()) | 0; result = imul(result, 31) + (this.epw_1 == null ? 0 : this.epw_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.zpv_1 == tmp0_other_with_cast.zpv_1)) return false; if (!(this.apw_1 == tmp0_other_with_cast.apw_1)) return false; if (!(this.bpw_1 == tmp0_other_with_cast.bpw_1)) return false; if (!(this.cpw_1 == tmp0_other_with_cast.cpw_1)) return false; if (!equals(this.dpw_1, tmp0_other_with_cast.dpw_1)) return false; if (!equals(this.epw_1, tmp0_other_with_cast.epw_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.apw_1; var tmp7_actorMbox_sha1sum = _this__u8e3s4.bpw_1; var tmp8_actorOpenid = _this__u8e3s4.cpw_1; var tmp1_safe_receiver = _this__u8e3s4.epw_1; var tmp9_actorAccountName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ppu_1; var tmp2_safe_receiver = _this__u8e3s4.epw_1; var tmp10_actorAccountHomePage = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.opu_1; var tmp3_safe_receiver = _this__u8e3s4.zpv_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.tm2(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_64() { Companion_instance_113 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.gpw_1 = [null, null, null, null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_113; function Companion_getInstance_81() { if (Companion_instance_113 == null) new Companion_64(); return Companion_instance_113; } function $serializer_46() { $serializer_instance_46 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiContext', this, 9); tmp0_serialDesc.t4f('instructor', true); tmp0_serialDesc.t4f('registration', true); tmp0_serialDesc.t4f('language', true); tmp0_serialDesc.t4f('platform', true); tmp0_serialDesc.t4f('revision', true); tmp0_serialDesc.t4f('team', true); tmp0_serialDesc.t4f('statement', true); tmp0_serialDesc.t4f('contextActivities', true); tmp0_serialDesc.t4f('extensions', true); this.hpw_1 = tmp0_serialDesc; } protoOf($serializer_46).q44 = function () { return this.hpw_1; }; protoOf($serializer_46).k4g = function () { var tmp0_cached = Companion_getInstance_81().gpw_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_64()), get_nullable(XapiContextActivitiesSerializer_getInstance()), get_nullable(tmp0_cached[8])]; }; protoOf($serializer_46).s44 = function (decoder) { var tmp0_desc = this.hpw_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.i48(tmp0_desc); var tmp14_cached = Companion_getInstance_81().gpw_1; if (tmp13_input.x48()) { tmp4_local0 = tmp13_input.w48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.w48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.w48(tmp0_desc, 6, $serializer_getInstance_64(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.w48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.w48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.w48(tmp0_desc, 0, XapiActorSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.w48(tmp0_desc, 5, XapiActorSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.w48(tmp0_desc, 6, $serializer_getInstance_64(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.w48(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.w48(tmp0_desc, 8, tmp14_cached[8], tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.j48(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_46).ipw = function (encoder, value) { var tmp0_desc = this.hpw_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_81().gpw_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.jpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, XapiActorSerializer_getInstance(), value.jpw_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.kpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.kpw_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.lpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.lpw_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.mpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.mpw_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.npw_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.npw_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.opw_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, XapiActorSerializer_getInstance(), value.opw_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.ppw_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, $serializer_getInstance_64(), value.ppw_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.qpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, XapiContextActivitiesSerializer_getInstance(), value.qpw_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.rpw_1 == null)) { tmp1_output.a4a(tmp0_desc, 8, tmp2_cached[8], value.rpw_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_46).r44 = function (encoder, value) { return this.ipw(encoder, value instanceof XapiContext ? value : THROW_CCE()); }; var $serializer_instance_46; function $serializer_getInstance_58() { if ($serializer_instance_46 == null) new $serializer_46(); return $serializer_instance_46; } 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_58().hpw_1); } if (0 === (seen1 & 1)) $this.jpw_1 = null; else $this.jpw_1 = instructor; if (0 === (seen1 & 2)) $this.kpw_1 = null; else $this.kpw_1 = registration; if (0 === (seen1 & 4)) $this.lpw_1 = null; else $this.lpw_1 = language; if (0 === (seen1 & 8)) $this.mpw_1 = null; else $this.mpw_1 = platform; if (0 === (seen1 & 16)) $this.npw_1 = null; else $this.npw_1 = revision; if (0 === (seen1 & 32)) $this.opw_1 = null; else $this.opw_1 = team; if (0 === (seen1 & 64)) $this.ppw_1 = null; else $this.ppw_1 = statement; if (0 === (seen1 & 128)) $this.qpw_1 = null; else $this.qpw_1 = contextActivities; if (0 === (seen1 & 256)) $this.rpw_1 = null; else $this.rpw_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_81(); 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.jpw_1 = instructor; this.kpw_1 = registration; this.lpw_1 = language; this.mpw_1 = platform; this.npw_1 = revision; this.opw_1 = team; this.ppw_1 = statement; this.qpw_1 = contextActivities; this.rpw_1 = extensions; } protoOf(XapiContext).toString = function () { return 'XapiContext(instructor=' + this.jpw_1 + ', registration=' + this.kpw_1 + ', language=' + this.lpw_1 + ', platform=' + this.mpw_1 + ', revision=' + this.npw_1 + ', team=' + this.opw_1 + ', statement=' + this.ppw_1 + ', contextActivities=' + this.qpw_1 + ', extensions=' + this.rpw_1 + ')'; }; protoOf(XapiContext).hashCode = function () { var result = this.jpw_1 == null ? 0 : hashCode(this.jpw_1); result = imul(result, 31) + (this.kpw_1 == null ? 0 : getStringHashCode(this.kpw_1)) | 0; result = imul(result, 31) + (this.lpw_1 == null ? 0 : getStringHashCode(this.lpw_1)) | 0; result = imul(result, 31) + (this.mpw_1 == null ? 0 : getStringHashCode(this.mpw_1)) | 0; result = imul(result, 31) + (this.npw_1 == null ? 0 : getStringHashCode(this.npw_1)) | 0; result = imul(result, 31) + (this.opw_1 == null ? 0 : hashCode(this.opw_1)) | 0; result = imul(result, 31) + (this.ppw_1 == null ? 0 : this.ppw_1.hashCode()) | 0; result = imul(result, 31) + (this.qpw_1 == null ? 0 : this.qpw_1.hashCode()) | 0; result = imul(result, 31) + (this.rpw_1 == null ? 0 : hashCode(this.rpw_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.jpw_1, tmp0_other_with_cast.jpw_1)) return false; if (!(this.kpw_1 == tmp0_other_with_cast.kpw_1)) return false; if (!(this.lpw_1 == tmp0_other_with_cast.lpw_1)) return false; if (!(this.mpw_1 == tmp0_other_with_cast.mpw_1)) return false; if (!(this.npw_1 == tmp0_other_with_cast.npw_1)) return false; if (!equals(this.opw_1, tmp0_other_with_cast.opw_1)) return false; if (!equals(this.ppw_1, tmp0_other_with_cast.ppw_1)) return false; if (!equals(this.qpw_1, tmp0_other_with_cast.qpw_1)) return false; if (!equals(this.rpw_1, tmp0_other_with_cast.rpw_1)) return false; return true; }; function Companion_65() { } var Companion_instance_114; function Companion_getInstance_82() { return Companion_instance_114; } function XapiContextActivities(parent, grouping, category, other) { parent = parent === VOID ? null : parent; grouping = grouping === VOID ? null : grouping; category = category === VOID ? null : category; other = other === VOID ? null : other; this.spw_1 = parent; this.tpw_1 = grouping; this.upw_1 = category; this.vpw_1 = other; } protoOf(XapiContextActivities).toString = function () { return 'XapiContextActivities(parent=' + this.spw_1 + ', grouping=' + this.tpw_1 + ', category=' + this.upw_1 + ', other=' + this.vpw_1 + ')'; }; protoOf(XapiContextActivities).hashCode = function () { var result = this.spw_1 == null ? 0 : hashCode(this.spw_1); result = imul(result, 31) + (this.tpw_1 == null ? 0 : hashCode(this.tpw_1)) | 0; result = imul(result, 31) + (this.upw_1 == null ? 0 : hashCode(this.upw_1)) | 0; result = imul(result, 31) + (this.vpw_1 == null ? 0 : hashCode(this.vpw_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.spw_1, tmp0_other_with_cast.spw_1)) return false; if (!equals(this.tpw_1, tmp0_other_with_cast.tpw_1)) return false; if (!equals(this.upw_1, tmp0_other_with_cast.upw_1)) return false; if (!equals(this.vpw_1, tmp0_other_with_cast.vpw_1)) return false; return true; }; function deserialize$propertyToObjectList(jsonObject, jsonDecoder, propName) { var jsonElement = jsonObject.ba(propName); var tmp; if (!(jsonElement == null)) { tmp = decodeListOrSingleObjectAsList(jsonDecoder.m4r(), Companion_instance_122.n4r(), jsonElement); } else { tmp = null; } return tmp; } function XapiContextActivitiesSerializer() { XapiContextActivitiesSerializer_instance = this; this.wpw_1 = Companion_getInstance_83().n4r().q44(); } protoOf(XapiContextActivitiesSerializer).q44 = function () { return this.wpw_1; }; protoOf(XapiContextActivitiesSerializer).ypw = function (encoder, value) { encoder.z49(Companion_getInstance_83().n4r(), toSurrogate(value)); }; protoOf(XapiContextActivitiesSerializer).r44 = function (encoder, value) { return this.ypw(encoder, value instanceof XapiContextActivities ? value : THROW_CCE()); }; protoOf(XapiContextActivitiesSerializer).s44 = 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.k4r(); 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_66() { Companion_instance_115 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.xpw_1 = [new ArrayListSerializer($serializer_getInstance_64()), new ArrayListSerializer($serializer_getInstance_64()), new ArrayListSerializer($serializer_getInstance_64()), new ArrayListSerializer($serializer_getInstance_64())]; } protoOf(Companion_66).n4r = function () { return $serializer_getInstance_59(); }; var Companion_instance_115; function Companion_getInstance_83() { if (Companion_instance_115 == null) new Companion_66(); return Companion_instance_115; } function $serializer_47() { $serializer_instance_47 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('XapiContextActivities', this, 4); tmp0_serialDesc.t4f('parent', true); tmp0_serialDesc.t4f('grouping', true); tmp0_serialDesc.t4f('category', true); tmp0_serialDesc.t4f('other', true); this.zpw_1 = tmp0_serialDesc; } protoOf($serializer_47).q44 = function () { return this.zpw_1; }; protoOf($serializer_47).k4g = function () { var tmp0_cached = Companion_getInstance_83().xpw_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_47).s44 = function (decoder) { var tmp0_desc = this.zpw_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.i48(tmp0_desc); var tmp9_cached = Companion_getInstance_83().xpw_1; if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, tmp9_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, tmp9_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, tmp9_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, tmp9_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return XapiContextActivitiesSurrogate_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_47).apx = function (encoder, value) { var tmp0_desc = this.zpw_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_83().xpw_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.bpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, tmp2_cached[0], value.bpx_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.cpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.cpx_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.dpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, tmp2_cached[2], value.dpx_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.epx_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, tmp2_cached[3], value.epx_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_47).r44 = function (encoder, value) { return this.apx(encoder, value instanceof XapiContextActivitiesSurrogate ? value : THROW_CCE()); }; var $serializer_instance_47; function $serializer_getInstance_59() { if ($serializer_instance_47 == null) new $serializer_47(); return $serializer_instance_47; } function XapiContextActivitiesSurrogate_init_$Init$(seen1, parent, grouping, category, other, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_59().zpw_1); } if (0 === (seen1 & 1)) $this.bpx_1 = null; else $this.bpx_1 = parent; if (0 === (seen1 & 2)) $this.cpx_1 = null; else $this.cpx_1 = grouping; if (0 === (seen1 & 4)) $this.dpx_1 = null; else $this.dpx_1 = category; if (0 === (seen1 & 8)) $this.epx_1 = null; else $this.epx_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_83(); parent = parent === VOID ? null : parent; grouping = grouping === VOID ? null : grouping; category = category === VOID ? null : category; other = other === VOID ? null : other; this.bpx_1 = parent; this.cpx_1 = grouping; this.dpx_1 = category; this.epx_1 = other; } function toSurrogate(_this__u8e3s4) { return new XapiContextActivitiesSurrogate(_this__u8e3s4.spw_1, _this__u8e3s4.tpw_1, _this__u8e3s4.upw_1, _this__u8e3s4.vpw_1); } function toEntities_1(_this__u8e3s4, stringHasher, json, statementUuid) { var tmp = toEntities$toEntitiesInternal(_this__u8e3s4.spw_1, stringHasher, json, statementUuid, 1); var tmp_0 = plus(tmp, toEntities$toEntitiesInternal(_this__u8e3s4.tpw_1, stringHasher, json, statementUuid, 2)); var tmp_1 = plus(tmp_0, toEntities$toEntitiesInternal(_this__u8e3s4.upw_1, stringHasher, json, statementUuid, 3)); return plus(tmp_1, toEntities$toEntitiesInternal(_this__u8e3s4.vpw_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.tm2(item.gpx_1); var scajToHash = stringHasher.tm2('' + contextType + '-' + item.gpx_1); var statementContextActivityJoin = new StatementContextActivityJoin(statementUuid.hm9(), statementUuid.im9(), scajToHash, contextType, activityUid, item.gpx_1); var tmp0_safe_receiver = item.hpx_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toEntities(tmp0_safe_receiver, item.gpx_1, stringHasher, json); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lpv(VOID, VOID, VOID, VOID, statementContextActivityJoin); var tmp$ret$0 = tmp2_elvis_lhs == null ? new ActivityEntities(new ActivityEntity(activityUid, item.gpx_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_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.wpv_1 = [null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_57())]; } protoOf(Companion_67).n4r = function () { return $serializer_getInstance_60(); }; var Companion_instance_116; function Companion_getInstance_84() { if (Companion_instance_116 == null) new Companion_67(); return Companion_instance_116; } function $serializer_48() { $serializer_instance_48 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiGroup', this, 7); tmp0_serialDesc.t4f('name', true); tmp0_serialDesc.t4f('mbox', true); tmp0_serialDesc.t4f('mbox_sha1sum', true); tmp0_serialDesc.t4f('openid', true); tmp0_serialDesc.t4f('objectType', true); tmp0_serialDesc.t4f('account', true); tmp0_serialDesc.t4f('member', true); this.ipx_1 = tmp0_serialDesc; } protoOf($serializer_48).q44 = function () { return this.ipx_1; }; protoOf($serializer_48).k4g = function () { var tmp0_cached = Companion_getInstance_84().wpv_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_54()), tmp0_cached[6]]; }; protoOf($serializer_48).s44 = function (decoder) { var tmp0_desc = this.ipx_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.i48(tmp0_desc); var tmp12_cached = Companion_getInstance_84().wpv_1; if (tmp11_input.x48()) { tmp4_local0 = tmp11_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, $serializer_getInstance_54(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.u48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.w48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.w48(tmp0_desc, 4, XapiObjectTypeSerializer_instance, tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.w48(tmp0_desc, 5, $serializer_getInstance_54(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.u48(tmp0_desc, 6, tmp12_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.j48(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_48).jpx = function (encoder, value) { var tmp0_desc = this.ipx_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_84().wpv_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.kpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.kpx_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.lpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, StringSerializer_getInstance(), value.lpx_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.mpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.mpx_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.npx_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.npx_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.opx_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, XapiObjectTypeSerializer_instance, value.opx_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.ppx_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, $serializer_getInstance_54(), value.ppx_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.qpx_1, emptyList())) { tmp1_output.y49(tmp0_desc, 6, tmp2_cached[6], value.qpx_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_48).r44 = function (encoder, value) { return this.jpx(encoder, value instanceof XapiGroup ? value : THROW_CCE()); }; var $serializer_instance_48; function $serializer_getInstance_60() { if ($serializer_instance_48 == null) new $serializer_48(); return $serializer_instance_48; } function XapiGroup_init_$Init$(seen1, name, mbox, mbox_sha1sum, openid, objectType, account, member, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_60().ipx_1); } if (0 === (seen1 & 1)) $this.kpx_1 = null; else $this.kpx_1 = name; if (0 === (seen1 & 2)) $this.lpx_1 = null; else $this.lpx_1 = mbox; if (0 === (seen1 & 4)) $this.mpx_1 = null; else $this.mpx_1 = mbox_sha1sum; if (0 === (seen1 & 8)) $this.npx_1 = null; else $this.npx_1 = openid; if (0 === (seen1 & 16)) $this.opx_1 = null; else $this.opx_1 = objectType; if (0 === (seen1 & 32)) $this.ppx_1 = null; else $this.ppx_1 = account; if (0 === (seen1 & 64)) $this.qpx_1 = emptyList(); else $this.qpx_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_84(); 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.kpx_1 = name; this.lpx_1 = mbox; this.mpx_1 = mbox_sha1sum; this.npx_1 = openid; this.opx_1 = objectType; this.ppx_1 = account; this.qpx_1 = member; } protoOf(XapiGroup).qpv = function () { return this.lpx_1; }; protoOf(XapiGroup).rpv = function () { return this.mpx_1; }; protoOf(XapiGroup).spv = function () { return this.npx_1; }; protoOf(XapiGroup).fpw = function () { return this.opx_1; }; protoOf(XapiGroup).tpv = function () { return this.ppx_1; }; protoOf(XapiGroup).toString = function () { return 'XapiGroup(name=' + this.kpx_1 + ', mbox=' + this.lpx_1 + ', mbox_sha1sum=' + this.mpx_1 + ', openid=' + this.npx_1 + ', objectType=' + this.opx_1 + ', account=' + this.ppx_1 + ', member=' + this.qpx_1 + ')'; }; protoOf(XapiGroup).hashCode = function () { var result = this.kpx_1 == null ? 0 : getStringHashCode(this.kpx_1); result = imul(result, 31) + (this.lpx_1 == null ? 0 : getStringHashCode(this.lpx_1)) | 0; result = imul(result, 31) + (this.mpx_1 == null ? 0 : getStringHashCode(this.mpx_1)) | 0; result = imul(result, 31) + (this.npx_1 == null ? 0 : getStringHashCode(this.npx_1)) | 0; result = imul(result, 31) + (this.opx_1 == null ? 0 : this.opx_1.hashCode()) | 0; result = imul(result, 31) + (this.ppx_1 == null ? 0 : this.ppx_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.qpx_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.kpx_1 == tmp0_other_with_cast.kpx_1)) return false; if (!(this.lpx_1 == tmp0_other_with_cast.lpx_1)) return false; if (!(this.mpx_1 == tmp0_other_with_cast.mpx_1)) return false; if (!(this.npx_1 == tmp0_other_with_cast.npx_1)) return false; if (!equals(this.opx_1, tmp0_other_with_cast.opx_1)) return false; if (!equals(this.ppx_1, tmp0_other_with_cast.ppx_1)) return false; if (!equals(this.qpx_1, tmp0_other_with_cast.qpx_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.qpx_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.sm2(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.vm2(toByteArray(element.w6_1)); } var memberHash = hasher.wm2(); var tmp_0; if (get_isAnonymous(_this__u8e3s4)) { tmp_0 = primaryKeyManager.n62(68); } else { tmp_0 = identifierHash(_this__u8e3s4, stringHasher); } var tmp2_actorUid = tmp_0; var tmp4_actorName = _this__u8e3s4.kpx_1; var tmp5_actorMbox = _this__u8e3s4.lpx_1; var tmp6_actorMbox_sha1sum = _this__u8e3s4.mpx_1; var tmp7_actorOpenid = _this__u8e3s4.npx_1; var tmp0_safe_receiver = _this__u8e3s4.ppx_1; var tmp8_actorAccountName = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ppu_1; var tmp1_safe_receiver = _this__u8e3s4.ppx_1; var tmp9_actorAccountHomePage = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.opu_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.kiz_1, item_1.x6_1.kiz_1, modTime); destination_1.i1(tmp$ret$8); } return new ActorEntities(groupActor, tmp_1, destination_1); } function get_isAnonymous(_this__u8e3s4) { return (_this__u8e3s4.lpx_1 == null ? _this__u8e3s4.npx_1 == null : false) ? _this__u8e3s4.ppx_1 == null : false; } function sam$kotlin_Comparator$0_0(function_0) { this.rpx_1 = function_0; } protoOf(sam$kotlin_Comparator$0_0).pa = function (a, b) { return this.rpx_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.spx_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_68() { Companion_instance_117 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.spx_1 = lazy(tmp_0, XapiInteractionType$Companion$_anonymous__3zafad); } protoOf(Companion_68).tpx = 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.opv_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_68).n4r = function () { return _get_$cachedSerializer__te6jhj_0(this); }; protoOf(Companion_68).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_117; function Companion_getInstance_85() { XapiInteractionType_initEntries(); if (Companion_instance_117 == null) new Companion_68(); return Companion_instance_117; } function values_1() { return [XapiInteractionType_TrueFalse_getInstance(), XapiInteractionType_Choice_getInstance(), XapiInteractionType_FillIn_getInstance(), XapiInteractionType_LongFillIn_getInstance(), XapiInteractionType_Matching_getInstance(), XapiInteractionType_Performance_getInstance(), XapiInteractionType_Sequencing_getInstance(), XapiInteractionType_Likert_getInstance(), XapiInteractionType_Numeric_getInstance(), XapiInteractionType_Other_getInstance()]; } function get_entries_0() { if ($ENTRIES_0 == null) $ENTRIES_0 = enumEntries(values_1()); return $ENTRIES_0; } var XapiInteractionType_entriesInitialized; function XapiInteractionType_initEntries() { if (XapiInteractionType_entriesInitialized) return Unit_instance; XapiInteractionType_entriesInitialized = true; XapiInteractionType_TrueFalse_instance = new XapiInteractionType('TrueFalse', 0, 'true-false', 1); XapiInteractionType_Choice_instance = new XapiInteractionType('Choice', 1, 'choice', 2); XapiInteractionType_FillIn_instance = new XapiInteractionType('FillIn', 2, 'fill-in', 3); XapiInteractionType_LongFillIn_instance = new XapiInteractionType('LongFillIn', 3, 'long-fill-in', 4); XapiInteractionType_Matching_instance = new XapiInteractionType('Matching', 4, 'matching', 5); XapiInteractionType_Performance_instance = new XapiInteractionType('Performance', 5, 'performance', 6); XapiInteractionType_Sequencing_instance = new XapiInteractionType('Sequencing', 6, 'sequencing', 7); XapiInteractionType_Likert_instance = new XapiInteractionType('Likert', 7, 'likert', 8); XapiInteractionType_Numeric_instance = new XapiInteractionType('Numeric', 8, 'numeric', 9); XapiInteractionType_Other_instance = new XapiInteractionType('Other', 9, 'other', 10); Companion_getInstance_85(); } var $ENTRIES_0; function XapiInteractionType(name, ordinal, jsonFieldValue, dbFlag) { Enum.call(this, name, ordinal); this.opv_1 = jsonFieldValue; this.ppv_1 = dbFlag; } function XapiInteractionTypeSerializer() { } protoOf(XapiInteractionTypeSerializer).q44 = 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()).q44(); }; protoOf(XapiInteractionTypeSerializer).s44 = function (decoder) { return Companion_getInstance_85().tpx(decoder.d48()); }; protoOf(XapiInteractionTypeSerializer).upx = function (encoder, value) { encoder.l49(value.opv_1); }; protoOf(XapiInteractionTypeSerializer).r44 = function (encoder, value) { return this.upx(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.vpx_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_69() { Companion_instance_118 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.vpx_1 = lazy(tmp_0, XapiObjectType$Companion$_anonymous__v4av7w); } protoOf(Companion_69).n4r = function () { return _get_$cachedSerializer__te6jhj_1(this); }; protoOf(Companion_69).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_118; function Companion_getInstance_86() { XapiObjectType_initEntries(); if (Companion_instance_118 == null) new Companion_69(); return Companion_instance_118; } function valueOf(value) { switch (value) { case 'StatementRef': return XapiObjectType_StatementRef_getInstance(); case 'SubStatement': return XapiObjectType_SubStatement_getInstance(); case 'Activity': return XapiObjectType_Activity_getInstance(); case 'Agent': return XapiObjectType_Agent_getInstance(); case 'Group': return XapiObjectType_Group_getInstance(); case 'Statement': return XapiObjectType_Statement_getInstance(); default: XapiObjectType_initEntries(); THROW_IAE('No enum constant value.'); break; } } var XapiObjectType_entriesInitialized; function XapiObjectType_initEntries() { if (XapiObjectType_entriesInitialized) return Unit_instance; XapiObjectType_entriesInitialized = true; XapiObjectType_StatementRef_instance = new XapiObjectType('StatementRef', 0); XapiObjectType_SubStatement_instance = new XapiObjectType('SubStatement', 1); XapiObjectType_Activity_instance = new XapiObjectType('Activity', 2); XapiObjectType_Agent_instance = new XapiObjectType('Agent', 3); XapiObjectType_Group_instance = new XapiObjectType('Group', 4); XapiObjectType_Statement_instance = new XapiObjectType('Statement', 5); Companion_getInstance_86(); } function XapiObjectType(name, ordinal) { Enum.call(this, name, ordinal); } function XapiObjectTypeSerializer() { } protoOf(XapiObjectTypeSerializer).q44 = 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()).q44(); }; protoOf(XapiObjectTypeSerializer).s44 = function (decoder) { var strValue = decoder.d48(); return valueOf(strValue); }; protoOf(XapiObjectTypeSerializer).wpx = function (encoder, value) { encoder.l49(value.toString()); }; protoOf(XapiObjectTypeSerializer).r44 = function (encoder, value) { return this.wpx(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_70() { } var Companion_instance_119; function Companion_getInstance_87() { return Companion_instance_119; } function $serializer_49() { $serializer_instance_49 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult.Score', this, 4); tmp0_serialDesc.t4f('scaled', true); tmp0_serialDesc.t4f('raw', true); tmp0_serialDesc.t4f('min', true); tmp0_serialDesc.t4f('max', true); this.xpx_1 = tmp0_serialDesc; } protoOf($serializer_49).q44 = function () { return this.xpx_1; }; protoOf($serializer_49).k4g = 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_49).s44 = 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_input = decoder.i48(tmp0_desc); if (tmp8_input.x48()) { tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.w48(tmp0_desc, 0, FloatSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.w48(tmp0_desc, 1, FloatSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.w48(tmp0_desc, 2, FloatSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.w48(tmp0_desc, 3, FloatSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.j48(tmp0_desc); return Score_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_49).ypx = function (encoder, value) { var tmp0_desc = this.xpx_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.zpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, FloatSerializer_getInstance(), value.zpx_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.apy_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, FloatSerializer_getInstance(), value.apy_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.bpy_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, FloatSerializer_getInstance(), value.bpy_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.cpy_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, FloatSerializer_getInstance(), value.cpy_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_49).r44 = function (encoder, value) { return this.ypx(encoder, value instanceof Score ? value : THROW_CCE()); }; var $serializer_instance_49; function $serializer_getInstance_61() { if ($serializer_instance_49 == null) new $serializer_49(); return $serializer_instance_49; } function Score_init_$Init$(seen1, scaled, raw, min, max, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_61().xpx_1); } if (0 === (seen1 & 1)) $this.zpx_1 = null; else $this.zpx_1 = scaled; if (0 === (seen1 & 2)) $this.apy_1 = null; else $this.apy_1 = raw; if (0 === (seen1 & 4)) $this.bpy_1 = null; else $this.bpy_1 = min; if (0 === (seen1 & 8)) $this.cpy_1 = null; else $this.cpy_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.zpx_1 = scaled; this.apy_1 = raw; this.bpy_1 = min; this.cpy_1 = max; } protoOf(Score).toString = function () { return 'Score(scaled=' + this.zpx_1 + ', raw=' + this.apy_1 + ', min=' + this.bpy_1 + ', max=' + this.cpy_1 + ')'; }; protoOf(Score).hashCode = function () { var result = this.zpx_1 == null ? 0 : getNumberHashCode(this.zpx_1); result = imul(result, 31) + (this.apy_1 == null ? 0 : getNumberHashCode(this.apy_1)) | 0; result = imul(result, 31) + (this.bpy_1 == null ? 0 : getNumberHashCode(this.bpy_1)) | 0; result = imul(result, 31) + (this.cpy_1 == null ? 0 : getNumberHashCode(this.cpy_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.zpx_1, tmp0_other_with_cast.zpx_1)) return false; if (!equals(this.apy_1, tmp0_other_with_cast.apy_1)) return false; if (!equals(this.bpy_1, tmp0_other_with_cast.bpy_1)) return false; if (!equals(this.cpy_1, tmp0_other_with_cast.cpy_1)) return false; return true; }; function Companion_71() { Companion_instance_120 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.dpy_1 = [null, null, null, null, null, new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance())]; } var Companion_instance_120; function Companion_getInstance_88() { if (Companion_instance_120 == null) new Companion_71(); return Companion_instance_120; } function $serializer_50() { $serializer_instance_50 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiResult', this, 6); tmp0_serialDesc.t4f('completion', true); tmp0_serialDesc.t4f('success', true); tmp0_serialDesc.t4f('score', true); tmp0_serialDesc.t4f('duration', true); tmp0_serialDesc.t4f('response', true); tmp0_serialDesc.t4f('extensions', true); this.epy_1 = tmp0_serialDesc; } protoOf($serializer_50).q44 = function () { return this.epy_1; }; protoOf($serializer_50).k4g = function () { var tmp0_cached = Companion_getInstance_88().dpy_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_61()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(tmp0_cached[5])]; }; protoOf($serializer_50).s44 = function (decoder) { var tmp0_desc = this.epy_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.i48(tmp0_desc); var tmp11_cached = Companion_getInstance_88().dpy_1; if (tmp10_input.x48()) { tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_61(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.w48(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.w48(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.w48(tmp0_desc, 2, $serializer_getInstance_61(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.w48(tmp0_desc, 5, tmp11_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.j48(tmp0_desc); return XapiResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_50).fpy = function (encoder, value) { var tmp0_desc = this.epy_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_88().dpy_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.sps_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, BooleanSerializer_getInstance(), value.sps_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.tps_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, BooleanSerializer_getInstance(), value.tps_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.ups_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_61(), value.ups_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.vps_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.vps_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.wps_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.wps_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.xps_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, tmp2_cached[5], value.xps_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_50).r44 = function (encoder, value) { return this.fpy(encoder, value instanceof XapiResult ? value : THROW_CCE()); }; var $serializer_instance_50; function $serializer_getInstance_62() { if ($serializer_instance_50 == null) new $serializer_50(); return $serializer_instance_50; } function XapiResult_init_$Init$(seen1, completion, success, score, duration, response, extensions, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_62().epy_1); } if (0 === (seen1 & 1)) $this.sps_1 = null; else $this.sps_1 = completion; if (0 === (seen1 & 2)) $this.tps_1 = null; else $this.tps_1 = success; if (0 === (seen1 & 4)) $this.ups_1 = null; else $this.ups_1 = score; if (0 === (seen1 & 8)) $this.vps_1 = null; else $this.vps_1 = duration; if (0 === (seen1 & 16)) $this.wps_1 = null; else $this.wps_1 = response; if (0 === (seen1 & 32)) $this.xps_1 = null; else $this.xps_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_88(); 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.sps_1 = completion; this.tps_1 = success; this.ups_1 = score; this.vps_1 = duration; this.wps_1 = response; this.xps_1 = extensions; } protoOf(XapiResult).toString = function () { return 'XapiResult(completion=' + this.sps_1 + ', success=' + this.tps_1 + ', score=' + this.ups_1 + ', duration=' + this.vps_1 + ', response=' + this.wps_1 + ', extensions=' + this.xps_1 + ')'; }; protoOf(XapiResult).hashCode = function () { var result = this.sps_1 == null ? 0 : getBooleanHashCode(this.sps_1); result = imul(result, 31) + (this.tps_1 == null ? 0 : getBooleanHashCode(this.tps_1)) | 0; result = imul(result, 31) + (this.ups_1 == null ? 0 : this.ups_1.hashCode()) | 0; result = imul(result, 31) + (this.vps_1 == null ? 0 : getStringHashCode(this.vps_1)) | 0; result = imul(result, 31) + (this.wps_1 == null ? 0 : getStringHashCode(this.wps_1)) | 0; result = imul(result, 31) + (this.xps_1 == null ? 0 : hashCode(this.xps_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.sps_1 == tmp0_other_with_cast.sps_1)) return false; if (!(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 (!(this.vps_1 == tmp0_other_with_cast.vps_1)) return false; if (!(this.wps_1 == tmp0_other_with_cast.wps_1)) return false; if (!equals(this.xps_1, tmp0_other_with_cast.xps_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_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.opq_1 = [null, null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_53()), null]; } protoOf(Companion_72).n4r = function () { return $serializer_getInstance_63(); }; var Companion_instance_121; function Companion_getInstance_89() { if (Companion_instance_121 == null) new Companion_72(); return Companion_instance_121; } function $serializer_51() { $serializer_instance_51 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatement', this, 12); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('actor', false); tmp0_serialDesc.t4f('verb', false); tmp0_serialDesc.t4f('object', false); tmp0_serialDesc.t4f('result', true); tmp0_serialDesc.t4f('context', true); tmp0_serialDesc.t4f('timestamp', true); tmp0_serialDesc.t4f('stored', true); tmp0_serialDesc.t4f('authority', true); tmp0_serialDesc.t4f('version', true); tmp0_serialDesc.t4f('attachments', true); tmp0_serialDesc.t4f('objectType', true); this.gpy_1 = tmp0_serialDesc; } protoOf($serializer_51).q44 = function () { return this.gpy_1; }; protoOf($serializer_51).k4g = function () { var tmp0_cached = Companion_getInstance_89().opq_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_66(), XapiStatementObjectSerializer_getInstance(), get_nullable($serializer_getInstance_62()), get_nullable($serializer_getInstance_58()), 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_51).s44 = function (decoder) { var tmp0_desc = this.gpy_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.i48(tmp0_desc); var tmp17_cached = Companion_getInstance_89().opq_1; if (tmp16_input.x48()) { tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.u48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.u48(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.u48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, $serializer_getInstance_62(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, $serializer_getInstance_58(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.u48(tmp0_desc, 1, XapiActorSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.u48(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.u48(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.w48(tmp0_desc, 4, $serializer_getInstance_62(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.w48(tmp0_desc, 5, $serializer_getInstance_58(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.w48(tmp0_desc, 8, XapiActorSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.w48(tmp0_desc, 10, tmp17_cached[10], tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.w48(tmp0_desc, 11, XapiObjectTypeSerializer_instance, tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.j48(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_51).hpy = function (encoder, value) { var tmp0_desc = this.gpy_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_89().opq_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.bpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.bpq_1); } tmp1_output.y49(tmp0_desc, 1, XapiActorSerializer_getInstance(), value.cpq_1); tmp1_output.y49(tmp0_desc, 2, $serializer_getInstance_66(), value.dpq_1); tmp1_output.y49(tmp0_desc, 3, XapiStatementObjectSerializer_getInstance(), value.epq_1); if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.fpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, $serializer_getInstance_62(), value.fpq_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.gpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, $serializer_getInstance_58(), value.gpq_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.hpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.hpq_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.ipq_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.ipq_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.jpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 8, XapiActorSerializer_getInstance(), value.jpq_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.kpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.kpq_1); } if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.lpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 10, tmp2_cached[10], value.lpq_1); } if (tmp1_output.e4a(tmp0_desc, 11) ? true : !(value.mpq_1 == null)) { tmp1_output.a4a(tmp0_desc, 11, XapiObjectTypeSerializer_instance, value.mpq_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_51).r44 = function (encoder, value) { return this.hpy(encoder, value instanceof XapiStatement ? value : THROW_CCE()); }; var $serializer_instance_51; function $serializer_getInstance_63() { if ($serializer_instance_51 == null) new $serializer_51(); return $serializer_instance_51; } 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_63().gpy_1); } if (0 === (seen1 & 1)) $this.bpq_1 = null; else $this.bpq_1 = id; $this.cpq_1 = actor; $this.dpq_1 = verb; $this.epq_1 = object; if (0 === (seen1 & 16)) $this.fpq_1 = null; else $this.fpq_1 = result; if (0 === (seen1 & 32)) $this.gpq_1 = null; else $this.gpq_1 = context; if (0 === (seen1 & 64)) $this.hpq_1 = null; else $this.hpq_1 = timestamp; if (0 === (seen1 & 128)) $this.ipq_1 = null; else $this.ipq_1 = stored; if (0 === (seen1 & 256)) $this.jpq_1 = null; else $this.jpq_1 = authority; if (0 === (seen1 & 512)) $this.kpq_1 = null; else $this.kpq_1 = version; if (0 === (seen1 & 1024)) $this.lpq_1 = null; else $this.lpq_1 = attachments; if (0 === (seen1 & 2048)) $this.mpq_1 = null; else $this.mpq_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_89(); 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.bpq_1 = id; this.cpq_1 = actor; this.dpq_1 = verb; this.epq_1 = object; this.fpq_1 = result; this.gpq_1 = context; this.hpq_1 = timestamp; this.ipq_1 = stored; this.jpq_1 = authority; this.kpq_1 = version; this.lpq_1 = attachments; this.mpq_1 = objectType; } protoOf(XapiStatement).fpw = function () { return this.mpq_1; }; protoOf(XapiStatement).ipy = 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).npq = function (id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType, $super) { id = id === VOID ? this.bpq_1 : id; actor = actor === VOID ? this.cpq_1 : actor; verb = verb === VOID ? this.dpq_1 : verb; object = object === VOID ? this.epq_1 : object; result = result === VOID ? this.fpq_1 : result; context = context === VOID ? this.gpq_1 : context; timestamp = timestamp === VOID ? this.hpq_1 : timestamp; stored = stored === VOID ? this.ipq_1 : stored; authority = authority === VOID ? this.jpq_1 : authority; version = version === VOID ? this.kpq_1 : version; attachments = attachments === VOID ? this.lpq_1 : attachments; objectType = objectType === VOID ? this.mpq_1 : objectType; return $super === VOID ? this.ipy(id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType) : $super.ipy.call(this, id, actor, verb, object, result, context, timestamp, stored, authority, version, attachments, objectType); }; protoOf(XapiStatement).toString = function () { return 'XapiStatement(id=' + this.bpq_1 + ', actor=' + this.cpq_1 + ', verb=' + this.dpq_1 + ', object=' + this.epq_1 + ', result=' + this.fpq_1 + ', context=' + this.gpq_1 + ', timestamp=' + this.hpq_1 + ', stored=' + this.ipq_1 + ', authority=' + this.jpq_1 + ', version=' + this.kpq_1 + ', attachments=' + this.lpq_1 + ', objectType=' + this.mpq_1 + ')'; }; protoOf(XapiStatement).hashCode = function () { var result = this.bpq_1 == null ? 0 : getStringHashCode(this.bpq_1); result = imul(result, 31) + hashCode(this.cpq_1) | 0; result = imul(result, 31) + this.dpq_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.epq_1) | 0; result = imul(result, 31) + (this.fpq_1 == null ? 0 : this.fpq_1.hashCode()) | 0; result = imul(result, 31) + (this.gpq_1 == null ? 0 : this.gpq_1.hashCode()) | 0; result = imul(result, 31) + (this.hpq_1 == null ? 0 : getStringHashCode(this.hpq_1)) | 0; result = imul(result, 31) + (this.ipq_1 == null ? 0 : getStringHashCode(this.ipq_1)) | 0; result = imul(result, 31) + (this.jpq_1 == null ? 0 : hashCode(this.jpq_1)) | 0; result = imul(result, 31) + (this.kpq_1 == null ? 0 : getStringHashCode(this.kpq_1)) | 0; result = imul(result, 31) + (this.lpq_1 == null ? 0 : hashCode(this.lpq_1)) | 0; result = imul(result, 31) + (this.mpq_1 == null ? 0 : this.mpq_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.bpq_1 == tmp0_other_with_cast.bpq_1)) return false; if (!equals(this.cpq_1, tmp0_other_with_cast.cpq_1)) return false; 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 (!(this.hpq_1 == tmp0_other_with_cast.hpq_1)) return false; if (!(this.ipq_1 == tmp0_other_with_cast.ipq_1)) return false; if (!equals(this.jpq_1, tmp0_other_with_cast.jpq_1)) return false; if (!(this.kpq_1 == tmp0_other_with_cast.kpq_1)) return false; if (!equals(this.lpq_1, tmp0_other_with_cast.lpq_1)) return false; if (!equals(this.mpq_1, tmp0_other_with_cast.mpq_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.rpp_1 = statementEntity; this.spp_1 = statementEntityJson; this.tpp_1 = actorEntities; this.upp_1 = verbEntities; this.vpp_1 = activityEntities; } protoOf(StatementEntities).toString = function () { return 'StatementEntities(statementEntity=' + this.rpp_1 + ', statementEntityJson=' + this.spp_1 + ', actorEntities=' + this.tpp_1 + ', verbEntities=' + this.upp_1 + ', activityEntities=' + this.vpp_1 + ')'; }; protoOf(StatementEntities).hashCode = function () { var result = this.rpp_1 == null ? 0 : this.rpp_1.hashCode(); result = imul(result, 31) + (this.spp_1 == null ? 0 : this.spp_1.hashCode()) | 0; result = imul(result, 31) + (this.tpp_1 == null ? 0 : hashCode(this.tpp_1)) | 0; result = imul(result, 31) + (this.upp_1 == null ? 0 : this.upp_1.hashCode()) | 0; result = imul(result, 31) + (this.vpp_1 == null ? 0 : hashCode(this.vpp_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.rpp_1, tmp0_other_with_cast.rpp_1)) return false; if (!equals(this.spp_1, tmp0_other_with_cast.spp_1)) return false; if (!equals(this.tpp_1, tmp0_other_with_cast.tpp_1)) return false; if (!equals(this.upp_1, tmp0_other_with_cast.upp_1)) return false; if (!equals(this.vpp_1, tmp0_other_with_cast.vpp_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.bpq_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.epq_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.gpq_1; var contextRegistration = xapiRequireValidUuidOrNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kpw_1, 'Invalid context registration uuid'); var statementActorEntities = toEntities_0(_this__u8e3s4.cpq_1, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp3_safe_receiver = _this__u8e3s4.jpq_1; var authorityActor = tmp3_safe_receiver == null ? null : toEntities_0(tmp3_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var tmp4_safe_receiver = _this__u8e3s4.gpq_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.jpw_1; var contextInstructorActorEntities = tmp5_safe_receiver == null ? null : toEntities_0(tmp5_safe_receiver, stringHasher, primaryKeyManager, hasherFactory, knownActorUidToPersonUidMap); var statementObjectForeignKeys = objectForeignKeys(_this__u8e3s4.epq_1, stringHasher, statementUuid); var tmp34_statementIdHi = statementUuid.hm9(); var tmp35_statementIdLo = statementUuid.im9(); var tmp_3; var tmp_4; var tmp6_safe_receiver = _this__u8e3s4.cpq_1.tpv(); if ((tmp6_safe_receiver == null ? null : tmp6_safe_receiver.opu_1) === learningSpace.nnp_1) { var tmp7_safe_receiver = _this__u8e3s4.cpq_1.tpv(); tmp_4 = (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.ppu_1) === xapiSession.fjv_1; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = xapiSession.djv_1; } else { tmp_3 = new Long(0, 0); } var tmp36_statementActorPersonUid = tmp_3; var tmp37_statementActorUid = statementActorEntities.wpp_1.kiz_1; var tmp9_safe_receiver = authorityActor == null ? null : authorityActor.wpp_1; var tmp10_elvis_lhs = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.kiz_1; var tmp38_authorityActorUid = tmp10_elvis_lhs == null ? new Long(0, 0) : tmp10_elvis_lhs; var tmp39_statementVerbUid = stringHasher.tm2(xapiRequireValidIRI(_this__u8e3s4.dpq_1.jpy_1, 'Statement ' + statementUuid + ' VerbID ' + _this__u8e3s4.dpq_1.jpy_1 + ' is not a valid IRI')); var tmp11_safe_receiver = _this__u8e3s4.fpq_1; var tmp40_resultCompletion = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.sps_1; var tmp12_safe_receiver = _this__u8e3s4.fpq_1; var tmp41_resultSuccess = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.tps_1; var tmp13_safe_receiver = _this__u8e3s4.fpq_1; var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.ups_1; var tmp42_resultScoreScaled = tmp14_safe_receiver == null ? null : tmp14_safe_receiver.zpx_1; var tmp15_safe_receiver = _this__u8e3s4.fpq_1; var tmp16_safe_receiver = tmp15_safe_receiver == null ? null : tmp15_safe_receiver.ups_1; var tmp43_resultScoreRaw = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.apy_1; var tmp17_safe_receiver = _this__u8e3s4.fpq_1; var tmp18_safe_receiver = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.ups_1; var tmp44_resultScoreMin = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.bpy_1; var tmp19_safe_receiver = _this__u8e3s4.fpq_1; var tmp20_safe_receiver = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.ups_1; var tmp45_resultScoreMax = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.cpy_1; var tmp21_safe_receiver = _this__u8e3s4.fpq_1; var tmp46_resultDuration = xapiRequireDurationOrNullAsLong(tmp21_safe_receiver == null ? null : tmp21_safe_receiver.vps_1); var tmp22_safe_receiver = _this__u8e3s4.fpq_1; var tmp47_resultResponse = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.wps_1; var tmp23_safe_receiver = _this__u8e3s4.hpq_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.hm9(); var tmp50_contextRegistrationHi = tmp26_elvis_lhs == null ? new Long(0, 0) : tmp26_elvis_lhs; var tmp28_elvis_lhs = contextRegistration == null ? null : contextRegistration.im9(); var tmp51_contextRegistrationLo = tmp28_elvis_lhs == null ? new Long(0, 0) : tmp28_elvis_lhs; var tmp29_safe_receiver = _this__u8e3s4.gpq_1; var tmp52_contextPlatform = tmp29_safe_receiver == null ? null : tmp29_safe_receiver.mpw_1; var tmp31_safe_receiver = contextInstructorActorEntities == null ? null : contextInstructorActorEntities.wpp_1; var tmp32_elvis_lhs = tmp31_safe_receiver == null ? null : tmp31_safe_receiver.kiz_1; var tmp53_contextInstructorActorUid = tmp32_elvis_lhs == null ? new Long(0, 0) : tmp32_elvis_lhs; var tmp54_statementContentEntryUid = xapiSession.ijv_1; var tmp55_statementClazzUid = xapiSession.gjv_1; var tmp56_statementCbUid = xapiSession.hjv_1; var tmp_6; if (isCompletionOrProgress(_this__u8e3s4)) { var tmp_7; if (xapiSession.ijv_1.equals(new Long(0, 0))) { tmp_7 = true; } else { var tmp_8 = _this__u8e3s4.epq_1; var tmp33_safe_receiver = tmp_8 instanceof XapiActivityStatementObject ? tmp_8 : null; tmp_7 = (tmp33_safe_receiver == null ? null : tmp33_safe_receiver.gpx_1) === xapiSession.kjv_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.epq_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.hm9(), statementUuid.im9(), 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.dpq_1, stringHasher); var tmp62_safe_receiver = _this__u8e3s4.gpq_1; var tmp63_safe_receiver = tmp62_safe_receiver == null ? null : tmp62_safe_receiver.qpw_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.epq_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.fpq_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sps_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).l4r = 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.g3b(); var tmp_1; if (tmp3_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.domain.xapi.model.XapiStatementObjectSerializer.selectDeserializer.' call tmp_1 = valueOf(tmp3_safe_receiver); } var tmp4_elvis_lhs = tmp_1; var objectType = tmp4_elvis_lhs == null ? XapiObjectType_Activity_getInstance() : tmp4_elvis_lhs; var tmp_2; switch (objectType.za_1) { case 2: tmp_2 = Companion_instance_122.n4r(); break; case 3: tmp_2 = Companion_instance_112.n4r(); break; case 4: tmp_2 = Companion_getInstance_84().n4r(); break; case 0: tmp_2 = Companion_instance_123.n4r(); break; case 1: tmp_2 = Companion_getInstance_89().n4r(); 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_73() { } protoOf(Companion_73).n4r = function () { return $serializer_getInstance_64(); }; var Companion_instance_122; function Companion_getInstance_90() { return Companion_instance_122; } function $serializer_52() { $serializer_instance_52 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiActivityStatementObject', this, 3); tmp0_serialDesc.t4f('objectType', true); tmp0_serialDesc.t4f('id', false); tmp0_serialDesc.t4f('definition', true); this.npy_1 = tmp0_serialDesc; } protoOf($serializer_52).q44 = function () { return this.npy_1; }; protoOf($serializer_52).k4g = 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_56())]; }; protoOf($serializer_52).s44 = function (decoder) { var tmp0_desc = this.npy_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.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_56(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.w48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.w48(tmp0_desc, 2, $serializer_getInstance_56(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return XapiActivityStatementObject_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_52).opy = function (encoder, value) { var tmp0_desc = this.npy_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.fpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.fpx_1); } tmp1_output.w49(tmp0_desc, 1, value.gpx_1); if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.hpx_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, $serializer_getInstance_56(), value.hpx_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_52).r44 = function (encoder, value) { return this.opy(encoder, value instanceof XapiActivityStatementObject ? value : THROW_CCE()); }; var $serializer_instance_52; function $serializer_getInstance_64() { if ($serializer_instance_52 == null) new $serializer_52(); return $serializer_instance_52; } function XapiActivityStatementObject_init_$Init$(seen1, objectType, id, definition, serializationConstructorMarker, $this) { if (!(2 === (2 & seen1))) { throwMissingFieldException(seen1, 2, $serializer_getInstance_64().npy_1); } if (0 === (seen1 & 1)) $this.fpx_1 = null; else $this.fpx_1 = objectType; $this.gpx_1 = id; if (0 === (seen1 & 4)) $this.hpx_1 = null; else $this.hpx_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.fpx_1 = objectType; this.gpx_1 = id; this.hpx_1 = definition; } protoOf(XapiActivityStatementObject).fpw = function () { return this.fpx_1; }; protoOf(XapiActivityStatementObject).toString = function () { return 'XapiActivityStatementObject(objectType=' + this.fpx_1 + ', id=' + this.gpx_1 + ', definition=' + this.hpx_1 + ')'; }; protoOf(XapiActivityStatementObject).hashCode = function () { var result = this.fpx_1 == null ? 0 : this.fpx_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.gpx_1) | 0; result = imul(result, 31) + (this.hpx_1 == null ? 0 : this.hpx_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.fpx_1, tmp0_other_with_cast.fpx_1)) return false; if (!(this.gpx_1 === tmp0_other_with_cast.gpx_1)) return false; if (!equals(this.hpx_1, tmp0_other_with_cast.hpx_1)) return false; return true; }; function objectForeignKeys(_this__u8e3s4, stringHasher, statementUuid) { var tmp; if (_this__u8e3s4 instanceof XapiActivityStatementObject) { tmp = new Pair(stringHasher.tm2(_this__u8e3s4.gpx_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.qpy_1); tmp = new Pair(uuid.hm9(), uuid.im9()); } else { if (_this__u8e3s4 instanceof XapiStatement) { var tmp_0 = statementUuid.hm9(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = statementUuid.im9().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.hpx_1, _this__u8e3s4.gpx_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.hm9(); // Inline function 'kotlin.Long.plus' call var tmp$ret$0 = parentStatementUuid.im9().lc(toLong(1)); tmp = toEntities_3(_this__u8e3s4.npq(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.fpw(); 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_74() { } protoOf(Companion_74).n4r = function () { return $serializer_getInstance_65(); }; var Companion_instance_123; function Companion_getInstance_91() { return Companion_instance_123; } function $serializer_53() { $serializer_instance_53 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiStatementRef', this, 2); tmp0_serialDesc.t4f('objectType', false); tmp0_serialDesc.t4f('id', false); this.rpy_1 = tmp0_serialDesc; } protoOf($serializer_53).q44 = function () { return this.rpy_1; }; protoOf($serializer_53).k4g = 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_53).s44 = function (decoder) { var tmp0_desc = this.rpy_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.i48(tmp0_desc); if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, XapiObjectTypeSerializer_instance, tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.s48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiStatementRef_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_53).spy = function (encoder, value) { var tmp0_desc = this.rpy_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.y49(tmp0_desc, 0, XapiObjectTypeSerializer_instance, value.ppy_1); tmp1_output.w49(tmp0_desc, 1, value.qpy_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_53).r44 = function (encoder, value) { return this.spy(encoder, value instanceof XapiStatementRef ? value : THROW_CCE()); }; var $serializer_instance_53; function $serializer_getInstance_65() { if ($serializer_instance_53 == null) new $serializer_53(); return $serializer_instance_53; } function XapiStatementRef_init_$Init$(seen1, objectType, id, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_65().rpy_1); } $this.ppy_1 = objectType; $this.qpy_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).fpw = function () { return this.ppy_1; }; protoOf(XapiStatementRef).toString = function () { return 'XapiStatementRef(objectType=' + this.ppy_1 + ', id=' + this.qpy_1 + ')'; }; protoOf(XapiStatementRef).hashCode = function () { var result = this.ppy_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.qpy_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.ppy_1.equals(tmp0_other_with_cast.ppy_1)) return false; if (!(this.qpy_1 === tmp0_other_with_cast.qpy_1)) return false; return true; }; function Companion_75() { Companion_instance_124 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.tpy_1 = [null, new LinkedHashMapSerializer(StringSerializer_getInstance(), StringSerializer_getInstance())]; } var Companion_instance_124; function Companion_getInstance_92() { if (Companion_instance_124 == null) new Companion_75(); return Companion_instance_124; } function $serializer_54() { $serializer_instance_54 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.model.XapiVerb', this, 2); tmp0_serialDesc.t4f('id', true); tmp0_serialDesc.t4f('display', true); this.upy_1 = tmp0_serialDesc; } protoOf($serializer_54).q44 = function () { return this.upy_1; }; protoOf($serializer_54).k4g = function () { var tmp0_cached = Companion_getInstance_92().tpy_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_54).s44 = function (decoder) { var tmp0_desc = this.upy_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.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_92().tpy_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.w48(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.w48(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_54).vpy = function (encoder, value) { var tmp0_desc = this.upy_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_92().tpy_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.jpy_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, StringSerializer_getInstance(), value.jpy_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.kpy_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, tmp2_cached[1], value.kpy_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_54).r44 = function (encoder, value) { return this.vpy(encoder, value instanceof XapiVerb ? value : THROW_CCE()); }; var $serializer_instance_54; function $serializer_getInstance_66() { if ($serializer_instance_54 == null) new $serializer_54(); return $serializer_instance_54; } function XapiVerb_init_$Init$(seen1, id, display, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_66().upy_1); } if (0 === (seen1 & 1)) $this.jpy_1 = null; else $this.jpy_1 = id; if (0 === (seen1 & 2)) $this.kpy_1 = null; else $this.kpy_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_92(); id = id === VOID ? null : id; display = display === VOID ? null : display; this.jpy_1 = id; this.kpy_1 = display; } protoOf(XapiVerb).toString = function () { return 'XapiVerb(id=' + this.jpy_1 + ', display=' + this.kpy_1 + ')'; }; protoOf(XapiVerb).hashCode = function () { var result = this.jpy_1 == null ? 0 : getStringHashCode(this.jpy_1); result = imul(result, 31) + (this.kpy_1 == null ? 0 : hashCode(this.kpy_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.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 get_VERB_COMPLETED() { return VERB_COMPLETED; } var VERB_COMPLETED; function VerbEntities(verbEntity, verbLangMapEntries) { this.zpp_1 = verbEntity; this.apq_1 = verbLangMapEntries; } protoOf(VerbEntities).toString = function () { return 'VerbEntities(verbEntity=' + this.zpp_1 + ', verbLangMapEntries=' + this.apq_1 + ')'; }; protoOf(VerbEntities).hashCode = function () { var result = this.zpp_1.hashCode(); result = imul(result, 31) + hashCode(this.apq_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.zpp_1.equals(tmp0_other_with_cast.zpp_1)) return false; if (!equals(this.apq_1, tmp0_other_with_cast.apq_1)) return false; return true; }; function toVerbEntities(_this__u8e3s4, xxHasher) { var verbIri = xapiRequireValidIRI(_this__u8e3s4.jpy_1); var verbUid = xxHasher.tm2(verbIri); var tmp = new VerbEntity(verbUid, _this__u8e3s4.jpy_1); var tmp0_safe_receiver = _this__u8e3s4.kpy_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.tm2(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.zpy_1, $this.cpz_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.bpz_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.hpz(false); var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = $this.dpz_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.epz_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.qpz_1 = this$0; this.rpz_1 = $usageDurationVal; this.spz_1 = $timeSinceActive; CoroutineImpl.call(this, resultContinuation); } protoOf(NonInteractiveContentXapiStatementRecorder$onComplete$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.qpz_1.ypy_1.ooh(listOf_0(createXapiStatement(this.qpz_1, this.rpz_1.lc(this.spz_1), 100, true)), this.qpz_1.zpy_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).v1m = function ($this$launch, completion) { var i = new NonInteractiveContentXapiStatementRecorder$onComplete$slambda(this.qpz_1, this.rpz_1, this.spz_1, completion); i.tpz_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function NonInteractiveContentXapiStatementRecorder(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, xapiSession, scope, xapiActivityProvider, learningSpace) { this.wpy_1 = saveStatementOnClearUseCase; this.xpy_1 = saveStatementOnUnloadUseCase; this.ypy_1 = xapiStatementResource; this.zpy_1 = xapiSession; this.apz_1 = scope; this.bpz_1 = xapiActivityProvider; this.cpz_1 = learningSpace; this.dpz_1 = atomic$long$1(new Long(0, 0)); this.epz_1 = atomic$int$1(0); this.fpz_1 = atomic$long$1(new Long(0, 0)); this.gpz_1 = atomic$boolean$1(false); } protoOf(NonInteractiveContentXapiStatementRecorder).hpz = function (active) { var tmp = Napier_getInstance(); tmp.e5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onActiveChanged$lambda(active)); if (active) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.fpz_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.fpz_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.dpz_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).upz = function (progress) { $l$block: { // Inline function 'kotlinx.atomicfu.update' call var this_0 = this.epz_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).vpz = function (oneCompletionStatementOnly) { var tmp = Napier_getInstance(); tmp.e5e(VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$lambda); var tmp_0; var tmp$ret$1; $l$block: { // Inline function 'kotlinx.atomicfu.getAndUpdate' call var this_0 = this.gpz_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.dpz_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.fpz_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.epz_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.apz_1, VOID, VOID, NonInteractiveContentXapiStatementRecorder$onComplete$slambda_0(this, usageDurationVal, timeSinceActive, null)); } }; protoOf(NonInteractiveContentXapiStatementRecorder).gm3 = function () { this.wpy_1.wpz(listOf_0(createFinalStatement(this)), this.zpy_1); }; protoOf(NonInteractiveContentXapiStatementRecorder).xpz = function () { var tmp0_safe_receiver = this.xpy_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.wpz(listOf_0(createFinalStatement(this)), this.zpy_1); } }; function NonInteractiveContentXapiStatementRecorderFactory(saveStatementOnClearUseCase, saveStatementOnUnloadUseCase, xapiStatementResource, learningSpace) { this.ypz_1 = saveStatementOnClearUseCase; this.zpz_1 = saveStatementOnUnloadUseCase; this.aq0_1 = xapiStatementResource; this.bq0_1 = learningSpace; } protoOf(NonInteractiveContentXapiStatementRecorderFactory).cq0 = function (xapiSession, scope, xapiActivityProvider) { return new NonInteractiveContentXapiStatementRecorder(this.ypz_1, this.zpz_1, this.aq0_1, xapiSession, scope, xapiActivityProvider, this.bq0_1); }; function SaveStatementOnClearUseCase() { } function SaveStatementOnUnloadUseCase() { } 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.dq0_1 = [new ArrayListSerializer($serializer_getInstance_63()), null]; } protoOf(Companion_76).n4r = function () { return $serializer_getInstance_67(); }; var Companion_instance_125; function Companion_getInstance_93() { if (Companion_instance_125 == null) new Companion_76(); return Companion_instance_125; } function $serializer_55() { $serializer_instance_55 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.domain.xapi.savestatementonclear.XapiStatementsAndSession', this, 2); tmp0_serialDesc.t4f('statements', false); tmp0_serialDesc.t4f('session', false); this.eq0_1 = tmp0_serialDesc; } protoOf($serializer_55).q44 = function () { return this.eq0_1; }; protoOf($serializer_55).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [Companion_getInstance_93().dq0_1[0], $serializer_getInstance_6()]; }; protoOf($serializer_55).s44 = function (decoder) { var tmp0_desc = this.eq0_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.i48(tmp0_desc); var tmp7_cached = Companion_getInstance_93().dq0_1; if (tmp6_input.x48()) { tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.u48(tmp0_desc, 0, tmp7_cached[0], tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.u48(tmp0_desc, 1, $serializer_getInstance_6(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.j48(tmp0_desc); return XapiStatementsAndSession_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_55).fq0 = function (encoder, value) { var tmp0_desc = this.eq0_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_93().dq0_1; tmp1_output.y49(tmp0_desc, 0, tmp2_cached[0], value.gq0_1); tmp1_output.y49(tmp0_desc, 1, $serializer_getInstance_6(), value.hq0_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_55).r44 = function (encoder, value) { return this.fq0(encoder, value instanceof XapiStatementsAndSession ? value : THROW_CCE()); }; var $serializer_instance_55; function $serializer_getInstance_67() { if ($serializer_instance_55 == null) new $serializer_55(); return $serializer_instance_55; } function XapiStatementsAndSession_init_$Init$(seen1, statements, session, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_67().eq0_1); } $this.gq0_1 = statements; $this.hq0_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_93(); this.gq0_1 = statements; this.hq0_1 = session; } protoOf(XapiStatementsAndSession).toString = function () { return 'XapiStatementsAndSession(statements=' + this.gq0_1 + ', session=' + this.hq0_1 + ')'; }; protoOf(XapiStatementsAndSession).hashCode = function () { var result = hashCode(this.gq0_1); result = imul(result, 31) + this.hq0_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.gq0_1, tmp0_other_with_cast.gq0_1)) return false; if (!this.hq0_1.equals(tmp0_other_with_cast.hq0_1)) return false; return true; }; function ResumeOrStartXapiSessionUseCase() { } function UstadMobileConstants() { UstadMobileConstants_instance = this; this.iq0_1 = 'UTF-8'; this.jq0_1 = 0; this.kq0_1 = 'UTC'; this.lq0_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.mq0_1 = ['ar', 'arc', 'dv', 'fa', 'ha', 'he', 'khw', 'ks', 'ku', 'ps', 'ur', 'yi']; this.nq0_1 = 13; this.oq0_1 = 18; this.pq0_1 = 10000; this.qq0_1 = 512; } var UstadMobileConstants_instance; function UstadMobileConstants_getInstance() { if (UstadMobileConstants_instance == null) new UstadMobileConstants(); return UstadMobileConstants_instance; } function Companion_77() { Companion_instance_126 = this; this.rq0_1 = new UstadGoOptions(null, false); } var Companion_instance_126; function Companion_getInstance_94() { if (Companion_instance_126 == null) new Companion_77(); return Companion_instance_126; } function UstadGoOptions(popUpToViewName, popUpToInclusive, clearStack, serializer) { Companion_getInstance_94(); popUpToViewName = popUpToViewName === VOID ? null : popUpToViewName; popUpToInclusive = popUpToInclusive === VOID ? false : popUpToInclusive; clearStack = clearStack === VOID ? false : clearStack; serializer = serializer === VOID ? null : serializer; this.sq0_1 = popUpToViewName; this.tq0_1 = popUpToInclusive; this.uq0_1 = clearStack; this.vq0_1 = serializer; } protoOf(UstadGoOptions).toString = function () { return 'UstadGoOptions(popUpToViewName=' + this.sq0_1 + ', popUpToInclusive=' + this.tq0_1 + ', clearStack=' + this.uq0_1 + ', serializer=' + this.vq0_1 + ')'; }; protoOf(UstadGoOptions).hashCode = function () { var result = this.sq0_1 == null ? 0 : getStringHashCode(this.sq0_1); result = imul(result, 31) + getBooleanHashCode(this.tq0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.uq0_1) | 0; result = imul(result, 31) + (this.vq0_1 == null ? 0 : hashCode(this.vq0_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.sq0_1 == tmp0_other_with_cast.sq0_1)) return false; if (!(this.tq0_1 === tmp0_other_with_cast.tq0_1)) return false; if (!(this.uq0_1 === tmp0_other_with_cast.uq0_1)) return false; if (!equals(this.vq0_1, tmp0_other_with_cast.vq0_1)) return false; return true; }; function UiLanguage(langCode, langDisplay) { this.wq0_1 = langCode; this.xq0_1 = langDisplay; } protoOf(UiLanguage).toString = function () { return 'UiLanguage(langCode=' + this.wq0_1 + ', langDisplay=' + this.xq0_1 + ')'; }; protoOf(UiLanguage).hashCode = function () { var result = getStringHashCode(this.wq0_1); result = imul(result, 31) + getStringHashCode(this.xq0_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.wq0_1 === tmp0_other_with_cast.wq0_1)) return false; if (!(this.xq0_1 === tmp0_other_with_cast.xq0_1)) return false; return true; }; function Companion_78() { Companion_instance_127 = this; this.yq0_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.yq0_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.zq0_1 = destination; this.aq1_1 = 'ustadmobileContent'; this.bq1_1 = ''; this.PREFKEY_LOCALE = 'locale'; this.cq1_1 = 2; this.dq1_1 = 4; this.eq1_1 = 'ref'; this.fq1_1 = 67108864; this.gq1_1 = 'dlenabled'; this.hq1_1 = 16; this.iq1_1 = 32; this.jq1_1 = 64; this.kq1_1 = 'umclient'; this.lq1_1 = '/umapp/#/'; this.mq1_1 = 'sitedata'; this.nq1_1 = 'container'; this.oq1_1 = 'attachments'; this.pq1_1 = 'rootViewName'; this.qq1_1 = 'client_id'; } protoOf(Companion_78).rq1 = function () { return this.PREFKEY_LOCALE; }; var Companion_instance_127; function Companion_getInstance_95() { if (Companion_instance_127 == null) new Companion_78(); return Companion_instance_127; } function UstadMobileSystemCommon(settings, langConfig) { Companion_getInstance_95(); this.sq1_1 = settings; this.tq1_1 = langConfig; this.uq1_1 = null; } protoOf(UstadMobileSystemCommon).vq1 = function () { Companion_getInstance_138(); return 'CourseListHome'; }; protoOf(UstadMobileSystemCommon).wq1 = 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.eog(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.xq1_1 = visible; this.yq1_1 = text; this.zq1_1 = enabled; this.aq2_1 = onClick; } protoOf(ActionBarButtonUiState).bq2 = function (visible, text, enabled, onClick) { return new ActionBarButtonUiState(visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).cq2 = function (visible, text, enabled, onClick, $super) { visible = visible === VOID ? this.xq1_1 : visible; text = text === VOID ? this.yq1_1 : text; enabled = enabled === VOID ? this.zq1_1 : enabled; onClick = onClick === VOID ? this.aq2_1 : onClick; return $super === VOID ? this.bq2(visible, text, enabled, onClick) : $super.bq2.call(this, visible, text, enabled, onClick); }; protoOf(ActionBarButtonUiState).toString = function () { return 'ActionBarButtonUiState(visible=' + this.xq1_1 + ', text=' + this.yq1_1 + ', enabled=' + this.zq1_1 + ', onClick=' + this.aq2_1 + ')'; }; protoOf(ActionBarButtonUiState).hashCode = function () { var result = getBooleanHashCode(this.xq1_1); result = imul(result, 31) + (this.yq1_1 == null ? 0 : getStringHashCode(this.yq1_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.zq1_1) | 0; result = imul(result, 31) + hashCode(this.aq2_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.xq1_1 === tmp0_other_with_cast.xq1_1)) return false; if (!(this.yq1_1 == tmp0_other_with_cast.yq1_1)) return false; if (!(this.zq1_1 === tmp0_other_with_cast.zq1_1)) return false; if (!equals(this.aq2_1, tmp0_other_with_cast.aq2_1)) return false; return true; }; function AppActionButton(icon, contentDescription, onClick, id) { this.dq2_1 = icon; this.eq2_1 = contentDescription; this.fq2_1 = onClick; this.gq2_1 = id; } protoOf(AppActionButton).toString = function () { return 'AppActionButton(icon=' + this.dq2_1 + ', contentDescription=' + this.eq2_1 + ', onClick=' + this.fq2_1 + ', id=' + this.gq2_1 + ')'; }; protoOf(AppActionButton).hashCode = function () { var result = this.dq2_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.eq2_1) | 0; result = imul(result, 31) + hashCode(this.fq2_1) | 0; result = imul(result, 31) + getStringHashCode(this.gq2_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.dq2_1.equals(tmp0_other_with_cast.dq2_1)) return false; if (!(this.eq2_1 === tmp0_other_with_cast.eq2_1)) return false; if (!equals(this.fq2_1, tmp0_other_with_cast.fq2_1)) return false; if (!(this.gq2_1 === tmp0_other_with_cast.gq2_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.hq2_1 = visible; this.iq2_1 = searchText; this.jq2_1 = onSearchTextChanged; } protoOf(AppBarSearchUiState).kq2 = function (visible, searchText, onSearchTextChanged) { return new AppBarSearchUiState(visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).lq2 = function (visible, searchText, onSearchTextChanged, $super) { visible = visible === VOID ? this.hq2_1 : visible; searchText = searchText === VOID ? this.iq2_1 : searchText; onSearchTextChanged = onSearchTextChanged === VOID ? this.jq2_1 : onSearchTextChanged; return $super === VOID ? this.kq2(visible, searchText, onSearchTextChanged) : $super.kq2.call(this, visible, searchText, onSearchTextChanged); }; protoOf(AppBarSearchUiState).toString = function () { return 'AppBarSearchUiState(visible=' + this.hq2_1 + ', searchText=' + this.iq2_1 + ', onSearchTextChanged=' + this.jq2_1 + ')'; }; protoOf(AppBarSearchUiState).hashCode = function () { var result = getBooleanHashCode(this.hq2_1); result = imul(result, 31) + getStringHashCode(this.iq2_1) | 0; result = imul(result, 31) + hashCode(this.jq2_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.hq2_1 === tmp0_other_with_cast.hq2_1)) return false; if (!(this.iq2_1 === tmp0_other_with_cast.iq2_1)) return false; if (!equals(this.jq2_1, tmp0_other_with_cast.jq2_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.mq2_1 = fabState; this.nq2_1 = loadingState; this.oq2_1 = title; this.pq2_1 = navigationVisible; this.qq2_1 = hideBottomNavigation; this.rq2_1 = hideSettingsIcon; this.sq2_1 = userAccountIconVisible; this.tq2_1 = searchState; this.uq2_1 = actionBarButtonState; this.vq2_1 = overflowItems; this.wq2_1 = hideAppBar; this.xq2_1 = actionButtons; this.yq2_1 = leadingActionButton; this.zq2_1 = appBarColors; } protoOf(AppUiState).aq3 = 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).bq3 = function (fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors, $super) { fabState = fabState === VOID ? this.mq2_1 : fabState; loadingState = loadingState === VOID ? this.nq2_1 : loadingState; title = title === VOID ? this.oq2_1 : title; navigationVisible = navigationVisible === VOID ? this.pq2_1 : navigationVisible; hideBottomNavigation = hideBottomNavigation === VOID ? this.qq2_1 : hideBottomNavigation; hideSettingsIcon = hideSettingsIcon === VOID ? this.rq2_1 : hideSettingsIcon; userAccountIconVisible = userAccountIconVisible === VOID ? this.sq2_1 : userAccountIconVisible; searchState = searchState === VOID ? this.tq2_1 : searchState; actionBarButtonState = actionBarButtonState === VOID ? this.uq2_1 : actionBarButtonState; overflowItems = overflowItems === VOID ? this.vq2_1 : overflowItems; hideAppBar = hideAppBar === VOID ? this.wq2_1 : hideAppBar; actionButtons = actionButtons === VOID ? this.xq2_1 : actionButtons; leadingActionButton = leadingActionButton === VOID ? this.yq2_1 : leadingActionButton; appBarColors = appBarColors === VOID ? this.zq2_1 : appBarColors; return $super === VOID ? this.aq3(fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors) : $super.aq3.call(this, fabState, loadingState, title, navigationVisible, hideBottomNavigation, hideSettingsIcon, userAccountIconVisible, searchState, actionBarButtonState, overflowItems, hideAppBar, actionButtons, leadingActionButton, appBarColors); }; protoOf(AppUiState).toString = function () { return 'AppUiState(fabState=' + this.mq2_1 + ', loadingState=' + this.nq2_1 + ', title=' + this.oq2_1 + ', navigationVisible=' + this.pq2_1 + ', hideBottomNavigation=' + this.qq2_1 + ', hideSettingsIcon=' + this.rq2_1 + ', userAccountIconVisible=' + this.sq2_1 + ', searchState=' + this.tq2_1 + ', actionBarButtonState=' + this.uq2_1 + ', overflowItems=' + this.vq2_1 + ', hideAppBar=' + this.wq2_1 + ', actionButtons=' + this.xq2_1 + ', leadingActionButton=' + this.yq2_1 + ', appBarColors=' + this.zq2_1 + ')'; }; protoOf(AppUiState).hashCode = function () { var result = this.mq2_1.hashCode(); result = imul(result, 31) + this.nq2_1.hashCode() | 0; result = imul(result, 31) + (this.oq2_1 == null ? 0 : getStringHashCode(this.oq2_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.pq2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qq2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rq2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.sq2_1) | 0; result = imul(result, 31) + this.tq2_1.hashCode() | 0; result = imul(result, 31) + this.uq2_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.vq2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wq2_1) | 0; result = imul(result, 31) + hashCode(this.xq2_1) | 0; result = imul(result, 31) + (this.yq2_1 == null ? 0 : this.yq2_1.hashCode()) | 0; result = imul(result, 31) + this.zq2_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.mq2_1.equals(tmp0_other_with_cast.mq2_1)) return false; if (!this.nq2_1.equals(tmp0_other_with_cast.nq2_1)) return false; if (!(this.oq2_1 == tmp0_other_with_cast.oq2_1)) return false; if (!(this.pq2_1 === tmp0_other_with_cast.pq2_1)) return false; if (!(this.qq2_1 === tmp0_other_with_cast.qq2_1)) return false; if (!(this.rq2_1 === tmp0_other_with_cast.rq2_1)) return false; if (!(this.sq2_1 === tmp0_other_with_cast.sq2_1)) return false; if (!this.tq2_1.equals(tmp0_other_with_cast.tq2_1)) return false; if (!this.uq2_1.equals(tmp0_other_with_cast.uq2_1)) return false; if (!equals(this.vq2_1, tmp0_other_with_cast.vq2_1)) return false; if (!(this.wq2_1 === tmp0_other_with_cast.wq2_1)) return false; if (!equals(this.xq2_1, tmp0_other_with_cast.xq2_1)) return false; if (!equals(this.yq2_1, tmp0_other_with_cast.yq2_1)) return false; if (!this.zq2_1.equals(tmp0_other_with_cast.zq2_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.cq3_1 = visible; this.dq3_1 = text; this.eq3_1 = icon; this.fq3_1 = onClick; } protoOf(FabUiState).gq3 = function (visible, text, icon, onClick) { return new FabUiState(visible, text, icon, onClick); }; protoOf(FabUiState).hq3 = function (visible, text, icon, onClick, $super) { visible = visible === VOID ? this.cq3_1 : visible; text = text === VOID ? this.dq3_1 : text; icon = icon === VOID ? this.eq3_1 : icon; onClick = onClick === VOID ? this.fq3_1 : onClick; return $super === VOID ? this.gq3(visible, text, icon, onClick) : $super.gq3.call(this, visible, text, icon, onClick); }; protoOf(FabUiState).toString = function () { return 'FabUiState(visible=' + this.cq3_1 + ', text=' + this.dq3_1 + ', icon=' + this.eq3_1 + ', onClick=' + this.fq3_1 + ')'; }; protoOf(FabUiState).hashCode = function () { var result = getBooleanHashCode(this.cq3_1); result = imul(result, 31) + (this.dq3_1 == null ? 0 : getStringHashCode(this.dq3_1)) | 0; result = imul(result, 31) + this.eq3_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.fq3_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.cq3_1 === tmp0_other_with_cast.cq3_1)) return false; if (!(this.dq3_1 == tmp0_other_with_cast.dq3_1)) return false; if (!this.eq3_1.equals(tmp0_other_with_cast.eq3_1)) return false; if (!equals(this.fq3_1, tmp0_other_with_cast.fq3_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_79() { Companion_instance_128 = this; this.iq3_1 = new LoadingUiState(State_INDETERMINATE_getInstance()); this.jq3_1 = new LoadingUiState(State_NOT_LOADING_getInstance()); } var Companion_instance_128; function Companion_getInstance_96() { if (Companion_instance_128 == null) new Companion_79(); return Companion_instance_128; } function State_NOT_LOADING_getInstance() { State_initEntries(); return State_NOT_LOADING_instance; } function State_INDETERMINATE_getInstance() { State_initEntries(); return State_INDETERMINATE_instance; } function LoadingUiState(loadingState) { Companion_getInstance_96(); loadingState = loadingState === VOID ? State_NOT_LOADING_getInstance() : loadingState; this.kq3_1 = loadingState; } protoOf(LoadingUiState).toString = function () { return 'LoadingUiState(loadingState=' + this.kq3_1 + ')'; }; protoOf(LoadingUiState).hashCode = function () { return this.kq3_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.kq3_1.equals(tmp0_other_with_cast.kq3_1)) return false; return true; }; function OverflowItem(label, onClick) { this.lq3_1 = label; this.mq3_1 = onClick; } protoOf(OverflowItem).toString = function () { return 'OverflowItem(label=' + this.lq3_1 + ', onClick=' + this.mq3_1 + ')'; }; protoOf(OverflowItem).hashCode = function () { var result = getStringHashCode(this.lq3_1); result = imul(result, 31) + hashCode(this.mq3_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.lq3_1 === tmp0_other_with_cast.lq3_1)) return false; if (!equals(this.mq3_1, tmp0_other_with_cast.mq3_1)) return false; return true; }; function Snack(message, action, onAction) { action = action === VOID ? null : action; onAction = onAction === VOID ? null : onAction; this.nq3_1 = message; this.oq3_1 = action; this.pq3_1 = onAction; } protoOf(Snack).toString = function () { return 'Snack(message=' + this.nq3_1 + ', action=' + this.oq3_1 + ', onAction=' + this.pq3_1 + ')'; }; protoOf(Snack).hashCode = function () { var result = getStringHashCode(this.nq3_1); result = imul(result, 31) + (this.oq3_1 == null ? 0 : getStringHashCode(this.oq3_1)) | 0; result = imul(result, 31) + (this.pq3_1 == null ? 0 : hashCode(this.pq3_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.nq3_1 === tmp0_other_with_cast.nq3_1)) return false; if (!(this.oq3_1 == tmp0_other_with_cast.oq3_1)) return false; if (!equals(this.pq3_1, tmp0_other_with_cast.pq3_1)) return false; return true; }; function SnackBarDispatcher() { } function TabItem(viewName, args, label) { this.rq3_1 = viewName; this.sq3_1 = args; this.tq3_1 = label; } protoOf(TabItem).toString = function () { return 'TabItem(viewName=' + this.rq3_1 + ', args=' + this.sq3_1 + ', label=' + this.tq3_1 + ')'; }; protoOf(TabItem).hashCode = function () { var result = getStringHashCode(this.rq3_1); result = imul(result, 31) + hashCode(this.sq3_1) | 0; result = imul(result, 31) + getStringHashCode(this.tq3_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.rq3_1 === tmp0_other_with_cast.rq3_1)) return false; if (!equals(this.sq3_1, tmp0_other_with_cast.sq3_1)) return false; if (!(this.tq3_1 === tmp0_other_with_cast.tq3_1)) return false; return true; }; function UstadContextMenuItem(label, onClick) { this.uq3_1 = label; this.vq3_1 = onClick; } protoOf(UstadContextMenuItem).toString = function () { return 'UstadContextMenuItem(label=' + this.uq3_1 + ', onClick=' + this.vq3_1 + ')'; }; protoOf(UstadContextMenuItem).hashCode = function () { var result = getStringHashCode(this.uq3_1); result = imul(result, 31) + hashCode(this.vq3_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.uq3_1 === tmp0_other_with_cast.uq3_1)) return false; if (!equals(this.vq3_1, tmp0_other_with_cast.vq3_1)) return false; return true; }; function BuildConfigMap(delegate) { this.wq3_1 = delegate; } protoOf(BuildConfigMap).ba = function (key) { return this.wq3_1.q(key); }; function Companion_80() { this.xq3_1 = '1,2,4'; } var Companion_instance_129; function Companion_getInstance_97() { return Companion_instance_129; } function GenderConfig(genderConfigStr) { genderConfigStr = genderConfigStr === VOID ? '1,2,4' : genderConfigStr; var tmp = this; // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = split(genderConfigStr, [',']); var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.GenderConfig.genderOptions.' call // Inline function 'kotlin.text.isNotBlank' call if (!isBlank(element)) { destination.i1(element); } } // Inline function 'kotlin.collections.mapTo' call var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10)); var tmp0_iterator_0 = destination.w(); while (tmp0_iterator_0.f()) { var item = tmp0_iterator_0.e(); // Inline function 'com.ustadmobile.core.impl.config.GenderConfig.genderOptions.' call var tmp$ret$4 = toInt(item); destination_0.i1(tmp$ret$4); } tmp.yq3_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().bq4_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.yq3_1.a1(element_0.eq4_1)) { destination_1.i1(element_0); } } tmp_0.zq3_1 = destination_1; var tmp_1 = this; var tmp_2 = strings_getInstance().tmd_1; tmp_1.aq4_1 = plus(this.zq3_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.fq4_1 = settings; } protoOf(SettingsLocaleSettingDelegate).gq4 = function (value) { if (!(value == null)) { this.fq4_1.jm3('locale', value); } else { this.fq4_1.a2o('locale'); } }; protoOf(SettingsLocaleSettingDelegate).hq4 = function () { return this.fq4_1.km3('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.iq4().wq0_1; } else { tmp = setting; } return tmp; } function Companion_81() { this.jq4_1 = 'locale'; this.kq4_1 = 'com.ustadmobile.presetlocale'; this.lq4_1 = 'localePresetDone'; this.mq4_1 = 'en,fa,ps,ar,tg,bn,ne,my,rw,ru'; this.nq4_1 = ''; } var Companion_instance_130; function Companion_getInstance_98() { return Companion_instance_130; } function SupportedLanguagesConfig(systemLocales, localeSettingDelegate, availableLanguagesConfig, fallbackLocaleCode) { availableLanguagesConfig = availableLanguagesConfig === VOID ? 'en,fa,ps,ar,tg,bn,ne,my,rw,ru' : availableLanguagesConfig; fallbackLocaleCode = fallbackLocaleCode === VOID ? 'en' : fallbackLocaleCode; this.lpj_1 = systemLocales; this.mpj_1 = localeSettingDelegate; this.npj_1 = availableLanguagesConfig; this.opj_1 = fallbackLocaleCode; var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = sorted(split(this.npj_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().lq0_1.q(item); var tmp$ret$0 = new UiLanguage(item, tmp0_elvis_lhs == null ? item : tmp0_elvis_lhs); destination.i1(tmp$ret$0); } tmp.ppj_1 = destination; var tmp_0 = this; // Inline function 'kotlin.collections.associateBy' call var this_1 = this.ppj_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.wq0_1; destination_0.s(tmp$ret$3, element); } tmp_0.qpj_1 = destination_0; this.rpj_1 = displayLocaleForLangSetting(this, this.hq4()); if (!this.qpj_1.r(this.opj_1)) throw IllegalStateException_init_$Create$('available languages ' + this.npj_1 + ' does not ' + ("include fallback: '" + this.opj_1 + "'")); } protoOf(SupportedLanguagesConfig).gq4 = function (value) { this.mpj_1.gq4(value); this.rpj_1 = displayLocaleForLangSetting(this, value); }; protoOf(SupportedLanguagesConfig).hq4 = function () { return this.mpj_1.hq4(); }; protoOf(SupportedLanguagesConfig).oq4 = function (systemImpl) { var tmp0_elvis_lhs = this.hq4(); 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.pq4(systemImpl).w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.config.SupportedLanguagesConfig.getCurrentLanguage.' call if (element.wq0_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).qq4 = function (useDeviceLangDisplay) { Companion_getInstance_95(); return plus(listOf_0(new UiLanguage('', useDeviceLangDisplay)), this.ppj_1); }; protoOf(SupportedLanguagesConfig).pq4 = function (systemImpl) { return this.qq4(systemImpl.eog(strings_getInstance().zmz_1)); }; protoOf(SupportedLanguagesConfig).rq4 = function (preferredLocales) { // Inline function 'kotlin.collections.map' call var this_0 = this.ppj_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.wq0_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.qpj_1.q(tmp$ret$8)); } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? ensureNotNull(this.qpj_1.q(this.opj_1)) : tmp1_elvis_lhs; }; protoOf(SupportedLanguagesConfig).iq4 = function (preferredLocales, $super) { preferredLocales = preferredLocales === VOID ? this.lpj_1 : preferredLocales; return $super === VOID ? this.rq4(preferredLocales) : $super.rq4.call(this, preferredLocales); }; function Companion_82() { } protoOf(Companion_82).sq4 = function (buildConfig) { var tmp = ensureNotNull(buildConfig.ba('com.ustadmobile.system.systemBaseUrl')); var tmp_0 = ensureNotNull(buildConfig.ba('com.ustadmobile.system.passkeyRpId')); var tmp0_safe_receiver = buildConfig.ba('com.ustadmobile.system.presetLsUrl'); var tmp_1; if (tmp0_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_2; // Inline function 'com.ustadmobile.core.impl.config.Companion.fromUstadBuildConfig.' call // Inline function 'kotlin.text.isNotBlank' call if (!isBlank(tmp0_safe_receiver)) { tmp_2 = tmp0_safe_receiver; } else { tmp_2 = null; } tmp_1 = tmp_2; } var tmp_3 = tmp_1; var tmp1_safe_receiver = buildConfig.ba('com.ustadmobile.system.newPersonalAccountsLsUrl'); var tmp_4; if (tmp1_safe_receiver == null) { tmp_4 = null; } else { // Inline function 'kotlin.takeIf' call // Inline function 'kotlin.contracts.contract' call var tmp_5; // Inline function 'com.ustadmobile.core.impl.config.Companion.fromUstadBuildConfig.' call // Inline function 'kotlin.text.isNotBlank' call if (!isBlank(tmp1_safe_receiver)) { tmp_5 = tmp1_safe_receiver; } else { tmp_5 = null; } tmp_4 = tmp_5; } return new SystemUrlConfig(tmp, tmp_0, tmp_3, tmp_4); }; var Companion_instance_131; function Companion_getInstance_99() { return Companion_instance_131; } function SystemUrlConfig(systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? null : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? null : newPersonalAccountsLearningSpaceUrl; this.uo6_1 = systemBaseUrl; this.vo6_1 = passkeyRpId; this.wo6_1 = presetLearningSpaceUrl; this.xo6_1 = newPersonalAccountsLearningSpaceUrl; this.yo6_1 = this.wo6_1 == null; } protoOf(SystemUrlConfig).tq4 = function (systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) { return new SystemUrlConfig(systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).uq4 = function (systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl, $super) { systemBaseUrl = systemBaseUrl === VOID ? this.uo6_1 : systemBaseUrl; passkeyRpId = passkeyRpId === VOID ? this.vo6_1 : passkeyRpId; presetLearningSpaceUrl = presetLearningSpaceUrl === VOID ? this.wo6_1 : presetLearningSpaceUrl; newPersonalAccountsLearningSpaceUrl = newPersonalAccountsLearningSpaceUrl === VOID ? this.xo6_1 : newPersonalAccountsLearningSpaceUrl; return $super === VOID ? this.tq4(systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl) : $super.tq4.call(this, systemBaseUrl, passkeyRpId, presetLearningSpaceUrl, newPersonalAccountsLearningSpaceUrl); }; protoOf(SystemUrlConfig).toString = function () { return 'SystemUrlConfig(systemBaseUrl=' + this.uo6_1 + ', passkeyRpId=' + this.vo6_1 + ', presetLearningSpaceUrl=' + this.wo6_1 + ', newPersonalAccountsLearningSpaceUrl=' + this.xo6_1 + ')'; }; protoOf(SystemUrlConfig).hashCode = function () { var result = getStringHashCode(this.uo6_1); result = imul(result, 31) + getStringHashCode(this.vo6_1) | 0; result = imul(result, 31) + (this.wo6_1 == null ? 0 : getStringHashCode(this.wo6_1)) | 0; result = imul(result, 31) + (this.xo6_1 == null ? 0 : getStringHashCode(this.xo6_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.uo6_1 === tmp0_other_with_cast.uo6_1)) return false; if (!(this.vo6_1 === tmp0_other_with_cast.vo6_1)) return false; if (!(this.wo6_1 == tmp0_other_with_cast.wo6_1)) return false; if (!(this.xo6_1 == tmp0_other_with_cast.xo6_1)) return false; return true; }; function Companion_83() { this.vq4_1 = 'com.ustadmobile.gopts'; this.wq4_1 = 'com.ustadmobile.showpoweredbymsg'; this.xq4_1 = 'com.ustadmobile.system.systemBaseUrl'; this.yq4_1 = 'com.ustadmobile.system.presetLsUrl'; this.zq4_1 = 'com.ustadmobile.system.passkeyRpId'; this.aq5_1 = 'com.ustadmobile.system.newPersonalAccountsLsUrl'; } var Companion_instance_132; function Companion_getInstance_100() { return Companion_instance_132; } function UstadBuildConfig() { } function commonClientDomainDiModule(learningSpaceScope) { return Module_init_$Create$('CommonDomainClient', VOID, VOID, commonClientDomainDiModule$lambda(learningSpaceScope)); } function commonClientDomainDiModule$lambda$lambda($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new SendClazzInvitesUseCaseSendToServerImpl(tmp_1, tmp_2, tmp$ret$3); } function commonClientDomainDiModule$lambda$lambda_0($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new ConsentRequestToParentUseCaseSendToServerImpl(tmp_1, tmp_2, tmp$ret$3); } 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.o56(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.b56(); // 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.c5b(tmp$ret$5); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_4 = typeToken(createKType(getKClass(SendConsentRequestToParentUseCase), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); var tmp_5 = $this$$receiver.o56(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 = commonClientDomainDiModule$lambda$lambda_0; var tmp_7 = this_1.b56(); // Inline function 'org.kodein.type.generic' call var tmp_8 = typeToken(createKType(getKClass(ConsentRequestToParentUseCaseSendToServerImpl), 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.c5b(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.f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new EnrolIntoCourseUseCase(tmp_1, tmp$ret$3.jjy_1); } function commonDomainDiModule$lambda$lambda_0($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null).jjy_1; // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.f58(); // 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.d58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // 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.d58(tmp$ret$2, null).jjy_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, null).mjy(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new GetLocaleForSiteTermsUseCase(tmp_1, tmp$ret$3.mjy()); } 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.f58(); // 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.d58(tmp$ret$0, null); return new RequestEnrolmentUseCase(tmp$ret$1.mjy()); } 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.f58(); // 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.d58(tmp$ret$0, null); return new CreateNewClazzUseCase(tmp$ret$1.mjy()); } function commonDomainDiModule$lambda$lambda_8($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new ResendInviteUseCase(tmp_1, tmp_2, tmp$ret$3); } function commonDomainDiModule$lambda$lambda_9($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, null).mjy(); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$provider.f58(); // 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.d58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.f58(); // 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.d58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$provider.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, null).mjy(); var tmp_2 = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instanceOrNull' call var tmp_2 = $this$singleton.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(UmAppDatabase), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.e58(tmp$ret$2, 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.f58(); // 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.d58(tmp$ret$0, null); return new GetDefaultDestinationUseCase(tmp$ret$1, $this$singleton.od()); } 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.o56(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.b56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.c56(); var tmp_38 = this_7.b56(); var tmp_39 = this_7.d56(); // 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.c5b(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.o56(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.c56(); var tmp_45 = this_8.b56(); var tmp_46 = this_8.d56(); // 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.c5b(tmp$ret$53); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_48 = typeToken(createKType(getKClass(ResendInviteUseCase), arrayOf([]), false)); var tmp$ret$54 = isInterface(tmp_48, TypeToken) ? tmp_48 : THROW_CCE(); var tmp_49 = $this$$receiver.o56(tmp$ret$54, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = $learningSpaceScope; // 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.b56(); // Inline function 'org.kodein.type.generic' call var tmp_52 = typeToken(createKType(getKClass(ResendInviteUseCase), 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.c5b(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.o56(tmp$ret$60, null, null); // Inline function 'org.kodein.di.singleton' call var creator_9 = commonDomainDiModule$lambda$lambda_9; var tmp_55 = $this$$receiver.c56(); var tmp_56 = $this$$receiver.b56(); var tmp_57 = $this$$receiver.d56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.b56(); // 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.c5b(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.o56(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.c56(); var tmp_73 = this_12.b56(); var tmp_74 = this_12.d56(); // 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.c5b(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.o56(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.c56(); var tmp_80 = this_13.b56(); var tmp_81 = this_13.d56(); // 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.c5b(tmp$ret$87); return Unit_instance; }; } function CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, $this) { CourseTerminologyStrings.call($this, toTerminologyEntries(courseTerminology, json, systemImpl), courseTerminology.p8g_1); return $this; } function CourseTerminologyStrings_init_$Create$(courseTerminology, systemImpl, json) { return CourseTerminologyStrings_init_$Init$(courseTerminology, systemImpl, json, objectCreate(protoOf(CourseTerminologyStrings))); } function Companion_84() { Companion_instance_133 = this; this.bq5_1 = new CourseTerminologyStrings(emptyList()); } var Companion_instance_133; function Companion_getInstance_101() { if (Companion_instance_133 == null) new Companion_84(); return Companion_instance_133; } function CourseTerminologyStrings(terminologyEntries, terminologyKey) { Companion_getInstance_101(); terminologyKey = terminologyKey === VOID ? null : terminologyKey; this.cq5_1 = terminologyEntries; this.dq5_1 = terminologyKey; } protoOf(CourseTerminologyStrings).eq5 = function (messageId) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.cq5_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.impl.locale.CourseTerminologyStrings.get.' call if (element.gq5_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.hq5_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.cq5_1, this.cq5_1); }; protoOf(CourseTerminologyStrings).hashCode = function () { return hashCode(this.cq5_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.eq5(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.fq5_1 = id; this.gq5_1 = stringResource; this.hq5_1 = term; this.iq5_1 = errorMessage; } protoOf(TerminologyEntry).jq5 = function (id, stringResource, term, errorMessage) { return new TerminologyEntry(id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).kq5 = function (id, stringResource, term, errorMessage, $super) { id = id === VOID ? this.fq5_1 : id; stringResource = stringResource === VOID ? this.gq5_1 : stringResource; term = term === VOID ? this.hq5_1 : term; errorMessage = errorMessage === VOID ? this.iq5_1 : errorMessage; return $super === VOID ? this.jq5(id, stringResource, term, errorMessage) : $super.jq5.call(this, id, stringResource, term, errorMessage); }; protoOf(TerminologyEntry).toString = function () { return 'TerminologyEntry(id=' + this.fq5_1 + ', stringResource=' + this.gq5_1 + ', term=' + this.hq5_1 + ', errorMessage=' + this.iq5_1 + ')'; }; protoOf(TerminologyEntry).hashCode = function () { var result = getStringHashCode(this.fq5_1); result = imul(result, 31) + this.gq5_1.hashCode() | 0; result = imul(result, 31) + (this.hq5_1 == null ? 0 : getStringHashCode(this.hq5_1)) | 0; result = imul(result, 31) + (this.iq5_1 == null ? 0 : getStringHashCode(this.iq5_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.fq5_1 === tmp0_other_with_cast.fq5_1)) return false; if (!this.gq5_1.equals(tmp0_other_with_cast.gq5_1)) return false; if (!(this.hq5_1 == tmp0_other_with_cast.hq5_1)) return false; if (!(this.iq5_1 == tmp0_other_with_cast.iq5_1)) return false; return true; }; function ClazzEnrolmentListConstants() { ClazzEnrolmentListConstants_instance = this; var tmp = this; var tmp_0 = to(1000, strings_getInstance().tn0_1); var tmp_1 = to(1001, strings_getInstance().gmu_1); var tmp_2 = to(1003, strings_getInstance().gnb_1); tmp.lq5_1 = mapOf([tmp_0, tmp_1, tmp_2, to(1002, strings_getInstance().dn4_1)]); var tmp_3 = this; var tmp_4 = to(202, strings_getInstance().vmt_1); var tmp_5 = to(201, strings_getInstance().fmt_1); var tmp_6 = to(203, strings_getInstance().gmt_1); tmp_3.mq5_1 = mapOf([tmp_4, tmp_5, tmp_6, to(200, strings_getInstance().umt_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().mmo_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().nmo_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().omo_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().pmo_1; var tmp_7 = new MessageIdOption2(tmp_6, 203); var tmp_8 = strings_getInstance().smo_1; var tmp_9 = new MessageIdOption2(tmp_8, 205); var tmp_10 = strings_getInstance().qmo_1; var tmp_11 = new MessageIdOption2(tmp_10, 206); var tmp_12 = strings_getInstance().rmo_1; tmp.nq5_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().wmh_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().smh_1; var tmp_3 = new MessageIdOption2(tmp_2, 102); var tmp_4 = strings_getInstance().rmh_1; tmp.oq5_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().lnd_1; Companion_getInstance_4(); var tmp_1 = new MessageIdOption2(tmp_0, 102); var tmp_2 = strings_getInstance().lnf_1; Companion_getInstance_4(); tmp.pq5_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().gmo_1; var tmp_1 = new MessageIdOption2(tmp_0, 100); var tmp_2 = strings_getInstance().hmo_1; var tmp_3 = new MessageIdOption2(tmp_2, 101); var tmp_4 = strings_getInstance().imo_1; var tmp_5 = new MessageIdOption2(tmp_4, 102); var tmp_6 = strings_getInstance().jmo_1; var tmp_7 = new MessageIdOption2(tmp_6, 103); var tmp_8 = strings_getInstance().kmo_1; var tmp_9 = new MessageIdOption2(tmp_8, 104); var tmp_10 = strings_getInstance().lmo_1; var tmp_11 = new MessageIdOption2(tmp_10, 105); var tmp_12 = strings_getInstance().smt_1; var tmp_13 = new MessageIdOption2(tmp_12, 106); var tmp_14 = strings_getInstance().tmt_1; tmp.qq5_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().xmp_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().ymp_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().zmp_1; var tmp_5 = new MessageIdOption2(tmp_4, 3); var tmp_6 = strings_getInstance().amq_1; var tmp_7 = new MessageIdOption2(tmp_6, 4); var tmp_8 = strings_getInstance().dmq_1; var tmp_9 = new MessageIdOption2(tmp_8, 5); var tmp_10 = strings_getInstance().bmq_1; var tmp_11 = new MessageIdOption2(tmp_10, 6); var tmp_12 = strings_getInstance().cmq_1; var tmp_13 = new MessageIdOption2(tmp_12, 7); var tmp_14 = strings_getInstance().fmg_1; var tmp_15 = new MessageIdOption2(tmp_14, 8); var tmp_16 = strings_getInstance().emq_1; var tmp_17 = new MessageIdOption2(tmp_16, 9); var tmp_18 = strings_getInstance().gmg_1; tmp.rq5_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().umt_1; var tmp_1 = new MessageIdOption2(tmp_0, 200); var tmp_2 = strings_getInstance().fmt_1; var tmp_3 = new MessageIdOption2(tmp_2, 201); var tmp_4 = strings_getInstance().rmh_1; var tmp_5 = new MessageIdOption2(tmp_4, 202); var tmp_6 = strings_getInstance().gmt_1; tmp.sq5_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().emg_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().dmg_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().fmg_1; tmp.bq4_1 = listOf([tmp_1, tmp_3, new MessageIdOption2(tmp_4, 4)]); var tmp_5 = this; var tmp_6 = strings_getInstance().gmg_1; tmp_5.cq4_1 = plus(listOf_0(new MessageIdOption2(tmp_6, 0)), this.bq4_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().zmq_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().ymq_1; var tmp_3 = new MessageIdOption2(tmp_2, 2); var tmp_4 = strings_getInstance().bn7_1; var tmp_5 = new MessageIdOption2(tmp_4, 4); var tmp_6 = strings_getInstance().fmg_1; tmp.tq5_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().tn0_1; var tmp_1 = new MessageIdOption2(tmp_0, 1000); var tmp_2 = strings_getInstance().gmu_1; tmp.uq5_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.vq5_1 = listOf([new MessageIdOption2(strings_getInstance().ims_1, Companion_instance_29.tkr_1), new MessageIdOption2(strings_getInstance().jms_1, Companion_instance_29.nkr_1), new MessageIdOption2(strings_getInstance().kms_1, Companion_instance_29.okr_1), new MessageIdOption2(strings_getInstance().lms_1, Companion_instance_29.pkr_1), new MessageIdOption2(strings_getInstance().mms_1, Companion_instance_29.qkr_1), new MessageIdOption2(strings_getInstance().nms_1, Companion_instance_29.rkr_1), new MessageIdOption2(strings_getInstance().oms_1, Companion_instance_29.skr_1)]); var tmp = this; // Inline function 'kotlin.collections.map' call var this_0 = this.vq5_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.eq4_1, item.dq4_1); destination.i1(tmp$ret$0); } tmp.wq5_1 = toMap(destination); this.xq5_1 = mapOf([to(Companion_instance_29.ikr_1, strings_getInstance().fms_1), to(Companion_instance_29.jkr_1, strings_getInstance().dms_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().nnf_1; var tmp_1 = new MessageIdOption2(tmp_0, 1); var tmp_2 = strings_getInstance().onf_1; tmp.yq5_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.zq5_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.aq6_1 = asSharedFlow(this.zq5_1); } protoOf(CommandFlowUstadNavController).bq6 = function (viewName, args, goOptions) { this.zq5_1.i1h(new NavigateNavCommand(viewName, args, goOptions)); }; protoOf(CommandFlowUstadNavController).cq6 = function (viewName, inclusive) { this.zq5_1.i1h(new PopNavCommand(viewName, inclusive)); }; function NavCommand(timestamp) { this.dq6_1 = timestamp; } function NavigateNavCommand(viewName, args, goOptions) { NavCommand.call(this, systemTimeInMillis()); this.fq6_1 = viewName; this.gq6_1 = args; this.hq6_1 = goOptions; } protoOf(NavigateNavCommand).toString = function () { return 'NavigateNavCommand(viewName=' + this.fq6_1 + ', args=' + this.gq6_1 + ', goOptions=' + this.hq6_1 + ')'; }; protoOf(NavigateNavCommand).hashCode = function () { var result = getStringHashCode(this.fq6_1); result = imul(result, 31) + hashCode(this.gq6_1) | 0; result = imul(result, 31) + this.hq6_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.fq6_1 === tmp0_other_with_cast.fq6_1)) return false; if (!equals(this.gq6_1, tmp0_other_with_cast.gq6_1)) return false; if (!this.hq6_1.equals(tmp0_other_with_cast.hq6_1)) return false; return true; }; function PopNavCommand(viewName, inclusive) { NavCommand.call(this, systemTimeInMillis()); this.jq6_1 = viewName; this.kq6_1 = inclusive; } protoOf(PopNavCommand).toString = function () { return 'PopNavCommand(viewName=' + this.jq6_1 + ', inclusive=' + this.kq6_1 + ')'; }; protoOf(PopNavCommand).hashCode = function () { var result = getStringHashCode(this.jq6_1); result = imul(result, 31) + getBooleanHashCode(this.kq6_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.jq6_1 === tmp0_other_with_cast.jq6_1)) return false; if (!(this.kq6_1 === tmp0_other_with_cast.kq6_1)) return false; return true; }; function NavResult(key, timestamp, result) { this.lq6_1 = key; this.mq6_1 = timestamp; this.nq6_1 = result; } protoOf(NavResult).toString = function () { return 'NavResult(key=' + this.lq6_1 + ', timestamp=' + this.mq6_1.toString() + ', result=' + toString_0(this.nq6_1) + ')'; }; protoOf(NavResult).hashCode = function () { var result = getStringHashCode(this.lq6_1); result = imul(result, 31) + this.mq6_1.hashCode() | 0; result = imul(result, 31) + (this.nq6_1 == null ? 0 : hashCode(this.nq6_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.lq6_1 === tmp0_other_with_cast.lq6_1)) return false; if (!this.mq6_1.equals(tmp0_other_with_cast.mq6_1)) return false; if (!equals(this.nq6_1, tmp0_other_with_cast.nq6_1)) return false; return true; }; function NavResultDest(viewName, key) { this.oq6_1 = viewName; this.pq6_1 = key; } function NavResultReturner() { } function NavResultReturnerImpl$resultFlowForKey$o$collect$slambda($$this$unsafeFlow, $key, resultContinuation) { this.aq7_1 = $$this$unsafeFlow; this.bq7_1 = $key; CoroutineImpl.call(this, resultContinuation); } protoOf(NavResultReturnerImpl$resultFlowForKey$o$collect$slambda).gq7 = function (value, $completion) { var tmp = this.hq7(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.gq7(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.eq7_1 = this.aq7_1; var tmp_1 = this; tmp_1.fq7_1 = this.cq7_1; if (this.fq7_1.lq6_1 === this.bq7_1) { this.hd_1 = 3; suspendResult = this.eq7_1.t1d(this.fq7_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.dq7_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).hq7 = function (value, completion) { var i = new NavResultReturnerImpl$resultFlowForKey$o$collect$slambda(this.aq7_1, this.bq7_1, completion); i.cq7_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.gq7(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$50(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qq7_1 = _this__u8e3s4; this.rq7_1 = collector; } protoOf($collectCOROUTINE$50).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.sq7_1 = this.rq7_1; this.hd_1 = 1; var tmp_1 = NavResultReturnerImpl$resultFlowForKey$o$collect$slambda_0(this.sq7_1, this.qq7_1.uq7_1, null); suspendResult = this.qq7_1.tq7_1.a1c(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.vq7_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).t1d = function (value, $completion) { return this.vq7_1(value, $completion); }; function _no_name_provided__qut3iv_0($this, $key) { this.tq7_1 = $this; this.uq7_1 = $key; } protoOf(_no_name_provided__qut3iv_0).wq7 = function (collector, $completion) { var tmp = new $collectCOROUTINE$50(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_0).a1c = function (collector, $completion) { return this.wq7(collector, $completion); }; function NavResultReturnerImpl() { this.xq7_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); } protoOf(NavResultReturnerImpl).qq6 = function (key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = this.xq7_1; // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_0(this_0, key); }; protoOf(NavResultReturnerImpl).rq6 = function (result) { this.xq7_1.i1h(result); }; function UstadNavController() { } function BitmaskFlag(flagVal, stringResource, enabled) { enabled = enabled === VOID ? false : enabled; this.yq7_1 = flagVal; this.zq7_1 = stringResource; this.aq8_1 = enabled; } protoOf(BitmaskFlag).bq8 = function (flagVal, stringResource, enabled) { return new BitmaskFlag(flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).cq8 = function (flagVal, stringResource, enabled, $super) { flagVal = flagVal === VOID ? this.yq7_1 : flagVal; stringResource = stringResource === VOID ? this.zq7_1 : stringResource; enabled = enabled === VOID ? this.aq8_1 : enabled; return $super === VOID ? this.bq8(flagVal, stringResource, enabled) : $super.bq8.call(this, flagVal, stringResource, enabled); }; protoOf(BitmaskFlag).toString = function () { return 'BitmaskFlag(flagVal=' + this.yq7_1.toString() + ', stringResource=' + this.zq7_1 + ', enabled=' + this.aq8_1 + ')'; }; protoOf(BitmaskFlag).hashCode = function () { var result = this.yq7_1.hashCode(); result = imul(result, 31) + this.zq7_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.aq8_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.yq7_1.equals(tmp0_other_with_cast.yq7_1)) return false; if (!this.zq7_1.equals(tmp0_other_with_cast.zq7_1)) return false; if (!(this.aq8_1 === tmp0_other_with_cast.aq8_1)) return false; return true; }; function ListPagingSource(list) { PagingSource.call(this); this.eq8_1 = list; } protoOf(ListPagingSource).c5s = function (params, $completion) { var tmp0_elvis_lhs = params.s2(); var startFrom = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; var loadSize = params.h54_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.eq8_1.u(); var b = startFrom + loadSize | 0; var tmp$ret$0 = Math.min(a, b); var subList = this.eq8_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.eq8_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).p54 = function (params, $completion) { return this.c5s(params, $completion); }; function RefreshCommand(time) { time = time === VOID ? systemTimeInMillis() : time; this.fq8_1 = time; } function generateUid(_this__u8e3s4) { return toLong(_this__u8e3s4.ya3_1.hashCode()).rc(32).vc(toLong(_this__u8e3s4.za3_1.hashCode())); } function get_totalAttendeeStatusRecorded(_this__u8e3s4) { return (_this__u8e3s4.ea4_1 + _this__u8e3s4.ga4_1 | 0) + _this__u8e3s4.fa4_1 | 0; } function Activity(id, aType, lang) { lang = lang === VOID ? 'en' : lang; this.zp5_1 = aType; this.ap6_1 = lang; this.cp6_1 = null; this.dp6_1 = null; this.ep6_1 = null; this.fp6_1 = null; this.gp6_1 = new JsonObject(mapOf_0(to('id', JsonPrimitive_0(id)))); this.bp6_1 = id; } protoOf(Activity).gq8 = function (key, value) { // Inline function 'kotlin.collections.isNullOrEmpty' call var this_0 = this.fp6_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.fp6_1 = LinkedHashMap_init_$Create$(); } // Inline function 'kotlin.collections.set' call ensureNotNull(this.fp6_1).s(key, value); }; function Companion_85() { this.up5_1 = 1; } protoOf(Companion_85).hq8 = function (xpp, parseFlags) { var tcxml = new TinCanXML(); var activity = null; var evtType = xpp.l7d(); var storeActivities = (parseFlags & this.up5_1) === this.up5_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.k7d() == null); } else { tmp = false; } if (tmp) { tagName = ensureNotNull(xpp.k7d()); if (!inExtensions) { if (tagName === 'activity') { activity = new Activity(ensureNotNull(xpp.m7d(null, 'id')), ensureNotNull(xpp.m7d(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).ep6_1 = xpp.j7d(); } 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).dp6_1 = xpp.j7d(); } 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).cp6_1 = xpp.j7d(); } else { if (xpp.k7d() === 'extensions') { inExtensions = true; } } } } } } else { if (tagName === 'extension') { extKey = ensureNotNull(xpp.m7d(null, 'key')); var tmp_7; var tmp_8 = xpp.e(); if (tmp_8 === 4) { var tmp0_elvis_lhs = xpp.j7d(); tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; } else { tmp_7 = ''; } extVal = tmp_7; ensureNotNull(activity).gq8(extKey, extVal); } } } else { var tmp_9 = evtType; if (tmp_9 === 3) { if (!(xpp.k7d() == null)) { if (xpp.k7d() === 'activity') { if (!(ensureNotNull(activity).ep6_1 == null)) { tcxml.wp5_1 = activity; if (!storeActivities) { break $l$1; } } } else if (xpp.k7d() === 'extensions') { inExtensions = false; } } } } evtType = xpp.e(); } while (false); var tmp_10 = evtType; } while (!(tmp_10 === 1)); return tcxml; }; protoOf(Companion_85).vp5 = function (xpp, parseFlags, $super) { parseFlags = parseFlags === VOID ? 0 : parseFlags; return $super === VOID ? this.hq8(xpp, parseFlags) : $super.hq8.call(this, xpp, parseFlags); }; var Companion_instance_134; function Companion_getInstance_102() { return Companion_instance_134; } function TinCanXML() { this.wp5_1 = null; this.xp5_1 = false; this.yp5_1 = null; } 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.poc_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.util.entryByUri.' call if (element.toc_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.bod_1; } function requireBodyUrlForUri(_this__u8e3s4, uri) { return requireEntryByUri(_this__u8e3s4, uri).bod_1; } function DiTag() { this.iq8_1 = 13; this.jq8_1 = 81; this.kq8_1 = 1; this.lq8_1 = 0; this.mq8_1 = 32; this.nq8_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.a1a(); 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.wq8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EventCollator2$receiveEvent$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wq8_1.yq8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.wq8_1.cq9_1 = null; this.hd_1 = 2; suspendResult = this.wq8_1.aq9_1(tryReceiveAll(this.wq8_1.bq9_1, this.wq8_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).v1m = function ($this$launch, completion) { var i = new EventCollator2$receiveEvent$slambda(this.wq8_1, completion); i.xq8_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function EventCollator2(maxWaitTime, coroutineScope, capacity, onBufferOverflow, onCollate) { this.yq8_1 = maxWaitTime; this.zq8_1 = coroutineScope; this.aq9_1 = onCollate; this.bq9_1 = Channel(capacity, onBufferOverflow); this.cq9_1 = null; } protoOf(EventCollator2).s6x = function (event) { this.bq9_1.w19(event); if (this.cq9_1 == null) { var tmp = this; tmp.cq9_1 = launch(this.zq8_1, VOID, VOID, EventCollator2$receiveEvent$slambda_0(this, null)); } }; function ExceptionWithStringResource() { } function Companion_86() { Companion_instance_135 = this; this.dq9_1 = -1; this.eq9_1 = new MessageIdOption2(strings_getInstance().gmg_1, this.dq9_1); } var Companion_instance_135; function Companion_getInstance_103() { if (Companion_instance_135 == null) new Companion_86(); return Companion_instance_135; } function MessageIdOption2(stringResource, value) { Companion_getInstance_103(); this.dq4_1 = stringResource; this.eq4_1 = value; } protoOf(MessageIdOption2).toString = function () { return 'MessageIdOption2(stringResource=' + this.dq4_1 + ', value=' + this.eq4_1 + ')'; }; protoOf(MessageIdOption2).hashCode = function () { var result = this.dq4_1.hashCode(); result = imul(result, 31) + this.eq4_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.dq4_1.equals(tmp0_other_with_cast.dq4_1)) return false; if (!(this.eq4_1 === tmp0_other_with_cast.eq4_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.fq9_1 = fieldMessageId; this.gq9_1 = flag; this.hq9_1 = order; } protoOf(SortOrderOption).toString = function () { return 'SortOrderOption(fieldMessageId=' + this.fq9_1 + ', flag=' + this.gq9_1 + ', order=' + this.hq9_1 + ')'; }; protoOf(SortOrderOption).hashCode = function () { var result = this.fq9_1.hashCode(); result = imul(result, 31) + this.gq9_1 | 0; result = imul(result, 31) + (this.hq9_1 == null ? 0 : getBooleanHashCode(this.hq9_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.fq9_1.equals(tmp0_other_with_cast.fq9_1)) return false; if (!(this.gq9_1 === tmp0_other_with_cast.gq9_1)) return false; if (!(this.hq9_1 == tmp0_other_with_cast.hq9_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.ip6_1 = _Char___init__impl__6a9atx(47); this.jp6_1 = 'file:///'; this.kp6_1 = new Long(1073741824, 0); this.lp6_1 = new Long(1048576, 0); this.mp6_1 = new Long(1024, 0); } protoOf(UMFileUtil).wpf = 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).np6 = 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).iq9 = 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.iq9(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_257.jq9(item.s2()), Companion_instance_257.jq9(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_257.kq9(key)).z5(_Char___init__impl__6a9atx(61)); var tmp = Companion_instance_257; var tmp_0 = ht.q(key); sb.y5(tmp.kq9((!(tmp_0 == null) ? typeof tmp_0 === 'string' : false) ? tmp_0 : THROW_CCE())); } return sb.toString(); }; protoOf(UMFileUtil).lq9 = 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).mq9 = 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_87() { this.nq9_1 = '/#/'; } protoOf(Companion_87).oq9 = 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_87).pq9 = function (url, divider, $super) { divider = divider === VOID ? '/#/' : divider; return $super === VOID ? this.oq9(url, divider) : $super.oq9.call(this, url, divider); }; var Companion_instance_136; function Companion_getInstance_104() { return Companion_instance_136; } function UstadUrlComponents$arguments$delegate$lambda(this$0) { return function () { var parsedParams = UMFileUtil_getInstance().iq9(this$0.foj_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_257.jq9(item.s2()), Companion_instance_257.jq9(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.foj_1; if (charSequenceLength(this_0) === 0) { tmp = this$0.eoj_1; } else { tmp = this$0.eoj_1 + '?' + this$0.foj_1; } return tmp; }; } function UstadUrlComponents(learningSpace, viewName, queryString) { this.doj_1 = learningSpace; this.eoj_1 = viewName; this.foj_1 = queryString; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.goj_1 = lazy(tmp_0, UstadUrlComponents$arguments$delegate$lambda(this)); var tmp_1 = this; tmp_1.hoj_1 = lazy_0(UstadUrlComponents$viewUri$delegate$lambda(this)); } protoOf(UstadUrlComponents).qq9 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.hoj_1; viewUri$factory(); return this_0.t2(); }; protoOf(UstadUrlComponents).rq9 = function (divider) { return UMFileUtil_getInstance().wpf([this.doj_1, divider, this.qq9()]); }; protoOf(UstadUrlComponents).ioj = function (divider, $super) { var tmp; if (divider === VOID) { Companion_getInstance_95(); tmp = '/umapp/#/'; } else { tmp = divider; } divider = tmp; return $super === VOID ? this.rq9(divider) : $super.rq9.call(this, divider); }; protoOf(UstadUrlComponents).toString = function () { return 'UstadUrlComponents(learningSpace=' + this.doj_1 + ', viewName=' + this.eoj_1 + ', queryString=' + this.foj_1 + ')'; }; protoOf(UstadUrlComponents).hashCode = function () { var result = getStringHashCode(this.doj_1); result = imul(result, 31) + getStringHashCode(this.eoj_1) | 0; result = imul(result, 31) + getStringHashCode(this.foj_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.doj_1 === tmp0_other_with_cast.doj_1)) return false; if (!(this.eoj_1 === tmp0_other_with_cast.eoj_1)) return false; if (!(this.foj_1 === tmp0_other_with_cast.foj_1)) return false; return true; }; function viewUri$factory() { return getPropertyCallableRef('viewUri', 1, KProperty1, function (receiver) { return receiver.qq9(); }, 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.s45(ListSerializer(Companion_instance_81.n4r()), tmp1_safe_receiver); } return tmp_0; } function paramMap(_this__u8e3s4, json) { var tmp0_safe_receiver = _this__u8e3s4.vbc_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.s45(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.ebw_1 * 100 / (_this__u8e3s4.cbw_1 + _this__u8e3s4.ebw_1); return roundToInt(this_0); } function textLength(_this__u8e3s4, limitType) { var tmp; if (limitType === 1) { var tmp0_safe_receiver = _this__u8e3s4.fc2_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.fc2_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.d7y_1) ? _this__u8e3s4.d7y_1.c7(_this__u8e3s4.b7y_1) > 0 : false) return _this__u8e3s4.d7y_1; else return _this__u8e3s4.b7y_1; } function maxScoreSummedIfModule(_this__u8e3s4, allBlocks) { var tmp = _this__u8e3s4.u7x_1; if (!(tmp === 100)) return _this__u8e3s4.e7y_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.w7x_1.equals(_this__u8e3s4.t7x_1)) { numModBlocks = numModBlocks + 1 | 0; var tmp_0 = totalModPoints; var tmp1_elvis_lhs = element.e7y_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.o8g_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().koe_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.eog(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.hq5_1; var tmp$ret$0 = to(item.fq5_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).f58(); // 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.d58(tmp$ret$0, null).co7(); var trigger = _this__u8e3s4.d57(); // 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.h57(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().jms_1; case 1: return strings_getInstance().kms_1; case 2: return strings_getInstance().lms_1; case 3: return strings_getInstance().mms_1; case 4: return strings_getInstance().nms_1; case 5: return strings_getInstance().oms_1; case 6: return strings_getInstance().ims_1; default: return strings_getInstance().tmd_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.lpb(); 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.eog(tmp1_safe_receiver); } var tmp3_elvis_lhs = tmp; var tmp_0; if (tmp3_elvis_lhs == null) { var tmp_1 = systemImpl.eog(strings_getInstance().cme_1); var tmp2_elvis_lhs = _this__u8e3s4.message; tmp_0 = tmp_1 + ': ' + (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); } else { tmp_0 = tmp3_elvis_lhs; } return tmp_0; } function verifySite(_this__u8e3s4, endpointUrl, timeout, json, $completion) { timeout = timeout === VOID ? new Long(30000, 0) : timeout; var tmp = new $verifySiteCOROUTINE$51(_this__u8e3s4, endpointUrl, timeout, json, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function verifySite$lambda($timeout) { return function ($this$timeout) { $this$timeout.y3s($timeout); return Unit_instance; }; } function $verifySiteCOROUTINE$51(_this__u8e3s4, endpointUrl, timeout, json, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.aqa_1 = _this__u8e3s4; this.bqa_1 = endpointUrl; this.cqa_1 = timeout; this.dqa_1 = json; } protoOf($verifySiteCOROUTINE$51).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.eqa_1 = UMFileUtil_getInstance().wpf([this.bqa_1, 'Site', 'verify']); var tmp_0 = this; tmp_0.fqa_1 = this.aqa_1; var tmp_1 = this; tmp_1.gqa_1 = this.eqa_1; var tmp_2 = this; tmp_2.hqa_1 = this.fqa_1; var tmp_3 = this; tmp_3.iqa_1 = this.hqa_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.gqa_1); header(this_0, 'cache-control', 'no-cache'); timeout(this_0, verifySite$lambda(this.cqa_1)); tmp_4.jqa_1 = this_0; this.jqa_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.kqa_1 = this.iqa_1; var tmp_6 = this; tmp_6.lqa_1 = this.jqa_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.lqa_1, this.kqa_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.mqa_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.mqa_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var responseStr = suspendResult; return this.dqa_1.s45(Companion_instance_31.n4r(), 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.nqa_1; } else { // Inline function 'kotlin.collections.map' call var this_0 = _this__u8e3s4.o2n(); // 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.n2n(item)); destination.i1(tmp$ret$0); } tmp = toMap(destination); } return tmp; } function toLocalMidnight(_this__u8e3s4, timeZoneId) { return toLocalMidnight_0(_this__u8e3s4, Companion_getInstance_9().hmc(timeZoneId)); } function toLocalEndOfDay(_this__u8e3s4, timeZoneId) { return toLocalEndOfDay_0(_this__u8e3s4, Companion_getInstance_9().hmc(timeZoneId)); } function isDateOfBirthAnAdult(_this__u8e3s4) { return ageInYears(_this__u8e3s4) >= UstadMobileConstants_getInstance().oq0_1; } function isDateOfBirthAMinor(_this__u8e3s4) { return ageInYears(_this__u8e3s4) < UstadMobileConstants_getInstance().nq0_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.km9(), Companion_getInstance_9().gmc_1).sm9(); } function hasFlag(_this__u8e3s4, flag) { return (_this__u8e3s4 & flag) === flag; } function decodeStringMapFromString(_this__u8e3s4, string) { return _this__u8e3s4.s45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), string); } function encodeStringMapToString(_this__u8e3s4, stringMap) { return _this__u8e3s4.r45(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.o4p(ListSerializer(serializer), element); } else { if (element instanceof JsonObject) { tmp = listOf_0(_this__u8e3s4.o4p(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.emd(), LocalTime_init_$Create$(0, 0, 0)); } function toLocalEndOfDay_1(_this__u8e3s4) { return LocalDateTime_init_$Create$(_this__u8e3s4.emd(), LocalTime_init_$Create$(23, 59, 59)); } function chopOffSeconds(_this__u8e3s4) { if (_this__u8e3s4.cmd() > 0 ? true : _this__u8e3s4.dmd() > 0) { return LocalDateTime_init_$Create$(_this__u8e3s4.emd(), LocalTime_init_$Create$(_this__u8e3s4.amd(), _this__u8e3s4.bmd())); } else { return _this__u8e3s4; } } function chopOffSeconds_0(_this__u8e3s4) { if (_this__u8e3s4.cmd() > 0 ? true : _this__u8e3s4.dmd() > 0) return LocalTime_init_$Create$(_this__u8e3s4.amd(), _this__u8e3s4.bmd()); 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_257.kq9(item.s2()) + '=' + Companion_instance_257.kq9(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.n1h(); // 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.oqa_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_2).t1d = function (value, $completion) { return this.oqa_1(value, $completion); }; function whenSubscribed$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.xqa_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$o$collect$slambda).i1i = function (value, $completion) { var tmp = this.j1i(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.i1i((!(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.zqa_1 = this.xqa_1; var tmp_1 = this; tmp_1.aqb_1 = this.yqa_1; this.hd_1 = 1; var it = this.aqb_1; suspendResult = this.zqa_1.t1d(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).j1i = function (value, completion) { var i = new whenSubscribed$o$collect$slambda(this.xqa_1, completion); i.yqa_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.i1i(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$52(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.jqb_1 = _this__u8e3s4; this.kqb_1 = collector; } protoOf($collectCOROUTINE$52).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.lqb_1 = this.kqb_1; this.hd_1 = 1; var tmp_1 = whenSubscribed$o$collect$slambda_0(this.lqb_1, null); suspendResult = this.jqb_1.mqb_1.a1c(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.mqb_1 = $this; } protoOf(_no_name_provided__qut3iv_1).nqb = function (collector, $completion) { var tmp = new $collectCOROUTINE$52(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_1).a1c = function (collector, $completion) { return this.nqb(collector, $completion); }; function whenSubscribed$slambda($block, resultContinuation) { this.wqb_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(whenSubscribed$slambda).yqb = function (active, $completion) { var tmp = this.zqb(active, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(whenSubscribed$slambda).he = function (p1, $completion) { return this.yqb((!(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.xqb_1) { this.hd_1 = 1; suspendResult = this.wqb_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).zqb = function (active, completion) { var i = new whenSubscribed$slambda(this.wqb_1, completion); i.xqb_1 = active; return i; }; function whenSubscribed$slambda_0($block, resultContinuation) { var i = new whenSubscribed$slambda($block, resultContinuation); var l = function (active, $completion) { return i.yqb(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_94().rq0_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_136.pq9(link); learningSpaceUrl._v = urlComponents.doj_1; viewUri._v = urlComponents.qq9(); } 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.km9(), UstadMobileConstants_getInstance().oq0_1, Companion_getInstance_10().vma_1, Companion_getInstance_9().gmc_1).qmc(); } 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.co7().nnp_1) : false) { openExternalLinkUseCase.dpg(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.bq6(viewName, args, goOptions); } function sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1(function_0) { this.aqc_1 = function_0; } protoOf(sam$com_ustadmobile_core_account_UstadAccountManager_EndpointFilter$0_1).anx = function (endpointUrl) { return this.aqc_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.jqc_1 = $accountName; this.kqc_1 = $learningSpaceUrl; this.lqc_1 = $accountManager; this.mqc_1 = $dontSetCurrentSession; this.nqc_1 = $this_navigateToLink; this.oqc_1 = $viewUri; this.pqc_1 = $goOptions; this.qqc_1 = $forceAccountSelection; this.rqc_1 = $maxDateOfBirth; this.sqc_1 = $checkRegistrationAllowedUseCase; CoroutineImpl.call(this, resultContinuation); } protoOf(navigateToLink$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(navigateToLink$slambda).he = function (p1, $completion) { return this.u1m((!(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.jqc_1 == null) ? !(this.kqc_1._v == null) : false) { this.hd_1 = 9; continue $sm; } else { if ((!this.qqc_1 ? !isTemporary(this.lqc_1.go6().snq_1) : false) ? this.kqc_1._v == null ? true : this.lqc_1.co7().nnp_1 === this.kqc_1._v : false) { navigateToViewUri(this.nqc_1, this.oqc_1._v, this.pqc_1); this.hd_1 = 15; continue $sm; } else { if (!(this.kqc_1._v == null)) { this.hd_1 = 1; var tmp_0 = navigateToLink$slambda$lambda_0(this.kqc_1); suspendResult = this.lqc_1.do7(this.rqc_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.wqc_1 = false; this.hd_1 = 2; continue $sm; } } } case 1: this.xqc_1 = suspendResult; this.wqc_1 = this.xqc_1 === 0; this.hd_1 = 2; continue $sm; case 2: if (this.wqc_1) { this.vqc_1 = true; this.hd_1 = 5; continue $sm; } else { if (this.kqc_1._v == null) { this.hd_1 = 3; suspendResult = this.lqc_1.eo7(this.rqc_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.yqc_1 = false; this.hd_1 = 4; continue $sm; } } case 3: this.zqc_1 = suspendResult; this.yqc_1 = this.zqc_1 === 0; this.hd_1 = 4; continue $sm; case 4: this.vqc_1 = this.yqc_1; this.hd_1 = 5; continue $sm; case 5: if (this.vqc_1) { var tmp_1 = this; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_114(); this_0.s('next', this.oqc_1._v); Companion_getInstance_123(); this_0.s('noSessionChange', this.mqc_1.toString()); var tmp0_safe_receiver = this.kqc_1._v; if (tmp0_safe_receiver == null) null; else { Companion_getInstance_114(); this_0.s('learningSpaceUrl', tmp0_safe_receiver); } tmp_1.aqd_1 = this_0.f3(); this.bqd_1 = this.kqc_1._v; if (this.bqd_1 == null) { this.cqd_1 = null; this.hd_1 = 8; continue $sm; } else { var tmp_2 = this; tmp_2.dqd_1 = this.bqd_1; var tmp_3 = this; tmp_3.eqd_1 = this.dqd_1; var tmp_4 = this; var tmp0_safe_receiver_0 = this.sqc_1; tmp_4.fqd_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0(new LearningSpace(this.eqd_1)); if (this.fqd_1 == null) { this.gqd_1 = null; this.hd_1 = 7; continue $sm; } else { this.hd_1 = 6; suspendResult = this.fqd_1.bof(this.oqc_1._v, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } else { var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_114(); this_1.s('next', this.oqc_1._v); Companion_getInstance_123(); this_1.s('noSessionChange', this.mqc_1.toString()); var tmp0_safe_receiver_1 = this.kqc_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_114(); this_1.s('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_114(); this_1.s('maxDob', this.rqc_1.toString()); var args = this_1.f3(); this.nqc_1.bq6('AccountList', toMap_0(args), this.pqc_1); this.hd_1 = 15; continue $sm; } case 6: this.gqd_1 = suspendResult; this.hd_1 = 7; continue $sm; case 7: this.cqd_1 = this.gqd_1; this.hd_1 = 8; continue $sm; case 8: this.hqd_1 = this.cqd_1; var tmp_5; if (this.hqd_1 === false) { tmp_5 = 'Login'; } else { tmp_5 = 'AddAccountSelectNewOrExisting'; } this.nqc_1.fp3(tmp_5, this.aqd_1); this.hd_1 = 15; continue $sm; case 9: this.hd_1 = 10; var tmp_6 = navigateToLink$slambda$lambda(this.kqc_1); suspendResult = this.lqc_1.ho6(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.tnq_1.g96_1 === substringBefore_0(this.jqc_1, '@')) { this.uqc_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.uqc_1 = null; if (false) { this.hd_1 = 9; continue $sm; } this.hd_1 = 14; continue $sm; case 14: var session = this.uqc_1; if (!(session == null)) { var this_2 = this.lqc_1; var tmp_7; if (!this.mqc_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.unt(session); } navigateToViewUri(this.nqc_1, this.oqc_1._v, this.pqc_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).v1m = function ($this$launch, completion) { var i = new navigateToLink$slambda(this.jqc_1, this.kqc_1, this.lqc_1, this.mqc_1, this.nqc_1, this.oqc_1, this.pqc_1, this.qqc_1, this.rqc_1, this.sqc_1, completion); i.tqc_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function isGuestUser(_this__u8e3s4) { return _this__u8e3s4.g96_1 == null; } function toUmAccount(_this__u8e3s4, endpointUrl) { return new UmAccount(_this__u8e3s4.f96_1, _this__u8e3s4.g96_1, '', endpointUrl, _this__u8e3s4.h96_1, _this__u8e3s4.i96_1); } function personFullName(_this__u8e3s4) { var tmp0_elvis_lhs = _this__u8e3s4.h96_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.i96_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.g96_1; var tmp1_name = tmp0_elvis_lhs == null ? _this__u8e3s4.f96_1.toString() : tmp0_elvis_lhs; var tmp2_homePage = learningSpace.nnp_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_123(); var tmp = to('selectedAccountPersonUid', personUid.toString()); Companion_getInstance_123(); return appendQueryArgs(_this__u8e3s4, mapOf([tmp, to('selectedAccountEndpointUrl', learningSpace.nnp_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.km9() : instant; return gmtOffsetString(offsetAt(_this__u8e3s4, instant)) + ' ' + _this__u8e3s4.kmc(); } function get_progressAsFloat(_this__u8e3s4) { var tmp = _this__u8e3s4.scb_1.zc(); // Inline function 'kotlin.takeIf' call var this_0 = _this__u8e3s4.rcb_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$53(_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$54(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function ScopedGrantResult(sgUid) { this.mqe_1 = sgUid; } protoOf(ScopedGrantResult).toString = function () { return 'ScopedGrantResult(sgUid=' + this.mqe_1.toString() + ')'; }; protoOf(ScopedGrantResult).hashCode = function () { return this.mqe_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.mqe_1.equals(tmp0_other_with_cast.mqe_1)) return false; return true; }; function grantScopedPermission(_this__u8e3s4, toPerson, permissions, scopeTableId, scopeEntityUid, $completion) { return grantScopedPermission_0(_this__u8e3s4, toPerson.r96_1, permissions, scopeTableId, scopeEntityUid, $completion); } function grantScopedPermission_0(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion) { var tmp = new $grantScopedPermissionCOROUTINE$55(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function localFirstThenRepoIfNull(_this__u8e3s4, block, $completion) { var tmp = new $localFirstThenRepoIfNullCOROUTINE$56(_this__u8e3s4, block, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $insertPersonAndGroupCOROUTINE$53(_this__u8e3s4, entity, groupFlag, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qqd_1 = _this__u8e3s4; this.rqd_1 = entity; this.sqd_1 = groupFlag; } protoOf($insertPersonAndGroupCOROUTINE$53).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.ig8_1 = 'Person individual group'; this_0.kg8_1 = this.sqd_1; tmp_0.tqd_1 = this_0; this.hd_1 = 1; suspendResult = this.qqd_1.d7e().insertAsync(this.tqd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uqd_1 = suspendResult; this.tqd_1.dg8_1 = this.uqd_1; this.rqd_1.r96_1 = this.tqd_1.dg8_1; this.hd_1 = 2; suspendResult = this.qqd_1.n7d().insertAsync(this.rqd_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.vqd_1 = suspendResult; this.rqd_1.f96_1 = this.vqd_1; this.hd_1 = 3; suspendResult = this.qqd_1.e7e().insertAsync(PersonGroupMember_init_$Create$(this.rqd_1.f96_1, this.rqd_1.r96_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.qqd_1, this.rqd_1, tmp_1, 9, this.rqd_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: return this.rqd_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$54(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.eqe_1 = _this__u8e3s4; this.fqe_1 = block; } protoOf($localFirstThenRepoIfFalseCOROUTINE$54).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.eqe_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x5i(); tmp_0.gqe_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.hqe_1 = this.gqe_1; if (this.hqe_1 == null) { this.iqe_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.jqe_1 = this.hqe_1; var tmp_4 = this; tmp_4.kqe_1 = this.jqe_1; this.hd_1 = 1; suspendResult = this.fqe_1(this.kqe_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.iqe_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.lqe_1 = this.iqe_1; if (this.lqe_1 === true) return this.lqe_1; this.hd_1 = 3; suspendResult = this.fqe_1(this.eqe_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$55(_this__u8e3s4, toGroupUid, permissions, scopeTableId, scopeEntityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vqe_1 = _this__u8e3s4; this.wqe_1 = toGroupUid; this.xqe_1 = permissions; this.yqe_1 = scopeTableId; this.zqe_1 = scopeEntityUid; } protoOf($grantScopedPermissionCOROUTINE$55).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.vqe_1.y7e(); var this_0 = new ScopedGrant(); this_0.jhh_1 = this.wqe_1; this_0.ihh_1 = this.xqe_1; this_0.ghh_1 = this.yqe_1; this_0.hhh_1 = this.zqe_1; suspendResult = tmp_0.mhg(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$56(_this__u8e3s4, block, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.iqf_1 = _this__u8e3s4; this.jqf_1 = block; } protoOf($localFirstThenRepoIfNullCOROUTINE$56).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.iqf_1; var tmp0_safe_receiver = isInterface(tmp_1, DoorDatabaseRepository) ? tmp_1 : null; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x5i(); tmp_0.kqf_1 = tmp_2 instanceof UmAppDatabase ? tmp_2 : null; this.lqf_1 = this.kqf_1; if (this.lqf_1 == null) { this.mqf_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_3 = this; tmp_3.nqf_1 = this.lqf_1; var tmp_4 = this; tmp_4.oqf_1 = this.nqf_1; this.hd_1 = 1; suspendResult = this.jqf_1(this.oqf_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.mqf_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.pqf_1 = this.mqf_1; if (!(this.pqf_1 == null)) return this.pqf_1; this.hd_1 = 3; suspendResult = this.jqf_1(this.iqf_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.wif_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.uif_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.tif_1; var tmp_0 = tmp & 8; return tmp_0 === 8; } function setIfNoValueSetYet(_this__u8e3s4, key, value) { if (_this__u8e3s4.ba(key) == null) { _this__u8e3s4.qqf(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.omd() / 3600 | 0; // Inline function 'kotlin.mod' call var r = _this__u8e3s4.omd() % 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.ejh_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjf_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.djh_1.kjf_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.bl1(); while (!((_this__u8e3s4.e().equals(EventType_END_ELEMENT_getInstance()) ? _this__u8e3s4.bl1() === (initDepth - 1 | 0) : false) ? _this__u8e3s4.dc().equals(initTagName) : false)) { switch (_this__u8e3s4.gl1().za_1) { case 1: if (_this__u8e3s4.dc().xl4() === 'img') { var tmp1_elvis_lhs = _this__u8e3s4.m7d(null, 'alt'); var textVal = tmp1_elvis_lhs == null ? _this__u8e3s4.m7d(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.el1())); break; default: break; } } return this_0.toString(); } function emptyStringValues() { return new MapStringValues(emptyMap()); } function Companion_88() { } protoOf(Companion_88).b4e = function () { return new MapStringValues(emptyMap()); }; protoOf(Companion_88).n4r = function () { return new StringValuesSerializer(); }; protoOf(Companion_88).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_137; function Companion_getInstance_105() { return Companion_instance_137; } function IStringValues() { } function MapStringValues(map) { this.nqa_1 = map; } protoOf(MapStringValues).n2n = function (key) { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.nqa_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).o2n = function () { return this.nqa_1.o2(); }; function asIStringValues(_this__u8e3s4) { return new MapStringValues(_this__u8e3s4); } function StringValuesSerializer() { this.rqf_1 = MapSerializer(serializer_0(StringCompanionObject_instance), ListSerializer(serializer_0(StringCompanionObject_instance))); this.sqf_1 = SerialDescriptor('StringValuesSerializer', this.rqf_1.q44()); } protoOf(StringValuesSerializer).q44 = function () { return this.sqf_1; }; protoOf(StringValuesSerializer).s44 = function (decoder) { var stringMap = decoder.h48(this.rqf_1); return new MapStringValues(stringMap); }; protoOf(StringValuesSerializer).tqf = function (encoder, value) { encoder.z49(this.rqf_1, toMap_1(value)); }; protoOf(StringValuesSerializer).r44 = function (encoder, value) { return this.tqf(encoder, (!(value == null) ? isInterface(value, IStringValues) : false) ? value : THROW_CCE()); }; function Companion_89() { this.uqf_1 = 'errCode'; this.vqf_1 = 'msg'; this.wqf_1 = 'stacktraceKey'; this.xqf_1 = 'fromUri'; this.yqf_1 = 'ErrorReport'; } var Companion_instance_138; function Companion_getInstance_106() { return Companion_instance_138; } function Companion_90() { this.zqf_1 = 'HolidayCalendarDetail'; } var Companion_instance_139; function Companion_getInstance_107() { return Companion_instance_139; } function Companion_91() { this.aqg_1 = 'InviteViaLink'; } var Companion_instance_140; function Companion_getInstance_108() { return Companion_instance_140; } function Companion_92() { this.bqg_1 = 'LanguageDetailView'; } var Companion_instance_141; function Companion_getInstance_109() { return Companion_instance_141; } function Companion_93() { this.cqg_1 = 'LanguageEditEditView'; } var Companion_instance_142; function Companion_getInstance_110() { return Companion_instance_142; } function Companion_94() { this.dqg_1 = 'ScopedGrantDetail'; } var Companion_instance_143; function Companion_getInstance_111() { return Companion_instance_143; } function Companion_95() { this.eqg_1 = 'SiteTermsDetailView'; this.fqg_1 = 'SiteTermsDetailAcceptTerms'; this.gqg_1 = 'useDisplayLocale'; this.hqg_1 = 'showAccept'; } var Companion_instance_144; function Companion_getInstance_112() { return Companion_instance_144; } function Companion_96() { Companion_instance_145 = this; this.iqg_1 = 'entity'; this.jqg_1 = new Long(200, 0); } var Companion_instance_145; function Companion_getInstance_113() { if (Companion_instance_145 == null) new Companion_96(); return Companion_instance_145; } 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.mqg_1 = mode; } function ListViewMode_BROWSER_getInstance() { ListViewMode_initEntries(); return ListViewMode_BROWSER_instance; } function ListViewMode_PICKER_getInstance() { ListViewMode_initEntries(); return ListViewMode_PICKER_instance; } function Companion_97() { Companion_instance_146 = this; this.nqg_1 = 'entityUid'; this.oqg_1 = 'containerUid'; this.pqg_1 = 'parentUid'; this.qqg_1 = 'parentTitle'; this.rqg_1 = 'entryid'; this.sqg_1 = 'statementVerUid'; this.tqg_1 = 'contextRegistrationIdHi'; this.uqg_1 = 'contextRegistrationIdLo'; this.vqg_1 = 'learnerGroupUid'; this.wqg_1 = 'noiframe'; this.xqg_1 = 'schoolUid'; this.yqg_1 = 'content_type'; this.zqg_1 = 'filterBySchoolUid'; this.aqh_1 = 'filterByRole'; this.bqh_1 = 'listMode'; this.cqh_1 = 'getResultMode'; this.dqh_1 = 'listAddMode'; this.eqh_1 = 'filterByPermission'; this.fqh_1 = 'clazzUid'; this.gqh_1 = 'filterByPersonGroupUid'; this.hqh_1 = 'filterByEnrolmentRole'; this.iqh_1 = 'clazzAssignmentUid'; this.jqh_1 = 'clazzAssignmentSubmitterUid'; this.kqh_1 = 'personUid'; this.lqh_1 = 'next'; this.mqh_1 = 'site'; this.nqh_1 = 'learningSpaceUrl'; this.oqh_1 = 'openLink'; this.pqh_1 = 'account'; this.qqh_1 = 'accountEndpoint'; this.rqh_1 = 'snack_message'; this.sqh_1 = 'argCode'; this.tqh_1 = 'argCodeTable'; this.uqh_1 = 'argEntityName'; this.vqh_1 = ''; this.wqh_1 = 'root'; this.xqh_1 = 'current'; this.yqh_1 = 'goToComplete'; this.zqh_1 = 'saveDb'; this.aqi_1 = 'popUpToOnFinish'; this.bqi_1 = 'result_dest'; this.cqi_1 = 'result_viewname'; this.dqi_1 = 'registration_allowed'; this.eqi_1 = 'result_key'; this.fqi_1 = 'intMsg'; this.gqi_1 = 'title'; this.hqi_1 = 'navChild'; this.iqi_1 = 'activeTabIndex'; this.jqi_1 = 'maxDob'; this.kqi_1 = new Long(1, -955361223); } var Companion_instance_146; function Companion_getInstance_114() { if (Companion_instance_146 == null) new Companion_97(); return Companion_instance_146; } function DetailViewModel(di, savedStateHandle, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); var tmp = this; Companion_getInstance_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.gqj_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.fql_1 = errorReport; this.gql_1 = fieldsEnabled; } protoOf(ErrorReportUiState).toString = function () { return 'ErrorReportUiState(errorReport=' + this.fql_1 + ', fieldsEnabled=' + this.gql_1 + ')'; }; protoOf(ErrorReportUiState).hashCode = function () { var result = this.fql_1 == null ? 0 : hashCode(this.fql_1); result = imul(result, 31) + getBooleanHashCode(this.gql_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.fql_1, tmp0_other_with_cast.fql_1)) return false; if (!(this.gql_1 === tmp0_other_with_cast.gql_1)) return false; return true; }; function HolidayCalendarDetailUIState(holidayCalendar, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; holidayList = holidayList === VOID ? emptyList() : holidayList; this.hql_1 = holidayCalendar; this.iql_1 = holidayList; } protoOf(HolidayCalendarDetailUIState).toString = function () { return 'HolidayCalendarDetailUIState(holidayCalendar=' + this.hql_1 + ', holidayList=' + this.iql_1 + ')'; }; protoOf(HolidayCalendarDetailUIState).hashCode = function () { var result = this.hql_1 == null ? 0 : hashCode(this.hql_1); result = imul(result, 31) + hashCode(this.iql_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.hql_1, tmp0_other_with_cast.hql_1)) return false; if (!equals(this.iql_1, tmp0_other_with_cast.iql_1)) return false; return true; }; function Companion_98() { this.jql_1 = 'HolidayCalendarEdit'; } var Companion_instance_147; function Companion_getInstance_115() { return Companion_instance_147; } function HolidayCalendarEditUiState(holidayCalendar, fieldsEnabled, holidayList) { holidayCalendar = holidayCalendar === VOID ? null : holidayCalendar; fieldsEnabled = fieldsEnabled === VOID ? true : fieldsEnabled; holidayList = holidayList === VOID ? emptyList() : holidayList; this.kql_1 = holidayCalendar; this.lql_1 = fieldsEnabled; this.mql_1 = holidayList; } protoOf(HolidayCalendarEditUiState).toString = function () { return 'HolidayCalendarEditUiState(holidayCalendar=' + this.kql_1 + ', fieldsEnabled=' + this.lql_1 + ', holidayList=' + this.mql_1 + ')'; }; protoOf(HolidayCalendarEditUiState).hashCode = function () { var result = this.kql_1 == null ? 0 : hashCode(this.kql_1); result = imul(result, 31) + getBooleanHashCode(this.lql_1) | 0; result = imul(result, 31) + (this.mql_1 == null ? 0 : hashCode(this.mql_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.kql_1, tmp0_other_with_cast.kql_1)) return false; if (!(this.lql_1 === tmp0_other_with_cast.lql_1)) return false; if (!equals(this.mql_1, tmp0_other_with_cast.mql_1)) return false; return true; }; function Companion_99() { this.nql_1 = 'HolidayCalendarList'; } var Companion_instance_148; function Companion_getInstance_116() { return Companion_instance_148; } function HolidayCalendarListUiState(holidayCalendarList) { var tmp; if (holidayCalendarList === VOID) { // Inline function 'kotlin.collections.listOf' call tmp = emptyList(); } else { tmp = holidayCalendarList; } holidayCalendarList = tmp; this.oql_1 = holidayCalendarList; } protoOf(HolidayCalendarListUiState).toString = function () { return 'HolidayCalendarListUiState(holidayCalendarList=' + this.oql_1 + ')'; }; protoOf(HolidayCalendarListUiState).hashCode = function () { return hashCode(this.oql_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.oql_1, tmp0_other_with_cast.oql_1)) return false; return true; }; function LanguageDetailUiState(language) { language = language === VOID ? null : language; this.pql_1 = language; } protoOf(LanguageDetailUiState).toString = function () { return 'LanguageDetailUiState(language=' + this.pql_1 + ')'; }; protoOf(LanguageDetailUiState).hashCode = function () { return this.pql_1 == null ? 0 : this.pql_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.pql_1, tmp0_other_with_cast.pql_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.qql_1 = language; this.rql_1 = fieldsEnabled; this.sql_1 = languageNameError; this.tql_1 = twoLettersCodeError; this.uql_1 = threeLettersCodeError; } protoOf(LanguageEditUiState).toString = function () { return 'LanguageEditUiState(language=' + this.qql_1 + ', fieldsEnabled=' + this.rql_1 + ', languageNameError=' + this.sql_1 + ', twoLettersCodeError=' + this.tql_1 + ', threeLettersCodeError=' + this.uql_1 + ')'; }; protoOf(LanguageEditUiState).hashCode = function () { var result = this.qql_1 == null ? 0 : this.qql_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.rql_1) | 0; result = imul(result, 31) + (this.sql_1 == null ? 0 : getStringHashCode(this.sql_1)) | 0; result = imul(result, 31) + (this.tql_1 == null ? 0 : getStringHashCode(this.tql_1)) | 0; result = imul(result, 31) + (this.uql_1 == null ? 0 : getStringHashCode(this.uql_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.qql_1, tmp0_other_with_cast.qql_1)) return false; if (!(this.rql_1 === tmp0_other_with_cast.rql_1)) return false; if (!(this.sql_1 == tmp0_other_with_cast.sql_1)) return false; if (!(this.tql_1 == tmp0_other_with_cast.tql_1)) return false; if (!(this.uql_1 == tmp0_other_with_cast.uql_1)) return false; return true; }; function Companion_100() { this.vql_1 = 'LanguageList'; } var Companion_instance_149; function Companion_getInstance_117() { return Companion_instance_149; } function LanguageListUiState(languageList, sortOptions, sortOrder) { languageList = languageList === VOID ? emptyList() : languageList; var tmp; if (sortOptions === VOID) { var tmp_0 = strings_getInstance().bmg_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().bmg_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().omg_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().omg_1; var tmp_7 = new SortOrderOption(tmp_6, 4, false); var tmp_8 = strings_getInstance().pmg_1; var tmp_9 = new SortOrderOption(tmp_8, 5, true); var tmp_10 = strings_getInstance().pmg_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.wql_1 = languageList; this.xql_1 = sortOptions; this.yql_1 = sortOrder; } protoOf(LanguageListUiState).toString = function () { return 'LanguageListUiState(languageList=' + this.wql_1 + ', sortOptions=' + this.xql_1 + ', sortOrder=' + this.yql_1 + ')'; }; protoOf(LanguageListUiState).hashCode = function () { var result = hashCode(this.wql_1); result = imul(result, 31) + hashCode(this.xql_1) | 0; result = imul(result, 31) + this.yql_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.wql_1, tmp0_other_with_cast.wql_1)) return false; if (!equals(this.xql_1, tmp0_other_with_cast.xql_1)) return false; if (!this.yql_1.equals(tmp0_other_with_cast.yql_1)) return false; return true; }; function LeavingReasonEditViewModel$slambda$slambda($savedStateHandle, resultContinuation) { this.hqm_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda).jqm = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.jqm(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.iqm_1.u7d(); Companion_getInstance_114(); var tmp0_safe_receiver = this.hqm_1.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.ofh(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).env = function (it, completion) { var i = new LeavingReasonEditViewModel$slambda$slambda(this.hqm_1, completion); i.iqm_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.jqm(it, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda$slambda_1).sqm = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.sqm($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.u94_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).l78 = 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.sqm($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.qqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel...' call var nextValue = prevValue.vqn(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_101() { this.wqn_1 = 'LeavingReasonEdit'; } var Companion_instance_150; function Companion_getInstance_118() { return Companion_instance_150; } function LeavingReasonEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.fqo_1 = this$0; this.gqo_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LeavingReasonEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.iqo_1 = Companion_getInstance_11().n4r(); this.hd_1 = 1; var tmp_0 = LeavingReasonEditViewModel$slambda$slambda_0(this.gqo_1, null); var tmp_1 = LeavingReasonEditViewModel$slambda$slambda_2(null); suspendResult = this.fqo_1.wqk(this.iqo_1, VOID, VOID, tmp_0, tmp_1, LeavingReasonEditViewModel$slambda$lambda(this.fqo_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.fqo_1.qqn_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vqn(VOID, VOID, true); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new LeavingReasonEditViewModel$slambda(this.fqo_1, this.gqo_1, completion); i.hqo_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.rqo_1 = $commitDelay; this.sqo_1 = $entity; this.tqo_1 = $this; this.uqo_1 = $key; this.vqo_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.rqo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.sqo_1 == null)) { this.hd_1 = 2; suspendResult = this.tqo_1.sqk(this.tqo_1.mqj_1, this.uqo_1, this.vqo_1, this.sqo_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).v1m = function ($this$launch, completion) { var i = new LeavingReasonEditViewModel$onEntityChanged$slambda(this.rqo_1, this.sqo_1, this.tqo_1, this.uqo_1, this.vqo_1, completion); i.wqo_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function LeavingReasonEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'LeavingReasonEdit'); this.qqn_1 = MutableStateFlow(new LeavingReasonEditUiState(VOID, VOID, false)); this.rqn_1 = asStateFlow(this.qqn_1); var tmp = this.dqk(); launch(tmp, VOID, VOID, LeavingReasonEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(LeavingReasonEditViewModel).xqo = function (leavingReason) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.LeavingReasonEditViewModel.onEntityChanged.' call var nextValue = prevValue.vqn(leavingReason); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_11().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver = this.tqp_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.dqk(); tmp.tqp_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.sqn_1 = leavingReason; this.tqn_1 = reasonTitleError; this.uqn_1 = fieldsEnabled; } protoOf(LeavingReasonEditUiState).yqp = function (leavingReason, reasonTitleError, fieldsEnabled) { return new LeavingReasonEditUiState(leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).vqn = function (leavingReason, reasonTitleError, fieldsEnabled, $super) { leavingReason = leavingReason === VOID ? this.sqn_1 : leavingReason; reasonTitleError = reasonTitleError === VOID ? this.tqn_1 : reasonTitleError; fieldsEnabled = fieldsEnabled === VOID ? this.uqn_1 : fieldsEnabled; return $super === VOID ? this.yqp(leavingReason, reasonTitleError, fieldsEnabled) : $super.yqp.call(this, leavingReason, reasonTitleError, fieldsEnabled); }; protoOf(LeavingReasonEditUiState).toString = function () { return 'LeavingReasonEditUiState(leavingReason=' + this.sqn_1 + ', reasonTitleError=' + this.tqn_1 + ', fieldsEnabled=' + this.uqn_1 + ')'; }; protoOf(LeavingReasonEditUiState).hashCode = function () { var result = this.sqn_1 == null ? 0 : hashCode(this.sqn_1); result = imul(result, 31) + (this.tqn_1 == null ? 0 : getStringHashCode(this.tqn_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.uqn_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.sqn_1, tmp0_other_with_cast.sqn_1)) return false; if (!(this.tqn_1 == tmp0_other_with_cast.tqn_1)) return false; if (!(this.uqn_1 === tmp0_other_with_cast.uqn_1)) return false; return true; }; function Companion_102() { this.zqp_1 = 'ReportFilterEdit'; } var Companion_instance_151; function Companion_getInstance_119() { return Companion_instance_151; } 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.aqq_1 = fieldError; this.bqq_1 = conditionsError; this.cqq_1 = valuesError; this.dqq_1 = fieldsEnabled; this.eqq_1 = reportFilter; this.fqq_1 = uidAndLabelList; this.gqq_1 = createNewFilter; this.hqq_1 = reportFilterValueVisible; this.iqq_1 = reportFilterBetweenValueVisible; this.jqq_1 = reportFilterUidAndLabelListVisible; } protoOf(ReportFilterEditUiState).toString = function () { return 'ReportFilterEditUiState(fieldError=' + this.aqq_1 + ', conditionsError=' + this.bqq_1 + ', valuesError=' + this.cqq_1 + ', fieldsEnabled=' + this.dqq_1 + ', reportFilter=' + this.eqq_1 + ', uidAndLabelList=' + this.fqq_1 + ', createNewFilter=' + this.gqq_1 + ', reportFilterValueVisible=' + this.hqq_1 + ', reportFilterBetweenValueVisible=' + this.iqq_1 + ', reportFilterUidAndLabelListVisible=' + this.jqq_1 + ')'; }; protoOf(ReportFilterEditUiState).hashCode = function () { var result = this.aqq_1 == null ? 0 : getStringHashCode(this.aqq_1); result = imul(result, 31) + (this.bqq_1 == null ? 0 : getStringHashCode(this.bqq_1)) | 0; result = imul(result, 31) + (this.cqq_1 == null ? 0 : getStringHashCode(this.cqq_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.dqq_1) | 0; result = imul(result, 31) + (this.eqq_1 == null ? 0 : this.eqq_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.fqq_1) | 0; result = imul(result, 31) + getStringHashCode(this.gqq_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hqq_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iqq_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jqq_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.aqq_1 == tmp0_other_with_cast.aqq_1)) return false; if (!(this.bqq_1 == tmp0_other_with_cast.bqq_1)) return false; if (!(this.cqq_1 == tmp0_other_with_cast.cqq_1)) return false; if (!(this.dqq_1 === tmp0_other_with_cast.dqq_1)) return false; if (!equals(this.eqq_1, tmp0_other_with_cast.eqq_1)) return false; if (!equals(this.fqq_1, tmp0_other_with_cast.fqq_1)) return false; if (!(this.gqq_1 === tmp0_other_with_cast.gqq_1)) return false; if (!(this.hqq_1 === tmp0_other_with_cast.hqq_1)) return false; if (!(this.iqq_1 === tmp0_other_with_cast.iqq_1)) return false; if (!(this.jqq_1 === tmp0_other_with_cast.jqq_1)) return false; return true; }; function ScopedGrantDetailUiState(entity, bitmaskList) { entity = entity === VOID ? null : entity; bitmaskList = bitmaskList === VOID ? emptyList() : bitmaskList; this.kqq_1 = entity; this.lqq_1 = bitmaskList; } protoOf(ScopedGrantDetailUiState).toString = function () { return 'ScopedGrantDetailUiState(entity=' + this.kqq_1 + ', bitmaskList=' + this.lqq_1 + ')'; }; protoOf(ScopedGrantDetailUiState).hashCode = function () { var result = this.kqq_1 == null ? 0 : hashCode(this.kqq_1); result = imul(result, 31) + hashCode(this.lqq_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.kqq_1, tmp0_other_with_cast.kqq_1)) return false; if (!equals(this.lqq_1, tmp0_other_with_cast.lqq_1)) return false; return true; }; function Companion_103() { this.mqq_1 = 'ScopedGrantEdit'; this.nqq_1 = 'grantToGroup'; this.oqq_1 = 'grantToName'; this.pqq_1 = 'grantTableId'; this.qqq_1 = 'grantEntityUid'; this.rqq_1 = 'permissionList'; } var Companion_instance_152; function Companion_getInstance_120() { return Companion_instance_152; } 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.sqq_1 = entity; this.tqq_1 = bitmaskList; } protoOf(ScopedGrantEditUiState).toString = function () { return 'ScopedGrantEditUiState(entity=' + this.sqq_1 + ', bitmaskList=' + this.tqq_1 + ')'; }; protoOf(ScopedGrantEditUiState).hashCode = function () { var result = this.sqq_1 == null ? 0 : hashCode(this.sqq_1); result = imul(result, 31) + hashCode(this.tqq_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.sqq_1, tmp0_other_with_cast.sqq_1)) return false; if (!equals(this.tqq_1, tmp0_other_with_cast.tqq_1)) return false; return true; }; function Companion_104() { Companion_instance_153 = this; this.uqq_1 = new Long(200, 0); this.vqq_1 = 'initPicUri'; } var Companion_instance_153; function Companion_getInstance_121() { if (Companion_instance_153 == null) new Companion_104(); return Companion_instance_153; } function UstadEditViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_121(); UstadViewModel.call(this, di, savedStateHandle, destinationName); this.tqp_1 = null; var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.uqp_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; } protoOf(UstadEditViewModel).vqp = function (detailViewName, entityUid, result, detailViewExtraArgs) { Companion_getInstance_114(); var popUpToViewName = this.mqj_1.ba('result_viewname'); Companion_getInstance_114(); var saveToKey = this.mqj_1.ba('result_key'); Companion_getInstance_123(); var createdNewEntity = this.mqj_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_123(); this_0.s('entityUid', entityUid.toString()); var tmp = this_0.f3(); Companion_getInstance_114(); this.oqj_1.bq6(detailViewName, tmp, new UstadGoOptions('', true)); } else { this.xqp(result); } }; protoOf(UstadEditViewModel).wqp = function (detailViewName, entityUid, result, detailViewExtraArgs, $super) { detailViewExtraArgs = detailViewExtraArgs === VOID ? emptyMap() : detailViewExtraArgs; var tmp; if ($super === VOID) { this.vqp(detailViewName, entityUid, result, detailViewExtraArgs); tmp = Unit_instance; } else { tmp = $super.vqp.call(this, detailViewName, entityUid, result, detailViewExtraArgs); } return tmp; }; protoOf(UstadEditViewModel).wqq = function (newEntityStringResource, editEntityStringResource) { var tmp; if (!this.uqp_1.equals(new Long(0, 0))) { tmp = true; } else { Companion_getInstance_113(); tmp = !(this.mqj_1.ba('entity') == null); } var isEditing = tmp; var tmp_0 = this.mqk(); var tmp_1; if (isEditing) { tmp_1 = editEntityStringResource; } else { tmp_1 = newEntityStringResource; } return tmp_0.eog(tmp_1); }; protoOf(UstadEditViewModel).xqq = function (prevFieldValue, currentFieldValue, currentErrorMessage) { return currentErrorMessage == null ? null : !equals(prevFieldValue, currentFieldValue) ? null : currentErrorMessage; }; function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.iqr_1 = this$0; this.jqr_1 = $fabStringResource; this.kqr_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda).yqb = function (hasAddPermission, $completion) { var tmp = this.zqb(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.yqb((!(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.iqr_1, this.lqr_1, this.jqr_1, this.kqr_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).zqb = function (hasAddPermission, completion) { var i = new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda(this.iqr_1, this.jqr_1, this.kqr_1, completion); i.lqr_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.yqb(hasAddPermission, $completion); }; l.$arity = 1; return l; } function setAddNewItemUiState($this, hasAddPermission, fabStringResource, onSetAddItemVisibility) { var tmp; if (hasAddPermission ? $this.mqs().equals(ListViewMode_BROWSER_getInstance()) : false) { var tmp_0 = $this.mqk().eog(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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.setAddNewItemUiState.' call var nextValue = prevValue.bq3(fabState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } onSetAddItemVisibility(hasAddPermission ? $this.mqs().equals(ListViewMode_PICKER_getInstance()) : false); } function Companion_105() { this.nqs_1 = 'listMode'; } var Companion_instance_154; function Companion_getInstance_122() { return Companion_instance_154; } function sam$kotlinx_coroutines_flow_FlowCollector$0_3(function_0) { this.oqs_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_3).t1d = function (value, $completion) { return this.oqs_1(value, $completion); }; function UstadListViewModel$searchEvtCollator$slambda(this$0, resultContinuation) { this.xqs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$searchEvtCollator$slambda).zqs = function (it, $completion) { var tmp = this.aqt(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$searchEvtCollator$slambda).he = function (p1, $completion) { return this.zqs((!(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.yqs_1); this.xqs_1.bqt(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).aqt = function (it, completion) { var i = new UstadListViewModel$searchEvtCollator$slambda(this.xqs_1, completion); i.yqs_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.zqs(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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadListViewModel.createSearchEnabledState..' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.tq2_1.lq2(VOID, searchText)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this$0.lqs_1.s6x(searchText); return Unit_instance; }; } function UstadListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.cqt(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda($hasPermissionFlow, this$0, $fabStringResource, $onSetAddListItemVisibility, resultContinuation) { this.lqt_1 = $hasPermissionFlow; this.mqt_1 = this$0; this.nqt_1 = $fabStringResource; this.oqt_1 = $onSetAddListItemVisibility; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda).m78 = function ($completion) { return this.j87($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.lqt_1()); var tmp_1 = UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda$slambda_0(this.mqt_1, this.nqt_1, this.oqt_1, null); suspendResult = tmp_0.a1c(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).l78 = function (completion) { return new UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda(this.lqt_1, this.mqt_1, this.nqt_1, this.oqt_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.j87($completion); }; l.$arity = 0; return l; } function UstadListViewModel$onClickAdd$ref_0($boundThis) { var l = function () { $boundThis.cqt(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function UstadListViewModel(di, savedStateHandle, initialState, destinationName) { UstadViewModel.call(this, di, savedStateHandle, destinationName); this.hqs_1 = MutableStateFlow(initialState); this.iqs_1 = asStateFlow(this.hqs_1); this.jqs_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.kqs_1 = asSharedFlow(this.jqs_1); var tmp = this; var tmp_0 = new Long(200, 0); var tmp_1 = this.dqk(); var tmp_2 = BufferOverflow_DROP_OLDEST_getInstance(); tmp.lqs_1 = new EventCollator2(tmp_0, tmp_1, 1, tmp_2, UstadListViewModel$searchEvtCollator$slambda_0(this, null)); } protoOf(UstadListViewModel).mqs = function () { var tmp; var tmp_0; Companion_getInstance_114(); if (this.mqj_1.ba('listMode') === ListViewMode_PICKER_getInstance().mqg_1) { tmp_0 = true; } else { var tmp_1; Companion_getInstance_114(); if (!(this.mqj_1.ba('result_viewname') == null)) { Companion_getInstance_114(); tmp_1 = !(this.mqj_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).pqt = function (visible) { return new AppBarSearchUiState(visible, VOID, UstadListViewModel$createSearchEnabledState$lambda(this)); }; protoOf(UstadListViewModel).qqt = function (visible, $super) { visible = visible === VOID ? true : visible; return $super === VOID ? this.pqt(visible) : $super.pqt.call(this, visible); }; protoOf(UstadListViewModel).rqt = function (hasPermissionFlow, fabStringResource, onSetAddListItemVisibility, $completion) { return whenSubscribed(this.hqs_1, UstadListViewModel$collectHasPermissionFlowAndSetAddNewItemUiState$slambda_0(hasPermissionFlow, this, fabStringResource, onSetAddListItemVisibility, null), $completion); }; protoOf(UstadListViewModel).sqt = function (hasAddPermission, stringResource, onClick) { var tmp; if (hasAddPermission ? this.mqs().equals(ListViewMode_BROWSER_getInstance()) : false) { tmp = new FabUiState(true, this.mqk().eog(stringResource), FabIcon_ADD_getInstance(), onClick); } else { tmp = new FabUiState(false); } return tmp; }; protoOf(UstadListViewModel).tqt = 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.sqt(hasAddPermission, stringResource, onClick) : $super.sqt.call(this, hasAddPermission, stringResource, onClick); }; protoOf(UstadListViewModel).uqt = function (editViewName, extraArgs) { var resultDest = this.nqk(); var tmp; if (!(resultDest == null)) { Companion_getInstance_114(); var tmp_0 = to('result_viewname', resultDest.oq6_1); Companion_getInstance_114(); tmp = plus_0(mapOf([tmp_0, to('result_key', resultDest.pq6_1)]), extraArgs); } else { tmp = extraArgs; } var args = tmp; this.oqj_1.fp3(editViewName, args); }; protoOf(UstadListViewModel).vqt = function (editViewName, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.uqt(editViewName, extraArgs); tmp = Unit_instance; } else { tmp = $super.uqt.call(this, editViewName, extraArgs); } return tmp; }; protoOf(UstadListViewModel).wqt = function (detailViewName, entityUid, result, extraArgs) { var resultDest = this.nqk(); if (!(resultDest == null)) { this.xqp(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_123(); this_0.s('entityUid', entityUid.toString()); var tmp$ret$2 = this_0.f3(); this.oqj_1.fp3(detailViewName, tmp$ret$2); } }; protoOf(UstadListViewModel).xqt = function (detailViewName, entityUid, result, extraArgs, $super) { extraArgs = extraArgs === VOID ? emptyMap() : extraArgs; var tmp; if ($super === VOID) { this.wqt(detailViewName, entityUid, result, extraArgs); tmp = Unit_instance; } else { tmp = $super.wqt.call(this, detailViewName, entityUid, result, extraArgs); } return tmp; }; protoOf(UstadListViewModel).yqt = function (browseStringResource, selectStringResource) { var tmp = this.mqk(); var tmp_0; if (this.mqs().equals(ListViewMode_BROWSER_getInstance())) { tmp_0 = browseStringResource; } else { tmp_0 = selectStringResource; } return tmp.eog(tmp_0); }; function UstadViewModel$filteredResultFlowForKey$o$collect$slambda($$this$unsafeFlow, this$0, resultContinuation) { this.hqu_1 = $$this$unsafeFlow; this.iqu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$filteredResultFlowForKey$o$collect$slambda).gq7 = function (value, $completion) { var tmp = this.hq7(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.gq7(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.lqu_1 = this.hqu_1; var tmp_1 = this; tmp_1.mqu_1 = this.jqu_1; var it = this.mqu_1; var isNew = it.mq6_1.c7(this.iqu_1.bqk_1) > 0; if (isNew) { _set_lastNavResultTimestampCollected__txfbew(this.iqu_1, it.mq6_1); } if (isNew) { this.hd_1 = 3; suspendResult = this.lqu_1.t1d(this.mqu_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.kqu_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).hq7 = function (value, completion) { var i = new UstadViewModel$filteredResultFlowForKey$o$collect$slambda(this.hqu_1, this.iqu_1, completion); i.jqu_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.gq7(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$60(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.vqu_1 = _this__u8e3s4; this.wqu_1 = collector; } protoOf($collectCOROUTINE$60).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.xqu_1 = this.wqu_1; this.hd_1 = 1; var tmp_1 = UstadViewModel$filteredResultFlowForKey$o$collect$slambda_0(this.xqu_1, this.vqu_1.zqu_1, null); suspendResult = this.vqu_1.yqu_1.a1c(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.bqk_1 = value; $this.mqj_1.qqf('collectedTs', value.toString()); } function Companion_106() { Companion_instance_155 = this; this.aqv_1 = 'entityState'; this.bqv_1 = 'collectedTs'; this.cqv_1 = 'initState'; this.dqv_1 = 'timeZone'; this.eqv_1 = 'parentUid'; this.fqv_1 = 'courseBlockUid'; this.gqv_1 = 'entityUid'; this.hqv_1 = 'serverUrl'; this.iqv_1 = 'next'; this.jqv_1 = 'maxDob'; var tmp = this; Companion_getInstance_138(); Companion_getInstance_167(); Companion_getInstance_188(); Companion_getInstance_203(); tmp.kqv_1 = listOf(['CourseListHome', 'ContentEntryListHome', 'ConversationListHome', 'PersonListHome']); this.lqv_1 = 'openLink'; this.mqv_1 = 'account'; this.nqv_1 = 'popUpToOnFinish'; this.oqv_1 = 'inviteCode'; this.pqv_1 = 'clazzUid'; this.qqv_1 = 'entryid'; this.rqv_1 = 'personUid'; this.sqv_1 = 't'; this.tqv_1 = 'noSessionChange'; this.uqv_1 = 'selectedAccountPersonUid'; this.vqv_1 = 'selectedAccountEndpointUrl'; this.wqv_1 = 'result_viewname'; this.xqv_1 = 'result_key'; } var Companion_instance_155; function Companion_getInstance_123() { if (Companion_instance_155 == null) new Companion_106(); return Companion_instance_155; } function sam$kotlinx_coroutines_flow_FlowCollector$0_4(function_0) { this.yqv_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_4).t1d = function (value, $completion) { return this.yqv_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(function_0) { this.zqv_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0).dpg = function (url, target) { return this.zqv_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.cqk(); // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(this$0.a57()).f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(this$0.a57()).f58(); // 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.d58(tmp$ret$2, null); return OnClickLinkUseCase_init_$Create$(this$0.oqj_1, tmp, tmp_2, tmp$ret$3); }; } function _no_name_provided__qut3iv_2($this, this$0) { this.yqu_1 = $this; this.zqu_1 = this$0; } protoOf(_no_name_provided__qut3iv_2).wq7 = function (collector, $completion) { var tmp = new $collectCOROUTINE$60(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_2).a1c = function (collector, $completion) { return this.wq7(collector, $completion); }; function UstadViewModel$getJson$slambda(this$0, $deserializer, $jsonStr, resultContinuation) { this.iqw_1 = this$0; this.jqw_1 = $deserializer; this.kqw_1 = $jsonStr; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$getJson$slambda).mqw = function ($this$withContext, $completion) { var tmp = this.v1m($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.mqw((!(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.iqw_1.m4r().s45(this.jqw_1, this.kqw_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadViewModel$getJson$slambda).v1m = function ($this$withContext, completion) { var i = new UstadViewModel$getJson$slambda(this.iqw_1, this.jqw_1, this.kqw_1, completion); i.lqw_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.mqw($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$setJson$slambda(this$0, $serializer, $value, resultContinuation) { this.vqw_1 = this$0; this.wqw_1 = $serializer; this.xqw_1 = $value; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$setJson$slambda).zqw = function ($this$withContext, $completion) { var tmp = this.v1m($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.zqw((!(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.vqw_1.m4r().r45(this.wqw_1, this.xqw_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(UstadViewModel$setJson$slambda).v1m = function ($this$withContext, completion) { var i = new UstadViewModel$setJson$slambda(this.vqw_1, this.wqw_1, this.xqw_1, completion); i.yqw_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.zqw($this$withContext, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchIfHasPermission$slambda(this$0, $permissionCheck, $block, $onSetFieldsEnabled, resultContinuation) { this.iqx_1 = this$0; this.jqx_1 = $permissionCheck; this.kqx_1 = $block; this.lqx_1 = $onSetFieldsEnabled; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$launchIfHasPermission$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.oqx_1 = this.iqx_1.hqk(); if (this.oqx_1 == null) { this.pqx_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = localFirstThenRepoIfFalse(this.oqx_1, this.jqx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.pqx_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: this.qqx_1 = this.pqx_1; if (this.qqx_1 === false) { this.iqx_1.oqj_1.bq6('Error', emptyMap(), new UstadGoOptions(this.iqx_1.nqj_1, true)); this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.kqx_1(this.mqx_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.hd_1 = 5; continue $sm; case 5: this.nqx_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.iqx_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(VOID, Companion_getInstance_96().jq3_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$5; } } } while (false); var tmp1_safe_receiver = this.lqx_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.iqx_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(VOID, Companion_getInstance_96().jq3_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp1_safe_receiver_0 = this.lqx_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).v1m = function ($this$launch, completion) { var i = new UstadViewModel$launchIfHasPermission$slambda(this.iqx_1, this.jqx_1, this.kqx_1, this.lqx_1, completion); i.mqx_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadViewModel$launchWithLoadingIndicator$slambda($onSetFieldsEnabled, this$0, $block, resultContinuation) { this.zqx_1 = $onSetFieldsEnabled; this.aqy_1 = this$0; this.bqy_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(UstadViewModel$launchWithLoadingIndicator$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.zqx_1(false); l$ret$1: do { var this_0 = this.aqy_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(VOID, Companion_getInstance_96().iq3_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.uq2_1.cq2(VOID, VOID, false)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.bqy_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.dqy_1 = suspendResult; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.zqx_1(true); l$ret$7: do { var this_1 = this.aqy_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(VOID, Companion_getInstance_96().jq3_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.uq2_1.cq2(VOID, VOID, true)); if (this_1.y1k(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.zqx_1(true); l$ret$5: do { var this_2 = this.aqy_1.qqj_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.bq3(VOID, Companion_getInstance_96().jq3_1, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.uq2_1.cq2(VOID, VOID, true)); if (this_2.y1k(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).v1m = function ($this$launch, completion) { var i = new UstadViewModel$launchWithLoadingIndicator$slambda(this.zqx_1, this.aqy_1, this.bqy_1, completion); i.cqy_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function UstadViewModel$ifLoggedInElseNavigateToLoginWithNextDestSet$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd) { return Unit_instance; } function $getJsonCOROUTINE$57(_this__u8e3s4, _this__u8e3s4_0, key, deserializer, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mqy_1 = _this__u8e3s4; this.nqy_1 = _this__u8e3s4_0; this.oqy_1 = key; this.pqy_1 = deserializer; } protoOf($getJsonCOROUTINE$57).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.qqy_1 = this.nqy_1.ba(this.oqy_1); if (!(this.qqy_1 == null)) { this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, UstadViewModel$getJson$slambda_0(this.mqy_1, this.pqy_1, this.qqy_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this; tmp_1.rqy_1 = null; this.hd_1 = 2; continue $sm; } case 1: this.rqy_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.rqy_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$58(_this__u8e3s4, _this__u8e3s4_0, key, serializer, value, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.aqz_1 = _this__u8e3s4; this.bqz_1 = _this__u8e3s4_0; this.cqz_1 = key; this.dqz_1 = serializer; this.eqz_1 = value; } protoOf($setJsonCOROUTINE$58).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().p12_1; suspendResult = withContext(tmp_0, UstadViewModel$setJson$slambda_0(this.aqz_1, this.dqz_1, this.eqz_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var jsonStr = suspendResult; this.bqz_1.qqf(this.cqz_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$59(_this__u8e3s4, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.nqz_1 = _this__u8e3s4; this.oqz_1 = serializer; this.pqz_1 = loadFromStateKeys; this.qqz_1 = savedStateKey; this.rqz_1 = onLoadFromDb; this.sqz_1 = makeDefault; this.tqz_1 = uiUpdate; } protoOf($loadEntityCOROUTINE$59).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.uqz_1 = this.pqz_1; this.vqz_1 = this.uqz_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.vqz_1.f()) { this.hd_1 = 3; continue $sm; } this.wqz_1 = this.vqz_1.e(); var tmp_1 = this; tmp_1.xqz_1 = this.wqz_1; this.hd_1 = 2; suspendResult = this.nqz_1.rqk(this.nqz_1.mqj_1, this.xqz_1, this.oqz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.yqz_1 = suspendResult; if (!(this.yqz_1 == null)) { this.tqz_1(this.yqz_1); return this.yqz_1; } this.hd_1 = 1; continue $sm; case 3: this.zqz_1 = this.rqz_1; if (this.zqz_1 == null) { this.ar0_1 = null; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.zqz_1(this.nqz_1.gqk(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.ar0_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.br0_1 = this.ar0_1; if (!(this.br0_1 == null)) { this.tqz_1(this.br0_1); } this.id_1 = 13; this.dr0_1 = this.nqz_1.hqk(); if (this.dr0_1 == null) { this.er0_1 = null; this.hd_1 = 8; continue $sm; } else { var tmp_2 = this; tmp_2.fr0_1 = this.dr0_1; var tmp_3 = this; tmp_3.gr0_1 = this.fr0_1; this.hr0_1 = this.rqz_1; if (this.hr0_1 == null) { this.ir0_1 = null; this.hd_1 = 7; continue $sm; } else { this.hd_1 = 6; suspendResult = this.hr0_1(this.gr0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 6: this.ir0_1 = suspendResult; this.hd_1 = 7; continue $sm; case 7: this.er0_1 = this.ir0_1; this.hd_1 = 8; continue $sm; case 8: this.jr0_1 = this.er0_1; if (this.jr0_1 == null) { this.hd_1 = 9; suspendResult = this.sqz_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.kr0_1 = this.jr0_1; this.hd_1 = 10; continue $sm; } case 9: this.kr0_1 = suspendResult; this.hd_1 = 10; continue $sm; case 10: this.lr0_1 = this.kr0_1; if (!(this.lr0_1 == null)) { this.hd_1 = 11; suspendResult = this.nqz_1.sqk(this.nqz_1.mqj_1, this.qqz_1, this.oqz_1, this.lr0_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.tqz_1(this.lr0_1); this.cr0_1 = this.lr0_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.mr0_1 = this.kd_1; if (!(this.br0_1 == null)) { this.hd_1 = 14; suspendResult = this.nqz_1.sqk(this.nqz_1.mqj_1, this.qqz_1, this.oqz_1, this.br0_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.nr0_1 = this.br0_1; if (this.nr0_1 == null) { this.hd_1 = 16; suspendResult = this.sqz_1(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.or0_1 = this.nr0_1; this.hd_1 = 17; continue $sm; } case 16: var this_0 = suspendResult; this.tqz_1(this_0); this.or0_1 = this_0; this.hd_1 = 17; continue $sm; case 17: this.cr0_1 = this.or0_1; this.hd_1 = 18; continue $sm; case 18: this.id_1 = 19; return this.cr0_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_123(); ViewModel_init_$Init$(this); this.lqj_1 = di; this.mqj_1 = savedStateHandle; this.nqj_1 = destinationName; this.oqj_1 = new CommandFlowUstadNavController(); this.pqj_1 = this.oqj_1.aq6_1; this.qqj_1 = MutableStateFlow(new AppUiState()); this.rqj_1 = asStateFlow(this.qqj_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.sqj_1 = Instance(this, tmp$ret$0, null).a5d(this, accountManager$factory()); var tmp_1 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.cqk().co7(); var trigger = this.d57(); // 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.h57(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.tqj_1 = Instance(this_0, tmp$ret$5, null).a5d(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.cqk().co7(); var trigger_0 = this.d57(); // 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.h57(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.uqj_1 = Instance(this_1, tmp$ret$10, 1).a5d(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.vqj_1 = Instance(this, tmp$ret$12, null).a5d(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.wqj_1 = Instance(this, tmp$ret$14, null).a5d(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.xqj_1 = Instance(this, tmp$ret$16, null).a5d(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.yqj_1 = Instance(this, tmp$ret$18, null).a5d(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.zqj_1 = Instance(this, tmp$ret$20, null).a5d(this, systemImpl$factory()); var tmp_19 = this; tmp_19.aqk_1 = lazy_0(UstadViewModel$onClickLinkUseCase$delegate$lambda(this)); var tmp_20 = this; var tmp0_safe_receiver = this.mqj_1.ba('collectedTs'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_20.bqk_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; if (this.bqk_1.equals(new Long(0, 0))) { _set_lastNavResultTimestampCollected__txfbew(this, systemTimeInMillis()); } } protoOf(UstadViewModel).a57 = function () { return this.lqj_1; }; protoOf(UstadViewModel).cqk = function () { // Inline function 'kotlin.getValue' call var this_0 = this.sqj_1; accountManager$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).dqk = function () { return get_viewModelScope(this); }; protoOf(UstadViewModel).eqk = function () { return this.cqk().go6().tnq_1.f96_1; }; protoOf(UstadViewModel).fqk = function () { // Inline function 'kotlin.getValue' call var this_0 = this.tqj_1; activeDataLayer$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).gqk = function () { // Inline function 'kotlin.getValue' call var this_0 = this.uqj_1; activeDb$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).hqk = function () { return this.fqk().jjy_1; }; protoOf(UstadViewModel).iqk = function () { return this.fqk().mjy(); }; protoOf(UstadViewModel).jqk = function () { // Inline function 'kotlin.getValue' call var this_0 = this.vqj_1; navResultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).m4r = function () { // Inline function 'kotlin.getValue' call var this_0 = this.wqj_1; json$factory_2(); return this_0.t2(); }; protoOf(UstadViewModel).kqk = function () { // Inline function 'kotlin.getValue' call var this_0 = this.xqj_1; snackDispatcher$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).lqk = function () { // Inline function 'kotlin.getValue' call var this_0 = this.yqj_1; resultReturner$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).mqk = function () { // Inline function 'kotlin.getValue' call var this_0 = this.zqj_1; systemImpl$factory_0(); return this_0.t2(); }; protoOf(UstadViewModel).nqk = function () { var popUpToViewName = this.mqj_1.ba('result_viewname'); var saveToKey = this.mqj_1.ba('result_key'); var tmp; if (!(popUpToViewName == null) ? !(saveToKey == null) : false) { tmp = new NavResultDest(popUpToViewName, saveToKey); } else { tmp = null; } return tmp; }; protoOf(UstadViewModel).oqk = function (value) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel..' call var nextValue = prevValue.bq3(VOID, value); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(UstadViewModel).pqk = function () { return this.qqj_1.t2().nq2_1; }; protoOf(UstadViewModel).qqk = function (_this__u8e3s4, key) { // Inline function 'kotlinx.coroutines.flow.filter' call // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call var this_0 = _this__u8e3s4.qq6(key); // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call return new _no_name_provided__qut3iv_2(this_0, this); }; protoOf(UstadViewModel).rqk = function (_this__u8e3s4, key, deserializer, $completion) { var tmp = new $getJsonCOROUTINE$57(this, _this__u8e3s4, key, deserializer, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).sqk = function (_this__u8e3s4, key, serializer, value, $completion) { var tmp = new $setJsonCOROUTINE$58(this, _this__u8e3s4, key, serializer, value, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).yqq = 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.bq6(viewName, args, goOptions); }; protoOf(UstadViewModel).xqp = function (result) { var resultDest = this.nqk(); if (!(resultDest == null)) { this.jqk().rq6(new NavResult(resultDest.pq6_1, systemTimeInMillis(), result)); this.oqj_1.cq6(resultDest.oq6_1, false); } else { Companion_getInstance_114(); this.oqj_1.cq6('', true); } }; protoOf(UstadViewModel).tqk = 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.zqk(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.zqk(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.nqj_1; navArgs.s(key_1, value); } if (!(currentValue == null)) { // Inline function 'kotlin.collections.set' call Companion_getInstance_113(); var value_0 = this.m4r().r45(serializer, currentValue); navArgs.s('entity', value_0); } this.oqj_1.bq6(nextViewName, toMap_0(navArgs), goOptions); }; protoOf(UstadViewModel).uqk = function (nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination, $super) { args = args === VOID ? emptyMap() : args; goOptions = goOptions === VOID ? Companion_getInstance_94().rq0_1 : goOptions; var tmp; if (overwriteDestination === VOID) { tmp = this instanceof UstadEditViewModel; } else { tmp = overwriteDestination; } overwriteDestination = tmp; var tmp_0; if ($super === VOID) { this.tqk(nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); tmp_0 = Unit_instance; } else { tmp_0 = $super.tqk.call(this, nextViewName, key, currentValue, serializer, args, goOptions, overwriteDestination); } return tmp_0; }; protoOf(UstadViewModel).vqk = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) { var tmp = new $loadEntityCOROUTINE$59(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(UstadViewModel).wqk = function (serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion, $super) { var tmp; if (loadFromStateKeys === VOID) { Companion_getInstance_113(); tmp = listOf(['entityState', 'entity']); } else { tmp = loadFromStateKeys; } loadFromStateKeys = tmp; savedStateKey = savedStateKey === VOID ? first_0(loadFromStateKeys) : savedStateKey; return $super === VOID ? this.vqk(serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion) : $super.vqk.call(this, serializer, loadFromStateKeys, savedStateKey, onLoadFromDb, makeDefault, uiUpdate, $completion); }; protoOf(UstadViewModel).xqk = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block) { if (setLoadingState) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.UstadViewModel.launchIfHasPermission.' call var nextValue = prevValue.bq3(VOID, Companion_getInstance_96().iq3_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } if (onSetFieldsEnabled == null) null; else onSetFieldsEnabled(false); var tmp = this.dqk(); launch(tmp, VOID, VOID, UstadViewModel$launchIfHasPermission$slambda_0(this, permissionCheck, block, onSetFieldsEnabled, null)); }; protoOf(UstadViewModel).yqk = function (permissionCheck, setLoadingState, onSetFieldsEnabled, block, $super) { setLoadingState = setLoadingState === VOID ? false : setLoadingState; onSetFieldsEnabled = onSetFieldsEnabled === VOID ? null : onSetFieldsEnabled; var tmp; if ($super === VOID) { this.xqk(permissionCheck, setLoadingState, onSetFieldsEnabled, block); tmp = Unit_instance; } else { tmp = $super.xqk.call(this, permissionCheck, setLoadingState, onSetFieldsEnabled, block); } return tmp; }; protoOf(UstadViewModel).zqk = function (_this__u8e3s4, key) { putFromSavedStateIfPresent(_this__u8e3s4, this.mqj_1, key); }; protoOf(UstadViewModel).aql = 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.zqk(_this__u8e3s4, element); } }; protoOf(UstadViewModel).zqq = function (onSetFieldsEnabled, block) { var tmp = this.dqk(); launch(tmp, VOID, VOID, UstadViewModel$launchWithLoadingIndicator$slambda_0(onSetFieldsEnabled, this, block, null)); }; protoOf(UstadViewModel).bql = 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).a5d(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.cqk().go6().tnq_1; if (isGuestUser(it) ? true : requireAdultAccount ? !isDateOfBirthAnAdult(Companion_getInstance_6().rmc(it.o96_1)) : false) { var tmp_0 = this.nqj_1 + '?' + toQueryString(args); var tmp_1 = this.cqk(); var tmp_2 = UstadViewModel$ifLoggedInElseNavigateToLoginWithNextDestSet$lambda; navigateToLink(this.oqj_1, tmp_0, tmp_1, new sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0(tmp_2), new UstadGoOptions(this.nqj_1, true), VOID, ifLoggedInElseNavigateToLoginWithNextDestSet$lambda(apiUrlConfig$delegate).yo6_1); } else { block(); } }; protoOf(UstadViewModel).cql = function (requireAdultAccount, args, block, $super) { requireAdultAccount = requireAdultAccount === VOID ? false : requireAdultAccount; var tmp; if ($super === VOID) { this.bql(requireAdultAccount, args, block); tmp = Unit_instance; } else { tmp = $super.bql.call(this, requireAdultAccount, args, block); } return tmp; }; protoOf(UstadViewModel).dql = function (contentEntryUid, clazzUid, cbUid) { var registrationUuid = uuid4(); var activityId = this.cqk().co7().nnp_1 + 'ns/xapi/contentEntry/' + contentEntryUid.toString(); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this.a57()).f58(); // 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.d58(tmp$ret$0, null); var tmp_1 = get_doorPrimaryKeyManager(this.gqk()); var tmp1_xseUid = tmp_1.n62(400122); var tmp2_xseAccountPersonUid = this.eqk(); var tmp0_elvis_lhs = this.cqk().go6().tnq_1.g96_1; var tmp3_xseAccountUsername = tmp0_elvis_lhs == null ? 'anonymous' : tmp0_elvis_lhs; var tmp4_xseRootActivityUid = xxStringHasher.tm2(activityId); var tmp5_xseRegistrationHi = registrationUuid.hm9(); var tmp6_xseRegistrationLo = registrationUuid.im9(); 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).eql = function (contentEntryUid, clazzUid, cbUid, $super) { contentEntryUid = contentEntryUid === VOID ? new Long(0, 0) : contentEntryUid; var tmp; if (clazzUid === VOID) { var tmp0_safe_receiver = this.mqj_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.mqj_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.dql(contentEntryUid, clazzUid, cbUid) : $super.dql.call(this, contentEntryUid, clazzUid, cbUid); }; function accountManager$factory() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.cqk(); }, null); } function activeDataLayer$factory() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.fqk(); }, null); } function activeDb$factory() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.gqk(); }, null); } function navResultReturner$factory() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.jqk(); }, null); } function json$factory_1() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.m4r(); }, null); } function snackDispatcher$factory() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.kqk(); }, null); } function resultReturner$factory() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.lqk(); }, null); } function systemImpl$factory() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.mqk(); }, null); } function accountManager$factory_0() { return getPropertyCallableRef('accountManager', 1, KProperty1, function (receiver) { return receiver.cqk(); }, null); } function activeDataLayer$factory_0() { return getPropertyCallableRef('activeDataLayer', 1, KProperty1, function (receiver) { return receiver.fqk(); }, null); } function activeDb$factory_0() { return getPropertyCallableRef('activeDb', 1, KProperty1, function (receiver) { return receiver.gqk(); }, null); } function navResultReturner$factory_0() { return getPropertyCallableRef('navResultReturner', 1, KProperty1, function (receiver) { return receiver.jqk(); }, null); } function json$factory_2() { return getPropertyCallableRef('json', 1, KProperty1, function (receiver) { return receiver.m4r(); }, null); } function snackDispatcher$factory_0() { return getPropertyCallableRef('snackDispatcher', 1, KProperty1, function (receiver) { return receiver.kqk(); }, null); } function resultReturner$factory_0() { return getPropertyCallableRef('resultReturner', 1, KProperty1, function (receiver) { return receiver.lqk(); }, null); } function systemImpl$factory_0() { return getPropertyCallableRef('systemImpl', 1, KProperty1, function (receiver) { return receiver.mqk(); }, null); } function Companion_107() { this.pr0_1 = 'OpenLicenses'; } var Companion_instance_156; function Companion_getInstance_124() { return Companion_instance_156; } function OpenLicensesViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'EpubContent'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.about.OpenLicensesViewModel.' call var tmp0_title = this.mqk().eog(strings_getInstance().hni_1); var nextValue = prevValue.bq3(VOID, VOID, tmp0_title, false, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } function AddAccountSelectNewOrExistingViewModel$getCredentials$slambda$lambda($credentialResult) { return function () { return 'Error occurred: ' + $credentialResult.qr0_1; }; } function _get_supportLangConfig__jc22wi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nr1_1; supportLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.or1_1; setLanguageUseCase$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pr1_1; apiUrlConfig$factory_2(); return this_0.t2(); } function _get_impl__d88w17($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qr1_1; impl$factory_0(); return this_0.t2(); } function _get_getCredentialUseCase__qofq9r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sr1_1; getCredentialUseCase$factory_0(); return this_0.t2(); } function getCredentials($this) { var tmp = $this.dqk(); launch(tmp, VOID, VOID, AddAccountSelectNewOrExistingViewModel$getCredentials$slambda_0($this, null)); } function onLoginWithUsernameAndPasswordFromCredentialManager($this, credentialUsername, password) { var tmp = $this.dqk(); launch(tmp, VOID, VOID, AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda_0(credentialUsername, $this, 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.a57(); var context = new LearningSpace(serverUrl); var trigger = this_0.d57(); // 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.h57(tmp$ret$0, context); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).f58(); // 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.d58(tmp$ret$3, null); Companion_getInstance_114(); var tmp0_elvis_lhs = $this.mqj_1.ba('next'); var nextDestVal = tmp0_elvis_lhs == null ? getDefaultDestinationUseCase.apb() : tmp0_elvis_lhs; var tmp_3 = Napier_getInstance(); tmp_3.k5e(VOID, VOID, AddAccountSelectNewOrExistingViewModel$goToNextDestAfterSignIn$lambda(nextDestVal)); $this.yqq($this.oqj_1, appendSelectedAccount(nextDestVal, person.f96_1, new LearningSpace(serverUrl)), new UstadGoOptions(VOID, VOID, true)); } function Companion_108() { this.ur1_1 = 'AddAccountSelectNewOrExisting'; } var Companion_instance_157; function Companion_getInstance_125() { return Companion_instance_157; } function AddAccountSelectNewOrExistingViewModel$getCredentials$slambda(this$0, resultContinuation) { this.dr2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AddAccountSelectNewOrExistingViewModel$getCredentials$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.fr2_1 = _get_getCredentialUseCase__qofq9r(this.dr2_1); if (this.fr2_1 == null) { this.gr2_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.fr2_1.np8(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.gr2_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.hr2_1 = this.gr2_1; var tmp_0 = this.hr2_1; if (tmp_0 instanceof PasskeyCredentialResult) { this.ir2_1 = base64StringToByteArray(this.hr2_1.mr2_1.go2_1); this.jr2_1 = substringAfter(decodeToString(this.ir2_1), '@'); this.hd_1 = 3; suspendResult = this.dr2_1.cqk().ko7(this.hr2_1.mr2_1, _get_apiUrlConfig__mldllg_0(this.dr2_1).uo6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this.hr2_1; if (tmp_1 instanceof PasswordCredentialResult) { onLoginWithUsernameAndPasswordFromCredentialManager(this.dr2_1, this.hr2_1.kr2_1, this.hr2_1.lr2_1); this.hd_1 = 4; continue $sm; } else { var tmp_2 = this.hr2_1; if (tmp_2 instanceof Error_1) { var tmp_3 = Napier_getInstance(); tmp_3.s5e(VOID, VOID, AddAccountSelectNewOrExistingViewModel$getCredentials$slambda$lambda(this.hr2_1)); this.hd_1 = 4; continue $sm; } else { if (this.hr2_1 == null) { this.hd_1 = 4; continue $sm; } else { this.hd_1 = 4; continue $sm; } } } } case 3: var account = suspendResult; goToNextDestAfterSignIn(this.dr2_1, account.pku(), this.jr2_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_4 = this.kd_1; if (tmp_4 instanceof Exception) { var e = this.kd_1; Napier_getInstance().q5e('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).v1m = function ($this$launch, completion) { var i = new AddAccountSelectNewOrExistingViewModel$getCredentials$slambda(this.dr2_1, completion); i.er2_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda($credentialUsername, this$0, $password, resultContinuation) { this.vr2_1 = $credentialUsername; this.wr2_1 = this$0; this.xr2_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.zr2_1 = null; this.ar3_1 = Companion_instance_91.mp8(this.vr2_1); this.br3_1 = this.ar3_1.y6(); this.cr3_1 = this.ar3_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.wr2_1.cqk(); var this_0 = this.cr3_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.xr2_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); Companion_getInstance_114(); var tmp1_safe_receiver = this.wr2_1.mqj_1.ba('maxDob'); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toLong_0(tmp1_safe_receiver); suspendResult = tmp_0.lo7(tmp_1, tmp_2, this.br3_1.nnp_1, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.wr2_1.rr1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var account = suspendResult; var tmp_3 = this; goToNextDestAfterSignIn(this.wr2_1, account.pku(), this.br3_1.nnp_1); tmp_3.dr3_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.zr2_1 = _get_impl__d88w17(this.wr2_1).eog(strings_getInstance().una_1); tmp_5.dr3_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.zr2_1 = _get_impl__d88w17(this.wr2_1).eog(strings_getInstance().lme_1); tmp_7.dr3_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.zr2_1 = _get_impl__d88w17(this.wr2_1).eog(strings_getInstance().tna_1); tmp_9.dr3_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.zr2_1 = _get_impl__d88w17(this.wr2_1).eog(strings_getInstance().mme_1); tmp_11.dr3_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.wr2_1.oqk(Companion_getInstance_96().jq3_1); if (!(this.zr2_1 == null)) { this.wr2_1.kqk().qq3(new Snack(toString(this.zr2_1))); } throw t; case 5: throw this.kd_1; case 6: this.id_1 = 5; this.wr2_1.oqk(Companion_getInstance_96().jq3_1); if (!(this.zr2_1 == null)) { this.wr2_1.kqk().qq3(new Snack(toString(this.zr2_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).v1m = function ($this$launch, completion) { var i = new AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda(this.vr2_1, this.wr2_1, this.xr2_1, completion); i.yr2_1 = $this$launch; return i; }; function AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda_0($credentialUsername, this$0, $password, resultContinuation) { var i = new AddAccountSelectNewOrExistingViewModel$onLoginWithUsernameAndPasswordFromCredentialManager$slambda($credentialUsername, this$0, $password, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($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.mr1_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.nr1_1 = Instance(this, tmp$ret$0, null).a5d(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.or1_1 = Instance(this, tmp$ret$2, null).a5d(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(SystemUrlConfig), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.pr1_1 = Instance(this, tmp$ret$4, null).a5d(this, apiUrlConfig$factory_1()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(UstadMobileSystemImpl), arrayOf([]), false)); var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.qr1_1 = Instance(this, tmp$ret$6, null).a5d(this, impl$factory()); var tmp_7 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_7.rr1_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; var tmp_8 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_9 = typeToken(createKType(getKClass(GetCredentialUseCase), arrayOf([]), false)); var tmp$ret$8 = isInterface(tmp_9, TypeToken) ? tmp_9 : THROW_CCE(); tmp_8.sr1_1 = InstanceOrNull(this, tmp$ret$8, null).a5d(this, getCredentialUseCase$factory()); this.tr1_1 = asStateFlow(this.mr1_1); if (!(savedStateHandle.ba('RefererScreen') == null)) { savedStateHandle.qqf('RefererScreen', 'AddAccountSelectNewOrExisting'); } Companion_getInstance_114(); var nextDestination = savedStateHandle.ba('next'); if (!(nextDestination == null)) { var questionIndex = indexOf(nextDestination, _Char___init__impl__6a9atx(63)); var tmp_10; if (questionIndex > 0) { var tmp_11 = UMFileUtil_getInstance(); // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$11 = nextDestination.substring(questionIndex); tmp_10 = tmp_11.parseURLQueryString(tmp$ret$11); } else { tmp_10 = emptyMap(); } var args = tmp_10; if (args.r('childName')) { savedStateHandle.qqf('childName', args.q('childName')); savedStateHandle.qqf('childGender', args.q('childGender')); savedStateHandle.qqf('childDateOfBirth', args.q('childDateOfBirth')); } } this.qqj_1.x1k(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, false, VOID, VOID, VOID, true)); var allLanguages = _get_supportLangConfig__jc22wi(this).pq4(this.mqk()); var currentLanguage = _get_supportLangConfig__jc22wi(this).oq4(this.mqk()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.mr1_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.y1k(prevValue, nextValue)) { break $l$block; } } } getCredentials(this); } protoOf(AddAccountSelectNewOrExistingViewModel).er3 = function () { this.fr3(true); }; protoOf(AddAccountSelectNewOrExistingViewModel).gr3 = function () { this.fr3(false); }; protoOf(AddAccountSelectNewOrExistingViewModel).fr3 = function (isNewUser) { var tmp; if (isNewUser) { Companion_getInstance_211(); tmp = 'new'; } else { Companion_getInstance_211(); 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.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_123(); this.zqk(this_0, 'next'); Companion_getInstance_211(); this_0.s('newOrExisting', userType); var tmp0_safe_receiver = _get_apiUrlConfig__mldllg_0(this).wo6_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call Companion_getInstance_114(); 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).wo6_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).xo6_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.oqj_1.fp3(destination, args); }; protoOf(AddAccountSelectNewOrExistingViewModel).sr3 = function (uiLanguage) { if (!uiLanguage.equals(this.mr1_1.t2().tr3_1)) { var result = _get_setLanguageUseCase__st7nci(this).rpf(uiLanguage, 'AddAccountSelectNewOrExisting', this.oqj_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.mr1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectneworexisting.AddAccountSelectNewOrExistingViewModel.onLanguageSelected.' call var nextValue = prevValue.wr3(uiLanguage, VOID, result.ppf_1); if (this_0.y1k(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.tr3_1 = currentLanguage; this.ur3_1 = languageList; this.vr3_1 = showWaitForRestart; } protoOf(AddAccountSelectNewOrExistingUiState).xr3 = function (currentLanguage, languageList, showWaitForRestart) { return new AddAccountSelectNewOrExistingUiState(currentLanguage, languageList, showWaitForRestart); }; protoOf(AddAccountSelectNewOrExistingUiState).wr3 = function (currentLanguage, languageList, showWaitForRestart, $super) { currentLanguage = currentLanguage === VOID ? this.tr3_1 : currentLanguage; languageList = languageList === VOID ? this.ur3_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.vr3_1 : showWaitForRestart; return $super === VOID ? this.xr3(currentLanguage, languageList, showWaitForRestart) : $super.xr3.call(this, currentLanguage, languageList, showWaitForRestart); }; protoOf(AddAccountSelectNewOrExistingUiState).toString = function () { return 'AddAccountSelectNewOrExistingUiState(currentLanguage=' + this.tr3_1 + ', languageList=' + this.ur3_1 + ', showWaitForRestart=' + this.vr3_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUiState).hashCode = function () { var result = this.tr3_1.hashCode(); result = imul(result, 31) + hashCode(this.ur3_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vr3_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.tr3_1.equals(tmp0_other_with_cast.tr3_1)) return false; if (!equals(this.ur3_1, tmp0_other_with_cast.ur3_1)) return false; if (!(this.vr3_1 === tmp0_other_with_cast.vr3_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 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 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 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 _get_apiUrlConfig__mldllg_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tr4_1; apiUrlConfig$factory_4(); return this_0.t2(); } function Companion_109() { this.xr4_1 = 'AddAccountSelectUserType'; } var Companion_instance_158; function Companion_getInstance_126() { return Companion_instance_158; } 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.tr4_1 = Instance(this, tmp$ret$0, null).a5d(this, apiUrlConfig$factory_3()); this.ur4_1 = MutableStateFlow(new AddAccountSelectNewOrExistingUserTypeUiState()); var tmp_1 = this; Companion_getInstance_211(); var tmp_2 = savedStateHandle.ba('newOrExisting'); Companion_getInstance_211(); tmp_1.vr4_1 = tmp_2 === 'new'; this.wr4_1 = _get_apiUrlConfig__mldllg_1(this).xo6_1; var tmp_3; if (this.vr4_1) { tmp_3 = this.mqk().eog(strings_getInstance().pnl_1); } else { tmp_3 = this.mqk().eog(strings_getInstance().qnl_1); } var tmp0_title = tmp_3; this.qqj_1.x1k(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.ur4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.account.addaccountselectusertype.AddAccountSelectNewOrExistingUserTypeViewModel.' call var nextValue = prevValue.p6s(!(this.wr4_1 == null)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).zr4 = function () { return asStateFlow(this.ur4_1); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).ar5 = function () { var tmp; Companion_getInstance_211(); var tmp_0 = this.mqj_1.ba('newOrExisting'); Companion_getInstance_211(); 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.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_211(); this_0.s('personalAccount', 'true'); Companion_getInstance_114(); var tmp0_elvis_lhs = this.wr4_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.oqj_1.fp3(tmp_1, tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).br5 = 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.aql(this_0, Companion_getInstance_211().qr3_1); var tmp$ret$2 = this_0.f3(); this.oqj_1.fp3('LearningSpaceList', tmp$ret$2); }; protoOf(AddAccountSelectNewOrExistingUserTypeViewModel).cr5 = function () { }; function AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount) { showAddPersonalAccount = showAddPersonalAccount === VOID ? false : showAddPersonalAccount; this.yr4_1 = showAddPersonalAccount; } protoOf(AddAccountSelectNewOrExistingUserTypeUiState).p6s = function (showAddPersonalAccount) { return new AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount); }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).toString = function () { return 'AddAccountSelectNewOrExistingUserTypeUiState(showAddPersonalAccount=' + this.yr4_1 + ')'; }; protoOf(AddAccountSelectNewOrExistingUserTypeUiState).hashCode = function () { return getBooleanHashCode(this.yr4_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.yr4_1 === tmp0_other_with_cast.yr4_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.lr5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda).gnu = function (it, $completion) { var tmp = this.hnu(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda).he = function (p1, $completion) { return this.gnu(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.lr5_1.or6_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.cr7(this.mr5_1); if (this_0.y1k(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).hnu = function (it, completion) { var i = new AccountListViewModel$slambda$slambda(this.lr5_1, completion); i.mr5_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.gnu(it, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.lr7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda$slambda).nr7 = function (accountList, $completion) { var tmp = this.or7(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.nr7((!(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.lr7_1.cqk().go6().snq_1.hif_1; var this_0 = this.mr7_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var isFilteredOutActiveAccount = this.lr7_1.kr6_1 === 'header' ? element.snq_1.hif_1.equals(currentUserSessionUid) : false; var isFilteredOutByEndpoint = !(this.lr7_1.jr6_1 == null) ? !(element.unq_1.nnp_1 === this.lr7_1.jr6_1) : false; var isFilteredOutByDateOfBirth = this.lr7_1.lr6_1.c7(new Long(0, 0)) > 0 ? element.tnq_1.o96_1.c7(this.lr7_1.lr6_1) > 0 : false; if (!(((isFilteredOutActiveAccount ? true : isFilteredOutByEndpoint) ? true : isFilteredOutByDateOfBirth) ? true : isTemporary(element.snq_1))) { destination.i1(element); } } var accountsToDisplay = destination; l$ret$1: do { var this_1 = this.lr7_1.or6_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.cr7(VOID, accountsToDisplay); if (this_1.y1k(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).or7 = function (accountList, completion) { var i = new AccountListViewModel$slambda$slambda$slambda(this.lr7_1, completion); i.mr7_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.nr7(accountList, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.xr7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda$slambda_1).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda$slambda_1).m78 = function ($completion) { return this.j87($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.xr7_1.cqk().bo7(); var tmp_1 = AccountListViewModel$slambda$slambda$slambda_0(this.xr7_1, null); suspendResult = tmp_0.a1c(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).l78 = function (completion) { return new AccountListViewModel$slambda$slambda_1(this.xr7_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.j87($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.a57(); var trigger = this_0.d57(); // 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.h57(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).f58(); // 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.d58(tmp$ret$3, null); }; } function _get_apiUrlConfig__mldllg_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mr6_1; apiUrlConfig$factory_6(); return this_0.t2(); } function _get_shareAppUseCase__louoas($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nr6_1; shareAppUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qr6_1; getVersionUseCase$factory_0(); return this_0.t2(); } function _get_launchOpenLicensesUseCase__f5qz1z($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.rr6_1; launchOpenLicensesUseCase$factory_0(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.sr6_1; getShowPoweredByUseCase$factory_0(); return this_0.t2(); } function getChildDetail($this, $completion) { var tmp = new $getChildDetailCOROUTINE$61($this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_110() { this.nr8_1 = 'AccountList'; this.or8_1 = 'filterByLearningSpace'; this.pr8_1 = 'activeAccountMode'; this.qr8_1 = 'header'; this.rr8_1 = 'inlist'; } var Companion_instance_159; function Companion_getInstance_127() { return Companion_instance_159; } function sam$kotlinx_coroutines_flow_FlowCollector$0_5(function_0) { this.sr8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_5).t1d = function (value, $completion) { return this.sr8_1(value, $completion); }; function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0(function_0) { this.tr8_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_0).dpg = function (url, target) { return this.tr8_1(url, target); }; function AccountListViewModel$slambda(this$0, resultContinuation) { this.cr9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.cr9_1.cqk().zo6(); var tmp_1 = AccountListViewModel$slambda$slambda_0(this.cr9_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$slambda(this.cr9_1, completion); i.dr9_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$slambda_1(this$0, resultContinuation) { this.mr9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.mr9_1.or6_1, AccountListViewModel$slambda$slambda_2(this.mr9_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).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$slambda_1(this.mr9_1, completion); i.nr9_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickLogout$slambda(this$0, $currentSession, resultContinuation) { this.wr9_1 = this$0; this.xr9_1 = $currentSession; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickLogout$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wr9_1.cqk().jo7(this.xr9_1, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp0_$receiver = this.wr9_1.oqj_1; Companion_getInstance_138(); var tmp1_link = 'CourseListHome'; var tmp2_accountManager = this.wr9_1.cqk(); 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.wr9_1).yo6_1; var tmp5_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp6_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_2(this.wr9_1).wo6_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.wr9_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).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickLogout$slambda(this.wr9_1, this.xr9_1, completion); i.yr9_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickAddAccount$slambda(this$0, $args, resultContinuation) { this.hra_1 = this$0; this.ira_1 = $args; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickAddAccount$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.hra_1.tr6_1 == null)) { this.hd_1 = 1; suspendResult = this.hra_1.tr6_1.v7e().bhj(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.kra_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.nhj_1; this.kra_1 = ARGUMENT === false; this.hd_1 = 2; continue $sm; case 2: if (this.kra_1) { this.hra_1.mqj_1.qqf('RefererScreen', 'AccountList'); var this_0 = LinkedHashMap_init_$Create$(); this.hra_1.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_211(); this_0.s('newOrExisting', 'existing'); Companion_getInstance_114(); this_0.s('learningSpaceUrl', toString_0(_get_apiUrlConfig__mldllg_2(this.hra_1).wo6_1)); var arg = this_0.f3(); this.hra_1.oqj_1.fp3('Login', arg); this.hd_1 = 3; continue $sm; } else { this.hra_1.oqj_1.fp3('AddAccountSelectNewOrExisting', this.ira_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).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickAddAccount$slambda(this.hra_1, this.ira_1, completion); i.jra_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickAccount$slambda(this$0, $sessionWithPersonAndLearningSpace, resultContinuation) { this.tra_1 = this$0; this.ura_1 = $sessionWithPersonAndLearningSpace; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickAccount$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(AccountListViewModel$onClickAccount$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(AccountListViewModel$onClickAccount$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.tra_1.mqj_1.ba('childName') == null)) { this.hd_1 = 2; suspendResult = getChildDetail(this.tra_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; continue $sm; } case 1: var tmp_0; if (this.ura_1.tnq_1.n96_1) { Companion_getInstance_167(); tmp_0 = 'ContentEntryListHome'; } else { Companion_getInstance_138(); tmp_0 = 'CourseListHome'; } var viewName = tmp_0; var tmp5_$this = this.tra_1.ir6_1; var tmp6_navController = this.tra_1.oqj_1; Companion_getInstance_123(); var tmp4_elvis_lhs = this.tra_1.mqj_1.ba('next'); var tmp7_nextDest = tmp4_elvis_lhs == null ? viewName : tmp4_elvis_lhs; var tmp8_dontSetCurrentSession = this.tra_1.ur6_1; tmp5_$this.cpl(this.ura_1, tmp7_nextDest, tmp6_navController, VOID, tmp8_dontSetCurrentSession); return Unit_instance; case 2: var person = suspendResult; var tmp0_nextViewName = 'EditChildProfile'; var tmp2_serializer = Companion_instance_3.n4r(); var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_113(); this.tra_1.mqj_1.ba('entity'); var tmp3_args = this_0.f3(); this.tra_1.uqk(tmp0_nextViewName, 'person', person, tmp2_serializer, tmp3_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(AccountListViewModel$onClickAccount$slambda).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickAccount$slambda(this.tra_1, this.ura_1, completion); i.vra_1 = $this$launch; return i; }; function AccountListViewModel$onClickAccount$slambda_0(this$0, $sessionWithPersonAndLearningSpace, resultContinuation) { var i = new AccountListViewModel$onClickAccount$slambda(this$0, $sessionWithPersonAndLearningSpace, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickDeleteAccount$slambda(this$0, $session, resultContinuation) { this.erb_1 = this$0; this.frb_1 = $session; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickDeleteAccount$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.erb_1.cqk().jo7(this.frb_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).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickDeleteAccount$slambda(this.erb_1, this.frb_1, completion); i.grb_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function AccountListViewModel$onClickOpenLicenses$slambda($launchUseCaseVal, resultContinuation) { this.prb_1 = $launchUseCaseVal; CoroutineImpl.call(this, resultContinuation); } protoOf(AccountListViewModel$onClickOpenLicenses$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.prb_1.j87(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).v1m = function ($this$launch, completion) { var i = new AccountListViewModel$onClickOpenLicenses$slambda(this.prb_1, completion); i.qrb_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $getChildDetailCOROUTINE$61(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.gr8_1 = _this__u8e3s4; } protoOf($getChildDetailCOROUTINE$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.hr8_1 = this.gr8_1.mqj_1.ba('childName'); var tmp_1 = this; var tmp0_safe_receiver = this.gr8_1.mqj_1.ba('childGender'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); tmp_1.ir8_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; var tmp_2 = this; var tmp2_safe_receiver = this.gr8_1.mqj_1.ba('childDateOfBirth'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); tmp_2.jr8_1 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; this.kr8_1 = toFirstAndLastNameExt(this.hr8_1); this.lr8_1 = this.kr8_1.y6(); this.mr8_1 = this.kr8_1.z6(); this.hd_1 = 1; var tmp_3 = get_doorPrimaryKeyManager(this.gr8_1.gqk()); suspendResult = tmp_3.o62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var uid = suspendResult; return new Person(uid, VOID, this.lr8_1, this.mr8_1, VOID, VOID, this.ir8_1, VOID, true, this.jr8_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 AccountListViewModel(di, savedStateHandle, startUserSessionUseCase) { var tmp; if (startUserSessionUseCase === VOID) { // Inline function 'org.kodein.di.instance' call var tmp_0 = get_direct(di).f58(); // 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.d58(tmp$ret$0, null); tmp = new StartUserSessionUseCase(tmp$ret$1); } else { tmp = startUserSessionUseCase; } startUserSessionUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'AccountList'); this.ir6_1 = startUserSessionUseCase; this.jr6_1 = savedStateHandle.ba('filterByLearningSpace'); var tmp_2 = this; var tmp0_elvis_lhs = savedStateHandle.ba('activeAccountMode'); tmp_2.kr6_1 = tmp0_elvis_lhs == null ? 'header' : tmp0_elvis_lhs; var tmp_3 = this; Companion_getInstance_114(); var tmp0_safe_receiver = savedStateHandle.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.lr6_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.mr6_1 = Instance(this, tmp$ret$2, null).a5d(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.nr6_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(this, shareAppUseCase$factory()); this.or6_1 = MutableStateFlow(new AccountListUiState(VOID, VOID, _get_apiUrlConfig__mldllg_2(this).yo6_1, VOID, VOID, !(_get_shareAppUseCase__louoas(this) == null))); this.pr6_1 = asStateFlow(this.or6_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.qr6_1 = InstanceOrNull(this, tmp$ret$6, null).a5d(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.rr6_1 = InstanceOrNull(this, tmp$ret$8, null).a5d(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.sr6_1 = InstanceOrNull(this, tmp$ret$10, null).a5d(this, getShowPoweredByUseCase$factory()); var tmp_14 = this; var tmp0_safe_receiver_0 = _get_apiUrlConfig__mldllg_2(this).wo6_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.d57(); // 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.h57(tmp$ret$12, context); var tmp$ret$14 = On(di, tmp$ret$13, trigger); var tmp_18 = get_direct(tmp$ret$14).f58(); // 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.d58(tmp$ret$15, null).jjy_1; } tmp_14.tr6_1 = tmp_15; var tmp_20 = this; Companion_getInstance_123(); 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.ur6_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_21; if (savedStateHandle.ba('listMode') === ListViewMode_PICKER_getInstance().mqg_1) { tmp_21 = this.mqk().eog(strings_getInstance().fn6_1); } else { tmp_21 = this.mqk().eog(strings_getInstance().jmh_1); } var tmp0_title = tmp_21; this.qqj_1.x1k(new AppUiState(VOID, VOID, tmp0_title, false, VOID, VOID, false)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.or6_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.apb(); var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ypa_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.apb(); var nextValue = prevValue.cr7(VOID, VOID, VOID, tmp_22, tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'kotlin.takeIf' call var this_1 = this.dqk(); // Inline function 'kotlin.contracts.contract' call var tmp_23; // Inline function 'com.ustadmobile.core.viewmodel.account.list.AccountListViewModel.' call if (this.kr6_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.dqk(); launch(tmp_24, VOID, VOID, AccountListViewModel$slambda_2(this, null)); } protoOf(AccountListViewModel).rrb = function () { var tmp0_elvis_lhs = this.or6_1.t2().vr6_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var currentSession = tmp; var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, AccountListViewModel$onClickLogout$slambda_0(this, currentSession, null)); }; protoOf(AccountListViewModel).srb = function () { var tmp0_safe_receiver = this.or6_1.t2().vr6_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tnq_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f96_1; var tmp; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp2_elvis_lhs; } var personUid = tmp; Companion_getInstance_123(); this.oqj_1.fp3('PersonDetailView', mapOf_0(to('entityUid', personUid.toString()))); }; protoOf(AccountListViewModel).trb = 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.jr6_1 == null)) { Companion_getInstance_123(); this_0.s('serverUrl', this.jr6_1); } Companion_getInstance_123(); Companion_getInstance_123(); this.aql(this_0, listOf(['next', 'noSessionChange'])); Companion_getInstance_123(); Companion_getInstance_123(); var tmp0_elvis_lhs = this.mqj_1.ba('maxDob'); this_0.s('maxDob', tmp0_elvis_lhs == null ? '0' : tmp0_elvis_lhs); var args = this_0.f3(); var tmp = this.dqk(); launch(tmp, VOID, VOID, AccountListViewModel$onClickAddAccount$slambda_0(this, args, null)); }; protoOf(AccountListViewModel).urb = function (sessionWithPersonAndLearningSpace) { var tmp = this.dqk(); launch(tmp, VOID, VOID, AccountListViewModel$onClickAccount$slambda_0(this, sessionWithPersonAndLearningSpace, null)); }; protoOf(AccountListViewModel).vrb = function (session) { var tmp = this.dqk(); launch(tmp, VOID, VOID, AccountListViewModel$onClickDeleteAccount$slambda_0(this, session, null)); }; protoOf(AccountListViewModel).wrb = function () { var launchUseCaseVal = _get_launchOpenLicensesUseCase__f5qz1z(this); if (!(launchUseCaseVal == null)) { var tmp = this.dqk(); launch(tmp, VOID, VOID, AccountListViewModel$onClickOpenLicenses$slambda_0(launchUseCaseVal, null)); } else { this.oqj_1.fp3('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.vr6_1 = headerAccount; this.wr6_1 = accountsList; this.xr6_1 = showAccountEndpoint; this.yr6_1 = version; this.zr6_1 = showPoweredBy; this.ar7_1 = shareAppOptionVisible; this.br7_1 = shareAppBottomSheetVisible; } protoOf(AccountListUiState).xrb = function () { return !(this.vr6_1 == null) ? !this.vr6_1.tnq_1.f96_1.equals(new Long(0, 0)) : false; }; protoOf(AccountListUiState).yrb = function () { return !(this.vr6_1 == null) ? !isGuestUser(this.vr6_1.tnq_1) : false; }; protoOf(AccountListUiState).zrb = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) { return new AccountListUiState(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).cr7 = function (headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible, $super) { headerAccount = headerAccount === VOID ? this.vr6_1 : headerAccount; accountsList = accountsList === VOID ? this.wr6_1 : accountsList; showAccountEndpoint = showAccountEndpoint === VOID ? this.xr6_1 : showAccountEndpoint; version = version === VOID ? this.yr6_1 : version; showPoweredBy = showPoweredBy === VOID ? this.zr6_1 : showPoweredBy; shareAppOptionVisible = shareAppOptionVisible === VOID ? this.ar7_1 : shareAppOptionVisible; shareAppBottomSheetVisible = shareAppBottomSheetVisible === VOID ? this.br7_1 : shareAppBottomSheetVisible; return $super === VOID ? this.zrb(headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible) : $super.zrb.call(this, headerAccount, accountsList, showAccountEndpoint, version, showPoweredBy, shareAppOptionVisible, shareAppBottomSheetVisible); }; protoOf(AccountListUiState).toString = function () { return 'AccountListUiState(headerAccount=' + this.vr6_1 + ', accountsList=' + this.wr6_1 + ', showAccountEndpoint=' + this.xr6_1 + ', version=' + this.yr6_1 + ', showPoweredBy=' + this.zr6_1 + ', shareAppOptionVisible=' + this.ar7_1 + ', shareAppBottomSheetVisible=' + this.br7_1 + ')'; }; protoOf(AccountListUiState).hashCode = function () { var result = this.vr6_1 == null ? 0 : this.vr6_1.hashCode(); result = imul(result, 31) + hashCode(this.wr6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xr6_1) | 0; result = imul(result, 31) + getStringHashCode(this.yr6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zr6_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ar7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.br7_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.vr6_1, tmp0_other_with_cast.vr6_1)) return false; if (!equals(this.wr6_1, tmp0_other_with_cast.wr6_1)) return false; if (!(this.xr6_1 === tmp0_other_with_cast.xr6_1)) return false; if (!(this.yr6_1 === tmp0_other_with_cast.yr6_1)) return false; if (!(this.zr6_1 === tmp0_other_with_cast.zr6_1)) return false; if (!(this.ar7_1 === tmp0_other_with_cast.ar7_1)) return false; if (!(this.br7_1 === tmp0_other_with_cast.br7_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.a57()); // 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).a5d(null, getLocalDelegateReference('dataLayer', KProperty0, false, function () { return THROW_ISE(); })); // Inline function 'kotlin.takeIf' call var this_1 = _this__u8e3s4.dqk(); // 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.arc_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_6).t1d = function (value, $completion) { return this.arc_1(value, $completion); }; function launchSetTitleFromClazzUid$slambda$slambda($updateUi, resultContinuation) { this.jrc_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda$slambda).lrc = function (it, $completion) { var tmp = this.mrc(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(launchSetTitleFromClazzUid$slambda$slambda).he = function (p1, $completion) { return this.lrc((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.jrc_1(this.krc_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).mrc = function (it, completion) { var i = new launchSetTitleFromClazzUid$slambda$slambda(this.jrc_1, completion); i.krc_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.lrc(it, $completion); }; l.$arity = 1; return l; } function launchSetTitleFromClazzUid$slambda($clazzUid, $dataLayer$delegate, $updateUi, resultContinuation) { this.vrc_1 = $clazzUid; this.wrc_1 = $dataLayer$delegate; this.xrc_1 = $updateUi; CoroutineImpl.call(this, resultContinuation); } protoOf(launchSetTitleFromClazzUid$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(launchSetTitleFromClazzUid$slambda).he = function (p1, $completion) { return this.u1m((!(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.wrc_1).mjy().o7d().z8c(this.vrc_1); var tmp_1 = launchSetTitleFromClazzUid$slambda$slambda_0(this.xrc_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new launchSetTitleFromClazzUid$slambda(this.vrc_1, this.wrc_1, this.xrc_1, completion); i.yrc_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function parseAndUpdateTerminologyStringsIfNeeded(currentTerminologyStrings, terminology, systemImpl, json, onUpdate) { var tmp = currentTerminologyStrings == null ? null : currentTerminologyStrings.dq5_1; if (!equals(tmp, terminology == null ? null : terminology.p8g_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.o7d().z8c(clazzUid); var tmp_0 = collectClazzNameAndUpdateTitle$slambda_0(appUiState, null); return tmp.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_7(tmp_0), $completion); } function sam$kotlinx_coroutines_flow_FlowCollector$0_7(function_0) { this.zrc_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_7).t1d = function (value, $completion) { return this.zrc_1(value, $completion); }; function collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation) { this.ird_1 = $appUiState; CoroutineImpl.call(this, resultContinuation); } protoOf(collectClazzNameAndUpdateTitle$slambda).lrc = function (clazzTitle, $completion) { var tmp = this.mrc(clazzTitle, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(collectClazzNameAndUpdateTitle$slambda).he = function (p1, $completion) { return this.lrc((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.ird_1; var tmp_0; if (!(this.ird_1.t2().oq2_1 == this.jrd_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.bq3(VOID, VOID, this.jrd_1); if (tmp0_safe_receiver.y1k(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).mrc = function (clazzTitle, completion) { var i = new collectClazzNameAndUpdateTitle$slambda(this.ird_1, completion); i.jrd_1 = clazzTitle; return i; }; function collectClazzNameAndUpdateTitle$slambda_0($appUiState, resultContinuation) { var i = new collectClazzNameAndUpdateTitle$slambda($appUiState, resultContinuation); var l = function (clazzTitle, $completion) { return i.lrc(clazzTitle, $completion); }; l.$arity = 1; return l; } function get_blockTypeStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.u7x_1; var tmp; if (tmp0_subject === 102) { tmp = strings_getInstance().hmy_1; } else { if (tmp0_subject === 104) { tmp = strings_getInstance().umz_1; } else { if (tmp0_subject === 100) { tmp = strings_getInstance().xnc_1; } else { if (tmp0_subject === 103) { tmp = strings_getInstance().hmz_1; } else { if (tmp0_subject === 105) { tmp = strings_getInstance().cnd_1; } else { tmp = strings_getInstance().tmd_1; } } } } } return tmp; } function CoursePermissionConstants() { CoursePermissionConstants_instance = this; var tmp = this; var tmp_0 = strings_getInstance().anj_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1, 0)); var tmp_2 = strings_getInstance().gnj_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().xne_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(2, 0)); var tmp_6 = strings_getInstance().bnj_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(4, 0)); var tmp_8 = strings_getInstance().cnj_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(8, 0)); var tmp_10 = strings_getInstance().dnj_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(16, 0)); var tmp_12 = strings_getInstance().smx_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(32, 0)); var tmp_14 = strings_getInstance().umx_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(64, 0)); var tmp_16 = strings_getInstance().enj_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(128, 0)); var tmp_18 = strings_getInstance().fnj_1; PermissionFlags_getInstance(); tmp.krd_1 = listOf([tmp_1, tmp_3, tmp_5, tmp_7, tmp_9, tmp_11, tmp_13, tmp_15, tmp_17, to(tmp_18, new Long(256, 0))]); } var CoursePermissionConstants_instance; function CoursePermissionConstants_getInstance() { if (CoursePermissionConstants_instance == null) new CoursePermissionConstants(); return CoursePermissionConstants_instance; } function getTitleForCoursePermission(_this__u8e3s4, entity, $completion) { var tmp = new $getTitleForCoursePermissionCOROUTINE$62(_this__u8e3s4, entity, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function titleStringResource(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4.tdk_1; var tmp; if (tmp0_subject === 1000) { tmp = strings_getInstance().emh_1; } else { if (tmp0_subject === 1001) { tmp = strings_getInstance().jmu_1; } else { tmp = null; } } return tmp; } function getTitleForCoursePermission$slambda($entity, resultContinuation) { this.gre_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda).ire = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda).he = function (p1, $completion) { return this.ire(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.hre_1.q7d().xe6(this.gre_1.sdk_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).env = function (it, completion) { var i = new getTitleForCoursePermission$slambda(this.gre_1, completion); i.hre_1 = it; return i; }; function getTitleForCoursePermission$slambda_0($entity, resultContinuation) { var i = new getTitleForCoursePermission$slambda($entity, resultContinuation); var l = function (it, $completion) { return i.ire(it, $completion); }; l.$arity = 1; return l; } function getTitleForCoursePermission$slambda_1($entity, resultContinuation) { this.rre_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(getTitleForCoursePermission$slambda_1).tre = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(getTitleForCoursePermission$slambda_1).he = function (p1, $completion) { return this.tre(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.sre_1.n7d(); var tmp0_safe_receiver = this.rre_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.udk_1; suspendResult = tmp_0.ng2(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).env = function (it, completion) { var i = new getTitleForCoursePermission$slambda_1(this.rre_1, completion); i.sre_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.tre(it, $completion); }; l.$arity = 1; return l; } function $getTitleForCoursePermissionCOROUTINE$62(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.trd_1 = _this__u8e3s4; this.urd_1 = entity; } protoOf($getTitleForCoursePermissionCOROUTINE$62).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.trd_1.a57()).f58(); var tmp_2 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); tmp_0.vrd_1 = tmp_1.d58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; var tmp0_safe_receiver = this.urd_1; tmp_3.wrd_1 = tmp0_safe_receiver == null ? null : titleStringResource(tmp0_safe_receiver); if (!(this.wrd_1 == null)) { this.hd_1 = 2; var tmp_4 = this.trd_1.iqk(); suspendResult = localFirstThenRepoIfNull(tmp_4, getTitleForCoursePermission$slambda_0(this.urd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_5 = this.trd_1.iqk(); suspendResult = localFirstThenRepoIfNull(tmp_5, getTitleForCoursePermission$slambda_2(this.urd_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp5_elvis_lhs = suspendResult; this.xrd_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.vrd_1, this.trd_1.mqk()); 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.gq5_1.equals(this.wrd_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.hq5_1; tmp_6.xrd_1 = tmp4_elvis_lhs == null ? this.trd_1.mqk().eog(this.wrd_1) : tmp4_elvis_lhs; this.hd_1 = 3; continue $sm; case 3: return this.xrd_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.crf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda$slambda).erf = function (it, $completion) { var tmp = this.frf(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.erf((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.drf_1; var clazz = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z8j_1; var tmp_0; if (clazz == null) { tmp_0 = emptyList(); } else { var tmp_1; var tmp_2 = clazz.b8e_1; Companion_getInstance_4(); if (hasFlag_0(tmp_2, new Long(1, 0))) { tmp_1 = this.drf_1.a8k_1; } else { tmp_1 = false; } tmp_0 = createTabList(this.crf_1, tmp_1, this.drf_1.b8k_1, this.drf_1.c8k_1); } var tabList = tmp_0; l$ret$1: do { var this_0 = this.crf_1.crg_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.frg(tabList); if (this_0.y1k(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).frf = function (it, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda$slambda(this.crf_1, completion); i.drf_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.erf(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.org_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.org_1.gqk().o7d().x8c(this.org_1.eqk(), this.org_1.gqj_1); var tmp_1 = ClazzDetailViewModel$slambda$slambda$slambda$slambda_0(this.org_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzDetailViewModel$slambda$slambda$slambda(this.org_1, completion); i.prg_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.yrg_1 = $this_launch; this.zrg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.yrg_1, VOID, VOID, ClazzDetailViewModel$slambda$slambda$slambda_0(this.zrg_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).l78 = function (completion) { return new ClazzDetailViewModel$slambda$slambda(this.yrg_1, this.zrg_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.j87($completion); }; l.$arity = 0; return l; } function createTabList($this, showAttendance, showMembers, showProgressReport) { Companion_getInstance_114(); var tabs = mutableListOf([new TabItem('CourseDetailOverviewView', mapOf_0(to('entityUid', $this.gqj_1.toString())), $this.mqk().eog(strings_getInstance().jne_1))]); if (showMembers) { Companion_getInstance_114(); tabs.i1(new TabItem('CourseMembers', mapOf_0(to('clazzUid', $this.gqj_1.toString())), capitalizeFirstLetter($this.mqk().eog(strings_getInstance().zmw_1)))); } if (showProgressReport) { Companion_getInstance_114(); tabs.i1(new TabItem('Gradebook', mapOf_0(to('clazzUid', $this.gqj_1.toString())), $this.mqk().eog(strings_getInstance().znk_1))); } if (showAttendance) { Companion_getInstance_114(); tabs.i1(new TabItem('CourseLogListAttendanceView', mapOf_0(to('clazzUid', $this.gqj_1.toString())), $this.mqk().eog(strings_getInstance().xmg_1))); } Companion_getInstance_114(); tabs.i1(new TabItem('CourseGroups', mapOf_0(to('clazzUid', $this.gqj_1.toString())), $this.mqk().eog(strings_getInstance().jmw_1))); return toList(tabs); } function Companion_111() { this.arh_1 = 'Course'; } var Companion_instance_160; function Companion_getInstance_128() { return Companion_instance_160; } function sam$kotlinx_coroutines_flow_FlowCollector$0_8(function_0) { this.brh_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_8).t1d = function (value, $completion) { return this.brh_1(value, $completion); }; function ClazzDetailViewModel$slambda(this$0, resultContinuation) { this.krh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.krh_1.crg_1, ClazzDetailViewModel$slambda$slambda_0(this.lrh_1, this.krh_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).v1m = function ($this$launch, completion) { var i = new ClazzDetailViewModel$slambda(this.krh_1, completion); i.lrh_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Course'); this.crg_1 = MutableStateFlow(new ClazzDetailUiState()); this.drg_1 = asStateFlow(this.crg_1); var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzDetailViewModel$slambda_0(this, null)); } function ClazzDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.erg_1 = tabs; } protoOf(ClazzDetailUiState).frg = function (tabs) { return new ClazzDetailUiState(tabs); }; protoOf(ClazzDetailUiState).toString = function () { return 'ClazzDetailUiState(tabs=' + this.erg_1 + ')'; }; protoOf(ClazzDetailUiState).hashCode = function () { return hashCode(this.erg_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.erg_1, tmp0_other_with_cast.erg_1)) return false; return true; }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.urh_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).yrh = function (value, $completion) { var tmp = this.zrh(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.yrh(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.wrh_1 = this.urh_1; var tmp_1 = this; tmp_1.xrh_1 = this.vrh_1; this.hd_1 = 1; var it = this.xrh_1; suspendResult = this.wrh_1.t1d(it.odn_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).zrh = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.urh_1, completion); i.vrh_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.yrh(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$63(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.iri_1 = _this__u8e3s4; this.jri_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.kri_1 = this.jri_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.kri_1, null); suspendResult = this.iri_1.lri_1.a1c(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.uri_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda).wri = function (courseBlockList, $completion) { var tmp = this.xri(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.wri((!(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.uri_1.urj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.irk(VOID, VOID, this.vri_1); if (this_0.y1k(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).xri = function (courseBlockList, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.uri_1, completion); i.vri_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.wri(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.rrk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).trk = function (blockStatuses, $completion) { var tmp = this.urk(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.trk((!(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.rrk_1.urj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.irk(VOID, VOID, VOID, this.srk_1); if (this_0.y1k(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).urk = function (blockStatuses, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(this.rrk_1, completion); i.srk_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.trk(blockStatuses, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.drl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.drl_1.iqk().p7d().zck(this.drl_1.gqj_1, false, false, systemTimeInMillis(), this.drl_1.eqk()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.drl_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.drl_1, completion); i.erl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nrl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nrl_1.iqk().j7e().eja(this.nrl_1.gqj_1, listOf_0(this.nrl_1.eqk()), this.nrl_1.eqk()); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(this.nrl_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_1(this.nrl_1, completion); i.orl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_3($this) { this.lri_1 = $this; } protoOf(_no_name_provided__qut3iv_3).nqb = 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_3).a1c = function (collector, $completion) { return this.nqb(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda($this_launch, this$0, resultContinuation) { this.xrl_1 = $this_launch; this.yrl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda).yqb = function (hasViewPermission, $completion) { var tmp = this.zqb(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.yqb((!(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.zrl_1) { launch(this.xrl_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.yrl_1, null)); launch(this.xrl_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_2(this.yrl_1, null)); } else { l$ret$1: do { var this_0 = this.yrl_1.urj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.irk(VOID, VOID, emptyList()); if (this_0.y1k(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).zqb = function (hasViewPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.xrl_1, this.yrl_1, completion); i.zrl_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.yqb(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.urj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel......' call var nextValue = prevValue.irk(VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.y1k(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).krm = function (clazzWithDisplayDetails, permissions, $completion) { var tmp = this.lrm(clazzWithDisplayDetails, permissions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).um = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof ClazzAndDisplayDetails) ? p1 : THROW_CCE(); return this.krm(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.irm_1; var tmp_0; if (this.jrm_1.odn_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).lrm = function (clazzWithDisplayDetails, permissions, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.irm_1 = clazzWithDisplayDetails; i.jrm_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.krm(clazzWithDisplayDetails, permissions, $completion); }; l.$arity = 2; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.urm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).wrm = function (it, $completion) { var tmp = this.xrm(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.wrm((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.urm_1.urj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.irk(this.vrm_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_currentTerminologyStrings = this.urm_1.urj_1.t2().frk_1; var tmp0_safe_receiver = this.vrm_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8k_1; var tmp3_json = this.urm_1.m4r(); var tmp4_systemImpl = this.urm_1.mqk(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda$lambda(this.urm_1)); l$ret$3: do { var this_1 = this.urm_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.vrm_1; var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.p8k_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s8d_1; var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); if (this_1.y1k(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).xrm = function (it, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.urm_1, completion); i.vrm_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.wrm(it, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) { this.grn_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1).yrh = function (value, $completion) { var tmp = this.zrh(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.yrh(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.irn_1 = this.grn_1; var tmp_1 = this; tmp_1.jrn_1 = this.hrn_1; this.hd_1 = 1; var it = this.jrn_1; suspendResult = this.irn_1.t1d(it.pdn_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).zrh = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_1(this.grn_1, completion); i.hrn_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.yrh(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$64(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.srn_1 = _this__u8e3s4; this.trn_1 = collector; } protoOf($collectCOROUTINE$64).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.urn_1 = this.trn_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_2(this.urn_1, null); suspendResult = this.srn_1.vrn_1.a1c(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.vrn_1 = $this; } protoOf(_no_name_provided__qut3iv_4).nqb = function (collector, $completion) { var tmp = new $collectCOROUTINE$64(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_4).a1c = function (collector, $completion) { return this.nqb(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.ero_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).yqb = function (hasEditPermission, $completion) { var tmp = this.zqb(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.yqb((!(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.ero_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(prevValue.mq2_1.hq3(this.fro_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ero_1.urj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.irk(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.fro_1); if (this_1.y1k(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).zqb = function (hasEditPermission, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.ero_1, completion); i.fro_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.yqb(hasEditPermission, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3($$this$unsafeFlow, resultContinuation) { this.oro_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3).yrh = function (value, $completion) { var tmp = this.zrh(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.yrh(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.qro_1 = this.oro_1; var tmp_1 = this; tmp_1.rro_1 = this.pro_1; this.hd_1 = 1; var it = this.rro_1; suspendResult = this.qro_1.t1d(it.qdn_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).zrh = function (value, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_3(this.oro_1, completion); i.pro_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.yrh(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$65(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.arp_1 = _this__u8e3s4; this.brp_1 = collector; } protoOf($collectCOROUTINE$65).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.crp_1 = this.brp_1; this.hd_1 = 1; var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_4(this.crp_1, null); suspendResult = this.arp_1.drp_1.a1c(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.drp_1 = $this; } protoOf(_no_name_provided__qut3iv_5).nqb = function (collector, $completion) { var tmp = new $collectCOROUTINE$65(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_5).a1c = function (collector, $completion) { return this.nqb(collector, $completion); }; function ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.mrp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).yqb = function (canAddStudent, $completion) { var tmp = this.zqb(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.yqb((!(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.mrp_1.urj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.irk(VOID, VOID, VOID, VOID, this.nrp_1); if (this_0.y1k(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).zqb = function (canAddStudent, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.mrp_1, completion); i.nrp_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.yqb(canAddStudent, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.wrp_1 = $permissionFlow; this.xrp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wrp_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_3(this_0)); suspendResult = collectLatest(tmp_0, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.yrp_1, this.xrp_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).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda(this.wrp_1, this.xrp_1, completion); i.yrp_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_1(this$0, $permissionFlow, resultContinuation) { this.hrq_1 = this$0; this.irq_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.hrq_1.iqk().o7d().y8c(this.hrq_1.gqj_1, systemTimeInMillis(), this.hrq_1.eqk()); var tmp_1 = combine(tmp_0, this.irq_1, ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_2 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.hrq_1, null); suspendResult = tmp_1.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_1(this.hrq_1, this.irq_1, completion); i.jrq_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_3($permissionFlow, this$0, resultContinuation) { this.srq_1 = $permissionFlow; this.trq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.srq_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_4(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.trq_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_3(this.srq_1, this.trq_1, completion); i.urq_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda$slambda_5($permissionFlow, this$0, resultContinuation) { this.drr_1 = $permissionFlow; this.err_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.drr_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_5(this_0)); var tmp_1 = ClazzDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.err_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda$slambda$slambda_5(this.drr_1, this.err_1, completion); i.frr_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzDetailOverviewViewModel$slambda$slambda($this_launch, $permissionFlow, this$0, resultContinuation) { this.orr_1 = $this_launch; this.prr_1 = $permissionFlow; this.qrr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.orr_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_0(this.prr_1, this.qrr_1, null)); launch(this.orr_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_2(this.qrr_1, this.prr_1, null)); launch(this.orr_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_4(this.prr_1, this.qrr_1, null)); launch(this.orr_1, VOID, VOID, ClazzDetailOverviewViewModel$slambda$slambda$slambda_6(this.prr_1, this.qrr_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).l78 = function (completion) { return new ClazzDetailOverviewViewModel$slambda$slambda(this.orr_1, this.prr_1, this.qrr_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.j87($completion); }; l.$arity = 0; return l; } function _get_setClipboardStringUseCase__31i1s1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wrj_1; setClipboardStringUseCase$factory_0(); return this_0.t2(); } function onClickEdit($this) { Companion_getInstance_114(); $this.oqj_1.fp3('CourseEdit', mapOf_0(to('entityUid', $this.gqj_1.toString()))); } function Companion_112() { this.rrr_1 = 'CourseDetailOverviewView'; } var Companion_instance_161; function Companion_getInstance_129() { return Companion_instance_161; } function sam$kotlinx_coroutines_flow_FlowCollector$0_9(function_0) { this.srr_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_9).t1d = function (value, $completion) { return this.srr_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.brs_1 = this$0; this.crs_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDetailOverviewViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzDetailOverviewViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.brs_1.urj_1, ClazzDetailOverviewViewModel$slambda$slambda_0(this.drs_1, this.crs_1, this.brs_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).v1m = function ($this$launch, completion) { var i = new ClazzDetailOverviewViewModel$slambda(this.brs_1, this.crs_1, completion); i.drs_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.u1m($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.urj_1 = MutableStateFlow(new ClazzDetailOverviewUiState()); this.vrj_1 = asStateFlow(this.urj_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.wrj_1 = Instance(this, tmp$ret$0, null).a5d(this, setClipboardStringUseCase$factory()); this.xrj_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.yrj_1 = asSharedFlow(this.xrj_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.' call var tmp_1 = this.mqk().eog(strings_getInstance().fmr_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.bq3(new FabUiState(false, tmp_1, tmp_2, ClazzDetailOverviewViewModel$onClickEdit$ref(this))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.iqk().o7f(); var tmp_4 = this.eqk(); 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.zdj(tmp_4, this.gqj_1, tmp_5, tmp_6, new Long(8, 0)), this.dqk(), Companion_getInstance_12().v1h()); var tmp_7 = this.dqk(); launch(tmp_7, VOID, VOID, ClazzDetailOverviewViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzDetailOverviewViewModel).ers = function (code) { _get_setClipboardStringUseCase__31i1s1(this).koy(code); this.kqk().qq3(new Snack(this.mqk().eog(strings_getInstance().hn4_1))); }; protoOf(ClazzDetailOverviewViewModel).frs = function (courseBlock) { Companion_getInstance_123(); var tmp = to('entityUid', courseBlock.t7x_1.toString()); Companion_getInstance_123(); var navArgs = mapOf([tmp, to('clazzUid', this.gqj_1.toString())]); var tmp0_subject = courseBlock.u7x_1; if (tmp0_subject === 100) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.urj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.detailoverview.ClazzDetailOverviewViewModel.onClickCourseBlock.' call var nextValue = prevValue.irk(VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.erk_1, courseBlock.t7x_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.xrj_1.i1h(new RefreshCommand()); } else { if (tmp0_subject === 102) { this.oqj_1.fp3('CourseText', navArgs); } else { if (tmp0_subject === 103) { this.oqj_1.fp3('CourseAssignment', navArgs); } else { if (tmp0_subject === 105) { this.oqj_1.fp3('CourseDiscussion', navArgs); } else { if (tmp0_subject === 104) { Companion_getInstance_158(); Companion_getInstance_123(); var tmp_0 = to('entityUid', courseBlock.l7y_1.toString()); Companion_getInstance_123(); var tmp_1 = to('clazzUid', this.gqj_1.toString()); Companion_getInstance_123(); this.oqj_1.fp3('ContentEntry', mapOf([tmp_0, tmp_1, to('courseBlockUid', courseBlock.t7x_1.toString())])); } } } } } }; protoOf(ClazzDetailOverviewViewModel).grs = function () { Companion_getInstance_123(); this.oqj_1.fp3('CoursePermissionList', mapOf_0(to('clazzUid', this.gqj_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.brk_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.qcn_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w7x_1; if (!this$0.erk_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.zrj_1 = clazzAndDetail; this.ark_1 = scheduleList; this.brk_1 = courseBlockList; this.crk_1 = blockStatusesForActiveUser; this.drk_1 = clazzCodeVisible; this.erk_1 = collapsedBlockUids; this.frk_1 = terminologyStrings; this.grk_1 = managePermissionVisible; var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.hrk_1 = lazy(tmp_0, ClazzDetailOverviewUiState$displayBlockList$delegate$lambda(this)); } protoOf(ClazzDetailOverviewUiState).hrs = function () { var tmp0_safe_receiver = this.zrj_1; return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p8k_1; }; protoOf(ClazzDetailOverviewUiState).irs = function () { var tmp; var tmp0_safe_receiver = this.zrj_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p8k_1; if (isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z8d_1)) { tmp = true; } else { var tmp2_safe_receiver = this.zrj_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.p8k_1; tmp = isDateSet(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.a8e_1); } return tmp; }; protoOf(ClazzDetailOverviewUiState).jrs = function () { var tmp0_safe_receiver = this.zrj_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).krs = function () { var tmp0_safe_receiver = this.zrj_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8k_1; return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; }; protoOf(ClazzDetailOverviewUiState).lrs = function () { var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.brk_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.qcn_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u7x_1; if (tmp_0 === 100) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } return tmp$ret$0; }; protoOf(ClazzDetailOverviewUiState).mrs = function () { var tmp2_safe_receiver = this.frk_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.eq5(strings_getInstance().jmu_1); var tmp = (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs) + ': ' + this.krs() + ', '; var tmp0_safe_receiver = this.frk_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.eq5(strings_getInstance().emh_1); return tmp + ((tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs) + ': ' + this.jrs()); }; protoOf(ClazzDetailOverviewUiState).nrs = function () { return this.grk_1; }; protoOf(ClazzDetailOverviewUiState).ors = function () { // Inline function 'kotlin.getValue' call var this_0 = this.hrk_1; displayBlockList$factory(); return this_0.t2(); }; protoOf(ClazzDetailOverviewUiState).prs = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible) { return new ClazzDetailOverviewUiState(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible); }; protoOf(ClazzDetailOverviewUiState).irk = function (clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible, $super) { clazzAndDetail = clazzAndDetail === VOID ? this.zrj_1 : clazzAndDetail; scheduleList = scheduleList === VOID ? this.ark_1 : scheduleList; courseBlockList = courseBlockList === VOID ? this.brk_1 : courseBlockList; blockStatusesForActiveUser = blockStatusesForActiveUser === VOID ? this.crk_1 : blockStatusesForActiveUser; clazzCodeVisible = clazzCodeVisible === VOID ? this.drk_1 : clazzCodeVisible; collapsedBlockUids = collapsedBlockUids === VOID ? this.erk_1 : collapsedBlockUids; terminologyStrings = terminologyStrings === VOID ? this.frk_1 : terminologyStrings; managePermissionVisible = managePermissionVisible === VOID ? this.grk_1 : managePermissionVisible; return $super === VOID ? this.prs(clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible) : $super.prs.call(this, clazzAndDetail, scheduleList, courseBlockList, blockStatusesForActiveUser, clazzCodeVisible, collapsedBlockUids, terminologyStrings, managePermissionVisible); }; protoOf(ClazzDetailOverviewUiState).toString = function () { return 'ClazzDetailOverviewUiState(clazzAndDetail=' + this.zrj_1 + ', scheduleList=' + this.ark_1 + ', courseBlockList=' + this.brk_1 + ', blockStatusesForActiveUser=' + this.crk_1 + ', clazzCodeVisible=' + this.drk_1 + ', collapsedBlockUids=' + this.erk_1 + ', terminologyStrings=' + this.frk_1 + ', managePermissionVisible=' + this.grk_1 + ')'; }; protoOf(ClazzDetailOverviewUiState).hashCode = function () { var result = this.zrj_1 == null ? 0 : this.zrj_1.hashCode(); result = imul(result, 31) + hashCode(this.ark_1) | 0; result = imul(result, 31) + hashCode(this.brk_1) | 0; result = imul(result, 31) + hashCode(this.crk_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.drk_1) | 0; result = imul(result, 31) + hashCode(this.erk_1) | 0; result = imul(result, 31) + (this.frk_1 == null ? 0 : this.frk_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.grk_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.zrj_1, tmp0_other_with_cast.zrj_1)) return false; if (!equals(this.ark_1, tmp0_other_with_cast.ark_1)) return false; if (!equals(this.brk_1, tmp0_other_with_cast.brk_1)) return false; if (!equals(this.crk_1, tmp0_other_with_cast.crk_1)) return false; if (!(this.drk_1 === tmp0_other_with_cast.drk_1)) return false; if (!equals(this.erk_1, tmp0_other_with_cast.erk_1)) return false; if (!equals(this.frk_1, tmp0_other_with_cast.frk_1)) return false; if (!(this.grk_1 === tmp0_other_with_cast.grk_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.ors(); }, null); } function ClazzEditViewModel$slambda$slambda$slambda$lambda(this$0) { return function ($this$shallowCopy) { $this$shallowCopy.l8g_1 = new CoursePicture(this$0.uqp_1); return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.yrs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda).crt = function (it, $completion) { var tmp = this.env(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.crt(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.zrs_1.o7d(); var tmp_1; if (!this.yrs_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.art_1 = tmp_1; if (this.art_1 == null) { this.brt_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.art_1.u8c(this.yrs_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.brt_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var dbResult = this.brt_1; var hasPicture = !((dbResult == null ? null : dbResult.l8g_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.yrs_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).env = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda(this.yrs_1, completion); i.zrs_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.crt(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.lrt_1 = this$0; this.mrt_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).rrt = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.rrt($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.nrt_1 = new ClazzWithHolidayCalendarAndAndTerminology(); var tmp_1 = this; tmp_1.ort_1 = this.nrt_1; this.ort_1.r8d_1 = this.lrt_1.wru_1; this.ort_1.s8d_1 = ''; this.ort_1.x8d_1 = true; this.ort_1.z8d_1 = systemTimeInMillis(); this.ort_1.j8e_1 = getDefaultTimeZoneId(); var tmp_2 = this.ort_1; Companion_getInstance_114(); var tmp0_safe_receiver = this.mrt_1.ba('schoolUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.c8e_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_3 = this; var this_0 = this.lrt_1.iqk().q7d(); var tmp_4; if (!this.ort_1.e8e_1.equals(new Long(0, 0))) { tmp_4 = this_0; } else { tmp_4 = null; } tmp_3.prt_1 = tmp_4; if (this.prt_1 == null) { this.qrt_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.prt_1.xe6(this.ort_1.e8e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.qrt_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.qrt_1; this.ort_1.k8g_1 = ARGUMENT; this.ort_1.l8g_1 = new CoursePicture(this.lrt_1.wru_1); this.ort_1.p8e_1 = this.lrt_1.eqk(); return this.nrt_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).l78 = function (completion) { return new ClazzEditViewModel$slambda$slambda$slambda_1(this.lrt_1, this.mrt_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.rrt($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.uru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.grv(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.prv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_3).trv = function (it, $completion) { var tmp = this.env(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.trv(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.qrv_1.n7e(); var tmp_1; if (!this.prv_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.rrv_1 = tmp_1; if (this.rrv_1 == null) { this.srv_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.rrv_1.lha(this.prv_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.srv_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: 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_3).env = function (it, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_3(this.prv_1, completion); i.qrv_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.trv(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).crw = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_5).m78 = function ($completion) { return this.crw($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).l78 = 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.crw($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.uru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.grv(VOID, VOID, VOID, VOID, VOID, it == null ? emptyList() : it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.lrw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_7).trw = function (db, $completion) { var tmp = this.env(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.trw(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.mrw_1.p7d(); var tmp_1; if (!this.lrw_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.nrw_1 = tmp_1; if (this.nrw_1 == null) { this.orw_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.nrw_1.yck(this.lrw_1.uqp_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.orw_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.prw_1 = this.orw_1; this.qrw_1 = this.prw_1 == null ? emptyList() : this.prw_1; var tmp_2 = this; var this_1 = this.mrw_1.g7f(); var tmp_3; if (!this.lrw_1.uqp_1.equals(new Long(0, 0))) { tmp_3 = this_1; } else { tmp_3 = null; } tmp_2.rrw_1 = tmp_3; if (this.rrw_1 == null) { this.srw_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; suspendResult = this.rrw_1.jft(this.lrw_1.uqp_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 3: this.srw_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var tmp3_elvis_lhs = this.srw_1; var assignmentPeerAllocations = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs; var this_2 = this.qrw_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.zcm_1); var tmp0_elvis_lhs = item.acn_1; var tmp_5 = tmp0_elvis_lhs == null ? new CourseBlockPicture(ensureNotNull(item.zcm_1).t7x_1) : tmp0_elvis_lhs; var tmp_6 = item.bcn_1; var tmp_7 = item.ccn_1; var tmp_8 = item.dcn_1; var tmp_9 = item.ecn_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.hfu_1; var tmp0_safe_receiver = item.dcn_1; if (tmp_10.equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n7t_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).env = function (db, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_7(this.lrw_1, completion); i.mrw_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.trw(db, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_9(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).crx = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda_9).m78 = function ($completion) { return this.crx($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).l78 = 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.crx($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.uru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel....' call var nextValue = prevValue.grv(VOID, VOID, VOID, VOID, VOID, VOID, it == null ? emptyList() : it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_0($returnedSchedule) { return function (it) { return it.fhb_1.equals($returnedSchedule.fhb_1); }; } function ClazzEditViewModel$slambda$slambda$slambda$slambda(this$0, $newSchedules, resultContinuation) { this.lrx_1 = this$0; this.mrx_1 = $newSchedules; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).zqw = function ($this$withContext, $completion) { var tmp = this.v1m($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.zqw((!(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.lrx_1.m4r().r45(ListSerializer(Companion_instance_29.n4r()), this.mrx_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$slambda$slambda$slambda$slambda).v1m = function ($this$withContext, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda$slambda(this.lrx_1, this.mrx_1, completion); i.nrx_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.zqw($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_11(this$0, $savedStateHandle, resultContinuation) { this.wrx_1 = this$0; this.xrx_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_11).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.yrx_1.nq6_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.zrx_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.wrx_1.uru_1.t2().drv_1; tmp_3.ary_1 = replaceOrAppend(tmp_4, this.zrx_1, ClazzEditViewModel$slambda$slambda$slambda$lambda_0(this.zrx_1)); l$ret$1: do { var this_0 = this.wrx_1.uru_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.grv(VOID, VOID, VOID, VOID, VOID, this.ary_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 1; var tmp_5 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_5, ClazzEditViewModel$slambda$slambda$slambda$slambda_0(this.wrx_1, this.ary_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.xrx_1.qqf('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).hq7 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_11(this.wrx_1, this.xrx_1, completion); i.yrx_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda_13(this$0, resultContinuation) { this.jry_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_13).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.kry_1.nq6_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.lry_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.jry_1.uru_1.t2().erv_1; var tmp1_safe_receiver = this.jry_1.uru_1.t2().zru_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r8d_1; tmp_3.mry_1 = this.jry_1.pru_1.zp7(tmp_4, tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, this.lry_1); this.hd_1 = 1; suspendResult = updateCourseBlockList(this.jry_1, this.mry_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).hq7 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_13(this.jry_1, completion); i.kry_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_1($timeZoneId) { return function ($this$shallowCopy) { $this$shallowCopy.j8e_1 = $timeZoneId; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_15(this$0, resultContinuation) { this.vry_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_15).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.wry_1.nq6_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.vry_1.uru_1.t2().zru_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.vry_1.xry(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).hq7 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_15(this.vry_1, completion); i.wry_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_2($newTerminology) { return function ($this$shallowCopy) { $this$shallowCopy.e8e_1 = $newTerminology.m8g_1; $this$shallowCopy.k8g_1 = $newTerminology; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_17(this$0, resultContinuation) { this.grz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_17).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.hrz_1.nq6_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.grz_1.uru_1.t2().zru_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.grz_1.xry(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).hq7 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_17(this.grz_1, completion); i.hrz_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda$slambda$lambda_3($newDescription) { return function ($this$shallowCopy) { $this$shallowCopy.t8d_1 = $newDescription; return Unit_instance; }; } function ClazzEditViewModel$slambda$slambda$slambda_19(this$0, resultContinuation) { this.qrz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda$slambda_19).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.rrz_1.nq6_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.qrz_1.uru_1.t2().zru_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.qrz_1.xry(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).hq7 = function (result, completion) { var i = new ClazzEditViewModel$slambda$slambda$slambda_19(this.qrz_1, completion); i.rrz_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.as0_1 = this$0; this.bs0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda).ds0 = function ($this$async, $completion) { var tmp = this.v1m($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.ds0((!(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.n4r(); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_0(this.as0_1, null); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_2(this.as0_1, this.bs0_1, null); suspendResult = this.as0_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEditViewModel$slambda$slambda$lambda(this.as0_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_121(); var tmp1_safe_receiver = this_0 == null ? null : this_0.l8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s8g_1; setIfNoValueSetYet(this.bs0_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).v1m = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda(this.as0_1, this.bs0_1, completion); i.cs0_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.ds0($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.ms0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_1).os0 = function ($this$async, $completion) { var tmp = this.v1m($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.os0((!(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.n4r()); var tmp_1 = listOf_0('schedule'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_4(this.ms0_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.ms0_1.wqk(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_0(this.ms0_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).v1m = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda_1(this.ms0_1, completion); i.ns0_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.os0($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.xs0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_3).zs0 = function ($this$async, $completion) { var tmp = this.v1m($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.zs0((!(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().n4r()); var tmp_1 = listOf_0('courseblocks'); var tmp_2 = ClazzEditViewModel$slambda$slambda$slambda_8(this.xs0_1, null); var tmp_3 = ClazzEditViewModel$slambda$slambda$slambda_10(null); suspendResult = this.xs0_1.wqk(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ClazzEditViewModel$slambda$slambda$lambda_1(this.xs0_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).v1m = function ($this$async, completion) { var i = new ClazzEditViewModel$slambda$slambda_3(this.xs0_1, completion); i.ys0_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.zs0($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.is1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_5).zqw = function ($this$withContext, $completion) { var tmp = this.v1m($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.zqw((!(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.is1_1.m4r(); var value = this.is1_1.uru_1.t2(); var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzEditUiState), arrayOf([]), false)); return this_0.r45(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).v1m = function ($this$withContext, completion) { var i = new ClazzEditViewModel$slambda$slambda_5(this.is1_1, completion); i.js1_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.zqw($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_7(this$0, $savedStateHandle, resultContinuation) { this.ss1_1 = this$0; this.ts1_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_7).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ss1_1.qqk(this.ss1_1.lqk(), 'Schedule'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_12(this.ss1_1, this.ts1_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_7(this.ss1_1, this.ts1_1, completion); i.us1_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_9(this$0, resultContinuation) { this.ds2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_9).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ds2_1.qqk(this.ds2_1.lqk(), 'courseblock'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_14(this.ds2_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_9(this.ds2_1, completion); i.es2_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_11(this$0, resultContinuation) { this.ns2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_11).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ns2_1.qqk(this.ns2_1.lqk(), 'timeZone'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_16(this.ns2_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_11(this.ns2_1, completion); i.os2_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_13(this$0, resultContinuation) { this.xs2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_13).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.xs2_1.qqk(this.xs2_1.lqk(), 'terminology'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_18(this.xs2_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_13(this.xs2_1, completion); i.ys2_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda$slambda_15(this$0, resultContinuation) { this.hs3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda$slambda_15).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.hs3_1.qqk(this.hs3_1.lqk(), 'clazzDescriptionHtml'); var tmp_1 = ClazzEditViewModel$slambda$slambda$slambda_20(this.hs3_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$slambda$slambda_15(this.hs3_1, completion); i.is3_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda($clazzUid) { return function ($this$shallowCopy) { $this$shallowCopy.mhb_1 = $clazzUid; return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0(it) { return it.fhb_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_1(it) { return it.dk4_1.t7x_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2(it) { return it.n7t_1; } function ClazzEditViewModel$onClickSave$slambda$slambda$lambda_3(it) { return it.efu_1; } function ClazzEditViewModel$onClickSave$slambda$slambda(this$0, $initEntity, $updateImage, $coursePictureVal, $entity, $initState, $courseBlockListVal, $updatedCourseBlockPictures, resultContinuation) { this.ss3_1 = this$0; this.ts3_1 = $initEntity; this.us3_1 = $updateImage; this.vs3_1 = $coursePictureVal; this.ws3_1 = $entity; this.xs3_1 = $initState; this.ys3_1 = $courseBlockListVal; this.zs3_1 = $updatedCourseBlockPictures; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.ss3_1.uqp_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_createNewClazzUseCase__mo489e(this.ss3_1).lov(this.ts3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.ss3_1.iqk().o7d().v8c(this.ts3_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.us3_1 ? !(this.vs3_1 == null) : false) { this.vs3_1.r8g_1 = systemTimeInMillis(); this.hd_1 = 4; suspendResult = this.ss3_1.gqk().d7f().xe3(this.vs3_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.bs4_1 = this.ws3_1.r8d_1; var tmp_0 = this; var this_0 = this.ss3_1.uru_1.t2().drv_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.bs4_1))); } tmp_0.cs4_1 = destination; this.hd_1 = 6; suspendResult = this.ss3_1.iqk().n7e().jha(this.cs4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; var tmp_1 = this.ss3_1.iqk().n7e(); suspendResult = deactivateByUids(tmp_1, findKeysNotInOtherList(this.xs3_1.drv_1, this.cs4_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_0), systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.ds4_1 = this.ss3_1.qru_1.bp8(this.ys3_1); this.hd_1 = 8; var tmp_2 = this.ss3_1.iqk().p7d(); var this_1 = this.ds4_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.dk4_1); } suspendResult = tmp_2.bcl(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.hd_1 = 9; var tmp_3 = this.ss3_1.iqk().p7d(); suspendResult = deactivateByUids_0(tmp_3, findKeysNotInOtherList(this.xs3_1.erv_1, this.ds4_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.ys3_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.kk4_1; if (tmp0_safe_receiver == null) null; else { destination_1.i1(tmp0_safe_receiver); } } tmp_4.es4_1 = destination_1; this.hd_1 = 10; suspendResult = this.ss3_1.iqk().q7e().r7s(this.es4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: var tmp_5 = this; var this_3 = this.xs3_1.erv_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.kk4_1; if (tmp0_safe_receiver_0 == null) null; else { destination_2.i1(tmp0_safe_receiver_0); } } tmp_5.fs4_1 = findKeysNotInOtherList(destination_2, this.es4_1, ClazzEditViewModel$onClickSave$slambda$slambda$lambda_2); var tmp_6 = this; var this_4 = this.ss3_1.iqk().q7e(); var tmp_7; if (!this.fs4_1.c1()) { tmp_7 = this_4; } else { tmp_7 = null; } tmp_6.gs4_1 = tmp_7; if (this.gs4_1 == null) { this.hs4_1 = null; this.hd_1 = 12; continue $sm; } else { this.hd_1 = 11; suspendResult = this.gs4_1.s7s(this.fs4_1, false, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 11: var tmp_8 = this; tmp_8.hs4_1 = Unit_instance; this.hd_1 = 12; continue $sm; case 12: var tmp_9 = this; var this_5 = this.ys3_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.mk4_1; addAll(destination_3, list); } tmp_9.is4_1 = destination_3; var tmp_10 = this; var this_6 = this.xs3_1.erv_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.mk4_1; addAll(destination_4, list_0); } tmp_10.js4_1 = destination_4; this.hd_1 = 13; var tmp_11 = this.ss3_1.iqk().g7f(); suspendResult = deactivateByUids_1(tmp_11, findKeysNotInOtherList(this.js4_1, this.is4_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.ss3_1.iqk().g7f().kft(this.is4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 14: var tmp_12 = this; var this_7 = this.ys3_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.hk4_1; if (tmp0_safe_receiver_1 == null) null; else { destination_5.i1(tmp0_safe_receiver_1); } } tmp_12.ks4_1 = destination_5; this.ls4_1 = this.ks4_1.w(); this.hd_1 = 15; continue $sm; case 15: if (!this.ls4_1.f()) { this.hd_1 = 17; continue $sm; } this.ms4_1 = this.ls4_1.e(); var tmp_13 = this; tmp_13.ns4_1 = this.ms4_1; this.hd_1 = 16; suspendResult = this.ss3_1.sru_1.gp2(this.ns4_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.ss3_1.gqk().q7f(); var tmp_15; if (!this.zs3_1.c1()) { tmp_15 = this_8; } else { tmp_15 = null; } tmp_14.os4_1 = tmp_15; if (this.os4_1 == null) { this.ps4_1 = null; this.hd_1 = 19; continue $sm; } else { this.hd_1 = 18; suspendResult = this.os4_1.yd0(this.zs3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 18: var tmp_16 = this; tmp_16.ps4_1 = Unit_instance; this.hd_1 = 19; continue $sm; case 19: Napier_getInstance().i5e('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).env = function (it, completion) { var i = new ClazzEditViewModel$onClickSave$slambda$slambda(this.ss3_1, this.ts3_1, this.us3_1, this.vs3_1, this.ws3_1, this.xs3_1, this.ys3_1, this.zs3_1, completion); i.as4_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.dnv(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda$lambda($updatedBlock) { return function (it) { return it.dk4_1.t7x_1.equals($updatedBlock.dk4_1.t7x_1); }; } function _get_createNewClazzUseCase__mo489e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xru_1; createNewClazzUseCase$factory_0(); return this_0.t2(); } function updateCourseBlockList($this, newCourseBlockList, $completion) { var tmp = new $updateCourseBlockListCOROUTINE$66($this, newCourseBlockList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function hasErrors(_this__u8e3s4, $this) { return (!(_this__u8e3s4.arv_1 == null) ? true : !(_this__u8e3s4.brv_1 == null)) ? true : !(_this__u8e3s4.crv_1 == null); } function updateCourseBlock($this, updatedBlock) { var tmp = $this.dqk(); launch(tmp, VOID, VOID, ClazzEditViewModel$updateCourseBlock$slambda_0($this, updatedBlock, null)); } function Companion_113() { this.bs5_1 = 'CourseEdit'; this.cs5_1 = 'Schedule'; this.ds5_1 = 'schedule'; this.es5_1 = 'courseblock'; this.fs5_1 = 'timeZone'; this.gs5_1 = 'terminology'; this.hs5_1 = 'courseblocks'; this.is5_1 = 'clazzDescriptionHtml'; } var Companion_instance_162; function Companion_getInstance_130() { return Companion_instance_162; } function sam$kotlinx_coroutines_flow_FlowCollector$0_10(function_0) { this.js5_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_10).t1d = function (value, $completion) { return this.js5_1(value, $completion); }; function ClazzEditViewModel$slambda(this$0, resultContinuation) { this.ss5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda).vs5 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.ss5_1.uqp_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.ts5_1.o7f(); var tmp_1 = this.ss5_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.adk(tmp_1, this.ss5_1.uqp_1, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; var tmp_2 = this.ts5_1.p7f(); var tmp_3 = this.ss5_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_2.jhw(tmp_3, new Long(512, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.us5_1 = suspendResult; this.hd_1 = 3; continue $sm; case 2: this.us5_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: return this.us5_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).env = function (it, completion) { var i = new ClazzEditViewModel$slambda(this.ss5_1, completion); i.ts5_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.vs5(it, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$slambda_1($savedStateHandle, this$0, resultContinuation) { this.es6_1 = $savedStateHandle; this.fs6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_0(this.fs6_1, this.es6_1, null)); var tmp_1 = async(this.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_2(this.fs6_1, null)); suspendResult = awaitAll([tmp_0, tmp_1, async(this.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_4(this.fs6_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_123(); if (this.es6_1.ba('initState') == null) { var tmp_2 = this; Companion_getInstance_123(); tmp_2.hs6_1 = 'initState'; this.hd_1 = 2; var tmp_3 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_3, ClazzEditViewModel$slambda$slambda_6(this.fs6_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.es6_1.qqf(this.hs6_1, ARGUMENT); this.hd_1 = 3; continue $sm; case 3: launch(this.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_8(this.fs6_1, this.es6_1, null)); launch(this.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_10(this.fs6_1, null)); launch(this.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_12(this.fs6_1, null)); launch(this.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_14(this.fs6_1, null)); launch(this.gs6_1, VOID, VOID, ClazzEditViewModel$slambda$slambda_16(this.fs6_1, null)); l$ret$1: do { var this_0 = this.fs6_1.uru_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.grv(true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.fs6_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_4 = Companion_getInstance_96().jq3_1; var tmp_5 = this.fs6_1.mqk().eog(strings_getInstance().tmy_1); var nextValue_0 = prevValue_0.bq3(VOID, tmp_4, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_5, VOID, ClazzEditViewModel$onClickSave$ref(this.fs6_1))); if (this_1.y1k(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).v1m = function ($this$launchIfHasPermission, completion) { var i = new ClazzEditViewModel$slambda_1(this.es6_1, this.fs6_1, completion); i.gs6_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlockList$slambda(this$0, $newCourseBlockList, resultContinuation) { this.qs6_1 = this$0; this.rs6_1 = $newCourseBlockList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).zqw = function ($this$withContext, $completion) { var tmp = this.v1m($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.zqw((!(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.qs6_1.m4r().r45(ListSerializer(Companion_getInstance_13().n4r()), this.rs6_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzEditViewModel$updateCourseBlockList$slambda).v1m = function ($this$withContext, completion) { var i = new ClazzEditViewModel$updateCourseBlockList$slambda(this.qs6_1, this.rs6_1, completion); i.ss6_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.zqw($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.bs7_1 = $commitDelay; this.cs7_1 = $entity; this.ds7_1 = $this; this.es7_1 = $key; this.fs7_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.bs7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.cs7_1 == null)) { this.hd_1 = 2; suspendResult = this.ds7_1.sqk(this.ds7_1.mqj_1, this.es7_1, this.fs7_1, this.cs7_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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$onEntityChanged$slambda(this.bs7_1, this.cs7_1, this.ds7_1, this.es7_1, this.fs7_1, completion); i.gs7_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.u1m($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.b8e_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.s8d_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.s8d_1 = tmp_0; var tmp_1 = $this$shallowCopy; var tmp_2 = Companion_getInstance_6().rmc($initEntity.z8d_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs = $initEntity.j8e_1; var tmp$ret$1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; tmp_1.z8d_1 = toLocalMidnight(tmp_2, tmp$ret$1).qmc(); var tmp_3; var tmp_4 = $this$shallowCopy.a8e_1; Companion_getInstance_2(); if (!tmp_4.equals(new Long(-1, 2147483647))) { var tmp_5 = $this$shallowCopy; var tmp_6 = Companion_getInstance_6().rmc($initEntity.a8e_1); // Inline function 'com.ustadmobile.core.util.ext.effectiveTimeZone' call var tmp0_elvis_lhs_0 = $initEntity.j8e_1; var tmp$ret$2 = tmp0_elvis_lhs_0 == null ? 'UTC' : tmp0_elvis_lhs_0; tmp_5.a8e_1 = toLocalEndOfDay(tmp_6, tmp$ret$2).qmc(); 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.uru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave..' call var nextValue = prevValue.grv(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEditViewModel$onClickSave$slambda(this$0, $entity, $initEntity, resultContinuation) { this.ps7_1 = this$0; this.qs7_1 = $entity; this.rs7_1 = $initEntity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickSave$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.j87($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_123(); suspendResult = this.ps7_1.rqk(this.ps7_1.mqj_1, 'initState', Companion_getInstance_131().n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ss7_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.ss7_1 == null) { return Unit_instance; } else { tmp_1 = this.ss7_1; } tmp_0.ts7_1 = tmp_1; Napier_getInstance().i5e('onClickSave: start transaction'); this.us7_1 = this.ps7_1.uru_1.t2().erv_1; this.vs7_1 = this.qs7_1.l8g_1; var tmp_2 = this; var tmp_3; if (!(this.vs7_1 == null)) { Companion_getInstance_121(); var tmp_4 = this.ps7_1.mqj_1.ba('initPicUri'); var tmp1_safe_receiver = this.qs7_1.l8g_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s8g_1; tmp_3 = !(tmp_4 === (tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs)); } else { tmp_3 = false; } tmp_2.ws7_1 = tmp_3; var tmp_5 = this; var this_0 = this.us7_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.ek4_1; var imageUriNow = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y7y_1; var tmp$ret$0; l$ret$1: do { var tmp0_iterator_0 = this.ts7_1.erv_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); var tmp0_safe_receiver_0 = element_0.ek4_1; var tmp_6 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.w7y_1; var tmp1_safe_receiver_0 = element.ek4_1; if (equals(tmp_6, tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.w7y_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.ek4_1; var initImageUri = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y7y_1; var tmp3_safe_receiver = element.ek4_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.xs7_1 = destination; this.hd_1 = 2; var tmp_9 = this.ps7_1.gqk(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzEditViewModel$onClickSave$slambda$slambda_0(this.ps7_1, this.rs7_1, this.ws7_1, this.vs7_1, this.qs7_1, this.ts7_1, this.us7_1, this.xs7_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Napier_getInstance().i5e('onClickSave: transaction done'); var tmp_10 = this; tmp_10.ys7_1 = this.us7_1; this.zs7_1 = this.ys7_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.zs7_1.f()) { this.hd_1 = 6; continue $sm; } this.as8_1 = this.zs7_1.e(); var tmp_11 = this; tmp_11.bs8_1 = this.as8_1; this.cs8_1 = this.bs8_1.fk4_1; if (this.cs8_1 == null) { this.ds8_1 = null; this.hd_1 = 5; continue $sm; } else { var tmp_12 = this; tmp_12.es8_1 = this.cs8_1; var tmp_13 = this; tmp_13.fs8_1 = this.es8_1; this.hd_1 = 4; var tmp$ret$2; l$ret$3: do { var tmp0_iterator_1 = this.ts7_1.erv_1.w(); while (tmp0_iterator_1.f()) { var element_1 = tmp0_iterator_1.e(); var tmp0_safe_receiver_2 = element_1.ek4_1; var tmp_14 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.w7y_1; var tmp1_safe_receiver_2 = this.bs8_1.ek4_1; if (equals(tmp_14, tmp1_safe_receiver_2 == null ? null : tmp1_safe_receiver_2.w7y_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.ek4_1; suspendResult = this.ps7_1.rru_1.yp7(this.fs8_1, null, this.bs8_1.gk4_1, tmp1_safe_receiver_3 == null ? null : tmp1_safe_receiver_3.y7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.ds8_1 = this.es8_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.ps7_1.tru_1; var tmp_16; if (this.ws7_1) { tmp_16 = this_1; } else { tmp_16 = null; } tmp_15.gs8_1 = tmp_16; if (this.gs8_1 == null) { this.hs8_1 = null; this.hd_1 = 8; continue $sm; } else { this.hd_1 = 7; var tmp_17 = this.qs7_1.r8d_1; var tmp3_safe_receiver_0 = this.vs7_1; suspendResult = this.gs8_1.poo(tmp_17, 125, tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.s8g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 7: var tmp_18 = this; tmp_18.hs8_1 = Unit_instance; this.hd_1 = 8; continue $sm; case 8: var tmp_19 = this; tmp_19.is8_1 = this.xs7_1; this.js8_1 = this.is8_1.w(); this.hd_1 = 9; continue $sm; case 9: if (!this.js8_1.f()) { this.hd_1 = 11; continue $sm; } this.ks8_1 = this.js8_1.e(); var tmp_20 = this; tmp_20.ls8_1 = this.ks8_1; this.hd_1 = 10; var tmp_21 = this.ls8_1.w7y_1; suspendResult = this.ps7_1.tru_1.poo(tmp_21, 6677, this.ls8_1.y7y_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: this.hd_1 = 9; continue $sm; case 11: Napier_getInstance().i5e('onClickSave: done'); this.ps7_1.wqp('Course', this.qs7_1.r8d_1, this.qs7_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).l78 = function (completion) { return new ClazzEditViewModel$onClickSave$slambda(this.ps7_1, this.qs7_1, this.rs7_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.j87($completion); }; l.$arity = 0; return l; } function ClazzEditViewModel$onCourseBlockMoved$slambda(this$0, $newList, resultContinuation) { this.ws8_1 = this$0; this.xs8_1 = $newList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onCourseBlockMoved$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ws8_1, this.xs8_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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$onCourseBlockMoved$slambda(this.ws8_1, this.xs8_1, completion); i.ys8_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$updateCourseBlock$slambda(this$0, $updatedBlock, resultContinuation) { this.hs9_1 = this$0; this.is9_1 = $updatedBlock; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$updateCourseBlock$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.hs9_1.uru_1.t2().erv_1; suspendResult = updateCourseBlockList(this.hs9_1, replace_0(tmp_0, this.is9_1, ClazzEditViewModel$updateCourseBlock$slambda$lambda(this.is9_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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$updateCourseBlock$slambda(this.hs9_1, this.is9_1, completion); i.js9_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEditViewModel$onClickDeleteCourseBlock$slambda(this$0, $block, resultContinuation) { this.ss9_1 = this$0; this.ts9_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEditViewModel$onClickDeleteCourseBlock$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ss9_1.uru_1.t2().erv_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.dk4_1.t7x_1.equals(this.ts9_1.dk4_1.t7x_1)) { destination.i1(element); } } suspendResult = updateCourseBlockList(this.ss9_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).v1m = function ($this$launch, completion) { var i = new ClazzEditViewModel$onClickDeleteCourseBlock$slambda(this.ss9_1, this.ts9_1, completion); i.us9_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $updateCourseBlockListCOROUTINE$66(_this__u8e3s4, newCourseBlockList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ys4_1 = _this__u8e3s4; this.zs4_1 = newCourseBlockList; } protoOf($updateCourseBlockListCOROUTINE$66).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.ys4_1.uru_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.grv(VOID, VOID, VOID, VOID, VOID, VOID, this.zs4_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.as5_1 = this.ys4_1.mqj_1; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, ClazzEditViewModel$updateCourseBlockList$slambda_0(this.ys4_1, this.zs4_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.as5_1.qqf('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)).f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(onActiveLearningSpace(di)).f58(); // 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.d58(tmp$ret$2, null).jjy_1; // Inline function 'org.kodein.di.instance' call var tmp_6 = get_direct(onActiveLearningSpace(di)).f58(); // 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.d58(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)).f58(); // 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.d58(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)).f58(); // 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.d58(tmp$ret$0_1, null); } else { tmp_11 = enqueueSavePictureUseCase; } enqueueSavePictureUseCase = tmp_11; UstadEditViewModel.call(this, di, savedStateHandle, 'CourseEdit'); this.pru_1 = addOrUpdateCourseBlockUseCase; this.qru_1 = updateCourseBlocksOnReorderOrCommitUseCase; this.rru_1 = saveContentEntryUseCase; this.sru_1 = importContentUseCase; this.tru_1 = enqueueSavePictureUseCase; this.uru_1 = MutableStateFlow(new ClazzEditUiState()); this.vru_1 = asStateFlow(this.uru_1); var tmp_14 = this; Companion_getInstance_123(); 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.gqk()); Companion_getInstance_4(); tmp_15 = tmp_16.n62(6); } else { tmp_15 = tmp1_elvis_lhs; } tmp_14.wru_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.xru_1 = Instance(this_0, tmp$ret$10, null).a5d(this, createNewClazzUseCase$factory()); var title = this.wqq(strings_getInstance().vne_1, strings_getInstance().xne_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.' call var tmp0_loadingState = Companion_getInstance_96().iq3_1; var nextValue = new AppUiState(VOID, tmp0_loadingState, title, VOID, true); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_19 = ClazzEditViewModel$slambda_0(this, null); this.yqk(tmp_19, VOID, VOID, ClazzEditViewModel$slambda_2(savedStateHandle, this, null)); } protoOf(ClazzEditViewModel).xry = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.zru_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a8e_1; var tmp6_clazzEndDateError = this.xqq(tmp, entity == null ? null : entity.a8e_1, prevValue.brv_1); var tmp0_safe_receiver = prevValue.zru_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z8d_1; var tmp7_clazzStartDateError = this.xqq(tmp_0, entity == null ? null : entity.z8d_1, prevValue.arv_1); var tmp4_safe_receiver = prevValue.zru_1; var tmp_1 = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.s8d_1; var tmp8_clazzNameError = this.xqq(tmp_1, entity == null ? null : entity.s8d_1, prevValue.crv_1); var nextValue = prevValue.grv(VOID, entity, tmp7_clazzStartDateError, tmp6_clazzEndDateError, tmp8_clazzNameError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_33.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.dqk(); tmp_2.tqp_1 = launch(tmp_3, VOID, VOID, ClazzEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEditViewModel).vs9 = function (checked) { var tmp0_safe_receiver = this.uru_1.t2().zru_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_3(tmp0_safe_receiver, ClazzEditViewModel$onCheckedAttendanceChanged$lambda(checked)); } this.xry(tmp); }; protoOf(ClazzEditViewModel).ws9 = function () { this.uqk('ScheduleEdit', 'Schedule', null, Companion_instance_29.n4r()); }; protoOf(ClazzEditViewModel).xs9 = function (schedule) { this.uqk('ScheduleEdit', 'Schedule', schedule, Companion_instance_29.n4r()); }; protoOf(ClazzEditViewModel).ys9 = function (schedule) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.uru_1.t2().drv_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.fhb_1.equals(schedule.fhb_1)) { destination.i1(element); } } var newSchedules = destination; this.mqj_1.qqf('schedule', this.m4r().r45(ListSerializer(Companion_instance_29.n4r()), newSchedules)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.uru_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickDeleteSchedule.' call var nextValue = prevValue.grv(VOID, VOID, VOID, VOID, VOID, newSchedules); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzEditViewModel).zs9 = function (blockType) { if (blockType === 104) { Companion_getInstance_167(); var tmp = Companion_getInstance_13().n4r(); Companion_getInstance_114(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().toString()); Companion_getInstance_114(); var tmp_1 = to('clazzUid', this.wru_1.toString()); Companion_getInstance_172(); var tmp_2 = to('blockType', (104).toString()); this.uqk('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_172(); 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_172(); this_0.s('blockType', blockType.toString()); Companion_getInstance_114(); this_0.s('clazzUid', this.wru_1.toString()); if (blockType === 103) { var tmp0_safe_receiver = this.uru_1.t2().zru_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k8g_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.m4r().r45(Companion_instance_34.n4r(), tmp1_safe_receiver)); } } var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_getInstance_13().n4r(); this.uqk(viewName, keyName, null, tmp3_serializer, tmp2_args); }; protoOf(ClazzEditViewModel).js3 = function () { var tmp0_elvis_lhs = this.uru_1.t2().zru_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var initEntity = tmp; if (this.pqk().equals(Companion_getInstance_96().iq3_1)) { Napier_getInstance().i5e('onClickSave: indeterminate'); return Unit_instance; } if (initEntity.z8d_1.equals(new Long(0, 0))) { Napier_getInstance().i5e('onClickSave: clazzstarttime = 0'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.uru_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditViewModel.onClickSave.' call var nextValue = prevValue.grv(VOID, VOID, this.mqk().eog(strings_getInstance().hmj_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } if (initEntity.a8e_1.c7(initEntity.z8d_1) <= 0) { Napier_getInstance().i5e('onClickSave: endbeforestart'); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.uru_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.grv(VOID, VOID, VOID, this.mqk().eog(strings_getInstance().bnh_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } // Inline function 'kotlin.text.isNullOrBlank' call var this_2 = initEntity.s8d_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.uru_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.grv(VOID, VOID, VOID, VOID, this.mqk().eog(strings_getInstance().lnh_1)); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (hasErrors(this.uru_1.t2(), this)) { Napier_getInstance().i5e('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.uru_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.grv(VOID, entity); if (this_4.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_0 = ClazzEditViewModel$onClickSave$lambda_0(this); this.zqq(tmp_0, ClazzEditViewModel$onClickSave$slambda_0(this, entity, initEntity, null)); }; protoOf(ClazzEditViewModel).asa = function (from, to) { // Inline function 'kotlin.apply' call var this_0 = toMutableList(this.uru_1.t2().erv_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.qru_1.ap8(reorderedList, to); var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzEditViewModel$onCourseBlockMoved$slambda_0(this, newList, null)); }; protoOf(ClazzEditViewModel).bsa = function () { Companion_getInstance_114(); var tmp = to('result_key', 'timeZone'); Companion_getInstance_114(); this.oqj_1.fp3('TimeZoneList', mapOf([tmp, to('result_viewname', this.nqj_1)])); }; protoOf(ClazzEditViewModel).csa = function () { }; protoOf(ClazzEditViewModel).dsa = function () { this.uqk('CourseTerminologyList', 'terminology', null, Companion_instance_34.n4r()); }; protoOf(ClazzEditViewModel).esa = function (block) { updateCourseBlock(this, block.pk4(block.dk4_1.vkh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true))); }; protoOf(ClazzEditViewModel).fsa = function (block) { updateCourseBlock(this, block.pk4(block.dk4_1.vkh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false))); }; protoOf(ClazzEditViewModel).gsa = function (block) { updateCourseBlock(this, block.pk4(block.dk4_1.vkh(VOID, VOID, block.dk4_1.v7x_1 + 1 | 0))); }; protoOf(ClazzEditViewModel).hsa = function (block) { updateCourseBlock(this, block.pk4(block.dk4_1.vkh(VOID, VOID, block.dk4_1.v7x_1 - 1 | 0))); }; protoOf(ClazzEditViewModel).isa = function (block) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzEditViewModel$onClickDeleteCourseBlock$slambda_0(this, block, null)); }; protoOf(ClazzEditViewModel).jsa = function (block) { var tmp0_subject = block.dk4_1.u7x_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_172(); var tmp1_nextViewName = 'CourseBlockEdit'; var tmp2_key = 'courseblock'; var tmp3_serializer = Companion_getInstance_13().n4r(); this.uqk(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().n4r(); // 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_114(); this_0.s('clazzUid', this.wru_1.toString()); var tmp0_safe_receiver = this.uru_1.t2().zru_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k8g_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.m4r().r45(Companion_instance_34.n4r(), tmp1_safe_receiver)); } var tmp7_args = this_0.f3(); this.uqk(tmp4_nextViewName, tmp5_key, block, tmp6_serializer, tmp7_args); } } }; function CourseBlockUiState(block) { this.ksa_1 = block; } protoOf(CourseBlockUiState).lsa = function () { var tmp; var tmp_0 = this.ksa_1.dk4_1.u7x_1; if (!(tmp_0 === 100)) { tmp = this.ksa_1.dk4_1.v7x_1 < 3; } else { tmp = false; } return tmp; }; protoOf(CourseBlockUiState).msa = function () { return this.ksa_1.dk4_1.v7x_1 > 0; }; protoOf(CourseBlockUiState).nsa = function () { return !this.ksa_1.dk4_1.k7y_1; }; protoOf(CourseBlockUiState).osa = function () { return this.ksa_1.dk4_1.k7y_1; }; function Companion_114() { Companion_instance_163 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.ms8_1 = [null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_7()), new ArrayListSerializer($serializer_getInstance_8()), null]; this.ns8_1 = 3; } protoOf(Companion_114).n4r = function () { return $serializer_getInstance_68(); }; var Companion_instance_163; function Companion_getInstance_131() { if (Companion_instance_163 == null) new Companion_114(); return Companion_instance_163; } function $serializer_56() { $serializer_instance_56 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.edit.ClazzEditUiState', this, 8); tmp0_serialDesc.t4f('fieldsEnabled', true); tmp0_serialDesc.t4f('entity', true); tmp0_serialDesc.t4f('clazzStartDateError', true); tmp0_serialDesc.t4f('clazzEndDateError', true); tmp0_serialDesc.t4f('clazzNameError', true); tmp0_serialDesc.t4f('clazzSchedules', true); tmp0_serialDesc.t4f('courseBlockList', true); tmp0_serialDesc.t4f('timeZone', true); this.psa_1 = tmp0_serialDesc; } protoOf($serializer_56).q44 = function () { return this.psa_1; }; protoOf($serializer_56).k4g = function () { var tmp0_cached = Companion_getInstance_131().ms8_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_56).s44 = function (decoder) { var tmp0_desc = this.psa_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.i48(tmp0_desc); var tmp13_cached = Companion_getInstance_131().ms8_1; if (tmp12_input.x48()) { tmp4_local0 = tmp12_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.u48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.u48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.s48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.w48(tmp0_desc, 1, $serializer_getInstance_9(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.w48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.u48(tmp0_desc, 5, tmp13_cached[5], tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.u48(tmp0_desc, 6, tmp13_cached[6], tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.s48(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.j48(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_56).qsa = function (encoder, value) { var tmp0_desc = this.psa_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_131().ms8_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.yru_1 === false)) { tmp1_output.o49(tmp0_desc, 0, value.yru_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.zru_1 == null)) { tmp1_output.a4a(tmp0_desc, 1, $serializer_getInstance_9(), value.zru_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.arv_1 == null)) { tmp1_output.a4a(tmp0_desc, 2, StringSerializer_getInstance(), value.arv_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.brv_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.brv_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.crv_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.crv_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !equals(value.drv_1, emptyList())) { tmp1_output.y49(tmp0_desc, 5, tmp2_cached[5], value.drv_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !equals(value.erv_1, emptyList())) { tmp1_output.y49(tmp0_desc, 6, tmp2_cached[6], value.erv_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.frv_1 === 'UTC')) { tmp1_output.w49(tmp0_desc, 7, value.frv_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_56).r44 = function (encoder, value) { return this.qsa(encoder, value instanceof ClazzEditUiState ? value : THROW_CCE()); }; var $serializer_instance_56; function $serializer_getInstance_68() { if ($serializer_instance_56 == null) new $serializer_56(); return $serializer_instance_56; } function ClazzEditUiState_init_$Init$(seen1, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_68().psa_1); } if (0 === (seen1 & 1)) $this.yru_1 = false; else $this.yru_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.zru_1 = null; else $this.zru_1 = entity; if (0 === (seen1 & 4)) $this.arv_1 = null; else $this.arv_1 = clazzStartDateError; if (0 === (seen1 & 8)) $this.brv_1 = null; else $this.brv_1 = clazzEndDateError; if (0 === (seen1 & 16)) $this.crv_1 = null; else $this.crv_1 = clazzNameError; if (0 === (seen1 & 32)) $this.drv_1 = emptyList(); else $this.drv_1 = clazzSchedules; if (0 === (seen1 & 64)) $this.erv_1 = emptyList(); else $this.erv_1 = courseBlockList; if (0 === (seen1 & 128)) $this.frv_1 = 'UTC'; else $this.frv_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_131(); 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.yru_1 = fieldsEnabled; this.zru_1 = entity; this.arv_1 = clazzStartDateError; this.brv_1 = clazzEndDateError; this.crv_1 = clazzNameError; this.drv_1 = clazzSchedules; this.erv_1 = courseBlockList; this.frv_1 = timeZone; } protoOf(ClazzEditUiState).rsa = function () { var tmp; var tmp0_safe_receiver = this.zru_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b8e_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).ssa = function (courseBlockAndEditEntities) { return new CourseBlockUiState(courseBlockAndEditEntities); }; protoOf(ClazzEditUiState).tsa = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) { return new ClazzEditUiState(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).grv = function (fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.yru_1 : fieldsEnabled; entity = entity === VOID ? this.zru_1 : entity; clazzStartDateError = clazzStartDateError === VOID ? this.arv_1 : clazzStartDateError; clazzEndDateError = clazzEndDateError === VOID ? this.brv_1 : clazzEndDateError; clazzNameError = clazzNameError === VOID ? this.crv_1 : clazzNameError; clazzSchedules = clazzSchedules === VOID ? this.drv_1 : clazzSchedules; courseBlockList = courseBlockList === VOID ? this.erv_1 : courseBlockList; timeZone = timeZone === VOID ? this.frv_1 : timeZone; return $super === VOID ? this.tsa(fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone) : $super.tsa.call(this, fieldsEnabled, entity, clazzStartDateError, clazzEndDateError, clazzNameError, clazzSchedules, courseBlockList, timeZone); }; protoOf(ClazzEditUiState).toString = function () { return 'ClazzEditUiState(fieldsEnabled=' + this.yru_1 + ', entity=' + this.zru_1 + ', clazzStartDateError=' + this.arv_1 + ', clazzEndDateError=' + this.brv_1 + ', clazzNameError=' + this.crv_1 + ', clazzSchedules=' + this.drv_1 + ', courseBlockList=' + this.erv_1 + ', timeZone=' + this.frv_1 + ')'; }; protoOf(ClazzEditUiState).hashCode = function () { var result = getBooleanHashCode(this.yru_1); result = imul(result, 31) + (this.zru_1 == null ? 0 : this.zru_1.hashCode()) | 0; result = imul(result, 31) + (this.arv_1 == null ? 0 : getStringHashCode(this.arv_1)) | 0; result = imul(result, 31) + (this.brv_1 == null ? 0 : getStringHashCode(this.brv_1)) | 0; result = imul(result, 31) + (this.crv_1 == null ? 0 : getStringHashCode(this.crv_1)) | 0; result = imul(result, 31) + hashCode(this.drv_1) | 0; result = imul(result, 31) + hashCode(this.erv_1) | 0; result = imul(result, 31) + getStringHashCode(this.frv_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.yru_1 === tmp0_other_with_cast.yru_1)) return false; if (!equals(this.zru_1, tmp0_other_with_cast.zru_1)) return false; if (!(this.arv_1 == tmp0_other_with_cast.arv_1)) return false; if (!(this.brv_1 == tmp0_other_with_cast.brv_1)) return false; if (!(this.crv_1 == tmp0_other_with_cast.crv_1)) return false; if (!equals(this.drv_1, tmp0_other_with_cast.drv_1)) return false; if (!equals(this.erv_1, tmp0_other_with_cast.erv_1)) return false; if (!(this.frv_1 === tmp0_other_with_cast.frv_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.t7x_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.u7x_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.w7x_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.w7x_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.t7x_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.oax_1)) { var blockForStatus = moduleBlockUids.q(element_3.oax_1); if ((blockForStatus == null ? null : isCompleteable(blockForStatus)) === true) { numCompleteableBlocksInModule = numCompleteableBlocksInModule + 1 | 0; } var tmp3_safe_receiver = blockForStatus == null ? null : blockForStatus.e7y_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.sax_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.e7y_1; totalPointsScored = tmp_3 + tmp4_safe_receiver * (tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs); numBlocksWithScoreResult = numBlocksWithScoreResult + 1 | 0; } if (element_3.qax_1) { numModsComplete = numModsComplete + 1 | 0; } var tmp6_safe_receiver = element_3.rax_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.nax_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.oax_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.u7x_1); } function markFor(_this__u8e3s4, maxPoints) { _init_properties_BlockStatusExt_kt__pb774u(); var scaledMarkVal = _this__u8e3s4.sax_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$67(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.csb_1 = _this__u8e3s4; this.dsb_1 = params; } protoOf($loadCOROUTINE$67).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 3; this.csb_1.j6c(); this.hd_1 = 1; suspendResult = this.csb_1.ksb_1.p54(this.dsb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.esb_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.csb_1.lsb_1.j7e(); var tmp_1 = this.esb_1; var tmp0_safe_receiver = tmp_1 instanceof Page ? tmp_1 : null; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c54_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.a96_1; var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.f96_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.dja(this.csb_1.msb_1, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs, this.csb_1.nsb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var blockResults = suspendResult; var tmp3_subject = this.esb_1; var tmp_3; if (tmp3_subject instanceof Page) { var tmp_4 = this.esb_1; var studentListResultCasted = tmp_4 instanceof Page ? tmp_4 : THROW_CCE(); var this_0 = studentListResultCasted.c54_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.nax_1; var tmp0_safe_receiver_2 = item.a96_1; if (tmp_5.equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.f96_1)) { destination_1.i1(element_0); } } destination_0.i1(new StudentAndBlockStatuses(item, destination_1)); } tmp_3 = new Page(destination_0, studentListResultCasted.d54_1, studentListResultCasted.e54_1, studentListResultCasted.f54_1, studentListResultCasted.g54_1); } else { if (tmp3_subject instanceof Error_0) { tmp_3 = new Error_0(this.esb_1.b54_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$68(_this__u8e3s4, params, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.wsb_1 = _this__u8e3s4; this.xsb_1 = params; } protoOf($loadHttpCOROUTINE$68).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.wsb_1.ksb_1; tmp_0.ysb_1 = isInterface(tmp_1, PagingSourceWithHttpLoader) ? tmp_1 : null; if (this.ysb_1 == null) { this.zsb_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.ysb_1.y6e(this.xsb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.zsb_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp1_elvis_lhs = this.zsb_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.ksb_1 = studentListPagingSource; this.lsb_1 = db; this.msb_1 = clazzUid; this.nsb_1 = accountPersonUid; } protoOf(ClazzGradebookPagingSource).asc = function (params, $completion) { var tmp = new $loadCOROUTINE$67(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).p54 = function (params, $completion) { return this.asc(params, $completion); }; protoOf(ClazzGradebookPagingSource).x6e = function (params, $completion) { var tmp = new $loadHttpCOROUTINE$68(this, params, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookPagingSource).y6e = function (params, $completion) { return this.x6e(params, $completion); }; function ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.jsc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda).lsc = function (courseBlockList, $completion) { var tmp = this.msc(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.lsc((!(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.jsc_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.tsd(this.ksc_1, this.jsc_1.osd_1); if (this_0.y1k(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).msc = function (courseBlockList, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda(this.jsc_1, completion); i.ksc_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.lsc(courseBlockList, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.cse_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1).lrc = function (it, $completion) { var tmp = this.mrc(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.lrc((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.cse_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(VOID, VOID, this.dse_1); if (this_0.y1k(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).mrc = function (it, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda$slambda_1(this.cse_1, completion); i.dse_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.lrc(it, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.mse_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.mse_1.iqk().p7d().fcl(this.mse_1.nsd_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_0(this.mse_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda(this.mse_1, completion); i.nse_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.wse_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wse_1.iqk().o7d().b8d(this.wse_1.nsd_1)); var tmp_1 = ClazzGradebookViewModel$slambda$slambda$slambda$slambda_2(this.wse_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda$slambda$slambda_1(this.wse_1, completion); i.xse_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzGradebookViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.gsf_1 = $this_launch; this.hsf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.gsf_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_0(this.hsf_1, null)); launch(this.gsf_1, VOID, VOID, ClazzGradebookViewModel$slambda$slambda$slambda_2(this.hsf_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).l78 = function (completion) { return new ClazzGradebookViewModel$slambda$slambda(this.gsf_1, this.hsf_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.j87($completion); }; l.$arity = 0; return l; } function Companion_115() { this.isf_1 = 'Gradebook'; } var Companion_instance_164; function Companion_getInstance_132() { return Companion_instance_164; } function sam$kotlinx_coroutines_flow_FlowCollector$0_11(function_0) { this.jsf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_11).t1d = function (value, $completion) { return this.jsf_1(value, $completion); }; function ClazzGradebookViewModel$studentPagingSource$lambda(this$0) { return function () { var tmp = this$0.iqk().t7d(); return new ClazzGradebookPagingSource(tmp.k93(this$0.nsd_1, 1000, 1, '%', 0, this$0.eqk(), systemTimeInMillis()), this$0.gqk(), this$0.nsd_1, this$0.eqk()); }; } function ClazzGradebookViewModel$slambda(this$0, resultContinuation) { this.ssf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzGradebookViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzGradebookViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.ssf_1.hqs_1, ClazzGradebookViewModel$slambda$slambda_0(this.tsf_1, this.ssf_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).v1m = function ($this$launch, completion) { var i = new ClazzGradebookViewModel$slambda(this.ssf_1, completion); i.tsf_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.u1m($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_123(); 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.nsd_1 = tmp_0; var tmp_1 = this; tmp_1.osd_1 = ClazzGradebookViewModel$studentPagingSource$lambda(this); var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, ClazzGradebookViewModel$slambda_0(this, null)); } protoOf(ClazzGradebookViewModel).bqt = function (searchText) { }; protoOf(ClazzGradebookViewModel).cqt = 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.psd_1 = courseBlocks; this.qsd_1 = results; this.rsd_1 = isFullScreen; this.ssd_1 = scale; } protoOf(ClazzGradebookUiState).usf = function (courseBlocks, results, isFullScreen, scale) { return new ClazzGradebookUiState(courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).tsd = function (courseBlocks, results, isFullScreen, scale, $super) { courseBlocks = courseBlocks === VOID ? this.psd_1 : courseBlocks; results = results === VOID ? this.qsd_1 : results; isFullScreen = isFullScreen === VOID ? this.rsd_1 : isFullScreen; scale = scale === VOID ? this.ssd_1 : scale; return $super === VOID ? this.usf(courseBlocks, results, isFullScreen, scale) : $super.usf.call(this, courseBlocks, results, isFullScreen, scale); }; protoOf(ClazzGradebookUiState).toString = function () { return 'ClazzGradebookUiState(courseBlocks=' + this.psd_1 + ', results=' + this.qsd_1 + ', isFullScreen=' + this.rsd_1 + ', scale=' + this.ssd_1 + ')'; }; protoOf(ClazzGradebookUiState).hashCode = function () { var result = hashCode(this.psd_1); result = imul(result, 31) + hashCode(this.qsd_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rsd_1) | 0; result = imul(result, 31) + getNumberHashCode(this.ssd_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.psd_1, tmp0_other_with_cast.psd_1)) return false; if (!equals(this.qsd_1, tmp0_other_with_cast.qsd_1)) return false; if (!(this.rsd_1 === tmp0_other_with_cast.rsd_1)) return false; if (!equals(this.ssd_1, tmp0_other_with_cast.ssd_1)) return false; return true; }; function get_thumbnailUri(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.zco_1; var tmp2_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z7y_1; var tmp; if (tmp2_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.bcp_1; tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xaw_1; } else { tmp = tmp2_elvis_lhs; } return tmp; } function maxScoreForBlock(_this__u8e3s4, block) { var blockVal = block.yco_1; var tmp; var tmp_0 = blockVal == null ? null : blockVal.u7x_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.yco_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w7x_1, blockVal.t7x_1)) { var tmp1_safe_receiver = element.yco_1; tmp_2 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e7y_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.yco_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.e7y_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.yco_1; if (equals(tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.w7x_1, blockVal.t7x_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.e7y_1; } return tmp; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this$0, resultContinuation) { this.dsg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda).fsg = function (inviteAndClazz, $completion) { var tmp = this.gsg(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.fsg((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.dsg_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_0; var tmp0_safe_receiver = this.esg_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p9n_1) == null)) { tmp_0 = Companion_getInstance_96().jq3_1; } else { tmp_0 = Companion_getInstance_96().iq3_1; } var nextValue = prevValue.bq3(VOID, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.dsg_1.csh_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_0 = this.esg_1; var nextValue_0 = prevValue_0.jsh(this.esg_1, !((tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.p9n_1) == null)); if (this_1.y1k(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).gsg = function (inviteAndClazz, completion) { var i = new ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda(this.dsg_1, completion); i.esg_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.fsg(inviteAndClazz, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.ssh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzInviteRedeemViewModel$lambda$slambda$slambda).m78 = function ($completion) { return this.j87($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.ssh_1.iqk().e7g().k9m(this.ssh_1.fsh_1); var tmp_1 = ClazzInviteRedeemViewModel$lambda$slambda$slambda$slambda_0(this.ssh_1, null); suspendResult = tmp_0.a1c(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).l78 = function (completion) { return new ClazzInviteRedeemViewModel$lambda$slambda$slambda(this.ssh_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.j87($completion); }; l.$arity = 0; return l; } function _get_clazzInviteRedeemUseCase__c3cagh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.esh_1; clazzInviteRedeemUseCase$factory_0(); return this_0.t2(); } function Companion_116() { this.tsh_1 = 'ClazzInviteRedeem'; } var Companion_instance_165; function Companion_getInstance_133() { return Companion_instance_165; } function sam$kotlinx_coroutines_flow_FlowCollector$0_12(function_0) { this.ush_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_12).t1d = function (value, $completion) { return this.ush_1(value, $completion); }; function ClazzInviteRedeemViewModel$lambda$slambda(this$0, resultContinuation) { this.dsi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$lambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.dsi_1.csh_1, ClazzInviteRedeemViewModel$lambda$slambda$slambda_0(this.dsi_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).v1m = function ($this$launch, completion) { var i = new ClazzInviteRedeemViewModel$lambda$slambda(this.dsi_1, completion); i.esi_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.u1m($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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel..' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.dqk(); launch(tmp, VOID, VOID, ClazzInviteRedeemViewModel$lambda$slambda_0(this$0, null)); return Unit_instance; }; } function ClazzInviteRedeemViewModel$processDecision$slambda(this$0, $isAccepting, resultContinuation) { this.nsi_1 = this$0; this.osi_1 = $isAccepting; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteRedeemViewModel$processDecision$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nsi_1.csh_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jsh(VOID, false); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_clazzInviteRedeemUseCase__c3cagh(this.nsi_1).spc(this.nsi_1.fsh_1, this.osi_1, this.nsi_1.cqk().ao7().hku_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; this.nsi_1.kqk().qq3(new Snack(result.tpc_1)); Companion_getInstance_138(); this.nsi_1.oqj_1.bq6('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.nsi_1.csh_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_errorText = stringResourceOrMessage(e, this.nsi_1.mqk()); var nextValue_0 = prevValue_0.jsh(VOID, true, tmp0_errorText); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzInviteRedeemViewModel$processDecision$slambda(this.nsi_1, this.osi_1, completion); i.psi_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzInviteRedeemViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ClazzInviteRedeem'); this.csh_1 = MutableStateFlow(new ClazzInviteRedeemUiState()); this.dsh_1 = asStateFlow(this.csh_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.esh_1 = Instance(this_0, tmp$ret$0, null).a5d(this, clazzInviteRedeemUseCase$factory()); var tmp_1 = this; Companion_getInstance_123(); 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.fsh_1 = tmp_2; Companion_getInstance_123(); var tmp_3 = mapOf_0(to('inviteCode', this.fsh_1)); this.bql(false, tmp_3, ClazzInviteRedeemViewModel$lambda(this)); } protoOf(ClazzInviteRedeemViewModel).qsi = function (isAccepting) { // Inline function 'kotlin.takeIf' call var this_0 = this.dqk(); // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteredeem.ClazzInviteRedeemViewModel.processDecision.' call if (this.csh_1.t2().hsh_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.gsh_1 = clazzInvite; this.hsh_1 = enabled; this.ish_1 = errorText; } protoOf(ClazzInviteRedeemUiState).rsi = function () { var tmp0_safe_receiver = this.gsh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p9n_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j9n_1; return tmp === 0; }; protoOf(ClazzInviteRedeemUiState).ssi = function () { var tmp; if (this.hsh_1) { var tmp0_safe_receiver = this.gsh_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p9n_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j9n_1; tmp = tmp_0 === 0; } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).tsi = function () { var tmp; var tmp0_safe_receiver = this.gsh_1; if (!((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p9n_1) == null)) { var tmp1_safe_receiver = this.gsh_1.p9n_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j9n_1; tmp = !(tmp_0 === 0); } else { tmp = false; } return tmp; }; protoOf(ClazzInviteRedeemUiState).usi = function (clazzInvite, enabled, errorText) { return new ClazzInviteRedeemUiState(clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).jsh = function (clazzInvite, enabled, errorText, $super) { clazzInvite = clazzInvite === VOID ? this.gsh_1 : clazzInvite; enabled = enabled === VOID ? this.hsh_1 : enabled; errorText = errorText === VOID ? this.ish_1 : errorText; return $super === VOID ? this.usi(clazzInvite, enabled, errorText) : $super.usi.call(this, clazzInvite, enabled, errorText); }; protoOf(ClazzInviteRedeemUiState).toString = function () { return 'ClazzInviteRedeemUiState(clazzInvite=' + this.gsh_1 + ', enabled=' + this.hsh_1 + ', errorText=' + this.ish_1 + ')'; }; protoOf(ClazzInviteRedeemUiState).hashCode = function () { var result = this.gsh_1 == null ? 0 : this.gsh_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.hsh_1) | 0; result = imul(result, 31) + (this.ish_1 == null ? 0 : getStringHashCode(this.ish_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.gsh_1, tmp0_other_with_cast.gsh_1)) return false; if (!(this.hsh_1 === tmp0_other_with_cast.hsh_1)) return false; if (!(this.ish_1 == tmp0_other_with_cast.ish_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 Companion_117() { } var Companion_instance_166; function Companion_getInstance_134() { return Companion_instance_166; } function $serializer_57() { $serializer_instance_57 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.InviteResult', this, 1); tmp0_serialDesc.t4f('inviteSent', false); this.vsi_1 = tmp0_serialDesc; } protoOf($serializer_57).q44 = function () { return this.vsi_1; }; protoOf($serializer_57).k4g = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [StringSerializer_getInstance()]; }; protoOf($serializer_57).s44 = function (decoder) { var tmp0_desc = this.vsi_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_input = decoder.i48(tmp0_desc); if (tmp5_input.x48()) { tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; } else while (tmp1_flag) { tmp2_index = tmp5_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp5_input.s48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp5_input.j48(tmp0_desc); return InviteResult_init_$Create$(tmp3_bitMask0, tmp4_local0, null); }; protoOf($serializer_57).wsi = function (encoder, value) { var tmp0_desc = this.vsi_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.w49(tmp0_desc, 0, value.xsi_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_57).r44 = function (encoder, value) { return this.wsi(encoder, value instanceof InviteResult ? value : THROW_CCE()); }; var $serializer_instance_57; function $serializer_getInstance_69() { if ($serializer_instance_57 == null) new $serializer_57(); return $serializer_instance_57; } function InviteResult_init_$Init$(seen1, inviteSent, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_69().vsi_1); } $this.xsi_1 = inviteSent; return $this; } function InviteResult_init_$Create$(seen1, inviteSent, serializationConstructorMarker) { return InviteResult_init_$Init$(seen1, inviteSent, serializationConstructorMarker, objectCreate(protoOf(InviteResult))); } function _get_parseInviteUseCase__fcfumo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.tsj_1; parseInviteUseCase$factory_0(); return this_0.t2(); } function _get_sendClazzInvitesUseCase__utu0z8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.usj_1; sendClazzInvitesUseCase$factory_0(); return this_0.t2(); } function _get_hideKeyboardUseCase__8r7d6l($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zsj_1; hideKeyboardUseCase$factory_0(); return this_0.t2(); } function sendContactsToServer($this, contacts, $completion) { var tmp = new $sendContactsToServerCOROUTINE$69($this, contacts, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_118() { this.lsk_1 = 'invite_via_contact'; this.msk_1 = 'person_role'; this.nsk_1 = 'clazz_uid'; } var Companion_instance_167; function Companion_getInstance_135() { return Companion_instance_167; } function InviteResult(inviteSent) { this.xsi_1 = inviteSent; } protoOf(InviteResult).toString = function () { return 'InviteResult(inviteSent=' + this.xsi_1 + ')'; }; protoOf(InviteResult).hashCode = function () { return getStringHashCode(this.xsi_1); }; protoOf(InviteResult).equals = function (other) { if (this === other) return true; if (!(other instanceof InviteResult)) return false; var tmp0_other_with_cast = other instanceof InviteResult ? other : THROW_CCE(); if (!(this.xsi_1 === tmp0_other_with_cast.xsi_1)) return false; return true; }; function ClazzInviteViaContactViewModel$onClickSend$ref($boundThis) { var l = function () { $boundThis.osk(); return Unit_instance; }; l.callableName = 'onClickSend'; return l; } function ClazzInviteViaContactViewModel$onClickSend$slambda(this$0, resultContinuation) { this.xsk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzInviteViaContactViewModel$onClickSend$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.xsk_1); if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.bpb(); } this.zsk_1 = this.xsk_1.xsj_1.t2().dsl_1; if (this.zsk_1.c1()) { this.asl_1 = this.xsk_1.xsj_1.t2().esl_1; var this_0 = this.asl_1; if (!(this_0 == null ? true : isBlank(this_0))) { this.bsl_1 = _get_parseInviteUseCase__fcfumo(this.xsk_1).loe(this.asl_1); this.hd_1 = 4; suspendResult = sendContactsToServer(this.xsk_1, this.bsl_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.xsk_1, this.zsk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: return Unit_instance; case 3: var noContactFoundMessage = this.xsk_1.mqk().eog(strings_getInstance().tnm_1); l$ret$1: do { var this_1 = this.xsk_1.xsj_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.fsl(noContactFoundMessage); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.xsk_1.gsl(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).v1m = function ($this$launch, completion) { var i = new ClazzInviteViaContactViewModel$onClickSend$slambda(this.xsk_1, completion); i.ysk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $sendContactsToServerCOROUTINE$69(_this__u8e3s4, contacts, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.isk_1 = _this__u8e3s4; this.jsk_1 = contacts; } protoOf($sendContactsToServerCOROUTINE$69).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.jsk_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.isl_1) { destination.i1(element); } } tmp_0.ksk_1 = destination; if (this.ksk_1.c1()) { var noValidContactFoundMessage = this.isk_1.mqk().eog(strings_getInstance().snm_1); l$ret$1: do { var this_1 = this.isk_1.xsj_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.fsl(noValidContactFoundMessage); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.isk_1.gsl(noValidContactFoundMessage); return Unit_instance; } this.id_1 = 2; this.hd_1 = 1; var tmp_1 = _get_sendClazzInvitesUseCase__utu0z8(this.isk_1); var this_2 = this.ksk_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.hsl_1); } suspendResult = tmp_1.upe(new SendClazzInvitesRequest(destination_0, this.isk_1.vsj_1, this.isk_1.wsj_1, this.isk_1.cqk().go6().tnq_1.f96_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.isk_1.kqk().qq3(new Snack(this.isk_1.mqk().eog(strings_getInstance().inn_1))); Companion_getInstance_203(); this.isk_1.oqj_1.cq6('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.isk_1.kqk(); var tmp_4 = this.isk_1.mqk().eog(strings_getInstance().cme_1); var tmp0_elvis_lhs = e.message; tmp_3.qq3(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.tsj_1 = Instance(this, tmp$ret$0, null).a5d(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.usj_1 = Instance(this_0, tmp$ret$2, null).a5d(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.vsj_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.wsj_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; this.xsj_1 = MutableStateFlow(new ClazzInviteViaContactUiState()); this.ysj_1 = asStateFlow(this.xsj_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.zsj_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(this, hideKeyboardUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_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.mqk().eog(strings_getInstance().onm_1), VOID, true); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqj_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.' call var tmp_7 = this.mqk().eog(strings_getInstance().lmh_1); var nextValue_0 = prevValue_0.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, ClazzInviteViaContactViewModel$onClickSend$ref(this))); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzInviteViaContactViewModel).osk = function () { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzInviteViaContactViewModel$onClickSend$slambda_0(this, null)); }; protoOf(ClazzInviteViaContactViewModel).gsl = function (error) { this.kqk().qq3(new Snack(error)); }; protoOf(ClazzInviteViaContactViewModel).ksl = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.xsj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onClickChipSubmit.' call var nextValue = prevValue.fsl(VOID, plus(prevValue.dsl_1, _get_parseInviteUseCase__fcfumo(this).loe(text))); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } return last(tmp$ret$1.dsl_1); }; protoOf(ClazzInviteViaContactViewModel).lsl = function (removedChipTexts) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.xsj_1.t2().dsl_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.hsl_1)) { destination.i1(element); } } var newChips = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.xsj_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onChipsRemoved.' call var nextValue = prevValue.fsl(VOID, newChips); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzInviteViaContactViewModel).msl = function (newValue) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xsj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.inviteviacontact.ClazzInviteViaContactViewModel.onTextFieldValueChanged.' call var nextValue = prevValue.fsl(VOID, VOID, newValue); if (this_0.y1k(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.csl_1 = contactError; this.dsl_1 = chips; this.esl_1 = textFieldValue; } protoOf(ClazzInviteViaContactUiState).nsl = function (contactError, chips, textFieldValue) { return new ClazzInviteViaContactUiState(contactError, chips, textFieldValue); }; protoOf(ClazzInviteViaContactUiState).fsl = function (contactError, chips, textFieldValue, $super) { contactError = contactError === VOID ? this.csl_1 : contactError; chips = chips === VOID ? this.dsl_1 : chips; textFieldValue = textFieldValue === VOID ? this.esl_1 : textFieldValue; return $super === VOID ? this.nsl(contactError, chips, textFieldValue) : $super.nsl.call(this, contactError, chips, textFieldValue); }; protoOf(ClazzInviteViaContactUiState).toString = function () { return 'ClazzInviteViaContactUiState(contactError=' + this.csl_1 + ', chips=' + this.dsl_1 + ', textFieldValue=' + this.esl_1 + ')'; }; protoOf(ClazzInviteViaContactUiState).hashCode = function () { var result = this.csl_1 == null ? 0 : getStringHashCode(this.csl_1); result = imul(result, 31) + hashCode(this.dsl_1) | 0; result = imul(result, 31) + (this.esl_1 == null ? 0 : getStringHashCode(this.esl_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.csl_1 == tmp0_other_with_cast.csl_1)) return false; if (!equals(this.dsl_1, tmp0_other_with_cast.dsl_1)) return false; if (!(this.esl_1 == tmp0_other_with_cast.esl_1)) return false; return true; }; function InviteViaContactChip(text, isValid, inviteType) { this.hsl_1 = text; this.isl_1 = isValid; this.jsl_1 = inviteType; } protoOf(InviteViaContactChip).toString = function () { return 'InviteViaContactChip(text=' + this.hsl_1 + ', isValid=' + this.isl_1 + ', inviteType=' + this.jsl_1 + ')'; }; protoOf(InviteViaContactChip).hashCode = function () { var result = getStringHashCode(this.hsl_1); result = imul(result, 31) + getBooleanHashCode(this.isl_1) | 0; result = imul(result, 31) + this.jsl_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.hsl_1 === tmp0_other_with_cast.hsl_1)) return false; if (!(this.isl_1 === tmp0_other_with_cast.isl_1)) return false; if (!(this.jsl_1 === tmp0_other_with_cast.jsl_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.lsm_1; makeLinkUseCase$factory_0(); return this_0.t2(); } function _get_setClipboardStringUseCase__31i1s1_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nsm_1; setClipboardStringUseCase$factory_2(); return this_0.t2(); } function _get_shareTextUseCase__god44g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.osm_1; shareTextUseCase$factory_0(); return this_0.t2(); } function Companion_119() { this.qsm_1 = 'InviteWithLink'; } var Companion_instance_168; function Companion_getInstance_136() { return Companion_instance_168; } function ClazzInviteViaLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'InviteWithLink'); this.jsm_1 = MutableStateFlow(new ClazzInviteViaLinkUiState()); this.ksm_1 = asStateFlow(this.jsm_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.lsm_1 = Instance(this_0, tmp$ret$0, null).a5d(this, makeLinkUseCase$factory()); var tmp_1 = this; Companion_getInstance_123(); 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.msm_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.nsm_1 = Instance(this, tmp$ret$2, null).a5d(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.osm_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(this, shareTextUseCase$factory()); var tmp_7 = this; var tmp_8 = _get_makeLinkUseCase__qbv742(this); Companion_getInstance_123(); tmp_7.psm_1 = tmp_8.vpf('JoinWithCode', mapOf_0(to('inviteCode', this.msm_1))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.ClazzInviteViaLinkViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().mn4_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.jsm_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.invitevialink.ClazzInviteViaLinkViewModel.' call var nextValue_0 = prevValue_0.tsm(this.psm_1, !(_get_shareTextUseCase__god44g(this) == null)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzInviteViaLinkViewModel).usm = function () { _get_setClipboardStringUseCase__31i1s1_0(this).koy(this.psm_1); this.kqk().qq3(new Snack(this.mqk().eog(strings_getInstance().hn4_1))); }; function ClazzInviteViaLinkUiState(inviteLink, showShareLinkButton) { inviteLink = inviteLink === VOID ? null : inviteLink; showShareLinkButton = showShareLinkButton === VOID ? false : showShareLinkButton; this.rsm_1 = inviteLink; this.ssm_1 = showShareLinkButton; } protoOf(ClazzInviteViaLinkUiState).tsm = function (inviteLink, showShareLinkButton) { return new ClazzInviteViaLinkUiState(inviteLink, showShareLinkButton); }; protoOf(ClazzInviteViaLinkUiState).toString = function () { return 'ClazzInviteViaLinkUiState(inviteLink=' + this.rsm_1 + ', showShareLinkButton=' + this.ssm_1 + ')'; }; protoOf(ClazzInviteViaLinkUiState).hashCode = function () { var result = this.rsm_1 == null ? 0 : getStringHashCode(this.rsm_1); result = imul(result, 31) + getBooleanHashCode(this.ssm_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.rsm_1 == tmp0_other_with_cast.rsm_1)) return false; if (!(this.ssm_1 === tmp0_other_with_cast.ssm_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.ssn_1; requestEnrolmentUseCase$factory_0(); return this_0.t2(); } function Companion_120() { this.tsn_1 = 'JoinWithCode'; } var Companion_instance_169; function Companion_getInstance_137() { return Companion_instance_169; } function JoinWithCodeViewModel$lambda(this$0) { return function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel..' call var nextValue = prevValue.bq3(VOID, VOID, this$0.mqk().eog(strings_getInstance().wne_1)); if (this_0.y1k(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.qsn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onClickJoin..' call var nextValue = prevValue.xsn(VOID, VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function JoinWithCodeViewModel$onClickJoin$slambda(this$0, resultContinuation) { this.gso_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(JoinWithCodeViewModel$onClickJoin$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(JoinWithCodeViewModel$onClickJoin$slambda).m78 = function ($completion) { return this.j87($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.gso_1); var tmp_1 = this.gso_1.qsn_1.t2().vsn_1; var tmp_2 = this.gso_1.cqk().go6().tnq_1; suspendResult = tmp_0.joy(tmp_1, tmp_2, 1000, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gso_1.kqk().qq3(new Snack(this.gso_1.mqk().eog(strings_getInstance().wni_1))); if (!(this.gso_1.nqk() == null)) { this.gso_1.xqp(null); } else { Companion_getInstance_138(); this.gso_1.oqj_1.bq6('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().cnk_1; } else { if (e instanceof AlreadyHasPendingRequestException) { tmp_4 = strings_getInstance().vni_1; } else { if (e instanceof AlreadyEnroledInClassException) { tmp_4 = strings_getInstance().in6_1; } else { tmp_4 = strings_getInstance().cme_1; } } } var errorMessage = tmp_4; l$ret$1: do { var this_0 = this.gso_1.qsn_1; while (true) { var prevValue = this_0.t2(); var tmp_5 = this.gso_1.mqk().eog(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.xsn(tmp_5 + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs)); if (this_0.y1k(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).l78 = function (completion) { return new JoinWithCodeViewModel$onClickJoin$slambda(this.gso_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.j87($completion); }; l.$arity = 0; return l; } function JoinWithCodeViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'JoinWithCode'); var tmp = this; Companion_getInstance_123(); var tmp0_elvis_lhs = savedStateHandle.ba('inviteCode'); tmp.qsn_1 = MutableStateFlow(new JoinWithCodeUiState(VOID, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)); this.rsn_1 = asStateFlow(this.qsn_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.ssn_1 = Instance(this_0, tmp$ret$0, null).a5d(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_123(); this.zqk(this_1, 'inviteCode'); var tmp_2 = this_1.f3(); this.cql(VOID, tmp_2, JoinWithCodeViewModel$lambda(this)); } protoOf(JoinWithCodeViewModel).hso = function (codeVal) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qsn_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.joinwithcode.JoinWithCodeViewModel.onCodeValueChange.' call var nextValue = prevValue.xsn(null, codeVal); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(JoinWithCodeViewModel).iso = function () { var tmp = JoinWithCodeViewModel$onClickJoin$lambda(this); this.zqq(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.usn_1 = codeError; this.vsn_1 = code; this.wsn_1 = fieldsEnabled; } protoOf(JoinWithCodeUiState).jso = function (codeError, code, fieldsEnabled) { return new JoinWithCodeUiState(codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).xsn = function (codeError, code, fieldsEnabled, $super) { codeError = codeError === VOID ? this.usn_1 : codeError; code = code === VOID ? this.vsn_1 : code; fieldsEnabled = fieldsEnabled === VOID ? this.wsn_1 : fieldsEnabled; return $super === VOID ? this.jso(codeError, code, fieldsEnabled) : $super.jso.call(this, codeError, code, fieldsEnabled); }; protoOf(JoinWithCodeUiState).toString = function () { return 'JoinWithCodeUiState(codeError=' + this.usn_1 + ', code=' + this.vsn_1 + ', fieldsEnabled=' + this.wsn_1 + ')'; }; protoOf(JoinWithCodeUiState).hashCode = function () { var result = this.usn_1 == null ? 0 : getStringHashCode(this.usn_1); result = imul(result, 31) + getStringHashCode(this.vsn_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wsn_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.usn_1 == tmp0_other_with_cast.usn_1)) return false; if (!(this.vsn_1 === tmp0_other_with_cast.vsn_1)) return false; if (!(this.wsn_1 === tmp0_other_with_cast.wsn_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.sso_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda).yqb = function (hasPermission, $completion) { var tmp = this.zqb(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.yqb((!(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.sso_1.hqs_1; while (true) { var prevValue = this_0.t2(); var tmp0_newClazzListOptionVisible = this.tso_1 ? this.sso_1.mqs().equals(ListViewMode_PICKER_getInstance()) : false; var nextValue = prevValue.fsp(tmp0_newClazzListOptionVisible, VOID, VOID, VOID, VOID, VOID, this.tso_1); if (this_0.y1k(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).zqb = function (hasPermission, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda(this.sso_1, completion); i.tso_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.yqb(hasPermission, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda(this$0, resultContinuation) { this.osp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.osp_1.iqk().p7f(); var tmp_1 = this.osp_1.cqk().ao7().hku_1; PermissionFlags_getInstance(); var tmp_2 = distinctUntilChanged(tmp_0.khw(tmp_1, new Long(512, 0))); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_0(this.osp_1, null); suspendResult = tmp_2.a1c(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).l78 = function (completion) { return new ClazzListViewModel$slambda$slambda(this.osp_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.j87($completion); }; l.$arity = 0; return l; } function ClazzListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.xsp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda$slambda_1).zsp = function (it, $completion) { var tmp = this.asq(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.zsp((!(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.xsp_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.fsp(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ysp_1); if (this_0.y1k(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).asq = function (it, completion) { var i = new ClazzListViewModel$slambda$slambda$slambda_1(this.xsp_1, completion); i.ysp_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.zsp(it, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.jsq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda$slambda_1).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda$slambda_1).m78 = function ($completion) { return this.j87($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.jsq_1.iqk().n7f(); var tmp_1 = this.jsq_1.eqk(); var tmp_2 = tmp_0.kex(tmp_1, 1); var tmp_3 = ClazzListViewModel$slambda$slambda$slambda_2(this.jsq_1, null); suspendResult = tmp_2.a1c(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).l78 = function (completion) { return new ClazzListViewModel$slambda$slambda_1(this.jsq_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.j87($completion); }; l.$arity = 0; return l; } function Companion_121() { Companion_instance_170 = this; this.ksq_1 = 'CourseList'; this.lsq_1 = 'CourseListHome'; this.msq_1 = listOf(['CourseList', 'CourseListHome']); this.nsq_1 = 'excludeAlreadySelectedClazzList'; } var Companion_instance_170; function Companion_getInstance_138() { if (Companion_instance_170 == null) new Companion_121(); return Companion_instance_170; } function sam$kotlinx_coroutines_flow_FlowCollector$0_13(function_0) { this.osq_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_13).t1d = function (value, $completion) { return this.osq_1(value, $completion); }; function ClazzListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().o7d().w8c(toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_1), this$0.cqk().ao7().hku_1, this$0.psr_1, this$0.hqs_1.t2().xso_1.gq9_1, this$0.hqs_1.t2().zso_1, systemTimeInMillis(), this$0.qsr_1); }; } function ClazzListViewModel$slambda(this$0, resultContinuation) { this.ass_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.ass_1.hqs_1, ClazzListViewModel$slambda$slambda_0(this.ass_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).v1m = function ($this$launch, completion) { var i = new ClazzListViewModel$slambda(this.ass_1, completion); i.bss_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$slambda_1(this$0, resultContinuation) { this.kss_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.kss_1.hqs_1, ClazzListViewModel$slambda$slambda_2(this.kss_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).v1m = function ($this$launch, completion) { var i = new ClazzListViewModel$slambda_1(this.kss_1, completion); i.lss_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel$onClickCancelEnrolmentRequest$slambda(this$0, $enrolmentRequest, resultContinuation) { this.uss_1 = this$0; this.vss_1 = $enrolmentRequest; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzListViewModel$onClickCancelEnrolmentRequest$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.uss_1.iqk().n7f(); var tmp_1 = this.vss_1.bey_1; suspendResult = tmp_0.lex(tmp_1, 4, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uss_1.kqk().qq3(new Snack(this.uss_1.mqk().eog(strings_getInstance().xni_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).v1m = function ($this$launch, completion) { var i = new ClazzListViewModel$onClickCancelEnrolmentRequest$slambda(this.uss_1, this.vss_1, completion); i.wss_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_138(); 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.psr_1 = tmp_2; var tmp_3 = this; Companion_getInstance_114(); 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.qsr_1 = tmp_4; var tmp_5 = this; tmp_5.rsr_1 = ClazzListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.' call var tmp0_searchState = this.qqt(); var tmp1_title = this.yqt(strings_getInstance().ine_1, strings_getInstance().ine_1); var tmp2_fabState = this.tqt(!this.eqk().equals(new Long(0, 0)), strings_getInstance().jne_1); var nextValue = prevValue.bq3(tmp2_fabState, VOID, tmp1_title, true, VOID, VOID, VOID, tmp0_searchState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hqs_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.mqk().eog(get_dayStringResource(element_0)); result.s(element_0, tmp$ret$11); } var tmp1_clazzList = this.rsr_1; var nextValue_0 = prevValue_0.fsp(VOID, tmp1_clazzList, VOID, VOID, VOID, VOID, VOID, VOID, VOID, result); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.dqk(); launch(tmp_6, VOID, VOID, ClazzListViewModel$slambda_0(this, null)); var tmp_7 = this.dqk(); launch(tmp_7, VOID, VOID, ClazzListViewModel$slambda_2(this, null)); } protoOf(ClazzListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).cqt = function () { this.vqt('CourseEdit'); }; protoOf(ClazzListViewModel).xss = function () { Companion_getInstance_114(); Companion_getInstance_4(); this.oqj_1.fp3('JoinWithCode', mapOf_0(to('argCodeTable', (6).toString()))); }; protoOf(ClazzListViewModel).yss = function (entry) { this.xqt('Course', entry.r8d_1, entry); }; protoOf(ClazzListViewModel).zss = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onSortOrderChanged.' call var nextValue = prevValue.fsp(VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).ast = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.list.ClazzListViewModel.onClickFilterChip.' call var nextValue = prevValue.fsp(VOID, VOID, VOID, VOID, VOID, filterOption.eq4_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzListViewModel).bst = function (enrolmentRequest) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzListViewModel$onClickCancelEnrolmentRequest$slambda_0(this, enrolmentRequest, null)); }; function Companion_122() { Companion_instance_171 = this; var tmp = this; var tmp_0 = strings_getInstance().bmg_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().bmg_1; var tmp_3 = new SortOrderOption(tmp_2, 2, false); var tmp_4 = strings_getInstance().xmg_1; var tmp_5 = new SortOrderOption(tmp_4, 3, true); var tmp_6 = strings_getInstance().xmg_1; tmp.cst_1 = listOf([tmp_1, tmp_3, tmp_5, new SortOrderOption(tmp_6, 4, false)]); } var Companion_instance_171; function Companion_getInstance_139() { if (Companion_instance_171 == null) new Companion_122(); return Companion_instance_171; } function ClazzListUiState$_init_$lambda_r0y0x0() { return new EmptyPagingSource(); } function ClazzListUiState(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) { Companion_getInstance_139(); 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_139().cst_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().yne_1; tmp_1 = listOf([new MessageIdOption2(tmp_2, 5), new MessageIdOption2(strings_getInstance().lmv_1, 0)]); } else { tmp_1 = filterOptions; } filterOptions = tmp_1; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.km9(), Companion_getInstance_9().jmd()) : localDateTimeNow; this.uso_1 = newClazzListOptionVisible; this.vso_1 = clazzList; this.wso_1 = sortOptions; this.xso_1 = activeSortOrderOption; this.yso_1 = fieldsEnabled; this.zso_1 = selectedChipId; this.asp_1 = canAddNewCourse; this.bsp_1 = pendingEnrolments; this.csp_1 = filterOptions; this.dsp_1 = dayOfWeekStrings; this.esp_1 = localDateTimeNow; } protoOf(ClazzListUiState).dst = 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).fsp = function (newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow, $super) { newClazzListOptionVisible = newClazzListOptionVisible === VOID ? this.uso_1 : newClazzListOptionVisible; clazzList = clazzList === VOID ? this.vso_1 : clazzList; sortOptions = sortOptions === VOID ? this.wso_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.xso_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.yso_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.zso_1 : selectedChipId; canAddNewCourse = canAddNewCourse === VOID ? this.asp_1 : canAddNewCourse; pendingEnrolments = pendingEnrolments === VOID ? this.bsp_1 : pendingEnrolments; filterOptions = filterOptions === VOID ? this.csp_1 : filterOptions; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.dsp_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.esp_1 : localDateTimeNow; return $super === VOID ? this.dst(newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow) : $super.dst.call(this, newClazzListOptionVisible, clazzList, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, canAddNewCourse, pendingEnrolments, filterOptions, dayOfWeekStrings, localDateTimeNow); }; protoOf(ClazzListUiState).toString = function () { return 'ClazzListUiState(newClazzListOptionVisible=' + this.uso_1 + ', clazzList=' + this.vso_1 + ', sortOptions=' + this.wso_1 + ', activeSortOrderOption=' + this.xso_1 + ', fieldsEnabled=' + this.yso_1 + ', selectedChipId=' + this.zso_1 + ', canAddNewCourse=' + this.asp_1 + ', pendingEnrolments=' + this.bsp_1 + ', filterOptions=' + this.csp_1 + ', dayOfWeekStrings=' + this.dsp_1 + ', localDateTimeNow=' + this.esp_1 + ')'; }; protoOf(ClazzListUiState).hashCode = function () { var result = getBooleanHashCode(this.uso_1); result = imul(result, 31) + hashCode(this.vso_1) | 0; result = imul(result, 31) + hashCode(this.wso_1) | 0; result = imul(result, 31) + this.xso_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.yso_1) | 0; result = imul(result, 31) + this.zso_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.asp_1) | 0; result = imul(result, 31) + hashCode(this.bsp_1) | 0; result = imul(result, 31) + hashCode(this.csp_1) | 0; result = imul(result, 31) + hashCode(this.dsp_1) | 0; result = imul(result, 31) + this.esp_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.uso_1 === tmp0_other_with_cast.uso_1)) return false; if (!equals(this.vso_1, tmp0_other_with_cast.vso_1)) return false; if (!equals(this.wso_1, tmp0_other_with_cast.wso_1)) return false; if (!this.xso_1.equals(tmp0_other_with_cast.xso_1)) return false; if (!(this.yso_1 === tmp0_other_with_cast.yso_1)) return false; if (!(this.zso_1 === tmp0_other_with_cast.zso_1)) return false; if (!(this.asp_1 === tmp0_other_with_cast.asp_1)) return false; if (!equals(this.bsp_1, tmp0_other_with_cast.bsp_1)) return false; if (!equals(this.csp_1, tmp0_other_with_cast.csp_1)) return false; if (!equals(this.dsp_1, tmp0_other_with_cast.dsp_1)) return false; if (!this.esp_1.equals(tmp0_other_with_cast.esp_1)) return false; return true; }; function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).ost = function (entity, permissions, $completion) { var tmp = this.pst(entity, permissions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).um = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof CoursePermission) ? p1 : THROW_CCE(); return this.ost(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.mst_1; var tmp_0; if (this.nst_1.ydm_1) { tmp_0 = this_0; } else { tmp_0 = null; } return new Pair(tmp_0, this.nst_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda).pst = function (entity, permissions, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.mst_1 = entity; i.nst_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.ost(entity, permissions, $completion); }; l.$arity = 2; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.yst_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1).fsu = function (it, $completion) { var tmp = this.gsu(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.fsu(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.asu_1 = this.zst_1; this.bsu_1 = this.asu_1.y6(); this.csu_1 = this.asu_1.z6(); this.dsu_1 = this.csu_1; this.esu_1 = this.dsu_1.z6(); l$ret$1: do { var this_0 = this.yst_1.dsv_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.bsu_1 == null)) { tmp_0 = CoursePermissionConstants_getInstance().krd_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.isv(this.bsu_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.yst_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(prevValue_0.mq2_1.hq3(this.esu_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.bsu_1 == null)) { this.hd_1 = 1; suspendResult = getTitleForCoursePermission(this.yst_1, this.bsu_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.yst_1.qqj_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.bq3(VOID, VOID, title); if (this_2.y1k(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).gsu = function (it, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.yst_1, completion); i.zst_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.fsu(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $permissionFlow, this$0, resultContinuation) { this.rsv_1 = $entityFlow; this.ssv_1 = $permissionFlow; this.tsv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.rsv_1, this.ssv_1, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null))); suspendResult = collectLatest(tmp_0, CoursePermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.tsv_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).v1m = function ($this$launch, completion) { var i = new CoursePermissionDetailViewModel$slambda$slambda$slambda(this.rsv_1, this.ssv_1, this.tsv_1, completion); i.usv_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $permissionFlow, this$0, resultContinuation) { this.dsw_1 = $this_launch; this.esw_1 = $entityFlow; this.fsw_1 = $permissionFlow; this.gsw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.dsw_1, VOID, VOID, CoursePermissionDetailViewModel$slambda$slambda$slambda_0(this.esw_1, this.fsw_1, this.gsw_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).l78 = function (completion) { return new CoursePermissionDetailViewModel$slambda$slambda(this.dsw_1, this.esw_1, this.fsw_1, this.gsw_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.j87($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_123(); var tmp0_safe_receiver = $this.dsv_1.t2().gsv_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qdk_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_123(); $this.zqk(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); $this.oqj_1.fp3('CoursePermissionEdit', tmp$ret$2); } function Companion_123() { this.hsw_1 = 'CoursePermissionDetail'; } var Companion_instance_172; function Companion_getInstance_140() { return Companion_instance_172; } 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.qsw_1 = this$0; this.rsw_1 = $entityFlow; this.ssw_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.qsw_1.dsv_1, CoursePermissionDetailViewModel$slambda$slambda_0(this.tsw_1, this.rsw_1, this.ssw_1, this.qsw_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).v1m = function ($this$launch, completion) { var i = new CoursePermissionDetailViewModel$slambda(this.qsw_1, this.rsw_1, this.ssw_1, completion); i.tsw_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CoursePermissionDetail'); this.dsv_1 = MutableStateFlow(new CoursePermissionDetailUiState()); this.esv_1 = asStateFlow(this.dsv_1); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.fsv_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var entityFlow = this.iqk().o7f().p7s(this.gqj_1, this.fsv_1); var tmp_0 = this.iqk().o7f(); var tmp_1 = this.eqk(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = tmp_0.xdj(tmp_1, this.fsv_1, tmp_2, new Long(2, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissiondetail.CoursePermissionDetailViewModel.' call var tmp_3 = this.mqk().eog(strings_getInstance().fmr_1); var tmp_4 = FabIcon_EDIT_getInstance(); var nextValue = prevValue.bq3(new FabUiState(VOID, tmp_3, tmp_4, CoursePermissionDetailViewModel$onClickEdit$ref(this))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_5 = this.dqk(); 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.gsv_1 = coursePermission; this.hsv_1 = permissionLabels; } protoOf(CoursePermissionDetailUiState).isv = function (coursePermission, permissionLabels) { return new CoursePermissionDetailUiState(coursePermission, permissionLabels); }; protoOf(CoursePermissionDetailUiState).toString = function () { return 'CoursePermissionDetailUiState(coursePermission=' + this.gsv_1 + ', permissionLabels=' + this.hsv_1 + ')'; }; protoOf(CoursePermissionDetailUiState).hashCode = function () { var result = this.gsv_1 == null ? 0 : this.gsv_1.hashCode(); result = imul(result, 31) + hashCode(this.hsv_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.gsv_1, tmp0_other_with_cast.gsv_1)) return false; if (!equals(this.hsv_1, tmp0_other_with_cast.hsv_1)) return false; return true; }; function CoursePermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.csx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda).esx = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.esx(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.dsx_1.o7f().tdj(this.csx_1.uqp_1, this.csx_1.esy_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).env = function (db, completion) { var i = new CoursePermissionEditViewModel$slambda$slambda(this.csx_1, completion); i.dsx_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.esx(db, $completion); }; l.$arity = 1; return l; } function CoursePermissionEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.nsy_1 = this$0; this.osy_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda$slambda_1).jdq = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.jdq($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.nsy_1.gqk()); Companion_getInstance_5(); suspendResult = tmp_0.o62(10012, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; Companion_getInstance_123(); var tmp0_safe_receiver = this.osy_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.osy_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_123(); var tmp4_safe_receiver = this.osy_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).l78 = function (completion) { return new CoursePermissionEditViewModel$slambda$slambda_1(this.nsy_1, this.osy_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.jdq($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.csy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel...' call var nextValue = prevValue.ssy(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CoursePermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.bsz_1 = this$0; this.csz_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.bsz_1.iqk().o7f().udj(this.csz_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).env = function (it, completion) { var i = new CoursePermissionEditViewModel$onClickSave$slambda$slambda(this.bsz_1, this.csz_1, completion); i.dsz_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.dnv(it, $completion); }; l.$arity = 1; return l; } function Companion_124() { this.esz_1 = 'CoursePermissionEdit'; this.fsz_1 = 'grantToRole'; } var Companion_instance_173; function Companion_getInstance_141() { return Companion_instance_173; } function CoursePermissionEditViewModel$slambda(this$0, resultContinuation) { this.osz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda).vs5 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.psz_1.o7f(); var tmp_1 = this.osz_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.adk(tmp_1, this.osz_1.esy_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).env = function (it, completion) { var i = new CoursePermissionEditViewModel$slambda(this.osz_1, completion); i.psz_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.vs5(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.csy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel..' call var nextValue = prevValue.ssy(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ysz_1 = this$0; this.zsz_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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().n4r(); var tmp_1 = CoursePermissionEditViewModel$slambda$slambda_0(this.ysz_1, null); var tmp_2 = CoursePermissionEditViewModel$slambda$slambda_2(this.ysz_1, this.zsz_1, null); suspendResult = this.ysz_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, CoursePermissionEditViewModel$slambda$lambda(this.ysz_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.bt0_1 = suspendResult; this.hd_1 = 2; suspendResult = getTitleForCoursePermission(this.ysz_1, this.bt0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$1: do { var this_0 = this.ysz_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.ysz_1.mqk().eog(strings_getInstance().tmy_1); var nextValue = prevValue.bq3(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, CoursePermissionEditViewModel$onClickSave$ref(this.ysz_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ysz_1.csy_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ssy(VOID, true); if (this_1.y1k(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).v1m = function ($this$launchIfHasPermission, completion) { var i = new CoursePermissionEditViewModel$slambda_1(this.ysz_1, this.zsz_1, completion); i.at0_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.u1m($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.csy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onClickSave..' call var nextValue = prevValue.ssy(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CoursePermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.kt0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionEditViewModel$onClickSave$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.j87($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.kt0_1.csy_1.t2().psy_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.lt0_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.kt0_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, CoursePermissionEditViewModel$onClickSave$slambda$slambda_0(this.kt0_1, this.lt0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_114(); var popUpToOnFinish = this.kt0_1.mqj_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.kt0_1.oqj_1.cq6(popUpToOnFinish, false); } else { this.kt0_1.wqp('CoursePermissionDetail', this.lt0_1.qdk_1, this.lt0_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).l78 = function (completion) { return new CoursePermissionEditViewModel$onClickSave$slambda(this.kt0_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.j87($completion); }; l.$arity = 0; return l; } function CoursePermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CoursePermissionEdit'); this.csy_1 = MutableStateFlow(new CoursePermissionEditUiState()); this.dsy_1 = asStateFlow(this.csy_1); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.esy_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.csy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue = prevValue.ssy(VOID, VOID, CoursePermissionConstants_getInstance().krd_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.' call var nextValue_0 = prevValue_0.bq3(VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = CoursePermissionEditViewModel$slambda_0(this, null); var tmp_1 = CoursePermissionEditViewModel$lambda(this); this.yqk(tmp_0, VOID, tmp_1, CoursePermissionEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(CoursePermissionEditViewModel).mt0 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.csy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionedit.CoursePermissionEditViewModel.onTogglePermission.' call var entityVal = prevValue.psy_1; var tmp; if (!(entityVal == null)) { tmp = prevValue.ssy(entityVal.qki(VOID, VOID, VOID, VOID, VOID, VOID, toggleFlag(entityVal.wdk_1, flag))); } else { tmp = prevValue; } var nextValue = tmp; if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(CoursePermissionEditViewModel).js3 = function () { var tmp = CoursePermissionEditViewModel$onClickSave$lambda(this); this.zqq(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.psy_1 = entity; this.qsy_1 = fieldsEnabled; this.rsy_1 = permissionLabels; } protoOf(CoursePermissionEditUiState).nt0 = function (entity, fieldsEnabled, permissionLabels) { return new CoursePermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).ssy = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.psy_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.qsy_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.rsy_1 : permissionLabels; return $super === VOID ? this.nt0(entity, fieldsEnabled, permissionLabels) : $super.nt0.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(CoursePermissionEditUiState).toString = function () { return 'CoursePermissionEditUiState(entity=' + this.psy_1 + ', fieldsEnabled=' + this.qsy_1 + ', permissionLabels=' + this.rsy_1 + ')'; }; protoOf(CoursePermissionEditUiState).hashCode = function () { var result = this.psy_1 == null ? 0 : this.psy_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.qsy_1) | 0; result = imul(result, 31) + hashCode(this.rsy_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.psy_1, tmp0_other_with_cast.psy_1)) return false; if (!(this.qsy_1 === tmp0_other_with_cast.qsy_1)) return false; if (!equals(this.rsy_1, tmp0_other_with_cast.rsy_1)) return false; return true; }; function CoursePermissionListViewModel$slambda$slambda$slambda$lambda() { return new EmptyPagingSource(); } function CoursePermissionListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.wt0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda$slambda).yt0 = function (it, $completion) { var tmp = this.zt0(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.yt0(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.xt0_1; var hasViewPermission = tmp0_container.y6(); var hasEditPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.wt0_1.hqs_1; while (true) { var prevValue = this_0.t2(); var tmp1_permissionLabels = CoursePermissionConstants_getInstance().krd_1; var this_1 = this.wt0_1.bt2_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.gt2(tmp2_permissionsList, tmp1_permissionLabels, VOID, hasEditPermission); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.wt0_1.qqj_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.bq3(prevValue_0.mq2_1.hq3(hasEditPermission)); if (this_2.y1k(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).zt0 = function (it, completion) { var i = new CoursePermissionListViewModel$slambda$slambda$slambda(this.wt0_1, completion); i.xt0_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.yt0(it, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$slambda$slambda(this$0, resultContinuation) { this.pt2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.pt2_1.iqk().o7f(); var tmp_1 = this.pt2_1.eqk(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.xdj(tmp_1, this.pt2_1.at2_1, tmp_2, new Long(2, 0))); var tmp_4 = CoursePermissionListViewModel$slambda$slambda$slambda_0(this.pt2_1, null); suspendResult = tmp_3.a1c(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).l78 = function (completion) { return new CoursePermissionListViewModel$slambda$slambda(this.pt2_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.j87($completion); }; l.$arity = 0; return l; } function Companion_125() { this.qt2_1 = 'CoursePermissionList'; this.rt2_1 = 'permissionResult'; } var Companion_instance_174; function Companion_getInstance_142() { return Companion_instance_174; } function sam$kotlinx_coroutines_flow_FlowCollector$0_14(function_0) { this.st2_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_14).t1d = function (value, $completion) { return this.st2_1(value, $completion); }; function CoursePermissionListViewModel$pagingSource$lambda(this$0) { return function () { return this$0.iqk().o7f().sdj(this$0.at2_1, false); }; } function CoursePermissionListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.cqt(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CoursePermissionListViewModel$slambda(this$0, resultContinuation) { this.bt3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CoursePermissionListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.bt3_1.hqs_1, CoursePermissionListViewModel$slambda$slambda_0(this.bt3_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).v1m = function ($this$launch, completion) { var i = new CoursePermissionListViewModel$slambda(this.bt3_1, completion); i.ct3_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CoursePermissionListViewModel$onClickDeleteEntry$slambda(this$0, $coursePermission, resultContinuation) { this.lt3_1 = this$0; this.mt3_1 = $coursePermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionListViewModel$onClickDeleteEntry$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.lt3_1.iqk().o7f().vc9(this.mt3_1.qdk_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).v1m = function ($this$launch, completion) { var i = new CoursePermissionListViewModel$onClickDeleteEntry$slambda(this.lt3_1, this.mt3_1, completion); i.nt3_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.u1m($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_114(); 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.at2_1 = tmp_0; var tmp_1 = this; tmp_1.bt2_1 = CoursePermissionListViewModel$pagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazz.permissionlist.CoursePermissionListViewModel.' call var tmp3_title = this.mqk().eog(strings_getInstance().xmw_1); var tmp0_text = this.mqk().eog(strings_getInstance().xmw_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.bq3(tmp4_fabState, VOID, tmp3_title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, CoursePermissionListViewModel$slambda_0(this, null)); } protoOf(CoursePermissionListViewModel).bqt = function (searchText) { }; protoOf(CoursePermissionListViewModel).cqt = function () { Companion_getInstance_114(); var tmp = to('clazzUid', this.at2_1.toString()); Companion_getInstance_114(); var goToOnPersonSelectedArg = appendQueryArgs('CoursePermissionEdit', mapOf([tmp, to('popUpToOnFinish', this.nqj_1)])); Companion_getInstance_203(); var tmp_0 = Companion_getInstance_5().n4r(); // 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_114(); this_0.s('listMode', ListViewMode_PICKER_getInstance().mqg_1); this_0.s('goToOnPersonSelected', goToOnPersonSelectedArg); var tmp$ret$2 = this_0.f3(); this.uqk('People', 'permissionResult', null, tmp_0, tmp$ret$2); }; protoOf(CoursePermissionListViewModel).ot3 = 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_123(); this_0.s('entityUid', coursePermission.qdk_1.toString()); Companion_getInstance_123(); this.zqk(this_0, 'clazzUid'); var tmp$ret$2 = this_0.f3(); this.oqj_1.fp3('CoursePermissionDetail', tmp$ret$2); }; protoOf(CoursePermissionListViewModel).pt3 = function (coursePermission) { var tmp = this.dqk(); 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.ct2_1 = permissionsList; this.dt2_1 = permissionLabels; this.et2_1 = courseTerminology; this.ft2_1 = showDeleteOption; } protoOf(CoursePermissionListUiState).qt3 = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption) { return new CoursePermissionListUiState(permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).gt2 = function (permissionsList, permissionLabels, courseTerminology, showDeleteOption, $super) { permissionsList = permissionsList === VOID ? this.ct2_1 : permissionsList; permissionLabels = permissionLabels === VOID ? this.dt2_1 : permissionLabels; courseTerminology = courseTerminology === VOID ? this.et2_1 : courseTerminology; showDeleteOption = showDeleteOption === VOID ? this.ft2_1 : showDeleteOption; return $super === VOID ? this.qt3(permissionsList, permissionLabels, courseTerminology, showDeleteOption) : $super.qt3.call(this, permissionsList, permissionLabels, courseTerminology, showDeleteOption); }; protoOf(CoursePermissionListUiState).toString = function () { return 'CoursePermissionListUiState(permissionsList=' + this.ct2_1 + ', permissionLabels=' + this.dt2_1 + ', courseTerminology=' + this.et2_1 + ', showDeleteOption=' + this.ft2_1 + ')'; }; protoOf(CoursePermissionListUiState).hashCode = function () { var result = hashCode(this.ct2_1); result = imul(result, 31) + hashCode(this.dt2_1) | 0; result = imul(result, 31) + (this.et2_1 == null ? 0 : hashCode(this.et2_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ft2_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.ct2_1, tmp0_other_with_cast.ct2_1)) return false; if (!equals(this.dt2_1, tmp0_other_with_cast.dt2_1)) return false; if (!equals(this.et2_1, tmp0_other_with_cast.et2_1)) return false; if (!(this.ft2_1 === tmp0_other_with_cast.ft2_1)) return false; return true; }; function avatarName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.r7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.s7v_1; } else { tmp = _this__u8e3s4.r7v_1.toString(); } return tmp; } function avatarColorName(_this__u8e3s4) { var tmp; var tmp_0 = _this__u8e3s4.r7v_1; Companion_getInstance_1(); if (tmp_0.c7(toLong(10000)) >= 0) { tmp = _this__u8e3s4.s7v_1; } else { tmp = _this__u8e3s4.r7v_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().nnc_1; TextLimitType_LIMIT_WORDS_instance = new TextLimitType('LIMIT_WORDS', 0, tmp, 1); var tmp_0 = strings_getInstance().onc_1; TextLimitType_LIMIT_CHARS_instance = new TextLimitType('LIMIT_CHARS', 1, tmp_0, 2); } var MarkingType_TEACHER_instance; var MarkingType_PEERS_instance; function Companion_126() { } protoOf(Companion_126).dk7 = 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.tt3_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_175; function Companion_getInstance_143() { return Companion_instance_175; } 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.wt3_1 = stringResource; this.xt3_1 = value; } function MarkingType(name, ordinal, value) { Enum.call(this, name, ordinal); this.tt3_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().bn2_1); Companion_getInstance_1(); var tmp_1 = to(2, strings_getInstance().an2_1); Companion_getInstance_1(); tmp.yt3_1 = mapOf([tmp_0, tmp_1, to(0, strings_getInstance().cn2_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.cad_1.c7(new Long(0, 0)) > 0) { var tmp_0 = _this__u8e3s4.cad_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.wca_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = _this__u8e3s4.uca_1; var tmp_0 = tmp1_elvis_lhs == null ? 'application/octet-stream' : tmp1_elvis_lhs; var tmp2_elvis_lhs = _this__u8e3s4.vca_1; return new OpenBlobItem(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs, toLong(_this__u8e3s4.xca_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.ibw_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zbv_1; var tmp1_safe_receiver = element.ibw_1; if (equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zbv_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().ibw_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.fbw_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().ibw_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.fbw_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.ibw_1; if (equals(tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.fbw_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.ibw_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbw_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.mk8_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.ibw_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ebw_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.nk8_1 = roundToInt(tmp$ret$3 / latestUnique.u()); return this_0; } function _no_name_provided__qut3iv_6($this) { this.zt3_1 = $this; } protoOf(_no_name_provided__qut3iv_6).o = function () { return this.zt3_1.w(); }; protoOf(_no_name_provided__qut3iv_6).at4 = function (element) { // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.hasUpdatedMarks.' call var tmp0_safe_receiver = element.ibw_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zbv_1; return tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; }; protoOf(_no_name_provided__qut3iv_6).p = function (element) { return this.at4(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.ncb_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qca_1, item.bc2_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.bt4_1 = block; this.ct4_1 = assignmentMark; this.dt4_1 = assignmentStatus; } protoOf(UstadAssignmentSubmissionHeaderUiState).toString = function () { return 'UstadAssignmentSubmissionHeaderUiState(block=' + this.bt4_1 + ', assignmentMark=' + this.ct4_1 + ', assignmentStatus=' + this.dt4_1 + ')'; }; protoOf(UstadAssignmentSubmissionHeaderUiState).hashCode = function () { var result = this.bt4_1 == null ? 0 : this.bt4_1.hashCode(); result = imul(result, 31) + (this.ct4_1 == null ? 0 : this.ct4_1.hashCode()) | 0; result = imul(result, 31) + (this.dt4_1 == null ? 0 : this.dt4_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.bt4_1, tmp0_other_with_cast.bt4_1)) return false; if (!equals(this.ct4_1, tmp0_other_with_cast.ct4_1)) return false; if (!(this.dt4_1 == tmp0_other_with_cast.dt4_1)) return false; return true; }; function UstadCourseAssignmentMarkListItemUiState(mark, localDateTimeNow, dayOfWeekStrings) { mark = mark === VOID ? new CourseAssignmentMarkAndMarkerName() : mark; this.et4_1 = mark; this.ft4_1 = localDateTimeNow; this.gt4_1 = dayOfWeekStrings; } protoOf(UstadCourseAssignmentMarkListItemUiState).ht4 = function () { var tmp0_safe_receiver = this.et4_1.ibw_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zbv_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).it4 = function () { var tmp0_elvis_lhs = this.et4_1.jbw_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.et4_1.kbw_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); }; protoOf(UstadCourseAssignmentMarkListItemUiState).jt4 = function () { return !(this.ht4() === 0); }; protoOf(UstadCourseAssignmentMarkListItemUiState).kt4 = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.et4_1.ibw_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.ebw_1; return !(it == null) ? !(it === 0.0) : false; }; protoOf(UstadCourseAssignmentMarkListItemUiState).toString = function () { return 'UstadCourseAssignmentMarkListItemUiState(mark=' + this.et4_1 + ', localDateTimeNow=' + this.ft4_1 + ', dayOfWeekStrings=' + this.gt4_1 + ')'; }; protoOf(UstadCourseAssignmentMarkListItemUiState).hashCode = function () { var result = this.et4_1.hashCode(); result = imul(result, 31) + this.ft4_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.gt4_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.et4_1.equals(tmp0_other_with_cast.et4_1)) return false; if (!this.ft4_1.equals(tmp0_other_with_cast.ft4_1)) return false; if (!equals(this.gt4_1, tmp0_other_with_cast.gt4_1)) return false; return true; }; function Companion_127() { this.lt4_1 = 'CourseAssignment'; } var Companion_instance_176; function Companion_getInstance_144() { return Companion_instance_176; } function ClazzAssignmentDetailViewModel$slambda(this$0, resultContinuation) { this.ut4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailViewModel$slambda).xt4 = function (clazzAssignment, permissionPair, $completion) { var tmp = this.yt4(clazzAssignment, permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailViewModel$slambda).um = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof ClazzAssignment) ? p1 : THROW_CCE(); return this.xt4(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.wt4_1; var hasCourseViewPermission = tmp0_container.y6(); var hasLearnerRecordPermission = tmp0_container.z6(); var tmp_0; if (hasCourseViewPermission) { var tmp_1; var tmp1_safe_receiver = this.vt4_1; var tmp_2 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a7u_1; if (tmp_2 === 2) { tmp_1 = true; } else { tmp_1 = hasLearnerRecordPermission; } var hasSubmissionsTab = tmp_1; Companion_getInstance_123(); var tmp_3 = to('entityUid', this.ut4_1.gqj_1.toString()); Companion_getInstance_123(); var tabArgs = mapOf([tmp_3, to('clazzUid', this.ut4_1.wt5_1.toString())]); var tabs = mutableListOf([new TabItem('CourseAssignmentDetailOverviewView', tabArgs, this.ut4_1.mqk().eog(strings_getInstance().jn1_1))]); if (hasSubmissionsTab) { var tmp_4; var tmp_5; if (!hasLearnerRecordPermission) { var tmp2_safe_receiver = this.vt4_1; var tmp_6 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.a7u_1; tmp_5 = tmp_6 === 2; } else { tmp_5 = false; } if (tmp_5) { tmp_4 = this.ut4_1.mqk().eog(strings_getInstance().dnc_1); } else { tmp_4 = this.ut4_1.mqk().eog(strings_getInstance().snc_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).yt4 = function (clazzAssignment, permissionPair, completion) { var i = new ClazzAssignmentDetailViewModel$slambda(this.ut4_1, completion); i.vt4_1 = clazzAssignment; i.wt4_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.xt4(clazzAssignment, permissionPair, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.wt5_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var assignmentFlow = this.iqk().q7e().p7s(this.gqj_1, this.wt5_1); var tmp_0 = this.iqk().o7f(); var tmp_1 = this.cqk().ao7().hku_1; PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var permissionFlow = distinctUntilChanged(tmp_0.xdj(tmp_1, this.wt5_1, tmp_2, new Long(128, 0))); var tmp_3 = this; tmp_3.vt5_1 = combine(assignmentFlow, permissionFlow, ClazzAssignmentDetailViewModel$slambda_0(this, null)); } function ClazzAssignmentDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.xt5_1 = tabs; } protoOf(ClazzAssignmentDetailUiState).toString = function () { return 'ClazzAssignmentDetailUiState(tabs=' + this.xt5_1 + ')'; }; protoOf(ClazzAssignmentDetailUiState).hashCode = function () { return hashCode(this.xt5_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.xt5_1, tmp0_other_with_cast.xt5_1)) return false; return true; }; function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.gt6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda).it6 = function (it, $completion) { var tmp = this.jt6(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.it6((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.gt6_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pt6(this.ht6_1); if (this_0.y1k(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).jt6 = function (it, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda(this.gt6_1, completion); i.ht6_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.it6(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.yt6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.yt6_1.iqk().q7e().k7s(this.yt6_1.at8_1, this.yt6_1.bt8_1, this.yt6_1.eqk(), this.yt6_1.mqk().eog(strings_getInstance().nnb_1)); var tmp_1 = ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda$slambda_0(this.yt6_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda(this.yt6_1, completion); i.zt6_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.u1m($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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel....' call var nextValue = prevValue.bq3(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this$0, resultContinuation) { this.lt8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.lt8_1.iqk().q7d().we6(this.lt8_1.at8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.lt8_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pt6(VOID, VOID, VOID, VOID, terminology); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda(this.lt8_1, completion); i.mt8_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1($this_launch, this$0, resultContinuation) { this.vt8_1 = $this_launch; this.wt8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1).m78 = function ($completion) { return this.j87($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.vt8_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$slambda_0(this.wt8_1, null)); launchSetTitleFromClazzUid(this.wt8_1, this.wt8_1.bt8_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda$lambda(this.wt8_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).l78 = function (completion) { return new ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_1(this.vt8_1, this.wt8_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.j87($completion); }; l.$arity = 0; return l; } function Companion_128() { this.xt8_1 = 'CourseAssignmentSubmissionsTab'; } var Companion_instance_177; function Companion_getInstance_145() { return Companion_instance_177; } function sam$kotlinx_coroutines_flow_FlowCollector$0_15(function_0) { this.yt8_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_15).t1d = function (value, $completion) { return this.yt8_1(value, $completion); }; function ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().q7e().l7s(this$0.at8_1, this$0.bt8_1, this$0.eqk(), this$0.mqk().eog(strings_getInstance().nnb_1), toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_1), this$0.hqs_1.t2().nt6_1.gq9_1); }; } function ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this$0, resultContinuation) { this.ht9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.it9_1, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_0(this.ht9_1, null)); this.hd_1 = 1; suspendResult = whenSubscribed(this.ht9_1.hqs_1, ClazzAssignmentDetailSubmissionsTabViewModel$slambda$slambda_2(this.it9_1, this.ht9_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailSubmissionsTabViewModel$slambda(this.ht9_1, completion); i.it9_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.u1m($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_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.at8_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this; Companion_getInstance_123(); 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.bt8_1 = tmp_2; var tmp_3 = this; tmp_3.ct8_1 = ClazzAssignmentDetailSubmissionsTabViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.' call var nextValue = prevValue.pt6(VOID, this.ct8_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_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.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.qqt()); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_4 = this.dqk(); launch(tmp_4, VOID, VOID, ClazzAssignmentDetailSubmissionsTabViewModel$slambda_0(this, null)); } protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).jt9 = function (assignmentSubmitter) { var tmp = to('assignmentUid', this.at8_1.toString()); var tmp_0 = to('submitterUid', assignmentSubmitter.r7v_1.toString()); Companion_getInstance_123(); this.oqj_1.fp3('CourseAssignmentSubmitter', mapOf([tmp, tmp_0, to('clazzUid', this.bt8_1.toString())])); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).kt9 = function (sortOrderOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detail.submissionstab.ClazzAssignmentDetailSubmissionsTabViewModel.onChangeSortOption.' call var nextValue = prevValue.pt6(VOID, VOID, VOID, sortOrderOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzAssignmentDetailSubmissionsTabViewModel).cqt = function () { }; function Companion_129() { Companion_instance_178 = this; var tmp = this; var tmp_0 = strings_getInstance().bmg_1; var tmp_1 = new SortOrderOption(tmp_0, 5, true); var tmp_2 = strings_getInstance().bmg_1; tmp.lt9_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 6, false)]); } var Companion_instance_178; function Companion_getInstance_146() { if (Companion_instance_178 == null) new Companion_129(); return Companion_instance_178; } function ClazzAssignmentDetailSubmissionsTabUiState$_init_$lambda_ecu5q() { return new EmptyPagingSource(); } function ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { Companion_getInstance_146(); 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_146().lt9_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; courseTerminology = courseTerminology === VOID ? null : courseTerminology; this.kt6_1 = progressSummary; this.lt6_1 = assignmentSubmitterList; this.mt6_1 = sortOptions; this.nt6_1 = sortOption; this.ot6_1 = courseTerminology; } protoOf(ClazzAssignmentDetailSubmissionsTabUiState).mt9 = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) { return new ClazzAssignmentDetailSubmissionsTabUiState(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).pt6 = function (progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology, $super) { progressSummary = progressSummary === VOID ? this.kt6_1 : progressSummary; assignmentSubmitterList = assignmentSubmitterList === VOID ? this.lt6_1 : assignmentSubmitterList; sortOptions = sortOptions === VOID ? this.mt6_1 : sortOptions; sortOption = sortOption === VOID ? this.nt6_1 : sortOption; courseTerminology = courseTerminology === VOID ? this.ot6_1 : courseTerminology; return $super === VOID ? this.mt9(progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology) : $super.mt9.call(this, progressSummary, assignmentSubmitterList, sortOptions, sortOption, courseTerminology); }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).toString = function () { return 'ClazzAssignmentDetailSubmissionsTabUiState(progressSummary=' + this.kt6_1 + ', assignmentSubmitterList=' + this.lt6_1 + ', sortOptions=' + this.mt6_1 + ', sortOption=' + this.nt6_1 + ', courseTerminology=' + this.ot6_1 + ')'; }; protoOf(ClazzAssignmentDetailSubmissionsTabUiState).hashCode = function () { var result = this.kt6_1 == null ? 0 : hashCode(this.kt6_1); result = imul(result, 31) + hashCode(this.lt6_1) | 0; result = imul(result, 31) + hashCode(this.mt6_1) | 0; result = imul(result, 31) + this.nt6_1.hashCode() | 0; result = imul(result, 31) + (this.ot6_1 == null ? 0 : hashCode(this.ot6_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.kt6_1, tmp0_other_with_cast.kt6_1)) return false; if (!equals(this.lt6_1, tmp0_other_with_cast.lt6_1)) return false; if (!equals(this.mt6_1, tmp0_other_with_cast.mt6_1)) return false; if (!this.nt6_1.equals(tmp0_other_with_cast.nt6_1)) return false; if (!equals(this.ot6_1, tmp0_other_with_cast.ot6_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).v7v_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).u7v_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.nt9_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function AssignmentSubmitterSummaryUiState(person) { this.nt9_1 = person; } protoOf(AssignmentSubmitterSummaryUiState).toString = function () { return AssignmentSubmitterSummaryUiState__toString_impl_fdil8u(this.nt9_1); }; protoOf(AssignmentSubmitterSummaryUiState).hashCode = function () { return AssignmentSubmitterSummaryUiState__hashCode_impl_6dnbk1(this.nt9_1); }; protoOf(AssignmentSubmitterSummaryUiState).equals = function (other) { return AssignmentSubmitterSummaryUiState__equals_impl_zhk063(this.nt9_1, other); }; function get_listItemUiState(_this__u8e3s4) { return _AssignmentSubmitterSummaryUiState___init__impl__s3rgxm(_this__u8e3s4); } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.wt9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda).gq7 = function (it, $completion) { var tmp = this.hq7(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.gq7(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.xt9_1.nq6_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.wt9_1.ptb(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).hq7 = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda(this.wt9_1, completion); i.xt9_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.gq7(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.ytb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda).atc = function (assignmentData, $completion) { var tmp = this.btc(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.atc((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.ytb_1.vta_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.ztb_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u7y_1; Companion_getInstance_1(); var isEnrolledButNotInGroup = equals(tmp_0, new Long(-1, -1)); var tmp1_safe_receiver = this.ztb_1; var tmp9_assignment = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q7y_1; var tmp2_safe_receiver = this.ztb_1; var tmp10_courseBlock = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r7y_1; var tmp3_safe_receiver = this.ztb_1; var tmp11_courseBlockPicture = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.s7y_1; var tmp5_safe_receiver = this.ztb_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.u7y_1; var tmp12_submitterUid = tmp6_elvis_lhs == null ? new Long(0, 0) : tmp6_elvis_lhs; var tmp4_safe_receiver = this.ztb_1; var tmp13_courseGroupSet = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.t7y_1; var tmp_1; if (isEnrolledButNotInGroup) { tmp_1 = this.ytb_1.mqk().eog(strings_getInstance().cng_1); } else { tmp_1 = null; } var tmp14_unassignedError = tmp_1; var tmp7_safe_receiver = this.ztb_1; var tmp8_elvis_lhs = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.v7y_1; var tmp15_showModerateOptions = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs; var nextValue = prevValue.dtd(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.y1k(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).btc = function (assignmentData, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.ytb_1, completion); i.ztb_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.atc(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).otd = function (submissions, submissionFiles, $completion) { var tmp = this.ptd(submissions, submissionFiles, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).um = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.otd(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.mtd_1, this.ntd_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).ptd = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(completion); i.mtd_1 = submissions; i.ntd_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.otd(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.ytd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).ate = function (it, $completion) { var tmp = this.bte(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.ate((!(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.ytd_1.vta_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ztd_1); if (this_0.y1k(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).bte = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.ytd_1, completion); i.ztd_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.ate(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.kte_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).mte = function (it, $completion) { var tmp = this.nte(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.mte((!(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.kte_1.vta_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.lte_1); if (this_0.y1k(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).nte = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.kte_1, completion); i.lte_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.mte(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.wte_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda).atf = function (value, $completion) { var tmp = this.btf(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.atf(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.yte_1 = this.wte_1; var tmp_1 = this; tmp_1.zte_1 = this.xte_1; this.hd_1 = 1; var tmp0_safe_receiver = this.zte_1.ctf_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bc2_1; suspendResult = this.yte_1.t1d(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).btf = function (value, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda(this.wte_1, completion); i.xte_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.atf(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$70(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ltf_1 = _this__u8e3s4; this.mtf_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.ntf_1 = this.mtf_1; this.hd_1 = 1; var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.ntf_1, null); suspendResult = this.ltf_1.otf_1.a1c(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.xtf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda).ztf = function (it, $completion) { var tmp = this.atg(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.ztf((!(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.xtf_1.vta_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dtd(VOID, VOID, VOID, VOID, VOID, this.ytf_1); if (this_0.y1k(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).atg = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda(this.xtf_1, completion); i.ytf_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.ztf(it, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_7($this) { this.otf_1 = $this; } protoOf(_no_name_provided__qut3iv_7).btg = 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_7).a1c = function (collector, $completion) { return this.btg(collector, $completion); }; function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.ktg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).mtg = function (submissionUid, $completion) { var tmp = this.ntg(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.mtg(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.ktg_1.gqk().s7e().rc9(this.ltg_1)); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda$slambda_0(this.ktg_1, null); suspendResult = tmp_0.a1c(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).ntg = function (submissionUid, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.ktg_1, completion); i.ltg_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.mtg(submissionUid, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1($entityFlow, this$0, resultContinuation) { this.wtg_1 = $entityFlow; this.xtg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.xtg_1, null); suspendResult = this.wtg_1.h1h(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_1(this.wtg_1, this.xtg_1, completion); i.ytg_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.u1m($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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel....' call var nextValue = prevValue.bq3(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.hth_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.jth_1 = this.hth_1.iqk().r7e().mc1(this.hth_1.eqk(), this.hth_1.gqj_1); this.kth_1 = this.hth_1.iqk().s7e().sc9(this.hth_1.eqk(), this.hth_1.gqj_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.jth_1, this.kth_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.hth_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_3(this.hth_1, completion); i.ith_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.tth_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.tth_1.iqk().t7e().gbv(this.tth_1.eqk(), this.tth_1.gqj_1); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.tth_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_5(this.tth_1, completion); i.uth_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.dti_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.dti_1.xta_1; var tmp_0 = distinctUntilChanged(new _no_name_provided__qut3iv_7(this_0)); suspendResult = collectLatest(tmp_0, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.dti_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_7(this.dti_1, completion); i.eti_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this$0, resultContinuation) { this.nti_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nti_1.qqk(this.nti_1.jqk(), 'submissionHtml'); var tmp_1 = ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_0(this.nti_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda$slambda(this.nti_1, completion); i.oti_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1($this_launch, this$0, $entityFlow, resultContinuation) { this.xti_1 = $this_launch; this.yti_1 = this$0; this.zti_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1).m78 = function ($completion) { return this.j87($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.xti_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_2(this.zti_1, this.yti_1, null)); launchSetTitleFromClazzUid(this.yti_1, this.yti_1.gtb_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$lambda(this.yti_1)); launch(this.xti_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_4(this.yti_1, null)); launch(this.xti_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_6(this.yti_1, null)); launch(this.xti_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda$slambda_8(this.yti_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).l78 = function (completion) { return new ClazzAssignmentDetailOverviewViewModel$slambda$slambda_1(this.xti_1, this.yti_1, this.zti_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.j87($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this$0, $file, resultContinuation) { this.itj_1 = this$0; this.jtj_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.itj_1.iqk().s7e(); var tmp0_safe_receiver = this.jtj_1.ncb_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pca_1; suspendResult = tmp_0.vc9(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).env = function (it, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda(this.itj_1, this.jtj_1, completion); i.ktj_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.dnv(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.vta_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.dtd(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.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_saveAndUploadUseCase__bjy5rj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.htb_1; saveAndUploadUseCase$factory_0(); return this_0.t2(); } function _get_cancelTransferJobUseCase__o6e2y4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.itb_1; cancelTransferJobUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jtb_1; openBlobUiUseCase$factory_0(); return this_0.t2(); } function _get_ustadAccountManager__el9prc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ltb_1; ustadAccountManager$factory_0(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mtb_1; showSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ntb_1; dismissSocialWarningUseCase$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.otb_1; openExternalLinkUseCase$factory_0(); return this_0.t2(); } function newCourseAssignmentSubmission($this) { var tmp = get_doorPrimaryKeyManager($this.gqk()); Companion_getInstance_1(); var tmp0_casUid = tmp.n62(522); var tmp1_casAssignmentUid = $this.gqj_1; var tmp2_casClazzUid = $this.gtb_1; var tmp3_casSubmitterPersonUid = $this.cqk().go6().tnq_1.f96_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.ncb_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.ktb_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_0 = $this; var tmp_1 = $this.dqk(); tmp_0.ktb_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_130() { this.ltj_1 = 'latestSubmission'; this.mtj_1 = 'submissionHtml'; this.ntj_1 = 'CourseAssignmentDetailOverviewView'; } var Companion_instance_179; function Companion_getInstance_147() { return Companion_instance_179; } function sam$kotlinx_coroutines_flow_FlowCollector$0_16(function_0) { this.otj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_16).t1d = function (value, $completion) { return this.otj_1(value, $completion); }; function ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().u7e().fac(this$0.eqk(), this$0.gqj_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().u7e().hac(this$0.gqj_1, false); }; } function ClazzAssignmentDetailOverviewViewModel$slambda(this$0, $savedStateHandle, $entityFlow, resultContinuation) { this.xtj_1 = this$0; this.ytj_1 = $savedStateHandle; this.ztj_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentDetailOverviewViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.xtj_1.rqk(this.ytj_1, 'latestSubmission', Companion_getInstance_1().n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.btk_1 = suspendResult; this.ctk_1 = this.btk_1 == null ? newCourseAssignmentSubmission(this.xtj_1) : this.btk_1; l$ret$1: do { var this_0 = this.xtj_1.xta_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dtk(this.ctk_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.atk_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_0(this.xtj_1, null)); this.hd_1 = 2; suspendResult = whenSubscribed(this.xtj_1.vta_1, ClazzAssignmentDetailOverviewViewModel$slambda$slambda_2(this.atk_1, this.xtj_1, this.ztj_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$slambda(this.xtj_1, this.ytj_1, this.ztj_1, completion); i.atk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda(this$0, resultContinuation) { this.mtk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.mtk_1).koy(toString_0(_get_ustadAccountManager__el9prc(this.mtk_1).go6().tnq_1.g96_1)); l$ret$1: do { var this_0 = this.mtk_1.vta_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dtd(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.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda(this.mtk_1, completion); i.ntk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda($text) { return function ($this$shallowCopy) { $this$shallowCopy.fc2_1 = $text; return Unit_instance; }; } function ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda($submissionToSave, this$0, resultContinuation) { this.wtk_1 = $submissionToSave; this.xtk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wtk_1 == null)) { this.hd_1 = 2; suspendResult = this.xtk_1.sqk(this.xtk_1.mqj_1, 'latestSubmission', Companion_getInstance_1().n4r(), this.wtk_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda(this.wtk_1, this.xtk_1, completion); i.ytk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda(this$0, $submitterUid, resultContinuation) { this.htl_1 = this$0; this.itl_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.htl_1.iqk().u7e(); var this_0 = new Comments(); this_0.bad_1 = this.itl_1; this_0.aad_1 = this.htl_1.eqk(); this_0.cad_1 = this.htl_1.vta_1.t2().gtc_1; this_0.yac_1 = this.htl_1.gqj_1; this_0.xac_1 = this.htl_1.zta_1.t2(); this_0.fad_1 = systemTimeInMillis(); suspendResult = tmp_0.dac(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.htl_1.zta_1.x1k(''); tmp_1.ktl_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.htl_1.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.htl_1.oqk(Companion_getInstance_96().jq3_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda(this.htl_1, this.itl_1, completion); i.jtl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda(this$0, resultContinuation) { this.ttl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ttl_1.iqk().u7e(); var this_0 = new Comments(); this_0.bad_1 = new Long(0, 0); this_0.aad_1 = this.ttl_1.eqk(); this_0.yac_1 = this.ttl_1.gqj_1; this_0.xac_1 = this.ttl_1.btb_1.t2(); this_0.fad_1 = systemTimeInMillis(); suspendResult = tmp_0.dac(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.ttl_1.btb_1.x1k(''); tmp_1.vtl_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.ttl_1.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.ttl_1.oqk(Companion_getInstance_96().jq3_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda(this.ttl_1, completion); i.utl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this$0, $size, $mimeType, $fileName, $uri, resultContinuation) { this.etm_1 = this$0; this.ftm_1 = $size; this.gtm_1 = $mimeType; this.htm_1 = $fileName; this.itm_1 = $uri; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.etm_1.gqk()); suspendResult = tmp_0.o62(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ktm_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.etm_1.xta_1.t2().ctf_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bc2_1; tmp_1.ltm_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.mtm_1 = this.etm_1.vta_1.t2().gtc_1; this.ntm_1 = this.ftm_1.mb(); this.otm_1 = this.etm_1.gqj_1; this.ptm_1 = this.etm_1.gtb_1; this.qtm_1 = new CourseAssignmentSubmissionFile(this.ktm_1, this.ltm_1, this.mtm_1, this.otm_1, this.ptm_1, this.gtm_1, this.htm_1, this.itm_1, this.ntm_1); this.hd_1 = 2; suspendResult = this.etm_1.gqk().s7e().qc9(listOf_0(this.qtm_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.etm_1); var tmp_3 = this.qtm_1.pca_1; suspendResult = tmp_2.coo(listOf_0(new SaveLocalUriAsBlobItem(this.itm_1, tmp_3, 90, this.gtm_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().m5e('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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda(this.etm_1, this.ftm_1, this.gtm_1, this.htm_1, this.itm_1, completion); i.jtm_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda(this$0, $submission, resultContinuation) { this.ztm_1 = this$0; this.atn_1 = $submission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ztm_1.uta_1.gog(this.ztm_1.iqk(), this.ztm_1.vta_1.t2().gtc_1, this.ztm_1.gqj_1, this.ztm_1.cqk().go6().tnq_1.f96_1, this.atn_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.ztm_1.xta_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dtk(newCourseAssignmentSubmission(this.ztm_1)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.dtn_1 = tmp$ret$0.ctf_1; l$ret$3: do { var this_1 = this.ztm_1.vta_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); if (!(this.dtn_1 == null)) { this.hd_1 = 3; suspendResult = this.ztm_1.sqk(this.ztm_1.mqj_1, 'latestSubmission', Companion_getInstance_1().n4r(), this.dtn_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.ztm_1.kqk().qq3(new Snack(this.ztm_1.mqk().eog(strings_getInstance().bn2_1))); tmp_1.ctn_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().q5e('Exception submitting assignment: ' + e, e); l$ret$7: do { var this_2 = this.ztm_1.vta_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, e.message); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); tmp_3.ctn_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.ztm_1.vta_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.y1k(prevValue_2, nextValue_2)) { break l$ret$9; } } } while (false); this.ztm_1.oqk(Companion_getInstance_96().jq3_1); throw t; case 7: throw this.kd_1; case 8: this.id_1 = 7; l$ret$11: do { var this_4 = this.ztm_1.vta_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_4.y1k(prevValue_3, nextValue_3)) { break l$ret$11; } } } while (false); this.ztm_1.oqk(Companion_getInstance_96().jq3_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda(this.ztm_1, this.atn_1, completion); i.btn_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda(this$0, $file, resultContinuation) { this.mtn_1 = this$0; this.ntn_1 = $file; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.mtn_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda$slambda_0(this.mtn_1, this.ntn_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this; var tmp0_safe_receiver = this.ntn_1.ocb_1; tmp_1.ptn_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qcb_1; if (this.ptn_1 == null) { this.qtn_1 = null; this.hd_1 = 4; continue $sm; } else { var tmp_2 = this; tmp_2.rtn_1 = this.ptn_1; var tmp_3 = this; tmp_3.stn_1 = this.rtn_1; this.ttn_1 = _get_cancelTransferJobUseCase__o6e2y4(this.mtn_1); if (this.ttn_1 == null) { this.utn_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.ttn_1.i1i(this.stn_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 2: var tmp_4 = this; tmp_4.utn_1 = Unit_instance; this.hd_1 = 3; continue $sm; case 3: this.qtn_1 = this.rtn_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda(this.mtn_1, this.ntn_1, completion); i.otn_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation) { this.dto_1 = this$0; this.eto_1 = $submissionFile; this.fto_1 = $intent; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.hto_1 = _get_openBlobUiUseCase__fzusqz(this.dto_1); if (this.hto_1 == null) { this.ito_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.eto_1); suspendResult = this.hto_1.gom(tmp_0, ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda$lambda(this.dto_1), this.fto_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.ito_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$openSubmissionFileAsBlob$slambda(this.dto_1, this.eto_1, this.fto_1, completion); i.gto_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation) { this.rto_1 = this$0; this.sto_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.rto_1.iqk().u7e().eac(this.sto_1.wac_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rto_1.kqk().qq3(new Snack(this.rto_1.mqk().eog(strings_getInstance().xme_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda(this.rto_1, this.sto_1, completion); i.tto_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.u1m($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).f58(); // 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.d58(tmp$ret$0, null); tmp = new SubmitAssignmentUseCase(tmp$ret$1); } else { tmp = submitAssignmentUseCase; } submitAssignmentUseCase = tmp; DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignment'); this.uta_1 = submitAssignmentUseCase; this.vta_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.mqk().wq1())); this.wta_1 = asStateFlow(this.vta_1); this.xta_1 = MutableStateFlow(new ClazzAssignmentDetailoverviewSubmissionUiState()); this.yta_1 = asStateFlow(this.xta_1); this.zta_1 = MutableStateFlow(''); this.atb_1 = asStateFlow(this.zta_1); this.btb_1 = MutableStateFlow(''); this.ctb_1 = asStateFlow(this.btb_1); var tmp_2 = this; tmp_2.dtb_1 = ClazzAssignmentDetailOverviewViewModel$privateCommentsPagingSourceFactory$lambda(this); var tmp_3 = this; tmp_3.etb_1 = ClazzAssignmentDetailOverviewViewModel$courseCommentsPagingSourceFactory$lambda(this); this.ftb_1 = null; var tmp_4 = this; Companion_getInstance_123(); 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.gtb_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.htb_1 = Instance(this_0, tmp$ret$2, null).a5d(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.itb_1 = InstanceOrNull(this_1, tmp$ret$4, null).a5d(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.jtb_1 = InstanceOrNull(this_2, tmp$ret$6, null).a5d(this, openBlobUiUseCase$factory()); this.ktb_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.ltb_1 = Instance(di, tmp$ret$8, null).a5d(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.mtb_1 = Instance(di, tmp$ret$10, null).a5d(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.ntb_1 = Instance(di, tmp$ret$12, null).a5d(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.otb_1 = Instance(di, tmp$ret$14, null).a5d(this, openExternalLinkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.vta_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp_20 = this.eqk(); var tmp_21 = this.cqk().go6().tnq_1.qkm(); var tmp0_safe_receiver_0 = this.cqk().go6().vnq_1; var nextValue = prevValue.dtd(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.g97_1, VOID, VOID, VOID, VOID, VOID, VOID, _get_showSocialWarningUseCase__ft8jc6(this).loe(toString_0(_get_ustadAccountManager__el9prc(this).go6().tnq_1.g96_1))); if (this_3.y1k(prevValue, nextValue)) { break $l$block; } } } var entityFlow = shareIn(this.iqk().q7e().t7s(this.gqj_1, this.gtb_1, this.cqk().ao7().hku_1), this.dqk(), Companion_getInstance_12().v1h()); var tmp_22 = this.dqk(); 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.vta_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.' call var tmp0_privateComments = this.dtb_1; var tmp1_courseComments = this.etb_1; var nextValue_0 = prevValue_0.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_courseComments, tmp0_privateComments); if (this_4.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ClazzAssignmentDetailOverviewViewModel).uto = function () { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).vto = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vta_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickMarksFilterChip.' call var nextValue = prevValue.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.eq4_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).ptb = function (text) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.xta_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onChangeSubmissionText.' call var tmp0_safe_receiver = prevValue.ctf_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { tmp = shallowCopy_0(tmp0_safe_receiver, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$lambda(text)); } var nextValue = prevValue.dtk(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var submissionToSave = tmp$ret$1.ctf_1; var tmp0_safe_receiver_0 = this.ftb_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.dqk(); tmp_0.ftb_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onChangeSubmissionText$slambda_0(submissionToSave, this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).wto = function (text) { this.zta_1.x1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).xto = function () { var submitterUid = this.vta_1.t2().gtc_1; if (submitterUid.c7(new Long(0, 0)) <= 0) return Unit_instance; if (this.pqk().equals(Companion_getInstance_96().iq3_1)) return Unit_instance; this.oqk(Companion_getInstance_96().iq3_1); var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitPrivateComment$slambda_0(this, submitterUid, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).yto = function (text) { this.btb_1.x1k(text); }; protoOf(ClazzAssignmentDetailOverviewViewModel).zto = function () { if (this.pqk().equals(Companion_getInstance_96().iq3_1)) return Unit_instance; this.oqk(Companion_getInstance_96().iq3_1); var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmitCourseComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).atp = function (uri, fileName, mimeType, size) { var tmp0_safe_receiver = this.vta_1.t2().ctc_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x7t_1; var assignmentSizeLimit = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; if (size.c7(toLong(imul(imul(assignmentSizeLimit, 1024), 1024))) > 0) { this.kqk().qq3(new Snack(this.mqk().eog(strings_getInstance().nmp_1))); return Unit_instance; } var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onAddSubmissionFile$slambda_0(this, size, mimeType, fileName, uri, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).btp = function () { if (!this.vta_1.t2().ntc_1) return Unit_instance; var tmp0_elvis_lhs = this.xta_1.t2().ctf_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.vta_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onClickSubmit.' call var nextValue = prevValue.dtd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.oqk(Companion_getInstance_96().iq3_1); var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onClickSubmit$slambda_0(this, submission, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ctp = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vta_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.detailoverview.ClazzAssignmentDetailOverviewViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.dtd(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.ztc_1, submission.bc2_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentDetailOverviewViewModel).dtp = function () { Companion_getInstance_123(); var tmp0_safe_receiver = this.vta_1.t2().ftc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a7z_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_123(); this.oqj_1.fp3('CourseGroupSet', mapOf([tmp, to('clazzUid', this.gtb_1.toString())])); }; protoOf(ClazzAssignmentDetailOverviewViewModel).etp = function (file) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onRemoveSubmissionFile$slambda_0(this, file, null)); }; protoOf(ClazzAssignmentDetailOverviewViewModel).ftp = function (file) { openSubmissionFileAsBlob(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentDetailOverviewViewModel).gtp = function (comments) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentDetailOverviewViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq($this) { return latestUniqueMarksByMarker($this.ktc_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().vng_1; var tmp_4 = new MessageIdOption2(tmp_3, 1); var tmp_5 = strings_getInstance().lmv_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.km9(), Companion_getInstance_9().jmd()) : 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.ctc_1 = assignment; this.dtc_1 = courseBlock; this.etc_1 = courseBlockPicture; this.ftc_1 = courseGroupSet; this.gtc_1 = submitterUid; this.htc_1 = editableSubmissionFiles; this.itc_1 = submissionTooLong; this.jtc_1 = submissions; this.ktc_1 = markList; this.ltc_1 = courseComments; this.mtc_1 = privateComments; this.ntc_1 = fieldsEnabled; this.otc_1 = selectedChipId; this.ptc_1 = gradeFilterChips; this.qtc_1 = submissionHeaderUiState; this.rtc_1 = unassignedError; this.stc_1 = submissionError; this.ttc_1 = activeUserPersonUid; this.utc_1 = activeUserPersonName; this.vtc_1 = activeUserPictureUri; this.wtc_1 = courseTerminology; this.xtc_1 = localDateTimeNow; this.ytc_1 = dayOfWeekStringMap; this.ztc_1 = collapsedSubmissions; this.atd_1 = openingFileSubmissionState; this.btd_1 = showModerateOptions; this.ctd_1 = showSocialWarning; } protoOf(ClazzAssignmentDetailOverviewUiState).htp = function () { var tmp0_safe_receiver = this.dtc_1; return isDateSet(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b7y_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).itp = function () { return this.jtp(); }; protoOf(ClazzAssignmentDetailOverviewUiState).ktp = function () { // Inline function 'kotlin.text.isNullOrBlank' call var this_0 = this.rtc_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ClazzAssignmentDetailOverviewUiState).ltp = function () { var tmp0_safe_receiver = this.ctc_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s7t_1) === true; }; protoOf(ClazzAssignmentDetailOverviewUiState).mtp = function () { return this.gtc_1.c7(new Long(0, 0)) > 0; }; protoOf(ClazzAssignmentDetailOverviewUiState).ntp = function () { var tmp; if (this.mtp()) { var tmp0_safe_receiver = this.ctc_1; tmp = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t7t_1) === true; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).otp = function () { var timeNow = systemTimeInMillis(); var tmp0_safe_receiver = this.dtc_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b7y_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.dtc_1; if (isDateSet(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.d7y_1)) { var tmp3_safe_receiver = this.dtc_1; var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.d7y_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).jtp = function () { if (!this.mtp()) return false; if (!this.otp()) return false; var tmp; var tmp0_safe_receiver = this.ctc_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z7t_1; if (tmp_0 === 1) { // Inline function 'kotlin.collections.isNotEmpty' call tmp = !this.jtc_1.c1(); } else { tmp = false; } if (tmp) { return false; } return true; }; protoOf(ClazzAssignmentDetailOverviewUiState).ptp = function () { var tmp; var tmp_0; if (this.jtp()) { var tmp0_safe_receiver = this.ctc_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7t_1) === true; } else { tmp_0 = false; } if (tmp_0) { tmp = this.htc_1.u() < this.ctc_1.y7t_1; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).qtp = function () { return this.mtp() ? submissionStatusFor(this.ktc_1, this.jtc_1) : null; }; protoOf(ClazzAssignmentDetailOverviewUiState).rtp = function () { return !(this.stp() == null); }; protoOf(ClazzAssignmentDetailOverviewUiState).ttp = 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.stp(); return !(it == null) ? !(it.nk8_1 === 0) : false; }; protoOf(ClazzAssignmentDetailOverviewUiState).utp = function () { var tmp; var tmp0_safe_receiver = this.ctc_1; if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b7u_1) === true) { tmp = this.jtp(); } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).vtp = function () { var tmp; if (this.otc_1 === 1) { tmp = _get_latestUniqueMarksByMarker__e0a3pq(this); } else { tmp = this.ktc_1; } return tmp; }; protoOf(ClazzAssignmentDetailOverviewUiState).stp = function () { return averageMark(this.ktc_1); }; protoOf(ClazzAssignmentDetailOverviewUiState).wtp = function () { var tmp0_safe_receiver = this.ctc_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q7t_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).xtp = 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).dtd = 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.ctc_1 : assignment; courseBlock = courseBlock === VOID ? this.dtc_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.etc_1 : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? this.ftc_1 : courseGroupSet; submitterUid = submitterUid === VOID ? this.gtc_1 : submitterUid; editableSubmissionFiles = editableSubmissionFiles === VOID ? this.htc_1 : editableSubmissionFiles; submissionTooLong = submissionTooLong === VOID ? this.itc_1 : submissionTooLong; submissions = submissions === VOID ? this.jtc_1 : submissions; markList = markList === VOID ? this.ktc_1 : markList; courseComments = courseComments === VOID ? this.ltc_1 : courseComments; privateComments = privateComments === VOID ? this.mtc_1 : privateComments; fieldsEnabled = fieldsEnabled === VOID ? this.ntc_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.otc_1 : selectedChipId; gradeFilterChips = gradeFilterChips === VOID ? this.ptc_1 : gradeFilterChips; submissionHeaderUiState = submissionHeaderUiState === VOID ? this.qtc_1 : submissionHeaderUiState; unassignedError = unassignedError === VOID ? this.rtc_1 : unassignedError; submissionError = submissionError === VOID ? this.stc_1 : submissionError; activeUserPersonUid = activeUserPersonUid === VOID ? this.ttc_1 : activeUserPersonUid; activeUserPersonName = activeUserPersonName === VOID ? this.utc_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.vtc_1 : activeUserPictureUri; courseTerminology = courseTerminology === VOID ? this.wtc_1 : courseTerminology; localDateTimeNow = localDateTimeNow === VOID ? this.xtc_1 : localDateTimeNow; dayOfWeekStringMap = dayOfWeekStringMap === VOID ? this.ytc_1 : dayOfWeekStringMap; collapsedSubmissions = collapsedSubmissions === VOID ? this.ztc_1 : collapsedSubmissions; openingFileSubmissionState = openingFileSubmissionState === VOID ? this.atd_1 : openingFileSubmissionState; showModerateOptions = showModerateOptions === VOID ? this.btd_1 : showModerateOptions; showSocialWarning = showSocialWarning === VOID ? this.ctd_1 : showSocialWarning; return $super === VOID ? this.xtp(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.xtp.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.ctc_1 + ', courseBlock=' + this.dtc_1 + ', courseBlockPicture=' + this.etc_1 + ', courseGroupSet=' + this.ftc_1 + ', submitterUid=' + this.gtc_1.toString() + ', editableSubmissionFiles=' + this.htc_1 + ', submissionTooLong=' + this.itc_1 + ', submissions=' + this.jtc_1 + ', markList=' + this.ktc_1 + ', courseComments=' + this.ltc_1 + ', privateComments=' + this.mtc_1 + ', fieldsEnabled=' + this.ntc_1 + ', selectedChipId=' + this.otc_1 + ', gradeFilterChips=' + this.ptc_1 + ', submissionHeaderUiState=' + this.qtc_1 + ', unassignedError=' + this.rtc_1 + ', submissionError=' + this.stc_1 + ', activeUserPersonUid=' + this.ttc_1.toString() + ', activeUserPersonName=' + this.utc_1 + ', activeUserPictureUri=' + this.vtc_1 + ', courseTerminology=' + this.wtc_1 + ', localDateTimeNow=' + this.xtc_1 + ', dayOfWeekStringMap=' + this.ytc_1 + ', collapsedSubmissions=' + this.ztc_1 + ', openingFileSubmissionState=' + this.atd_1 + ', showModerateOptions=' + this.btd_1 + ', showSocialWarning=' + this.ctd_1 + ')'; }; protoOf(ClazzAssignmentDetailOverviewUiState).hashCode = function () { var result = this.ctc_1 == null ? 0 : this.ctc_1.hashCode(); result = imul(result, 31) + (this.dtc_1 == null ? 0 : this.dtc_1.hashCode()) | 0; result = imul(result, 31) + (this.etc_1 == null ? 0 : this.etc_1.hashCode()) | 0; result = imul(result, 31) + (this.ftc_1 == null ? 0 : hashCode(this.ftc_1)) | 0; result = imul(result, 31) + this.gtc_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.htc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.itc_1) | 0; result = imul(result, 31) + hashCode(this.jtc_1) | 0; result = imul(result, 31) + hashCode(this.ktc_1) | 0; result = imul(result, 31) + hashCode(this.ltc_1) | 0; result = imul(result, 31) + hashCode(this.mtc_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ntc_1) | 0; result = imul(result, 31) + this.otc_1 | 0; result = imul(result, 31) + hashCode(this.ptc_1) | 0; result = imul(result, 31) + this.qtc_1.hashCode() | 0; result = imul(result, 31) + (this.rtc_1 == null ? 0 : getStringHashCode(this.rtc_1)) | 0; result = imul(result, 31) + (this.stc_1 == null ? 0 : getStringHashCode(this.stc_1)) | 0; result = imul(result, 31) + this.ttc_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.utc_1) | 0; result = imul(result, 31) + (this.vtc_1 == null ? 0 : getStringHashCode(this.vtc_1)) | 0; result = imul(result, 31) + (this.wtc_1 == null ? 0 : hashCode(this.wtc_1)) | 0; result = imul(result, 31) + this.xtc_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.ytc_1) | 0; result = imul(result, 31) + hashCode(this.ztc_1) | 0; result = imul(result, 31) + (this.atd_1 == null ? 0 : this.atd_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.btd_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ctd_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.ctc_1, tmp0_other_with_cast.ctc_1)) return false; if (!equals(this.dtc_1, tmp0_other_with_cast.dtc_1)) return false; if (!equals(this.etc_1, tmp0_other_with_cast.etc_1)) return false; if (!equals(this.ftc_1, tmp0_other_with_cast.ftc_1)) return false; if (!this.gtc_1.equals(tmp0_other_with_cast.gtc_1)) return false; if (!equals(this.htc_1, tmp0_other_with_cast.htc_1)) return false; if (!(this.itc_1 === tmp0_other_with_cast.itc_1)) return false; if (!equals(this.jtc_1, tmp0_other_with_cast.jtc_1)) return false; if (!equals(this.ktc_1, tmp0_other_with_cast.ktc_1)) return false; if (!equals(this.ltc_1, tmp0_other_with_cast.ltc_1)) return false; if (!equals(this.mtc_1, tmp0_other_with_cast.mtc_1)) return false; if (!(this.ntc_1 === tmp0_other_with_cast.ntc_1)) return false; if (!(this.otc_1 === tmp0_other_with_cast.otc_1)) return false; if (!equals(this.ptc_1, tmp0_other_with_cast.ptc_1)) return false; if (!this.qtc_1.equals(tmp0_other_with_cast.qtc_1)) return false; if (!(this.rtc_1 == tmp0_other_with_cast.rtc_1)) return false; if (!(this.stc_1 == tmp0_other_with_cast.stc_1)) return false; if (!this.ttc_1.equals(tmp0_other_with_cast.ttc_1)) return false; if (!(this.utc_1 === tmp0_other_with_cast.utc_1)) return false; if (!(this.vtc_1 == tmp0_other_with_cast.vtc_1)) return false; if (!equals(this.wtc_1, tmp0_other_with_cast.wtc_1)) return false; if (!this.xtc_1.equals(tmp0_other_with_cast.xtc_1)) return false; if (!equals(this.ytc_1, tmp0_other_with_cast.ytc_1)) return false; if (!equals(this.ztc_1, tmp0_other_with_cast.ztc_1)) return false; if (!equals(this.atd_1, tmp0_other_with_cast.atd_1)) return false; if (!(this.btd_1 === tmp0_other_with_cast.btd_1)) return false; if (!(this.ctd_1 === tmp0_other_with_cast.ctd_1)) return false; return true; }; function ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission) { editableSubmission = editableSubmission === VOID ? null : editableSubmission; this.ctf_1 = editableSubmission; } protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).dtk = function (editableSubmission) { return new ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission); }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).toString = function () { return 'ClazzAssignmentDetailoverviewSubmissionUiState(editableSubmission=' + this.ctf_1 + ')'; }; protoOf(ClazzAssignmentDetailoverviewSubmissionUiState).hashCode = function () { return this.ctf_1 == null ? 0 : this.ctf_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.ctf_1, tmp0_other_with_cast.ctf_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.gtq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda).yqb = function (noSubmissions, $completion) { var tmp = this.zqb(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.yqb((!(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.htq_1 ? this.gtq_1.gtr_1.t2().mtr_1 : false) { l$ret$1: do { var this_0 = this.gtq_1.gtr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.utr(VOID, VOID, false); if (this_0.y1k(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).zqb = function (noSubmissions, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda(this.gtq_1, completion); i.htq_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.yqb(noSubmissions, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.dts_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda).m78 = function ($completion) { return this.j87($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.dts_1.gqk().r7e(); var tmp0_safe_receiver = this.dts_1.gtr_1.t2().ets(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n7t_1; var tmp_1 = tmp_0.lc1(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_0(this.dts_1, null); suspendResult = tmp_1.a1c(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).l78 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda$slambda(this.dts_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.j87($completion); }; l.$arity = 0; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nts_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_1).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.ots_1.nq6_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.nts_1.gtr_1.t2().ets(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.dk4_1; this.nts_1.pts(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.vkh(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).hq7 = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_1(this.nts_1, completion); i.ots_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$lambda($groupSet) { return function ($this$shallowCopy) { $this$shallowCopy.q7t_1 = $groupSet.a7z_1; return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.yts_1 = $commitDelay; this.zts_1 = $entity; this.att_1 = $this; this.btt_1 = $key; this.ctt_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.yts_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.zts_1 == null)) { this.hd_1 = 2; suspendResult = this.att_1.sqk(this.att_1.mqj_1, this.btt_1, this.ctt_1, this.zts_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_1(this.yts_1, this.zts_1, this.att_1, this.btt_1, this.ctt_1, completion); i.dtt_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.mtt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_3).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.ntt_1.nq6_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.mtt_1.gtr_1; while (true) { var prevValue = this_0.t2(); var tmp3_safe_receiver = prevValue.ets(); var tmp_2; if (tmp3_safe_receiver == null) { tmp_2 = null; } else { var tmp0_safe_receiver = prevValue.ets(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_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.a7z_1.equals(new Long(0, 0))) { tmp_5 = groupSet; } else { tmp_5 = null; } var tmp2_safe_receiver = tmp_5; tmp_2 = tmp3_safe_receiver.pk4(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_4, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.b7z_1); } var nextValue = prevValue.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.rtr_1.ztt(tmp_2), VOID, null); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var newState = tmp$ret$0; var this_1 = this.mtt_1; var entity = newState.ets(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_6 = this_1; var tmp_7 = this_1.dqk(); tmp_6.tqp_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).hq7 = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_3(this.mtt_1, completion); i.ntt_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.itu_1 = $commitDelay; this.jtu_1 = $entity; this.ktu_1 = $this; this.ltu_1 = $key; this.mtu_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.itu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.jtu_1 == null)) { this.hd_1 = 2; suspendResult = this.ktu_1.sqk(this.ktu_1.mqj_1, this.ltu_1, this.mtu_1, this.jtu_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda$slambda_3(this.itu_1, this.jtu_1, this.ktu_1, this.ltu_1, this.mtu_1, completion); i.ntu_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.wtu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda$slambda_5).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.xtu_1.nq6_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.wtu_1.gtr_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.rtr_1.ott_1; var nextValue = prevValue.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.rtr_1.ztt(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk4(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, allocations))); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var newState = tmp$ret$0; var this_1 = this.wtu_1; var entity = newState.ets(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this_1.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this_1; var tmp_3 = this_1.dqk(); tmp_2.tqp_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).hq7 = function (result, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda$slambda_5(this.wtu_1, completion); i.xtu_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.gq7(result, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda).htv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.htv(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).env = function (it, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(completion); i.gtv_1 = it; return i; }; function ClazzAssignmentEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzAssignmentEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.htv(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.qtv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).rtv = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.rtv($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.qtv_1.gqk()); var assignmentUid = tmp_0.n62(520); var this_0 = new CourseBlock(); var tmp_1 = this_0; var tmp_2 = get_doorPrimaryKeyManager(this.qtv_1.gqk()); tmp_1.t7x_1 = tmp_2.n62(124); var tmp_3 = this_0; tmp_3.u7x_1 = 103; this_0.l7y_1 = assignmentUid; var tmp_4 = this_0; tmp_4.z7x_1 = 102; this_0.e7y_1 = 10.0; this_0.f7y_1 = 0.0; var this_1 = new ClazzAssignment(); this_1.n7t_1 = assignmentUid; this_1.f7u_1 = this.qtv_1.jtr_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).l78 = function (completion) { return new ClazzAssignmentEditViewModel$slambda$slambda_1(this.qtv_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.rtv($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.gtr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel...' call var tmp = prevValue.rtr_1.ztt(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.kk4_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.q7t_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.utr(VOID, VOID, VOID, VOID, $courseTerminology, VOID, VOID, tmp, tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.atw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_3).zqw = function ($this$withContext, $completion) { var tmp = this.v1m($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.zqw((!(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.atw_1.m4r(); var value = this.atw_1.gtr_1.t2(); var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(ClazzAssignmentEditUiState), arrayOf([]), false)); return this_0.r45(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).v1m = function ($this$withContext, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_3(this.atw_1, completion); i.btw_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.zqw($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.ktw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ktw_1.gtr_1, ClazzAssignmentEditViewModel$slambda$slambda$slambda_0(this.ktw_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_5(this.ktw_1, completion); i.ltw_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.utw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_7).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.utw_1.jqk(); Companion_getInstance_172(); var tmp_1 = this.utw_1.qqk(tmp_0, 'courseBlockDesc'); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_2(this.utw_1, null); suspendResult = tmp_1.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_7(this.utw_1, completion); i.vtw_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_9(this$0, resultContinuation) { this.etx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_9).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.etx_1.qqk(this.etx_1.jqk(), 'groupSet'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_4(this.etx_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_9(this.etx_1, completion); i.ftx_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$slambda$slambda_11(this$0, resultContinuation) { this.otx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda$slambda_11).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.otx_1.qqk(this.otx_1.jqk(), 'peerAllocationsResult'); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda$slambda_6(this.otx_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda$slambda_11(this.otx_1, completion); i.ptx_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$slambda(this$0, $initStateJson, resultContinuation) { this.ytx_1 = this$0; this.ztx_1 = $initStateJson; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).bty = function ($this$withContext, $completion) { var tmp = this.v1m($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.bty((!(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.ytx_1.m4r().s45(Companion_getInstance_149().n4r(), this.ztx_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda$slambda).v1m = function ($this$withContext, completion) { var i = new ClazzAssignmentEditViewModel$onClickSave$slambda$slambda(this.ytx_1, this.ztx_1, completion); i.aty_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.bty($this$withContext, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onClickSave$slambda$lambda($this$shallowCopy) { $this$shallowCopy.q7t_1 = new Long(0, 0); return Unit_instance; } function _get_snackDisaptcher__bp310a($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.itr_1; snackDisaptcher$factory_0(); return this_0.t2(); } function hasErrors_0(_this__u8e3s4, $this) { return ((((((!(_this__u8e3s4.ptr_1 == null) ? true : !(_this__u8e3s4.rtr_1.vtt_1 == null)) ? true : !(_this__u8e3s4.rtr_1.utt_1 == null)) ? true : !(_this__u8e3s4.rtr_1.xtt_1 == null)) ? true : !(_this__u8e3s4.ntr_1 == null)) ? true : !(_this__u8e3s4.qtr_1 == null)) ? true : !(_this__u8e3s4.ttr_1 == null)) ? true : _this__u8e3s4.rtr_1.dty(); } function checkNoSubmissionsMade($this, $completion) { var tmp = $this.gqk().r7e(); var tmp0_safe_receiver = $this.gtr_1.t2().ets(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n7t_1; return tmp.kc1(tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs, $completion); } function Companion_131() { this.ety_1 = 'groupSet'; this.fty_1 = 'peerAllocationsResult'; this.gty_1 = 'terminology'; this.hty_1 = 'CourseAssignmentEdit'; this.ity_1 = 5; this.jty_1 = 100; this.kty_1 = 'groupSubmissionOn'; } var Companion_instance_180; function Companion_getInstance_148() { return Companion_instance_180; } function sam$kotlinx_coroutines_flow_FlowCollector$0_17(function_0) { this.lty_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_17).t1d = function (value, $completion) { return this.lty_1(value, $completion); }; function ClazzAssignmentEditViewModel$_init_$lambda_wdhfey(db, systemImpl) { return new UpdatePeerReviewAllocationUseCase(db, systemImpl); } function ClazzAssignmentEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.uty_1 = this$0; this.vty_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.uty_1.rqk(this.vty_1, 'terminology', Companion_instance_34.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xty_1 = suspendResult; this.hd_1 = 2; var tmp_0 = Companion_getInstance_13().n4r(); var tmp_1 = ClazzAssignmentEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzAssignmentEditViewModel$slambda$slambda_2(this.uty_1, null); suspendResult = this.uty_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzAssignmentEditViewModel$slambda$lambda(this.vty_1, this.uty_1, this.xty_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: Companion_getInstance_123(); if (this.vty_1.ba('initState') == null) { var tmp_3 = this; Companion_getInstance_123(); tmp_3.yty_1 = 'initState'; this.hd_1 = 3; var tmp_4 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_4, ClazzAssignmentEditViewModel$slambda$slambda_4(this.uty_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.vty_1.qqf(this.yty_1, ARGUMENT); this.hd_1 = 4; continue $sm; case 4: l$ret$1: do { var this_0 = this.uty_1.gtr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zty(true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.uty_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_5 = Companion_getInstance_96().jq3_1; var tmp_6 = this.uty_1.mqk().eog(strings_getInstance().fmn_1); var nextValue_0 = prevValue_0.bq3(VOID, tmp_5, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_6, VOID, ClazzAssignmentEditViewModel$onClickSave$ref(this.uty_1))); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.wty_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_6(this.uty_1, null)); launch(this.wty_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_8(this.uty_1, null)); launch(this.wty_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_10(this.uty_1, null)); launch(this.wty_1, VOID, VOID, ClazzAssignmentEditViewModel$slambda$slambda_12(this.uty_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$slambda(this.uty_1, this.vty_1, completion); i.wty_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onAssignmentChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.itz_1 = $commitDelay; this.jtz_1 = $entity; this.ktz_1 = $this; this.ltz_1 = $key; this.mtz_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onAssignmentChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.itz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.jtz_1 == null)) { this.hd_1 = 2; suspendResult = this.ktz_1.sqk(this.ktz_1.mqj_1, this.ltz_1, this.mtz_1, this.jtz_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onAssignmentChanged$slambda(this.itz_1, this.jtz_1, this.ktz_1, this.ltz_1, this.mtz_1, completion); i.ntz_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.wtz_1 = $commitDelay; this.xtz_1 = $entity; this.ytz_1 = $this; this.ztz_1 = $key; this.au0_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wtz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.xtz_1 == null)) { this.hd_1 = 2; suspendResult = this.ytz_1.sqk(this.ytz_1.mqj_1, this.ztz_1, this.au0_1, this.xtz_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda(this.wtz_1, this.xtz_1, this.ytz_1, this.ztz_1, this.au0_1, completion); i.bu0_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.ku0_1 = $commitDelay; this.lu0_1 = $entity; this.mu0_1 = $this; this.nu0_1 = $key; this.ou0_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onPictureChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ku0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.lu0_1 == null)) { this.hd_1 = 2; suspendResult = this.mu0_1.sqk(this.mu0_1.mqj_1, this.nu0_1, this.ou0_1, this.lu0_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentEditViewModel$onPictureChanged$slambda(this.ku0_1, this.lu0_1, this.mu0_1, this.nu0_1, this.ou0_1, completion); i.pu0_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.u1m($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.gtr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onClickSave..' call var nextValue = prevValue.zty(true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzAssignmentEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.yu0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.j87($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_123(); tmp_0.zu0_1 = this.yu0_1.mqj_1.ba('initState'); if (this.zu0_1 == null) { this.au1_1 = null; this.hd_1 = 2; continue $sm; } else { var tmp_1 = this; tmp_1.bu1_1 = this.zu0_1; var tmp_2 = this; tmp_2.cu1_1 = this.bu1_1; this.hd_1 = 1; var tmp_3 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_3, ClazzAssignmentEditViewModel$onClickSave$slambda$slambda_0(this.yu0_1, this.cu1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.au1_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.du1_1 = this.au1_1; var tmp_4 = this; var tmp_5; if (this.du1_1 == null) { return Unit_instance; } else { tmp_5 = this.du1_1; } tmp_4.eu1_1 = tmp_5; var tmp_6 = this; var tmp2_safe_receiver = this.yu0_1.gtr_1.t2().ets(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kk4_1; var tmp_7; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_7 = tmp3_elvis_lhs; } tmp_6.fu1_1 = tmp_7; var tmp_8 = this; var tmp4_safe_receiver = this.yu0_1.gtr_1.t2().ets(); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.dk4_1; var tmp_9; if (tmp5_elvis_lhs == null) { return Unit_instance; } else { tmp_9 = tmp5_elvis_lhs; } tmp_8.gu1_1 = tmp_9; if (!this.fu1_1.v7t_1 ? !this.fu1_1.b7u_1 : false) { l$ret$1: do { var this_0 = this.yu0_1.gtr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.utr(VOID, VOID, VOID, VOID, VOID, this.yu0_1.mqk().eog(strings_getInstance().mnf_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var it = this.gu1_1.e7y_1; if (it == null ? true : it <= 0.0) { l$ret$3: do { var this_1 = this.yu0_1.gtr_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.rtr_1.ztt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.yu0_1.mqk().eog(strings_getInstance().hmj_1))); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.gu1_1.b7y_1.c7(this.gu1_1.a7y_1) <= 0) { l$ret$5: do { var this_2 = this.yu0_1.gtr_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_1.rtr_1.ztt(VOID, VOID, VOID, VOID, VOID, VOID, this.yu0_1.mqk().eog(strings_getInstance().en5_1))); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); } if (this.gu1_1.d7y_1.c7(this.gu1_1.b7y_1) < 0) { l$ret$7: do { var this_3 = this.yu0_1.gtr_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_2.rtr_1.ztt(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.yu0_1.mqk().eog(strings_getInstance().sn1_1))); if (this_3.y1k(prevValue_2, nextValue_2)) { break l$ret$7; } } } while (false); } var containsArg = this.fu1_1.x7t_1; if (!(5 <= containsArg ? containsArg <= 100 : false)) { l$ret$9: do { var this_4 = this.yu0_1.gtr_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.utr(VOID, VOID, VOID, VOID, VOID, VOID, this.yu0_1.mqk().fog(strings_getInstance().unb_1, ['5', '100'])); if (this_4.y1k(prevValue_3, nextValue_3)) { break l$ret$9; } } } while (false); } var this_5 = this.gu1_1.x7x_1; if (this_5 == null ? true : isBlank(this_5)) { l$ret$11: do { var this_6 = this.yu0_1.gtr_1; while (true) { var prevValue_4 = this_6.t2(); var nextValue_4 = prevValue_4.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_4.rtr_1.ztt(VOID, VOID, VOID, VOID, VOID, this.yu0_1.mqk().eog(strings_getInstance().lnh_1))); if (this_6.y1k(prevValue_4, nextValue_4)) { break l$ret$11; } } } while (false); } if (this.yu0_1.gtr_1.t2().str_1 ? this.fu1_1.q7t_1.equals(new Long(0, 0)) : false) { l$ret$13: do { var this_7 = this.yu0_1.gtr_1; while (true) { var prevValue_5 = this_7.t2(); var nextValue_5 = prevValue_5.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.yu0_1.mqk().eog(strings_getInstance().hmj_1)); if (this_7.y1k(prevValue_5, nextValue_5)) { break l$ret$13; } } } while (false); } this.hu1_1 = null; var tmp6_safe_receiver = this.eu1_1.ets(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.kk4_1; if (!equals(tmp7_safe_receiver == null ? null : tmp7_safe_receiver.q7t_1, this.fu1_1.q7t_1)) { this.hd_1 = 3; suspendResult = checkNoSubmissionsMade(this.yu0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.iu1_1 = false; this.hd_1 = 4; continue $sm; } case 3: this.ju1_1 = suspendResult; this.iu1_1 = !this.ju1_1; this.hd_1 = 4; continue $sm; case 4: if (this.iu1_1) { this.hu1_1 = this.yu0_1.mqk().eog(strings_getInstance().cme_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.eu1_1.ets(); var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.kk4_1; if (!((tmp9_safe_receiver == null ? null : tmp9_safe_receiver.a7u_1) === this.fu1_1.a7u_1)) { tmp_10 = this.hu1_1 == null; } else { tmp_10 = false; } if (tmp_10) { this.hd_1 = 6; suspendResult = checkNoSubmissionsMade(this.yu0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.ku1_1 = false; this.hd_1 = 7; continue $sm; } case 6: this.lu1_1 = suspendResult; this.ku1_1 = !this.lu1_1; this.hd_1 = 7; continue $sm; case 7: if (this.ku1_1) { this.hu1_1 = this.yu0_1.mqk().eog(strings_getInstance().cme_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.fu1_1.a7u_1; if (tmp_12 === 2) { tmp_11 = this.fu1_1.g7u_1 < 1; } else { tmp_11 = false; } if (tmp_11) { l$ret$15: do { var this_8 = this.yu0_1.gtr_1; while (true) { var prevValue_6 = this_8.t2(); var nextValue_6 = prevValue_6.utr(VOID, VOID, VOID, this.yu0_1.mqk().eog(strings_getInstance().mnc_1)); if (this_8.y1k(prevValue_6, nextValue_6)) { break l$ret$15; } } } while (false); } this.mu1_1 = this.hu1_1; if (hasErrors_0(this.yu0_1.gtr_1.t2(), this.yu0_1) ? true : !(this.mu1_1 == null)) { var tmp10_safe_receiver = this.mu1_1; if (tmp10_safe_receiver == null) null; else { _get_snackDisaptcher__bp310a(this.yu0_1).qq3(new Snack(tmp10_safe_receiver)); } return Unit_instance; } var tmp_13; var tmp_14 = this.fu1_1.a7u_1; if (tmp_14 === 2) { var tmp11_safe_receiver = this.eu1_1.ets(); var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.kk4_1; tmp_13 = !((tmp12_safe_receiver == null ? null : tmp12_safe_receiver.g7u_1) === this.fu1_1.g7u_1); } else { tmp_13 = false; } if (tmp_13) { this.hd_1 = 9; var tmp_15 = this.yu0_1.ftr_1(this.yu0_1.gqk(), this.yu0_1.mqk()); var tmp13_safe_receiver = this.yu0_1.gtr_1.t2().ets(); var tmp14_elvis_lhs = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.mk4_1; suspendResult = tmp_15.rph(tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs, this.fu1_1.q7t_1, this.fu1_1.f7u_1, this.fu1_1.n7t_1, this.fu1_1.g7u_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.yu0_1.gtr_1; while (true) { var prevValue_7 = this_9.t2(); var tmp0_safe_receiver = prevValue_7.rtr_1.ott_1; var nextValue_7 = prevValue_7.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_7.rtr_1.ztt(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk4(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newAllocations))); if (this_9.y1k(prevValue_7, nextValue_7)) { break l$ret$17; } } } while (false); this.hd_1 = 10; continue $sm; case 10: var this_10 = this.yu0_1.gtr_1; var tmp_16; var tmp_17; var tmp0_safe_receiver_0 = this_10.t2().ets(); var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.kk4_1; if (!equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q7t_1, new Long(0, 0))) { tmp_17 = !this_10.t2().str_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.rtr_1.ott_1; var tmp_18; if (tmp1_safe_receiver_0 == null) { tmp_18 = null; } else { var tmp0_safe_receiver_1 = prevValue_8.rtr_1.ott_1.kk4_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.pk4(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_19, null); } var nextValue_8 = prevValue_8.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_8.rtr_1.ztt(tmp_18)); if (tmp15_safe_receiver.y1k(prevValue_8, nextValue_8)) { break l$ret$19; } } } while (false); } this.yu0_1.xqp(this.yu0_1.gtr_1.t2().ets()); 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).l78 = function (completion) { return new ClazzAssignmentEditViewModel$onClickSave$slambda(this.yu0_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.j87($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.ftr_1 = peerReviewAllocationUseCaseFactory; var tmp_0 = this; var tmp0_completionCriteriaOptions = Companion_getInstance_149().cty_1; var tmp1_timeZone = Companion_getInstance_9().jmd().kmc(); tmp_0.gtr_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.htr_1 = asStateFlow(this.gtr_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.itr_1 = Instance(this, tmp$ret$0, null).a5d(this, snackDisaptcher$factory()); var tmp_3 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_3.jtr_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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.' call var tmp0_loadingState = Companion_getInstance_96().iq3_1; var tmp1_title = this.wqq(strings_getInstance().kn1_1, strings_getInstance().ln1_1); var nextValue = prevValue.bq3(VOID, tmp0_loadingState, tmp1_title, VOID, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_4 = this.dqk(); launch(tmp_4, VOID, VOID, ClazzAssignmentEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ClazzAssignmentEditViewModel).nu1 = function (groupSubmissionOn) { this.mqj_1.qqf('groupSubmissionOn', groupSubmissionOn.toString()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gtr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onGroupSubmissionOnChanged.' call var tmp; if (!(prevValue.ttr_1 == null) ? groupSubmissionOn : false) { tmp = prevValue.ttr_1; } else { tmp = null; } var nextValue = prevValue.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, groupSubmissionOn, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentEditViewModel).ou1 = function (assignment) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.gtr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onAssignmentChanged.' call var tmp8_safe_receiver = prevValue.rtr_1.ott_1; var tmp9_courseBlockEditUiState = prevValue.rtr_1.ztt(tmp8_safe_receiver == null ? null : tmp8_safe_receiver.pk4(VOID, VOID, VOID, VOID, VOID, VOID, VOID, assignment)); var tmp; var tmp_0; if (!(prevValue.qtr_1 == null)) { var tmp_1 = assignment == null ? null : assignment.x7t_1; var tmp6_safe_receiver = prevValue.ets(); var tmp7_safe_receiver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.kk4_1; tmp_0 = tmp_1 == (tmp7_safe_receiver == null ? null : tmp7_safe_receiver.x7t_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.qtr_1; } else { tmp = null; } var tmp10_sizeLimitError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.ptr_1 == null)) { tmp_4 = (assignment == null ? null : assignment.v7t_1) === false; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = !assignment.b7u_1; } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.ptr_1; } else { tmp_2 = null; } var tmp11_submissionRequiredError = tmp_2; var tmp_5; var tmp_6; var tmp_7; if (!(prevValue.ntr_1 == null)) { var tmp_8 = assignment == null ? null : assignment.g7u_1; var tmp1_safe_receiver = prevValue.ets(); var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kk4_1; tmp_7 = tmp_8 == (tmp2_safe_receiver == null ? null : tmp2_safe_receiver.g7u_1); } else { tmp_7 = false; } if (tmp_7) { var tmp_9 = assignment == null ? null : assignment.a7u_1; tmp_6 = tmp_9 === 2; } else { tmp_6 = false; } if (tmp_6) { tmp_5 = prevValue.ntr_1; } else { tmp_5 = null; } var tmp12_reviewerCountError = tmp_5; var nextValue = prevValue.utr(VOID, VOID, VOID, tmp12_reviewerCountError, VOID, tmp11_submissionRequiredError, tmp10_sizeLimitError, tmp9_courseBlockEditUiState); if (this_0.y1k(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.ets(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver = this.tqp_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp_10 = this; var tmp_11 = this.dqk(); tmp_10.tqp_1 = launch(tmp_11, VOID, VOID, ClazzAssignmentEditViewModel$onAssignmentChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).pts = function (courseBlock) { if (courseBlock == null) { Napier_getInstance().m5e('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.gtr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onCourseBlockChanged.' call var tmp0_safe_receiver = prevValue.ets(); var prevBlock = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dk4_1; var tmp8_$this = prevValue.rtr_1; var tmp1_safe_receiver = prevValue.ets(); var tmp9_block = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pk4(courseBlock); var tmp5_safe_receiver = prevValue.rtr_1.ott_1; var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.dk4_1; var tmp10_caMaxPointsError = this.xqq(tmp6_safe_receiver == null ? null : tmp6_safe_receiver.e7y_1, courseBlock.e7y_1, prevValue.rtr_1.vtt_1); var tmp; var tmp_0; var tmp_1; if (!(prevValue.rtr_1.utt_1 == null)) { tmp_1 = equals(prevBlock == null ? null : prevBlock.b7y_1, courseBlock.b7y_1); } else { tmp_1 = false; } if (tmp_1) { tmp_0 = prevBlock.a7y_1.equals(courseBlock.a7y_1); } else { tmp_0 = false; } if (tmp_0) { tmp = prevValue.rtr_1.utt_1; } else { tmp = null; } var tmp11_caDeadlineError = tmp; var tmp_2; var tmp_3; var tmp_4; if (!(prevValue.rtr_1.xtt_1 == null)) { tmp_4 = equals(prevBlock == null ? null : prevBlock.b7y_1, courseBlock.b7y_1); } else { tmp_4 = false; } if (tmp_4) { tmp_3 = prevBlock.d7y_1.equals(courseBlock.d7y_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.rtr_1.xtt_1; } else { tmp_2 = null; } var tmp12_caGracePeriodError = tmp_2; var tmp2_safe_receiver = prevValue.rtr_1.ott_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dk4_1; var tmp13_caTitleError = this.xqq(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.x7x_1, courseBlock.x7x_1, prevValue.rtr_1.ttt_1); var nextValue = prevValue.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp8_$this.ztt(tmp9_block, VOID, VOID, VOID, VOID, tmp13_caTitleError, tmp11_caDeadlineError, tmp10_caMaxPointsError, VOID, tmp12_caGracePeriodError)); if (this_0.y1k(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.ets(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_5 = this; var tmp_6 = this.dqk(); tmp_5.tqp_1 = launch(tmp_6, VOID, VOID, ClazzAssignmentEditViewModel$onCourseBlockChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).pu1 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.gtr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.rtr_1.ott_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.rtr_1.ott_1.ek4_1; tmp = tmp1_safe_receiver.pk4(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zkh(VOID, VOID, pictureUri)); } var nextValue = prevValue.utr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue.rtr_1.ztt(tmp)); if (this_0.y1k(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.ets(); var serializer = Companion_getInstance_13().n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.dqk(); tmp_0.tqp_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentEditViewModel$onPictureChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzAssignmentEditViewModel).qu1 = function () { var tmp = serializer_0(StringCompanionObject_instance); Companion_getInstance_123(); var tmp0_safe_receiver = this.gtr_1.t2().ets(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f7u_1; this.uqk('CourseGroups', 'groupSet', null, tmp, mapOf_0(to('clazzUid', (tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs).toString()))); }; protoOf(ClazzAssignmentEditViewModel).ru1 = function () { var tmp0_safe_receiver = this.gtr_1.t2().ets(); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_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.n4r()); var tmp_1 = this.m4r(); var tmp_2 = ListSerializer(Companion_instance_18.n4r()); var tmp2_safe_receiver = this.gtr_1.t2().ets(); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.mk4_1; var tmp_3 = to('allocations', tmp_1.r45(tmp_2, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs)); var tmp_4 = to('groupSetUid', assignmentVal.q7t_1.toString()); Companion_getInstance_123(); var tmp_5 = to('clazzUid', assignmentVal.f7u_1.toString()); var tmp_6 = to('numReviewers', assignmentVal.g7u_1.toString()); Companion_getInstance_114(); this.uqk('PeerReviewerAllocationEdit', 'peerAllocationsResult', null, tmp_0, mapOf([tmp_3, tmp_4, tmp_5, tmp_6, to('clazzAssignmentUid', assignmentVal.n7t_1.toString())])); }; protoOf(ClazzAssignmentEditViewModel).js3 = function () { if (!this.gtr_1.t2().ktr_1) return Unit_instance; var tmp = ClazzAssignmentEditViewModel$onClickSave$lambda(this); this.zqq(tmp, ClazzAssignmentEditViewModel$onClickSave$slambda_0(this, null)); }; function Companion_132() { Companion_instance_181 = this; this.cty_1 = listOf([CompletionCriteria_ASSIGNMENT_SUBMITTED_getInstance(), CompletionCriteria_ASSIGNMENT_GRADED_getInstance()]); } protoOf(Companion_132).n4r = function () { return $serializer_getInstance_70(); }; var Companion_instance_181; function Companion_getInstance_149() { if (Companion_instance_181 == null) new Companion_132(); return Companion_instance_181; } function $serializer_58() { $serializer_instance_58 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.clazzassignment.edit.ClazzAssignmentEditUiState', this, 10); tmp0_serialDesc.t4f('fieldsEnabled', true); tmp0_serialDesc.t4f('markingTypeEnabled', true); tmp0_serialDesc.t4f('groupSetEnabled', true); tmp0_serialDesc.t4f('reviewerCountError', true); tmp0_serialDesc.t4f('courseTerminology', true); tmp0_serialDesc.t4f('submissionRequiredError', true); tmp0_serialDesc.t4f('sizeLimitError', true); tmp0_serialDesc.t4f('courseBlockEditUiState', true); tmp0_serialDesc.t4f('groupSubmissionOn', true); tmp0_serialDesc.t4f('groupSetError', true); this.su1_1 = tmp0_serialDesc; } protoOf($serializer_58).q44 = function () { return this.su1_1; }; protoOf($serializer_58).k4g = 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_72(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_58).s44 = function (decoder) { var tmp0_desc = this.su1_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.i48(tmp0_desc); if (tmp14_input.x48()) { tmp4_local0 = tmp14_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.u48(tmp0_desc, 7, $serializer_getInstance_72(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.k48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.w48(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.w48(tmp0_desc, 4, $serializer_getInstance_10(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.u48(tmp0_desc, 7, $serializer_getInstance_72(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.j48(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_58).tu1 = function (encoder, value) { var tmp0_desc = this.su1_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ktr_1 === false)) { tmp1_output.o49(tmp0_desc, 0, value.ktr_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ltr_1 === true)) { tmp1_output.o49(tmp0_desc, 1, value.ltr_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.mtr_1 === true)) { tmp1_output.o49(tmp0_desc, 2, value.mtr_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.ntr_1 == null)) { tmp1_output.a4a(tmp0_desc, 3, StringSerializer_getInstance(), value.ntr_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.otr_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, $serializer_getInstance_10(), value.otr_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.ptr_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.ptr_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.qtr_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.qtr_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !value.rtr_1.equals(new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_149().cty_1))) { tmp1_output.y49(tmp0_desc, 7, $serializer_getInstance_72(), value.rtr_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.str_1 === false)) { tmp1_output.o49(tmp0_desc, 8, value.str_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.ttr_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.ttr_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_58).r44 = function (encoder, value) { return this.tu1(encoder, value instanceof ClazzAssignmentEditUiState ? value : THROW_CCE()); }; var $serializer_instance_58; function $serializer_getInstance_70() { if ($serializer_instance_58 == null) new $serializer_58(); return $serializer_instance_58; } 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_70().su1_1); } if (0 === (seen1 & 1)) $this.ktr_1 = false; else $this.ktr_1 = fieldsEnabled; if (0 === (seen1 & 2)) $this.ltr_1 = true; else $this.ltr_1 = markingTypeEnabled; if (0 === (seen1 & 4)) $this.mtr_1 = true; else $this.mtr_1 = groupSetEnabled; if (0 === (seen1 & 8)) $this.ntr_1 = null; else $this.ntr_1 = reviewerCountError; if (0 === (seen1 & 16)) $this.otr_1 = null; else $this.otr_1 = courseTerminology; if (0 === (seen1 & 32)) $this.ptr_1 = null; else $this.ptr_1 = submissionRequiredError; if (0 === (seen1 & 64)) $this.qtr_1 = null; else $this.qtr_1 = sizeLimitError; if (0 === (seen1 & 128)) $this.rtr_1 = new CourseBlockEditUiState(VOID, VOID, Companion_getInstance_149().cty_1); else $this.rtr_1 = courseBlockEditUiState; if (0 === (seen1 & 256)) $this.str_1 = false; else $this.str_1 = groupSubmissionOn; if (0 === (seen1 & 512)) $this.ttr_1 = null; else $this.ttr_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_149(); 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_149().cty_1) : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? false : groupSubmissionOn; groupSetError = groupSetError === VOID ? null : groupSetError; this.ktr_1 = fieldsEnabled; this.ltr_1 = markingTypeEnabled; this.mtr_1 = groupSetEnabled; this.ntr_1 = reviewerCountError; this.otr_1 = courseTerminology; this.ptr_1 = submissionRequiredError; this.qtr_1 = sizeLimitError; this.rtr_1 = courseBlockEditUiState; this.str_1 = groupSubmissionOn; this.ttr_1 = groupSetError; } protoOf(ClazzAssignmentEditUiState).ets = function () { return this.rtr_1.ott_1; }; protoOf(ClazzAssignmentEditUiState).uu1 = function () { var tmp0_safe_receiver = this.ets(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a7u_1; return tmp === 2; }; protoOf(ClazzAssignmentEditUiState).vu1 = function () { var tmp0_safe_receiver = this.ets(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b7u_1) === true; }; protoOf(ClazzAssignmentEditUiState).wu1 = function () { var tmp0_safe_receiver = this.ets(); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kk4_1; return (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v7t_1) === true; }; protoOf(ClazzAssignmentEditUiState).zty = function (fieldsEnabled) { return this.utr(fieldsEnabled, VOID, VOID, VOID, VOID, VOID, VOID, this.rtr_1.ztt(VOID, VOID, VOID, fieldsEnabled)); }; protoOf(ClazzAssignmentEditUiState).xu1 = 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).utr = function (fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.ktr_1 : fieldsEnabled; markingTypeEnabled = markingTypeEnabled === VOID ? this.ltr_1 : markingTypeEnabled; groupSetEnabled = groupSetEnabled === VOID ? this.mtr_1 : groupSetEnabled; reviewerCountError = reviewerCountError === VOID ? this.ntr_1 : reviewerCountError; courseTerminology = courseTerminology === VOID ? this.otr_1 : courseTerminology; submissionRequiredError = submissionRequiredError === VOID ? this.ptr_1 : submissionRequiredError; sizeLimitError = sizeLimitError === VOID ? this.qtr_1 : sizeLimitError; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.rtr_1 : courseBlockEditUiState; groupSubmissionOn = groupSubmissionOn === VOID ? this.str_1 : groupSubmissionOn; groupSetError = groupSetError === VOID ? this.ttr_1 : groupSetError; return $super === VOID ? this.xu1(fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError) : $super.xu1.call(this, fieldsEnabled, markingTypeEnabled, groupSetEnabled, reviewerCountError, courseTerminology, submissionRequiredError, sizeLimitError, courseBlockEditUiState, groupSubmissionOn, groupSetError); }; protoOf(ClazzAssignmentEditUiState).toString = function () { return 'ClazzAssignmentEditUiState(fieldsEnabled=' + this.ktr_1 + ', markingTypeEnabled=' + this.ltr_1 + ', groupSetEnabled=' + this.mtr_1 + ', reviewerCountError=' + this.ntr_1 + ', courseTerminology=' + this.otr_1 + ', submissionRequiredError=' + this.ptr_1 + ', sizeLimitError=' + this.qtr_1 + ', courseBlockEditUiState=' + this.rtr_1 + ', groupSubmissionOn=' + this.str_1 + ', groupSetError=' + this.ttr_1 + ')'; }; protoOf(ClazzAssignmentEditUiState).hashCode = function () { var result = getBooleanHashCode(this.ktr_1); result = imul(result, 31) + getBooleanHashCode(this.ltr_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mtr_1) | 0; result = imul(result, 31) + (this.ntr_1 == null ? 0 : getStringHashCode(this.ntr_1)) | 0; result = imul(result, 31) + (this.otr_1 == null ? 0 : hashCode(this.otr_1)) | 0; result = imul(result, 31) + (this.ptr_1 == null ? 0 : getStringHashCode(this.ptr_1)) | 0; result = imul(result, 31) + (this.qtr_1 == null ? 0 : getStringHashCode(this.qtr_1)) | 0; result = imul(result, 31) + this.rtr_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.str_1) | 0; result = imul(result, 31) + (this.ttr_1 == null ? 0 : getStringHashCode(this.ttr_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.ktr_1 === tmp0_other_with_cast.ktr_1)) return false; if (!(this.ltr_1 === tmp0_other_with_cast.ltr_1)) return false; if (!(this.mtr_1 === tmp0_other_with_cast.mtr_1)) return false; if (!(this.ntr_1 == tmp0_other_with_cast.ntr_1)) return false; if (!equals(this.otr_1, tmp0_other_with_cast.otr_1)) return false; if (!(this.ptr_1 == tmp0_other_with_cast.ptr_1)) return false; if (!(this.qtr_1 == tmp0_other_with_cast.qtr_1)) return false; if (!this.rtr_1.equals(tmp0_other_with_cast.rtr_1)) return false; if (!(this.str_1 === tmp0_other_with_cast.str_1)) return false; if (!(this.ttr_1 == tmp0_other_with_cast.ttr_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.gu2_1 = this$0; this.hu2_1 = $savedStateHandle; this.iu2_1 = $primaryKeyManager; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).cu3 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.cu3(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.gu2_1.rqk(this.hu2_1, 'allocations', ListSerializer(Companion_instance_18.n4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ku2_1 = suspendResult; this.hd_1 = 2; suspendResult = this.ju2_1.q7e().n7s(this.gu2_1.du4_1, this.gu2_1.gu4_1, systemTimeInMillis(), this.gu2_1.mqk().eog(strings_getInstance().nnb_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.lu2_1 = suspendResult; Napier_getInstance().i5e('Number of submitters: ' + this.lu2_1.u()); var tmp_0 = this; tmp_0.mu2_1 = this.lu2_1; var tmp_1 = this; tmp_1.nu2_1 = this.mu2_1; var tmp_2 = this; tmp_2.ou2_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.mu2_1, 10)); this.pu2_1 = this.nu2_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.pu2_1.f()) { this.hd_1 = 8; continue $sm; } this.qu2_1 = this.pu2_1.e(); var tmp_3 = this; tmp_3.ru2_1 = this.qu2_1; this.su2_1 = new AssignmentSubmitterSummary(this.ru2_1.e7x_1, this.ru2_1.d7x_1); var tmp_4 = this; var tmp0_safe_receiver = this.ku2_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.gfu_1.equals(this.ru2_1.e7x_1)) { destination.i1(element); } } tmp_5 = destination; } var tmp1_elvis_lhs = tmp_5; tmp_4.tu2_1 = trimToSize(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.gu2_1.eu4_1); var tmp_6 = this; tmp_6.uu2_1 = this.gu2_1.eu4_1; if (this.tu2_1.u() < this.uu2_1) { var tmp_7 = this; tmp_7.wu2_1 = until(this.tu2_1.u(), this.uu2_1); var tmp_8 = this; tmp_8.xu2_1 = this.wu2_1; var tmp_9 = this; tmp_9.yu2_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.wu2_1, 10)); this.zu2_1 = this.xu2_1.w(); this.hd_1 = 4; continue $sm; } else { var tmp_10 = this; tmp_10.vu2_1 = this.tu2_1; this.hd_1 = 7; continue $sm; } case 4: if (!this.zu2_1.f()) { this.hd_1 = 6; continue $sm; } this.au3_1 = this.zu2_1.e(); var tmp_11 = this; tmp_11.bu3_1 = this.au3_1; this.hd_1 = 5; suspendResult = this.iu2_1.o62(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var ARGUMENT = suspendResult; var ARGUMENT_0 = new PeerReviewerAllocation(ARGUMENT, VOID, this.ru2_1.e7x_1, this.gu2_1.fu4_1); this.yu2_1.i1(ARGUMENT_0); this.hd_1 = 4; continue $sm; case 6: var ARGUMENT_1 = this.yu2_1; this.vu2_1 = plus(this.tu2_1, ARGUMENT_1); this.hd_1 = 7; continue $sm; case 7: var ARGUMENT_2 = this.vu2_1; var ARGUMENT_3 = new AssignmentSubmitterAndAllocations(this.su2_1, ARGUMENT_2); this.ou2_1.i1(ARGUMENT_3); this.hd_1 = 3; continue $sm; case 8: return this.ou2_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).env = function (db, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda$slambda(this.gu2_1, this.hu2_1, this.iu2_1, completion); i.ju2_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.cu3(db, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).pu4 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.pu4($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).l78 = 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.pu4($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.bu4_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel...' call var nextValue = prevValue.ru4(it == null ? emptyList() : it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PeerReviewerAllocationEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_133() { this.su4_1 = 'allocations'; this.tu4_1 = 'groupSetUid'; this.uu4_1 = 'numReviewers'; this.vu4_1 = 'PeerReviewerAllocationEdit'; } var Companion_instance_182; function Companion_getInstance_150() { return Companion_instance_182; } function PeerReviewerAllocationEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.eu5_1 = this$0; this.fu5_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PeerReviewerAllocationEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.hu5_1 = get_doorPrimaryKeyManager(this.eu5_1.gqk()); this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_getInstance_14().n4r()); var tmp_1 = PeerReviewerAllocationEditViewModel$slambda$slambda_0(this.eu5_1, this.fu5_1, this.hu5_1, null); var tmp_2 = PeerReviewerAllocationEditViewModel$slambda$slambda_2(null); suspendResult = this.eu5_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, PeerReviewerAllocationEditViewModel$slambda$lambda(this.eu5_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.eu5_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.eu5_1.mqk().eog(strings_getInstance().fmn_1); var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, true, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, PeerReviewerAllocationEditViewModel$onClickSave$ref(this.eu5_1))); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new PeerReviewerAllocationEditViewModel$slambda(this.eu5_1, this.fu5_1, completion); i.gu5_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda($allocation) { return function (it) { return it.efu_1.equals($allocation.efu_1); }; } function PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this$0, resultContinuation) { this.qu5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.qu5_1.bu4_1.t2().qu4_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var list = element.fk8_1; addAll(destination, list); } suspendResult = this.qu5_1.au4_1.qph(destination, this.qu5_1.gu4_1, this.qu5_1.du4_1, this.qu5_1.fu4_1, this.qu5_1.eu4_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.qu5_1.bu4_1; while (true) { var prevValue = this_1.t2(); var this_2 = prevValue.qu4_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.gfu_1.equals(item.ek8_1.r7v_1)) { destination_1.i1(element_0); } } destination_0.i1(new AssignmentSubmitterAndAllocations(item.ek8_1, destination_1)); } var nextValue = prevValue.ru4(destination_0); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda(this.qu5_1, completion); i.ru5_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.u1m($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)).f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_3 = get_direct(di).f58(); // 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.d58(tmp$ret$2, null); tmp = new UpdatePeerReviewAllocationUseCase(tmp_2, tmp$ret$3); } else { tmp = updatePeerReviewAllocationUseCase; } updatePeerReviewAllocationUseCase = tmp; UstadEditViewModel.call(this, di, savedStateHandle, 'PeerReviewerAllocationEdit'); this.au4_1 = updatePeerReviewAllocationUseCase; this.bu4_1 = MutableStateFlow(new PeerReviewerAllocationEditUIState()); this.cu4_1 = asStateFlow(this.bu4_1); var tmp_5 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_5.du4_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.eu4_1 = tmp1_elvis_lhs_0 == null ? 1 : tmp1_elvis_lhs_0; var tmp_7 = this; Companion_getInstance_114(); 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.fu4_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.gu4_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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().gng_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.dqk(); launch(tmp_9, VOID, VOID, PeerReviewerAllocationEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(PeerReviewerAllocationEditViewModel).su5 = function (allocation) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.bu4_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.qu4_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.ek8_1.r7v_1.equals(allocation.gfu_1)) { tmp = item.hk8(VOID, replace_0(item.fk8_1, allocation, PeerReviewerAllocationEditViewModel$onAllocationChanged$lambda(allocation))); } else { tmp = item; } var tmp$ret$0 = tmp; destination.i1(tmp$ret$0); } var nextValue = prevValue.ru4(destination); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PeerReviewerAllocationEditViewModel).tu5 = function () { var tmp = this.dqk(); launch(tmp, VOID, VOID, PeerReviewerAllocationEditViewModel$onAssignRandomReviewers$slambda_0(this, null)); }; protoOf(PeerReviewerAllocationEditViewModel).js3 = function () { // Inline function 'kotlin.collections.flatMap' call // Inline function 'kotlin.collections.flatMapTo' call var this_0 = this.bu4_1.t2().qu4_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.fk8_1; addAll(destination, list); } this.xqp(destination); }; function PeerReviewerAllocationEditUIState(submitterListWithAllocations) { submitterListWithAllocations = submitterListWithAllocations === VOID ? emptyList() : submitterListWithAllocations; this.qu4_1 = submitterListWithAllocations; } protoOf(PeerReviewerAllocationEditUIState).uu5 = function (allocation) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.qu4_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.peerreviewerallocationedit.PeerReviewerAllocationEditUIState.reviewerOptionsForAllocation.' call if (element.ek8_1.r7v_1.equals(allocation.gfu_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.fk8_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.efu_1.equals(allocation.efu_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.ffu_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.qu4_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.ek8_1.r7v_1.equals(allocation.gfu_1) ? !otherMarkersAlreadySelected.a1(element_1.ek8_1.r7v_1) : false) { destination_1.i1(element_1); } } return destination_1; }; protoOf(PeerReviewerAllocationEditUIState).ru4 = function (submitterListWithAllocations) { return new PeerReviewerAllocationEditUIState(submitterListWithAllocations); }; protoOf(PeerReviewerAllocationEditUIState).toString = function () { return 'PeerReviewerAllocationEditUIState(submitterListWithAllocations=' + this.qu4_1 + ')'; }; protoOf(PeerReviewerAllocationEditUIState).hashCode = function () { return hashCode(this.qu4_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.qu4_1, tmp0_other_with_cast.qu4_1)) return false; return true; }; function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.du6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda).fu6 = function (it, $completion) { var tmp = this.gu6(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.fu6((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.du6_1.du7_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.mu8(VOID, this.eu6_1); if (this_0.y1k(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).gu6 = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda(this.du6_1, completion); i.eu6_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.fu6(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.vu8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.vu8_1.iqk().p7d().ecl(this.vu8_1.hu7_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda$slambda_0(this.vu8_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda(this.vu8_1, completion); i.wu8_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.u1m($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).otd = function (submissions, submissionFiles, $completion) { var tmp = this.ptd(submissions, submissionFiles, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1).um = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.otd(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.fu9_1, this.gu9_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).ptd = function (submissions, submissionFiles, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_1(completion); i.fu9_1 = submissions; i.gu9_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.otd(submissions, submissionFiles, $completion); }; l.$arity = 2; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.pu9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3).ate = function (it, $completion) { var tmp = this.bte(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.ate((!(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.pu9_1.du7_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.mu8(VOID, VOID, VOID, this.qu9_1); if (this_0.y1k(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).bte = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_3(this.pu9_1, completion); i.qu9_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.ate(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.zu9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5).mte = function (it, $completion) { var tmp = this.nte(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.mte((!(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.zu9_1.du7_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.mu8(VOID, VOID, VOID, VOID, VOID, this.aua_1); if (this_0.y1k(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).nte = function (it, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_5(this.zu9_1, completion); i.aua_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.mte(it, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.jua_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.jua_1).aol(this.jua_1.iu7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var submitterName = suspendResult; l$ret$1: do { var this_0 = this.jua_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(VOID, VOID, submitterName); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.jua_1, completion); i.kua_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.tua_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.uua_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_0(this.tua_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.tua_1, completion); i.uua_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.dub_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.fub_1 = this.dub_1.iqk().r7e().ic1(this.dub_1.iu7_1, this.dub_1.hu7_1); this.gub_1 = this.dub_1.iqk().s7e().tc9(this.dub_1.iu7_1, this.dub_1.hu7_1); this.hd_1 = 1; var tmp_0 = distinctUntilChanged(combine(this.fub_1, this.gub_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_2(null))); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_4(this.dub_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_3(this.dub_1, completion); i.eub_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.pub_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.pub_1.iqk().t7e().hbv(this.pub_1.iu7_1, this.pub_1.hu7_1); var tmp_1 = ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda$slambda_6(this.pub_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_5(this.pub_1, completion); i.qub_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.u1m($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.zub_1 = this$0; this.auc_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda).cuc = function (permissionPair, $completion) { var tmp = this.duc(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.cuc(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.buc_1.hdo_1) { l$ret$1: do { var this_0 = this.zub_1.du7_1; while (true) { var prevValue = this_0.t2(); var tmp0_privateCommentsList = this.zub_1.ku7_1; var tmp1_activeUserPersonUid = this.zub_1.eqk(); var tmp2_activeUserSubmitterId = this.buc_1.jdo_1; var tmp_0; if (this.buc_1.gdo_1) { var this_1 = new CourseAssignmentMark(); this_1.cbw_1 = -1.0; tmp_0 = this_1; } else { tmp_0 = null; } var tmp3_draftMark = tmp_0; var tmp4_showModerateOptions = this.buc_1.ido_1; var nextValue = prevValue.mu8(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.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.auc_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.zub_1, null)); launch(this.auc_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.zub_1, null)); launch(this.auc_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_4(this.zub_1, null)); launch(this.auc_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda$slambda_6(this.zub_1, null)); } else { l$ret$3: do { var this_2 = this.zub_1.du7_1; while (true) { var prevValue_0 = this_2.t2(); var tmp0_submissionList = emptyList(); var tmp1_marks = emptyList(); var nextValue_0 = prevValue_0.mu8(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.y1k(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).duc = function (permissionPair, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda(this.zub_1, this.auc_1, completion); i.buc_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.cuc(permissionPair, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda($permissionFlow, this$0, resultContinuation) { this.muc_1 = $permissionFlow; this.nuc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.muc_1); suspendResult = collectLatest(tmp_0, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda$slambda_0(this.nuc_1, this.ouc_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda(this.muc_1, this.nuc_1, completion); i.ouc_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$slambda$slambda($this_launch, $permissionFlow, this$0, resultContinuation) { this.xuc_1 = $this_launch; this.yuc_1 = $permissionFlow; this.zuc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.xuc_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda$slambda_0(this.yuc_1, this.zuc_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).l78 = function (completion) { return new ClazzAssignmentSubmitterDetailViewModel$slambda$slambda(this.xuc_1, this.yuc_1, this.zuc_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.j87($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.du7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.openSubmissionFileAsBlob...' call var nextValue = prevValue.mu8(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.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_assignmentSubmitterNameUseCase__ts4wyt($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lu7_1; assignmentSubmitterNameUseCase$factory_0(); return this_0.t2(); } function _get_openBlobUiUseCase__fzusqz_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nu7_1; openBlobUiUseCase$factory_2(); return this_0.t2(); } function _get_submitMarkUseCase__y8b5kx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ou7_1; submitMarkUseCase$factory_0(); return this_0.t2(); } function openSubmissionFileAsBlob_0($this, file, intent) { var tmp0_elvis_lhs = file.ncb_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var submissionFile = tmp; var tmp1_safe_receiver = $this.mu7_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_0 = $this; var tmp_1 = $this.dqk(); tmp_0.mu7_1 = launch(tmp_1, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda_0($this, submissionFile, intent, null)); } function Companion_134() { this.aud_1 = 'assignmentUid'; this.bud_1 = 'submitterUid'; this.cud_1 = 'CourseAssignmentSubmitter'; } var Companion_instance_183; function Companion_getInstance_151() { return Companion_instance_183; } function sam$kotlinx_coroutines_flow_FlowCollector$0_18(function_0) { this.dud_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_18).t1d = function (value, $completion) { return this.dud_1(value, $completion); }; function ClazzAssignmentSubmitterDetailViewModel$privateCommentsPagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().u7e().gac(this$0.iu7_1, this$0.hu7_1, false); }; } function ClazzAssignmentSubmitterDetailViewModel$slambda(this$0, $permissionFlow, resultContinuation) { this.mud_1 = this$0; this.nud_1 = $permissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzAssignmentSubmitterDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.mud_1.du7_1, ClazzAssignmentSubmitterDetailViewModel$slambda$slambda_0(this.oud_1, this.nud_1, this.mud_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$slambda(this.mud_1, this.nud_1, completion); i.oud_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda(this$0, resultContinuation) { this.xud_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.xud_1.iqk().u7e(); var this_0 = new Comments(); this_0.bad_1 = this.xud_1.iu7_1; this_0.cad_1 = this.xud_1.du7_1.t2().eu8_1; this_0.aad_1 = this.xud_1.eqk(); this_0.yac_1 = this.xud_1.hu7_1; this_0.xac_1 = this.xud_1.fu7_1.t2(); this_0.fad_1 = systemTimeInMillis(); suspendResult = tmp_0.dac(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var tmp_1 = this; this.xud_1.fu7_1.x1k(''); tmp_1.zud_1 = Unit_instance; this.id_1 = 5; this.hd_1 = 3; continue $sm; case 3: this.id_1 = 5; this.xud_1.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; case 4: this.id_1 = 5; var t = this.kd_1; this.xud_1.oqk(Companion_getInstance_96().jq3_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda(this.xud_1, completion); i.yud_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda(this$0, $assignment, $draftMark, $submissions, $courseBlock, resultContinuation) { this.iue_1 = this$0; this.jue_1 = $assignment; this.kue_1 = $draftMark; this.lue_1 = $submissions; this.mue_1 = $courseBlock; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.iue_1); var tmp_1 = this.iue_1.cqk().go6().tnq_1; var this_0 = this.lue_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.uk6_1); } suspendResult = tmp_0.joj(tmp_1, this.jue_1, this.iue_1.ju7_1, this.iue_1.iu7_1, this.kue_1, destination, this.mue_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.iue_1.du7_1; while (true) { var prevValue = this_1.t2(); var this_2 = new CourseAssignmentMark(); this_2.cbw_1 = -1.0; var nextValue = prevValue.mu8(VOID, VOID, VOID, VOID, VOID, VOID, this_2); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); tmp_2.oue_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.iue_1.kqk().qq3(new Snack('Error: ' + e.message)); Napier_getInstance().m5e('Exception submitting mark:', e); tmp_4.oue_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.iue_1.du7_1; while (true) { var prevValue_0 = this_3.t2(); var nextValue_0 = prevValue_0.mu8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_3.y1k(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.iue_1.du7_1; while (true) { var prevValue_1 = this_4.t2(); var nextValue_1 = prevValue_1.mu8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_4.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda(this.iue_1, this.jue_1, this.kue_1, this.lue_1, this.mue_1, completion); i.nue_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda(this$0, $submissionFile, $intent, resultContinuation) { this.xue_1 = this$0; this.yue_1 = $submissionFile; this.zue_1 = $intent; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.buf_1 = _get_openBlobUiUseCase__fzusqz_0(this.xue_1); if (this.buf_1 == null) { this.cuf_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = asBlobOpenItem(this.yue_1); suspendResult = this.buf_1.gom(tmp_0, ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda$lambda(this.xue_1), this.zue_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.cuf_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$openSubmissionFileAsBlob$slambda(this.xue_1, this.yue_1, this.zue_1, completion); i.auf_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda(this$0, $comments, resultContinuation) { this.luf_1 = this$0; this.muf_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.luf_1.iqk().u7e().eac(this.muf_1.wac_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.luf_1.kqk().qq3(new Snack(this.luf_1.mqk().eog(strings_getInstance().xme_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).v1m = function ($this$launch, completion) { var i = new ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda(this.luf_1, this.muf_1, completion); i.nuf_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentSubmitterDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseAssignmentSubmitter'); this.du7_1 = MutableStateFlow(new ClazzAssignmentSubmitterDetailUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.mqk().wq1())); this.eu7_1 = asStateFlow(this.du7_1); this.fu7_1 = MutableStateFlow(''); this.gu7_1 = asStateFlow(this.fu7_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.hu7_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.iu7_1 = tmp_2; var tmp_3 = this; Companion_getInstance_123(); 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.ju7_1 = tmp_4; var tmp_5 = this; tmp_5.ku7_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.cqk().co7(); var trigger = this.d57(); // 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.h57(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.lu7_1 = Instance(this_0, tmp$ret$3, null).a5d(this, assignmentSubmitterNameUseCase$factory()); this.mu7_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.nu7_1 = InstanceOrNull(this_1, tmp$ret$5, null).a5d(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.ou7_1 = Instance(this_2, tmp$ret$7, null).a5d(this, submitMarkUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.du7_1; while (true) { var prevValue = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.' call var tmp_14 = this.cqk().go6().tnq_1.qkm(); var tmp0_safe_receiver_2 = this.cqk().go6().vnq_1; var nextValue = prevValue.mu8(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.h97_1); if (this_3.y1k(prevValue, nextValue)) { break $l$block; } } } var permissionFlow = this.iqk().o7f().bdk(this.eqk(), this.hu7_1, this.ju7_1, this.iu7_1); var tmp_15 = this.dqk(); launch(tmp_15, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$slambda_0(this, permissionFlow, null)); } protoOf(ClazzAssignmentSubmitterDetailViewModel).ouf = function (text) { this.fu7_1.x1k(text); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).puf = function () { if (this.pqk().equals(Companion_getInstance_96().iq3_1)) return Unit_instance; this.oqk(Companion_getInstance_96().iq3_1); var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onSubmitPrivateComment$slambda_0(this, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).quf = function (draftMark) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.du7_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.vu7_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbw_1; if (tmp_0 == (draftMark == null ? null : draftMark.cbw_1)) { tmp = prevValue.pu7_1; } else { tmp = null; } var tmp2_submitMarkError = tmp; var nextValue = prevValue.mu8(tmp2_submitMarkError, VOID, VOID, VOID, VOID, VOID, draftMark); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ruf = function () { if (!this.du7_1.t2().suf()) return Unit_instance; var tmp0_elvis_lhs = this.du7_1.t2().vu7_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var draftMark = tmp; var submissions = this.du7_1.t2().su7_1; var tmp1_elvis_lhs = this.du7_1.t2().qu7_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.lco_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.mco_1; var tmp_2; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_2 = tmp3_elvis_lhs; } var assignment = tmp_2; if (draftMark.cbw_1 === -1.0) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.du7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickSubmitMark.' call var nextValue = prevValue.mu8(this.mqk().eog(strings_getInstance().hmj_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } else { if (draftMark.cbw_1 < 0.0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.du7_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.mu8(this.mqk().eog(strings_getInstance().mnc_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } else { var tmp_3 = draftMark.cbw_1; var tmp4_elvis_lhs = courseBlock.e7y_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.du7_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.mu8(this.mqk().eog(strings_getInstance().knh_1)); if (this_2.y1k(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.du7_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.mu8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } var tmp_4 = this.dqk(); launch(tmp_4, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onClickSubmitMark$slambda_0(this, assignment, draftMark, submissions, courseBlock, null)); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).tuf = function (option) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.du7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onClickGradeFilterChip.' call var nextValue = prevValue.mu8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, option.eq4_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ctp = function (submission) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.du7_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzassignment.submitterdetail.ClazzAssignmentSubmitterDetailViewModel.onToggleSubmissionExpandCollapse.' call var nextValue = prevValue.mu8(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toggle_0(prevValue.ju8_1, submission.bc2_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzAssignmentSubmitterDetailViewModel).ftp = function (file) { openSubmissionFileAsBlob_0(this, file, OpenBlobIntent_VIEW_getInstance()); }; protoOf(ClazzAssignmentSubmitterDetailViewModel).gtp = function (comments) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzAssignmentSubmitterDetailViewModel$onDeleteComment$slambda_0(this, comments, null)); }; function _get_latestUniqueMarksByMarker__e0a3pq_0($this) { return latestUniqueMarksByMarker($this.uu7_1); } function sam$kotlin_Comparator$0_1(function_0) { this.uuf_1 = function_0; } protoOf(sam$kotlin_Comparator$0_1).pa = function (a, b) { return this.uuf_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.ibw_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fbw_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.ibw_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.fbw_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().vng_1; var tmp_2 = new MessageIdOption2(tmp_1, 1); var tmp_3 = strings_getInstance().lmv_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.km9(), Companion_getInstance_9().jmd()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? emptySet() : collapsedSubmissions; openingFileState = openingFileState === VOID ? null : openingFileState; showModerateOptions = showModerateOptions === VOID ? false : showModerateOptions; this.pu7_1 = submitMarkError; this.qu7_1 = block; this.ru7_1 = gradeFilterChips; this.su7_1 = submissionList; this.tu7_1 = submissionAttachments; this.uu7_1 = marks; this.vu7_1 = draftMark; this.wu7_1 = markSubmissionInProgress; this.xu7_1 = markNextStudentVisible; this.yu7_1 = fieldsEnabled; this.zu7_1 = markListSelectedChipId; this.au8_1 = markListFilterOptions; this.bu8_1 = privateCommentsList; this.cu8_1 = newPrivateCommentTextVisible; this.du8_1 = activeUserPersonUid; this.eu8_1 = activeUserSubmitterId; this.fu8_1 = activeUserPersonName; this.gu8_1 = activeUserPictureUri; this.hu8_1 = localDateTimeNow; this.iu8_1 = dayOfWeekStrings; this.ju8_1 = collapsedSubmissions; this.ku8_1 = openingFileState; this.lu8_1 = showModerateOptions; } protoOf(ClazzAssignmentSubmitterDetailUiState).suf = function () { var tmp; if (!this.wu7_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.qu7_1; var tmp_0; if (!((it == null ? null : it.mco_1) == null)) { tmp_0 = !(it.lco_1 == null); } else { tmp_0 = false; } tmp = tmp_0; } else { tmp = false; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).qtp = function () { return submissionStatusFor(this.uu7_1, this.su7_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).vuf = 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.ibw_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cbw_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).wuf = function (mark) { return new UstadCourseAssignmentMarkListItemUiState(mark, this.hu8_1, this.iu8_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).xuf = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.uu7_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.ibw_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zbv_1, this.eu8_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().tnf_1; } else { tmp = strings_getInstance().jnc_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).yuf = function () { var tmp; var tmp$ret$0; $l$block_0: { // Inline function 'kotlin.collections.any' call var this_0 = this.uu7_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.ibw_1; if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zbv_1, this.eu8_1)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (tmp$ret$0) { tmp = strings_getInstance().unf_1; } else { tmp = strings_getInstance().knc_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).vtp = function () { var tmp; if (this.zu7_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.uu7_1; } return tmp; }; protoOf(ClazzAssignmentSubmitterDetailUiState).zuf = function () { return hasUpdatedMarks(this.uu7_1); }; protoOf(ClazzAssignmentSubmitterDetailUiState).aug = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.uu7_1.c1(); }; protoOf(ClazzAssignmentSubmitterDetailUiState).bug = 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).mu8 = 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.pu7_1 : submitMarkError; block = block === VOID ? this.qu7_1 : block; gradeFilterChips = gradeFilterChips === VOID ? this.ru7_1 : gradeFilterChips; submissionList = submissionList === VOID ? this.su7_1 : submissionList; submissionAttachments = submissionAttachments === VOID ? this.tu7_1 : submissionAttachments; marks = marks === VOID ? this.uu7_1 : marks; draftMark = draftMark === VOID ? this.vu7_1 : draftMark; markSubmissionInProgress = markSubmissionInProgress === VOID ? this.wu7_1 : markSubmissionInProgress; markNextStudentVisible = markNextStudentVisible === VOID ? this.xu7_1 : markNextStudentVisible; fieldsEnabled = fieldsEnabled === VOID ? this.yu7_1 : fieldsEnabled; markListSelectedChipId = markListSelectedChipId === VOID ? this.zu7_1 : markListSelectedChipId; markListFilterOptions = markListFilterOptions === VOID ? this.au8_1 : markListFilterOptions; privateCommentsList = privateCommentsList === VOID ? this.bu8_1 : privateCommentsList; newPrivateCommentTextVisible = newPrivateCommentTextVisible === VOID ? this.cu8_1 : newPrivateCommentTextVisible; activeUserPersonUid = activeUserPersonUid === VOID ? this.du8_1 : activeUserPersonUid; activeUserSubmitterId = activeUserSubmitterId === VOID ? this.eu8_1 : activeUserSubmitterId; activeUserPersonName = activeUserPersonName === VOID ? this.fu8_1 : activeUserPersonName; activeUserPictureUri = activeUserPictureUri === VOID ? this.gu8_1 : activeUserPictureUri; localDateTimeNow = localDateTimeNow === VOID ? this.hu8_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.iu8_1 : dayOfWeekStrings; collapsedSubmissions = collapsedSubmissions === VOID ? this.ju8_1 : collapsedSubmissions; openingFileState = openingFileState === VOID ? this.ku8_1 : openingFileState; showModerateOptions = showModerateOptions === VOID ? this.lu8_1 : showModerateOptions; return $super === VOID ? this.bug(submitMarkError, block, gradeFilterChips, submissionList, submissionAttachments, marks, draftMark, markSubmissionInProgress, markNextStudentVisible, fieldsEnabled, markListSelectedChipId, markListFilterOptions, privateCommentsList, newPrivateCommentTextVisible, activeUserPersonUid, activeUserSubmitterId, activeUserPersonName, activeUserPictureUri, localDateTimeNow, dayOfWeekStrings, collapsedSubmissions, openingFileState, showModerateOptions) : $super.bug.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.pu7_1 + ', block=' + this.qu7_1 + ', gradeFilterChips=' + this.ru7_1 + ', submissionList=' + this.su7_1 + ', submissionAttachments=' + this.tu7_1 + ', marks=' + this.uu7_1 + ', draftMark=' + this.vu7_1 + ', markSubmissionInProgress=' + this.wu7_1 + ', markNextStudentVisible=' + this.xu7_1 + ', fieldsEnabled=' + this.yu7_1 + ', markListSelectedChipId=' + this.zu7_1 + ', markListFilterOptions=' + this.au8_1 + ', privateCommentsList=' + this.bu8_1 + ', newPrivateCommentTextVisible=' + this.cu8_1 + ', activeUserPersonUid=' + this.du8_1.toString() + ', activeUserSubmitterId=' + this.eu8_1.toString() + ', activeUserPersonName=' + this.fu8_1 + ', activeUserPictureUri=' + this.gu8_1 + ', localDateTimeNow=' + this.hu8_1 + ', dayOfWeekStrings=' + this.iu8_1 + ', collapsedSubmissions=' + this.ju8_1 + ', openingFileState=' + this.ku8_1 + ', showModerateOptions=' + this.lu8_1 + ')'; }; protoOf(ClazzAssignmentSubmitterDetailUiState).hashCode = function () { var result = this.pu7_1 == null ? 0 : getStringHashCode(this.pu7_1); result = imul(result, 31) + (this.qu7_1 == null ? 0 : this.qu7_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.ru7_1) | 0; result = imul(result, 31) + hashCode(this.su7_1) | 0; result = imul(result, 31) + hashCode(this.tu7_1) | 0; result = imul(result, 31) + hashCode(this.uu7_1) | 0; result = imul(result, 31) + (this.vu7_1 == null ? 0 : hashCode(this.vu7_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.wu7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.xu7_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yu7_1) | 0; result = imul(result, 31) + this.zu7_1 | 0; result = imul(result, 31) + hashCode(this.au8_1) | 0; result = imul(result, 31) + hashCode(this.bu8_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cu8_1) | 0; result = imul(result, 31) + this.du8_1.hashCode() | 0; result = imul(result, 31) + this.eu8_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.fu8_1) | 0; result = imul(result, 31) + (this.gu8_1 == null ? 0 : getStringHashCode(this.gu8_1)) | 0; result = imul(result, 31) + this.hu8_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.iu8_1) | 0; result = imul(result, 31) + hashCode(this.ju8_1) | 0; result = imul(result, 31) + (this.ku8_1 == null ? 0 : this.ku8_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.lu8_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.pu7_1 == tmp0_other_with_cast.pu7_1)) return false; if (!equals(this.qu7_1, tmp0_other_with_cast.qu7_1)) return false; if (!equals(this.ru7_1, tmp0_other_with_cast.ru7_1)) return false; if (!equals(this.su7_1, tmp0_other_with_cast.su7_1)) return false; if (!equals(this.tu7_1, tmp0_other_with_cast.tu7_1)) return false; if (!equals(this.uu7_1, tmp0_other_with_cast.uu7_1)) return false; if (!equals(this.vu7_1, tmp0_other_with_cast.vu7_1)) return false; if (!(this.wu7_1 === tmp0_other_with_cast.wu7_1)) return false; if (!(this.xu7_1 === tmp0_other_with_cast.xu7_1)) return false; if (!(this.yu7_1 === tmp0_other_with_cast.yu7_1)) return false; if (!(this.zu7_1 === tmp0_other_with_cast.zu7_1)) return false; if (!equals(this.au8_1, tmp0_other_with_cast.au8_1)) return false; if (!equals(this.bu8_1, tmp0_other_with_cast.bu8_1)) return false; if (!(this.cu8_1 === tmp0_other_with_cast.cu8_1)) return false; if (!this.du8_1.equals(tmp0_other_with_cast.du8_1)) return false; if (!this.eu8_1.equals(tmp0_other_with_cast.eu8_1)) return false; if (!(this.fu8_1 === tmp0_other_with_cast.fu8_1)) return false; if (!(this.gu8_1 == tmp0_other_with_cast.gu8_1)) return false; if (!this.hu8_1.equals(tmp0_other_with_cast.hu8_1)) return false; if (!equals(this.iu8_1, tmp0_other_with_cast.iu8_1)) return false; if (!equals(this.ju8_1, tmp0_other_with_cast.ju8_1)) return false; if (!equals(this.ku8_1, tmp0_other_with_cast.ku8_1)) return false; if (!(this.lu8_1 === tmp0_other_with_cast.lu8_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.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel......' call var nextValue = prevValue.rug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.auh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda).cuh = function (nameAndTerminology, $completion) { var tmp = this.duh(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.cuh((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.auh_1.hqs_1.t2().oug_1; var tmp0_safe_receiver = this.buh_1; var tmp2_terminology = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u8l_1; var tmp3_json = this.auh_1.m4r(); var tmp4_systemImpl = this.auh_1.mqk(); parseAndUpdateTerminologyStringsIfNeeded(tmp1_currentTerminologyStrings, tmp2_terminology, tmp4_systemImpl, tmp3_json, ClazzMemberListViewModel$slambda$slambda$slambda$slambda$lambda(this.auh_1)); l$ret$1: do { var this_0 = this.auh_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver_0 = this.buh_1; var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.t8l_1; var nextValue = prevValue.bq3(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.y1k(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).duh = function (nameAndTerminology, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda(this.auh_1, completion); i.buh_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.cuh(nameAndTerminology, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.muh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1).yt0 = function (it, $completion) { var tmp = this.zt0(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.yt0(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.muh_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rug(VOID, VOID, VOID, VOID, this.nuh_1.ydm_1, this.nuh_1.zdm_1, this.nuh_1.zdm_1); if (this_0.y1k(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).zt0 = function (it, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda$slambda_1(this.muh_1, completion); i.nuh_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.yt0(it, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.wuh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wuh_1.iqk().o7d().a8d(this.wuh_1.auj_1); var tmp_1 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_0(this.wuh_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda(this.wuh_1, completion); i.xuh_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nuj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nuj_1.gqk().o7f(); var tmp_1 = this.nuj_1.eqk(); PermissionFlags_getInstance(); var tmp_2 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.xdj(tmp_1, this.nuj_1.auj_1, tmp_2, new Long(8, 0))); var tmp_4 = ClazzMemberListViewModel$slambda$slambda$slambda$slambda_2(this.nuj_1, null); suspendResult = tmp_3.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda$slambda$slambda_1(this.nuj_1, completion); i.ouj_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$slambda$slambda(this$0, $this_launch, resultContinuation) { this.xuj_1 = this$0; this.yuj_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.xuj_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.rug(VOID, VOID, VOID, this.xuj_1.duj_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.yuj_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_0(this.xuj_1, null)); launch(this.yuj_1, VOID, VOID, ClazzMemberListViewModel$slambda$slambda$slambda_2(this.xuj_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).l78 = function (completion) { return new ClazzMemberListViewModel$slambda$slambda(this.xuj_1, this.yuj_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.j87($completion); }; l.$arity = 0; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this$0, resultContinuation) { this.huk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda).tre = function (it, $completion) { var tmp = this.env(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.tre(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.iuk_1.o7d().s8c(this.huk_1.auj_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.o8e_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).env = function (it, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda(this.huk_1, completion); i.iuk_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.tre(it, $completion); }; l.$arity = 1; return l; } function _get_resendInviteUseCase__76bg6a($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yui_1; resendInviteUseCase$factory_0(); return this_0.t2(); } function _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zui_1; approveOrDeclinePendingEnrolmentUseCase$factory_0(); return this_0.t2(); } function getMembersAsPagingSource($this, roleId) { var tmp0_$this = $this.iqk().t7d(); var tmp1_clazzUid = $this.auj_1; var tmp2_sortOrder = $this.hqs_1.t2().kug_1.gq9_1; var tmp3_filter = $this.hqs_1.t2().mug_1; var tmp4_searchText = toQueryLikeParam($this.qqj_1.t2().tq2_1.iq2_1); var tmp5_accountPersonUid = $this.eqk(); var tmp6_currentTime = systemTimeInMillis(); PermissionFlags_getInstance(); var tmp7_permission = new Long(8192, 0); return tmp0_$this.j93(tmp1_clazzUid, roleId, tmp2_sortOrder, tmp4_searchText, tmp3_filter, tmp5_accountPersonUid, tmp6_currentTime, tmp7_permission); } function Companion_135() { this.juk_1 = 'CourseMembers'; } var Companion_instance_184; function Companion_getInstance_152() { return Companion_instance_184; } function sam$kotlinx_coroutines_flow_FlowCollector$0_19(function_0) { this.kuk_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_19).t1d = function (value, $completion) { return this.kuk_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.iqk().e7g().m9m(this$0.cqk().go6().snq_1.mif_1, this$0.auj_1, systemTimeInMillis()); }; } function ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this$0) { return function () { var tmp0_$this = this$0.iqk().n7f(); var tmp1_clazzUid = this$0.auj_1; var tmp2_searchText = toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_1); var tmp4_sortOrder = this$0.hqs_1.t2().kug_1.gq9_1; return tmp0_$this.mex(tmp1_clazzUid, false, 1, tmp2_searchText, tmp4_sortOrder); }; } function ClazzMemberListViewModel$slambda(this$0, resultContinuation) { this.tuk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzMemberListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.tuk_1.hqs_1, ClazzMemberListViewModel$slambda$slambda_0(this.tuk_1, this.uuk_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).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$slambda(this.tuk_1, completion); i.uuk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda(this$0, $enrolmentDetails, $approved, resultContinuation) { this.dul_1 = this$0; this.eul_1 = $enrolmentDetails; this.ful_1 = $approved; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.dul_1).uow(this.eul_1, this.ful_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_0 = this.dul_1.kqk(); var tmp_1 = this.dul_1.mqk(); var tmp_2 = this.ful_1 ? strings_getInstance().yni_1 : strings_getInstance().zni_1; var tmp0_elvis_lhs = this.eul_1.fey_1; tmp_0.qq3(new Snack(tmp_1.fog(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.dul_1.kqk(); var tmp_5 = this.dul_1.mqk().eog(strings_getInstance().cme_1); var tmp1_elvis_lhs = e.message; tmp_4.qq3(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).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda(this.dul_1, this.eul_1, this.ful_1, completion); i.gul_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickAddNewMember$slambda(this$0, $role, resultContinuation) { this.pul_1 = this$0; this.qul_1 = $role; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickAddNewMember$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.pul_1.hqk(); var tmp_1; if (this.qul_1 === 1000) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.sul_1 = tmp_1; if (this.sul_1 == null) { this.tul_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = localFirstThenRepoIfNull(this.sul_1, ClazzMemberListViewModel$onClickAddNewMember$slambda$slambda_0(this.pul_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.tul_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var clazzCode = this.tul_1; var tmp_2; if (this.qul_1 === 1000) { tmp_2 = strings_getInstance().fmh_1; } else { tmp_2 = strings_getInstance().hmu_1; } var titleStringResource = tmp_2; var tmp1_safe_receiver = this.pul_1.hqs_1.t2().oug_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.eq5(titleStringResource); var title = tmp2_elvis_lhs == null ? this.pul_1.mqk().eog(titleStringResource) : tmp2_elvis_lhs; Companion_getInstance_114(); var tmp_3 = to('clazzUid', this.pul_1.auj_1.toString()); Companion_getInstance_114(); var tmp_4 = to('popUpToOnFinish', this.pul_1.nqj_1); var goToOnPersonSelectedArg = appendQueryArgs('EnrolmentEdit', mapOf([tmp_3, tmp_4, to('role', this.qul_1.toString())])); var this_1 = LinkedHashMap_init_$Create$(); Companion_getInstance_203(); this_1.s('exlcudeFromClazz', this.pul_1.auj_1.toString()); Companion_getInstance_114(); this_1.s('listMode', ListViewMode_PICKER_getInstance().mqg_1); this_1.s('goToOnPersonSelected', goToOnPersonSelectedArg); Companion_getInstance_203(); this_1.s('showAddViaContact', 'true'); Companion_getInstance_203(); this_1.s('role', this.qul_1.toString()); Companion_getInstance_123(); 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.pul_1.oqj_1.fp3('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).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickAddNewMember$slambda(this.pul_1, this.qul_1, completion); i.rul_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickRevokeInvite$slambda(this$0, $contact, resultContinuation) { this.cum_1 = this$0; this.dum_1 = $contact; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickRevokeInvite$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.cum_1.iqk().e7g().n9m(this.dum_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).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickRevokeInvite$slambda(this.cum_1, this.dum_1, completion); i.eum_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzMemberListViewModel$onClickResendInvite$slambda(this$0, $contact, resultContinuation) { this.num_1 = this$0; this.oum_1 = $contact; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzMemberListViewModel$onClickResendInvite$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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_resendInviteUseCase__76bg6a(this.num_1).mpe(this.oum_1, this.num_1.cqk().go6().tnq_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; var this_0 = Default_getInstance(); var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(InviteResult), arrayOf([]), false)); var invitation = this_0.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), result); this.num_1.kqk().qq3(new Snack(invitation.xsi_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).v1m = function ($this$launch, completion) { var i = new ClazzMemberListViewModel$onClickResendInvite$slambda(this.num_1, this.oum_1, completion); i.pum_1 = $this$launch; return i; }; function ClazzMemberListViewModel$onClickResendInvite$slambda_0(this$0, $contact, resultContinuation) { var i = new ClazzMemberListViewModel$onClickResendInvite$slambda(this$0, $contact, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($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(ResendInviteUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(); tmp_0.yui_1 = Instance(this_0, tmp$ret$0, null).a5d(this, resendInviteUseCase$factory()); var tmp_2 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.cqk().co7(); var trigger = this.d57(); // 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.h57(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.zui_1 = Instance(this_1, tmp$ret$5, null).a5d(this, approveOrDeclinePendingEnrolmentUseCase$factory()); var tmp_6 = this; Companion_getInstance_114(); 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.auj_1 = tmp_7; var tmp_8 = this; tmp_8.buj_1 = ClazzMemberListViewModel$teacherListPagingSource$lambda(this); var tmp_9 = this; tmp_9.cuj_1 = ClazzMemberListViewModel$studentListPagingSource$lambda(this); var tmp_10 = this; tmp_10.duj_1 = ClazzMemberListViewModel$pendingInvitesPagingSource$lambda(this); var tmp_11 = this; tmp_11.euj_1 = ClazzMemberListViewModel$pendingStudentListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.hqs_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.mqk().eog(get_dayStringResource(element)); result.s(element, tmp$ret$7); } var nextValue = prevValue.rug(this.cuj_1, this.buj_1, this.euj_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, result); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.qqj_1; while (true) { var prevValue_0 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.' call var nextValue_0 = prevValue_0.bq3(VOID, VOID, VOID, true, VOID, VOID, VOID, this.qqt(), new ActionBarButtonUiState(false)); if (this_4.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_12 = this.dqk(); launch(tmp_12, VOID, VOID, ClazzMemberListViewModel$slambda_0(this, null)); } protoOf(ClazzMemberListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).cqt = function () { }; protoOf(ClazzMemberListViewModel).ast = function (filterOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onClickFilterChip.' call var nextValue = prevValue.rug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, filterOption.eq4_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).qum = function (enrolmentDetails, approved) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRespondToPendingEnrolment$slambda_0(this, enrolmentDetails, approved, null)); }; protoOf(ClazzMemberListViewModel).rum = function (role) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickAddNewMember$slambda_0(this, role, null)); }; protoOf(ClazzMemberListViewModel).sum = function (entry) { Companion_getInstance_114(); var tmp0_safe_receiver = entry.a96_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f96_1; var tmp = to('personUid', (tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs).toString()); Companion_getInstance_114(); this.oqj_1.fp3('CourseEnrolments', mapOf([tmp, to('clazzUid', this.auj_1.toString())])); }; protoOf(ClazzMemberListViewModel).zss = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.clazzmemberlist.ClazzMemberListViewModel.onSortOrderChanged.' call var nextValue = prevValue.rug(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ClazzMemberListViewModel).tum = function (contact) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickRevokeInvite$slambda_0(this, contact, null)); }; protoOf(ClazzMemberListViewModel).uum = function (contact) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzMemberListViewModel$onClickResendInvite$slambda_0(this, contact, 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().omf_1; var tmp_5 = new SortOrderOption(tmp_4, 1, true); var tmp_6 = strings_getInstance().omf_1; var tmp_7 = new SortOrderOption(tmp_6, 2, false); var tmp_8 = strings_getInstance().nmf_1; var tmp_9 = new SortOrderOption(tmp_8, 3, true); var tmp_10 = strings_getInstance().nmf_1; var tmp_11 = new SortOrderOption(tmp_10, 4, false); var tmp_12 = strings_getInstance().bmt_1; var tmp_13 = new SortOrderOption(tmp_12, 7, true); var tmp_14 = strings_getInstance().bmt_1; var tmp_15 = new SortOrderOption(tmp_14, 8, false); var tmp_16 = strings_getInstance().cmt_1; var tmp_17 = new SortOrderOption(tmp_16, 9, true); var tmp_18 = strings_getInstance().cmt_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().smv_1; tmp_20 = listOf([new MessageIdOption2(tmp_21, 1), new MessageIdOption2(strings_getInstance().lmv_1, 0)]); } else { tmp_20 = filterOptions; } filterOptions = tmp_20; terminologyStrings = terminologyStrings === VOID ? null : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? toLocalDateTime(System_instance.km9(), Companion_getInstance_9().jmd()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.cug_1 = studentList; this.dug_1 = teacherList; this.eug_1 = pendingStudentList; this.fug_1 = pendingInviteList; this.gug_1 = addTeacherVisible; this.hug_1 = addStudentVisible; this.iug_1 = pendingInviteListVisible; this.jug_1 = sortOptions; this.kug_1 = activeSortOrderOption; this.lug_1 = fieldsEnabled; this.mug_1 = selectedChipId; this.nug_1 = filterOptions; this.oug_1 = terminologyStrings; this.pug_1 = localDateTimeNow; this.qug_1 = dayOfWeekStrings; } protoOf(ClazzMemberListUiState).vum = 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).rug = function (studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings, $super) { studentList = studentList === VOID ? this.cug_1 : studentList; teacherList = teacherList === VOID ? this.dug_1 : teacherList; pendingStudentList = pendingStudentList === VOID ? this.eug_1 : pendingStudentList; pendingInviteList = pendingInviteList === VOID ? this.fug_1 : pendingInviteList; addTeacherVisible = addTeacherVisible === VOID ? this.gug_1 : addTeacherVisible; addStudentVisible = addStudentVisible === VOID ? this.hug_1 : addStudentVisible; pendingInviteListVisible = pendingInviteListVisible === VOID ? this.iug_1 : pendingInviteListVisible; sortOptions = sortOptions === VOID ? this.jug_1 : sortOptions; activeSortOrderOption = activeSortOrderOption === VOID ? this.kug_1 : activeSortOrderOption; fieldsEnabled = fieldsEnabled === VOID ? this.lug_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.mug_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.nug_1 : filterOptions; terminologyStrings = terminologyStrings === VOID ? this.oug_1 : terminologyStrings; localDateTimeNow = localDateTimeNow === VOID ? this.pug_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.qug_1 : dayOfWeekStrings; return $super === VOID ? this.vum(studentList, teacherList, pendingStudentList, pendingInviteList, addTeacherVisible, addStudentVisible, pendingInviteListVisible, sortOptions, activeSortOrderOption, fieldsEnabled, selectedChipId, filterOptions, terminologyStrings, localDateTimeNow, dayOfWeekStrings) : $super.vum.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.cug_1 + ', teacherList=' + this.dug_1 + ', pendingStudentList=' + this.eug_1 + ', pendingInviteList=' + this.fug_1 + ', addTeacherVisible=' + this.gug_1 + ', addStudentVisible=' + this.hug_1 + ', pendingInviteListVisible=' + this.iug_1 + ', sortOptions=' + this.jug_1 + ', activeSortOrderOption=' + this.kug_1 + ', fieldsEnabled=' + this.lug_1 + ', selectedChipId=' + this.mug_1 + ', filterOptions=' + this.nug_1 + ', terminologyStrings=' + this.oug_1 + ', localDateTimeNow=' + this.pug_1 + ', dayOfWeekStrings=' + this.qug_1 + ')'; }; protoOf(ClazzMemberListUiState).hashCode = function () { var result = hashCode(this.cug_1); result = imul(result, 31) + hashCode(this.dug_1) | 0; result = imul(result, 31) + hashCode(this.eug_1) | 0; result = imul(result, 31) + hashCode(this.fug_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gug_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hug_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iug_1) | 0; result = imul(result, 31) + hashCode(this.jug_1) | 0; result = imul(result, 31) + this.kug_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.lug_1) | 0; result = imul(result, 31) + this.mug_1 | 0; result = imul(result, 31) + hashCode(this.nug_1) | 0; result = imul(result, 31) + (this.oug_1 == null ? 0 : this.oug_1.hashCode()) | 0; result = imul(result, 31) + this.pug_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.qug_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.cug_1, tmp0_other_with_cast.cug_1)) return false; if (!equals(this.dug_1, tmp0_other_with_cast.dug_1)) return false; if (!equals(this.eug_1, tmp0_other_with_cast.eug_1)) return false; if (!equals(this.fug_1, tmp0_other_with_cast.fug_1)) return false; if (!(this.gug_1 === tmp0_other_with_cast.gug_1)) return false; if (!(this.hug_1 === tmp0_other_with_cast.hug_1)) return false; if (!(this.iug_1 === tmp0_other_with_cast.iug_1)) return false; if (!equals(this.jug_1, tmp0_other_with_cast.jug_1)) return false; if (!this.kug_1.equals(tmp0_other_with_cast.kug_1)) return false; if (!(this.lug_1 === tmp0_other_with_cast.lug_1)) return false; if (!(this.mug_1 === tmp0_other_with_cast.mug_1)) return false; if (!equals(this.nug_1, tmp0_other_with_cast.nug_1)) return false; if (!equals(this.oug_1, tmp0_other_with_cast.oug_1)) return false; if (!this.pug_1.equals(tmp0_other_with_cast.pug_1)) return false; if (!equals(this.qug_1, tmp0_other_with_cast.qug_1)) return false; return true; }; function resendInviteUseCase$factory() { return getPropertyCallableRef('resendInviteUseCase', 1, KProperty1, function (receiver) { return _get_resendInviteUseCase__76bg6a(receiver); }, null); } function approveOrDeclinePendingEnrolmentUseCase$factory() { return getPropertyCallableRef('approveOrDeclinePendingEnrolmentUseCase', 1, KProperty1, function (receiver) { return _get_approveOrDeclinePendingEnrolmentUseCase__jyai0d(receiver); }, null); } function resendInviteUseCase$factory_0() { return getPropertyCallableRef('resendInviteUseCase', 1, KProperty1, function (receiver) { return _get_resendInviteUseCase__76bg6a(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.eun_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).iun = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.iun(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.fun_1.t7d(); var tmp_1; if (!this.eun_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.gun_1 = tmp_1; if (this.gun_1 == null) { this.hun_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.gun_1.f93(this.eun_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.hun_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.hun_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).env = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda(this.eun_1, completion); i.fun_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.iun(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.run_1 = $savedStateHandle; this.sun_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).vun = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.vun($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.tun_1 = new ClazzEnrolmentWithLeavingReason(); var tmp_1 = this; tmp_1.uun_1 = this.tun_1; var tmp_2 = this.uun_1; Companion_getInstance_114(); var tmp0_safe_receiver = this.run_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.d8i_1 = tmp_3; var tmp_4 = this.uun_1; Companion_getInstance_114(); var tmp2_safe_receiver = this.run_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.c8i_1 = tmp_5; this.uun_1.e8i_1 = systemTimeInMillis(); var tmp_6 = this.uun_1; var tmp4_safe_receiver = this.run_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.g8i_1 = tmp_7; this.hd_1 = 1; suspendResult = this.sun_1.iqk().o7d().c8d(this.uun_1.d8i_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.uun_1.s94_1 = ARGUMENT; return this.tun_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).l78 = function (completion) { return new ClazzEnrolmentEditViewModel$slambda$slambda_1(this.run_1, this.sun_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.vun($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.tuo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel...' call var nextValue = prevValue.dup(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzEnrolmentEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.mup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda$slambda_3).oup = function ($this$async, $completion) { var tmp = this.v1m($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.oup((!(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.mup_1.iqk().q7d(); var tmp0_safe_receiver = this.mup_1.tuo_1.t2().wuo_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d8i_1; suspendResult = tmp_0.ve6(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).v1m = function ($this$async, completion) { var i = new ClazzEnrolmentEditViewModel$slambda$slambda_3(this.mup_1, completion); i.nup_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.oup($this$async, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function _get_enrolIntoCourseUseCase__jh2n4b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vuo_1; enrolIntoCourseUseCase$factory_0(); return this_0.t2(); } function hasErrors_1(_this__u8e3s4, $this) { return (!(_this__u8e3s4.xuo_1 == null) ? true : !(_this__u8e3s4.yuo_1 == null)) ? true : !(_this__u8e3s4.zuo_1 == null); } function Companion_136() { this.pup_1 = 'EnrolmentEdit'; this.qup_1 = 'role'; } var Companion_instance_185; function Companion_getInstance_153() { return Companion_instance_185; } function ClazzEnrolmentEditViewModel$slambda(this$0, resultContinuation) { this.zup_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.auq_1.o7f().vdj(this.zup_1.eqk(), this.zup_1.uqp_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).env = function (db, completion) { var i = new ClazzEnrolmentEditViewModel$slambda(this.zup_1, completion); i.auq_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.vs5(db, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.juq_1 = this$0; this.kuq_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.n4r(); var tmp_1 = ClazzEnrolmentEditViewModel$slambda$slambda_0(this.juq_1, null); var tmp_2 = ClazzEnrolmentEditViewModel$slambda$slambda_2(this.kuq_1, this.juq_1, null); suspendResult = this.juq_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzEnrolmentEditViewModel$slambda$lambda(this.juq_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = this.juq_1.gqk().o7f(); var tmp_4 = this.juq_1.eqk(); var tmp0_safe_receiver = this.juq_1.tuo_1.t2().wuo_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d8i_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.ydj(tmp_4, tmp_5, tmp_6, new Long(16, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.muq_1 = suspendResult; this.nuq_1 = this.muq_1.y6(); this.ouq_1 = this.muq_1.z6(); var tmp_7 = this; tmp_7.puq_1 = async(this.luq_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda$slambda_4(this.juq_1, null)); var tmp_8 = this; var this_0 = ArrayList_init_$Create$(); if (this.nuq_1) { this_0.i1(1000); } if (this.ouq_1) { this_0.i1(1001); } tmp_8.quq_1 = this_0.f3(); this.hd_1 = 3; suspendResult = this.puq_1.nv(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.juq_1.mqk(), this.juq_1.m4r()); } var terminologyStrings = tmp_9; l$ret$1: do { var this_1 = this.juq_1.tuo_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.dup(VOID, VOID, VOID, VOID, true, terminologyStrings, this.quq_1); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.juq_1.qqj_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_10 = Companion_getInstance_96().jq3_1; var tmp_11 = this.juq_1.mqk().eog(strings_getInstance().tmy_1); var nextValue_0 = prevValue_0.bq3(VOID, tmp_10, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_11, VOID, ClazzEnrolmentEditViewModel$onClickSave$ref(this.juq_1))); if (this_2.y1k(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).v1m = function ($this$launchIfHasPermission, completion) { var i = new ClazzEnrolmentEditViewModel$slambda_1(this.juq_1, this.kuq_1, completion); i.luq_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.zuq_1 = $commitDelay; this.aur_1 = $entity; this.bur_1 = $this; this.cur_1 = $key; this.dur_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.zuq_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.aur_1 == null)) { this.hd_1 = 2; suspendResult = this.bur_1.sqk(this.bur_1.mqj_1, this.cur_1, this.dur_1, this.aur_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).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentEditViewModel$onEntityChanged$slambda(this.zuq_1, this.aur_1, this.bur_1, this.cur_1, this.dur_1, completion); i.eur_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel$onClickSave$slambda(this$0, $entity, $timeZoneVal, resultContinuation) { this.nur_1 = this$0; this.our_1 = $entity; this.pur_1 = $timeZoneVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nur_1.uqp_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = _get_enrolIntoCourseUseCase__jh2n4b(this.nur_1).gow(this.our_1, this.pur_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.nur_1.gqk().t7d().g93(this.our_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_114(); var popUpToOnFinish = this.nur_1.mqj_1.ba('popUpToOnFinish'); if (!(popUpToOnFinish == null)) { this.nur_1.oqj_1.cq6(popUpToOnFinish, false); } else { this.nur_1.xqp(this.our_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).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentEditViewModel$onClickSave$slambda(this.nur_1, this.our_1, this.pur_1, completion); i.qur_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EnrolmentEdit'); this.tuo_1 = MutableStateFlow(new ClazzEnrolmentEditUiState(VOID, VOID, VOID, VOID, false)); this.uuo_1 = asStateFlow(this.tuo_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.vuo_1 = Instance(this_0, tmp$ret$0, null).a5d(this, enrolIntoCourseUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.' call var nextValue = prevValue.bq3(VOID, Companion_getInstance_96().iq3_1, this.wqq(strings_getInstance().lmt_1, strings_getInstance().kmt_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzEnrolmentEditViewModel$slambda_0(this, null); this.yqk(tmp_1, VOID, VOID, ClazzEnrolmentEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ClazzEnrolmentEditViewModel).rur = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tuo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.wuo_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g8i_1; var tmp_0 = this.xqq(tmp, entity == null ? null : entity.g8i_1, prevValue.xuo_1); var tmp2_safe_receiver = prevValue.wuo_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.e8i_1; var nextValue = prevValue.dup(entity, tmp_0, this.xqq(tmp_1, entity == null ? null : entity.e8i_1, prevValue.yuo_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_35.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.dqk(); tmp_2.tqp_1 = launch(tmp_3, VOID, VOID, ClazzEnrolmentEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ClazzEnrolmentEditViewModel).js3 = function () { if (this.pqk().equals(Companion_getInstance_96().iq3_1)) return Unit_instance; var tmp0_elvis_lhs = this.tuo_1.t2().wuo_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; var timeZoneVal = entity.s94_1; if (timeZoneVal == null) { this.kqk().qq3(new Snack('Error: no time zone for course')); return Unit_instance; } this.oqk(Companion_getInstance_96().iq3_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tuo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzenrolment.edit.ClazzEnrolmentEditViewModel.onClickSave.' call var nextValue = prevValue.dup(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (entity.g8i_1 === 0) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tuo_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.dup(VOID, this.mqk().eog(strings_getInstance().hmj_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } if (entity.e8i_1.c7(toLong(imul(get_MS_PER_HOUR(), 24))) <= 0) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tuo_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.dup(VOID, VOID, this.mqk().eog(strings_getInstance().hmj_1)); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } if (entity.f8i_1.c7(entity.e8i_1) <= 0) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.tuo_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.dup(VOID, VOID, VOID, this.mqk().eog(strings_getInstance().en5_1)); if (this_3.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } } if (hasErrors_1(this.tuo_1.t2(), this)) { $l$block_3: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.tuo_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.dup(VOID, VOID, VOID, VOID, true); if (this_4.y1k(prevValue_3, nextValue_3)) { break $l$block_3; } } } return Unit_instance; } var tmp_0 = this.dqk(); 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.wuo_1 = clazzEnrolment; this.xuo_1 = roleSelectedError; this.yuo_1 = startDateError; this.zuo_1 = endDateError; this.aup_1 = fieldsEnabled; this.bup_1 = courseTerminology; this.cup_1 = roleOptions; } protoOf(ClazzEnrolmentEditUiState).sur = function () { var tmp0_safe_receiver = this.wuo_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g8i_1; return tmp === 1000; }; protoOf(ClazzEnrolmentEditUiState).tur = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) { return new ClazzEnrolmentEditUiState(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).dup = function (clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions, $super) { clazzEnrolment = clazzEnrolment === VOID ? this.wuo_1 : clazzEnrolment; roleSelectedError = roleSelectedError === VOID ? this.xuo_1 : roleSelectedError; startDateError = startDateError === VOID ? this.yuo_1 : startDateError; endDateError = endDateError === VOID ? this.zuo_1 : endDateError; fieldsEnabled = fieldsEnabled === VOID ? this.aup_1 : fieldsEnabled; courseTerminology = courseTerminology === VOID ? this.bup_1 : courseTerminology; roleOptions = roleOptions === VOID ? this.cup_1 : roleOptions; return $super === VOID ? this.tur(clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions) : $super.tur.call(this, clazzEnrolment, roleSelectedError, startDateError, endDateError, fieldsEnabled, courseTerminology, roleOptions); }; protoOf(ClazzEnrolmentEditUiState).toString = function () { return 'ClazzEnrolmentEditUiState(clazzEnrolment=' + this.wuo_1 + ', roleSelectedError=' + this.xuo_1 + ', startDateError=' + this.yuo_1 + ', endDateError=' + this.zuo_1 + ', fieldsEnabled=' + this.aup_1 + ', courseTerminology=' + this.bup_1 + ', roleOptions=' + this.cup_1 + ')'; }; protoOf(ClazzEnrolmentEditUiState).hashCode = function () { var result = this.wuo_1 == null ? 0 : hashCode(this.wuo_1); result = imul(result, 31) + (this.xuo_1 == null ? 0 : getStringHashCode(this.xuo_1)) | 0; result = imul(result, 31) + (this.yuo_1 == null ? 0 : getStringHashCode(this.yuo_1)) | 0; result = imul(result, 31) + (this.zuo_1 == null ? 0 : getStringHashCode(this.zuo_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.aup_1) | 0; result = imul(result, 31) + (this.bup_1 == null ? 0 : this.bup_1.hashCode()) | 0; result = imul(result, 31) + hashCode(this.cup_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.wuo_1, tmp0_other_with_cast.wuo_1)) return false; if (!(this.xuo_1 == tmp0_other_with_cast.xuo_1)) return false; if (!(this.yuo_1 == tmp0_other_with_cast.yuo_1)) return false; if (!(this.zuo_1 == tmp0_other_with_cast.zuo_1)) return false; if (!(this.aup_1 === tmp0_other_with_cast.aup_1)) return false; if (!equals(this.bup_1, tmp0_other_with_cast.bup_1)) return false; if (!equals(this.cup_1, tmp0_other_with_cast.cup_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.cus_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$o$collect$slambda).yrh = function (value, $completion) { var tmp = this.zrh(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.yrh(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.eus_1 = this.cus_1; var tmp_1 = this; tmp_1.fus_1 = this.dus_1; this.hd_1 = 1; var it = this.fus_1; suspendResult = this.eus_1.t1d(it.qdn_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).zrh = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$o$collect$slambda(this.cus_1, completion); i.dus_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.yrh(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$71(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.ous_1 = _this__u8e3s4; this.pus_1 = collector; } protoOf($collectCOROUTINE$71).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.qus_1 = this.pus_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$o$collect$slambda_0(this.qus_1, null); suspendResult = this.ous_1.rus_1.a1c(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.aut_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda).yrh = function (it, $completion) { var tmp = this.zrh(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.yrh(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.but_1; var canEditTeacherEnrolments = tmp0_container.y6(); var canEditStudentEnrolments = tmp0_container.z6(); l$ret$1: do { var this_0 = this.aut_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jut(VOID, VOID, VOID, canEditTeacherEnrolments, canEditStudentEnrolments); if (this_0.y1k(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).zrh = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda(this.aut_1, completion); i.but_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.yrh(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.sut_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda).uut = function (it, $completion) { var tmp = this.vut(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.uut((!(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.sut_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jut(this.tut_1); if (this_0.y1k(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).vut = function (it, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda(this.sut_1, completion); i.tut_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.uut(it, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.euu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1).yqb = function (canViewMembers, $completion) { var tmp = this.zqb(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.yqb((!(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.fuu_1) { tmp_1 = this.euu_1.iqk().t7d().e93(this.euu_1.iuv_1, this.euu_1.huv_1); } else { tmp_1 = flowOf(emptyList()); } tmp_0.guu_1 = tmp_1; this.hd_1 = 1; var tmp_2 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda$slambda_0(this.euu_1, null); suspendResult = this.guu_1.a1c(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).zqb = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_1(this.euu_1, completion); i.fuu_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.yqb(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda($$this$unsafeFlow, resultContinuation) { this.ruv_1 = $$this$unsafeFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda).yqb = function (value, $completion) { var tmp = this.zqb(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.yqb((!(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.uuv_1 = this.ruv_1; var tmp_1 = this; tmp_1.vuv_1 = this.suv_1; if (this.vuv_1) { this.hd_1 = 3; suspendResult = this.uuv_1.t1d(this.vuv_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.tuv_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).zqb = function (value, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda(this.ruv_1, completion); i.suv_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.yqb(value, $completion); }; l.$arity = 1; return l; } function $collectCOROUTINE$72(_this__u8e3s4, collector, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.euw_1 = _this__u8e3s4; this.fuw_1 = collector; } protoOf($collectCOROUTINE$72).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.guw_1 = this.fuw_1; this.hd_1 = 1; var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$o$collect$slambda_0(this.guw_1, null); suspendResult = this.euw_1.huw_1.a1c(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.huw_1 = $this; } protoOf(_no_name_provided__qut3iv_8).nqb = function (collector, $completion) { var tmp = new $collectCOROUTINE$72(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_8).a1c = function (collector, $completion) { return this.nqb(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.quw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3).yqb = function (canViewMembers, $completion) { var tmp = this.zqb(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.yqb((!(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.ruw_1) { this.hd_1 = 1; suspendResult = this.quw_1.iqk().t7d().l93(this.quw_1.iuv_1, this.quw_1.huv_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.e9a_1; var personName = '' + tmp_0 + ' ' + (courseAndPersonName == null ? null : courseAndPersonName.f9a_1); l$ret$1: do { var this_0 = this.quw_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jut(VOID, personName, courseAndPersonName == null ? null : courseAndPersonName.d9a_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.quw_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(VOID, VOID, personName); if (this_1.y1k(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).zqb = function (canViewMembers, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_3(this.quw_1, completion); i.ruw_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.yqb(canViewMembers, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.aux_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.aux_1.iqk().q7d().ve6(this.aux_1.huv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var terminology = suspendResult; l$ret$1: do { var this_0 = this.aux_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jut(VOID, VOID, VOID, VOID, VOID, terminology); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda(this.aux_1, completion); i.bux_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_1($permissionFlow, this$0, resultContinuation) { this.kux_1 = $permissionFlow; this.lux_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.kux_1); var tmp_1 = ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_0(this.lux_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_1(this.kux_1, this.lux_1, completion); i.mux_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_3($canViewMembersFlow, this$0, resultContinuation) { this.vux_1 = $canViewMembersFlow; this.wux_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.vux_1); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_2(this.wux_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).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_3(this.vux_1, this.wux_1, completion); i.xux_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentListViewModel$slambda$slambda$slambda_5($canViewMembersFlow, this$0, resultContinuation) { this.guy_1 = $canViewMembersFlow; this.huy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.guy_1); var tmp_0 = new _no_name_provided__qut3iv_8(this_0); suspendResult = collectLatest(tmp_0, ClazzEnrolmentListViewModel$slambda$slambda$slambda$slambda_4(this.huy_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).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda$slambda$slambda_5(this.guy_1, this.huy_1, completion); i.iuy_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function _no_name_provided__qut3iv_9($this) { this.rus_1 = $this; } protoOf(_no_name_provided__qut3iv_9).nqb = function (collector, $completion) { var tmp = new $collectCOROUTINE$71(this, collector, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(_no_name_provided__qut3iv_9).a1c = function (collector, $completion) { return this.nqb(collector, $completion); }; function ClazzEnrolmentListViewModel$slambda$slambda($this_launch, this$0, $permissionFlow, $canViewMembersFlow, resultContinuation) { this.ruy_1 = $this_launch; this.suy_1 = this$0; this.tuy_1 = $permissionFlow; this.uuy_1 = $canViewMembersFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.ruy_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_0(this.suy_1, null)); launch(this.ruy_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_2(this.tuy_1, this.suy_1, null)); launch(this.ruy_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_4(this.uuy_1, this.suy_1, null)); launch(this.ruy_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda$slambda$slambda_6(this.uuy_1, this.suy_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).l78 = function (completion) { return new ClazzEnrolmentListViewModel$slambda$slambda(this.ruy_1, this.suy_1, this.tuy_1, this.uuy_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.j87($completion); }; l.$arity = 0; return l; } function Companion_137() { this.vuy_1 = 'CourseEnrolments'; } var Companion_instance_186; function Companion_getInstance_154() { return Companion_instance_186; } function sam$kotlinx_coroutines_flow_FlowCollector$0_20(function_0) { this.wuy_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_20).t1d = function (value, $completion) { return this.wuy_1(value, $completion); }; function ClazzEnrolmentListViewModel$slambda(this$0, resultContinuation) { this.fuz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzEnrolmentListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.fuz_1.gqk().o7f(); var tmp_2 = this.fuz_1.eqk(); PermissionFlags_getInstance(); var tmp_3 = new Long(16, 0); PermissionFlags_getInstance(); var tmp_4 = new Long(8, 0); PermissionFlags_getInstance(); tmp_0.huz_1 = shareIn(tmp_1.zdj(tmp_2, this.fuz_1.huv_1, tmp_3, tmp_4, new Long(8192, 0)), this.fuz_1.dqk(), Companion_getInstance_12().v1h()); var tmp_5 = this; var this_0 = this.huz_1; tmp_5.iuz_1 = new _no_name_provided__qut3iv_9(this_0); this.hd_1 = 1; suspendResult = whenSubscribed(this.fuz_1.hqs_1, ClazzEnrolmentListViewModel$slambda$slambda_0(this.guz_1, this.fuz_1, this.huz_1, this.iuz_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).v1m = function ($this$launch, completion) { var i = new ClazzEnrolmentListViewModel$slambda(this.fuz_1, completion); i.guz_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.u1m($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_114(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.huv_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_114(); 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.iuv_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, ClazzEnrolmentListViewModel$slambda_0(this, null)); } protoOf(ClazzEnrolmentListViewModel).juz = function (enrolment) { var tmp = Companion_instance_35.n4r(); Companion_getInstance_114(); this.uqk('EnrolmentEdit', '', null, tmp, mapOf_0(to('entityUid', enrolment.b8i_1.toString())), VOID, true); }; protoOf(ClazzEnrolmentListViewModel).kuz = function () { Companion_getInstance_114(); this.oqj_1.fp3('PersonDetailView', mapOf_0(to('entityUid', this.iuv_1.toString()))); }; protoOf(ClazzEnrolmentListViewModel).bqt = function (searchText) { }; protoOf(ClazzEnrolmentListViewModel).cqt = 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.cut_1 = enrolmentList; this.dut_1 = personName; this.eut_1 = courseName; this.fut_1 = canEditTeacherEnrolments; this.gut_1 = canEditStudentEnrolments; this.hut_1 = courseTerminology; this.iut_1 = timeZone; } protoOf(ClazzEnrolmentListUiState).luz = function (enrolment) { var tmp; var tmp_0 = enrolment.g8i_1; if (tmp_0 === 1001) { tmp = this.fut_1; } else { tmp = this.fut_1; } var tmp0_canEdit = tmp; var tmp1_timeZone = this.iut_1; return new ClazzEnrolmentListItemUiState(tmp0_canEdit, enrolment, tmp1_timeZone); }; protoOf(ClazzEnrolmentListUiState).muz = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) { return new ClazzEnrolmentListUiState(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).jut = function (enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone, $super) { enrolmentList = enrolmentList === VOID ? this.cut_1 : enrolmentList; personName = personName === VOID ? this.dut_1 : personName; courseName = courseName === VOID ? this.eut_1 : courseName; canEditTeacherEnrolments = canEditTeacherEnrolments === VOID ? this.fut_1 : canEditTeacherEnrolments; canEditStudentEnrolments = canEditStudentEnrolments === VOID ? this.gut_1 : canEditStudentEnrolments; courseTerminology = courseTerminology === VOID ? this.hut_1 : courseTerminology; timeZone = timeZone === VOID ? this.iut_1 : timeZone; return $super === VOID ? this.muz(enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone) : $super.muz.call(this, enrolmentList, personName, courseName, canEditTeacherEnrolments, canEditStudentEnrolments, courseTerminology, timeZone); }; protoOf(ClazzEnrolmentListUiState).toString = function () { return 'ClazzEnrolmentListUiState(enrolmentList=' + this.cut_1 + ', personName=' + this.dut_1 + ', courseName=' + this.eut_1 + ', canEditTeacherEnrolments=' + this.fut_1 + ', canEditStudentEnrolments=' + this.gut_1 + ', courseTerminology=' + this.hut_1 + ', timeZone=' + this.iut_1 + ')'; }; protoOf(ClazzEnrolmentListUiState).hashCode = function () { var result = hashCode(this.cut_1); result = imul(result, 31) + (this.dut_1 == null ? 0 : getStringHashCode(this.dut_1)) | 0; result = imul(result, 31) + (this.eut_1 == null ? 0 : getStringHashCode(this.eut_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.fut_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gut_1) | 0; result = imul(result, 31) + (this.hut_1 == null ? 0 : hashCode(this.hut_1)) | 0; result = imul(result, 31) + getStringHashCode(this.iut_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.cut_1, tmp0_other_with_cast.cut_1)) return false; if (!(this.dut_1 == tmp0_other_with_cast.dut_1)) return false; if (!(this.eut_1 == tmp0_other_with_cast.eut_1)) return false; if (!(this.fut_1 === tmp0_other_with_cast.fut_1)) return false; if (!(this.gut_1 === tmp0_other_with_cast.gut_1)) return false; if (!equals(this.hut_1, tmp0_other_with_cast.hut_1)) return false; if (!(this.iut_1 === tmp0_other_with_cast.iut_1)) return false; return true; }; function ClazzEnrolmentListItemUiState(canEdit, enrolment, timeZone) { canEdit = canEdit === VOID ? false : canEdit; this.nuz_1 = canEdit; this.ouz_1 = enrolment; this.puz_1 = timeZone; } protoOf(ClazzEnrolmentListItemUiState).toString = function () { return 'ClazzEnrolmentListItemUiState(canEdit=' + this.nuz_1 + ', enrolment=' + this.ouz_1 + ', timeZone=' + this.puz_1 + ')'; }; protoOf(ClazzEnrolmentListItemUiState).hashCode = function () { var result = getBooleanHashCode(this.nuz_1); result = imul(result, 31) + hashCode(this.ouz_1) | 0; result = imul(result, 31) + getStringHashCode(this.puz_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.nuz_1 === tmp0_other_with_cast.nuz_1)) return false; if (!equals(this.ouz_1, tmp0_other_with_cast.ouz_1)) return false; if (!(this.puz_1 === tmp0_other_with_cast.puz_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().fn5_1); RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_instance = new RecordAttendanceOption('RECORD_ATTENDANCE_NEW_SCHEDULE', 1, strings_getInstance().gn5_1); } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.yuz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda).av0 = function (clazz, $completion) { var tmp = this.bv0(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.av0((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.yuz_1.hqs_1; var tmp_0; var tmp_1 = this_0.t2().dv0_1; var tmp0_safe_receiver = this.zuz_1; if (!(tmp_1 === (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j8e_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.zuz_1; var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.j8e_1; var nextValue = prevValue.kv0(VOID, tmp1_elvis_lhs == null ? 'UTC' : tmp1_elvis_lhs); if (tmp0_safe_receiver_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } var this_1 = this.yuz_1.qqj_1; var tmp_2; var tmp_3 = this_1.t2().oq2_1; var tmp0_safe_receiver_2 = this.zuz_1; if (!(tmp_3 == (tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.s8d_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.zuz_1; var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.s8d_1); if (tmp1_safe_receiver.y1k(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).bv0 = function (clazz, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda(this.yuz_1, completion); i.zuz_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.av0(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.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.......' call var nextValue = prevValue.kv0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = Unit_instance; break $l$block; } } } tmp = tmp$ret$1; } else { this$0.nv1(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).yv1 = function (hasPermission, hasLogs, $completion) { var tmp = this.zv1(hasPermission, hasLogs, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1).um = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? typeof p1 === 'boolean' : false) ? p1 : THROW_CCE(); return this.yv1(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.wv1_1, this.xv1_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).zv1 = function (hasPermission, hasLogs, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_1(completion); i.wv1_1 = hasPermission; i.xv1_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.yv1(hasPermission, hasLogs, $completion); }; l.$arity = 2; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.iv2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3).kv2 = function (it, $completion) { var tmp = this.lv2(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.kv2(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.jv2_1.mv2_1) { this_0.i1(RecordAttendanceOption_RECORD_ATTENDANCE_NEW_SCHEDULE_getInstance()); } if (this.jv2_1.mv2_1 ? this.jv2_1.nv2_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.iv2_1.hqs_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.kv0(VOID, VOID, options); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.iv2_1.qqj_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_0 = !options.c1(); var tmp_1 = this.iv2_1.mqk().eog(strings_getInstance().imq_1); var tmp_2 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.bq3(new FabUiState(tmp_0, tmp_1, tmp_2, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda$lambda(options, this.iv2_1))); if (this_2.y1k(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).lv2 = function (it, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_3(this.iv2_1, completion); i.jv2_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.kv2(it, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.wv2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wv2_1.iqk().o7d().t8c(this.wv2_1.lv1_1); var tmp_1 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_0(this.wv2_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda(this.wv2_1, completion); i.xv2_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.gv3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.gv3_1.iqk().o7f(); var tmp_2 = this.gv3_1.eqk(); PermissionFlags_getInstance(); tmp_0.iv3_1 = tmp_1.wdj(tmp_2, this.gv3_1.lv1_1, new Long(64, 0)); var tmp_3 = this; var tmp_4 = this.gv3_1.iqk().m7e(); tmp_3.jv3_1 = tmp_4.ba3(this.gv3_1.lv1_1, 8); this.hd_1 = 1; var tmp_5 = combine(this.iv3_1, this.jv3_1, ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_2(null)); var tmp_6 = ClazzLogListAttendanceViewModel$slambda$slambda$slambda$slambda_4(this.gv3_1, null); suspendResult = tmp_5.a1c(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).v1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda$slambda$slambda_1(this.gv3_1, completion); i.hv3_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.sv3_1 = $this_launch; this.tv3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.sv3_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_0(this.tv3_1, null)); launch(this.sv3_1, VOID, VOID, ClazzLogListAttendanceViewModel$slambda$slambda$slambda_2(this.tv3_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).l78 = function (completion) { return new ClazzLogListAttendanceViewModel$slambda$slambda(this.sv3_1, this.tv3_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.j87($completion); }; l.$arity = 0; return l; } function RecordAttendanceOption(name, ordinal, stringResource) { Enum.call(this, name, ordinal); this.wv3_1 = stringResource; } function PermissionAndExistingLogs(hasRecordPermission, hasExistingLogs) { this.mv2_1 = hasRecordPermission; this.nv2_1 = hasExistingLogs; } protoOf(PermissionAndExistingLogs).toString = function () { return 'PermissionAndExistingLogs(hasRecordPermission=' + this.mv2_1 + ', hasExistingLogs=' + this.nv2_1 + ')'; }; protoOf(PermissionAndExistingLogs).hashCode = function () { var result = getBooleanHashCode(this.mv2_1); result = imul(result, 31) + getBooleanHashCode(this.nv2_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.mv2_1 === tmp0_other_with_cast.mv2_1)) return false; if (!(this.nv2_1 === tmp0_other_with_cast.nv2_1)) return false; return true; }; function Companion_138() { this.xv3_1 = 'CourseLogListAttendanceView'; } var Companion_instance_187; function Companion_getInstance_155() { return Companion_instance_187; } function sam$kotlinx_coroutines_flow_FlowCollector$0_21(function_0) { this.yv3_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_21).t1d = function (value, $completion) { return this.yv3_1(value, $completion); }; function ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this$0) { return function () { var tmp = this$0.iqk().m7e(); return tmp.za2(this$0.lv1_1, 8); }; } function ClazzLogListAttendanceViewModel$slambda(this$0, resultContinuation) { this.hv4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogListAttendanceViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.hv4_1.hqs_1, ClazzLogListAttendanceViewModel$slambda$slambda_0(this.iv4_1, this.hv4_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).v1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$slambda(this.hv4_1, completion); i.iv4_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda(this$0, resultContinuation) { this.rv4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.rv4_1.iqk().m7e().ca3(this.rv4_1.lv1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var mostRecentLogUid = suspendResult; var this_0 = this.rv4_1.oqj_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_114(); tmp0_safe_receiver.fp3('EditAttendance', mapOf_0(to('entityUid', mostRecentLogUid.toString()))); } this.rv4_1.tv4(); 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).v1m = function ($this$launch, completion) { var i = new ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda(this.rv4_1, completion); i.sv4_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.u1m($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_114(); 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.lv1_1 = tmp_1; var tmp_2 = this; tmp_2.mv1_1 = ClazzLogListAttendanceViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.' call var nextValue = prevValue.kv0(VOID, VOID, VOID, this.mv1_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.dqk(); launch(tmp_3, VOID, VOID, ClazzLogListAttendanceViewModel$slambda_0(this, null)); } protoOf(ClazzLogListAttendanceViewModel).tv4 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.attendancelist.ClazzLogListAttendanceViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.kv0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ClazzLogListAttendanceViewModel).bqt = function (searchText) { }; protoOf(ClazzLogListAttendanceViewModel).cqt = function () { }; protoOf(ClazzLogListAttendanceViewModel).nv1 = function (option) { var tmp0 = option.za_1; if (tmp0 === 1) { Companion_getInstance_123(); var tmp = to('timeZone', this.hqs_1.t2().dv0_1); Companion_getInstance_114(); this.uqt('ClazzLogEdit', mapOf([tmp, to('clazzUid', this.lv1_1.toString())])); this.tv4(); } else if (tmp0 === 0) { if (this.pqk().equals(Companion_getInstance_96().iq3_1)) return Unit_instance; this.oqk(Companion_getInstance_96().iq3_1); var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, ClazzLogListAttendanceViewModel$onClickRecordAttendance$slambda_0(this, null)); } }; protoOf(ClazzLogListAttendanceViewModel).uv4 = function (clazzLog) { Companion_getInstance_114(); var tmp = to('entityUid', clazzLog.xa3_1.toString()); Companion_getInstance_123(); this.oqj_1.fp3('EditAttendance', mapOf([tmp, to('clazzUid', this.lv1_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().jmd().kmc() : 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().rmq_1, 7), new MessageIdOption2(strings_getInstance().rms_1, 30), new MessageIdOption2(strings_getInstance().dmv_1, 90)]) : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? false : createNewOptionsVisible; this.cv0_1 = graphData; this.dv0_1 = timeZoneId; this.ev0_1 = recordAttendanceOptions; this.fv0_1 = clazzLogsList; this.gv0_1 = fieldsEnabled; this.hv0_1 = selectedChipId; this.iv0_1 = viewIdToNumDays; this.jv0_1 = createNewOptionsVisible; } protoOf(ClazzLogListAttendanceUiState).vv4 = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) { return new ClazzLogListAttendanceUiState(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).kv0 = function (graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible, $super) { graphData = graphData === VOID ? this.cv0_1 : graphData; timeZoneId = timeZoneId === VOID ? this.dv0_1 : timeZoneId; recordAttendanceOptions = recordAttendanceOptions === VOID ? this.ev0_1 : recordAttendanceOptions; clazzLogsList = clazzLogsList === VOID ? this.fv0_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.gv0_1 : fieldsEnabled; selectedChipId = selectedChipId === VOID ? this.hv0_1 : selectedChipId; viewIdToNumDays = viewIdToNumDays === VOID ? this.iv0_1 : viewIdToNumDays; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.jv0_1 : createNewOptionsVisible; return $super === VOID ? this.vv4(graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible) : $super.vv4.call(this, graphData, timeZoneId, recordAttendanceOptions, clazzLogsList, fieldsEnabled, selectedChipId, viewIdToNumDays, createNewOptionsVisible); }; protoOf(ClazzLogListAttendanceUiState).toString = function () { return 'ClazzLogListAttendanceUiState(graphData=' + this.cv0_1 + ', timeZoneId=' + this.dv0_1 + ', recordAttendanceOptions=' + this.ev0_1 + ', clazzLogsList=' + this.fv0_1 + ', fieldsEnabled=' + this.gv0_1 + ', selectedChipId=' + this.hv0_1 + ', viewIdToNumDays=' + this.iv0_1 + ', createNewOptionsVisible=' + this.jv0_1 + ')'; }; protoOf(ClazzLogListAttendanceUiState).hashCode = function () { var result = this.cv0_1 == null ? 0 : this.cv0_1.hashCode(); result = imul(result, 31) + getStringHashCode(this.dv0_1) | 0; result = imul(result, 31) + hashCode(this.ev0_1) | 0; result = imul(result, 31) + hashCode(this.fv0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gv0_1) | 0; result = imul(result, 31) + this.hv0_1 | 0; result = imul(result, 31) + hashCode(this.iv0_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jv0_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.cv0_1, tmp0_other_with_cast.cv0_1)) return false; if (!(this.dv0_1 === tmp0_other_with_cast.dv0_1)) return false; if (!equals(this.ev0_1, tmp0_other_with_cast.ev0_1)) return false; if (!equals(this.fv0_1, tmp0_other_with_cast.fv0_1)) return false; if (!(this.gv0_1 === tmp0_other_with_cast.gv0_1)) return false; if (!(this.hv0_1 === tmp0_other_with_cast.hv0_1)) return false; if (!equals(this.iv0_1, tmp0_other_with_cast.iv0_1)) return false; if (!(this.jv0_1 === tmp0_other_with_cast.jv0_1)) return false; return true; }; function ClazzLogEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda).fv5 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.fv5(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).env = function (it, completion) { var i = new ClazzLogEditViewModel$slambda$slambda(completion); i.ev5_1 = it; return i; }; function ClazzLogEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ClazzLogEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.fv5(it, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.ov5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda$slambda_1).pv5 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.pv5($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.ya3_1 = this.ov5_1.qv6_1; this_0.za3_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).l78 = function (completion) { return new ClazzLogEditViewModel$slambda$slambda_1(this.ov5_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.pv5($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.ov6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel...' call var nextValue = prevValue.vv6(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_139() { this.wv6_1 = 'ClazzLogEdit'; } var Companion_instance_188; function Companion_getInstance_156() { return Companion_instance_188; } function ClazzLogEditViewModel$slambda(this$0, resultContinuation) { this.fv7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.n4r(); var tmp_1 = ClazzLogEditViewModel$slambda$slambda_0(null); var tmp_2 = ClazzLogEditViewModel$slambda$slambda_2(this.fv7_1, null); suspendResult = this.fv7_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, ClazzLogEditViewModel$slambda$lambda(this.fv7_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.fv7_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.fv7_1.mqk().eog(strings_getInstance().hmf_1); var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, ClazzLogEditViewModel$onClickSave$ref(this.fv7_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.fv7_1.ov6_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.vv6(true); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzLogEditViewModel$slambda(this.fv7_1, completion); i.gv7_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.pv7_1 = $commitDelay; this.qv7_1 = $entity; this.rv7_1 = $this; this.sv7_1 = $key; this.tv7_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.pv7_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.qv7_1 == null)) { this.hd_1 = 2; suspendResult = this.rv7_1.sqk(this.rv7_1.mqj_1, this.sv7_1, this.tv7_1, this.qv7_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).v1m = function ($this$launch, completion) { var i = new ClazzLogEditViewModel$onEntityChanged$slambda(this.pv7_1, this.qv7_1, this.rv7_1, this.sv7_1, this.tv7_1, completion); i.uv7_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditViewModel$onClickSave$lambda($this$shallowCopy) { $this$shallowCopy.xa3_1 = generateUid($this$shallowCopy); return Unit_instance; } function ClazzLogEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ClazzLogEdit'); var tmp = this; Companion_getInstance_123(); var tmp0_elvis_lhs = savedStateHandle.ba('timeZone'); tmp.nv6_1 = tmp0_elvis_lhs == null ? 'UTC' : tmp0_elvis_lhs; this.ov6_1 = MutableStateFlow(new ClazzLogEditUiState(VOID, VOID, this.nv6_1)); this.pv6_1 = asStateFlow(this.ov6_1); var tmp_0 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.qv6_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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().gn5_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$slambda_0(this, null)); } protoOf(ClazzLogEditViewModel).vv7 = function (clazzLog) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ov6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.sv6_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.za3_1; var nextValue = prevValue.vv6(VOID, clazzLog, VOID, this.xqq(tmp, clazzLog == null ? null : clazzLog.za3_1, prevValue.uv6_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_36.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.dqk(); tmp_0.tqp_1 = launch(tmp_1, VOID, VOID, ClazzLogEditViewModel$onEntityChanged$slambda_0(commitDelay, clazzLog, this, key, serializer, null)); }; protoOf(ClazzLogEditViewModel).js3 = function () { var tmp0_elvis_lhs = this.ov6_1.t2().sv6_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var clazzLog = tmp; var errorMsg = !isDateSet(clazzLog.za3_1) ? strings_getInstance().hmj_1 : clazzLog.za3_1.c7(systemTimeInMillis()) > 0 ? strings_getInstance().ini_1 : null; if (!(errorMsg == null)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ov6_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.edit.ClazzLogEditViewModel.onClickSave.' call var nextValue = prevValue.vv6(VOID, VOID, VOID, this.mqk().eog(errorMsg)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } var clazzLogWithUid = shallowCopy_6(clazzLog, ClazzLogEditViewModel$onClickSave$lambda); var newClazzLogJson = this.m4r().r45(Companion_instance_36.n4r(), clazzLogWithUid); var tmp_0 = to('newclazzlog', newClazzLogJson); Companion_getInstance_123(); this.oqj_1.fp3('EditAttendance', mapOf([tmp_0, to('clazzUid', this.qv6_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.rv6_1 = fieldsEnabled; this.sv6_1 = clazzLog; this.tv6_1 = timeZone; this.uv6_1 = dateError; } protoOf(ClazzLogEditUiState).wv7 = function (fieldsEnabled, clazzLog, timeZone, dateError) { return new ClazzLogEditUiState(fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).vv6 = function (fieldsEnabled, clazzLog, timeZone, dateError, $super) { fieldsEnabled = fieldsEnabled === VOID ? this.rv6_1 : fieldsEnabled; clazzLog = clazzLog === VOID ? this.sv6_1 : clazzLog; timeZone = timeZone === VOID ? this.tv6_1 : timeZone; dateError = dateError === VOID ? this.uv6_1 : dateError; return $super === VOID ? this.wv7(fieldsEnabled, clazzLog, timeZone, dateError) : $super.wv7.call(this, fieldsEnabled, clazzLog, timeZone, dateError); }; protoOf(ClazzLogEditUiState).toString = function () { return 'ClazzLogEditUiState(fieldsEnabled=' + this.rv6_1 + ', clazzLog=' + this.sv6_1 + ', timeZone=' + this.tv6_1 + ', dateError=' + this.uv6_1 + ')'; }; protoOf(ClazzLogEditUiState).hashCode = function () { var result = getBooleanHashCode(this.rv6_1); result = imul(result, 31) + (this.sv6_1 == null ? 0 : this.sv6_1.hashCode()) | 0; result = imul(result, 31) + getStringHashCode(this.tv6_1) | 0; result = imul(result, 31) + (this.uv6_1 == null ? 0 : getStringHashCode(this.uv6_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.rv6_1 === tmp0_other_with_cast.rv6_1)) return false; if (!equals(this.sv6_1, tmp0_other_with_cast.sv6_1)) return false; if (!(this.tv6_1 === tmp0_other_with_cast.tv6_1)) return false; if (!(this.uv6_1 == tmp0_other_with_cast.uv6_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.za3_1; // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var tmp$ret$1 = b.za3_1; return compareValues(tmp, tmp$ret$1); } function ClazzLogEditAttendanceViewModel$slambda$slambda(this$0, $newClazzLogVal, resultContinuation) { this.fv8_1 = this$0; this.gv8_1 = $newClazzLogVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).iv8 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda).he = function (p1, $completion) { return this.iv8(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.hv8_1.m7e(); suspendResult = tmp_0.aa3(this.fv8_1.lv9_1, 8, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var dbLogList = suspendResult; var tmp_1; if (!(this.gv8_1 == null)) { var this_0 = plus(dbLogList, listOf_0(this.gv8_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).env = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda(this.fv8_1, this.gv8_1, completion); i.hv8_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.iv8(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).uv9 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_1).m78 = function ($completion) { return this.uv9($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).l78 = 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.uv9($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.gv9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel...' call var nextValue = prevValue.bva(VOID, VOID, it == null ? emptyList() : it, VOID, $hasEditPermission); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$slambda$slambda_3(this$0, resultContinuation) { this.kva_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.kva_1.iqk().o7d().c8d(this.kva_1.gv9_1.t2().mva().ya3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var timeZone = suspendResult; l$ret$1: do { var this_0 = this.kva_1.gv9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bva(VOID, VOID, VOID, VOID, VOID, timeZone == null ? 'UTC' : timeZone); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda$slambda_3(this.kva_1, completion); i.lva_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); 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.u9y_1; if (tmp_1 === 1) { count = count + 1 | 0; checkCountOverflow(count); } } tmp$ret$0 = count; } tmp.ea4_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.u9y_1; if (tmp_4 === 2) { count_0 = count_0 + 1 | 0; checkCountOverflow(count_0); } } tmp$ret$2 = count_0; } tmp_2.fa4_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.u9y_1; if (tmp_7 === 4) { count_1 = count_1 + 1 | 0; checkCountOverflow(count_1); } } tmp$ret$4 = count_1; } tmp_5.ga4_1 = tmp$ret$4; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this$0, $clazzLogsToSave, $attendanceRecordsToSave, resultContinuation) { this.vva_1 = this$0; this.wva_1 = $clazzLogsToSave; this.xva_1 = $attendanceRecordsToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.vva_1.iqk().m7e().da3(this.wva_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.vva_1.iqk().l7e().x9x(this.xva_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).env = function (it, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda(this.vva_1, this.wva_1, this.xva_1, completion); i.yva_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.dnv(it, $completion); }; l.$arity = 1; return l; } function _get_newClazzLog__zdra0r($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.iv9_1; newClazzLog$factory(); return this_0.t2(); } function _set_currentClazzLogIndex__l00dbq($this, value) { $this.mqj_1.qqf('activeIndex', toString_0(value)); } function _get_currentClazzLogIndex__yy31c2($this) { var tmp0_safe_receiver = $this.mqj_1.ba('activeIndex'); return tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); } function savePersonAndAttendanceRecords($this, clazzLogUid, records, $completion) { var tmp = new $savePersonAndAttendanceRecordsCOROUTINE$73($this, clazzLogUid, records, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function commitAttendanceRecordsToState($this, $completion) { var tmp = new $commitAttendanceRecordsToStateCOROUTINE$74($this, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_140() { this.bvc_1 = 'newclazzlog'; this.cvc_1 = 'EditAttendance'; this.dvc_1 = 'activeIndex'; this.evc_1 = 'log_'; this.fvc_1 = 'logsToSave'; } var Companion_instance_189; function Companion_getInstance_157() { return Companion_instance_189; } function sam$kotlin_Comparator$0_2(function_0) { this.gvc_1 = function_0; } protoOf(sam$kotlin_Comparator$0_2).pa = function (a, b) { return this.gvc_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.m4r().s45(Companion_instance_36.n4r(), tmp0_safe_receiver); } return tmp; }; } function ClazzLogEditAttendanceViewModel$slambda(this$0, resultContinuation) { this.pvc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ClazzLogEditAttendanceViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.qvc_1.o7f(); var tmp_1 = this.pvc_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.adk(tmp_1, this.pvc_1.lv9_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).env = function (db, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda(this.pvc_1, completion); i.qvc_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.vs5(db, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$slambda_1(this$0, resultContinuation) { this.zvc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.bvd_1 = _get_newClazzLog__zdra0r(this.zvc_1); this.hd_1 = 1; var tmp_0 = this.zvc_1.gqk().o7f(); var tmp_1 = this.zvc_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.adk(tmp_1, this.zvc_1.lv9_1, new Long(64, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cvd_1 = suspendResult; this.hd_1 = 2; var tmp_2 = ListSerializer(Companion_instance_36.n4r()); var tmp_3 = ClazzLogEditAttendanceViewModel$slambda$slambda_0(this.zvc_1, this.bvd_1, null); var tmp_4 = ClazzLogEditAttendanceViewModel$slambda$slambda_2(null); suspendResult = this.zvc_1.wqk(tmp_2, VOID, VOID, tmp_3, tmp_4, ClazzLogEditAttendanceViewModel$slambda$lambda(this.zvc_1, this.cvd_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: launch(this.avd_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda$slambda_4(this.zvc_1, null)); var currentClazzLogIndexVal = _get_currentClazzLogIndex__yy31c2(this.zvc_1); var tmp_5; if (!(currentClazzLogIndexVal == null)) { tmp_5 = currentClazzLogIndexVal; } else if (!(this.bvd_1 == null)) { var tmp0_elvis_lhs = this.zvc_1.gv9_1.t2().dvd(this.bvd_1.xa3_1); tmp_5 = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs; } else if (!this.zvc_1.uqp_1.equals(new Long(0, 0))) { var tmp1_elvis_lhs = this.zvc_1.gv9_1.t2().dvd(this.zvc_1.uqp_1); tmp_5 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; } else { tmp_5 = this.zvc_1.gv9_1.t2().xv9_1.u() - 1 | 0; } var startIndex = tmp_5; this.zvc_1.evd(this.zvc_1.gv9_1.t2().xv9_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).v1m = function ($this$launchIfHasPermission, completion) { var i = new ClazzLogEditAttendanceViewModel$slambda_1(this.zvc_1, completion); i.avd_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda($clazzLog, this$0, resultContinuation) { this.nvd_1 = $clazzLog; this.ovd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.qvd_1 = 'log_' + this.nvd_1.xa3_1.toString(); this.hd_1 = 1; suspendResult = this.ovd_1.rqk(this.ovd_1.mqj_1, this.qvd_1, ListSerializer(Companion_instance_38.n4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.rvd_1 = suspendResult; if (this.rvd_1 == null) { this.hd_1 = 2; suspendResult = this.ovd_1.iqk().l7e().w9x(this.nvd_1.ya3_1, this.nvd_1.xa3_1, this.nvd_1.za3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.svd_1 = this.rvd_1; this.hd_1 = 8; continue $sm; } case 2: this.tvd_1 = suspendResult; var tmp_0 = this; tmp_0.uvd_1 = this.tvd_1; var tmp_1 = this; tmp_1.vvd_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.tvd_1, 10)); this.wvd_1 = this.uvd_1.w(); this.hd_1 = 3; continue $sm; case 3: if (!this.wvd_1.f()) { this.hd_1 = 6; continue $sm; } this.xvd_1 = this.wvd_1.e(); var tmp_2 = this; tmp_2.yvd_1 = this.xvd_1; if (this.yvd_1.o9z_1 == null) { this.ave_1 = this.yvd_1.m9z_1; var tmp_3 = this; tmp_3.bve_1 = new ClazzLogAttendanceRecord(); var tmp_4 = this; tmp_4.cve_1 = this.bve_1; this.hd_1 = 4; var tmp_5 = get_doorPrimaryKeyManager(this.ovd_1.gqk()); suspendResult = tmp_5.o62(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_6 = this; tmp_6.zvd_1 = this.yvd_1; this.hd_1 = 5; continue $sm; } case 4: this.dve_1 = suspendResult; this.cve_1.r9y_1 = this.dve_1; var tmp_7 = this.cve_1; var tmp0_safe_receiver = this.yvd_1.m9z_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f96_1; tmp_7.t9y_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.cve_1.s9y_1 = this.nvd_1.xa3_1; this.eve_1 = this.bve_1; this.fve_1 = this.yvd_1.n9z_1; this.zvd_1 = new PersonAndClazzLogAttendanceRecord(this.ave_1, this.fve_1, this.eve_1); this.hd_1 = 5; continue $sm; case 5: this.gve_1 = this.zvd_1; this.vvd_1.i1(this.gve_1); this.hd_1 = 3; continue $sm; case 6: this.hve_1 = this.vvd_1; var tmp_8 = this; tmp_8.ive_1 = this.hve_1; this.hd_1 = 7; suspendResult = savePersonAndAttendanceRecords(this.ovd_1, this.nvd_1.xa3_1, this.ive_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.svd_1 = this.hve_1; this.hd_1 = 8; continue $sm; case 8: var personAndAttendanceRecords = this.svd_1; l$ret$1: do { var this_0 = this.ovd_1.gv9_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bva(personAndAttendanceRecords, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ovd_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_9; if (!prevValue_0.uq2_1.xq1_1) { var tmp_10 = this.ovd_1.gv9_1.t2().zv9_1; var tmp_11 = this.ovd_1.mqk().eog(strings_getInstance().tmy_1); tmp_9 = prevValue_0.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(tmp_10, tmp_11, VOID, ClazzLogEditAttendanceViewModel$onClickSave$ref(this.ovd_1))); } else { tmp_9 = prevValue_0; } var nextValue_0 = tmp_9; if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda(this.nvd_1, this.ovd_1, completion); i.pvd_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda($record) { return function (it) { var tmp0_safe_receiver = it.m9z_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f96_1; var tmp1_safe_receiver = $record.m9z_1; return equals(tmp, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.f96_1); }; } function ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this$0, resultContinuation) { this.rve_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.rve_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).v1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda(this.rve_1, completion); i.sve_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$lambda($status) { return function ($this$shallowCopy) { $this$shallowCopy.u9y_1 = $status; return Unit_instance; }; } function ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this$0, resultContinuation) { this.bvf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.bvf_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).v1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda(this.bvf_1, completion); i.cvf_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ClazzLogEditAttendanceViewModel$onClickSave$slambda(this$0, resultContinuation) { this.lvf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogEditAttendanceViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nvf_1 = this.lvf_1.kv9_1; var tmp_1 = this; tmp_1.ovf_1 = null; this.hd_1 = 2; suspendResult = this.nvf_1.a24(this.ovf_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.qvf_1 = ArrayList_init_$Create$(); var tmp_3 = this; tmp_3.rvf_1 = ArrayList_init_$Create$(); this.hd_1 = 4; suspendResult = this.lvf_1.rqk(this.lvf_1.mqj_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.svf_1 = suspendResult; this.tvf_1 = this.svf_1 == null ? emptyList() : this.svf_1; var tmp_4 = this; tmp_4.uvf_1 = this.tvf_1; this.vvf_1 = this.uvf_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.vvf_1.f()) { this.hd_1 = 7; continue $sm; } this.wvf_1 = this.vvf_1.e(); var tmp_5 = this; tmp_5.xvf_1 = this.wvf_1; var tmp_6 = this; var tmp$ret$0; l$ret$1: do { var tmp0_iterator = this.lvf_1.gv9_1.t2().xv9_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (element.xa3_1.equals(this.xvf_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.yvf_1 = tmp$ret$0; this.hd_1 = 6; suspendResult = this.lvf_1.rqk(this.lvf_1.mqj_1, 'log_' + this.xvf_1.toString(), ListSerializer(Companion_instance_38.n4r()), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.zvf_1 = suspendResult; var tmp_7 = this; var tmp_8; if (this.zvf_1 == null) { tmp_8 = null; } else { var this_0 = this.zvf_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.o9z_1; if (tmp0_safe_receiver == null) null; else { destination.i1(tmp0_safe_receiver); } } tmp_8 = destination; } tmp_7.avg_1 = tmp_8; this.bvg_1 = this.avg_1 == null ? emptyList() : this.avg_1; var this_1 = this.qvf_1; var element_1 = shallowCopy_6(this.yvf_1, ClazzLogEditAttendanceViewModel$onClickSave$slambda$lambda(this.bvg_1)); this_1.i1(element_1); var this_2 = this.rvf_1; var elements = this.bvg_1; addAll(this_2, elements); this.hd_1 = 5; continue $sm; case 7: this.hd_1 = 8; var tmp_9 = this.lvf_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_9, VOID, ClazzLogEditAttendanceViewModel$onClickSave$slambda$slambda_0(this.lvf_1, this.qvf_1, this.rvf_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 8: this.pvf_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 9: this.id_1 = 11; this.nvf_1.l23(this.ovf_1); if (!(_get_newClazzLog__zdra0r(this.lvf_1) == null)) { this.lvf_1.oqj_1.cq6('ClazzLogEdit', true); } else { this.lvf_1.xqp(this.lvf_1.gv9_1.t2().mva()); } return Unit_instance; case 10: this.id_1 = 11; var t = this.kd_1; this.nvf_1.l23(this.ovf_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).v1m = function ($this$launch, completion) { var i = new ClazzLogEditAttendanceViewModel$onClickSave$slambda(this.lvf_1, completion); i.mvf_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $savePersonAndAttendanceRecordsCOROUTINE$73(_this__u8e3s4, clazzLogUid, records, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.hvb_1 = _this__u8e3s4; this.ivb_1 = clazzLogUid; this.jvb_1 = records; } protoOf($savePersonAndAttendanceRecordsCOROUTINE$73).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 5; this.kvb_1 = 'log_' + this.ivb_1.toString(); this.hd_1 = 1; suspendResult = this.hvb_1.sqk(this.hvb_1.mqj_1, this.kvb_1, ListSerializer(Companion_instance_38.n4r()), this.jvb_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.hvb_1.rqk(this.hvb_1.mqj_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.lvb_1 = suspendResult; this.mvb_1 = this.lvb_1 == null ? null : toSet(this.lvb_1); this.nvb_1 = this.mvb_1 == null ? emptySet() : this.mvb_1; if (!this.nvb_1.a1(this.ivb_1)) { this.ovb_1 = plus_2(this.nvb_1, this.ivb_1); this.hd_1 = 3; suspendResult = this.hvb_1.sqk(this.hvb_1.mqj_1, 'logsToSave', ListSerializer(serializer_1(Companion_getInstance_2())), toList(this.ovb_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$74(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.xvb_1 = _this__u8e3s4; } protoOf($commitAttendanceRecordsToStateCOROUTINE$74).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.yvb_1 = this.xvb_1.kv9_1; var tmp_1 = this; tmp_1.zvb_1 = null; this.hd_1 = 1; suspendResult = this.yvb_1.a24(this.zvb_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.xvb_1, this.xvb_1.gv9_1.t2().mva().xa3_1, this.xvb_1.gv9_1.t2().vv9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.avc_1 = suspendResult; this.id_1 = 6; this.hd_1 = 4; continue $sm; case 4: this.id_1 = 6; this.yvb_1.l23(this.zvb_1); return Unit_instance; case 5: this.id_1 = 6; var t = this.kd_1; this.yvb_1.l23(this.zvb_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.gv9_1 = MutableStateFlow(new ClazzLogEditAttendanceUiState()); this.hv9_1 = asStateFlow(this.gv9_1); var tmp = this; tmp.iv9_1 = lazy_0(ClazzLogEditAttendanceViewModel$newClazzLog$delegate$lambda(savedStateHandle, this)); this.jv9_1 = null; this.kv9_1 = Mutex(); var tmp_0 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.lv9_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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().imq_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = ClazzLogEditAttendanceViewModel$slambda_0(this, null); this.yqk(tmp_1, VOID, VOID, ClazzLogEditAttendanceViewModel$slambda_2(this, null)); } protoOf(ClazzLogEditAttendanceViewModel).evd = function (clazzLog, forceLoad) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.indexOfFirst' call var index = 0; var tmp0_iterator = this.gv9_1.t2().xv9_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onChangeClazzLog.' call if (item.xa3_1.equals(clazzLog.xa3_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.gv9_1.t2().wv9_1 : false) return Unit_instance; $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gv9_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.xv9_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.xa3_1.equals(clazzLog.xa3_1)) { tmp$ret$3 = index_0; break $l$block_0; } index_0 = index_0 + 1 | 0; } tmp$ret$3 = -1; } var nextValue = prevValue.bva(VOID, tmp$ret$3, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block_1; } } } var tmp0_safe_receiver = this.jv9_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.dqk(); tmp.jv9_1 = launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onChangeClazzLog$slambda_0(clazzLog, this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).cvg = function (clazzLog, forceLoad, $super) { forceLoad = forceLoad === VOID ? false : forceLoad; var tmp; if ($super === VOID) { this.evd(clazzLog, forceLoad); tmp = Unit_instance; } else { tmp = $super.evd.call(this, clazzLog, forceLoad); } return tmp; }; protoOf(ClazzLogEditAttendanceViewModel).dvg = function (record) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gv9_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceViewModel.onClazzLogAttendanceChanged.' call var nextValue = prevValue.bva(replace_0(prevValue.vv9_1, record, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$lambda(record))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.dqk(); launch(tmp, VOID, VOID, ClazzLogEditAttendanceViewModel$onClazzLogAttendanceChanged$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).evg = function (status) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.gv9_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.vv9_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.o9z_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.rk5(VOID, VOID, tmp); destination.i1(tmp$ret$0); } var nextValue = prevValue.bva(destination); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, ClazzLogEditAttendanceViewModel$onClickMarkAll$slambda_0(this, null)); }; protoOf(ClazzLogEditAttendanceViewModel).js3 = function () { var tmp = this.dqk(); 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.vv9_1 = clazzLogAttendanceRecordList; this.wv9_1 = currentClazzLogIndex; this.xv9_1 = clazzLogsList; this.yv9_1 = fieldsEnabled; this.zv9_1 = canEdit; this.ava_1 = timeZone; } protoOf(ClazzLogEditAttendanceUiState).dvd = 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.xv9_1.w(); while (tmp0_iterator.f()) { var item = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.clazzlog.editattendance.ClazzLogEditAttendanceUiState.indexOfClazzLogUid.' call if (item.xa3_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).mva = function () { return this.xv9_1.v(this.wv9_1); }; protoOf(ClazzLogEditAttendanceUiState).fvg = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) { return new ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).bva = function (clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone, $super) { clazzLogAttendanceRecordList = clazzLogAttendanceRecordList === VOID ? this.vv9_1 : clazzLogAttendanceRecordList; currentClazzLogIndex = currentClazzLogIndex === VOID ? this.wv9_1 : currentClazzLogIndex; clazzLogsList = clazzLogsList === VOID ? this.xv9_1 : clazzLogsList; fieldsEnabled = fieldsEnabled === VOID ? this.yv9_1 : fieldsEnabled; canEdit = canEdit === VOID ? this.zv9_1 : canEdit; timeZone = timeZone === VOID ? this.ava_1 : timeZone; return $super === VOID ? this.fvg(clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone) : $super.fvg.call(this, clazzLogAttendanceRecordList, currentClazzLogIndex, clazzLogsList, fieldsEnabled, canEdit, timeZone); }; protoOf(ClazzLogEditAttendanceUiState).toString = function () { return 'ClazzLogEditAttendanceUiState(clazzLogAttendanceRecordList=' + this.vv9_1 + ', currentClazzLogIndex=' + this.wv9_1 + ', clazzLogsList=' + this.xv9_1 + ', fieldsEnabled=' + this.yv9_1 + ', canEdit=' + this.zv9_1 + ', timeZone=' + this.ava_1 + ')'; }; protoOf(ClazzLogEditAttendanceUiState).hashCode = function () { var result = hashCode(this.vv9_1); result = imul(result, 31) + this.wv9_1 | 0; result = imul(result, 31) + hashCode(this.xv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.yv9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.zv9_1) | 0; result = imul(result, 31) + getStringHashCode(this.ava_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.vv9_1, tmp0_other_with_cast.vv9_1)) return false; if (!(this.wv9_1 === tmp0_other_with_cast.wv9_1)) return false; if (!equals(this.xv9_1, tmp0_other_with_cast.xv9_1)) return false; if (!(this.yv9_1 === tmp0_other_with_cast.yv9_1)) return false; if (!(this.zv9_1 === tmp0_other_with_cast.zv9_1)) return false; if (!(this.ava_1 === tmp0_other_with_cast.ava_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().mnk_1; break; case 4: tmp = strings_getInstance().nnk_1; break; case 3: tmp = strings_getInstance().onk_1; break; case 2: tmp = strings_getInstance().pnk_1; break; case 1: tmp = strings_getInstance().qnk_1; break; case 0: tmp = strings_getInstance().rnk_1; break; default: noWhenBranchMatchedException(); break; } return tmp; } function get_contentTypeStringResource(_this__u8e3s4) { var tmp; if (!_this__u8e3s4.tav_1) { tmp = strings_getInstance().tn8_1; } else { var tmp0_subject = _this__u8e3s4.yav_1; var tmp_0; if (tmp0_subject === 1) { tmp_0 = strings_getInstance().nmi_1; } else { if (tmp0_subject === 2) { tmp_0 = strings_getInstance().lmi_1; } else { if (tmp0_subject === 3) { tmp_0 = strings_getInstance().mmi_1; } else { if (tmp0_subject === 4) { tmp_0 = strings_getInstance().yn5_1; } else { if (tmp0_subject === 5) { tmp_0 = strings_getInstance().qmi_1; } else { if (tmp0_subject === 6) { tmp_0 = strings_getInstance().omi_1; } else { if (tmp0_subject === 7) { tmp_0 = strings_getInstance().pmi_1; } else { tmp_0 = strings_getInstance().tmd_1; } } } } } } } tmp = tmp_0; } return tmp; } function Companion_141() { Companion_instance_190 = this; this.gvg_1 = 'ContentEntry'; var tmp = this; Companion_getInstance_123(); Companion_getInstance_123(); Companion_getInstance_123(); Companion_getInstance_123(); tmp.hvg_1 = listOf(['entityUid', 'clazzUid', 'parentUid', 'courseBlockUid']); } var Companion_instance_190; function Companion_getInstance_158() { if (Companion_instance_190 == null) new Companion_141(); return Companion_instance_190; } function ContentEntryDetailViewModel(di, savedStateHandle) { Companion_getInstance_158(); 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.aql(this_0, Companion_getInstance_158().hvg_1); var tmp$ret$2 = this_0.f3(); var tmp_0 = new TabItem('ContentEntryDetailOverviewView', tmp$ret$2, this.mqk().eog(strings_getInstance().nn0_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.aql(this_1, Companion_getInstance_158().hvg_1); var tmp$ret$5 = this_1.f3(); tmp.evh_1 = MutableStateFlow(new ContentEntryDetailUiState(listOf([tmp_0, new TabItem('ContentEntryDetailAttemptsPersonList', tmp$ret$5, this.mqk().eog(strings_getInstance().xmi_1))]))); this.fvh_1 = asStateFlow(this.evh_1); } function ContentEntryDetailUiState(tabs) { tabs = tabs === VOID ? emptyList() : tabs; this.gvh_1 = tabs; } protoOf(ContentEntryDetailUiState).toString = function () { return 'ContentEntryDetailUiState(tabs=' + this.gvh_1 + ')'; }; protoOf(ContentEntryDetailUiState).hashCode = function () { return hashCode(this.gvh_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.gvh_1, tmp0_other_with_cast.gvh_1)) return false; return true; }; function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.pvh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda).rvh = function (contentEntry, $completion) { var tmp = this.svh(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.rvh((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.pvh_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.qvh_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fav_1; var nextValue = prevValue.bq3(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.y1k(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).svh = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda(this.pvh_1, completion); i.qvh_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.rvh(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this$0, resultContinuation) { this.bvi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.bvi_1.iqk().v7d().pau(this.bvi_1.cvj_1); var tmp_1 = ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda$slambda_0(this.bvi_1, null); suspendResult = tmp_0.a1c(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).l78 = function (completion) { return new ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda(this.bvi_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.j87($completion); }; l.$arity = 0; return l; } function buildSortOptions($this, db, $completion) { var tmp = new $buildSortOptionsCOROUTINE$75($this, db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_142() { this.ovj_1 = 'ContentEntryDetailAttemptsPersonList'; } var Companion_instance_191; function Companion_getInstance_159() { return Companion_instance_191; } function sam$kotlinx_coroutines_flow_FlowCollector$0_22(function_0) { this.pvj_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_22).t1d = function (value, $completion) { return this.pvj_1(value, $completion); }; function ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this$0) { return function () { return this$0.iqk().j7e().fja(this$0.cvj_1, this$0.eqk(), toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_1), this$0.hqs_1.t2().svj_1.gq9_1); }; } function ContentEntryDetailAttemptsPersonListViewModel$slambda(this$0, resultContinuation) { this.cvk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.evk_1 = filterNotNull(listOf([this.cvk_1.gqk(), this.cvk_1.hqk()])); this.fvk_1 = this.evk_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.fvk_1.f()) { this.hd_1 = 3; continue $sm; } this.gvk_1 = this.fvk_1.e(); var tmp_1 = this; tmp_1.hvk_1 = this.gvk_1; this.hd_1 = 2; suspendResult = buildSortOptions(this.cvk_1, this.hvk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var sortOptions = suspendResult; l$ret$1: do { var this_0 = this.cvk_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ivk(VOID, sortOptions); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda(this.cvk_1, completion); i.dvk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this$0, resultContinuation) { this.rvk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsPersonListViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.rvk_1.hqs_1, ContentEntryDetailAttemptsPersonListViewModel$slambda$slambda_0(this.rvk_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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsPersonListViewModel$slambda_1(this.rvk_1, completion); i.svk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $buildSortOptionsCOROUTINE$75(_this__u8e3s4, db, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.mvj_1 = _this__u8e3s4; this.nvj_1 = db; } protoOf($buildSortOptionsCOROUTINE$75).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.nvj_1.j7e().jja(this.mvj_1.cvj_1, this.mvj_1.eqk(), 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.njb_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.yja_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().omf_1; var tmp_4 = new SortOrderOption(tmp_3, 1, true); var tmp_5 = strings_getInstance().omf_1; var tmp_6 = new SortOrderOption(tmp_5, 2, false); var tmp_7 = strings_getInstance().nmf_1; var tmp_8 = new SortOrderOption(tmp_7, 3, true); var tmp_9 = strings_getInstance().nmf_1; this_0.m1(listOf([tmp_4, tmp_6, tmp_8, new SortOrderOption(tmp_9, 4, false)])); if (hasScoreData) { var tmp_10 = strings_getInstance().qmf_1; var tmp_11 = new SortOrderOption(tmp_10, 5, true); var tmp_12 = strings_getInstance().qmf_1; this_0.m1(listOf([tmp_11, new SortOrderOption(tmp_12, 6, false)])); } if (hasProgressData) { var tmp_13 = strings_getInstance().jnm_1; var tmp_14 = new SortOrderOption(tmp_13, 7, true); var tmp_15 = strings_getInstance().jnm_1; this_0.m1(listOf([tmp_14, new SortOrderOption(tmp_15, 8, false)])); } var tmp_16 = strings_getInstance().vng_1; var tmp_17 = new SortOrderOption(tmp_16, 10, null); var tmp_18 = strings_getInstance().pmf_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_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.cvj_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.dvj_1 = ContentEntryDetailAttemptsPersonListViewModel$attemptsPersonListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.qqt()); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hqs_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.' call var nextValue_0 = prevValue_0.ivk(this.dvj_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_0(this, null)); var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsPersonListViewModel$slambda_2(this, null)); } protoOf(ContentEntryDetailAttemptsPersonListViewModel).tvk = function (entry) { Companion_getInstance_114(); var tmp = to('personUid', entry.ijc_1.f96_1.toString()); Companion_getInstance_114(); this.oqj_1.fp3('ContentEntryDetailAttemptsSessionList', mapOf([tmp, to('entryid', this.cvj_1.toString())])); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).cqt = function () { }; protoOf(ContentEntryDetailAttemptsPersonListViewModel).zss = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsPersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.ivk(VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(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().vng_1; var tmp_2 = new SortOrderOption(tmp_1, 10, null); var tmp_3 = strings_getInstance().pmf_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.qvj_1 = attemptsPersonList; this.rvj_1 = sortOptions; this.svj_1 = sortOption; this.tvj_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsPersonListUiState).uvk = function (attemptsPersonList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).ivk = function (attemptsPersonList, sortOptions, sortOption, showSortOptions, $super) { attemptsPersonList = attemptsPersonList === VOID ? this.qvj_1 : attemptsPersonList; sortOptions = sortOptions === VOID ? this.rvj_1 : sortOptions; sortOption = sortOption === VOID ? this.svj_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.tvj_1 : showSortOptions; return $super === VOID ? this.uvk(attemptsPersonList, sortOptions, sortOption, showSortOptions) : $super.uvk.call(this, attemptsPersonList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsPersonListUiState).toString = function () { return 'ContentEntryDetailAttemptsPersonListUiState(attemptsPersonList=' + this.qvj_1 + ', sortOptions=' + this.rvj_1 + ', sortOption=' + this.svj_1 + ', showSortOptions=' + this.tvj_1 + ')'; }; protoOf(ContentEntryDetailAttemptsPersonListUiState).hashCode = function () { var result = hashCode(this.qvj_1); result = imul(result, 31) + hashCode(this.rvj_1) | 0; result = imul(result, 31) + this.svj_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.tvj_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.qvj_1, tmp0_other_with_cast.qvj_1)) return false; if (!equals(this.rvj_1, tmp0_other_with_cast.rvj_1)) return false; if (!this.svj_1.equals(tmp0_other_with_cast.svj_1)) return false; if (!(this.tvj_1 === tmp0_other_with_cast.tvj_1)) return false; return true; }; function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this$0, resultContinuation) { this.dvl_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda).fvl = function ($this$async, $completion) { var tmp = this.v1m($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.fvl((!(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.dvl_1.iqk().n7d().rg2(this.dvl_1.hvm_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).v1m = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda(this.dvl_1, completion); i.evl_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.fvl($this$async, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.rvm_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1).tvm = function ($this$async, $completion) { var tmp = this.v1m($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.tvm((!(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.rvm_1.iqk().v7d().pau(this.rvm_1.gvm_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).v1m = function ($this$async, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_1(this.rvm_1, completion); i.svm_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.tvm($this$async, $completion); }; l.$arity = 1; return l; } function Companion_143() { this.uvm_1 = 'ContentEntryDetailAttemptsSessionList'; } var Companion_instance_192; function Companion_getInstance_160() { return Companion_instance_192; } function ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this$0) { return function () { return this$0.iqk().j7e().gja(this$0.gvm_1, this$0.hvm_1, this$0.eqk(), this$0.hqs_1.t2().xvm_1.gq9_1); }; } function ContentEntryDetailAttemptsSessionListViewModel$slambda(this$0, resultContinuation) { this.hvn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.jvn_1 = async(this.ivn_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_0(this.hvn_1, null)); var tmp_1 = this; tmp_1.kvn_1 = async(this.ivn_1, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda$slambda_2(this.hvn_1, null)); this.hd_1 = 1; suspendResult = this.jvn_1.nv(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.lvn_1 = suspendResult; this.hd_1 = 2; suspendResult = this.kvn_1.nv(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var contentEntry = suspendResult; var tmp0_safe_receiver = this.lvn_1; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag7_1; var tmp1_safe_receiver = this.lvn_1; var tmp_3 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.bg7_1; var tmp3_elvis_lhs = contentEntry == null ? null : contentEntry.fav_1; var combinedTitle = '' + tmp_2 + ' ' + tmp_3 + ' - ' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs); l$ret$1: do { var this_0 = this.hvn_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(VOID, VOID, combinedTitle); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsSessionListViewModel$slambda(this.hvn_1, completion); i.ivn_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.u1m($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_114(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.gvm_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_114(); 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.hvm_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.ivm_1 = ContentEntryDetailAttemptsSessionListViewModel$attemptsSessionListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.' call var nextValue = prevValue.mvn(this.ivm_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, ContentEntryDetailAttemptsSessionListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsSessionListViewModel).nvn = function (entry) { Companion_getInstance_114(); var tmp = to('personUid', this.hvm_1.toString()); Companion_getInstance_114(); var tmp_0 = to('entryid', this.gvm_1.toString()); Companion_getInstance_114(); var tmp_1 = to('contextRegistrationIdHi', entry.sjd_1.toString()); Companion_getInstance_114(); this.oqj_1.fp3('ContentEntryDetailAttemptsStatementList', mapOf([tmp, tmp_0, tmp_1, to('contextRegistrationIdLo', entry.tjd_1.toString())])); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).zss = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsSessionListViewModel.onSortOrderChanged.' call var tmp0_attemptsSessionList = this.ivm_1; var nextValue = prevValue.mvn(tmp0_attemptsSessionList, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).bqt = function (searchText) { }; protoOf(ContentEntryDetailAttemptsSessionListViewModel).cqt = 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().vng_1; var tmp_2 = new SortOrderOption(tmp_1, 1, null); var tmp_3 = strings_getInstance().pmf_1; var tmp_4 = new SortOrderOption(tmp_3, 2, null); var tmp_5 = strings_getInstance().qmf_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().qmf_1; var tmp_8 = new SortOrderOption(tmp_7, 4, false); var tmp_9 = strings_getInstance().rmf_1; var tmp_10 = new SortOrderOption(tmp_9, 5, true); var tmp_11 = strings_getInstance().rmf_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.vvm_1 = attemptsSessionList; this.wvm_1 = sortOptions; this.xvm_1 = sortOption; this.yvm_1 = showSortOptions; } protoOf(ContentEntryDetailAttemptsSessionListUiState).ovn = function (attemptsSessionList, sortOptions, sortOption, showSortOptions) { return new ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).mvn = function (attemptsSessionList, sortOptions, sortOption, showSortOptions, $super) { attemptsSessionList = attemptsSessionList === VOID ? this.vvm_1 : attemptsSessionList; sortOptions = sortOptions === VOID ? this.wvm_1 : sortOptions; sortOption = sortOption === VOID ? this.xvm_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.yvm_1 : showSortOptions; return $super === VOID ? this.ovn(attemptsSessionList, sortOptions, sortOption, showSortOptions) : $super.ovn.call(this, attemptsSessionList, sortOptions, sortOption, showSortOptions); }; protoOf(ContentEntryDetailAttemptsSessionListUiState).toString = function () { return 'ContentEntryDetailAttemptsSessionListUiState(attemptsSessionList=' + this.vvm_1 + ', sortOptions=' + this.wvm_1 + ', sortOption=' + this.xvm_1 + ', showSortOptions=' + this.yvm_1 + ')'; }; protoOf(ContentEntryDetailAttemptsSessionListUiState).hashCode = function () { var result = hashCode(this.vvm_1); result = imul(result, 31) + hashCode(this.wvm_1) | 0; result = imul(result, 31) + this.xvm_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.yvm_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.vvm_1, tmp0_other_with_cast.vvm_1)) return false; if (!equals(this.wvm_1, tmp0_other_with_cast.wvm_1)) return false; if (!this.xvm_1.equals(tmp0_other_with_cast.xvm_1)) return false; if (!(this.yvm_1 === tmp0_other_with_cast.yvm_1)) return false; return true; }; function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.xvn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda).zvn = function (verbs, $completion) { var tmp = this.avo(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.zvn((!(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.xvn_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.hvo(VOID, VOID, VOID, VOID, this.yvn_1); if (this_0.y1k(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).avo = function (verbs, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda(this.xvn_1, completion); i.yvn_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.zvn(verbs, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.qvo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1).rvh = function (contentEntry, $completion) { var tmp = this.svh(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.rvh((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.qvo_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.rvo_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fav_1; var nextValue = prevValue.bq3(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_0.y1k(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).svh = function (contentEntry, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_1(this.qvo_1, completion); i.rvo_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.rvh(contentEntry, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.avp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.avp_1.iqk().j7e().ija(this.avp_1.dvq_1, this.avp_1.evq_1, this.avp_1.cvq_1, this.avp_1.fvq_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_0(this.avp_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda(this.avp_1, completion); i.bvp_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.qvq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.qvq_1.iqk().v7d().pau(this.qvq_1.fvq_1); var tmp_1 = ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda$slambda_2(this.qvq_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_1(this.qvq_1, completion); i.rvq_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.avr_1 = $this_launch; this.bvr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.avr_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_0(this.bvr_1, null)); launch(this.avr_1, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda$slambda_2(this.bvr_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).l78 = function (completion) { return new ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda(this.avr_1, this.bvr_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.j87($completion); }; l.$arity = 0; return l; } function _get_formatStatementResponseUseCase__m72qwj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gvq_1; formatStatementResponseUseCase$factory_0(); return this_0.t2(); } function Companion_144() { this.cvr_1 = 'ContentEntryDetailAttemptsStatementList'; } var Companion_instance_193; function Companion_getInstance_161() { return Companion_instance_193; } function sam$kotlinx_coroutines_flow_FlowCollector$0_23(function_0) { this.dvr_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_23).t1d = function (value, $completion) { return this.dvr_1(value, $completion); }; function ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this$0) { return function () { return this$0.iqk().j7e().hja(this$0.dvq_1, this$0.evq_1, this$0.eqk(), this$0.cvq_1, this$0.fvq_1, toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_1), this$0.hqs_1.t2().dvo_1.gq9_1, this$0.hqs_1.t2().gvo_1); }; } function ContentEntryDetailAttemptsStatementListViewModel$slambda(this$0, resultContinuation) { this.mvr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.mvr_1.hqs_1, ContentEntryDetailAttemptsStatementListViewModel$slambda$slambda_0(this.nvr_1, this.mvr_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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailAttemptsStatementListViewModel$slambda(this.mvr_1, completion); i.nvr_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.u1m($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_114(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.cvq_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_114(); 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.dvq_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; Companion_getInstance_114(); 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.evq_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_2 = this; Companion_getInstance_114(); 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.fvq_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.gvq_1 = Instance(this_0, tmp$ret$0, null).a5d(this, formatStatementResponseUseCase$factory()); var tmp_5 = this; tmp_5.hvq_1 = ContentEntryDetailAttemptsStatementListViewModel$attemptsStatementListPagingSource$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hqs_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue = prevValue.hvo(this.hvq_1); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqj_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.' call var nextValue_0 = prevValue_0.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.pqt(true)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.dqk(); launch(tmp_6, VOID, VOID, ContentEntryDetailAttemptsStatementListViewModel$slambda_0(this, null)); } protoOf(ContentEntryDetailAttemptsStatementListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).zss = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onSortOrderChanged.' call var tmp0_attemptsStatementList = this.hvq_1; var nextValue = prevValue.hvo(tmp0_attemptsStatementList, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).ovr = function (verbEntity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailattemptlisttab.ContentEntryDetailAttemptsStatementListViewModel.onVerbFilterToggled.' call var nextValue = prevValue.hvo(VOID, VOID, VOID, VOID, VOID, toggle(prevValue.gvo_1, verbEntity.jjf_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).cqt = function () { }; protoOf(ContentEntryDetailAttemptsStatementListViewModel).pvr = function (statementEntity) { return _get_formatStatementResponseUseCase__m72qwj(this).cpu(statementEntity.djf_1, statementEntity.gjf_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().tmf_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().tmf_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().qmf_1; var tmp_6 = new SortOrderOption(tmp_5, 3, false); var tmp_7 = strings_getInstance().qmf_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.bvo_1 = attemptsStatementList; this.cvo_1 = sortOptions; this.dvo_1 = sortOption; this.evo_1 = showSortOptions; this.fvo_1 = availableVerbs; this.gvo_1 = deselectedVerbUids; } protoOf(ContentEntryDetailAttemptsStatementListUiState).qvr = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) { return new ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).hvo = function (attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids, $super) { attemptsStatementList = attemptsStatementList === VOID ? this.bvo_1 : attemptsStatementList; sortOptions = sortOptions === VOID ? this.cvo_1 : sortOptions; sortOption = sortOption === VOID ? this.dvo_1 : sortOption; showSortOptions = showSortOptions === VOID ? this.evo_1 : showSortOptions; availableVerbs = availableVerbs === VOID ? this.fvo_1 : availableVerbs; deselectedVerbUids = deselectedVerbUids === VOID ? this.gvo_1 : deselectedVerbUids; return $super === VOID ? this.qvr(attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids) : $super.qvr.call(this, attemptsStatementList, sortOptions, sortOption, showSortOptions, availableVerbs, deselectedVerbUids); }; protoOf(ContentEntryDetailAttemptsStatementListUiState).toString = function () { return 'ContentEntryDetailAttemptsStatementListUiState(attemptsStatementList=' + this.bvo_1 + ', sortOptions=' + this.cvo_1 + ', sortOption=' + this.dvo_1 + ', showSortOptions=' + this.evo_1 + ', availableVerbs=' + this.fvo_1 + ', deselectedVerbUids=' + this.gvo_1 + ')'; }; protoOf(ContentEntryDetailAttemptsStatementListUiState).hashCode = function () { var result = hashCode(this.bvo_1); result = imul(result, 31) + hashCode(this.cvo_1) | 0; result = imul(result, 31) + this.dvo_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.evo_1) | 0; result = imul(result, 31) + hashCode(this.fvo_1) | 0; result = imul(result, 31) + hashCode(this.gvo_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.bvo_1, tmp0_other_with_cast.bvo_1)) return false; if (!equals(this.cvo_1, tmp0_other_with_cast.cvo_1)) return false; if (!this.dvo_1.equals(tmp0_other_with_cast.dvo_1)) return false; if (!(this.evo_1 === tmp0_other_with_cast.evo_1)) return false; if (!equals(this.fvo_1, tmp0_other_with_cast.fvo_1)) return false; if (!equals(this.gvo_1, tmp0_other_with_cast.gvo_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.mjc_1, _this__u8e3s4.ljc_1); } function get_statementSummary_0(_this__u8e3s4) { return new StatementSummaryEntity(_this__u8e3s4.yjd_1, _this__u8e3s4.xjd_1); } function get_verbDisplayName(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.fjf_1; var tmp3_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qjf_1; var tmp; if (tmp3_elvis_lhs == null) { var tmp1_safe_receiver = _this__u8e3s4.ejf_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.kjf_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.rvr_1 = successful; this.svr_1 = completed; } protoOf(StatementSummaryEntity).toString = function () { return 'StatementSummaryEntity(successful=' + this.rvr_1 + ', completed=' + this.svr_1 + ')'; }; protoOf(StatementSummaryEntity).hashCode = function () { var result = this.rvr_1 == null ? 0 : getBooleanHashCode(this.rvr_1); result = imul(result, 31) + getBooleanHashCode(this.svr_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.rvr_1 == tmp0_other_with_cast.rvr_1)) return false; if (!(this.svr_1 === tmp0_other_with_cast.svr_1)) return false; return true; }; function get_descriptionStringRes(_this__u8e3s4) { return _this__u8e3s4.rvr_1 === true ? strings_getInstance().smh_1 : _this__u8e3s4.rvr_1 === false ? strings_getInstance().rmh_1 : _this__u8e3s4.svr_1 ? strings_getInstance().wmh_1 : strings_getInstance().vmh_1; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.bvs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda).dvs = function (it, $completion) { var tmp = this.evs(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.dvs((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.bvs_1.bvt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.evu(VOID, this.cvs_1); if (this_0.y1k(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).evs = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda(this.bvs_1, completion); i.cvs_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.dvs(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.nvu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1).tre = function (db, $completion) { var tmp = this.env(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.tre(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.ovu_1.v7d().lau(this.nvu_1.pvt_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).env = function (db, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_1(this.nvu_1, completion); i.ovu_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.tre(db, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.xvu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3).zvu = function (it, $completion) { var tmp = this.avv(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.zvu((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.xvu_1.bvt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.evu(VOID, VOID, this.yvu_1); if (this_0.y1k(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).avv = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_3(this.xvu_1, completion); i.yvu_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.zvu(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.jvv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5).lvv = function (it, $completion) { var tmp = this.mvv(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.lvv((!(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.jvv_1.bvt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.kvv_1); if (this_0.y1k(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).mvv = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_5(this.jvv_1, completion); i.kvv_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.lvv(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.vvv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7).xvv = function (it, $completion) { var tmp = this.yvv(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.xvv((!(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.vvv_1.bvt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.wvv_1); if (this_0.y1k(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).yvv = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_7(this.vvv_1, completion); i.wvv_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.xvv(it, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this$0, resultContinuation) { this.hvw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9).jvw = function (it, $completion) { var tmp = this.kvw(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.jvw((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.hvw_1.bvt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.ivw_1); if (this_0.y1k(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).kvw = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_9(this.hvw_1, completion); i.ivw_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.jvw(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.tvw_1 = this$0; this.uvw_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.tvw_1.iqk().v7d(); Companion_getInstance_123(); var tmp0_safe_receiver = this.uvw_1.ba('courseBlockUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); var tmp_1 = tmp_0.kau(this.tvw_1.gqj_1, this.tvw_1.ovt_1, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.tvw_1.eqk()); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_0(this.tvw_1, null); suspendResult = tmp_1.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda(this.tvw_1, this.uvw_1, completion); i.vvw_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.evx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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_167(); if (this.evx_1.pvt_1.equals(new Long(1, 0))) { var tmp_0 = this; tmp_0.gvx_1 = this.evx_1.mqk().eog(strings_getInstance().hne_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.evx_1.iqk(); suspendResult = localFirstThenRepoIfNull(tmp_1, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_2(this.evx_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.gvx_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var parentTitle = this.gvx_1; l$ret$1: do { var this_0 = this.evx_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(VOID, VOID, parentTitle); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_1(this.evx_1, completion); i.fvx_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.u1m($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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel....' call var nextValue = prevValue.bq3(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.pvx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.pvx_1.iqk().i7f().ybp(this.pvx_1.gqj_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_4(this.pvx_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_3(this.pvx_1, completion); i.qvx_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.zvx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.zvx_1.gqk().j7f(); var tmp_1 = tmp_0.ci8(this.zvx_1.gqj_1, 1); var tmp_2 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_6(this.zvx_1, null); suspendResult = tmp_1.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_5(this.zvx_1, completion); i.avy_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this$0, resultContinuation) { this.jvy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.jvy_1.gqk().c7f().fbb(this.jvy_1.gqj_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_8(this.jvy_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_7(this.jvy_1, completion); i.kvy_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this$0, resultContinuation) { this.tvy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.tvy_1.gqk().l7f().ufq(this.tvy_1.gqj_1, this.tvy_1.vvy().q64_1); var tmp_1 = ContentEntryDetailOverviewViewModel$slambda$slambda$slambda$slambda_10(this.tvy_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_9(this.tvy_1, completion); i.uvy_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this$0, resultContinuation) { this.evz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.gvz_1 = _get_httpClient__2ty1zc_0(this.evz_1); var tmp_1 = this; tmp_1.hvz_1 = this.evz_1.cqk().co7().nnp_1 + 'api/contententryimportjob/importjobs'; var tmp_2 = this; tmp_2.ivz_1 = this.gvz_1; var tmp_3 = this; tmp_3.jvz_1 = this.ivz_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.hvz_1); parameter(this_0, 'contententryuid', this.evz_1.gqj_1.toString()); header(this_0, 'cache-control', 'no-store'); tmp_4.kvz_1 = this_0; this.kvz_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.lvz_1 = this.jvz_1; var tmp_6 = this; tmp_6.mvz_1 = this.kvz_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.mvz_1, this.lvz_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.nvz_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.nvz_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: var remoteImportJobsJson = suspendResult; var remoteImportJobs = this.evz_1.m4r().s45(ListSerializer(Companion_instance_40.n4r()), remoteImportJobsJson); var tmp$ret$0; l$ret$1: do { var this_1 = this.evz_1.bvt_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, remoteImportJobs); if (this_1.y1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); var state = tmp$ret$0; if (!state.zvt_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.k5e(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_11(this.evz_1, completion); i.fvz_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$slambda$slambda($this_launch, this$0, $savedStateHandle, resultContinuation) { this.wvz_1 = $this_launch; this.xvz_1 = this$0; this.yvz_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.wvz_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_0(this.xvz_1, this.yvz_1, null)); if (this.xvz_1.ovt_1.equals(new Long(0, 0)) ? !this.xvz_1.pvt_1.equals(new Long(0, 0)) : false) { launch(this.wvz_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_2(this.xvz_1, null)); } launchSetTitleFromClazzUid(this.xvz_1, this.xvz_1.ovt_1, ContentEntryDetailOverviewViewModel$slambda$slambda$lambda(this.xvz_1)); launch(this.wvz_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_4(this.xvz_1, null)); launch(this.wvz_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_6(this.xvz_1, null)); launch(this.wvz_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_8(this.xvz_1, null)); launch(this.wvz_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_10(this.xvz_1, null)); launch(this.wvz_1, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda$slambda$slambda_12(this.xvz_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).l78 = function (completion) { return new ContentEntryDetailOverviewViewModel$slambda$slambda(this.wvz_1, this.xvz_1, this.yvz_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.j87($completion); }; l.$arity = 0; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this$0, resultContinuation) { this.hw0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda).wp3 = function (it, $completion) { var tmp = this.env(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.wp3(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.iw0_1.i7f().xbp(this.hw0_1.gqj_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).env = function (it, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda(this.hw0_1, completion); i.iw0_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.wp3(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.cvt_1; makeContentEntryAvailableOfflineUseCase$factory_0(); return this_0.t2(); } function _get_cancelDownloadUseCase__t8wbc4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dvt_1; cancelDownloadUseCase$factory_0(); return this_0.t2(); } function _get_defaultLaunchContentEntryUseCase__lyydsx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gvt_1; defaultLaunchContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_launchXapiUseCase__jmtlap($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hvt_1; launchXapiUseCase$factory_0(); return this_0.t2(); } function _get_launchEpubUseCase__sunqd7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ivt_1; launchEpubUseCase$factory_0(); return this_0.t2(); } function _get_cancelImportContentEntryUseCase__kqom1e($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kvt_1; cancelImportContentEntryUseCase$factory_0(); return this_0.t2(); } function _get_cancelRemoteContentEntryImportUseCase__8yb0xk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.lvt_1; cancelRemoteContentEntryImportUseCase$factory_0(); return this_0.t2(); } function _get_dismissRemoteContentEntryImportErrorUseCase__x9kppo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mvt_1; dismissRemoteContentEntryImportErrorUseCase$factory_0(); return this_0.t2(); } function _get_httpClient__2ty1zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nvt_1; httpClient$factory_2(); return this_0.t2(); } function Companion_145() { this.jw0_1 = 'ContentEntryDetailOverviewView'; this.kw0_1 = 'target'; } var Companion_instance_194; function Companion_getInstance_162() { return Companion_instance_194; } function sam$kotlinx_coroutines_flow_FlowCollector$0_24(function_0) { this.lw0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_24).t1d = function (value, $completion) { return this.lw0_1(value, $completion); }; function ContentEntryDetailOverviewViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.uw0_1 = this$0; this.vw0_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryDetailOverviewViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.uw0_1.bvt_1, ContentEntryDetailOverviewViewModel$slambda$slambda_0(this.ww0_1, this.uw0_1, this.vw0_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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$slambda(this.uw0_1, this.vw0_1, completion); i.ww0_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onClickOpen$slambda(this$0, resultContinuation) { this.fw1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onClickOpen$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.fw1_1.oqk(Companion_getInstance_96().iq3_1); Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen launched'); l$ret$1: do { var this_0 = this.fw1_1.bvt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; var tmp_0 = this.fw1_1.iqk(); suspendResult = localFirstThenRepoIfNull(tmp_0, ContentEntryDetailOverviewViewModel$onClickOpen$slambda$slambda_0(this.fw1_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.iw1_1 = suspendResult; var tmp_1 = this; var tmp0_safe_receiver = this.fw1_1.jvt_1; var tmp_2; if (tmp0_safe_receiver == null) { tmp_2 = null; } else { tmp_2 = Companion_instance_97.hmc(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp_2; tmp_1.jw1_1 = tmp1_elvis_lhs == null ? LinkTarget_DEFAULT_getInstance() : tmp1_elvis_lhs; if (!(this.iw1_1 == null)) { var tmp_3 = this; var tmp2_subject = this.iw1_1.fax_1; var tmp_4; if (tmp2_subject === 'xapi') { tmp_4 = _get_launchXapiUseCase__jmtlap(this.fw1_1); } else { if (tmp2_subject === 'epub') { tmp_4 = _get_launchEpubUseCase__sunqd7(this.fw1_1); } else { tmp_4 = null; } } tmp_3.kw1_1 = tmp_4; var tmp_5 = this; var tmp3_elvis_lhs = this.kw1_1; tmp_5.lw1_1 = tmp3_elvis_lhs == null ? _get_defaultLaunchContentEntryUseCase__lyydsx(this.fw1_1) : tmp3_elvis_lhs; Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen : Launching using ' + this.lw1_1); this.hd_1 = 3; Companion_getInstance_123(); var tmp4_safe_receiver = this.fw1_1.mqj_1.ba('courseBlockUid'); var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : toLong_0(tmp4_safe_receiver); suspendResult = this.lw1_1.gp3(this.iw1_1, this.fw1_1.oqj_1, this.fw1_1.ovt_1, tmp5_elvis_lhs == null ? new Long(0, 0) : tmp5_elvis_lhs, this.jw1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen: latestContentEntryVersion = null'); this.fw1_1.kqk().qq3(new Snack(this.fw1_1.mqk().eog(strings_getInstance().fni_1))); this.hd_1 = 4; continue $sm; } case 3: this.hd_1 = 4; continue $sm; case 4: this.hw1_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.fw1_1.kqk().qq3(new Snack(this.fw1_1.mqk().eog(strings_getInstance().cme_1) + (':' + e.message))); Napier_getInstance().m5e('ContentEntryDetailOverview: Exception opening content', e); tmp_7.hw1_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.fw1_1.oqk(Companion_getInstance_96().jq3_1); l$ret$5: do { var this_1 = this.fw1_1.bvt_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.y1k(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.fw1_1.oqk(Companion_getInstance_96().jq3_1); l$ret$7: do { var this_2 = this.fw1_1.bvt_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_2.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onClickOpen$slambda(this.fw1_1, completion); i.gw1_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda(this$0, $jobUid, resultContinuation) { this.uw1_1 = this$0; this.vw1_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.uw1_1).jp1(this.vw1_1, this.uw1_1.eqk(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.uw1_1.kqk().qq3(new Snack(this.uw1_1.mqk().eog(strings_getInstance().vme_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.uw1_1.kqk().qq3(new Snack(this.uw1_1.mqk().eog(strings_getInstance().cme_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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda(this.uw1_1, this.vw1_1, completion); i.ww1_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda(this$0, $jobUid, resultContinuation) { this.fw2_1 = this$0; this.gw2_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.fw2_1).jp1(this.gw2_1, this.fw2_1.eqk(), 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.o5e(VOID, VOID, ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda$lambda); this.fw2_1.kqk().qq3(new Snack(this.fw2_1.mqk().eog(strings_getInstance().cme_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).v1m = function ($this$launch, completion) { var i = new ContentEntryDetailOverviewViewModel$onDismissRemoteImportError$slambda(this.fw2_1, this.gw2_1, completion); i.hw2_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryDetailOverviewViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'ContentEntryDetailOverviewView'); this.bvt_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.cvt_1 = Instance(this_0, tmp$ret$0, null).a5d(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.dvt_1 = Instance(this_1, tmp$ret$2, null).a5d(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.evt_1 = Instance(this_2, tmp$ret$4, null).a5d(this, nodeIdAndAuth$factory()); this.fvt_1 = asStateFlow(this.bvt_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.gvt_1 = Instance(this_3, tmp$ret$6, null).a5d(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.hvt_1 = InstanceOrNull(this_4, tmp$ret$8, null).a5d(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.ivt_1 = InstanceOrNull(this_5, tmp$ret$10, null).a5d(this, launchEpubUseCase$factory()); this.jvt_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.kvt_1 = InstanceOrNull(this_6, tmp$ret$12, null).a5d(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.lvt_1 = Instance(this_7, tmp$ret$14, null).a5d(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.mvt_1 = Instance(this_8, tmp$ret$16, null).a5d(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.nvt_1 = Instance(di, tmp$ret$18, null).a5d(this, httpClient$factory_1()); var tmp_19 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_19.ovt_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_20 = this; Companion_getInstance_123(); 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.pvt_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.bvt_1; while (true) { var prevValue = this_9.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.detailoverviewtab.ContentEntryDetailOverviewViewModel.' call var nextValue = prevValue.evu(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.eqk()); if (this_9.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_21 = this.dqk(); launch(tmp_21, VOID, VOID, ContentEntryDetailOverviewViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(ContentEntryDetailOverviewViewModel).vvy = function () { // Inline function 'kotlin.getValue' call var this_0 = this.evt_1; nodeIdAndAuth$factory_0(); return this_0.t2(); }; protoOf(ContentEntryDetailOverviewViewModel).iw2 = function () { Napier_getInstance().i5e('ContentEntryDetailOverviewViewModel: onClickOpen'); var tmp = this.dqk(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onClickOpen$slambda_0(this, null)); }; protoOf(ContentEntryDetailOverviewViewModel).jw2 = function (jobUid) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ContentEntryDetailOverviewViewModel$onCancelRemoteImport$slambda_0(this, jobUid, null)); }; protoOf(ContentEntryDetailOverviewViewModel).kw2 = function (jobUid) { var tmp = this.dqk(); 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.qvt_1 = scoreProgress; this.rvt_1 = contentEntry; this.svt_1 = latestContentEntryVersion; this.tvt_1 = contentEntryButtons; this.uvt_1 = locallyAvailable; this.vvt_1 = markCompleteVisible; this.wvt_1 = translationVisibile; this.xvt_1 = availableTranslations; this.yvt_1 = activeImportJobs; this.zvt_1 = remoteImportJobs; this.avu_1 = activeUploadJobs; this.bvu_1 = offlineItemAndState; this.cvu_1 = openButtonEnabled; this.dvu_1 = activeUserPersonUid; } protoOf(ContentEntryDetailOverviewUiState).lw2 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.rvt_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yaw_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.iav_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).mw2 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.rvt_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yaw_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.jav_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).nw2 = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.rvt_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yaw_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lav_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(ContentEntryDetailOverviewUiState).ow2 = function () { return false; }; protoOf(ContentEntryDetailOverviewUiState).pw2 = function () { return !(this.qvt_1 == null); }; protoOf(ContentEntryDetailOverviewUiState).qw2 = function () { var tmp0_safe_receiver = this.svt_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.lax_1.c7(new Long(0, 0)) > 0 ? tmp0_safe_receiver.lax_1.c7(new Long(0, 0)) > 0 : false) ? tmp0_safe_receiver.lax_1.c7(tmp0_safe_receiver.max_1) < 0 : false; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).rw2 = function () { var tmp0_safe_receiver = this.svt_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.lax_1.c7(new Long(0, 0)) > 0; } var tmp1_elvis_lhs = tmp; return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; }; protoOf(ContentEntryDetailOverviewUiState).sw2 = function (importJobProgress) { return importJobProgress.lbb_1.equals(this.dvu_1); }; protoOf(ContentEntryDetailOverviewUiState).tw2 = 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).evu = function (scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid, $super) { scoreProgress = scoreProgress === VOID ? this.qvt_1 : scoreProgress; contentEntry = contentEntry === VOID ? this.rvt_1 : contentEntry; latestContentEntryVersion = latestContentEntryVersion === VOID ? this.svt_1 : latestContentEntryVersion; contentEntryButtons = contentEntryButtons === VOID ? this.tvt_1 : contentEntryButtons; locallyAvailable = locallyAvailable === VOID ? this.uvt_1 : locallyAvailable; markCompleteVisible = markCompleteVisible === VOID ? this.vvt_1 : markCompleteVisible; translationVisibile = translationVisibile === VOID ? this.wvt_1 : translationVisibile; availableTranslations = availableTranslations === VOID ? this.xvt_1 : availableTranslations; activeImportJobs = activeImportJobs === VOID ? this.yvt_1 : activeImportJobs; remoteImportJobs = remoteImportJobs === VOID ? this.zvt_1 : remoteImportJobs; activeUploadJobs = activeUploadJobs === VOID ? this.avu_1 : activeUploadJobs; offlineItemAndState = offlineItemAndState === VOID ? this.bvu_1 : offlineItemAndState; openButtonEnabled = openButtonEnabled === VOID ? this.cvu_1 : openButtonEnabled; activeUserPersonUid = activeUserPersonUid === VOID ? this.dvu_1 : activeUserPersonUid; return $super === VOID ? this.tw2(scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid) : $super.tw2.call(this, scoreProgress, contentEntry, latestContentEntryVersion, contentEntryButtons, locallyAvailable, markCompleteVisible, translationVisibile, availableTranslations, activeImportJobs, remoteImportJobs, activeUploadJobs, offlineItemAndState, openButtonEnabled, activeUserPersonUid); }; protoOf(ContentEntryDetailOverviewUiState).toString = function () { return 'ContentEntryDetailOverviewUiState(scoreProgress=' + this.qvt_1 + ', contentEntry=' + this.rvt_1 + ', latestContentEntryVersion=' + this.svt_1 + ', contentEntryButtons=' + this.tvt_1 + ', locallyAvailable=' + this.uvt_1 + ', markCompleteVisible=' + this.vvt_1 + ', translationVisibile=' + this.wvt_1 + ', availableTranslations=' + this.xvt_1 + ', activeImportJobs=' + this.yvt_1 + ', remoteImportJobs=' + this.zvt_1 + ', activeUploadJobs=' + this.avu_1 + ', offlineItemAndState=' + this.bvu_1 + ', openButtonEnabled=' + this.cvu_1 + ', activeUserPersonUid=' + this.dvu_1.toString() + ')'; }; protoOf(ContentEntryDetailOverviewUiState).hashCode = function () { var result = this.qvt_1 == null ? 0 : this.qvt_1.hashCode(); result = imul(result, 31) + (this.rvt_1 == null ? 0 : this.rvt_1.hashCode()) | 0; result = imul(result, 31) + (this.svt_1 == null ? 0 : this.svt_1.hashCode()) | 0; result = imul(result, 31) + (this.tvt_1 == null ? 0 : hashCode(this.tvt_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.uvt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.vvt_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.wvt_1) | 0; result = imul(result, 31) + hashCode(this.xvt_1) | 0; result = imul(result, 31) + hashCode(this.yvt_1) | 0; result = imul(result, 31) + hashCode(this.zvt_1) | 0; result = imul(result, 31) + hashCode(this.avu_1) | 0; result = imul(result, 31) + (this.bvu_1 == null ? 0 : this.bvu_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.cvu_1) | 0; result = imul(result, 31) + this.dvu_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.qvt_1, tmp0_other_with_cast.qvt_1)) return false; if (!equals(this.rvt_1, tmp0_other_with_cast.rvt_1)) return false; if (!equals(this.svt_1, tmp0_other_with_cast.svt_1)) return false; if (!equals(this.tvt_1, tmp0_other_with_cast.tvt_1)) return false; if (!(this.uvt_1 === tmp0_other_with_cast.uvt_1)) return false; if (!(this.vvt_1 === tmp0_other_with_cast.vvt_1)) return false; if (!(this.wvt_1 === tmp0_other_with_cast.wvt_1)) return false; if (!equals(this.xvt_1, tmp0_other_with_cast.xvt_1)) return false; if (!equals(this.yvt_1, tmp0_other_with_cast.yvt_1)) return false; if (!equals(this.zvt_1, tmp0_other_with_cast.zvt_1)) return false; if (!equals(this.avu_1, tmp0_other_with_cast.avu_1)) return false; if (!equals(this.bvu_1, tmp0_other_with_cast.bvu_1)) return false; if (!(this.cvu_1 === tmp0_other_with_cast.cvu_1)) return false; if (!this.dvu_1.equals(tmp0_other_with_cast.dvu_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.vvy(); }, 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.vvy(); }, 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.ibb_1.c7(new Long(0, 0)) > 0) { tmp = _this__u8e3s4.hbb_1.zc() / _this__u8e3s4.ibb_1.zc(); } else { tmp = 0.0; } return tmp; } function ContentEntryEditViewModel$slambda$slambda$lambda($newContentEntryUid, this$0, $savedStateHandle) { return function ($this$shallowCopy) { $this$shallowCopy.eav_1 = $newContentEntryUid; var tmp; if (this$0.ww3_1) { var tmp_0 = $this$shallowCopy; tmp_0.aaw_1 = 2; var tmp_1 = $this$shallowCopy; Companion_getInstance_123(); var tmp0_safe_receiver = $savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.zav_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; tmp = Unit_instance; } else { var tmp_2 = $this$shallowCopy; tmp_2.aaw_1 = 1; $this$shallowCopy.zav_1 = this$0.eqk(); tmp = Unit_instance; } return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda($newDecription) { return function ($this$shallowCopy) { $this$shallowCopy.gav_1 = $newDecription; return Unit_instance; }; } function ContentEntryEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.fw4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda).gq7 = function (it, $completion) { var tmp = this.hq7(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.gq7(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.gw4_1.nq6_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.fw4_1.tw3_1.t2().hw4_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ek3_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.fw4_1.tw4(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).hq7 = function (it, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda(this.fw4_1, completion); i.gw4_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.gq7(it, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda$slambda$lambda$lambda($newSubtitleTrack) { return function (it) { return it.nod_1 === $newSubtitleTrack.nod_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.cw5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda$slambda_1).gq7 = function (navResult, $completion) { var tmp = this.hq7(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.gq7(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.dw5_1.nq6_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.cw5_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).hq7 = function (navResult, completion) { var i = new ContentEntryEditViewModel$slambda$slambda$slambda_1(this.cw5_1, completion); i.dw5_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.gq7(navResult, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda(this$0, resultContinuation) { this.mw5_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda).qw5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.qw5(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.nw5_1; var tmp_1; if (!this.mw5_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.ow5_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v7d(); if (this.ow5_1 == null) { this.pw5_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.ow5_1.jau(this.mw5_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.pw5_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: var tmp2_safe_receiver = this.pw5_1; var tmp_2; if (tmp2_safe_receiver == null) { tmp_2 = null; } else { var tmp_3; if (!(tmp2_safe_receiver.saw_1 == null)) { var tmp_4 = tmp2_safe_receiver.saw_1; var tmp0_elvis_lhs = tmp2_safe_receiver.taw_1; tmp_3 = new ContentEntryAndContentJob(tmp_4, VOID, VOID, tmp0_elvis_lhs == null ? new ContentEntryPicture2(this.mw5_1.uqp_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).env = function (db, completion) { var i = new ContentEntryEditViewModel$slambda$slambda(this.mw5_1, completion); i.nw5_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.qw5(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.zw5_1 = this$0; this.aw6_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_1).cw6 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.cw6($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.zw5_1.gqk()); tmp_0.bw6_1 = tmp_1.n62(42); this.hd_1 = 1; suspendResult = this.zw5_1.rqk(this.aw6_1, 'metadata', Companion_instance_82.n4r(), 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.aoe_1; var pictureUri = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.waw_1; if (!(pictureUri == null)) { Companion_getInstance_121(); this.aw6_1.qqf('initPicUri', ''); } var tmp_3 = shallowCopy_8(importedMetaData.xod_1, ContentEntryEditViewModel$slambda$slambda$lambda(this.bw6_1, this.zw5_1, this.aw6_1)); var tmp1_cjiPluginId = importedMetaData.yod_1; var tmp2_sourceUri = importedMetaData.xod_1.nav_1; var tmp3_cjiOriginalFilename = importedMetaData.zod_1; var tmp4_cjiOwnerPersonUid = this.zw5_1.eqk(); var tmp_4 = new ContentEntryImportJob(VOID, tmp2_sourceUri, tmp3_cjiOriginalFilename, this.bw6_1, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_cjiPluginId, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp4_cjiOwnerPersonUid); var tmp5_safe_receiver = importedMetaData.aoe_1; var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.skd(this.bw6_1); var this_0 = new ContentEntryAndContentJob(tmp_3, VOID, tmp_4, tmp6_elvis_lhs == null ? new ContentEntryPicture2(this.bw6_1) : tmp6_elvis_lhs); var tmp_5 = this.zw5_1.mqk(); var tmp_6 = strings_getInstance().zn7_1; var tmp0_elvis_lhs = importedMetaData.zod_1; var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? importedMetaData.xod_1.nav_1 : tmp0_elvis_lhs; this.aw6_1.qqf('savedTitle', tmp_5.fog(tmp_6, [tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs])); tmp_2 = this_0; } else { var this_1 = new ContentEntry(); this_1.eav_1 = this.bw6_1; var tmp_7 = this_1; var tmp0_safe_receiver_0 = this.aw6_1.ba('leaf'); tmp_7.tav_1 = (tmp0_safe_receiver_0 == null ? null : toBoolean(tmp0_safe_receiver_0)) === true; this_1.zav_1 = this.zw5_1.eqk(); tmp_2 = new ContentEntryAndContentJob(this_1, VOID, VOID, new ContentEntryPicture2(this.bw6_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).l78 = function (completion) { return new ContentEntryEditViewModel$slambda$slambda_1(this.zw5_1, this.aw6_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.cw6($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.tw3_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.gk3_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramSubtitles(tmp1_safe_receiver, this$0.m4r()); var nextValue = prevValue.dw6(it, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ContentEntryEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.mw6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.mw6_1.qqk(this.mw6_1.jqk(), 'contentEntryDesc'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_0(this.mw6_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_3(this.mw6_1, completion); i.nw6_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda$slambda_5(this$0, resultContinuation) { this.ww6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ww6_1.qqk(this.ww6_1.jqk(), 'subtitleKey'); var tmp_1 = ContentEntryEditViewModel$slambda$slambda$slambda_2(this.ww6_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$slambda$slambda_5(this.ww6_1, completion); i.xw6_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.u1m($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.tw3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.updateSubtitles.' call var updatedSubtitles = function_0(prevValue.sw4_1); var tmp0_safe_receiver = prevValue.hw4_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gk3_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : paramMap(tmp1_safe_receiver, $this.m4r()); 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.m4r().r45(ListSerializer(Companion_instance_81.n4r()), updatedSubtitles); this_1.s(key, value); var contentJobParam = this_1; var tmp4_safe_receiver = prevValue.hw4_1; var tmp; if (tmp4_safe_receiver == null) { tmp = null; } else { var tmp3_safe_receiver = prevValue.hw4_1.gk3_1; tmp = tmp4_safe_receiver.jk3(VOID, VOID, tmp3_safe_receiver == null ? null : tmp3_safe_receiver.hkd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.m4r().r45(MapSerializer(serializer_0(StringCompanionObject_instance), serializer_0(StringCompanionObject_instance)), contentJobParam))); } var tmp5_entity = tmp; var nextValue = prevValue.dw6(tmp5_entity, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedSubtitles); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$2 = nextValue; break $l$block; } } } var updatedState = tmp$ret$2; scheduleEntityCommit($this, updatedState.hw4_1); } function scheduleEntityCommit($this, entity) { // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_41.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver = $this.tqp_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = $this; var tmp_0 = $this.dqk(); tmp.tqp_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.ow4_1 == null); } function Companion_146() { this.yw6_1 = 'leaf'; this.zw6_1 = 'courseBlock'; this.aw7_1 = 'ContentEntryEdit'; this.bw7_1 = 'metadata'; this.cw7_1 = 'savedTitle'; this.dw7_1 = 'goToOnContentEntryDone'; this.ew7_1 = 'contentEntryDesc'; this.fw7_1 = 'subtitleKey'; this.gw7_1 = 1; this.hw7_1 = 2; } var Companion_instance_195; function Companion_getInstance_163() { return Companion_instance_195; } function sam$kotlinx_coroutines_flow_FlowCollector$0_25(function_0) { this.iw7_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_25).t1d = function (value, $completion) { return this.iw7_1(value, $completion); }; function ContentEntryEditViewModel$slambda(this$0, resultContinuation) { this.rw7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.rw7_1.ww3_1) { this.tw7_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = this.sw7_1.p7f(); var tmp_1 = this.rw7_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.jhw(tmp_1, new Long(65536, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.tw7_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.tw7_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).env = function (db, completion) { var i = new ContentEntryEditViewModel$slambda(this.rw7_1, completion); i.sw7_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.vs5(db, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.cw8_1 = this$0; this.dw8_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.n4r(); var tmp_1 = ContentEntryEditViewModel$slambda$slambda_0(this.cw8_1, null); var tmp_2 = ContentEntryEditViewModel$slambda$slambda_2(this.cw8_1, this.dw8_1, null); suspendResult = this.cw8_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, ContentEntryEditViewModel$slambda$lambda(this.cw8_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var it = suspendResult; Companion_getInstance_121(); var tmp1_safe_receiver = it == null ? null : it.hk3_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.waw_1; setIfNoValueSetYet(this.dw8_1, 'initPicUri', tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs); var tmp0_safe_receiver = this.cw8_1.tw3_1.t2().hw4_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ek3_1; var isLeaf = (tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.tav_1) === true; var savedStateTitle = this.dw8_1.ba('savedTitle'); var title = !(savedStateTitle == null) ? savedStateTitle : (this.cw8_1.uqp_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.cw8_1.mqk().eog(strings_getInstance().zn5_1) : (!this.cw8_1.uqp_1.equals(new Long(0, 0)) ? !isLeaf : false) ? this.cw8_1.mqk().eog(strings_getInstance().fnh_1) : this.cw8_1.mqk().eog(strings_getInstance().enh_1); l$ret$1: do { var this_0 = this.cw8_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.cw8_1.mqk(); var tmp0_subject = this.cw8_1.vw3_1; var tmp_4 = tmp_3.eog(tmp0_subject === 1 ? strings_getInstance().hmf_1 : tmp0_subject === 2 ? strings_getInstance().fmn_1 : strings_getInstance().tmy_1); var nextValue = prevValue.bq3(VOID, VOID, title, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_4, VOID, ContentEntryEditViewModel$onClickSave$ref(this.cw8_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.cw8_1.tw3_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.dw6(VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); launch(this.ew8_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_4(this.cw8_1, null)); launch(this.ew8_1, VOID, VOID, ContentEntryEditViewModel$slambda$slambda_6(this.cw8_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).v1m = function ($this$launchIfHasPermission, completion) { var i = new ContentEntryEditViewModel$slambda_1(this.cw8_1, this.dw8_1, completion); i.ew8_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryEditViewModel$scheduleEntityCommit$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.nw8_1 = $commitDelay; this.ow8_1 = $entity; this.pw8_1 = $this; this.qw8_1 = $key; this.rw8_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$scheduleEntityCommit$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nw8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.ow8_1 == null)) { this.hd_1 = 2; suspendResult = this.pw8_1.sqk(this.pw8_1.mqj_1, this.qw8_1, this.rw8_1, this.ow8_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).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$scheduleEntityCommit$slambda(this.nw8_1, this.ow8_1, this.pw8_1, this.qw8_1, this.rw8_1, completion); i.sw8_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.u1m($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.nod_1 === $subtitleTrack.nod_1)) { destination.i1(element); } } return destination; }; } function ContentEntryEditViewModel$onClickSave$slambda(this$0, $contentEntryVal, $entityVal, resultContinuation) { this.bw9_1 = this$0; this.cw9_1 = $contentEntryVal; this.dw9_1 = $entityVal; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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_123(); var tmp0_safe_receiver = this.bw9_1.mqj_1.ba('parentUid'); tmp_0.fw9_1 = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); this.hd_1 = 1; var tmp_1 = this.bw9_1.uqp_1.equals(new Long(0, 0)) ? this.fw9_1 : null; Companion_getInstance_121(); suspendResult = this.bw9_1.rw3_1.yp7(this.cw9_1, tmp_1, this.dw9_1.hk3_1, this.bw9_1.mqj_1.ba('initPicUri'), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gw9_1 = this.dw9_1.gk3_1; if (!(this.gw9_1 == null)) { this.hd_1 = 2; suspendResult = this.bw9_1.sw3_1.gp2(this.gw9_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_123(); var popUpToOnFinish = this.bw9_1.mqj_1.ba('popUpToOnFinish'); if (!(this.bw9_1.nqk() == null)) { this.bw9_1.xqp(this.cw9_1); } else { this.bw9_1.oqj_1.cq6(popUpToOnFinish == null ? this.bw9_1.nqj_1 : popUpToOnFinish, true); } if (hasErrors_2(this.bw9_1.tw3_1.t2(), this.bw9_1)) { this.bw9_1.oqk(Companion_getInstance_96().jq3_1); l$ret$1: do { var this_0 = this.bw9_1.tw3_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.dw6(VOID, VOID, VOID, VOID, true); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryEditViewModel$onClickSave$slambda(this.bw9_1, this.cw9_1, this.dw9_1, completion); i.ew9_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.u1m($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)).f58(); // 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.d58(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)).f58(); // 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.d58(tmp$ret$0_0, null); } else { tmp_2 = enqueueContentEntryImportUseCase; } enqueueContentEntryImportUseCase = tmp_2; UstadEditViewModel.call(this, di, savedStateHandle, 'ContentEntryEdit'); this.rw3_1 = saveContentEntryUseCase; this.sw3_1 = enqueueContentEntryImportUseCase; this.tw3_1 = MutableStateFlow(new ContentEntryEditUiState()); this.uw3_1 = asStateFlow(this.tw3_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.vw3_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; this.ww3_1 = this.vw3_1 === 1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_6 = ContentEntryEditViewModel$slambda_0(this, null); this.yqk(tmp_6, VOID, VOID, ContentEntryEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(ContentEntryEditViewModel).tw4 = function (contentEntry) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.tw3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onContentEntryChanged.' call var tmp0_safe_receiver = prevValue.hw4_1; var nextValue = prevValue.dw6(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jk3(contentEntry)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.hw4_1); }; protoOf(ContentEntryEditViewModel).pu1 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.tw3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.hw4_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.hw4_1.hk3_1; tmp = tmp1_safe_receiver.jk3(VOID, VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.skd(VOID, VOID, pictureUri)); } var nextValue = prevValue.dw6(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var updatedState = tmp$ret$1; scheduleEntityCommit(this, updatedState.hw4_1); }; protoOf(ContentEntryEditViewModel).hw9 = function (compressionLevel) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tw3_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.edit.ContentEntryEditViewModel.onSetCompressionLevel.' call var tmp1_safe_receiver = prevValue.hw4_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.hw4_1.gk3_1; tmp = tmp1_safe_receiver.jk3(VOID, VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hkd(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, compressionLevel.voy_1)); } var nextValue = prevValue.dw6(tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryEditViewModel).iw9 = function (uri, fileName) { var tmp = Companion_instance_81.n4r(); // 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.uqk('GetSubtitle', 'subtitleKey', null, tmp, tmp$ret$2); }; protoOf(ContentEntryEditViewModel).jw9 = function (subtitleTrack) { this.uqk('SubtitleEdit', 'subtitleKey', subtitleTrack, Companion_instance_81.n4r()); }; protoOf(ContentEntryEditViewModel).kw9 = function (subtitleTrack) { updateSubtitles(this, ContentEntryEditViewModel$onClickDeleteSubtitleTrack$lambda(subtitleTrack)); }; protoOf(ContentEntryEditViewModel).js3 = function () { var entityVal = this.tw3_1.t2().hw4_1; var tmp0_safe_receiver = this.tw3_1.t2().hw4_1; var contentEntry = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ek3_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tw3_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.fav_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : isBlank(this_1)) { tmp = this.mqk().eog(strings_getInstance().lnh_1); } else { tmp = null; } var nextValue = prevValue.dw6(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_2(this.tw3_1.t2(), this)) { this.oqk(Companion_getInstance_96().jq3_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.tw3_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.dw6(VOID, VOID, VOID, VOID, true); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var tmp2_elvis_lhs = entityVal == null ? null : entityVal.ek3_1; var tmp_0; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp2_elvis_lhs; } var contentEntryVal = tmp_0; if (!this.tw3_1.t2().lw4_1) { return Unit_instance; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.tw3_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.dw6(VOID, VOID, VOID, VOID, false); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (this.vw3_1 === 1) { Companion_getInstance_172(); // 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_172(); var key = 'SelectedContentEntry'; var value = this.m4r().r45(Companion_instance_41.n4r(), entityVal); this_4.s(key, value); this.aql(this_4, Companion_getInstance_172().rw9_1); var tmp$ret$9 = this_4.f3(); this.oqj_1.fp3('CourseBlockEdit', tmp$ret$9); } else if (this.vw3_1 === 2) { this.xqp(entityVal); } else { var tmp_1 = this.dqk(); 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.hw4_1 = entity; this.iw4_1 = licenceOptions; this.jw4_1 = storageOptions; this.kw4_1 = courseBlockEditUiState; this.lw4_1 = fieldsEnabled; this.mw4_1 = updateContentVisible; this.nw4_1 = importError; this.ow4_1 = titleError; this.pw4_1 = selectedContainerStorageDir; this.qw4_1 = metadataResult; this.rw4_1 = compressionEnabled; this.sw4_1 = subtitles; } protoOf(ContentEntryEditUiState).sw9 = function () { var tmp0_safe_receiver = this.hw4_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gk3_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.mbc_1; return tmp === 101; }; protoOf(ContentEntryEditUiState).tw9 = 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).dw6 = function (entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles, $super) { entity = entity === VOID ? this.hw4_1 : entity; licenceOptions = licenceOptions === VOID ? this.iw4_1 : licenceOptions; storageOptions = storageOptions === VOID ? this.jw4_1 : storageOptions; courseBlockEditUiState = courseBlockEditUiState === VOID ? this.kw4_1 : courseBlockEditUiState; fieldsEnabled = fieldsEnabled === VOID ? this.lw4_1 : fieldsEnabled; updateContentVisible = updateContentVisible === VOID ? this.mw4_1 : updateContentVisible; importError = importError === VOID ? this.nw4_1 : importError; titleError = titleError === VOID ? this.ow4_1 : titleError; selectedContainerStorageDir = selectedContainerStorageDir === VOID ? this.pw4_1 : selectedContainerStorageDir; metadataResult = metadataResult === VOID ? this.qw4_1 : metadataResult; compressionEnabled = compressionEnabled === VOID ? this.rw4_1 : compressionEnabled; subtitles = subtitles === VOID ? this.sw4_1 : subtitles; return $super === VOID ? this.tw9(entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles) : $super.tw9.call(this, entity, licenceOptions, storageOptions, courseBlockEditUiState, fieldsEnabled, updateContentVisible, importError, titleError, selectedContainerStorageDir, metadataResult, compressionEnabled, subtitles); }; protoOf(ContentEntryEditUiState).toString = function () { return 'ContentEntryEditUiState(entity=' + this.hw4_1 + ', licenceOptions=' + this.iw4_1 + ', storageOptions=' + this.jw4_1 + ', courseBlockEditUiState=' + this.kw4_1 + ', fieldsEnabled=' + this.lw4_1 + ', updateContentVisible=' + this.mw4_1 + ', importError=' + this.nw4_1 + ', titleError=' + this.ow4_1 + ', selectedContainerStorageDir=' + this.pw4_1 + ', metadataResult=' + this.qw4_1 + ', compressionEnabled=' + this.rw4_1 + ', subtitles=' + this.sw4_1 + ')'; }; protoOf(ContentEntryEditUiState).hashCode = function () { var result = this.hw4_1 == null ? 0 : this.hw4_1.hashCode(); result = imul(result, 31) + hashCode(this.iw4_1) | 0; result = imul(result, 31) + hashCode(this.jw4_1) | 0; result = imul(result, 31) + this.kw4_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.lw4_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mw4_1) | 0; result = imul(result, 31) + (this.nw4_1 == null ? 0 : getStringHashCode(this.nw4_1)) | 0; result = imul(result, 31) + (this.ow4_1 == null ? 0 : getStringHashCode(this.ow4_1)) | 0; result = imul(result, 31) + (this.pw4_1 == null ? 0 : hashCode(this.pw4_1)) | 0; result = imul(result, 31) + (this.qw4_1 == null ? 0 : this.qw4_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.rw4_1) | 0; result = imul(result, 31) + hashCode(this.sw4_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.hw4_1, tmp0_other_with_cast.hw4_1)) return false; if (!equals(this.iw4_1, tmp0_other_with_cast.iw4_1)) return false; if (!equals(this.jw4_1, tmp0_other_with_cast.jw4_1)) return false; if (!this.kw4_1.equals(tmp0_other_with_cast.kw4_1)) return false; if (!(this.lw4_1 === tmp0_other_with_cast.lw4_1)) return false; if (!(this.mw4_1 === tmp0_other_with_cast.mw4_1)) return false; if (!(this.nw4_1 == tmp0_other_with_cast.nw4_1)) return false; if (!(this.ow4_1 == tmp0_other_with_cast.ow4_1)) return false; if (!equals(this.pw4_1, tmp0_other_with_cast.pw4_1)) return false; if (!equals(this.qw4_1, tmp0_other_with_cast.qw4_1)) return false; if (!(this.rw4_1 === tmp0_other_with_cast.rw4_1)) return false; if (!equals(this.sw4_1, tmp0_other_with_cast.sw4_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.qwa_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getmetadata.ContentEntryGetMetadataViewModel...' call var nextValue = prevValue.twa(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_147() { this.uwa_1 = 'uri'; this.vwa_1 = 'filename'; this.wwa_1 = 'ContentEntryGetMetadata'; } var Companion_instance_196; function Companion_getInstance_164() { return Companion_instance_196; } function ContentEntryGetMetadataViewModel$slambda(this$0, $uriArg, $fileName, resultContinuation) { this.fwb_1 = this$0; this.gwb_1 = $uriArg; this.hwb_1 = $fileName; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryGetMetadataViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryGetMetadataViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.jwb_1 = this.fwb_1.pwa_1; this.kwb_1 = Companion_getInstance_3().o2r(this.gwb_1); this.lwb_1 = this.fwb_1.cqk().co7(); this.hd_1 = 1; suspendResult = this.jwb_1.zoz(this.kwb_1, this.hwb_1, this.lwb_1, ContentEntryGetMetadataViewModel$slambda$lambda(this.fwb_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.fwb_1.m4r().r45(Companion_instance_82.n4r(), metadataResult)); this.fwb_1.aql(this_0, Companion_getInstance_172().rw9_1); Companion_getInstance_114(); this.fwb_1.zqk(this_0, 'result_viewname'); Companion_getInstance_114(); this.fwb_1.zqk(this_0, 'result_key'); Companion_getInstance_123(); this.fwb_1.zqk(this_0, 'parentUid'); this.fwb_1.oqj_1.bq6('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.fwb_1.mqk().eog(strings_getInstance().kmp_1) + ' : ' + e.message; } else { if (e instanceof UnsupportedContentException) { var tmp_2 = this.fwb_1.mqk(); var tmp_3 = strings_getInstance().mmp_1; var tmp3_elvis_lhs = e.message; tmp_1 = tmp_2.fog(tmp_3, [tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs]); } else { tmp_1 = this.fwb_1.mqk().eog(strings_getInstance().cme_1) + ' : other: ' + e.message; } } var errorMessage = tmp_1; l$ret$1: do { var this_1 = this.fwb_1.qwa_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.twa(prevValue.swa_1.gp0(VOID, errorMessage)); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryGetMetadataViewModel$slambda(this.fwb_1, this.gwb_1, this.hwb_1, completion); i.iwb_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.u1m($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)).f58(); // 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.d58(tmp$ret$0, null); } else { tmp = contentEntryGetMetaDataFromUriUseCase; } contentEntryGetMetaDataFromUriUseCase = tmp; UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryGetMetadata'); this.pwa_1 = contentEntryGetMetaDataFromUriUseCase; this.qwa_1 = MutableStateFlow(new ContentEntryGetMetadataUiState()); this.rwa_1 = asStateFlow(this.qwa_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.dqk(); launch(tmp_3, VOID, VOID, ContentEntryGetMetadataViewModel$slambda_0(this, uriArg, fileName, null)); } function ContentEntryGetMetadataUiState(status) { status = status === VOID ? new ContentEntryGetMetadataStatus() : status; this.swa_1 = status; } protoOf(ContentEntryGetMetadataUiState).twa = function (status) { return new ContentEntryGetMetadataUiState(status); }; protoOf(ContentEntryGetMetadataUiState).toString = function () { return 'ContentEntryGetMetadataUiState(status=' + this.swa_1 + ')'; }; protoOf(ContentEntryGetMetadataUiState).hashCode = function () { return this.swa_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.swa_1.equals(tmp0_other_with_cast.swa_1)) return false; return true; }; function _get_getSubtitleTrackUseCase__ux9onr($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jwc_1; getSubtitleTrackUseCase$factory_0(); return this_0.t2(); } function Companion_148() { this.kwc_1 = 'GetSubtitle'; } var Companion_instance_197; function Companion_getInstance_165() { return Companion_instance_197; } function GetSubtitleViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.twc_1 = this$0; this.uwc_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(GetSubtitleViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(GetSubtitleViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.twc_1); var tmp_1 = Companion_getInstance_3(); var tmp_2 = tmp_1.o2r(require_0(this.uwc_1, 'uri')); suspendResult = tmp_0.mp0(tmp_2, require_0(this.uwc_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_123(); this_0.s('entityState', this.twc_1.m4r().r45(Companion_instance_81.n4r(), subtitleTrack)); Companion_getInstance_123(); this.twc_1.zqk(this_0, 'result_viewname'); Companion_getInstance_123(); this.twc_1.zqk(this_0, 'result_key'); this.twc_1.oqj_1.bq6('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.twc_1.hwc_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.xwc(this.twc_1.mqk().eog(strings_getInstance().cme_1) + ': ' + e.message); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new GetSubtitleViewModel$slambda(this.twc_1, this.uwc_1, completion); i.vwc_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function GetSubtitleViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'GetSubtitle'); this.hwc_1 = MutableStateFlow(new GetSubtitleUiState()); this.iwc_1 = asStateFlow(this.hwc_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.cqk().co7(); var trigger = this.d57(); // 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.h57(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.jwc_1 = Instance(this_0, tmp$ret$3, null).a5d(this, getSubtitleTrackUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.getsubtitle.GetSubtitleViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().zn7_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.dqk(); launch(tmp_3, VOID, VOID, GetSubtitleViewModel$slambda_0(this, savedStateHandle, null)); } function GetSubtitleUiState(error) { error = error === VOID ? null : error; this.wwc_1 = error; } protoOf(GetSubtitleUiState).xwc = function (error) { return new GetSubtitleUiState(error); }; protoOf(GetSubtitleUiState).toString = function () { return 'GetSubtitleUiState(error=' + this.wwc_1 + ')'; }; protoOf(GetSubtitleUiState).hashCode = function () { return this.wwc_1 == null ? 0 : getStringHashCode(this.wwc_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.wwc_1 == tmp0_other_with_cast.wwc_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.vwd_1; httpClient$factory_4(); return this_0.t2(); } function Companion_149() { this.ywd_1 = 'ContentEntryImportLink'; this.zwd_1 = 'importUrl'; } var Companion_instance_198; function Companion_getInstance_166() { return Companion_instance_198; } function ContentEntryImportLinkViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.awe(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function ContentEntryImportLinkViewModel$onChangeLink$slambda(this$0, $url, resultContinuation) { this.jwe_1 = this$0; this.kwe_1 = $url; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportLinkViewModel$onChangeLink$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.jwe_1.mqj_1.qqf('importUrl', this.kwe_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).v1m = function ($this$launch, completion) { var i = new ContentEntryImportLinkViewModel$onChangeLink$slambda(this.jwe_1, this.kwe_1, completion); i.lwe_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryImportLinkViewModel$onClickNext$slambda(this$0, resultContinuation) { this.uwe_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportLinkViewModel$onClickNext$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ywe_1 = _get_httpClient__2ty1zc_1(this.uwe_1); var tmp_1 = this; tmp_1.zwe_1 = this.ywe_1; var tmp_2 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.uwe_1.cqk().co7().nnp_1 + 'api/import/validateLink'); parameter(this_0, 'url', this.uwe_1.twd_1.t2().fwf_1); set_expectSuccess(this_0, false); tmp_2.awf_1 = this_0; this.awf_1.w38_1 = Companion_getInstance().m2x_1; var tmp_3 = this; tmp_3.bwf_1 = this.zwe_1; var tmp_4 = this; tmp_4.cwf_1 = this.awf_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.cwf_1, this.bwf_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.dwf_1 = suspendResult; if (!this.dwf_1.j3b().equals(Companion_getInstance_0().f2y_1)) { l$ret$1: do { var this_1 = this.uwe_1.twd_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.iwf(VOID, this.uwe_1.mqk().eog(strings_getInstance().jmp_1), true); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.xwe_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.ewf_1 = this.uwe_1.m4r(); this.hd_1 = 5; suspendResult = bodyAsText(this.dwf_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var string = suspendResult; var this_2 = this.ewf_1.t45(); var this_3 = serializer(this_2, createKType(getKClass(MetadataResult), arrayOf([]), false)); var metadataResult = this.ewf_1.s45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), string); var tmp_6 = this; var tmp_7; if (this.uwe_1.xwd_1 === 'ContentEntryEdit') { var this_4 = LinkedHashMap_init_$Create$(); this_4.s('metadata', this.uwe_1.m4r().r45(Companion_instance_82.n4r(), metadataResult)); this.uwe_1.zqk(this_4, 'courseBlock'); this.uwe_1.zqk(this_4, 'goToOnContentEntryDone'); Companion_getInstance_114(); this.uwe_1.zqk(this_4, 'result_viewname'); Companion_getInstance_114(); this.uwe_1.zqk(this_4, 'result_key'); Companion_getInstance_123(); this.uwe_1.zqk(this_4, 'parentUid'); Companion_getInstance_123(); this_4.s('popUpToOnFinish', 'ContentEntryImportLink'); this.uwe_1.oqj_1.fp3('ContentEntryEdit', this_4.f3()); tmp_7 = Unit_instance; } else { this.uwe_1.xqp(metadataResult); tmp_7 = Unit_instance; } tmp_6.wwe_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.uwe_1.twd_1; while (true) { var prevValue_0 = this_5.t2(); var nextValue_0 = prevValue_0.iwf(VOID, VOID, true); if (this_5.y1k(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.uwe_1.kqk().qq3(new Snack(this.uwe_1.mqk().eog(strings_getInstance().cme_1) + (': ' + e))); tmp_9.wwe_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.uwe_1.twd_1; while (true) { var prevValue_1 = this_6.t2(); var nextValue_1 = prevValue_1.iwf(VOID, VOID, true); if (this_6.y1k(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.uwe_1.twd_1; while (true) { var prevValue_2 = this_7.t2(); var nextValue_2 = prevValue_2.iwf(VOID, VOID, true); if (this_7.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryImportLinkViewModel$onClickNext$slambda(this.uwe_1, completion); i.vwe_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryImportLinkViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'ContentEntryImportLink'); this.twd_1 = MutableStateFlow(new ContentEntryImportLinkUiState()); this.uwd_1 = asStateFlow(this.twd_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.vwd_1 = Instance(this, tmp$ret$0, null).a5d(this, httpClient$factory_3()); this.wwd_1 = null; var tmp_1 = this; Companion_getInstance_123(); tmp_1.xwd_1 = savedStateHandle.ba('next'); var tmp_2 = this.mqk().eog(strings_getInstance().xmo_1); var tmp_3 = this.mqk().eog(strings_getInstance().hmf_1); this.qqj_1.x1k(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.twd_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.iwf(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(ContentEntryImportLinkViewModel).jwf = function (url) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.twd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onChangeLink.' call var nextValue = prevValue.iwf(url, !(url === prevValue.fwf_1) ? null : prevValue.gwf_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.wwd_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.dqk(); tmp.wwd_1 = launch(tmp_0, VOID, VOID, ContentEntryImportLinkViewModel$onChangeLink$slambda_0(this, url, null)); }; protoOf(ContentEntryImportLinkViewModel).awe = function () { if (!this.twd_1.t2().hwf_1) { return Unit_instance; } if (isBlank(this.twd_1.t2().fwf_1)) { Napier_getInstance().i5e('link is blank'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.twd_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.importlink.ContentEntryImportLinkViewModel.onClickNext.' call var nextValue = prevValue.iwf(VOID, this.mqk().eog(strings_getInstance().hmj_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.twd_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.iwf(VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.wwd_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } this.mqj_1.qqf('importUrl', this.twd_1.t2().fwf_1); var tmp = this.dqk(); 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.fwf_1 = url; this.gwf_1 = linkError; this.hwf_1 = fieldsEnabled; } protoOf(ContentEntryImportLinkUiState).kwf = function (url, linkError, fieldsEnabled) { return new ContentEntryImportLinkUiState(url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).iwf = function (url, linkError, fieldsEnabled, $super) { url = url === VOID ? this.fwf_1 : url; linkError = linkError === VOID ? this.gwf_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.hwf_1 : fieldsEnabled; return $super === VOID ? this.kwf(url, linkError, fieldsEnabled) : $super.kwf.call(this, url, linkError, fieldsEnabled); }; protoOf(ContentEntryImportLinkUiState).toString = function () { return 'ContentEntryImportLinkUiState(url=' + this.fwf_1 + ', linkError=' + this.gwf_1 + ', fieldsEnabled=' + this.hwf_1 + ')'; }; protoOf(ContentEntryImportLinkUiState).hashCode = function () { var result = getStringHashCode(this.fwf_1); result = imul(result, 31) + (this.gwf_1 == null ? 0 : getStringHashCode(this.gwf_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.hwf_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.fwf_1 === tmp0_other_with_cast.fwf_1)) return false; if (!(this.gwf_1 == tmp0_other_with_cast.gwf_1)) return false; if (!(this.hwf_1 === tmp0_other_with_cast.hwf_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).gav_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).tav_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.lwf_1 : THROW_CCE(); if (!$this.equals(tmp0_other_with_cast)) return false; return true; } function ContentEntryListItemUiState(contentEntry) { this.lwf_1 = contentEntry; } protoOf(ContentEntryListItemUiState).toString = function () { return ContentEntryListItemUiState__toString_impl_2mjydu(this.lwf_1); }; protoOf(ContentEntryListItemUiState).hashCode = function () { return ContentEntryListItemUiState__hashCode_impl_odpv6p(this.lwf_1); }; protoOf(ContentEntryListItemUiState).equals = function (other) { return ContentEntryListItemUiState__equals_impl_d3bksl(this.lwf_1, other); }; function get_listItemUiState_0(_this__u8e3s4) { return _ContentEntryListItemUiState___init__impl__r5o9qy(_this__u8e3s4); } function ContentEntryListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.uwf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda$slambda).yqb = function (hasNewContentPermission, $completion) { var tmp = this.zqb(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.yqb((!(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.uwf_1.hqs_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(prevValue.lwg_1 === this.vwf_1)) { tmp_0 = prevValue.nwg(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.vwf_1); } else { tmp_0 = prevValue; } var nextValue = tmp_0; if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.uwf_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(prevValue_0.mq2_1.hq3(this.vwf_1 ? !this.uwf_1.twh_1 : false)); if (this_1.y1k(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).zqb = function (hasNewContentPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda$slambda(this.uwf_1, completion); i.vwf_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.yqb(hasNewContentPermission, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda$slambda(this$0, $hasPermissionFlow, resultContinuation) { this.ewi_1 = this$0; this.fwi_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.ewi_1.pwh_1) { this.hd_1 = 2; var tmp_0 = ContentEntryListViewModel$slambda$slambda$slambda_0(this.ewi_1, null); suspendResult = this.fwi_1.h1h(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).l78 = function (completion) { return new ContentEntryListViewModel$slambda$slambda(this.ewi_1, this.fwi_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.j87($completion); }; l.$arity = 0; return l; } function ContentEntryListViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.owi_1 = $savedStateHandle; this.pwi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_1).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.qwi_1.nq6_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.rwi_1 = tmp_2; var tmp_3 = this; var tmp1_safe_receiver = this.owi_1.ba('entriesToMove'); var tmp_4; if (tmp1_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.pwi_1.m4r().s45(ListSerializer(Companion_instance_201.n4r()), 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.swi_1 = tmp_5; this.id_1 = 2; this.hd_1 = 1; suspendResult = _get_moveContentEntriesUseCase__fb3hfi(this.pwi_1).rp6(this.rwi_1, toSet(this.swi_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pwi_1.kqk().qq3(new Snack(this.pwi_1.mqk().fog(strings_getInstance().dn5_1, [this.swi_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().m5e('Could not move entries', e); var tmp_7 = this.pwi_1.kqk(); var tmp3_elvis_lhs = e.message; tmp_7.qq3(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.pwi_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).hq7 = function (result, completion) { var i = new ContentEntryListViewModel$slambda$slambda_1(this.owi_1, this.pwi_1, completion); i.qwi_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.gq7(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).dwj = function (uiState, hasPermission, $completion) { var tmp = this.ewj(uiState, hasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).um = function (p1, p2, $completion) { var tmp = p1 instanceof ContentEntryListUiState ? p1 : THROW_CCE(); return this.dwj(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.bwj_1, this.cwj_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ContentEntryListViewModel$slambda$slambda_3).ewj = function (uiState, hasPermission, completion) { var i = new ContentEntryListViewModel$slambda$slambda_3(completion); i.bwj_1 = uiState; i.cwj_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.dwj(uiState, hasPermission, $completion); }; l.$arity = 2; return l; } function ContentEntryListViewModel$slambda$slambda_5(this$0, resultContinuation) { this.nwj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda$slambda_5).pwj = function (it, $completion) { var tmp = this.qwj(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.pwj(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.owj_1.w6_1.iwg_1.c1()) { tmp_0 = this.owj_1.x6_1; } else { tmp_0 = false; } var showMoveIcon = tmp_0; if (!(showMoveIcon === !this.nwj_1.qqj_1.t2().xq2_1.c1())) { l$ret$1: do { var this_0 = this.nwj_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (showMoveIcon) { var tmp_2 = AppStateIcon_MOVE_getInstance(); var tmp_3 = this.nwj_1.mqk().eog(strings_getInstance().rmi_1); var tmp_4 = new AppActionButton(tmp_2, tmp_3, ContentEntryListViewModel$onClickMoveAction$ref(this.nwj_1), 'action_move'); var tmp_5 = AppStateIcon_DELETE_getInstance(); var tmp_6 = this.nwj_1.mqk().eog(strings_getInstance().wme_1); tmp_1 = listOf([tmp_4, new AppActionButton(tmp_5, tmp_6, ContentEntryListViewModel$onClickDeleteAction$ref(this.nwj_1), 'action_delete')]); } else { tmp_1 = emptyList(); } var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1); if (this_0.y1k(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).qwj = function (it, completion) { var i = new ContentEntryListViewModel$slambda$slambda_5(this.nwj_1, completion); i.owj_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.pwj(it, $completion); }; l.$arity = 1; return l; } function _get_moveContentEntriesUseCase__fb3hfi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uwh_1; moveContentEntriesUseCase$factory_0(); return this_0.t2(); } function _get_deleteEntriesUseCase__hkwqc9($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vwh_1; deleteEntriesUseCase$factory_0(); return this_0.t2(); } function setSelectedItems($this, selectedEntries) { $this.mqj_1.qqf('selectedEntries', $this.m4r().r45(ListSerializer(Companion_instance_201.n4r()), toList(selectedEntries))); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.setSelectedItems.' call var nextValue = prevValue.nwg(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, selectedEntries); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var numItemsSelected = $this.hqs_1.t2().iwg_1.u(); var hasSelectedItems = numItemsSelected > 0; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = $this.qqj_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.mqk().rwj(plurals_getInstance().vnn_1, numItemsSelected); } else { tmp = $this.swh_1; } var tmp1_title = tmp; var tmp_0; if (hasSelectedItems) { var tmp_1 = AppStateIcon_CLOSE_getInstance(); var tmp_2 = $this.mqk().eog(strings_getInstance().lni_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.bq3(VOID, VOID, tmp1_title, VOID, VOID, hasSelectedItems, tmp0_userAccountIconVisible, VOID, VOID, VOID, VOID, VOID, tmp2_leadingActionButton, tmp3_appBarColors); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } function selectDestinationToMoveEntries($this, entries) { $this.mqj_1.qqf('entriesToMove', $this.m4r().r45(ListSerializer(Companion_instance_201.n4r()), toList(entries))); var tmp = Companion_instance_28.n4r(); $this.uqk('PickContentEntry', 'moveToDestinationResult', null, tmp, mapOf([to('listMode', ListViewMode_PICKER_getInstance().mqg_1), to('selectFolder', 'true')])); } function onClickMoveAction($this) { selectDestinationToMoveEntries($this, $this.hqs_1.t2().iwg_1); } function launchDeleteEntries($this, entries) { var tmp = $this.dqk(); launch(tmp, VOID, VOID, ContentEntryListViewModel$launchDeleteEntries$slambda_0($this, entries, null)); } function onClickDeleteAction($this) { launchDeleteEntries($this, $this.hqs_1.t2().iwg_1); } function Companion_150() { Companion_instance_199 = this; this.swj_1 = 'ContentEntries'; this.twj_1 = 'ContentEntryListHome'; this.uwj_1 = 'PickContentEntry'; this.vwj_1 = listOf(['ContentEntries', 'ContentEntryListHome', 'PickContentEntry']); this.wwj_1 = 'filter'; this.xwj_1 = 1; this.ywj_1 = 2; this.zwj_1 = 3; this.awk_1 = 4; this.bwk_1 = new Long(1, 0); this.cwk_1 = 'chipId'; this.dwk_1 = 'moveToDestinationResult'; this.ewk_1 = 'selectFolder'; this.fwk_1 = 'selectedEntries'; this.gwk_1 = 'entriesToMove'; } var Companion_instance_199; function Companion_getInstance_167() { if (Companion_instance_199 == null) new Companion_150(); return Companion_instance_199; } function sam$kotlinx_coroutines_flow_FlowCollector$0_26(function_0) { this.hwk_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_26).t1d = function (value, $completion) { return this.hwk_1(value, $completion); }; function createContextMenuItemsForEntry$entriesToAction(this$0, rightClickedItem) { var selectedEntries = this$0.hqs_1.t2().iwg_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.hqs_1.t2().ywf_1) { case 2: tmp = this$0.iqk().v7d().oau(this$0.eqk()); break; case 3: tmp = this$0.iqk().v7d().nau(this$0.eqk()); break; case 4: tmp = this$0.iqk().v7d().mau(this$0.eqk(), this$0.owh_1, new Long(0, 0), new Long(0, 0), this$0.hqs_1.t2().dwg_1.gq9_1, false); break; case 1: tmp = this$0.iqk().v7d().mau(this$0.eqk(), this$0.owh_1, new Long(0, 0), new Long(0, 0), this$0.hqs_1.t2().dwg_1.gq9_1, false); break; default: tmp = new EmptyPagingSource(); break; } return tmp; }; } function ContentEntryListViewModel$createContextMenuItemsForEntry$ref($boundThis) { var l = function (p0) { return $boundThis.iwk(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.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel...' call var nextValue = prevValue.nwg(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ContentEntryListViewModel$slambda(this$0, resultContinuation) { this.rwk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ContentEntryListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.rwk_1.nqk() == null) ? !this.rwk_1.qwh_1 : false) { this.twk_1 = this.rwk_1.mqk().eog(strings_getInstance().un9_1); this.hd_1 = 2; continue $sm; } else { if (this.rwk_1.owh_1.equals(new Long(1, 0))) { this.twk_1 = this.rwk_1.mqk().eog(strings_getInstance().hne_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.rwk_1.iqk().v7d().lau(this.rwk_1.owh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } case 1: var tmp0_elvis_lhs = suspendResult; this.twk_1 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; this.hd_1 = 2; continue $sm; case 2: var ARGUMENT = this.twk_1; this.rwk_1.swh_1 = ARGUMENT; l$ret$1: do { var this_0 = this.rwk_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(VOID, VOID, this.rwk_1.swh_1); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda(this.rwk_1, completion); i.swk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_1(this$0, $hasPermissionFlow, resultContinuation) { this.cwl_1 = this$0; this.dwl_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.cwl_1.hqs_1, ContentEntryListViewModel$slambda$slambda_0(this.cwl_1, this.dwl_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).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_1(this.cwl_1, this.dwl_1, completion); i.ewl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_3(this$0, $savedStateHandle, resultContinuation) { this.nwl_1 = this$0; this.owl_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nwl_1.qqk(this.nwl_1.lqk(), 'moveToDestinationResult'); var tmp_1 = ContentEntryListViewModel$slambda$slambda_2(this.owl_1, this.nwl_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_3(this.nwl_1, this.owl_1, completion); i.pwl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel$slambda_5(this$0, $hasPermissionFlow, resultContinuation) { this.ywl_1 = this$0; this.zwl_1 = $hasPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ywl_1.hqs_1, this.zwl_1, ContentEntryListViewModel$slambda$slambda_4(null)); var tmp_1 = ContentEntryListViewModel$slambda$slambda_6(this.ywl_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$slambda_5(this.ywl_1, this.zwl_1, completion); i.awm_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.u1m($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.jwm_1 = this$0; this.kwm_1 = $entries; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryListViewModel$launchDeleteEntries$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.jwm_1).xoz(this.kwm_1, this.jwm_1.eqk(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: setSelectedItems(this.jwm_1, emptySet()); this.jwm_1.kqk().qq3(new Snack(this.jwm_1.mqk().rwj(plurals_getInstance().wnn_1, this.kwm_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).v1m = function ($this$launch, completion) { var i = new ContentEntryListViewModel$launchDeleteEntries$slambda(this.jwm_1, this.kwm_1, completion); i.lwm_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ContentEntryListViewModel(di, savedStateHandle, destName) { Companion_getInstance_167(); UstadListViewModel.call(this, di, savedStateHandle, new ContentEntryListUiState(), destName); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('parentUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.owh_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.pwh_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.qwh_1 = tmp1_elvis_lhs_0 == null ? false : tmp1_elvis_lhs_0; var tmp_3 = this; tmp_3.rwh_1 = ContentEntryListViewModel$pagingSourceFactory$lambda(this); this.swh_1 = ''; this.twh_1 = this.qwh_1 ? this.mqs().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.uwh_1 = Instance(this_0, tmp$ret$0, null).a5d(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.vwh_1 = Instance(this_1, tmp$ret$2, null).a5d(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.m4r().s45(ListSerializer(Companion_instance_201.n4r()), 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.hqs_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp0_contentEntryList = this.rwh_1; var tmp1_showSelectFolderButton = this.twh_1; var tmp2_contextMenuItems = ContentEntryListViewModel$createContextMenuItemsForEntry$ref(this); var nextValue = prevValue.nwg(VOID, tmp0_contentEntryList, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, savedStateSelectedEntries, tmp1_showSelectFolderButton, tmp2_contextMenuItems); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.qqj_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.' call var tmp_9 = this.mqk().eog(strings_getInstance().umz_1); var tmp_10 = FabIcon_ADD_getInstance(); var nextValue_0 = prevValue_0.bq3(new FabUiState(false, tmp_9, tmp_10, ContentEntryListViewModel$lambda(this)), VOID, VOID, VOID, this.mqs().equals(ListViewMode_PICKER_getInstance())); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } if (this.pwh_1 ? this.owh_1.equals(new Long(1, 0)) : false) { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.hqs_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().in9_1, 2), new MessageIdOption2(strings_getInstance().fng_1, 3), new MessageIdOption2(strings_getInstance().hne_1, 4)]); var nextValue_1 = prevValue_1.nwg(VOID, VOID, tmp2_selectedChipId, tmp3_filterOptions, VOID, VOID, VOID, VOID, false, true, true); if (this_4.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } var tmp_11 = this.iqk().p7f(); var tmp_12 = this.cqk().ao7().hku_1; PermissionFlags_getInstance(); var hasPermissionFlow = shareIn(tmp_11.khw(tmp_12, new Long(65536, 0)), this.dqk(), Companion_getInstance_12().v1h()); var tmp_13 = this.dqk(); launch(tmp_13, VOID, VOID, ContentEntryListViewModel$slambda_0(this, null)); var tmp_14 = this.dqk(); launch(tmp_14, VOID, VOID, ContentEntryListViewModel$slambda_2(this, hasPermissionFlow, null)); var tmp_15 = this.dqk(); launch(tmp_15, VOID, VOID, ContentEntryListViewModel$slambda_4(this, savedStateHandle, null)); var tmp_16 = this.dqk(); launch(tmp_16, VOID, VOID, ContentEntryListViewModel$slambda_6(this, hasPermissionFlow, null)); } protoOf(ContentEntryListViewModel).iwk = function (entry) { var uiStateVal = this.hqs_1.t2(); var tmp; if (uiStateVal.lwg_1 ? this.mqs().equals(ListViewMode_BROWSER_getInstance()) : false) { var rightClickedItem = asSelectedItem(entry); if (!uiStateVal.iwg_1.a1(rightClickedItem)) { setSelectedItems(this, emptySet()); } var tmp_0 = this.mqk().eog(strings_getInstance().pni_1); var tmp_1 = new UstadContextMenuItem(tmp_0, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda(this, rightClickedItem)); var tmp_2 = this.mqk().eog(strings_getInstance().wme_1); tmp = listOf([tmp_1, new UstadContextMenuItem(tmp_2, ContentEntryListViewModel$createContextMenuItemsForEntry$lambda_0(this, rightClickedItem))]); } else { tmp = emptyList(); } return tmp; }; protoOf(ContentEntryListViewModel).bqt = function (searchText) { }; protoOf(ContentEntryListViewModel).cqt = function () { }; protoOf(ContentEntryListViewModel).tv4 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onDismissCreateNewOptions.' call var nextValue = prevValue.nwg(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ContentEntryListViewModel).mwm = function () { this.tv4(); // 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_123(); this_0.s('parentUid', this.owh_1.toString()); var tmp$ret$2 = this_0.f3(); this.uqt('ContentEntryEdit', tmp$ret$2); }; protoOf(ContentEntryListViewModel).nwm = function () { this.tv4(); // 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_123(); this_0.s('parentUid', this.owh_1.toString()); Companion_getInstance_123(); this_0.s('next', 'ContentEntryEdit'); this.aql(this_0, Companion_getInstance_172().rw9_1); var tmp$ret$2 = this_0.f3(); this.uqt('ContentEntryImportLink', tmp$ret$2); }; protoOf(ContentEntryListViewModel).owm = function (fileUri, fileName) { this.tv4(); // 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_123(); this_0.s('parentUid', this.owh_1.toString()); this.aql(this_0, Companion_getInstance_172().rw9_1); var tmp$ret$2 = this_0.f3(); this.uqt('ContentEntryGetMetadata', tmp$ret$2); }; protoOf(ContentEntryListViewModel).pwm = function (entry) { if (entry == null) return Unit_instance; var tmp0_safe_receiver = this.mqj_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.tav_1 ? this.twh_1 : false) return Unit_instance; else { var tmp; if (this.mqs().equals(ListViewMode_PICKER_getInstance()) ? entry.tav_1 : false) { tmp = goToOnContentEntryEdit === 1; } else { tmp = false; } if (tmp) { Companion_getInstance_172(); var tmp2_nextViewName = 'CourseBlockEdit'; var tmp3_key = 'courseblock'; var tmp4_serializer = Companion_getInstance_13().n4r(); // 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.aql(this_0, Companion_getInstance_172().rw9_1); Companion_getInstance_172(); this_0.s('SelectedContentEntry', this.m4r().r45(Companion_instance_41.n4r(), new ContentEntryAndContentJob(entry))); var tmp5_args = this_0.f3(); this.uqk(tmp2_nextViewName, tmp3_key, null, tmp4_serializer, tmp5_args, VOID, false); } else { if (entry.tav_1) { Companion_getInstance_158(); Companion_getInstance_114(); var tmp_0 = to('entityUid', entry.eav_1.toString()); Companion_getInstance_123(); this.oqj_1.fp3('ContentEntry', mapOf([tmp_0, to('parentUid', this.owh_1.toString())])); } else { var tmp_1; if (this.nqj_1 === 'ContentEntryListHome') { tmp_1 = 'ContentEntries'; } else { tmp_1 = this.nqj_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_123(); this_1.s('parentUid', entry.eav_1.toString()); Companion_getInstance_114(); this.zqk(this_1, 'result_key'); Companion_getInstance_114(); this.zqk(this_1, 'result_viewname'); this.zqk(this_1, 'selectFolder'); this.zqk(this_1, 'goToOnContentEntryDone'); var tmp$ret$5 = this_1.f3(); this.oqj_1.fp3(tmp_2, tmp$ret$5); } } } }; protoOf(ContentEntryListViewModel).qwm = 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.eav_1 = this.owh_1; this.xqp(this_0); }; protoOf(ContentEntryListViewModel).rwm = function (entry, selected) { var currentSelection = this.hqs_1.t2().iwg_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.hay_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.eav_1; if (!element.uoz_1.equals(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)) { destination.i1(element); } } tmp = toSet(destination); } setSelectedItems(this, tmp); }; protoOf(ContentEntryListViewModel).ast = function (filterOption) { // Inline function 'kotlin.takeIf' call var this_0 = this.hqs_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListViewModel.onClickFilterChip.' call if (!(this_0.t2().ywf_1 === filterOption.eq4_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.nwg(VOID, VOID, filterOption.eq4_1); if (tmp0_safe_receiver.y1k(prevValue, nextValue)) { break $l$block; } } } } this.mqj_1.qqf('chipId', filterOption.eq4_1.toString()); this.jqs_1.i1h(new RefreshCommand()); }; function Companion_151() { Companion_instance_200 = this; var tmp = this; var tmp_0 = strings_getInstance().jmi_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().jmi_1; tmp.swm_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_200; function Companion_getInstance_168() { if (Companion_instance_200 == null) new Companion_151(); return Companion_instance_200; } 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_168(); 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_168().swm_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.wwf_1 = filterMode; this.xwf_1 = contentEntryList; this.ywf_1 = selectedChipId; this.zwf_1 = filterOptions; this.awg_1 = showHiddenEntries; this.bwg_1 = onlyFolderFilter; this.cwg_1 = sortOptions; this.dwg_1 = activeSortOption; this.ewg_1 = createNewFolderItemVisible; this.fwg_1 = importFromLinkItemVisible; this.gwg_1 = importFromFileItemVisible; this.hwg_1 = createNewOptionsVisible; this.iwg_1 = selectedEntries; this.jwg_1 = showSelectFolderButton; this.kwg_1 = contextMenuItems; this.lwg_1 = hasWritePermission; var tmp_2 = this; // Inline function 'kotlin.collections.map' call var this_0 = this.iwg_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.uoz_1; destination.i1(tmp$ret$1); } tmp_2.mwg_1 = toSet(destination); } protoOf(ContentEntryListUiState).twm = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.zwf_1.c1(); }; protoOf(ContentEntryListUiState).uwm = 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).nwg = function (filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission, $super) { filterMode = filterMode === VOID ? this.wwf_1 : filterMode; contentEntryList = contentEntryList === VOID ? this.xwf_1 : contentEntryList; selectedChipId = selectedChipId === VOID ? this.ywf_1 : selectedChipId; filterOptions = filterOptions === VOID ? this.zwf_1 : filterOptions; showHiddenEntries = showHiddenEntries === VOID ? this.awg_1 : showHiddenEntries; onlyFolderFilter = onlyFolderFilter === VOID ? this.bwg_1 : onlyFolderFilter; sortOptions = sortOptions === VOID ? this.cwg_1 : sortOptions; activeSortOption = activeSortOption === VOID ? this.dwg_1 : activeSortOption; createNewFolderItemVisible = createNewFolderItemVisible === VOID ? this.ewg_1 : createNewFolderItemVisible; importFromLinkItemVisible = importFromLinkItemVisible === VOID ? this.fwg_1 : importFromLinkItemVisible; importFromFileItemVisible = importFromFileItemVisible === VOID ? this.gwg_1 : importFromFileItemVisible; createNewOptionsVisible = createNewOptionsVisible === VOID ? this.hwg_1 : createNewOptionsVisible; selectedEntries = selectedEntries === VOID ? this.iwg_1 : selectedEntries; showSelectFolderButton = showSelectFolderButton === VOID ? this.jwg_1 : showSelectFolderButton; contextMenuItems = contextMenuItems === VOID ? this.kwg_1 : contextMenuItems; hasWritePermission = hasWritePermission === VOID ? this.lwg_1 : hasWritePermission; return $super === VOID ? this.uwm(filterMode, contentEntryList, selectedChipId, filterOptions, showHiddenEntries, onlyFolderFilter, sortOptions, activeSortOption, createNewFolderItemVisible, importFromLinkItemVisible, importFromFileItemVisible, createNewOptionsVisible, selectedEntries, showSelectFolderButton, contextMenuItems, hasWritePermission) : $super.uwm.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.wwf_1 + ', contentEntryList=' + this.xwf_1 + ', selectedChipId=' + this.ywf_1 + ', filterOptions=' + this.zwf_1 + ', showHiddenEntries=' + this.awg_1 + ', onlyFolderFilter=' + this.bwg_1 + ', sortOptions=' + this.cwg_1 + ', activeSortOption=' + this.dwg_1 + ', createNewFolderItemVisible=' + this.ewg_1 + ', importFromLinkItemVisible=' + this.fwg_1 + ', importFromFileItemVisible=' + this.gwg_1 + ', createNewOptionsVisible=' + this.hwg_1 + ', selectedEntries=' + this.iwg_1 + ', showSelectFolderButton=' + this.jwg_1 + ', contextMenuItems=' + this.kwg_1 + ', hasWritePermission=' + this.lwg_1 + ')'; }; protoOf(ContentEntryListUiState).hashCode = function () { var result = this.wwf_1; result = imul(result, 31) + hashCode(this.xwf_1) | 0; result = imul(result, 31) + this.ywf_1 | 0; result = imul(result, 31) + hashCode(this.zwf_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.awg_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.bwg_1) | 0; result = imul(result, 31) + hashCode(this.cwg_1) | 0; result = imul(result, 31) + this.dwg_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.ewg_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fwg_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.gwg_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hwg_1) | 0; result = imul(result, 31) + hashCode(this.iwg_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jwg_1) | 0; result = imul(result, 31) + hashCode(this.kwg_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.lwg_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.wwf_1 === tmp0_other_with_cast.wwf_1)) return false; if (!equals(this.xwf_1, tmp0_other_with_cast.xwf_1)) return false; if (!(this.ywf_1 === tmp0_other_with_cast.ywf_1)) return false; if (!equals(this.zwf_1, tmp0_other_with_cast.zwf_1)) return false; if (!(this.awg_1 === tmp0_other_with_cast.awg_1)) return false; if (!(this.bwg_1 === tmp0_other_with_cast.bwg_1)) return false; if (!equals(this.cwg_1, tmp0_other_with_cast.cwg_1)) return false; if (!this.dwg_1.equals(tmp0_other_with_cast.dwg_1)) return false; if (!(this.ewg_1 === tmp0_other_with_cast.ewg_1)) return false; if (!(this.fwg_1 === tmp0_other_with_cast.fwg_1)) return false; if (!(this.gwg_1 === tmp0_other_with_cast.gwg_1)) return false; if (!(this.hwg_1 === tmp0_other_with_cast.hwg_1)) return false; if (!equals(this.iwg_1, tmp0_other_with_cast.iwg_1)) return false; if (!(this.jwg_1 === tmp0_other_with_cast.jwg_1)) return false; if (!equals(this.kwg_1, tmp0_other_with_cast.kwg_1)) return false; if (!(this.lwg_1 === tmp0_other_with_cast.lwg_1)) return false; return true; }; function Companion_152() { } protoOf(Companion_152).n4r = function () { return $serializer_getInstance_71(); }; var Companion_instance_201; function Companion_getInstance_169() { return Companion_instance_201; } function $serializer_59() { $serializer_instance_59 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.contententry.list.ContentEntryListSelectedItem', this, 3); tmp0_serialDesc.t4f('contentEntryUid', false); tmp0_serialDesc.t4f('contentEntryParentChildJoinUid', false); tmp0_serialDesc.t4f('parentContentEntryUid', false); this.vwm_1 = tmp0_serialDesc; } protoOf($serializer_59).q44 = function () { return this.vwm_1; }; protoOf($serializer_59).k4g = 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_59).s44 = function (decoder) { var tmp0_desc = this.vwm_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.i48(tmp0_desc); if (tmp7_input.x48()) { tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.o48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.o48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.j48(tmp0_desc); return ContentEntryListSelectedItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_59).wwm = function (encoder, value) { var tmp0_desc = this.vwm_1; var tmp1_output = encoder.i48(tmp0_desc); tmp1_output.s49(tmp0_desc, 0, value.uoz_1); tmp1_output.s49(tmp0_desc, 1, value.voz_1); tmp1_output.s49(tmp0_desc, 2, value.woz_1); tmp1_output.j48(tmp0_desc); }; protoOf($serializer_59).r44 = function (encoder, value) { return this.wwm(encoder, value instanceof ContentEntryListSelectedItem ? value : THROW_CCE()); }; var $serializer_instance_59; function $serializer_getInstance_71() { if ($serializer_instance_59 == null) new $serializer_59(); return $serializer_instance_59; } function ContentEntryListSelectedItem_init_$Init$(seen1, contentEntryUid, contentEntryParentChildJoinUid, parentContentEntryUid, serializationConstructorMarker, $this) { if (!(7 === (7 & seen1))) { throwMissingFieldException(seen1, 7, $serializer_getInstance_71().vwm_1); } $this.uoz_1 = contentEntryUid; $this.voz_1 = contentEntryParentChildJoinUid; $this.woz_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.uoz_1 = contentEntryUid; this.voz_1 = contentEntryParentChildJoinUid; this.woz_1 = parentContentEntryUid; } protoOf(ContentEntryListSelectedItem).toString = function () { return 'ContentEntryListSelectedItem(contentEntryUid=' + this.uoz_1.toString() + ', contentEntryParentChildJoinUid=' + this.voz_1.toString() + ', parentContentEntryUid=' + this.woz_1.toString() + ')'; }; protoOf(ContentEntryListSelectedItem).hashCode = function () { var result = this.uoz_1.hashCode(); result = imul(result, 31) + this.voz_1.hashCode() | 0; result = imul(result, 31) + this.woz_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.uoz_1.equals(tmp0_other_with_cast.uoz_1)) return false; if (!this.voz_1.equals(tmp0_other_with_cast.voz_1)) return false; if (!this.woz_1.equals(tmp0_other_with_cast.woz_1)) return false; return true; }; function asSelectedItem(_this__u8e3s4) { var tmp0_safe_receiver = _this__u8e3s4.hay_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.eav_1; var tmp = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp2_safe_receiver = _this__u8e3s4.jay_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.oay_1; var tmp_0 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; var tmp4_safe_receiver = _this__u8e3s4.jay_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.lay_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).gwn = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.gwn(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).env = function (db, completion) { var i = new SubtitleEditViewModel$slambda$slambda(completion); i.fwn_1 = db; return i; }; function SubtitleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SubtitleEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.gwn(db, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$slambda$slambda_1($savedStateHandle, this$0, resultContinuation) { this.pwn_1 = $savedStateHandle; this.qwn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda$slambda_1).rwn = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.rwn($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.pwn_1.ba('uri'); var tmp2_uri = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.pwn_1.ba('filename'); var tmp3_title = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp4_langCode = _get_supportedLanguagesConfig__bd0744(this.qwn_1).rpj_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).l78 = function (completion) { return new SubtitleEditViewModel$slambda$slambda_1(this.pwn_1, this.qwn_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.rwn($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.qwo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel...' call var nextValue = prevValue.vwo(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_supportedLanguagesConfig__bd0744($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.pwo_1; supportedLanguagesConfig$factory_0(); return this_0.t2(); } function Companion_153() { this.wwo_1 = 'uri'; this.xwo_1 = 'filename'; this.ywo_1 = 'SubtitleEdit'; } var Companion_instance_202; function Companion_getInstance_170() { return Companion_instance_202; } function SubtitleEditViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.zwo(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function SubtitleEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.iwp_1 = this$0; this.jwp_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SubtitleEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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_81.n4r(); var tmp_1 = SubtitleEditViewModel$slambda$slambda_0(null); var tmp_2 = SubtitleEditViewModel$slambda$slambda_2(this.jwp_1, this.iwp_1, null); suspendResult = this.iwp_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, SubtitleEditViewModel$slambda$lambda(this.iwp_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.iwp_1.qwo_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.vwo(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.iwp_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.uq2_1.cq2(true)); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new SubtitleEditViewModel$slambda(this.iwp_1, this.jwp_1, completion); i.kwp_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SubtitleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.twp_1 = $commitDelay; this.uwp_1 = $entity; this.vwp_1 = $this; this.wwp_1 = $key; this.xwp_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SubtitleEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.twp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.uwp_1 == null)) { this.hd_1 = 2; suspendResult = this.vwp_1.sqk(this.vwp_1.mqj_1, this.wwp_1, this.xwp_1, this.uwp_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).v1m = function ($this$launch, completion) { var i = new SubtitleEditViewModel$onEntityChanged$slambda(this.twp_1, this.uwp_1, this.vwp_1, this.wwp_1, this.xwp_1, completion); i.ywp_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.u1m($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.pwo_1 = Instance(this, tmp$ret$0, null).a5d(this, supportedLanguagesConfig$factory()); this.qwo_1 = MutableStateFlow(new SubtitleEditUiState()); this.rwo_1 = asSharedFlow(this.qwo_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.' call var tmp_1 = this.mqk().eog(strings_getInstance().hnm_1); var tmp_2 = this.mqk().eog(strings_getInstance().fmn_1); var nextValue = prevValue.bq3(VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(VOID, tmp_2, VOID, SubtitleEditViewModel$onClickDone$ref(this))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.dqk(); launch(tmp_3, VOID, VOID, SubtitleEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(SubtitleEditViewModel).zwp = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qwo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.contententry.subtitleedit.SubtitleEditViewModel.onEntityChanged.' call var nextValue = prevValue.vwo(entity); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_81.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver = this.tqp_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.dqk(); tmp.tqp_1 = launch(tmp_0, VOID, VOID, SubtitleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SubtitleEditViewModel).zwo = function () { this.xqp(this.qwo_1.t2().swo_1); }; function SubtitleEditUiState(entity, titleError, fieldsEnabled) { entity = entity === VOID ? null : entity; titleError = titleError === VOID ? null : titleError; fieldsEnabled = fieldsEnabled === VOID ? false : fieldsEnabled; this.swo_1 = entity; this.two_1 = titleError; this.uwo_1 = fieldsEnabled; } protoOf(SubtitleEditUiState).awq = function (entity, titleError, fieldsEnabled) { return new SubtitleEditUiState(entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).vwo = function (entity, titleError, fieldsEnabled, $super) { entity = entity === VOID ? this.swo_1 : entity; titleError = titleError === VOID ? this.two_1 : titleError; fieldsEnabled = fieldsEnabled === VOID ? this.uwo_1 : fieldsEnabled; return $super === VOID ? this.awq(entity, titleError, fieldsEnabled) : $super.awq.call(this, entity, titleError, fieldsEnabled); }; protoOf(SubtitleEditUiState).toString = function () { return 'SubtitleEditUiState(entity=' + this.swo_1 + ', titleError=' + this.two_1 + ', fieldsEnabled=' + this.uwo_1 + ')'; }; protoOf(SubtitleEditUiState).hashCode = function () { var result = this.swo_1 == null ? 0 : this.swo_1.hashCode(); result = imul(result, 31) + (this.two_1 == null ? 0 : getStringHashCode(this.two_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.uwo_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.swo_1, tmp0_other_with_cast.swo_1)) return false; if (!(this.two_1 == tmp0_other_with_cast.two_1)) return false; if (!(this.uwo_1 === tmp0_other_with_cast.uwo_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.bwq_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_154() { Companion_instance_203 = this; var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.bwq_1 = lazy(tmp_0, CourseBlockViewModelConstants$CompletionCriteria$Companion$_anonymous__1j6hl9); } protoOf(Companion_154).dk7 = 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.fwq_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_154).n4r = function () { return _get_$cachedSerializer__te6jhj_2(this); }; protoOf(Companion_154).v4g = function (typeParamsSerializers) { return this.n4r(); }; var Companion_instance_203; function Companion_getInstance_171() { CompletionCriteria_initEntries(); if (Companion_instance_203 == null) new Companion_154(); return Companion_instance_203; } 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().vn1_1; CompletionCriteria_AUTOMATIC_instance = new CompletionCriteria('AUTOMATIC', 0, tmp, 0); var tmp_0 = strings_getInstance().un1_1; CompletionCriteria_MIN_SCORE_instance = new CompletionCriteria('MIN_SCORE', 1, tmp_0, 1); var tmp_1 = strings_getInstance().wn1_1; CompletionCriteria_STUDENT_SELF_MARKS_instance = new CompletionCriteria('STUDENT_SELF_MARKS', 2, tmp_1, 2); var tmp_2 = strings_getInstance().bn2_1; CompletionCriteria_ASSIGNMENT_SUBMITTED_instance = new CompletionCriteria('ASSIGNMENT_SUBMITTED', 3, tmp_2, 100); var tmp_3 = strings_getInstance().lnc_1; CompletionCriteria_ASSIGNMENT_GRADED_instance = new CompletionCriteria('ASSIGNMENT_GRADED', 4, tmp_3, 102); Companion_getInstance_171(); } function CompletionCriteria(name, ordinal, stringResource, value) { Enum.call(this, name, ordinal); this.ewq_1 = stringResource; this.fwq_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.owq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.pwq_1.nq6_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.owq_1.nwr_1.t2().ott_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.dk4_1; this.owq_1.pwr(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.vkh(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).hq7 = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda(this.owq_1, completion); i.pwq_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.gq7(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.ywr_1 = this$0; this.zwr_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda$slambda_1).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.aws_1.nq6_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.ywr_1.nwr_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = prevValue.ott_1; var nextValue = prevValue.ztt(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk4(VOID, VOID, contentEntryResult.ek3_1, VOID, contentEntryResult.gk3_1, contentEntryResult.fk3_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.zwr_1.qqf('SavedSelectedContentEntry', this.ywr_1.m4r().r45(Companion_instance_41.n4r(), 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).hq7 = function (result, completion) { var i = new CourseBlockEditViewModel$slambda$slambda$slambda_1(this.ywr_1, this.zwr_1, completion); i.aws_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.gq7(result, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda).htv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.htv(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).env = function (it, completion) { var i = new CourseBlockEditViewModel$slambda$slambda(completion); i.jws_1 = it; return i; }; function CourseBlockEditViewModel$slambda$slambda_0(resultContinuation) { var i = new CourseBlockEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.htv(it, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, $selectedContentEntry, resultContinuation) { this.sws_1 = this$0; this.tws_1 = $savedStateHandle; this.uws_1 = $selectedContentEntry; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_1).rtv = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.rtv($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.sws_1.gqk()); suspendResult = tmp_0.o62(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var newUid = suspendResult; var this_0 = new CourseBlock(); this_0.t7x_1 = newUid; this_0.j7y_1 = true; var tmp_1 = this_0; var tmp0_safe_receiver = this.tws_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.u7x_1 = tmp_2; var tmp_3 = this_0; var tmp2_safe_receiver = this.uws_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ek3_1; tmp_3.x7x_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.fav_1; var tmp_4 = this_0; var tmp4_safe_receiver = this.uws_1; var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.ek3_1; tmp_4.y7x_1 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.gav_1; if (!(this.uws_1 == null)) { var tmp_5 = this_0; var tmp6_safe_receiver = this.uws_1.ek3_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.eav_1; tmp_5.l7y_1 = tmp7_elvis_lhs == null ? new Long(0, 0) : tmp7_elvis_lhs; var tmp_6 = this_0; tmp_6.u7x_1 = 104; } var tmp0_safe_receiver_0 = this.uws_1; var tmp5_contentEntry = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.ek3_1; var tmp3_safe_receiver_0 = this.uws_1; var tmp6_contentJob = tmp3_safe_receiver_0 == null ? null : tmp3_safe_receiver_0.fk3_1; var tmp2_safe_receiver_0 = this.uws_1; var tmp7_contentJobItem = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.gk3_1; var tmp8_courseBlockPicture = new CourseBlockPicture(newUid); var tmp1_safe_receiver = this.uws_1; var tmp9_contentEntryPicture = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hk3_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).l78 = function (completion) { return new CourseBlockEditViewModel$slambda$slambda_1(this.sws_1, this.tws_1, this.uws_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.rtv($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.nwr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel...' call var nextValue = prevValue.ztt(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseBlockEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseBlockEditViewModel$slambda$slambda_3(this$0, resultContinuation) { this.dwt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.dwt_1.qqk(this.dwt_1.lqk(), 'courseBlockDesc'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_0(this.dwt_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_3(this.dwt_1, completion); i.ewt_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$slambda$slambda_5(this$0, $savedStateHandle, resultContinuation) { this.nwt_1 = this$0; this.owt_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nwt_1.qqk(this.nwt_1.lqk(), 'courseBlockEditContentEntry'); var tmp_1 = CourseBlockEditViewModel$slambda$slambda$slambda_2(this.nwt_1, this.owt_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda$slambda_5(this.nwt_1, this.owt_1, completion); i.pwt_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function Companion_155() { Companion_instance_204 = this; this.lw9_1 = 'CourseBlockEdit'; this.mw9_1 = 'SelectedContentEntry'; this.nw9_1 = 'blockType'; this.ow9_1 = 'courseBlockDesc'; this.pw9_1 = 'courseBlockEditContentEntry'; this.qw9_1 = 'SavedSelectedContentEntry'; var tmp = this; Companion_getInstance_123(); Companion_getInstance_114(); Companion_getInstance_114(); tmp.rw9_1 = listOf(['blockType', 'clazzUid', 'goToOnContentEntryDone', 'blockType', 'result_viewname', 'result_key', 'listMode']); } var Companion_instance_204; function Companion_getInstance_172() { if (Companion_instance_204 == null) new Companion_155(); return Companion_instance_204; } function sam$kotlinx_coroutines_flow_FlowCollector$0_27(function_0) { this.qwt_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_27).t1d = function (value, $completion) { return this.qwt_1(value, $completion); }; function CourseBlockEditViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.zwt_1 = this$0; this.awu_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseBlockEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.zwt_1.rqk(this.awu_1, 'SelectedContentEntry', Companion_instance_41.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.cwu_1 = suspendResult; this.dwu_1 = Companion_getInstance_13().n4r(); this.hd_1 = 2; var tmp_0 = CourseBlockEditViewModel$slambda$slambda_0(null); var tmp_1 = CourseBlockEditViewModel$slambda$slambda_2(this.zwt_1, this.awu_1, this.cwu_1, null); suspendResult = this.zwt_1.wqk(this.dwu_1, VOID, VOID, tmp_0, tmp_1, CourseBlockEditViewModel$slambda$lambda(this.zwt_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ewu_1 = suspendResult; var tmp_2 = this; var tmp1_safe_receiver = this.ewu_1; tmp_2.fwu_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fk4_1; var tmp_3 = this; var tmp2_safe_receiver = this.ewu_1; tmp_3.gwu_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dk4_1; if (!(this.fwu_1 == null) ? !(this.gwu_1 == null) : false) { Companion_getInstance_113(); if (this.awu_1.ba('entity') == null) { this.hwu_1 = false; this.hd_1 = 4; continue $sm; } else { var tmp_4; var tmp_5 = this.fwu_1.aaw_1; if (tmp_5 === 2) { tmp_4 = this.fwu_1.zav_1.equals(this.gwu_1.t7x_1); } else { tmp_4 = false; } if (tmp_4) { var tmp_6 = this; tmp_6.hwu_1 = true; this.hd_1 = 4; continue $sm; } else { var tmp_7 = this.fwu_1.aaw_1; if (tmp_7 === 2) { this.hd_1 = 3; var tmp_8 = this.zwt_1.iqk().o7f(); var tmp_9 = this.zwt_1.eqk(); var tmp_10 = this.fwu_1.zav_1; PermissionFlags_getInstance(); suspendResult = tmp_8.adk(tmp_9, tmp_10, new Long(2, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hwu_1 = false; this.hd_1 = 4; continue $sm; } } } } else { this.hd_1 = 5; continue $sm; } case 3: this.hwu_1 = suspendResult; this.hd_1 = 4; continue $sm; case 4: var canEditContentEntry = this.hwu_1; l$ret$1: do { var this_0 = this.zwt_1.nwr_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.ztt(VOID, canEditContentEntry); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 5; continue $sm; case 5: l$ret$3: do { var this_1 = this.zwt_1.nwr_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.ztt(VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); l$ret$5: do { var this_2 = this.zwt_1.qqj_1; while (true) { var prevValue_1 = this_2.t2(); var tmp0_safe_receiver = this.gwu_1; var tmp1_subject = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u7x_1; var tmp_11; if (tmp1_subject === 100) { tmp_11 = this.zwt_1.wqq(strings_getInstance().une_1, strings_getInstance().fnd_1); } else { if (tmp1_subject === 102) { tmp_11 = this.zwt_1.wqq(strings_getInstance().tnc_1, strings_getInstance().tne_1); } else { if (tmp1_subject === 105) { tmp_11 = this.zwt_1.wqq(strings_getInstance().vnf_1, strings_getInstance().wnf_1); } else { if (tmp1_subject === 104) { tmp_11 = this.zwt_1.mqk().eog(strings_getInstance().knk_1); } else { tmp_11 = ''; } } } } var tmp_12 = tmp_11; var tmp_13 = this.zwt_1.mqk().eog(strings_getInstance().fmn_1); var nextValue_1 = prevValue_1.bq3(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_13, VOID, CourseBlockEditViewModel$onClickSave$ref(this.zwt_1))); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); launch(this.bwu_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_4(this.zwt_1, null)); launch(this.bwu_1, VOID, VOID, CourseBlockEditViewModel$slambda$slambda_6(this.zwt_1, this.awu_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).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$slambda(this.zwt_1, this.awu_1, completion); i.bwu_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.qwu_1 = $commitDelay; this.rwu_1 = $entity; this.swu_1 = $this; this.twu_1 = $key; this.uwu_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.qwu_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rwu_1 == null)) { this.hd_1 = 2; suspendResult = this.swu_1.sqk(this.swu_1.mqj_1, this.twu_1, this.uwu_1, this.rwu_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).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$onEntityChanged$slambda(this.qwu_1, this.rwu_1, this.swu_1, this.twu_1, this.uwu_1, completion); i.vwu_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel$onPictureChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.ewv_1 = $commitDelay; this.fwv_1 = $entity; this.gwv_1 = $this; this.hwv_1 = $key; this.iwv_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockEditViewModel$onPictureChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ewv_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.fwv_1 == null)) { this.hd_1 = 2; suspendResult = this.gwv_1.sqk(this.gwv_1.mqj_1, this.hwv_1, this.iwv_1, this.fwv_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).v1m = function ($this$launch, completion) { var i = new CourseBlockEditViewModel$onPictureChanged$slambda(this.ewv_1, this.fwv_1, this.gwv_1, this.hwv_1, this.iwv_1, completion); i.jwv_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseBlockEditViewModel(di, savedStateHandle) { Companion_getInstance_172(); UstadEditViewModel.call(this, di, savedStateHandle, 'CourseBlockEdit'); this.nwr_1 = MutableStateFlow(new CourseBlockEditUiState(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_9().jmd().kmc())); this.owr_1 = asStateFlow(this.nwr_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.dqk(); launch(tmp, VOID, VOID, CourseBlockEditViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(CourseBlockEditViewModel).pwr = 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.nwr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.ott_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pk4(courseBlock); var tmp1_safe_receiver = prevValue.ott_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.dk4_1; var nextValue = prevValue.ztt(tmp, VOID, VOID, VOID, VOID, this.xqq(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.x7x_1, courseBlock.x7x_1, prevValue.ttt_1)); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.ott_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().n4r(); Companion_getInstance_113(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.dqk(); tmp_0.tqp_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onEntityChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).kwv = function () { var tmp0_safe_receiver = this.nwr_1.t2().ott_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nk4(); var tmp_0 = Companion_instance_41.n4r(); // 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.nwr_1.t2().ott_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.m4r().r45(Companion_instance_14.n4r(), tmp0_safe_receiver_0.dk4_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.uqk('ContentEntryEdit', 'courseBlockEditContentEntry', tmp, tmp_0, tmp$ret$3); }; protoOf(CourseBlockEditViewModel).pu1 = function (pictureUri) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.nwr_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onPictureChanged.' call var tmp1_safe_receiver = prevValue.ott_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.ott_1.ek4_1; tmp = tmp1_safe_receiver.pk4(VOID, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zkh(VOID, VOID, pictureUri)); } var nextValue = prevValue.ztt(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var blockAndEntities = tmp$ret$1.ott_1; // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_getInstance_13().n4r(); Companion_getInstance_113(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.dqk(); tmp_0.tqp_1 = launch(tmp_1, VOID, VOID, CourseBlockEditViewModel$onPictureChanged$slambda_0(commitDelay, blockAndEntities, this, key, serializer, null)); }; protoOf(CourseBlockEditViewModel).js3 = function () { var tmp0_elvis_lhs = this.nwr_1.t2().ott_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.dk4_1.x7x_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.nwr_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditViewModel.onClickSave.' call var nextValue = prevValue.ztt(VOID, VOID, VOID, VOID, VOID, this.mqk().eog(strings_getInstance().lnh_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } if (this.nwr_1.t2().dty()) return Unit_instance; this.xqp(this.nwr_1.t2().ott_1); }; function Companion_156() { Companion_instance_205 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.lwv_1 = [null, null, new ArrayListSerializer(Companion_getInstance_171().n4r()), null, null, null, null, null, null, null, null]; } var Companion_instance_205; function Companion_getInstance_173() { if (Companion_instance_205 == null) new Companion_156(); return Companion_instance_205; } function $serializer_60() { $serializer_instance_60 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.courseblock.edit.CourseBlockEditUiState', this, 11); tmp0_serialDesc.t4f('block', true); tmp0_serialDesc.t4f('canEditSelectedContentEntry', true); tmp0_serialDesc.t4f('completionCriteriaOptions', true); tmp0_serialDesc.t4f('fieldsEnabled', true); tmp0_serialDesc.t4f('caHideUntilDateError', true); tmp0_serialDesc.t4f('caTitleError', true); tmp0_serialDesc.t4f('caDeadlineError', true); tmp0_serialDesc.t4f('caMaxPointsError', true); tmp0_serialDesc.t4f('maxPointsRequired', true); tmp0_serialDesc.t4f('caGracePeriodError', true); tmp0_serialDesc.t4f('timeZone', true); this.mwv_1 = tmp0_serialDesc; } protoOf($serializer_60).q44 = function () { return this.mwv_1; }; protoOf($serializer_60).k4g = function () { var tmp0_cached = Companion_getInstance_173().lwv_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_60).s44 = function (decoder) { var tmp0_desc = this.mwv_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.i48(tmp0_desc); var tmp16_cached = Companion_getInstance_173().lwv_1; if (tmp15_input.x48()) { tmp4_local0 = tmp15_input.w48(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.u48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.k48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.s48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.w48(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.k48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.u48(tmp0_desc, 2, tmp16_cached[2], tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.k48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.w48(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.w48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.w48(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.k48(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.w48(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.s48(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.j48(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_60).nwv = function (encoder, value) { var tmp0_desc = this.mwv_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_173().lwv_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.ott_1 == null)) { tmp1_output.a4a(tmp0_desc, 0, $serializer_getInstance_8(), value.ott_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.ptt_1 === false)) { tmp1_output.o49(tmp0_desc, 1, value.ptt_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !equals(value.qtt_1, emptyList())) { tmp1_output.y49(tmp0_desc, 2, tmp2_cached[2], value.qtt_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.rtt_1 === false)) { tmp1_output.o49(tmp0_desc, 3, value.rtt_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.stt_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.stt_1); } if (tmp1_output.e4a(tmp0_desc, 5) ? true : !(value.ttt_1 == null)) { tmp1_output.a4a(tmp0_desc, 5, StringSerializer_getInstance(), value.ttt_1); } if (tmp1_output.e4a(tmp0_desc, 6) ? true : !(value.utt_1 == null)) { tmp1_output.a4a(tmp0_desc, 6, StringSerializer_getInstance(), value.utt_1); } if (tmp1_output.e4a(tmp0_desc, 7) ? true : !(value.vtt_1 == null)) { tmp1_output.a4a(tmp0_desc, 7, StringSerializer_getInstance(), value.vtt_1); } if (tmp1_output.e4a(tmp0_desc, 8) ? true : !(value.wtt_1 === false)) { tmp1_output.o49(tmp0_desc, 8, value.wtt_1); } if (tmp1_output.e4a(tmp0_desc, 9) ? true : !(value.xtt_1 == null)) { tmp1_output.a4a(tmp0_desc, 9, StringSerializer_getInstance(), value.xtt_1); } if (tmp1_output.e4a(tmp0_desc, 10) ? true : !(value.ytt_1 === 'UTC')) { tmp1_output.w49(tmp0_desc, 10, value.ytt_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_60).r44 = function (encoder, value) { return this.nwv(encoder, value instanceof CourseBlockEditUiState ? value : THROW_CCE()); }; var $serializer_instance_60; function $serializer_getInstance_72() { if ($serializer_instance_60 == null) new $serializer_60(); return $serializer_instance_60; } 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_72().mwv_1); } if (0 === (seen1 & 1)) $this.ott_1 = null; else $this.ott_1 = block; if (0 === (seen1 & 2)) $this.ptt_1 = false; else $this.ptt_1 = canEditSelectedContentEntry; if (0 === (seen1 & 4)) $this.qtt_1 = emptyList(); else $this.qtt_1 = completionCriteriaOptions; if (0 === (seen1 & 8)) $this.rtt_1 = false; else $this.rtt_1 = fieldsEnabled; if (0 === (seen1 & 16)) $this.stt_1 = null; else $this.stt_1 = caHideUntilDateError; if (0 === (seen1 & 32)) $this.ttt_1 = null; else $this.ttt_1 = caTitleError; if (0 === (seen1 & 64)) $this.utt_1 = null; else $this.utt_1 = caDeadlineError; if (0 === (seen1 & 128)) $this.vtt_1 = null; else $this.vtt_1 = caMaxPointsError; if (0 === (seen1 & 256)) $this.wtt_1 = false; else $this.wtt_1 = maxPointsRequired; if (0 === (seen1 & 512)) $this.xtt_1 = null; else $this.xtt_1 = caGracePeriodError; if (0 === (seen1 & 1024)) $this.ytt_1 = 'UTC'; else $this.ytt_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_173(); 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.ott_1 = block; this.ptt_1 = canEditSelectedContentEntry; this.qtt_1 = completionCriteriaOptions; this.rtt_1 = fieldsEnabled; this.stt_1 = caHideUntilDateError; this.ttt_1 = caTitleError; this.utt_1 = caDeadlineError; this.vtt_1 = caMaxPointsError; this.wtt_1 = maxPointsRequired; this.xtt_1 = caGracePeriodError; this.ytt_1 = timeZone; } protoOf(CourseBlockEditUiState).owv = function () { var tmp0_safe_receiver = this.ott_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dk4_1; var tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.z7x_1; return tmp === 1; }; protoOf(CourseBlockEditUiState).pwv = function () { var tmp; if (this.qwv()) { var tmp0_safe_receiver = this.ott_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dk4_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b7y_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).ttp = function () { var tmp; if (this.pwv()) { var tmp0_safe_receiver = this.ott_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dk4_1; tmp = isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d7y_1); } else { tmp = false; } return tmp; }; protoOf(CourseBlockEditUiState).rwv = function () { // Inline function 'kotlin.collections.isNotEmpty' call return !this.qtt_1.c1(); }; protoOf(CourseBlockEditUiState).qwv = function () { var tmp; var tmp0_safe_receiver = this.ott_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dk4_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.ott_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dk4_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.u7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).swv = function () { var tmp; var tmp0_safe_receiver = this.ott_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.dk4_1; var tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u7x_1; if (tmp_0 === 103) { tmp = true; } else { var tmp2_safe_receiver = this.ott_1; var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.dk4_1; var tmp_1 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.u7x_1; tmp = tmp_1 === 104; } return tmp; }; protoOf(CourseBlockEditUiState).dty = function () { return ((!(this.ttt_1 == null) ? true : !(this.utt_1 == null)) ? true : !(this.xtt_1 == null)) ? true : !(this.vtt_1 == null); }; protoOf(CourseBlockEditUiState).twv = 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).ztt = function (block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone, $super) { block = block === VOID ? this.ott_1 : block; canEditSelectedContentEntry = canEditSelectedContentEntry === VOID ? this.ptt_1 : canEditSelectedContentEntry; completionCriteriaOptions = completionCriteriaOptions === VOID ? this.qtt_1 : completionCriteriaOptions; fieldsEnabled = fieldsEnabled === VOID ? this.rtt_1 : fieldsEnabled; caHideUntilDateError = caHideUntilDateError === VOID ? this.stt_1 : caHideUntilDateError; caTitleError = caTitleError === VOID ? this.ttt_1 : caTitleError; caDeadlineError = caDeadlineError === VOID ? this.utt_1 : caDeadlineError; caMaxPointsError = caMaxPointsError === VOID ? this.vtt_1 : caMaxPointsError; maxPointsRequired = maxPointsRequired === VOID ? this.wtt_1 : maxPointsRequired; caGracePeriodError = caGracePeriodError === VOID ? this.xtt_1 : caGracePeriodError; timeZone = timeZone === VOID ? this.ytt_1 : timeZone; return $super === VOID ? this.twv(block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone) : $super.twv.call(this, block, canEditSelectedContentEntry, completionCriteriaOptions, fieldsEnabled, caHideUntilDateError, caTitleError, caDeadlineError, caMaxPointsError, maxPointsRequired, caGracePeriodError, timeZone); }; protoOf(CourseBlockEditUiState).toString = function () { return 'CourseBlockEditUiState(block=' + this.ott_1 + ', canEditSelectedContentEntry=' + this.ptt_1 + ', completionCriteriaOptions=' + this.qtt_1 + ', fieldsEnabled=' + this.rtt_1 + ', caHideUntilDateError=' + this.stt_1 + ', caTitleError=' + this.ttt_1 + ', caDeadlineError=' + this.utt_1 + ', caMaxPointsError=' + this.vtt_1 + ', maxPointsRequired=' + this.wtt_1 + ', caGracePeriodError=' + this.xtt_1 + ', timeZone=' + this.ytt_1 + ')'; }; protoOf(CourseBlockEditUiState).hashCode = function () { var result = this.ott_1 == null ? 0 : this.ott_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.ptt_1) | 0; result = imul(result, 31) + hashCode(this.qtt_1) | 0; result = imul(result, 31) + getBooleanHashCode(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 == null ? 0 : getStringHashCode(this.ttt_1)) | 0; result = imul(result, 31) + (this.utt_1 == null ? 0 : getStringHashCode(this.utt_1)) | 0; result = imul(result, 31) + (this.vtt_1 == null ? 0 : getStringHashCode(this.vtt_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.wtt_1) | 0; result = imul(result, 31) + (this.xtt_1 == null ? 0 : getStringHashCode(this.xtt_1)) | 0; result = imul(result, 31) + getStringHashCode(this.ytt_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.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 == 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; if (!(this.wtt_1 === tmp0_other_with_cast.wtt_1)) return false; if (!(this.xtt_1 == tmp0_other_with_cast.xtt_1)) return false; if (!(this.ytt_1 === tmp0_other_with_cast.ytt_1)) return false; return true; }; function TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.cww_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda$slambda).eww = function (it, $completion) { var tmp = this.fww(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.eww((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.cww_1.cwx_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gwx(this.dww_1); if (this_0.y1k(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).fww = function (it, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda$slambda(this.cww_1, completion); i.dww_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.eww(it, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.pwx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.pwx_1.iqk().p7d().xck(this.pwx_1.gqj_1); var tmp_1 = TextBlockDetailViewModel$slambda$slambda$slambda$slambda_0(this.pwx_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda$slambda$slambda(this.pwx_1, completion); i.qwx_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.u1m($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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseblock.textblockdetail.TextBlockDetailViewModel....' call var nextValue = prevValue.bq3(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function TextBlockDetailViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.zwx_1 = $this_launch; this.awy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.zwx_1, VOID, VOID, TextBlockDetailViewModel$slambda$slambda$slambda_0(this.awy_1, null)); launchSetTitleFromClazzUid(this.awy_1, this.awy_1.ewx_1, TextBlockDetailViewModel$slambda$slambda$lambda(this.awy_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).l78 = function (completion) { return new TextBlockDetailViewModel$slambda$slambda(this.zwx_1, this.awy_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.j87($completion); }; l.$arity = 0; return l; } function Companion_157() { this.bwy_1 = 'CourseText'; } var Companion_instance_206; function Companion_getInstance_174() { return Companion_instance_206; } function sam$kotlinx_coroutines_flow_FlowCollector$0_28(function_0) { this.cwy_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_28).t1d = function (value, $completion) { return this.cwy_1(value, $completion); }; function TextBlockDetailViewModel$slambda(this$0, resultContinuation) { this.lwy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TextBlockDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TextBlockDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.lwy_1.cwx_1, TextBlockDetailViewModel$slambda$slambda_0(this.mwy_1, this.lwy_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).v1m = function ($this$launch, completion) { var i = new TextBlockDetailViewModel$slambda(this.lwy_1, completion); i.mwy_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function TextBlockDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseText'); this.cwx_1 = MutableStateFlow(new TextBlockDetailUiState()); this.dwx_1 = asStateFlow(this.cwx_1); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.ewx_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, TextBlockDetailViewModel$slambda_0(this, null)); } function TextBlockDetailUiState(courseBlock) { courseBlock = courseBlock === VOID ? null : courseBlock; this.fwx_1 = courseBlock; } protoOf(TextBlockDetailUiState).gwx = function (courseBlock) { return new TextBlockDetailUiState(courseBlock); }; protoOf(TextBlockDetailUiState).toString = function () { return 'TextBlockDetailUiState(courseBlock=' + this.fwx_1 + ')'; }; protoOf(TextBlockDetailUiState).hashCode = function () { return this.fwx_1 == null ? 0 : this.fwx_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.fwx_1, tmp0_other_with_cast.fwx_1)) return false; return true; }; function CourseGroupSetDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.mwz(); 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).xwz = function (entity, permissionPair, $completion) { var tmp = this.ywz(entity, permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).um = function (p1, p2, $completion) { var tmp = (!(p1 == null) ? isInterface(p1, List) : false) ? p1 : THROW_CCE(); return this.xwz(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.vwz_1, this.wwz_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda).ywz = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda(completion); i.vwz_1 = entity; i.wwz_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.xwz(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.hx0_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1).jx0 = function (it, $completion) { var tmp = this.kx0(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.jx0(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.ix0_1.x6_1; var hasCourseViewPermission = tmp0_container.y6(); var hasManageStudentPermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.hx0_1.jwz_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.ix0_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.nx0(VOID, tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_2 = this.hx0_1.qqj_1; while (true) { var prevValue_0 = this_2.t2(); var tmp_1 = this.hx0_1.mqk().eog(strings_getInstance().fmr_1); var tmp_2 = FabIcon_EDIT_getInstance(); var nextValue_0 = prevValue_0.bq3(new FabUiState(hasManageStudentPermission, tmp_1, tmp_2, CourseGroupSetDetailViewModel$onClickEdit$ref(this.hx0_1))); if (this_2.y1k(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).kx0 = function (it, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_1(this.hx0_1, completion); i.ix0_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.jx0(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).yx0 = function (entity, permissionPair, $completion) { var tmp = this.zx0(entity, permissionPair, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3).um = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof CourseGroupSet) ? p1 : THROW_CCE(); return this.yx0(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.wx0_1; var tmp_0; if (this.xx0_1.ydm_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).zx0 = function (entity, permissionPair, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_3(completion); i.wx0_1 = entity; i.xx0_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.yx0(entity, permissionPair, $completion); }; l.$arity = 2; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.ix1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5).kx1 = function (courseGroupSet, $completion) { var tmp = this.lx1(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.kx1((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.ix1_1.jwz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nx0(this.jx1_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ix1_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver = this.jx1_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b7z_1; var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.y1k(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).lx1 = function (courseGroupSet, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_5(this.ix1_1, completion); i.jx1_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.kx1(courseGroupSet, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda($memberListFlow, $permissionsFlow, this$0, resultContinuation) { this.ux1_1 = $memberListFlow; this.vx1_1 = $permissionsFlow; this.wx1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ux1_1, this.vx1_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_0(null))); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_2(this.wx1_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda(this.ux1_1, this.vx1_1, this.wx1_1, completion); i.xx1_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda$slambda_1($entityFlow, $permissionsFlow, this$0, resultContinuation) { this.gx2_1 = $entityFlow; this.hx2_1 = $permissionsFlow; this.ix2_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.gx2_1, this.hx2_1, CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_4(null)); var tmp_1 = CourseGroupSetDetailViewModel$slambda$slambda$slambda$slambda_6(this.ix2_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda$slambda$slambda_1(this.gx2_1, this.hx2_1, this.ix2_1, completion); i.jx2_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel$slambda$slambda($this_launch, $memberListFlow, $permissionsFlow, this$0, $entityFlow, resultContinuation) { this.sx2_1 = $this_launch; this.tx2_1 = $memberListFlow; this.ux2_1 = $permissionsFlow; this.vx2_1 = this$0; this.wx2_1 = $entityFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.sx2_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_0(this.tx2_1, this.ux2_1, this.vx2_1, null)); launch(this.sx2_1, VOID, VOID, CourseGroupSetDetailViewModel$slambda$slambda$slambda_2(this.wx2_1, this.ux2_1, this.vx2_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).l78 = function (completion) { return new CourseGroupSetDetailViewModel$slambda$slambda(this.sx2_1, this.tx2_1, this.ux2_1, this.vx2_1, this.wx2_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.j87($completion); }; l.$arity = 0; return l; } function Companion_158() { this.xx2_1 = 'CourseGroupSet'; } var Companion_instance_207; function Companion_getInstance_175() { return Companion_instance_207; } function sam$kotlinx_coroutines_flow_FlowCollector$0_29(function_0) { this.yx2_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_29).t1d = function (value, $completion) { return this.yx2_1(value, $completion); }; function CourseGroupSetDetailViewModel$slambda(this$0, resultContinuation) { this.hx3_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.hx3_1.iqk().o7f(); var tmp_2 = this.hx3_1.eqk(); PermissionFlags_getInstance(); var tmp_3 = new Long(1, 0); PermissionFlags_getInstance(); tmp_0.jx3_1 = shareIn(tmp_1.xdj(tmp_2, this.hx3_1.lwz_1, tmp_3, new Long(8, 0)), this.hx3_1.dqk(), Companion_getInstance_12().v1h()); this.kx3_1 = this.hx3_1.iqk().s7d().kd3(this.hx3_1.gqj_1, this.hx3_1.lwz_1, systemTimeInMillis(), 0, this.hx3_1.eqk()); this.lx3_1 = this.hx3_1.iqk().r7d().t8c(this.hx3_1.gqj_1); this.hd_1 = 1; suspendResult = whenSubscribed(this.hx3_1.jwz_1, CourseGroupSetDetailViewModel$slambda$slambda_0(this.ix3_1, this.kx3_1, this.jx3_1, this.hx3_1, this.lx3_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetDetailViewModel$slambda(this.hx3_1, completion); i.ix3_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'CourseGroupSet'); this.jwz_1 = MutableStateFlow(new CourseGroupSetDetailUiState()); this.kwz_1 = asStateFlow(this.jwz_1); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.lwz_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, CourseGroupSetDetailViewModel$slambda_0(this, null)); } protoOf(CourseGroupSetDetailViewModel).mwz = function () { Companion_getInstance_114(); var tmp = to('entityUid', this.gqj_1.toString()); Companion_getInstance_123(); this.oqj_1.fp3('CourseGroupsEdit', mapOf([tmp, to('clazzUid', this.lwz_1.toString())])); }; function CourseGroupSetDetailUiState(courseGroupSet, membersList) { courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; membersList = membersList === VOID ? emptyList() : membersList; this.lx0_1 = courseGroupSet; this.mx0_1 = membersList; } protoOf(CourseGroupSetDetailUiState).mx3 = function (courseGroupSet, membersList) { return new CourseGroupSetDetailUiState(courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).nx0 = function (courseGroupSet, membersList, $super) { courseGroupSet = courseGroupSet === VOID ? this.lx0_1 : courseGroupSet; membersList = membersList === VOID ? this.mx0_1 : membersList; return $super === VOID ? this.mx3(courseGroupSet, membersList) : $super.mx3.call(this, courseGroupSet, membersList); }; protoOf(CourseGroupSetDetailUiState).toString = function () { return 'CourseGroupSetDetailUiState(courseGroupSet=' + this.lx0_1 + ', membersList=' + this.mx0_1 + ')'; }; protoOf(CourseGroupSetDetailUiState).hashCode = function () { var result = this.lx0_1 == null ? 0 : hashCode(this.lx0_1); result = imul(result, 31) + hashCode(this.mx0_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.lx0_1, tmp0_other_with_cast.lx0_1)) return false; if (!equals(this.mx0_1, tmp0_other_with_cast.mx0_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.vx3_1 = this$0; this.wx3_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda).jx4 = function (db, $completion) { var tmp = this.env(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.jx4(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.xx3_1.s7d().jd3(this.vx3_1.uqp_1, this.vx3_1.jx5_1, systemTimeInMillis(), 0, this.vx3_1.eqk(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.yx3_1 = suspendResult; var tmp_0 = this; tmp_0.zx3_1 = this.yx3_1; var tmp_1 = this; tmp_1.ax4_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.yx3_1, 10)); this.bx4_1 = this.zx3_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.bx4_1.f()) { this.hd_1 = 5; continue $sm; } this.cx4_1 = this.bx4_1.e(); var tmp_2 = this; tmp_2.dx4_1 = this.cx4_1; if (this.dx4_1.yd4_1 == null) { var tmp_3 = this; tmp_3.fx4_1 = new CourseGroupMemberAndName(); var tmp_4 = this; tmp_4.gx4_1 = this.fx4_1; this.gx4_1.zd4_1 = this.dx4_1.zd4_1; this.gx4_1.bd5_1 = this.dx4_1.bd5_1; this.gx4_1.ad5_1 = this.dx4_1.ad5_1; this.gx4_1.cd5_1 = this.dx4_1.cd5_1; var tmp_5 = this; tmp_5.hx4_1 = new CourseGroupMember(); var tmp_6 = this; tmp_6.ix4_1 = this.hx4_1; this.hd_1 = 3; var tmp_7 = get_doorPrimaryKeyManager(this.vx3_1.gqk()); suspendResult = tmp_7.o62(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_8 = this; tmp_8.ex4_1 = this.dx4_1; this.hd_1 = 4; continue $sm; } case 3: var ARGUMENT = suspendResult; this.ix4_1.gd4_1 = ARGUMENT; this.ix4_1.hd4_1 = this.wx3_1; this.ix4_1.jd4_1 = this.dx4_1.ad5_1; var ARGUMENT_0 = this.hx4_1; this.gx4_1.yd4_1 = ARGUMENT_0; this.ex4_1 = this.fx4_1; this.hd_1 = 4; continue $sm; case 4: var ARGUMENT_1 = this.ex4_1; this.ax4_1.i1(ARGUMENT_1); this.hd_1 = 2; continue $sm; case 5: return this.ax4_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).env = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda(this.vx3_1, this.wx3_1, completion); i.xx3_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.jx4(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).sx5 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.sx5($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).l78 = 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.sx5($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.hx5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.yx5(VOID, memberList); if (this_0.y1k(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.hx6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_3).lx6 = function (db, $completion) { var tmp = this.env(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.lx6(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.ix6_1; var tmp_1; if (!this.hx6_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } var tmp0_safe_receiver = tmp_1; tmp_0.jx6_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r7d(); if (this.jx6_1 == null) { this.kx6_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.jx6_1.gdc(this.hx6_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.kx6_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.kx6_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).env = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda$slambda_3(this.hx6_1, completion); i.ix6_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.lx6(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda$slambda_5($courseGroupSetUid, this$0, resultContinuation) { this.ux6_1 = $courseGroupSetUid; this.vx6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).idg = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda$slambda$slambda_5).m78 = function ($completion) { return this.idg($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.a7z_1 = this.ux6_1; this_0.e7z_1 = this.vx6_1.jx5_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).l78 = function (completion) { return new CourseGroupSetEditViewModel$slambda$slambda$slambda_5(this.ux6_1, this.vx6_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.idg($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.hx5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel....' call var nextValue = prevValue.yx5(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetEditViewModel$slambda$slambda(this$0, $courseGroupSetUid, resultContinuation) { this.ex7_1 = this$0; this.fx7_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda).hx7 = function ($this$async, $completion) { var tmp = this.v1m($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.hx7((!(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.n4r()); var tmp_1 = listOf_0('courseGroupMembers'); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_0(this.ex7_1, this.fx7_1, null); var tmp_3 = CourseGroupSetEditViewModel$slambda$slambda$slambda_2(null); suspendResult = this.ex7_1.wqk(tmp_0, tmp_1, VOID, tmp_2, tmp_3, CourseGroupSetEditViewModel$slambda$slambda$lambda(this.ex7_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).v1m = function ($this$async, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda(this.ex7_1, this.fx7_1, completion); i.gx7_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.hx7($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda$slambda_1(this$0, $courseGroupSetUid, resultContinuation) { this.qx7_1 = this$0; this.rx7_1 = $courseGroupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda$slambda_1).tx7 = function ($this$async, $completion) { var tmp = this.v1m($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.tx7((!(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.n4r(); var tmp_1 = CourseGroupSetEditViewModel$slambda$slambda$slambda_4(this.qx7_1, null); var tmp_2 = CourseGroupSetEditViewModel$slambda$slambda$slambda_6(this.rx7_1, this.qx7_1, null); suspendResult = this.qx7_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, CourseGroupSetEditViewModel$slambda$slambda$lambda_0(this.qx7_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).v1m = function ($this$async, completion) { var i = new CourseGroupSetEditViewModel$slambda$slambda_1(this.qx7_1, this.rx7_1, completion); i.sx7_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.tx7($this$async, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.cx8_1 = this$0; this.dx8_1 = $courseGroupSet; this.ex8_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.cx8_1.iqk().r7d().hdc(this.dx8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.cx8_1.iqk().s7d().ld3(this.ex8_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).env = function (it, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda$slambda(this.cx8_1, this.dx8_1, this.ex8_1, completion); i.fx8_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.dnv(it, $completion); }; l.$arity = 1; return l; } function Companion_159() { this.gx8_1 = 'CourseGroupsEdit'; this.hx8_1 = 'courseGroupMembers'; } var Companion_instance_208; function Companion_getInstance_176() { return Companion_instance_208; } function CourseGroupSetEditViewModel$slambda(this$0, resultContinuation) { this.qx8_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.rx8_1.o7f(); var tmp_1 = this.qx8_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.adk(tmp_1, this.qx8_1.jx5_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).env = function (db, completion) { var i = new CourseGroupSetEditViewModel$slambda(this.qx8_1, completion); i.rx8_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.vs5(db, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$slambda_1(this$0, resultContinuation) { this.ax9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.ax9_1.uqp_1.equals(new Long(0, 0))) { this.cx9_1 = this.ax9_1.uqp_1; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = get_doorPrimaryKeyManager(this.ax9_1.gqk()); suspendResult = tmp_0.o62(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.cx9_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.dx9_1 = this.cx9_1; this.hd_1 = 3; var tmp_1 = async(this.bx9_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_0(this.ax9_1, this.dx9_1, null)); suspendResult = awaitAll([tmp_1, async(this.bx9_1, VOID, VOID, CourseGroupSetEditViewModel$slambda$slambda_2(this.ax9_1, this.dx9_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: l$ret$1: do { var this_0 = this.ax9_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_2 = this.ax9_1.mqk().eog(strings_getInstance().tmy_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, true, CourseGroupSetEditViewModel$onClickSave$ref(this.ax9_1)); var tmp1_loadingState = Companion_getInstance_96().jq3_1; var nextValue = prevValue.bq3(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.ax9_1.hx5_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.yx5(VOID, VOID, VOID, VOID, true); if (this_1.y1k(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).v1m = function ($this$launchIfHasPermission, completion) { var i = new CourseGroupSetEditViewModel$slambda_1(this.ax9_1, completion); i.bx9_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.mx9_1 = $commitDelay; this.nx9_1 = $entity; this.ox9_1 = $this; this.px9_1 = $key; this.qx9_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.mx9_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.nx9_1 == null)) { this.hd_1 = 2; suspendResult = this.ox9_1.sqk(this.ox9_1.mqj_1, this.px9_1, this.qx9_1, this.nx9_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onEntityChanged$slambda(this.mx9_1, this.nx9_1, this.ox9_1, this.px9_1, this.qx9_1, completion); i.rx9_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda($groupNumber) { return function ($this$shallowCopy) { $this$shallowCopy.id4_1 = $groupNumber; return Unit_instance; }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0($personUid) { return function (it) { return it.ad5_1.equals($personUid); }; } function CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this$0, $newState, resultContinuation) { this.axa_1 = this$0; this.bxa_1 = $newState; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.axa_1.sqk(this.axa_1.mqj_1, 'courseGroupMembers', ListSerializer(Companion_instance_43.n4r()), this.bxa_1.ux5_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda(this.axa_1, this.bxa_1, completion); i.cxa_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickAssignRandomly$lambda($shuffledPersonUidList, $it, $totalGroups) { return function ($this$shallowCopy) { $this$shallowCopy.id4_1 = ($shuffledPersonUidList.x($it.ad5_1) % $totalGroups | 0) + 1 | 0; return Unit_instance; }; } function CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this$0, $newMemberList, resultContinuation) { this.lxa_1 = this$0; this.mxa_1 = $newMemberList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickAssignRandomly$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.lxa_1.sqk(this.lxa_1.mqj_1, 'courseGroupMembers', ListSerializer(Companion_instance_43.n4r()), this.mxa_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onClickAssignRandomly$slambda(this.lxa_1, this.mxa_1, completion); i.nxa_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel$onClickSave$slambda(this$0, $courseGroupSet, $membersToSave, resultContinuation) { this.wxa_1 = this$0; this.xxa_1 = $courseGroupSet; this.yxa_1 = $membersToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.wxa_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, CourseGroupSetEditViewModel$onClickSave$slambda$slambda_0(this.wxa_1, this.xxa_1, this.yxa_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var tmp_1 = this.xxa_1.a7z_1; Companion_getInstance_123(); this.wxa_1.vqp('CourseGroupSet', tmp_1, this.xxa_1, mapOf_0(to('clazzUid', this.wxa_1.jx5_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetEditViewModel$onClickSave$slambda(this.wxa_1, this.xxa_1, this.yxa_1, completion); i.zxa_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CourseGroupsEdit'); this.hx5_1 = MutableStateFlow(new CourseGroupSetEditUiState()); this.ix5_1 = asStateFlow(this.hx5_1); var tmp = this; Companion_getInstance_114(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.jx5_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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.' call var tmp0_title = this.wqq(strings_getInstance().znd_1, strings_getInstance().ane_1); var tmp1_loadingState = Companion_getInstance_96().iq3_1; var nextValue = prevValue.bq3(VOID, tmp1_loadingState, tmp0_title, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = CourseGroupSetEditViewModel$slambda_0(this, null); this.yqk(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetEditViewModel).axb = function (courseGroupSet) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hx5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.tx5_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b7z_1; var tmp_0 = this.xqq(tmp, courseGroupSet == null ? null : courseGroupSet.b7z_1, prevValue.vx5_1); var tmp2_safe_receiver = prevValue.tx5_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.c7z_1; var nextValue = prevValue.yx5(courseGroupSet, VOID, tmp_0, this.xqq(tmp_1, courseGroupSet == null ? null : courseGroupSet.c7z_1, prevValue.wx5_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_44.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.dqk(); tmp_2.tqp_1 = launch(tmp_3, VOID, VOID, CourseGroupSetEditViewModel$onEntityChanged$slambda_0(commitDelay, courseGroupSet, this, key, serializer, null)); }; protoOf(CourseGroupSetEditViewModel).bxb = function (personUid, groupNumber) { var tmp$ret$3; $l$block_0: { // Inline function 'kotlinx.coroutines.flow.updateAndGet' call var this_0 = this.hx5_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.ux5_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onChangeGroupAssignment..' call if (element.ad5_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.yd4_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.gki(tmp); var nextValue = prevValue.yx5(VOID, replace_0(prevValue.ux5_1, tmp_0, CourseGroupSetEditViewModel$onChangeGroupAssignment$lambda_0(personUid))); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$3 = nextValue; break $l$block_0; } } } var newState = tmp$ret$3; var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, CourseGroupSetEditViewModel$onChangeGroupAssignment$slambda_0(this, newState, null)); }; protoOf(CourseGroupSetEditViewModel).cxb = function () { var tmp0_safe_receiver = this.hx5_1.t2().tx5_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c7z_1; var totalGroups = tmp1_elvis_lhs == null ? 1 : tmp1_elvis_lhs; // Inline function 'kotlin.collections.map' call var this_0 = this.hx5_1.t2().ux5_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.ad5_1; destination.i1(tmp$ret$0); } var shuffledPersonUidList = shuffled(destination); // Inline function 'kotlin.collections.map' call var this_1 = this.hx5_1.t2().ux5_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.yd4_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.gki(tmp); destination_0.i1(tmp$ret$3); } var newMemberList = destination_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.hx5_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickAssignRandomly.' call var nextValue = prevValue.yx5(VOID, newMemberList); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, CourseGroupSetEditViewModel$onClickAssignRandomly$slambda_0(this, newMemberList, null)); }; protoOf(CourseGroupSetEditViewModel).js3 = function () { var tmp0_elvis_lhs = this.hx5_1.t2().tx5_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.hx5_1.t2().ux5_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.yd4_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.id4_1 > courseGroupSet.c7z_1) { tmp$ret$4 = true; break $l$block_0; } } tmp$ret$4 = false; } var hasInvalidAssignments = tmp$ret$4; if (hasInvalidAssignments) { this.kqk().qq3(new Snack(this.mqk().eog(strings_getInstance().cme_1))); } // Inline function 'kotlin.text.isNullOrBlank' call var this_1 = courseGroupSet.b7z_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.hx5_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.edit.CourseGroupSetEditViewModel.onClickSave.' call var nextValue = prevValue.yx5(VOID, VOID, this.mqk().eog(strings_getInstance().hmj_1)); if (this_2.y1k(prevValue, nextValue)) { break $l$block_1; } } } } if (courseGroupSet.c7z_1 < 1) { $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.hx5_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.yx5(VOID, VOID, VOID, this.mqk().eog(strings_getInstance().mnc_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if ((hasInvalidAssignments ? true : !(this.hx5_1.t2().wx5_1 == null)) ? true : !(this.hx5_1.t2().vx5_1 == null)) { return Unit_instance; } var tmp_1 = this.dqk(); 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.tx5_1 = courseGroupSet; this.ux5_1 = membersList; this.vx5_1 = courseTitleError; this.wx5_1 = numOfGroupsError; this.xx5_1 = fieldsEnabled; } protoOf(CourseGroupSetEditUiState).dxb = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) { return new CourseGroupSetEditUiState(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).yx5 = function (courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled, $super) { courseGroupSet = courseGroupSet === VOID ? this.tx5_1 : courseGroupSet; membersList = membersList === VOID ? this.ux5_1 : membersList; courseTitleError = courseTitleError === VOID ? this.vx5_1 : courseTitleError; numOfGroupsError = numOfGroupsError === VOID ? this.wx5_1 : numOfGroupsError; fieldsEnabled = fieldsEnabled === VOID ? this.xx5_1 : fieldsEnabled; return $super === VOID ? this.dxb(courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled) : $super.dxb.call(this, courseGroupSet, membersList, courseTitleError, numOfGroupsError, fieldsEnabled); }; protoOf(CourseGroupSetEditUiState).toString = function () { return 'CourseGroupSetEditUiState(courseGroupSet=' + this.tx5_1 + ', membersList=' + this.ux5_1 + ', courseTitleError=' + this.vx5_1 + ', numOfGroupsError=' + this.wx5_1 + ', fieldsEnabled=' + this.xx5_1 + ')'; }; protoOf(CourseGroupSetEditUiState).hashCode = function () { var result = this.tx5_1 == null ? 0 : hashCode(this.tx5_1); result = imul(result, 31) + hashCode(this.ux5_1) | 0; result = imul(result, 31) + (this.vx5_1 == null ? 0 : getStringHashCode(this.vx5_1)) | 0; result = imul(result, 31) + (this.wx5_1 == null ? 0 : getStringHashCode(this.wx5_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xx5_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.tx5_1, tmp0_other_with_cast.tx5_1)) return false; if (!equals(this.ux5_1, tmp0_other_with_cast.ux5_1)) return false; if (!(this.vx5_1 == tmp0_other_with_cast.vx5_1)) return false; if (!(this.wx5_1 == tmp0_other_with_cast.wx5_1)) return false; if (!(this.xx5_1 === tmp0_other_with_cast.xx5_1)) return false; return true; }; function CourseGroupSetListViewModel$slambda$lambda(this$0) { return function () { var tmp = this$0.iqk().o7f(); var tmp_0 = this$0.eqk(); PermissionFlags_getInstance(); return tmp.wdj(tmp_0, this$0.exc_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.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel...' call var tmp = Napier_getInstance(); tmp.e5e(VOID, VOID, CourseGroupSetListViewModel$slambda$lambda$lambda(visible)); var nextValue = prevValue.kxc(visible); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseGroupSetListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.txc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.txc_1.exc_1, this.txc_1.gqk(), this.txc_1.qqj_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda$slambda$slambda(this.txc_1, completion); i.uxc_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetListViewModel$slambda$slambda($this_launch, this$0, resultContinuation) { this.dxd_1 = $this_launch; this.exd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.dxd_1, VOID, VOID, CourseGroupSetListViewModel$slambda$slambda$slambda_0(this.exd_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).l78 = function (completion) { return new CourseGroupSetListViewModel$slambda$slambda(this.dxd_1, this.exd_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.j87($completion); }; l.$arity = 0; return l; } function Companion_160() { this.fxd_1 = 'CourseGroups'; } var Companion_instance_209; function Companion_getInstance_177() { return Companion_instance_209; } function CourseGroupSetListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().r7d().fdc(this$0.exc_1, toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_1), this$0.hqs_1.t2().jxc_1.gq9_1); }; } function CourseGroupSetListViewModel$slambda(this$0, resultContinuation) { this.oxd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseGroupSetListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.oxd_1); var tmp_1 = strings_getInstance().jmw_1; suspendResult = this.oxd_1.rqt(tmp_0, tmp_1, CourseGroupSetListViewModel$slambda$lambda_0(this.oxd_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda(this.oxd_1, completion); i.pxd_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseGroupSetListViewModel$slambda_1(this$0, resultContinuation) { this.yxd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetListViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.yxd_1.hqs_1, CourseGroupSetListViewModel$slambda$slambda_0(this.zxd_1, this.yxd_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).v1m = function ($this$launch, completion) { var i = new CourseGroupSetListViewModel$slambda_1(this.yxd_1, completion); i.zxd_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.u1m($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_114(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.exc_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; tmp_0.fxc_1 = CourseGroupSetListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue = prevValue.kxc(VOID, this.fxc_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.' call var nextValue_0 = prevValue_0.bq3(VOID, VOID, VOID, true, VOID, VOID, VOID, this.qqt()); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, CourseGroupSetListViewModel$slambda_0(this, null)); var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, CourseGroupSetListViewModel$slambda_2(this, null)); } protoOf(CourseGroupSetListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).axe = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.coursegroupset.list.CourseGroupSetListViewModel.onSortOptionChanged.' call var nextValue = prevValue.kxc(VOID, VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(CourseGroupSetListViewModel).cqt = function () { Companion_getInstance_114(); this.uqt('CourseGroupsEdit', mapOf_0(to('clazzUid', this.exc_1.toString()))); }; protoOf(CourseGroupSetListViewModel).bxe = function (entry) { var tmp = entry.a7z_1; Companion_getInstance_123(); this.wqt('CourseGroupSet', tmp, entry, mapOf_0(to('clazzUid', this.exc_1.toString()))); }; function Companion_161() { Companion_instance_210 = this; var tmp = this; var tmp_0 = strings_getInstance().bmg_1; var tmp_1 = new SortOrderOption(tmp_0, 1, true); var tmp_2 = strings_getInstance().bmg_1; tmp.cxe_1 = listOf([tmp_1, new SortOrderOption(tmp_2, 2, false)]); } var Companion_instance_210; function Companion_getInstance_178() { if (Companion_instance_210 == null) new Companion_161(); return Companion_instance_210; } function CourseGroupSetListUiState$_init_$lambda_2d65m2() { return new EmptyPagingSource(); } function CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption) { Companion_getInstance_178(); 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_178().cxe_1 : sortOptions; sortOption = sortOption === VOID ? first_0(sortOptions) : sortOption; this.gxc_1 = showAddItem; this.hxc_1 = courseGroupSets; this.ixc_1 = sortOptions; this.jxc_1 = sortOption; } protoOf(CourseGroupSetListUiState).dxe = function (showAddItem, courseGroupSets, sortOptions, sortOption) { return new CourseGroupSetListUiState(showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).kxc = function (showAddItem, courseGroupSets, sortOptions, sortOption, $super) { showAddItem = showAddItem === VOID ? this.gxc_1 : showAddItem; courseGroupSets = courseGroupSets === VOID ? this.hxc_1 : courseGroupSets; sortOptions = sortOptions === VOID ? this.ixc_1 : sortOptions; sortOption = sortOption === VOID ? this.jxc_1 : sortOption; return $super === VOID ? this.dxe(showAddItem, courseGroupSets, sortOptions, sortOption) : $super.dxe.call(this, showAddItem, courseGroupSets, sortOptions, sortOption); }; protoOf(CourseGroupSetListUiState).toString = function () { return 'CourseGroupSetListUiState(showAddItem=' + this.gxc_1 + ', courseGroupSets=' + this.hxc_1 + ', sortOptions=' + this.ixc_1 + ', sortOption=' + this.jxc_1 + ')'; }; protoOf(CourseGroupSetListUiState).hashCode = function () { var result = getBooleanHashCode(this.gxc_1); result = imul(result, 31) + hashCode(this.hxc_1) | 0; result = imul(result, 31) + hashCode(this.ixc_1) | 0; result = imul(result, 31) + this.jxc_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.gxc_1 === tmp0_other_with_cast.gxc_1)) return false; if (!equals(this.hxc_1, tmp0_other_with_cast.hxc_1)) return false; if (!equals(this.ixc_1, tmp0_other_with_cast.ixc_1)) return false; if (!this.jxc_1.equals(tmp0_other_with_cast.jxc_1)) return false; return true; }; function CourseTerminologyEditViewModel$slambda$slambda(this$0, resultContinuation) { this.mxe_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda).ire = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.ire(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.nxe_1.q7d(); var tmp_1; if (!this.mxe_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.oxe_1 = tmp_1; if (this.oxe_1 == null) { this.pxe_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.oxe_1.xe6(this.mxe_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.pxe_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.pxe_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).env = function (it, completion) { var i = new CourseTerminologyEditViewModel$slambda$slambda(this.mxe_1, completion); i.nxe_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.ire(it, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.yxe_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).bxf = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.bxf($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.zxe_1 = new CourseTerminology(); var tmp_1 = this; tmp_1.axf_1 = this.zxe_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.yxe_1.gqk()); suspendResult = tmp_2.o62(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.axf_1.m8g_1 = ARGUMENT; return this.zxe_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).l78 = function (completion) { return new CourseTerminologyEditViewModel$slambda$slambda_1(this.yxe_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.bxf($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.zxf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel...' call var nextValue = prevValue.fxg(VOID, terminology, VOID, toTerminologyEntries(terminology, this$0.m4r(), this$0.mqk())); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function Companion_162() { this.gxg_1 = 'CourseTerminologyEdit'; } var Companion_instance_211; function Companion_getInstance_179() { return Companion_instance_211; } function CourseTerminologyEditViewModel$slambda(this$0, resultContinuation) { this.pxg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.rxg_1 = Companion_instance_34.n4r(); this.hd_1 = 1; var tmp_0 = CourseTerminologyEditViewModel$slambda$slambda_0(this.pxg_1, null); var tmp_1 = CourseTerminologyEditViewModel$slambda$slambda_2(this.pxg_1, null); suspendResult = this.pxg_1.wqk(this.rxg_1, VOID, VOID, tmp_0, tmp_1, CourseTerminologyEditViewModel$slambda$lambda(this.pxg_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.pxg_1.zxf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.fxg(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.pxg_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = this.pxg_1.mqk().eog(strings_getInstance().tmy_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_2, VOID, CourseTerminologyEditViewModel$onClickSave$ref(this.pxg_1)); var tmp1_loadingState = Companion_getInstance_96().jq3_1; var nextValue_0 = prevValue_0.bq3(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$slambda(this.pxg_1, completion); i.qxg_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.axh_1 = $commitDelay; this.bxh_1 = $entity; this.cxh_1 = $this; this.dxh_1 = $key; this.exh_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.axh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.bxh_1 == null)) { this.hd_1 = 2; suspendResult = this.cxh_1.sqk(this.cxh_1.mqj_1, this.dxh_1, this.exh_1, this.bxh_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).v1m = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$onEntityChanged$slambda(this.axh_1, this.bxh_1, this.cxh_1, this.dxh_1, this.exh_1, completion); i.fxh_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda($terminologyEntry) { return function (it) { return it.gq5_1.equals($terminologyEntry.gq5_1); }; } function CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda_0($newTermList, this$0) { return function ($this$shallowCopy) { $this$shallowCopy.o8g_1 = encodeToStringMap($newTermList, this$0.m4r()); return Unit_instance; }; } function CourseTerminologyEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.oxh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.oxh_1.zxf_1.t2().cxg_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.qxh_1 = tmp_1; this.hd_1 = 1; suspendResult = this.oxh_1.iqk().q7d().ye6(this.qxh_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.oxh_1.zxf_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.fxg(VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.oxh_1.xqp(this.qxh_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).v1m = function ($this$launch, completion) { var i = new CourseTerminologyEditViewModel$onClickSave$slambda(this.oxh_1, completion); i.pxh_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'CourseTerminologyEdit'); this.zxf_1 = MutableStateFlow(new CourseTerminologyEditUiState()); this.axg_1 = asStateFlow(this.zxf_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.' call var tmp0_title = this.wqq(strings_getInstance().tnd_1, strings_getInstance().und_1); var tmp1_loadingState = Companion_getInstance_96().iq3_1; var nextValue = prevValue.bq3(VOID, tmp1_loadingState, tmp0_title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.dqk(); launch(tmp, VOID, VOID, CourseTerminologyEditViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyEditViewModel).rxh = function (courseTerminology) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zxf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onEntityChanged.' call var nextValue = prevValue.fxg(VOID, courseTerminology); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_34.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver = this.tqp_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.dqk(); tmp.tqp_1 = launch(tmp_0, VOID, VOID, CourseTerminologyEditViewModel$onEntityChanged$slambda_0(commitDelay, courseTerminology, this, key, serializer, null)); }; protoOf(CourseTerminologyEditViewModel).sxh = function (terminologyEntry) { var tmp = this.zxf_1.t2().exg_1; var newTermList = replace_0(tmp, terminologyEntry, CourseTerminologyEditViewModel$onTerminologyTermChanged$lambda(terminologyEntry)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zxf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onTerminologyTermChanged.' call var nextValue = prevValue.fxg(VOID, VOID, VOID, newTermList); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_safe_receiver = this.zxf_1.t2().cxg_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.rxh(tmp_0); }; protoOf(CourseTerminologyEditViewModel).js3 = function () { if (!this.zxf_1.t2().dxg_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zxf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.edit.CourseTerminologyEditViewModel.onClickSave.' call var nextValue = prevValue.fxg(VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.dqk(); 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.bxg_1 = titleError; this.cxg_1 = entity; this.dxg_1 = fieldsEnabled; this.exg_1 = terminologyTermList; } protoOf(CourseTerminologyEditUiState).txh = function (titleError, entity, fieldsEnabled, terminologyTermList) { return new CourseTerminologyEditUiState(titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).fxg = function (titleError, entity, fieldsEnabled, terminologyTermList, $super) { titleError = titleError === VOID ? this.bxg_1 : titleError; entity = entity === VOID ? this.cxg_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.dxg_1 : fieldsEnabled; terminologyTermList = terminologyTermList === VOID ? this.exg_1 : terminologyTermList; return $super === VOID ? this.txh(titleError, entity, fieldsEnabled, terminologyTermList) : $super.txh.call(this, titleError, entity, fieldsEnabled, terminologyTermList); }; protoOf(CourseTerminologyEditUiState).toString = function () { return 'CourseTerminologyEditUiState(titleError=' + this.bxg_1 + ', entity=' + this.cxg_1 + ', fieldsEnabled=' + this.dxg_1 + ', terminologyTermList=' + this.exg_1 + ')'; }; protoOf(CourseTerminologyEditUiState).hashCode = function () { var result = this.bxg_1 == null ? 0 : getStringHashCode(this.bxg_1); result = imul(result, 31) + (this.cxg_1 == null ? 0 : hashCode(this.cxg_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.dxg_1) | 0; result = imul(result, 31) + hashCode(this.exg_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.bxg_1 == tmp0_other_with_cast.bxg_1)) return false; if (!equals(this.cxg_1, tmp0_other_with_cast.cxg_1)) return false; if (!(this.dxg_1 === tmp0_other_with_cast.dxg_1)) return false; if (!equals(this.exg_1, tmp0_other_with_cast.exg_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.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel...' call var nextValue = prevValue.wxh(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_163() { this.xxh_1 = 'CourseTerminologyList'; } var Companion_instance_212; function Companion_getInstance_180() { return Companion_instance_212; } function CourseTerminologyListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().q7d().ue6(); }; } function CourseTerminologyListViewModel$slambda(this$0, resultContinuation) { this.gxi_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseTerminologyListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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().rnd_1; suspendResult = this.gxi_1.rqt(tmp_0, tmp_1, CourseTerminologyListViewModel$slambda$lambda_0(this.gxi_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).v1m = function ($this$launch, completion) { var i = new CourseTerminologyListViewModel$slambda(this.gxi_1, completion); i.hxi_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function CourseTerminologyListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new CourseTerminologyListUiState(), 'CourseTerminologyList'); var tmp = this; tmp.ixj_1 = CourseTerminologyListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.yqt(strings_getInstance().rnd_1, strings_getInstance().snd_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hqs_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.courseterminology.list.CourseTerminologyListViewModel.' call var nextValue_0 = prevValue_0.wxh(this.ixj_1); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, CourseTerminologyListViewModel$slambda_0(this, null)); } protoOf(CourseTerminologyListViewModel).cqt = function () { this.vqt('CourseTerminologyEdit'); }; protoOf(CourseTerminologyListViewModel).jxj = function (entry) { this.xqt('CourseTerminologyEdit', entry.m8g_1, entry); }; protoOf(CourseTerminologyListViewModel).bqt = 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.uxh_1 = terminologyList; this.vxh_1 = showAddItemInList; } protoOf(CourseTerminologyListUiState).kxj = function (terminologyList, showAddItemInList) { return new CourseTerminologyListUiState(terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).wxh = function (terminologyList, showAddItemInList, $super) { terminologyList = terminologyList === VOID ? this.uxh_1 : terminologyList; showAddItemInList = showAddItemInList === VOID ? this.vxh_1 : showAddItemInList; return $super === VOID ? this.kxj(terminologyList, showAddItemInList) : $super.kxj.call(this, terminologyList, showAddItemInList); }; protoOf(CourseTerminologyListUiState).toString = function () { return 'CourseTerminologyListUiState(terminologyList=' + this.uxh_1 + ', showAddItemInList=' + this.vxh_1 + ')'; }; protoOf(CourseTerminologyListUiState).hashCode = function () { var result = hashCode(this.uxh_1); result = imul(result, 31) + getBooleanHashCode(this.vxh_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.uxh_1, tmp0_other_with_cast.uxh_1)) return false; if (!(this.vxh_1 === tmp0_other_with_cast.vxh_1)) return false; return true; }; function get_delItemContentTypeStringResource(_this__u8e3s4) { var tmp; var tmp_0; var tmp_1 = _this__u8e3s4.beg_1; if (tmp_1 === 7) { tmp_0 = _this__u8e3s4.feg_1; } else { tmp_0 = false; } if (tmp_0) { tmp = strings_getInstance().tn8_1; } else { var tmp_2 = _this__u8e3s4.beg_1; if (tmp_2 === 7) { tmp = strings_getInstance().umz_1; } else { tmp = null; } } return tmp; } function _get_restoreDeletedItemUseCase__7lscig($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mxk_1; restoreDeletedItemUseCase$factory_0(); return this_0.t2(); } function _get_deletePermanentlyUseCase__wdw610($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.nxk_1; deletePermanentlyUseCase$factory_0(); return this_0.t2(); } function restoreItems($this, items) { var tmp = $this.dqk(); launch(tmp, VOID, VOID, DeletedItemListViewModel$restoreItems$slambda_0($this, items, null)); } function Companion_164() { this.oxk_1 = 'DeletedItems'; } var Companion_instance_213; function Companion_getInstance_181() { return Companion_instance_213; } function DeletedItemListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().m7f().uef(this$0.eqk(), false); }; } function DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this$0, $itemsToDelete, resultContinuation) { this.xxk_1 = this$0; this.yxk_1 = $itemsToDelete; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemListViewModel$onConfirmDeletePermanently$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.xxk_1).bp9(this.yxk_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.xxk_1.kqk().qq3(new Snack(this.xxk_1.mqk().rwj(plurals_getInstance().wnn_1, this.yxk_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().q5e('Exception deleting', e); this.xxk_1.kqk().qq3(new Snack(this.xxk_1.mqk().eog(strings_getInstance().cme_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).v1m = function ($this$launch, completion) { var i = new DeletedItemListViewModel$onConfirmDeletePermanently$slambda(this.xxk_1, this.yxk_1, completion); i.zxk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DeletedItemListViewModel$restoreItems$slambda(this$0, $items, resultContinuation) { this.ixl_1 = this$0; this.jxl_1 = $items; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemListViewModel$restoreItems$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ixl_1).bp9(this.jxl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ixl_1.kqk().qq3(new Snack(this.ixl_1.mqk().rwj(plurals_getInstance().xnn_1, this.jxl_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).v1m = function ($this$launch, completion) { var i = new DeletedItemListViewModel$restoreItems$slambda(this.ixl_1, this.jxl_1, completion); i.kxl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DeletedItemListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new DeletedItemListUiState(), 'DeletedItems'); var tmp = this; tmp.lxk_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.mxk_1 = Instance(this_0, tmp$ret$0, null).a5d(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.nxk_1 = Instance(this_1, tmp$ret$2, null).a5d(this, deletePermanentlyUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.hqs_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue = prevValue.pxl(this.lxk_1); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.qqj_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.' call var nextValue_0 = prevValue_0.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().sni_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(DeletedItemListViewModel).bqt = function (searchText) { }; protoOf(DeletedItemListViewModel).qxl = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onDismissConfirmDialog.' call var nextValue = prevValue.pxl(VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).rxl = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.deleteditem.DeletedItemListViewModel.onConfirmDeletePermanently.' call var nextValue = prevValue.pxl(VOID, false); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var itemsToDelete = tmp$ret$1.oxl_1; var tmp = this.dqk(); launch(tmp, VOID, VOID, DeletedItemListViewModel$onConfirmDeletePermanently$slambda_0(this, itemsToDelete, null)); }; protoOf(DeletedItemListViewModel).sxl = function (item) { restoreItems(this, listOf_0(item)); }; protoOf(DeletedItemListViewModel).txl = function (item) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_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.mqk().rwj(plurals_getInstance().ynn_1, 1); var nextValue = prevValue.pxl(VOID, true, tmp1_deleteConfirmText, tmp0_itemsToConfirmDeletion); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(DeletedItemListViewModel).cqt = 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.lxl_1 = deletedItemsList; this.mxl_1 = confirmDialogVisible; this.nxl_1 = deleteConfirmText; this.oxl_1 = itemsToConfirmDeletion; } protoOf(DeletedItemListUiState).uxl = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) { return new DeletedItemListUiState(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).pxl = function (deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion, $super) { deletedItemsList = deletedItemsList === VOID ? this.lxl_1 : deletedItemsList; confirmDialogVisible = confirmDialogVisible === VOID ? this.mxl_1 : confirmDialogVisible; deleteConfirmText = deleteConfirmText === VOID ? this.nxl_1 : deleteConfirmText; itemsToConfirmDeletion = itemsToConfirmDeletion === VOID ? this.oxl_1 : itemsToConfirmDeletion; return $super === VOID ? this.uxl(deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion) : $super.uxl.call(this, deletedItemsList, confirmDialogVisible, deleteConfirmText, itemsToConfirmDeletion); }; protoOf(DeletedItemListUiState).toString = function () { return 'DeletedItemListUiState(deletedItemsList=' + this.lxl_1 + ', confirmDialogVisible=' + this.mxl_1 + ', deleteConfirmText=' + this.nxl_1 + ', itemsToConfirmDeletion=' + this.oxl_1 + ')'; }; protoOf(DeletedItemListUiState).hashCode = function () { var result = hashCode(this.lxl_1); result = imul(result, 31) + getBooleanHashCode(this.mxl_1) | 0; result = imul(result, 31) + (this.nxl_1 == null ? 0 : getStringHashCode(this.nxl_1)) | 0; result = imul(result, 31) + hashCode(this.oxl_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.lxl_1, tmp0_other_with_cast.lxl_1)) return false; if (!(this.mxl_1 === tmp0_other_with_cast.mxl_1)) return false; if (!(this.nxl_1 == tmp0_other_with_cast.nxl_1)) return false; if (!equals(this.oxl_1, tmp0_other_with_cast.oxl_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.cqt(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.gxn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda).eww = function (it, $completion) { var tmp = this.fww(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.eww((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.gxn_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nxn(this.hxn_1); if (this_0.y1k(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).fww = function (it, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda(this.gxn_1, completion); i.hxn_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.eww(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.wxn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda$slambda).yt0 = function (permissionPair, $completion) { var tmp = this.zt0(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.yt0(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.yxn_1 = this.xxn_1; this.zxn_1 = this.yxn_1.y6(); this.axo_1 = this.yxn_1.z6(); if (this.zxn_1) { l$ret$1: do { var this_0 = this.wxn_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.wxn_1.mqk().eog(strings_getInstance().hnf_1); var tmp_1 = FabIcon_ADD_getInstance(); var nextValue = prevValue.bq3(new FabUiState(true, tmp_0, tmp_1, CourseDiscussionDetailViewModel$onClickAdd$ref(this.wxn_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.wxn_1.hqs_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.nxn(VOID, this.wxn_1.xxm_1, this.axo_1, VOID, this.wxn_1.mqk().wq1()); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.hd_1 = 1; var tmp_2 = this.wxn_1.iqk().p7d().xck(this.wxn_1.vxm_1); var tmp_3 = CourseDiscussionDetailViewModel$slambda$slambda$slambda$slambda_0(this.wxn_1, null); suspendResult = tmp_2.a1c(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.wxn_1.qqj_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.bq3(new FabUiState()); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); l$ret$7: do { var this_3 = this.wxn_1.hqs_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.nxn(null, CourseDiscussionDetailViewModel$slambda$slambda$slambda$lambda, false); if (this_3.y1k(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).zt0 = function (permissionPair, completion) { var i = new CourseDiscussionDetailViewModel$slambda$slambda$slambda(this.wxn_1, completion); i.xxn_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.yt0(permissionPair, $completion); }; l.$arity = 1; return l; } function CourseDiscussionDetailViewModel$slambda$slambda(this$0, resultContinuation) { this.jxo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.jxo_1.iqk().o7f(); var tmp_1 = this.jxo_1.eqk(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.xdj(tmp_1, this.jxo_1.wxm_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, CourseDiscussionDetailViewModel$slambda$slambda$slambda_0(this.jxo_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).l78 = function (completion) { return new CourseDiscussionDetailViewModel$slambda$slambda(this.jxo_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.j87($completion); }; l.$arity = 0; return l; } function Companion_165() { this.kxo_1 = 'CourseDiscussion'; } var Companion_instance_214; function Companion_getInstance_182() { return Companion_instance_214; } function sam$kotlinx_coroutines_flow_FlowCollector$0_30(function_0) { this.lxo_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_30).t1d = function (value, $completion) { return this.lxo_1(value, $completion); }; function CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().h7f().lel(this$0.vxm_1, false); }; } function CourseDiscussionDetailViewModel$slambda(this$0, resultContinuation) { this.uxo_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CourseDiscussionDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.uxo_1.hqs_1, CourseDiscussionDetailViewModel$slambda$slambda_0(this.uxo_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).v1m = function ($this$launch, completion) { var i = new CourseDiscussionDetailViewModel$slambda(this.uxo_1, completion); i.vxo_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.u1m($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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.courediscussiondetail.CourseDiscussionDetailViewModel..' call var nextValue = prevValue.bq3(VOID, VOID, title); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function CourseDiscussionDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.exp_1 = this$0; this.fxp_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseDiscussionDetailViewModel$onDeletePost$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.exp_1.iqk().h7f().pel(this.fxp_1.eem_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.exp_1.kqk().qq3(new Snack(this.exp_1.mqk().eog(strings_getInstance().xme_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).v1m = function ($this$launch, completion) { var i = new CourseDiscussionDetailViewModel$onDeletePost$slambda(this.exp_1, this.fxp_1, completion); i.gxp_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.u1m($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_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.vxm_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_0 = this; Companion_getInstance_123(); 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.wxm_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_1 = this; tmp_1.xxm_1 = CourseDiscussionDetailViewModel$pagingSourceFactory$lambda(this); var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, CourseDiscussionDetailViewModel$slambda_0(this, null)); launchSetTitleFromClazzUid(this, this.wxm_1, CourseDiscussionDetailViewModel$lambda(this)); } protoOf(CourseDiscussionDetailViewModel).bqt = function (searchText) { }; protoOf(CourseDiscussionDetailViewModel).cqt = function () { Companion_getInstance_123(); var tmp = to('courseBlockUid', this.vxm_1.toString()); Companion_getInstance_123(); this.uqt('DiscussionPostEdit', mapOf([tmp, to('clazzUid', this.wxm_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).hxp = function (post) { Companion_getInstance_114(); var tmp = to('entityUid', post.eem_1.toString()); Companion_getInstance_123(); this.oqj_1.fp3('CourseDiscussionPost', mapOf([tmp, to('clazzUid', this.wxm_1.toString())])); }; protoOf(CourseDiscussionDetailViewModel).ixp = function (post) { var tmp = this.dqk(); 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.km9(), Companion_getInstance_9().jmd()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.ixn_1 = courseBlock; this.jxn_1 = posts; this.kxn_1 = showModerateOptions; this.lxn_1 = localDateTimeNow; this.mxn_1 = dayOfWeekStrings; } protoOf(CourseDiscussionDetailUiState).jxp = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new CourseDiscussionDetailUiState(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).nxn = function (courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { courseBlock = courseBlock === VOID ? this.ixn_1 : courseBlock; posts = posts === VOID ? this.jxn_1 : posts; showModerateOptions = showModerateOptions === VOID ? this.kxn_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.lxn_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.mxn_1 : dayOfWeekStrings; return $super === VOID ? this.jxp(courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.jxp.call(this, courseBlock, posts, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(CourseDiscussionDetailUiState).toString = function () { return 'CourseDiscussionDetailUiState(courseBlock=' + this.ixn_1 + ', posts=' + this.jxn_1 + ', showModerateOptions=' + this.kxn_1 + ', localDateTimeNow=' + this.lxn_1 + ', dayOfWeekStrings=' + this.mxn_1 + ')'; }; protoOf(CourseDiscussionDetailUiState).hashCode = function () { var result = this.ixn_1 == null ? 0 : this.ixn_1.hashCode(); result = imul(result, 31) + hashCode(this.jxn_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kxn_1) | 0; result = imul(result, 31) + this.lxn_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.mxn_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.ixn_1, tmp0_other_with_cast.ixn_1)) return false; if (!equals(this.jxn_1, tmp0_other_with_cast.jxn_1)) return false; if (!(this.kxn_1 === tmp0_other_with_cast.kxn_1)) return false; if (!this.lxn_1.equals(tmp0_other_with_cast.lxn_1)) return false; if (!equals(this.mxn_1, tmp0_other_with_cast.mxn_1)) return false; return true; }; function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.sxp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda).gq7 = function (result, $completion) { var tmp = this.hq7(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.gq7(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.txp_1.nq6_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.uxp_1 = tmp_2; this.hd_1 = 1; suspendResult = submitReply(this.sxp_1, this.uxp_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).hq7 = function (result, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda(this.sxp_1, completion); i.txp_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.gq7(result, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.dxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1).lrc = function (postTitle, $completion) { var tmp = this.mrc(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.lrc((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.dxq_1.qqj_1; var tmp_0; if (!(this_0.t2().oq2_1 == this.exq_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.bq3(VOID, VOID, this.exq_1); if (tmp0_safe_receiver.y1k(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).mrc = function (postTitle, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_1(this.dxq_1, completion); i.exq_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.lrc(postTitle, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this$0, resultContinuation) { this.nxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nxq_1.qqk(this.nxq_1.lqk(), 'replyTextResult'); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_0(this.nxq_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda(this.nxq_1, completion); i.oxq_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.xxq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.xxq_1.iqk().h7f().z8c(this.xxq_1.gqj_1); var tmp_1 = DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda$slambda_2(this.xxq_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_1(this.xxq_1, completion); i.yxq_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.u1m($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.hxr_1 = this$0; this.ixr_1 = $savedStateHandle; this.jxr_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda$slambda).yt0 = function (permissionPair, $completion) { var tmp = this.zt0(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.yt0(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.kxr_1; var hasViewPermission = tmp0_container.y6(); var hasModeratePermission = tmp0_container.z6(); if (hasViewPermission) { l$ret$1: do { var this_0 = this.hxr_1.ixs_1; while (true) { var prevValue = this_0.t2(); var tmp_0 = this.hxr_1.eqk(); var tmp_1 = this.hxr_1.cqk().go6().tnq_1.qkm(); var tmp0_safe_receiver = this.hxr_1.cqk().go6().vnq_1; var nextValue = prevValue.wxs(this.hxr_1.hxs_1, tmp_0, tmp_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h97_1, VOID, hasModeratePermission); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp1_elvis_lhs = this.ixr_1.ba('replyText'); this.hxr_1.kxs_1.x1k(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); launch(this.jxr_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_0(this.hxr_1, null)); launch(this.jxr_1, VOID, VOID, DiscussionPostDetailViewModel$slambda$slambda$slambda$slambda_2(this.hxr_1, null)); } else { l$ret$3: do { var this_1 = this.hxr_1.ixs_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_2 = DiscussionPostDetailViewModel$slambda$slambda$slambda$lambda; var tmp_3 = this.hxr_1.eqk(); var tmp_4 = this.hxr_1.cqk().go6().tnq_1.qkm(); var tmp0_safe_receiver_0 = this.hxr_1.cqk().go6().vnq_1; var nextValue_0 = prevValue_0.wxs(tmp_2, tmp_3, tmp_4, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.h97_1, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp2_elvis_lhs = this.ixr_1.ba('replyText'); this.hxr_1.kxs_1.x1k(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).zt0 = function (permissionPair, completion) { var i = new DiscussionPostDetailViewModel$slambda$slambda$slambda(this.hxr_1, this.ixr_1, this.jxr_1, completion); i.kxr_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.yt0(permissionPair, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$slambda$slambda(this$0, $savedStateHandle, $this_launch, resultContinuation) { this.fxt_1 = this$0; this.gxt_1 = $savedStateHandle; this.hxt_1 = $this_launch; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.fxt_1.iqk().o7f(); var tmp_1 = this.fxt_1.eqk(); PermissionFlags_getInstance(); var tmp_2 = new Long(1, 0); PermissionFlags_getInstance(); var tmp_3 = distinctUntilChanged(tmp_0.xdj(tmp_1, this.fxt_1.nxs_1, tmp_2, new Long(4, 0))); suspendResult = collectLatest(tmp_3, DiscussionPostDetailViewModel$slambda$slambda$slambda_0(this.fxt_1, this.gxt_1, this.hxt_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).l78 = function (completion) { return new DiscussionPostDetailViewModel$slambda$slambda(this.fxt_1, this.gxt_1, this.hxt_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.j87($completion); }; l.$arity = 0; return l; } function submitReply($this, replyText, $completion) { var tmp = new $submitReplyCOROUTINE$76($this, replyText, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_166() { this.yxt_1 = 'replyTextResult'; this.zxt_1 = 'replyText'; this.axu_1 = 'CourseDiscussionPost'; } var Companion_instance_215; function Companion_getInstance_183() { return Companion_instance_215; } function sam$kotlinx_coroutines_flow_FlowCollector$0_31(function_0) { this.bxu_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_31).t1d = function (value, $completion) { return this.bxu_1(value, $completion); }; function DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().h7f().nel(this$0.gqj_1, false); }; } function DiscussionPostDetailViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.kxu_1 = this$0; this.lxu_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.kxu_1.ixs_1, DiscussionPostDetailViewModel$slambda$slambda_0(this.kxu_1, this.lxu_1, this.mxu_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).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$slambda(this.kxu_1, this.lxu_1, completion); i.mxu_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onChangeReplyText$slambda(this$0, $replyText, resultContinuation) { this.vxu_1 = this$0; this.wxu_1 = $replyText; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onChangeReplyText$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.vxu_1.mqj_1.qqf('replyText', this.wxu_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).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onChangeReplyText$slambda(this.vxu_1, this.wxu_1, completion); i.xxu_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onClickPostReply$slambda(this$0, resultContinuation) { this.gxv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onClickPostReply$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.gxv_1, this.gxv_1.kxs_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).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onClickPostReply$slambda(this.gxv_1, completion); i.hxv_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$submitReply$slambda(this$0, $replyText, $clazzAndBlockUids, resultContinuation) { this.qxv_1 = this$0; this.rxv_1 = $replyText; this.sxv_1 = $clazzAndBlockUids; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$submitReply$slambda).dnv = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostDetailViewModel$submitReply$slambda).he = function (p1, $completion) { return this.dnv(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.qxv_1.iqk().h7f(); var this_0 = new DiscussionPost(); this_0.iem_1 = systemTimeInMillis(); this_0.fem_1 = this.qxv_1.gqj_1; this_0.hem_1 = this.rxv_1; this_0.lem_1 = this.qxv_1.eqk(); this_0.mem_1 = this.sxv_1.jco_1; this_0.jem_1 = this.sxv_1.kco_1; suspendResult = tmp_0.insertAsync(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.qxv_1.uxv(''); 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).env = function (it, completion) { var i = new DiscussionPostDetailViewModel$submitReply$slambda(this.qxv_1, this.rxv_1, this.sxv_1, completion); i.txv_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.dnv(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostDetailViewModel$onDeletePost$slambda(this$0, $post, resultContinuation) { this.dxw_1 = this$0; this.exw_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDetailViewModel$onDeletePost$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.dxw_1.iqk().h7f().pel(this.exw_1.eem_1, true, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.dxw_1.kqk().qq3(new Snack(this.dxw_1.mqk().eog(strings_getInstance().xme_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).v1m = function ($this$launch, completion) { var i = new DiscussionPostDetailViewModel$onDeletePost$slambda(this.dxw_1, this.exw_1, completion); i.fxw_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $submitReplyCOROUTINE$76(_this__u8e3s4, replyText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.qxt_1 = _this__u8e3s4; this.rxt_1 = replyText; } protoOf($submitReplyCOROUTINE$76).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.qxt_1.ixs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wxs(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.qxt_1.oqk(Companion_getInstance_96().iq3_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.qxt_1.gqk().p7d().ccl(this.qxt_1.gqj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.uxt_1 = suspendResult; var tmp_0 = this; tmp_0.vxt_1 = this.uxt_1; if ((!(this.vxt_1 == null) ? !this.vxt_1.jco_1.equals(new Long(0, 0)) : false) ? !this.vxt_1.kco_1.equals(new Long(0, 0)) : false) { this.wxt_1 = this.vxt_1; this.hd_1 = 5; continue $sm; } else { this.hd_1 = 4; suspendResult = this.qxt_1.iqk().p7d().ccl(this.qxt_1.gqj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 4: this.wxt_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: this.xxt_1 = this.wxt_1; if ((this.xxt_1 == null ? true : this.xxt_1.kco_1.equals(new Long(0, 0))) ? true : this.xxt_1.jco_1.equals(new Long(0, 0))) { this.qxt_1.kqk().qq3(new Snack(this.qxt_1.mqk().eog(strings_getInstance().cme_1))); this.txt_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.qxt_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_1, VOID, DiscussionPostDetailViewModel$submitReply$slambda_0(this.qxt_1, this.rxt_1, this.xxt_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.sxt_1 = suspendResult; this.id_1 = 11; this.hd_1 = 9; continue $sm; case 8: this.id_1 = 11; this.qxt_1.oqk(Companion_getInstance_96().jq3_1); l$ret$9: do { var this_1 = this.qxt_1.ixs_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.wxs(VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$9; } } } while (false); return Unit_instance; case 9: this.id_1 = 11; this.qxt_1.oqk(Companion_getInstance_96().jq3_1); l$ret$11: do { var this_2 = this.qxt_1.ixs_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.wxs(VOID, VOID, VOID, VOID, true); if (this_2.y1k(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.qxt_1.oqk(Companion_getInstance_96().jq3_1); l$ret$7: do { var this_3 = this.qxt_1.ixs_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.wxs(VOID, VOID, VOID, VOID, true); if (this_3.y1k(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.hxs_1 = DiscussionPostDetailViewModel$pagingSourceFactory$lambda(this); this.ixs_1 = MutableStateFlow(new DiscussionPostDetailUiState2()); this.jxs_1 = asStateFlow(this.ixs_1); this.kxs_1 = MutableStateFlow(''); this.lxs_1 = asStateFlow(this.kxs_1); this.mxs_1 = null; var tmp_0 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('clazzUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.nxs_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, DiscussionPostDetailViewModel$slambda_0(this, savedStateHandle, null)); } protoOf(DiscussionPostDetailViewModel).uxv = function (replyText) { this.kxs_1.x1k(replyText); var tmp0_safe_receiver = this.mxs_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.dqk(); tmp.mxs_1 = launch(tmp_0, VOID, VOID, DiscussionPostDetailViewModel$onChangeReplyText$slambda_0(this, replyText, null)); }; protoOf(DiscussionPostDetailViewModel).gxw = function () { var tmp = this.dqk(); launch(tmp, VOID, VOID, DiscussionPostDetailViewModel$onClickPostReply$slambda_0(this, null)); }; protoOf(DiscussionPostDetailViewModel).ixp = function (post) { var tmp = this.dqk(); 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.km9(), Companion_getInstance_9().jmd()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.oxs_1 = discussionPosts; this.pxs_1 = loggedInPersonUid; this.qxs_1 = loggedInPersonName; this.rxs_1 = loggedInPersonPictureUri; this.sxs_1 = fieldsEnabled; this.txs_1 = showModerateOptions; this.uxs_1 = localDateTimeNow; this.vxs_1 = dayOfWeekStrings; } protoOf(DiscussionPostDetailUiState2).hxw = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) { return new DiscussionPostDetailUiState2(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).wxs = function (discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings, $super) { discussionPosts = discussionPosts === VOID ? this.oxs_1 : discussionPosts; loggedInPersonUid = loggedInPersonUid === VOID ? this.pxs_1 : loggedInPersonUid; loggedInPersonName = loggedInPersonName === VOID ? this.qxs_1 : loggedInPersonName; loggedInPersonPictureUri = loggedInPersonPictureUri === VOID ? this.rxs_1 : loggedInPersonPictureUri; fieldsEnabled = fieldsEnabled === VOID ? this.sxs_1 : fieldsEnabled; showModerateOptions = showModerateOptions === VOID ? this.txs_1 : showModerateOptions; localDateTimeNow = localDateTimeNow === VOID ? this.uxs_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.vxs_1 : dayOfWeekStrings; return $super === VOID ? this.hxw(discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings) : $super.hxw.call(this, discussionPosts, loggedInPersonUid, loggedInPersonName, loggedInPersonPictureUri, fieldsEnabled, showModerateOptions, localDateTimeNow, dayOfWeekStrings); }; protoOf(DiscussionPostDetailUiState2).toString = function () { return 'DiscussionPostDetailUiState2(discussionPosts=' + this.oxs_1 + ', loggedInPersonUid=' + this.pxs_1.toString() + ', loggedInPersonName=' + this.qxs_1 + ', loggedInPersonPictureUri=' + this.rxs_1 + ', fieldsEnabled=' + this.sxs_1 + ', showModerateOptions=' + this.txs_1 + ', localDateTimeNow=' + this.uxs_1 + ', dayOfWeekStrings=' + this.vxs_1 + ')'; }; protoOf(DiscussionPostDetailUiState2).hashCode = function () { var result = hashCode(this.oxs_1); result = imul(result, 31) + this.pxs_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.qxs_1) | 0; result = imul(result, 31) + (this.rxs_1 == null ? 0 : getStringHashCode(this.rxs_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.sxs_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.txs_1) | 0; result = imul(result, 31) + this.uxs_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.vxs_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.oxs_1, tmp0_other_with_cast.oxs_1)) return false; if (!this.pxs_1.equals(tmp0_other_with_cast.pxs_1)) return false; if (!(this.qxs_1 === tmp0_other_with_cast.qxs_1)) return false; if (!(this.rxs_1 == tmp0_other_with_cast.rxs_1)) return false; if (!(this.sxs_1 === tmp0_other_with_cast.sxs_1)) return false; if (!(this.txs_1 === tmp0_other_with_cast.txs_1)) return false; if (!this.uxs_1.equals(tmp0_other_with_cast.uxs_1)) return false; if (!equals(this.vxs_1, tmp0_other_with_cast.vxs_1)) return false; return true; }; function DiscussionPostEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.qxw_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda).uxw = function (it, $completion) { var tmp = this.env(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.uxw(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.rxw_1.h7f(); var tmp_1; if (!this.qxw_1.uqp_1.equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.sxw_1 = tmp_1; if (this.sxw_1 == null) { this.txw_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.sxw_1.mel(this.qxw_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.txw_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.txw_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).env = function (it, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda$slambda(this.qxw_1, completion); i.rxw_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.uxw(it, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$slambda$slambda$slambda_1(this$0, resultContinuation) { this.dxx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).gxx = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.gxx($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.exx_1 = new DiscussionPost(); var tmp_1 = this; tmp_1.fxx_1 = this.exx_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.dxx_1.gqk()); suspendResult = tmp_2.o62(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.fxx_1.eem_1 = ARGUMENT; this.fxx_1.jem_1 = _get_courseBlockUidArg__1bqljt(this.dxx_1); this.fxx_1.lem_1 = this.dxx_1.cqk().ao7().hku_1; this.fxx_1.iem_1 = systemTimeInMillis(); return this.exx_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).l78 = function (completion) { return new DiscussionPostEditViewModel$slambda$slambda$slambda_1(this.dxx_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.gxx($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.exy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel....' call var nextValue = prevValue.kxy(entityToDisplay); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function DiscussionPostEditViewModel$slambda$slambda(this$0, resultContinuation) { this.txy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda$slambda).vxy = function ($this$async, $completion) { var tmp = this.v1m($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.vxy((!(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.n4r(); var tmp_1 = DiscussionPostEditViewModel$slambda$slambda$slambda_0(this.txy_1, null); var tmp_2 = DiscussionPostEditViewModel$slambda$slambda$slambda_2(this.txy_1, null); suspendResult = this.txy_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, DiscussionPostEditViewModel$slambda$slambda$lambda(this.txy_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).v1m = function ($this$async, completion) { var i = new DiscussionPostEditViewModel$slambda$slambda(this.txy_1, completion); i.uxy_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.vxy($this$async, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function DiscussionPostEditViewModel$onClickSave$slambda$slambda(this$0, $post, resultContinuation) { this.exz_1 = this$0; this.fxz_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.exz_1.iqk().h7f().oel(this.fxz_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).env = function (it, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda$slambda(this.exz_1, this.fxz_1, completion); i.gxz_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.dnv(it, $completion); }; l.$arity = 1; return l; } function _get_discussionPostUid__impog9($this) { Companion_getInstance_114(); var tmp0_safe_receiver = $this.mqj_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_123(); var tmp0_safe_receiver = $this.mqj_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_167() { this.hxz_1 = 'DiscussionPostEdit'; } var Companion_instance_216; function Companion_getInstance_184() { return Companion_instance_216; } function DiscussionPostEditViewModel$slambda(this$0, resultContinuation) { this.qxz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(DiscussionPostEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.rxz_1, VOID, VOID, DiscussionPostEditViewModel$slambda$slambda_0(this.qxz_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.qxz_1.exy_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.kxy(VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.qxz_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0 = this.qxz_1.mqk().eog(strings_getInstance().hnf_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$ref(this.qxz_1)); var tmp1_loadingState = Companion_getInstance_96().jq3_1; var nextValue_0 = prevValue_0.bq3(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$slambda(this.qxz_1, completion); i.rxz_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.ay0_1 = $commitDelay; this.by0_1 = $entity; this.cy0_1 = $this; this.dy0_1 = $key; this.ey0_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.ay0_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.by0_1 == null)) { this.hd_1 = 2; suspendResult = this.cy0_1.sqk(this.cy0_1.mqj_1, this.dy0_1, this.ey0_1, this.by0_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).v1m = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$onEntityChanged$slambda(this.ay0_1, this.by0_1, this.cy0_1, this.dy0_1, this.ey0_1, completion); i.fy0_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function DiscussionPostEditViewModel$onClickSave$slambda(this$0, $post, resultContinuation) { this.oy0_1 = this$0; this.py0_1 = $post; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.oy0_1.exy_1.t2().ixy_1 == null ? this.oy0_1.exy_1.t2().jxy_1 == null : false) { this.hd_1 = 1; suspendResult = this.oy0_1.gqk().p7d().dcl(this.py0_1.jem_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 5; continue $sm; } case 1: this.ry0_1 = suspendResult; this.py0_1.mem_1 = this.ry0_1; if (this.py0_1.mem_1.equals(new Long(0, 0))) { this.hd_1 = 2; suspendResult = this.oy0_1.iqk().p7d().dcl(this.py0_1.jem_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 3; continue $sm; } case 2: this.sy0_1 = suspendResult; this.py0_1.mem_1 = this.sy0_1; this.hd_1 = 3; continue $sm; case 3: this.hd_1 = 4; var tmp_0 = this.oy0_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_0, VOID, DiscussionPostEditViewModel$onClickSave$slambda$slambda_0(this.oy0_1, this.py0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var tmp_1 = this.py0_1.eem_1; var this_0 = LinkedHashMap_init_$Create$(); Companion_getInstance_123(); this.oy0_1.zqk(this_0, 'clazzUid'); this.oy0_1.vqp('CourseDiscussionPost', tmp_1, this.py0_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).v1m = function ($this$launch, completion) { var i = new DiscussionPostEditViewModel$onClickSave$slambda(this.oy0_1, this.py0_1, completion); i.qy0_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.u1m($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.exy_1 = MutableStateFlow(new DiscussionPostEditUiState()); this.fxy_1 = asStateFlow(this.exy_1); this.oqk(Companion_getInstance_96().iq3_1); var title = _get_discussionPostUid__impog9(this).equals(new Long(0, 0)) ? this.mqk().eog(strings_getInstance().gnh_1) : this.mqk().eog(strings_getInstance().fmr_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_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.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this.dqk(); launch(tmp, VOID, VOID, DiscussionPostEditViewModel$slambda_0(this, null)); } protoOf(DiscussionPostEditViewModel).ty0 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.exy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.discussionpost.edit.DiscussionPostEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.gxy_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gem_1; var tmp_0 = this.xqq(tmp, entity == null ? null : entity.gem_1, prevValue.ixy_1); var tmp2_safe_receiver = prevValue.gxy_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hem_1; var nextValue = prevValue.kxy(entity, VOID, tmp_0, this.xqq(tmp_1, entity == null ? null : entity.hem_1, prevValue.jxy_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_45.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.dqk(); tmp_2.tqp_1 = launch(tmp_3, VOID, VOID, DiscussionPostEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(DiscussionPostEditViewModel).js3 = function () { var tmp0_elvis_lhs = this.exy_1.t2().gxy_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.exy_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.gem_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_0 = this.mqk().eog(strings_getInstance().hmj_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; // Inline function 'kotlin.text.isNullOrEmpty' call var this_2 = post.hem_1; // Inline function 'kotlin.contracts.contract' call if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.mqk().eog(strings_getInstance().hmj_1); } else { tmp_2 = null; } var nextValue = prevValue.kxy(VOID, VOID, tmp_1, tmp_2); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.dqk(); 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.gxy_1 = discussionPost; this.hxy_1 = fieldsEnabled; this.ixy_1 = discussionPostTitleError; this.jxy_1 = discussionPostDescError; } protoOf(DiscussionPostEditUiState).uy0 = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) { return new DiscussionPostEditUiState(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).kxy = function (discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError, $super) { discussionPost = discussionPost === VOID ? this.gxy_1 : discussionPost; fieldsEnabled = fieldsEnabled === VOID ? this.hxy_1 : fieldsEnabled; discussionPostTitleError = discussionPostTitleError === VOID ? this.ixy_1 : discussionPostTitleError; discussionPostDescError = discussionPostDescError === VOID ? this.jxy_1 : discussionPostDescError; return $super === VOID ? this.uy0(discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError) : $super.uy0.call(this, discussionPost, fieldsEnabled, discussionPostTitleError, discussionPostDescError); }; protoOf(DiscussionPostEditUiState).toString = function () { return 'DiscussionPostEditUiState(discussionPost=' + this.gxy_1 + ', fieldsEnabled=' + this.hxy_1 + ', discussionPostTitleError=' + this.ixy_1 + ', discussionPostDescError=' + this.jxy_1 + ')'; }; protoOf(DiscussionPostEditUiState).hashCode = function () { var result = this.gxy_1 == null ? 0 : hashCode(this.gxy_1); result = imul(result, 31) + getBooleanHashCode(this.hxy_1) | 0; result = imul(result, 31) + (this.ixy_1 == null ? 0 : getStringHashCode(this.ixy_1)) | 0; result = imul(result, 31) + (this.jxy_1 == null ? 0 : getStringHashCode(this.jxy_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.gxy_1, tmp0_other_with_cast.gxy_1)) return false; if (!(this.hxy_1 === tmp0_other_with_cast.hxy_1)) return false; if (!(this.ixy_1 == tmp0_other_with_cast.ixy_1)) return false; if (!(this.jxy_1 == tmp0_other_with_cast.jxy_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.xoa_1; } else { tmp = _this__u8e3s4.xoa_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.zy1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.....' call var nextValue = prevValue.ny2(VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function EpubContentViewModel$slambda$slambda$slambda(this$0, $cevOpenUri, $manifest, $cevManifestUrlObj, resultContinuation) { this.wy2_1 = this$0; this.xy2_1 = $cevOpenUri; this.yy2_1 = $manifest; this.zy2_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda$slambda).jy3 = function (it, $completion) { var tmp = this.ky3(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.jy3(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.by3_1 = _get_httpClient__2ty1zc_2(this.wy2_1); var tmp_1 = this; tmp_1.cy3_1 = invoke$urlToLoad(this.ay3_1, this.xy2_1, this.yy2_1, this.wy2_1, this.zy2_1); var tmp_2 = this; tmp_2.dy3_1 = this.by3_1; var tmp_3 = this; tmp_3.ey3_1 = this.dy3_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.cy3_1); tmp_4.fy3_1 = this_0; this.fy3_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.gy3_1 = this.ey3_1; var tmp_6 = this; tmp_6.hy3_1 = this.fy3_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.hy3_1, this.gy3_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.iy3_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.iy3_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).ky3 = function (it, completion) { var i = new EpubContentViewModel$slambda$slambda$slambda(this.wy2_1, this.xy2_1, this.yy2_1, this.zy2_1, completion); i.ay3_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.jy3(it, $completion); }; l.$arity = 1; return l; } function invoke$urlToLoad_0(_this__u8e3s4, this$0, cevManifestUrlObj) { var tmp; if (this$0.vy1_1) { tmp = _this__u8e3s4.bod_1; } else { tmp = cevManifestUrlObj.boz(_this__u8e3s4.toc_1).toString(); } return tmp; } function EpubContentViewModel$slambda$slambda($manifest, $cevOpenUri, this$0, $opfBaseUrl, $argTocString, $cevManifestUrlObj, resultContinuation) { this.ty3_1 = $manifest; this.uy3_1 = $cevOpenUri; this.vy3_1 = this$0; this.wy3_1 = $opfBaseUrl; this.xy3_1 = $argTocString; this.yy3_1 = $cevManifestUrlObj; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda$slambda).u1m = function ($this$withContext, $completion) { var tmp = this.v1m($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.u1m((!(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.ay4_1 = requireEntryByUri(this.ty3_1, this.uy3_1); var tmp_0 = this; tmp_0.by4_1 = _get_httpClient__2ty1zc_2(this.vy3_1); var tmp_1 = this; tmp_1.cy4_1 = invoke$urlToLoad_0(this.ay4_1, this.vy3_1, this.yy3_1); var tmp_2 = this; tmp_2.dy4_1 = this.by4_1; var tmp_3 = this; tmp_3.ey4_1 = this.dy4_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.cy4_1); tmp_4.fy4_1 = this_0; this.fy4_1.w38_1 = Companion_getInstance().l2x_1; var tmp_5 = this; tmp_5.gy4_1 = this.ey4_1; var tmp_6 = this; tmp_6.hy4_1 = this.fy4_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.hy4_1, this.gy4_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.iy4_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.iy4_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.jy4_1 = suspendResult; this.ky4_1 = _get_xml__e6jxp6(this.vy3_1).s45(Companion_instance_76.n4r(), this.jy4_1); var tmp_7 = this; var this_1 = this.ky4_1.boc_1.gob_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.woa_1, element); } tmp_7.ly4_1 = destination; var tmp_8 = this; var this_2 = this.ky4_1.coc_1.foc_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.ly4_1.q(element_0.cob_1); var tmp_9; if (tmp0_safe_receiver == null) { tmp_9 = null; } else { tmp_9 = this.wy3_1.boz(tmp0_safe_receiver.xoa_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.my4_1 = destination_0; var tmp_10 = this; var tmp0_safe_receiver_1 = this.ky4_1.doc(); var tmp_11; if (tmp0_safe_receiver_1 == null) { tmp_11 = null; } else { tmp_11 = this.wy3_1.boz(tmp0_safe_receiver_1.xoa_1); } var tmp1_safe_receiver_0 = tmp_11; tmp_10.ny4_1 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.toString(); l$ret$1: do { var this_3 = this.vy3_1.zy1_1; while (true) { var prevValue = this_3.t2(); var tmp0_safe_receiver_2 = firstOrNull(this.ky4_1.aoc_1.qob_1); var nextValue = prevValue.ny2(VOID, this.my4_1, VOID, VOID, VOID, this.ny4_1, tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.poa_1); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_4 = this.vy3_1.qqj_1; while (true) { var prevValue_0 = this_4.t2(); var tmp0_safe_receiver_3 = firstOrNull(this.ky4_1.aoc_1.oob_1); var tmp1_elvis_lhs = tmp0_safe_receiver_3 == null ? null : tmp0_safe_receiver_3.toa_1; var tmp_12 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = this.xy3_1; var tmp_13 = tmp2_elvis_lhs == null ? this.vy3_1.mqk().eog(strings_getInstance().pnh_1) : tmp2_elvis_lhs; var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp_12, VOID, VOID, VOID, VOID, VOID, VOID, listOf_0(new OverflowItem(tmp_13, EpubContentViewModel$slambda$slambda$lambda(this.vy3_1)))); if (this_4.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); var tmp_14 = this.vy3_1; var tmp2_safe_receiver = this.ky4_1.eoc(); var tmp_15; if (tmp2_safe_receiver == null) { tmp_15 = null; } else { tmp_15 = this.wy3_1.boz(tmp2_safe_receiver.xoa_1).toString(); } tmp_14.ey2_1 = tmp_15; this.hd_1 = 3; suspendResult = this.vy3_1.uy1_1.rpa(this.ky4_1, EpubContentViewModel$slambda$slambda$slambda_0(this.vy3_1, this.uy3_1, this.ty3_1, this.yy3_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.vy3_1.zy1_1; while (true) { var prevValue_1 = this_5.t2(); var nextValue_1 = prevValue_1.ny2(VOID, VOID, tocItems); if (this_5.y1k(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).v1m = function ($this$withContext, completion) { var i = new EpubContentViewModel$slambda$slambda(this.ty3_1, this.uy3_1, this.vy3_1, this.wy3_1, this.xy3_1, this.yy3_1, completion); i.zy3_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.u1m($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_httpClient__2ty1zc_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xy1_1; httpClient$factory_6(); return this_0.t2(); } function _get_xml__e6jxp6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yy1_1; xml$factory_0(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.by2_1; openExternalLinkUseCase$factory_2(); return this_0.t2(); } function Companion_168() { this.oy4_1 = 'manifestUrl'; this.py4_1 = 'cevUri'; this.qy4_1 = 'navigationVisible'; this.ry4_1 = 'tocString'; this.sy4_1 = 'xapiStatementsUrl'; this.ty4_1 = 'EpubContent'; } var Companion_instance_217; function Companion_getInstance_185() { return Companion_instance_217; } function EpubContentViewModel$slambda($argManifestUrl, $argCevOpenUri, this$0, $argTocString, resultContinuation) { this.cy5_1 = $argManifestUrl; this.dy5_1 = $argCevOpenUri; this.ey5_1 = this$0; this.fy5_1 = $argTocString; CoroutineImpl.call(this, resultContinuation); } protoOf(EpubContentViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EpubContentViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.cy5_1 == null) ? !(this.dy5_1 == null) : false) { var tmp_0 = this; tmp_0.hy5_1 = to(this.cy5_1, this.dy5_1); this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.ey5_1.iqk().i7f().wbp(this.ey5_1.wy1_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.iy5_1 = suspendResult; var tmp_1 = this; var tmp_2; if (this.iy5_1 == null) { return Unit_instance; } else { tmp_2 = this.iy5_1; } tmp_1.jy5_1 = tmp_2; var tmp_3 = this; var tmp1_elvis_lhs = this.jy5_1.gax_1; var tmp_4; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_4 = tmp1_elvis_lhs; } tmp_3.ky5_1 = tmp_4; var tmp_5 = this; var tmp2_elvis_lhs = this.jy5_1.eax_1; var tmp_6; if (tmp2_elvis_lhs == null) { return Unit_instance; } else { tmp_6 = tmp2_elvis_lhs; } tmp_5.ly5_1 = tmp_6; this.hy5_1 = to(this.ky5_1, this.ly5_1); this.hd_1 = 2; continue $sm; case 2: this.my5_1 = this.hy5_1; this.ny5_1 = this.my5_1.y6(); this.oy5_1 = this.my5_1.z6(); this.py5_1 = UrlKmp(this.ny5_1); this.qy5_1 = this.py5_1.boz(this.oy5_1); var tmp_7 = this; tmp_7.ry5_1 = this.ey5_1.m4r(); var tmp_8 = this; tmp_8.sy5_1 = _get_httpClient__2ty1zc_2(this.ey5_1); var tmp_9 = this; tmp_9.ty5_1 = this.ny5_1; var tmp_10 = this; tmp_10.uy5_1 = this.sy5_1; var tmp_11 = this; tmp_11.vy5_1 = this.uy5_1; var tmp_12 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.ty5_1); tmp_12.wy5_1 = this_0; this.wy5_1.w38_1 = Companion_getInstance().l2x_1; var tmp_13 = this; tmp_13.xy5_1 = this.vy5_1; var tmp_14 = this; tmp_14.yy5_1 = this.wy5_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.yy5_1, this.xy5_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.zy5_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.zy5_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.ay6_1 = suspendResult; var tmp_15 = this; var this_1 = this.ry5_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_15.by6_1 = this.ry5_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.ay6_1); this.hd_1 = 5; var tmp_16 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_16, EpubContentViewModel$slambda$slambda_0(this.by6_1, this.oy5_1, this.ey5_1, this.qy5_1, this.fy5_1, this.py5_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).v1m = function ($this$launch, completion) { var i = new EpubContentViewModel$slambda(this.cy5_1, this.dy5_1, this.ey5_1, this.fy5_1, completion); i.gy5_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.u1m($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).f58(); // 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.d58(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.uy1_1 = getEpubTableOfContentsUseCase; this.vy1_1 = useBodyDataUrls; var tmp_2 = this; Companion_getInstance_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.wy1_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.xy1_1 = Instance(this, tmp$ret$2, null).a5d(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.yy1_1 = Instance(this, tmp$ret$4, null).a5d(this, xml$factory()); this.zy1_1 = MutableStateFlow(new EpubContentUiState(this.wy1_1)); this.ay2_1 = asStateFlow(this.zy1_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.by2_1 = Instance(this, tmp$ret$6, null).a5d(this, openExternalLinkUseCase$factory_1()); this.cy2_1 = MutableSharedFlow(1, 0, BufferOverflow_DROP_OLDEST_getInstance()); this.dy2_1 = asSharedFlow(this.cy2_1); this.ey2_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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, argNavigationVisible, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_9 = this.dqk(); launch(tmp_9, VOID, VOID, EpubContentViewModel$slambda_0(argManifestUrl, argCevOpenUri, this, argTocString, null)); } protoOf(EpubContentViewModel).cy6 = function () { var langCodeVal = this.zy1_1.t2().ly2_1; var titleVal = this.qqj_1.t2().oq2_1; var tmp; if (!(langCodeVal == null) ? !(titleVal == null) : false) { tmp = new TitleAndLangCode(titleVal, langCodeVal); } else { tmp = null; } return tmp; }; protoOf(EpubContentViewModel).dy6 = function (baseUrl, href) { var url = UrlKmp(baseUrl).boz(href); var urlStr = url.toString(); var hashIndex = indexOf_0(urlStr, '#'); var urlWithoutHash = substringBefore_0(urlStr, '#'); var indexInSpine = this.zy1_1.t2().gy2_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.cy2_1.i1h(new EpubScrollCommand(indexInSpine, tmp)); } else { _get_openExternalLinkUseCase__ku5z07_0(this).dpg(url.toString(), LinkTarget_BLANK_getInstance()); } }; protoOf(EpubContentViewModel).ey6 = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zy1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickTocItem.' call var nextValue = prevValue.ny2(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = this.ey2_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var baseHref = tmp; var tmp1_elvis_lhs = tocItem.mpa_1; var tmp_0; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_0 = tmp1_elvis_lhs; } var itemUrl = tmp_0; this.dy6(baseHref, itemUrl); }; protoOf(EpubContentViewModel).fy6 = function (tocItem) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zy1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onClickToggleTocItem.' call var tmp; if (prevValue.jy2_1.a1(tocItem.kpa_1)) { // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_1 = prevValue.jy2_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.kpa_1)) { destination.i1(element); } } tmp = toSet(destination); } else { tmp = plus_2(prevValue.jy2_1, tocItem.kpa_1); } var nextValue = prevValue.ny2(VOID, VOID, VOID, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).gy6 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.zy1_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.epubcontent.EpubContentViewModel.onDismissTableOfContentsDrawer.' call var nextValue = prevValue.ny2(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(EpubContentViewModel).hy6 = function (index) { var spineSize = this.zy1_1.t2().gy2_1.u(); if (spineSize <= 0) return Unit_instance; if (index === (spineSize - 1 | 0)) { this.vpz(true); } else { this.upz(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.fy2_1 = contentEntryVersionUid; this.gy2_1 = spineUrls; this.hy2_1 = tableOfContents; this.iy2_1 = tableOfContentsOpen; this.jy2_1 = collapsedTocUids; this.ky2_1 = coverImageUrl; this.ly2_1 = langCode; var tmp = this; // Inline function 'kotlin.collections.filter' call // Inline function 'kotlin.collections.filterTo' call var this_0 = this.hy2_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.jy2_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.iy7(element_0)) { tmp$ret$0 = true; break $l$block_0; } } tmp$ret$0 = false; } if (!tmp$ret$0) { destination.i1(element); } } tmp.my2_1 = destination; } protoOf(EpubContentUiState).jy7 = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) { return new EpubContentUiState(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).ny2 = function (contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode, $super) { contentEntryVersionUid = contentEntryVersionUid === VOID ? this.fy2_1 : contentEntryVersionUid; spineUrls = spineUrls === VOID ? this.gy2_1 : spineUrls; tableOfContents = tableOfContents === VOID ? this.hy2_1 : tableOfContents; tableOfContentsOpen = tableOfContentsOpen === VOID ? this.iy2_1 : tableOfContentsOpen; collapsedTocUids = collapsedTocUids === VOID ? this.jy2_1 : collapsedTocUids; coverImageUrl = coverImageUrl === VOID ? this.ky2_1 : coverImageUrl; langCode = langCode === VOID ? this.ly2_1 : langCode; return $super === VOID ? this.jy7(contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode) : $super.jy7.call(this, contentEntryVersionUid, spineUrls, tableOfContents, tableOfContentsOpen, collapsedTocUids, coverImageUrl, langCode); }; protoOf(EpubContentUiState).toString = function () { return 'EpubContentUiState(contentEntryVersionUid=' + this.fy2_1.toString() + ', spineUrls=' + this.gy2_1 + ', tableOfContents=' + this.hy2_1 + ', tableOfContentsOpen=' + this.iy2_1 + ', collapsedTocUids=' + this.jy2_1 + ', coverImageUrl=' + this.ky2_1 + ', langCode=' + this.ly2_1 + ')'; }; protoOf(EpubContentUiState).hashCode = function () { var result = this.fy2_1.hashCode(); result = imul(result, 31) + hashCode(this.gy2_1) | 0; result = imul(result, 31) + hashCode(this.hy2_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.iy2_1) | 0; result = imul(result, 31) + hashCode(this.jy2_1) | 0; result = imul(result, 31) + (this.ky2_1 == null ? 0 : getStringHashCode(this.ky2_1)) | 0; result = imul(result, 31) + (this.ly2_1 == null ? 0 : getStringHashCode(this.ly2_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.fy2_1.equals(tmp0_other_with_cast.fy2_1)) return false; if (!equals(this.gy2_1, tmp0_other_with_cast.gy2_1)) return false; if (!equals(this.hy2_1, tmp0_other_with_cast.hy2_1)) return false; if (!(this.iy2_1 === tmp0_other_with_cast.iy2_1)) return false; if (!equals(this.jy2_1, tmp0_other_with_cast.jy2_1)) return false; if (!(this.ky2_1 == tmp0_other_with_cast.ky2_1)) return false; if (!(this.ly2_1 == tmp0_other_with_cast.ly2_1)) return false; return true; }; function EpubScrollCommand(spineIndex, hash) { hash = hash === VOID ? null : hash; this.ky7_1 = spineIndex; this.ly7_1 = hash; } protoOf(EpubScrollCommand).toString = function () { return 'EpubScrollCommand(spineIndex=' + this.ky7_1 + ', hash=' + this.ly7_1 + ')'; }; protoOf(EpubScrollCommand).hashCode = function () { var result = this.ky7_1; result = imul(result, 31) + (this.ly7_1 == null ? 0 : getStringHashCode(this.ly7_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.ky7_1 === tmp0_other_with_cast.ky7_1)) return false; if (!(this.ly7_1 == tmp0_other_with_cast.ly7_1)) return false; return true; }; function EpubTocItem(uid, label, href, children, parentUids, indentLevel) { parentUids = parentUids === VOID ? emptySet() : parentUids; indentLevel = indentLevel === VOID ? 0 : indentLevel; this.kpa_1 = uid; this.lpa_1 = label; this.mpa_1 = href; this.npa_1 = children; this.opa_1 = parentUids; this.ppa_1 = indentLevel; var tmp = this; // Inline function 'kotlin.collections.isNotEmpty' call tmp.qpa_1 = !this.npa_1.c1(); } protoOf(EpubTocItem).iy7 = function (uid) { return this.opa_1.a1(uid); }; protoOf(EpubTocItem).toString = function () { return 'EpubTocItem(uid=' + this.kpa_1 + ', label=' + this.lpa_1 + ', href=' + this.mpa_1 + ', children=' + this.npa_1 + ', parentUids=' + this.opa_1 + ', indentLevel=' + this.ppa_1 + ')'; }; protoOf(EpubTocItem).hashCode = function () { var result = this.kpa_1; result = imul(result, 31) + getStringHashCode(this.lpa_1) | 0; result = imul(result, 31) + (this.mpa_1 == null ? 0 : getStringHashCode(this.mpa_1)) | 0; result = imul(result, 31) + hashCode(this.npa_1) | 0; result = imul(result, 31) + hashCode(this.opa_1) | 0; result = imul(result, 31) + this.ppa_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.kpa_1 === tmp0_other_with_cast.kpa_1)) return false; if (!(this.lpa_1 === tmp0_other_with_cast.lpa_1)) return false; if (!(this.mpa_1 == tmp0_other_with_cast.mpa_1)) return false; if (!equals(this.npa_1, tmp0_other_with_cast.npa_1)) return false; if (!equals(this.opa_1, tmp0_other_with_cast.opa_1)) return false; if (!(this.ppa_1 === tmp0_other_with_cast.ppa_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_169() { this.my7_1 = 'Error'; } var Companion_instance_218; function Companion_getInstance_186() { return Companion_instance_218; } function LoginViewModel$getCredentials$slambda$lambda($credentialResult) { return function () { return 'Error occurred: ' + $credentialResult.qr0_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.my8_1; impl$factory_2(); return this_0.t2(); } function _get_httpClient__2ty1zc_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ny8_1; httpClient$factory_8(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.oy8_1; apiUrlConfig$factory_8(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.qy8_1; setLanguageUseCase$factory_2(); return this_0.t2(); } function _get_languagesConfig__hebcss($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ry8_1; languagesConfig$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.uy8_1; getVersionUseCase$factory_2(); return this_0.t2(); } function _get_getShowPoweredByUseCase__5l0p0e_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vy8_1; getShowPoweredByUseCase$factory_2(); return this_0.t2(); } function _get_savePasswordUseCase__awoktu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yy8_1; savePasswordUseCase$factory_0(); return this_0.t2(); } function _get_getCredentialUseCase__qofq9r_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ay9_1; getCredentialUseCase$factory_2(); return this_0.t2(); } function onSiteVerified($this, site) { $this.py8_1 = site; $this.oqk(Companion_getInstance_96().jq3_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.iy8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onSiteVerified.' call var tmp0_connectAsGuestVisible = site.mhj_1; var nextValue = prevValue.py9(VOID, VOID, true, VOID, VOID, VOID, tmp0_connectAsGuestVisible, VOID, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } function goToNextDestAfterLoginOrGuestSelected($this, person) { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.k5e(VOID, VOID, LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda($this)); if (person.n96_1) { if ($this.wy8_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.login.LoginViewModel.goToNextDestAfterLoginOrGuestSelected.' call Companion_getInstance_123(); this_0.s('next', $this.ky8_1); $this.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_123(); $this.zqk(this_0, 'next'); var tmp$ret$2 = this_0.f3(); $this.oqj_1.fp3('ChildProfileList', tmp$ret$2); return Unit_instance; } var tmp_0 = $this; Companion_getInstance_167(); tmp_0.ky8_1 = 'ContentEntryListHome'; } $this.yqq($this.oqj_1, appendSelectedAccount($this.ky8_1, person.f96_1, new LearningSpace($this.ly8_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.dqk(); launch(tmp_0, VOID, VOID, LoginViewModel$getCredentials$slambda_0(getCredentialUseCaseVal, $this, null)); } function Companion_170() { this.qy9_1 = 'Login'; } var Companion_instance_219; function Companion_getInstance_187() { return Companion_instance_219; } function LoginViewModel$slambda(this$0, resultContinuation) { this.zy9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LoginViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.zy9_1.py8_1 == null)) { this.hd_1 = 6; continue $sm; } this.id_1 = 3; this.hd_1 = 2; suspendResult = verifySite(_get_httpClient__2ty1zc_3(this.zy9_1), this.zy9_1.ly8_1, new Long(10000, 0), this.zy9_1.m4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.bya_1 = suspendResult; onSiteVerified(this.zy9_1, this.bya_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.cya_1 = this.kd_1; Napier_getInstance().m5e('Could not load site object for ' + this.zy9_1.ly8_1, this.cya_1); l$ret$1: do { var this_0 = this.zy9_1.iy8_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.py9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _get_impl__d88w17_0(this.zy9_1).eog(strings_getInstance().mme_1)); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new LoginViewModel$slambda(this.zy9_1, completion); i.aya_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$goToNextDestAfterLoginOrGuestSelected$lambda(this$0) { return function () { return 'LoginPresenter: go to next destination: ' + this$0.ky8_1; }; } function LoginViewModel$onClickLogin$slambda(this$0, $username, $password, resultContinuation) { this.lya_1 = this$0; this.mya_1 = $username; this.nya_1 = $password; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$onClickLogin$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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 = 9; this.pya_1 = null; this.hd_1 = 1; continue $sm; case 1: this.id_1 = 8; this.id_1 = 7; this.hd_1 = 2; var tmp_0 = this.lya_1.cqk(); var this_0 = this.mya_1; var tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var this_1 = this.nya_1; var tmp_2 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); var tmp_3 = this.lya_1.ly8_1; Companion_getInstance_114(); var tmp0_safe_receiver = this.lya_1.mqj_1.ba('maxDob'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); suspendResult = tmp_0.lo7(tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs, this.lya_1.xy8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.rya_1 = suspendResult; if (!this.lya_1.zy8_1) { this.sya_1 = _get_savePasswordUseCase__awoktu(this.lya_1); if (this.sya_1 == null) { this.tya_1 = null; this.hd_1 = 4; continue $sm; } else { this.hd_1 = 3; var this_2 = this.mya_1; var tmp_4 = toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())); var this_3 = this.nya_1; suspendResult = this.sya_1.zp8(tmp_4, toString(trim(isCharSequence(this_3) ? this_3 : THROW_CCE())), this.lya_1.ly8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } else { this.hd_1 = 5; continue $sm; } case 3: var tmp_5 = this; tmp_5.tya_1 = Unit_instance; this.hd_1 = 4; continue $sm; case 4: this.hd_1 = 5; continue $sm; case 5: this.hd_1 = 6; var tmp_6 = this.lya_1.cqk(); var this_4 = this.mya_1; suspendResult = tmp_6.fo7(toString(trim(isCharSequence(this_4) ? this_4 : THROW_CCE())), this.rya_1.hku_1, get_doorIdentityHashCode(this.lya_1.a57()).toString(), systemTimeInMillis(), this.lya_1.ly8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var tmp_7 = this; goToNextDestAfterLoginOrGuestSelected(this.lya_1, this.rya_1.pku()); tmp_7.qya_1 = Unit_instance; this.id_1 = 9; this.hd_1 = 10; continue $sm; case 7: this.id_1 = 8; var tmp_8 = this.kd_1; if (tmp_8 instanceof AdultAccountRequiredException) { var e = this.kd_1; var tmp_9 = this; this.pya_1 = _get_impl__d88w17_0(this.lya_1).eog(strings_getInstance().una_1); tmp_9.qya_1 = Unit_instance; this.id_1 = 9; this.hd_1 = 10; continue $sm; } else { var tmp_10 = this.kd_1; if (tmp_10 instanceof UnauthorizedException) { var e_0 = this.kd_1; var tmp_11 = this; this.pya_1 = _get_impl__d88w17_0(this.lya_1).eog(strings_getInstance().lme_1); tmp_11.qya_1 = Unit_instance; this.id_1 = 9; this.hd_1 = 10; continue $sm; } else { var tmp_12 = this.kd_1; if (tmp_12 instanceof ConsentNotGrantedException) { var e_1 = this.kd_1; var tmp_13 = this; this.pya_1 = _get_impl__d88w17_0(this.lya_1).eog(strings_getInstance().tna_1); tmp_13.qya_1 = Unit_instance; this.id_1 = 9; this.hd_1 = 10; continue $sm; } else { var tmp_14 = this.kd_1; if (tmp_14 instanceof Exception) { var e_2 = this.kd_1; var tmp_15 = this; this.pya_1 = _get_impl__d88w17_0(this.lya_1).eog(strings_getInstance().mme_1); tmp_15.qya_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; this.lya_1.oqk(Companion_getInstance_96().jq3_1); l$ret$3: do { var this_5 = this.lya_1.iy8_1; while (true) { var prevValue = this_5.t2(); var nextValue = prevValue.py9(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.pya_1); if (this_5.y1k(prevValue, nextValue)) { break l$ret$3; } } } while (false); throw t; case 9: throw this.kd_1; case 10: this.id_1 = 9; this.lya_1.oqk(Companion_getInstance_96().jq3_1); l$ret$5: do { var this_6 = this.lya_1.iy8_1; while (true) { var prevValue_0 = this_6.t2(); var nextValue_0 = prevValue_0.py9(VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, this.pya_1); if (this_6.y1k(prevValue_0, nextValue_0)) { break l$ret$5; } } } while (false); return Unit_instance; } } catch ($p) { var e_3 = $p; if (this.id_1 === 9) { throw e_3; } else { this.hd_1 = this.id_1; this.kd_1 = e_3; } } while (true); }; protoOf(LoginViewModel$onClickLogin$slambda).v1m = function ($this$launch, completion) { var i = new LoginViewModel$onClickLogin$slambda(this.lya_1, this.mya_1, this.nya_1, completion); i.oya_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$onClickConnectAsGuest$slambda(this$0, resultContinuation) { this.cyb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$onClickConnectAsGuest$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.cyb_1.cqk().mo7(this.cyb_1.ly8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var guestPerson = suspendResult; goToNextDestAfterLoginOrGuestSelected(this.cyb_1, guestPerson.tnq_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).v1m = function ($this$launch, completion) { var i = new LoginViewModel$onClickConnectAsGuest$slambda(this.cyb_1, completion); i.dyb_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel$getCredentials$slambda($getCredentialUseCaseVal, this$0, resultContinuation) { this.myb_1 = $getCredentialUseCaseVal; this.nyb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LoginViewModel$getCredentials$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.myb_1.np8(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pyb_1 = suspendResult; var tmp_0 = this.pyb_1; if (tmp_0 instanceof PasskeyCredentialResult) { this.hd_1 = 2; suspendResult = this.nyb_1.cqk().ko7(this.pyb_1.mr2_1, this.nyb_1.ly8_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_1 = this.pyb_1; if (tmp_1 instanceof PasswordCredentialResult) { var tmp0_container = Companion_instance_91.mp8(this.pyb_1.kr2_1); var learningSpace = tmp0_container.y6(); var username = tmp0_container.z6(); this.nyb_1.qyb(username); this.nyb_1.ryb(this.pyb_1.lr2_1); this.nyb_1.zy8_1 = true; var tmp_2 = this.nyb_1; var this_0 = learningSpace.nnp_1; Companion_getInstance_114(); this.nyb_1.mqj_1.qqf('learningSpaceUrl', this_0); tmp_2.ly8_1 = this_0; this.nyb_1.syb(); this.hd_1 = 3; continue $sm; } else { var tmp_3 = this.pyb_1; if (tmp_3 instanceof Error_1) { var tmp_4 = Napier_getInstance(); tmp_4.s5e(VOID, VOID, LoginViewModel$getCredentials$slambda$lambda(this.pyb_1)); this.hd_1 = 3; continue $sm; } else { this.hd_1 = 3; continue $sm; } } } case 2: var account = suspendResult; goToNextDestAfterLoginOrGuestSelected(this.nyb_1, account.pku()); 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.s5e(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).v1m = function ($this$launch, completion) { var i = new LoginViewModel$getCredentials$slambda(this.myb_1, this.nyb_1, completion); i.oyb_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function LoginViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Login'); this.iy8_1 = MutableStateFlow(new LoginUiState()); this.jy8_1 = asStateFlow(this.iy8_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.my8_1 = Instance(this, tmp$ret$0, null).a5d(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.ny8_1 = Instance(this, tmp$ret$2, null).a5d(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.oy8_1 = Instance(this, tmp$ret$4, null).a5d(this, apiUrlConfig$factory_7()); this.py8_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.qy8_1 = Instance(this, tmp$ret$6, null).a5d(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.ry8_1 = Instance(this, tmp$ret$8, null).a5d(this, languagesConfig$factory()); this.sy8_1 = new ValidateUsernameUseCase_0(); this.ty8_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.uy8_1 = InstanceOrNull(this, tmp$ret$10, null).a5d(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.vy8_1 = InstanceOrNull(this, tmp$ret$12, null).a5d(this, getShowPoweredByUseCase$factory_1()); var tmp_13 = this; tmp_13.wy8_1 = !(savedStateHandle.ba('childName') == null); var tmp_14 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('noSessionChange'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver); tmp_14.xy8_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs; var tmp_15 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_16 = typeToken(createKType(getKClass(SavePasswordUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE(); tmp_15.yy8_1 = InstanceOrNull(this, tmp$ret$14, null).a5d(this, savePasswordUseCase$factory()); this.zy8_1 = false; var tmp_17 = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_18 = typeToken(createKType(getKClass(GetCredentialUseCase), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE(); tmp_17.ay9_1 = InstanceOrNull(this, tmp$ret$16, null).a5d(this, getCredentialUseCase$factory_1()); var tmp_19 = this; Companion_getInstance_114(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_20; if (tmp0_elvis_lhs == null) { Companion_getInstance_138(); tmp_20 = 'CourseListHome'; } else { tmp_20 = tmp0_elvis_lhs; } tmp_19.ky8_1 = tmp_20; var tmp_21 = this; Companion_getInstance_114(); var tmp1_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp2_elvis_lhs = tmp1_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_3(this).wo6_1 : tmp1_elvis_lhs_0; tmp_21.ly8_1 = tmp2_elvis_lhs == null ? 'http://localhost' : tmp2_elvis_lhs; Companion_getInstance_114(); savedStateHandle.qqf('learningSpaceUrl', this.ly8_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.iy8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var tmp_22 = this.mqk().eog(strings_getInstance().gni_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.apb(); var tmp_23 = tmp_22 + (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ypa_1); Companion_getInstance_114(); var tmp_24 = savedStateHandle.ba('intMsg'); var tmp_25 = _get_languagesConfig__hebcss(this).oq4(this.mqk()); var tmp_26 = _get_languagesConfig__hebcss(this).pq4(this.mqk()); var tmp2_safe_receiver = _get_getShowPoweredByUseCase__5l0p0e_0(this); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.apb(); var nextValue = prevValue.py9(VOID, VOID, VOID, VOID, VOID, tmp_23, VOID, tmp_24, VOID, tmp_25, tmp_26, VOID, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } Companion_getInstance_211(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.iy8_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_0 = prevValue_0.py9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } var tmp3_title = _get_impl__d88w17_0(this).eog(strings_getInstance().umd_1); var baseAppUiState = new AppUiState(VOID, VOID, tmp3_title, false, VOID, VOID, false); this.ly8_1 = requirePostfix(this.ly8_1, '/'); Companion_getInstance_114(); var siteJsonStr = savedStateHandle.ba('site'); if (!(siteJsonStr == null)) { this.qqj_1.x1k(baseAppUiState); // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call var this_2 = this.m4r(); // Inline function 'kotlinx.serialization.serializer' call var this_3 = this_2.t45(); // 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.s45(tmp$ret$23, siteJsonStr); onSiteVerified(this, tmp$ret$24); } else { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_5 = this.iy8_1; while (true) { var prevValue_1 = this_5.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.' call var nextValue_1 = prevValue_1.py9(VOID, VOID, false); if (this_5.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } this.qqj_1.x1k(baseAppUiState.bq3(VOID, Companion_getInstance_96().iq3_1)); var tmp_27 = this.dqk(); launch(tmp_27, VOID, VOID, LoginViewModel$slambda_0(this, null)); } getCredentials_0(this); } protoOf(LoginViewModel).qyb = function (newValue) { this.zy8_1 = false; var filteredValue = this.ty8_1.wpa(newValue, ''); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.iy8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onUsernameChanged.' call var nextValue = prevValue.py9(filteredValue); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).ryb = function (password) { this.zy8_1 = false; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.iy8_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onPasswordChanged.' call var nextValue = prevValue.py9(VOID, password); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(LoginViewModel).syb = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.iy8_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.by9_1; var tmp0_username = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())); // Inline function 'kotlin.text.trim' call var this_2 = prevValue.cy9_1; var tmp1_password = toString(trim(isCharSequence(this_2) ? this_2 : THROW_CCE())); var nextValue = prevValue.py9(tmp0_username, tmp1_password, false, null, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var username = this.iy8_1.t2().by9_1; var password = this.iy8_1.t2().cy9_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.sy8_1.loe(username); if (!validationResult.equals(Companion_getInstance_73().epl_1)) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.iy8_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onClickLogin.' call var tmp0_safe_receiver = validationResult.jpl_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).eog(tmp0_safe_receiver); } var nextValue_0 = prevValue_0.py9(VOID, VOID, true, tmp_0); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } this.oqk(Companion_getInstance_96().iq3_1); var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, LoginViewModel$onClickLogin$slambda_0(this, username, password, null)); } else { this.oqk(Companion_getInstance_96().jq3_1); $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.iy8_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.by9_1; if (charSequenceLength(this_5) === 0) { tmp_2 = _get_impl__d88w17_0(this).eog(strings_getInstance().hmj_1); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4; // Inline function 'kotlin.text.isEmpty' call var this_6 = prevValue_1.cy9_1; if (charSequenceLength(this_6) === 0) { tmp_4 = _get_impl__d88w17_0(this).eog(strings_getInstance().hmj_1); } else { tmp_4 = null; } var nextValue_1 = prevValue_1.py9(VOID, VOID, true, tmp_3, tmp_4); if (this_4.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(LoginViewModel).tyb = function (uiLanguage) { if (!uiLanguage.equals(this.iy8_1.t2().ky9_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_114(); this.zqk(this_0, 'next'); Companion_getInstance_114(); this.zqk(this_0, 'learningSpaceUrl'); Companion_getInstance_114(); this.zqk(this_0, 'site'); var tmp$ret$2 = this_0.f3(); var result = tmp.qpf(uiLanguage, 'Login', this.oqj_1, tmp$ret$2); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.iy8_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.login.LoginViewModel.onChangeLanguage.' call var nextValue = prevValue.py9(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, uiLanguage, VOID, result.ppf_1); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(LoginViewModel).uyb = function () { var tmp = this.dqk(); 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.by9_1 = username; this.cy9_1 = password; this.dy9_1 = fieldsEnabled; this.ey9_1 = usernameError; this.fy9_1 = passwordError; this.gy9_1 = versionInfo; this.hy9_1 = connectAsGuestVisible; this.iy9_1 = loginIntentMessage; this.jy9_1 = errorMessage; this.ky9_1 = currentLanguage; this.ly9_1 = languageList; this.my9_1 = showWaitForRestart; this.ny9_1 = showPoweredBy; this.oy9_1 = isPersonalAccount; } protoOf(LoginUiState).vyb = 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).py9 = function (username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount, $super) { username = username === VOID ? this.by9_1 : username; password = password === VOID ? this.cy9_1 : password; fieldsEnabled = fieldsEnabled === VOID ? this.dy9_1 : fieldsEnabled; usernameError = usernameError === VOID ? this.ey9_1 : usernameError; passwordError = passwordError === VOID ? this.fy9_1 : passwordError; versionInfo = versionInfo === VOID ? this.gy9_1 : versionInfo; connectAsGuestVisible = connectAsGuestVisible === VOID ? this.hy9_1 : connectAsGuestVisible; loginIntentMessage = loginIntentMessage === VOID ? this.iy9_1 : loginIntentMessage; errorMessage = errorMessage === VOID ? this.jy9_1 : errorMessage; currentLanguage = currentLanguage === VOID ? this.ky9_1 : currentLanguage; languageList = languageList === VOID ? this.ly9_1 : languageList; showWaitForRestart = showWaitForRestart === VOID ? this.my9_1 : showWaitForRestart; showPoweredBy = showPoweredBy === VOID ? this.ny9_1 : showPoweredBy; isPersonalAccount = isPersonalAccount === VOID ? this.oy9_1 : isPersonalAccount; return $super === VOID ? this.vyb(username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount) : $super.vyb.call(this, username, password, fieldsEnabled, usernameError, passwordError, versionInfo, connectAsGuestVisible, loginIntentMessage, errorMessage, currentLanguage, languageList, showWaitForRestart, showPoweredBy, isPersonalAccount); }; protoOf(LoginUiState).toString = function () { return 'LoginUiState(username=' + this.by9_1 + ', password=' + this.cy9_1 + ', fieldsEnabled=' + this.dy9_1 + ', usernameError=' + this.ey9_1 + ', passwordError=' + this.fy9_1 + ', versionInfo=' + this.gy9_1 + ', connectAsGuestVisible=' + this.hy9_1 + ', loginIntentMessage=' + this.iy9_1 + ', errorMessage=' + this.jy9_1 + ', currentLanguage=' + this.ky9_1 + ', languageList=' + this.ly9_1 + ', showWaitForRestart=' + this.my9_1 + ', showPoweredBy=' + this.ny9_1 + ', isPersonalAccount=' + this.oy9_1 + ')'; }; protoOf(LoginUiState).hashCode = function () { var result = getStringHashCode(this.by9_1); result = imul(result, 31) + getStringHashCode(this.cy9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dy9_1) | 0; result = imul(result, 31) + (this.ey9_1 == null ? 0 : getStringHashCode(this.ey9_1)) | 0; result = imul(result, 31) + (this.fy9_1 == null ? 0 : getStringHashCode(this.fy9_1)) | 0; result = imul(result, 31) + getStringHashCode(this.gy9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hy9_1) | 0; result = imul(result, 31) + (this.iy9_1 == null ? 0 : getStringHashCode(this.iy9_1)) | 0; result = imul(result, 31) + (this.jy9_1 == null ? 0 : getStringHashCode(this.jy9_1)) | 0; result = imul(result, 31) + this.ky9_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.ly9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.my9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ny9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.oy9_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.by9_1 === tmp0_other_with_cast.by9_1)) return false; if (!(this.cy9_1 === tmp0_other_with_cast.cy9_1)) return false; if (!(this.dy9_1 === tmp0_other_with_cast.dy9_1)) return false; if (!(this.ey9_1 == tmp0_other_with_cast.ey9_1)) return false; if (!(this.fy9_1 == tmp0_other_with_cast.fy9_1)) return false; if (!(this.gy9_1 === tmp0_other_with_cast.gy9_1)) return false; if (!(this.hy9_1 === tmp0_other_with_cast.hy9_1)) return false; if (!(this.iy9_1 == tmp0_other_with_cast.iy9_1)) return false; if (!(this.jy9_1 == tmp0_other_with_cast.jy9_1)) return false; if (!this.ky9_1.equals(tmp0_other_with_cast.ky9_1)) return false; if (!equals(this.ly9_1, tmp0_other_with_cast.ly9_1)) return false; if (!(this.my9_1 === tmp0_other_with_cast.my9_1)) return false; if (!(this.ny9_1 === tmp0_other_with_cast.ny9_1)) return false; if (!(this.oy9_1 === tmp0_other_with_cast.oy9_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 savePasswordUseCase$factory() { return getPropertyCallableRef('savePasswordUseCase', 1, KProperty1, function (receiver) { return _get_savePasswordUseCase__awoktu(receiver); }, null); } function getCredentialUseCase$factory_1() { return getPropertyCallableRef('getCredentialUseCase', 1, KProperty1, function (receiver) { return _get_getCredentialUseCase__qofq9r_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 savePasswordUseCase$factory_0() { return getPropertyCallableRef('savePasswordUseCase', 1, KProperty1, function (receiver) { return _get_savePasswordUseCase__awoktu(receiver); }, null); } function getCredentialUseCase$factory_2() { return getPropertyCallableRef('getCredentialUseCase', 1, KProperty1, function (receiver) { return _get_getCredentialUseCase__qofq9r_0(receiver); }, null); } function daysUntil_0(_this__u8e3s4, other) { return daysUntil(Companion_getInstance_6().rmc(_this__u8e3s4.mfl_1), Companion_getInstance_6().rmc(other.mfl_1), Companion_getInstance_9().jmd()); } function Companion_171() { Companion_instance_220 = this; this.wyb_1 = 'ConversationList'; this.xyb_1 = 'ConversationListHome'; this.yyb_1 = listOf(['ConversationList', 'ConversationListHome']); } var Companion_instance_220; function Companion_getInstance_188() { if (Companion_instance_220 == null) new Companion_171(); return Companion_instance_220; } function ConversationListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().f7f().sfk(toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_1), this$0.eqk()); }; } function ConversationListViewModel$onClickAdd$ref($boundThis) { var l = function () { $boundThis.cqt(); return Unit_instance; }; l.callableName = 'onClickAdd'; return l; } function ConversationListViewModel(di, savedStateHandle, destinationName) { Companion_getInstance_188(); destinationName = destinationName === VOID ? 'ConversationList' : destinationName; UstadListViewModel.call(this, di, savedStateHandle, new ConversationListUiState(), destinationName); var tmp = this; tmp.zyc_1 = ConversationListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_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.mqk().eog(get_dayStringResource(element)); result.s(element, tmp$ret$0); } var tmp1_conversations = this.zyc_1; var nextValue = prevValue.fyd(tmp1_conversations, VOID, VOID, VOID, result); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqj_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.conversationlist.ConversationListViewModel.' call var tmp0_searchState = this.qqt(); var tmp1_title = this.yqt(strings_getInstance().fne_1, strings_getInstance().cnh_1); var tmp_0 = this.mqk().eog(strings_getInstance().gne_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.bq3(tmp2_fabState, VOID, tmp1_title, true, VOID, VOID, VOID, tmp0_searchState); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(ConversationListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(ConversationListViewModel).cqt = function () { Companion_getInstance_203(); var tmp = to('goToOnPersonSelected', 'MessageList'); Companion_getInstance_114(); var tmp_0 = to('listMode', ListViewMode_PICKER_getInstance().mqg_1); Companion_getInstance_203(); var tmp_1 = to('excludeAlreadySelectedList', this.eqk().toString()); Companion_getInstance_203(); this.oqj_1.fp3('People', mapOf([tmp, tmp_0, tmp_1, to('popUpToOnPersonSelected', 'People')])); }; protoOf(ConversationListViewModel).gyd = function (entry) { Companion_getInstance_114(); var tmp0_safe_receiver = entry.ofm_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f96_1; this.oqj_1.fp3('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.km9(), Companion_getInstance_9().jmd()) : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? emptyMap() : dayOfWeekStrings; this.ayd_1 = conversations; this.byd_1 = sortOptions; this.cyd_1 = showAddItem; this.dyd_1 = localDateTimeNow; this.eyd_1 = dayOfWeekStrings; } protoOf(ConversationListUiState).hyd = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) { return new ConversationListUiState(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).fyd = function (conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings, $super) { conversations = conversations === VOID ? this.ayd_1 : conversations; sortOptions = sortOptions === VOID ? this.byd_1 : sortOptions; showAddItem = showAddItem === VOID ? this.cyd_1 : showAddItem; localDateTimeNow = localDateTimeNow === VOID ? this.dyd_1 : localDateTimeNow; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.eyd_1 : dayOfWeekStrings; return $super === VOID ? this.hyd(conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings) : $super.hyd.call(this, conversations, sortOptions, showAddItem, localDateTimeNow, dayOfWeekStrings); }; protoOf(ConversationListUiState).toString = function () { return 'ConversationListUiState(conversations=' + this.ayd_1 + ', sortOptions=' + this.byd_1 + ', showAddItem=' + this.cyd_1 + ', localDateTimeNow=' + this.dyd_1 + ', dayOfWeekStrings=' + this.eyd_1 + ')'; }; protoOf(ConversationListUiState).hashCode = function () { var result = hashCode(this.ayd_1); result = imul(result, 31) + hashCode(this.byd_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cyd_1) | 0; result = imul(result, 31) + this.dyd_1.hashCode() | 0; result = imul(result, 31) + hashCode(this.eyd_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.ayd_1, tmp0_other_with_cast.ayd_1)) return false; if (!equals(this.byd_1, tmp0_other_with_cast.byd_1)) return false; if (!(this.cyd_1 === tmp0_other_with_cast.cyd_1)) return false; if (!this.dyd_1.equals(tmp0_other_with_cast.dyd_1)) return false; if (!equals(this.eyd_1, tmp0_other_with_cast.eyd_1)) return false; return true; }; function MessageListViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.qyd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda$slambda).xoj = function (it, $completion) { var tmp = this.yoj(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.xoj((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.qyd_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.ryd_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ag7_1; var tmp_0 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_safe_receiver = this.ryd_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.bg7_1; var nextValue = prevValue.bq3(VOID, VOID, tmp_0 + ' ' + (tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs)); if (this_0.y1k(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).yoj = function (it, completion) { var i = new MessageListViewModel$slambda$slambda$slambda(this.qyd_1, completion); i.ryd_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.xoj(it, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$slambda$slambda(this$0, resultContinuation) { this.aye_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.aye_1.iqk().n7d().rg2(this.aye_1.byf_1); var tmp_1 = MessageListViewModel$slambda$slambda$slambda_0(this.aye_1, null); suspendResult = tmp_0.a1c(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).l78 = function (completion) { return new MessageListViewModel$slambda$slambda(this.aye_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.j87($completion); }; l.$arity = 0; return l; } function _get_ustadAccountManager__el9prc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.cyf_1; ustadAccountManager$factory_2(); return this_0.t2(); } function _get_showSocialWarningUseCase__ft8jc6_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dyf_1; showSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_dismissSocialWarningUseCase__st8mv5_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.eyf_1; dismissSocialWarningUseCase$factory_2(); return this_0.t2(); } function _get_openExternalLinkUseCase__ku5z07_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fyf_1; openExternalLinkUseCase$factory_4(); return this_0.t2(); } function Companion_172() { this.hyf_1 = 'MessageList'; } var Companion_instance_221; function Companion_getInstance_189() { return Companion_instance_221; } function sam$kotlinx_coroutines_flow_FlowCollector$0_32(function_0) { this.iyf_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_32).t1d = function (value, $completion) { return this.iyf_1(value, $completion); }; function MessageListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().f7f().rfk(this$0.eqk(), this$0.byf_1); }; } function MessageListViewModel$slambda(this$0, resultContinuation) { this.ryf_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(MessageListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.ryf_1.hqs_1, MessageListViewModel$slambda$slambda_0(this.ryf_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).v1m = function ($this$launch, completion) { var i = new MessageListViewModel$slambda(this.ryf_1, completion); i.syf_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$onWarningDismiss$slambda(this$0, resultContinuation) { this.byg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$onWarningDismiss$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.byg_1).koy(toString_0(_get_ustadAccountManager__el9prc_0(this.byg_1).go6().tnq_1.g96_1)); l$ret$1: do { var this_0 = this.byg_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.jyg(VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new MessageListViewModel$onWarningDismiss$slambda(this.byg_1, completion); i.cyg_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function MessageListViewModel$onClickSend$slambda(this$0, resultContinuation) { this.syg_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageListViewModel$onClickSend$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.syg_1.iqk().f7f(); var tmp0_messageSenderPersonUid = this.syg_1.eqk(); var this_0 = this.syg_1.hqs_1.t2().fyg_1; var tmp1_messageText = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())); var tmp2_messageToPersonUid = this.syg_1.byf_1; var tmp3_messageTimestamp = systemTimeInMillis(); suspendResult = tmp_0.tfk(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.syg_1.hqs_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.jyg(VOID, VOID, ''); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new MessageListViewModel$onClickSend$slambda(this.syg_1, completion); i.tyg_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.u1m($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_114(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.byf_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.cyf_1 = Instance(di, tmp$ret$0, null).a5d(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.dyf_1 = Instance(di, tmp$ret$2, null).a5d(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.eyf_1 = Instance(di, tmp$ret$4, null).a5d(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.fyf_1 = Instance(di, tmp$ret$6, null).a5d(this, openExternalLinkUseCase$factory_3()); var tmp_8 = this; tmp_8.gyf_1 = MessageListViewModel$pagingSourceFactory$lambda(this); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, true, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hqs_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.mqk().eog(get_dayStringResource(element)); result.s(element, tmp$ret$10); } var tmp1_messages = this.gyf_1; var tmp2_activePersonUid = this.eqk(); var tmp3_showSocialWarning = _get_showSocialWarningUseCase__ft8jc6_0(this).loe(toString_0(_get_ustadAccountManager__el9prc_0(this).go6().tnq_1.g96_1)); var nextValue_0 = prevValue_0.jyg(tmp1_messages, tmp2_activePersonUid, VOID, result, VOID, tmp3_showSocialWarning); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_9 = this.dqk(); launch(tmp_9, VOID, VOID, MessageListViewModel$slambda_0(this, null)); } protoOf(MessageListViewModel).uto = function () { var tmp = this.dqk(); launch(tmp, VOID, VOID, MessageListViewModel$onWarningDismiss$slambda_0(this, null)); }; protoOf(MessageListViewModel).bqt = function (searchText) { // Inline function 'kotlin.TODO' call var reason = 'Not yet implemented'; throw new NotImplementedError('An operation is not implemented: ' + reason); }; protoOf(MessageListViewModel).cqt = function () { }; protoOf(MessageListViewModel).uyg = function (text) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.message.messagelist.MessageListViewModel.onChangeNewMessageText.' call var nextValue = prevValue.jyg(VOID, VOID, text); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(MessageListViewModel).osk = function () { var tmp = this.dqk(); 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.km9(), Companion_getInstance_9().jmd()) : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? true : showSocialWarning; this.dyg_1 = messages; this.eyg_1 = activePersonUid; this.fyg_1 = newMessageText; this.gyg_1 = dayOfWeekStrings; this.hyg_1 = localDateTimeNow; this.iyg_1 = showSocialWarning; } protoOf(MessageListUiState).vyg = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) { return new MessageListUiState(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).jyg = function (messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning, $super) { messages = messages === VOID ? this.dyg_1 : messages; activePersonUid = activePersonUid === VOID ? this.eyg_1 : activePersonUid; newMessageText = newMessageText === VOID ? this.fyg_1 : newMessageText; dayOfWeekStrings = dayOfWeekStrings === VOID ? this.gyg_1 : dayOfWeekStrings; localDateTimeNow = localDateTimeNow === VOID ? this.hyg_1 : localDateTimeNow; showSocialWarning = showSocialWarning === VOID ? this.iyg_1 : showSocialWarning; return $super === VOID ? this.vyg(messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning) : $super.vyg.call(this, messages, activePersonUid, newMessageText, dayOfWeekStrings, localDateTimeNow, showSocialWarning); }; protoOf(MessageListUiState).toString = function () { return 'MessageListUiState(messages=' + this.dyg_1 + ', activePersonUid=' + this.eyg_1.toString() + ', newMessageText=' + this.fyg_1 + ', dayOfWeekStrings=' + this.gyg_1 + ', localDateTimeNow=' + this.hyg_1 + ', showSocialWarning=' + this.iyg_1 + ')'; }; protoOf(MessageListUiState).hashCode = function () { var result = hashCode(this.dyg_1); result = imul(result, 31) + this.eyg_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.fyg_1) | 0; result = imul(result, 31) + hashCode(this.gyg_1) | 0; result = imul(result, 31) + this.hyg_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.iyg_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.dyg_1, tmp0_other_with_cast.dyg_1)) return false; if (!this.eyg_1.equals(tmp0_other_with_cast.eyg_1)) return false; if (!(this.fyg_1 === tmp0_other_with_cast.fyg_1)) return false; if (!equals(this.gyg_1, tmp0_other_with_cast.gyg_1)) return false; if (!this.hyg_1.equals(tmp0_other_with_cast.hyg_1)) return false; if (!(this.iyg_1 === tmp0_other_with_cast.iyg_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.wyg_1 = title; this.xyg_1 = langCode; } protoOf(TitleAndLangCode).toString = function () { return 'TitleAndLangCode(title=' + this.wyg_1 + ', langCode=' + this.xyg_1 + ')'; }; protoOf(TitleAndLangCode).hashCode = function () { var result = getStringHashCode(this.wyg_1); result = imul(result, 31) + getStringHashCode(this.xyg_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.wyg_1 === tmp0_other_with_cast.wyg_1)) return false; if (!(this.xyg_1 === tmp0_other_with_cast.xyg_1)) return false; return true; }; function _get_statementRecorder__l4o9jw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.gy7_1; statementRecorder$factory(); return this_0.t2(); } function AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda$lambda(this$0) { return function () { var titleAndLangCodeVal = this$0.cy6(); var tmp = this$0.fy7_1.kjv_1; var tmp_0; if (!(titleAndLangCodeVal == null)) { tmp_0 = mapOf_0(to(titleAndLangCodeVal.xyg_1, titleAndLangCodeVal.wyg_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.eql(this$0.ey7_1); var tmp_0 = this$0.dqk(); return this$0.dy7_1.cq0(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)).f58(); // 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.dy7_1 = tmp_0.d58(tmp$ret$0, null); var tmp_2 = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('entryid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_2.ey7_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.fy7_1 = this.eql(this.ey7_1); var tmp_3 = this; tmp_3.gy7_1 = lazy_0(AbstractNonInteractiveContentViewModel$statementRecorder$delegate$lambda(this)); } protoOf(AbstractNonInteractiveContentViewModel).vpz = function (oneCompletionStatementOnly) { _get_statementRecorder__l4o9jw(this).vpz(oneCompletionStatementOnly); }; protoOf(AbstractNonInteractiveContentViewModel).hy7 = function (oneCompletionStatementOnly, $super) { oneCompletionStatementOnly = oneCompletionStatementOnly === VOID ? false : oneCompletionStatementOnly; var tmp; if ($super === VOID) { this.vpz(oneCompletionStatementOnly); tmp = Unit_instance; } else { tmp = $super.vpz.call(this, oneCompletionStatementOnly); } return tmp; }; protoOf(AbstractNonInteractiveContentViewModel).upz = function (progress) { _get_statementRecorder__l4o9jw(this).upz(progress); }; protoOf(AbstractNonInteractiveContentViewModel).hpz = function (active) { _get_statementRecorder__l4o9jw(this).hpz(active); }; protoOf(AbstractNonInteractiveContentViewModel).gm3 = function () { _get_statementRecorder__l4o9jw(this).gm3(); protoOf(UstadViewModel).gm3.call(this); }; protoOf(AbstractNonInteractiveContentViewModel).xpz = function () { _get_statementRecorder__l4o9jw(this).xpz(); }; function statementRecorder$factory() { return getPropertyCallableRef('statementRecorder', 1, KProperty1, function (receiver) { return _get_statementRecorder__l4o9jw(receiver); }, null); } function Companion_173() { this.yyg_1 = 'ParentConsentWaitingScreen'; } var Companion_instance_222; function Companion_getInstance_190() { return Companion_instance_222; } function ParentConsentWaitingScreenViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ParentConsentWaitingScreen'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentConsentWaitingScreenViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, false, true, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } function ParentalConsentManagementViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.hyh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda).jyh = function (db, $completion) { var tmp = this.env(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.jyh(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.iyh_1.x7e().wgq(this.hyh_1.uqp_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.egs_1; var tmp_2; if (tmp0_safe_receiver_0 == null) { tmp_2 = null; } else { tmp_2 = !(!tmp0_safe_receiver_0.fg6_1.equals(new Long(0, 0)) ? !tmp0_safe_receiver_0.fg6_1.equals(this.hyh_1.eqk()) : 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).env = function (db, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda$slambda(this.hyh_1, completion); i.iyh_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.jyh(db, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).syh = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ParentalConsentManagementViewModel$lambda$slambda$slambda_1).m78 = function ($completion) { return this.syh($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).l78 = 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.syh($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.qyi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel....' call var nextValue = prevValue.yyi(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_getLocaleForSiteTermsUseCase__hxw5id($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.syi_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.qyi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.updateStatus.' call var tmp1_safe_receiver = prevValue.tyi_1; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp0_safe_receiver = prevValue.tyi_1.egs_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.bko(tmp_0); } var nextValue = prevValue.yyi(tmp); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newState = tmp$ret$1; var tmp0_safe_receiver_0 = newState.tyi_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.egs_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.dqk(); launch(tmp_1, VOID, VOID, ParentalConsentManagementViewModel$updateStatus$slambda_0($this, tmp1_safe_receiver_0, null)); } $this.kqk().qq3(new Snack($this.mqk().eog(strings_getInstance().lnb_1))); } function Companion_174() { this.zyi_1 = 'ParentalConsentManagement'; } var Companion_instance_223; function Companion_getInstance_191() { return Companion_instance_223; } function ParentalConsentManagementViewModel$lambda$slambda(this$0, resultContinuation) { this.iyj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.n4r(); var tmp_1 = ParentalConsentManagementViewModel$lambda$slambda$slambda_0(this.iyj_1, null); var tmp_2 = ParentalConsentManagementViewModel$lambda$slambda$slambda_2(null); suspendResult = this.iyj_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, ParentalConsentManagementViewModel$lambda$slambda$lambda(this.iyj_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.iyj_1.qyi_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yyi(VOID, VOID, VOID, !(prevValue.tyi_1 == null)); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda(this.iyj_1, completion); i.jyj_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel$lambda$slambda_1(this$0, resultContinuation) { this.syj_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$lambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.uyj_1 = this.syj_1.iqk().w7e(); this.hd_1 = 1; suspendResult = _get_getLocaleForSiteTermsUseCase__hxw5id(this.syj_1).upj(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.vyj_1 = suspendResult; this.hd_1 = 2; suspendResult = this.uyj_1.zhn(this.vyj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var terms = suspendResult; l$ret$1: do { var this_0 = this.syj_1.qyi_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.yyi(VOID, VOID, terms); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$lambda$slambda_1(this.syj_1, completion); i.tyj_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.u1m($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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel..' call var nextValue = prevValue.bq3(VOID, VOID, this$0.mqk().eog(strings_getInstance().cn7_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp = this$0.dqk(); launch(tmp, VOID, VOID, ParentalConsentManagementViewModel$lambda$slambda_0(this$0, null)); var tmp_0 = this$0.dqk(); 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.lg6_1 = $status; $this$shallowCopy.fg6_1 = this$0.eqk(); $this$shallowCopy.mg6_1 = systemTimeInMillis(); return Unit_instance; }; } function ParentalConsentManagementViewModel$updateStatus$slambda(this$0, $personParentJoin, resultContinuation) { this.eyk_1 = this$0; this.fyk_1 = $personParentJoin; CoroutineImpl.call(this, resultContinuation); } protoOf(ParentalConsentManagementViewModel$updateStatus$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.eyk_1.iqk().x7e().xgq(this.fyk_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).v1m = function ($this$launch, completion) { var i = new ParentalConsentManagementViewModel$updateStatus$slambda(this.eyk_1, this.fyk_1, completion); i.gyk_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ParentalConsentManagementViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ParentalConsentManagement'); this.qyi_1 = MutableStateFlow(new ParentalConsentManagementUiState()); this.ryi_1 = asStateFlow(this.qyi_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.cqk().co7(); var trigger = this.d57(); // 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.h57(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.syi_1 = Instance(this_0, tmp$ret$3, null).a5d(this, getLocaleForSiteTermsUseCase$factory()); Companion_getInstance_123(); var tmp_3 = mapOf_0(to('entityUid', this.uqp_1.toString())); this.bql(true, tmp_3, ParentalConsentManagementViewModel$lambda(this)); } protoOf(ParentalConsentManagementViewModel).hyk = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qyi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.tyi_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bko(personParentJoin); var tmp1_safe_receiver = prevValue.tyi_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.egs_1; var tmp_0 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hg6_1; var nextValue = prevValue.yyi(tmp, this.xqq(tmp_0, personParentJoin == null ? null : personParentJoin.hg6_1, prevValue.uyi_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ParentalConsentManagementViewModel).iyk = function () { var tmp0_safe_receiver = this.qyi_1.t2().tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.hg6_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.qyi_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.parentalconsentmanagement.ParentalConsentManagementViewModel.onClickConsent.' call var nextValue = prevValue.yyi(VOID, this.mqk().eog(strings_getInstance().hmj_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; } updateStatus(this, 1); }; protoOf(ParentalConsentManagementViewModel).jyk = function () { updateStatus(this, 2); }; protoOf(ParentalConsentManagementViewModel).kyk = function () { var tmp0_safe_receiver = this.qyi_1.t2().tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lg6_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.tyi_1 = parentJoinAndMinor; this.uyi_1 = relationshipError; this.vyi_1 = siteTerms; this.wyi_1 = fieldsEnabled; this.xyi_1 = appName; } protoOf(ParentalConsentManagementUiState).lyk = function () { var tmp0_safe_receiver = this.tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fg6_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).myk = function () { var tmp0_safe_receiver = this.tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fg6_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).nyk = function () { var tmp0_safe_receiver = this.tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_1; return equals(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.fg6_1, new Long(0, 0)); }; protoOf(ParentalConsentManagementUiState).oyk = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_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.fg6_1; return !(it == null) ? !equals(it, new Long(0, 0)) : false; }; protoOf(ParentalConsentManagementUiState).pyk = function () { // Inline function 'kotlin.let' call var tmp0_safe_receiver = this.tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_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.lg6_1; return !(it == null) ? !(it === 0) : false; }; protoOf(ParentalConsentManagementUiState).qyk = function () { var tmp0_safe_receiver = this.tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lg6_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().zn6_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().an7_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).ryk = function () { var tmp0_safe_receiver = this.tyi_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.egs_1; var tmp2_subject = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lg6_1; var tmp; if (tmp2_subject === 1) { tmp = strings_getInstance().xn6_1; } else { if (tmp2_subject === 2) { tmp = strings_getInstance().yn6_1; } else { tmp = null; } } return tmp; }; protoOf(ParentalConsentManagementUiState).syk = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) { return new ParentalConsentManagementUiState(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).yyi = function (parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName, $super) { parentJoinAndMinor = parentJoinAndMinor === VOID ? this.tyi_1 : parentJoinAndMinor; relationshipError = relationshipError === VOID ? this.uyi_1 : relationshipError; siteTerms = siteTerms === VOID ? this.vyi_1 : siteTerms; fieldsEnabled = fieldsEnabled === VOID ? this.wyi_1 : fieldsEnabled; appName = appName === VOID ? this.xyi_1 : appName; return $super === VOID ? this.syk(parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName) : $super.syk.call(this, parentJoinAndMinor, relationshipError, siteTerms, fieldsEnabled, appName); }; protoOf(ParentalConsentManagementUiState).toString = function () { return 'ParentalConsentManagementUiState(parentJoinAndMinor=' + this.tyi_1 + ', relationshipError=' + this.uyi_1 + ', siteTerms=' + this.vyi_1 + ', fieldsEnabled=' + this.wyi_1 + ', appName=' + this.xyi_1 + ')'; }; protoOf(ParentalConsentManagementUiState).hashCode = function () { var result = this.tyi_1 == null ? 0 : this.tyi_1.hashCode(); result = imul(result, 31) + (this.uyi_1 == null ? 0 : getStringHashCode(this.uyi_1)) | 0; result = imul(result, 31) + (this.vyi_1 == null ? 0 : hashCode(this.vyi_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.wyi_1) | 0; result = imul(result, 31) + getStringHashCode(this.xyi_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.tyi_1, tmp0_other_with_cast.tyi_1)) return false; if (!(this.uyi_1 == tmp0_other_with_cast.uyi_1)) return false; if (!equals(this.vyi_1, tmp0_other_with_cast.vyi_1)) return false; if (!(this.wyi_1 === tmp0_other_with_cast.wyi_1)) return false; if (!(this.xyi_1 === tmp0_other_with_cast.xyi_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.vyl_1; httpClient$factory_10(); return this_0.t2(); } function Companion_175() { this.wyl_1 = 'PdfContent'; } var Companion_instance_224; function Companion_getInstance_192() { return Companion_instance_224; } function PdfContentViewModel$slambda(this$0, resultContinuation) { this.fym_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PdfContentViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PdfContentViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.fym_1.iqk().i7f().wbp(this.fym_1.syl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hym_1 = suspendResult; var tmp_0 = this; var tmp_1; if (this.hym_1 == null) { return Unit_instance; } else { tmp_1 = this.hym_1; } tmp_0.iym_1 = tmp_1; this.jym_1 = ensureNotNull(this.iym_1.gax_1); var tmp_2 = this; tmp_2.kym_1 = this.fym_1.m4r(); var tmp_3 = this; tmp_3.lym_1 = _get_httpClient__2ty1zc_4(this.fym_1); var tmp_4 = this; tmp_4.mym_1 = this.jym_1; var tmp_5 = this; tmp_5.nym_1 = this.lym_1; var tmp_6 = this; tmp_6.oym_1 = this.nym_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.mym_1); tmp_7.pym_1 = this_0; this.pym_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.qym_1 = this.oym_1; var tmp_9 = this; tmp_9.rym_1 = this.pym_1; this.hd_1 = 2; suspendResult = (new HttpStatement(this.rym_1, this.qym_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.sym_1 = suspendResult; this.hd_1 = 3; suspendResult = bodyAsDecodedText(this.sym_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tym_1 = suspendResult; var tmp_10 = this; var this_1 = this.kym_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_10.uym_1 = this.kym_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.tym_1); var tmp_11 = this; var tmp1_elvis_lhs = this.iym_1.eax_1; var tmp_12; if (tmp1_elvis_lhs == null) { return Unit_instance; } else { tmp_12 = tmp1_elvis_lhs; } tmp_11.vym_1 = tmp_12; this.wym_1 = UrlKmp(this.jym_1).boz(this.vym_1).toString(); this.xym_1 = bodyDataUrlForUri(this.uym_1, this.vym_1); l$ret$1: do { var this_3 = this.fym_1.tyl_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.byn(this.wym_1, this.xym_1); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 4; suspendResult = this.fym_1.iqk().v7d().iau(this.iym_1.dax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var contentEntry = suspendResult; l$ret$3: do { var this_4 = this.fym_1.qqj_1; while (true) { var prevValue_0 = this_4.t2(); var tmp1_elvis_lhs_0 = contentEntry == null ? null : contentEntry.fav_1; var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp1_elvis_lhs_0 == null ? '' : tmp1_elvis_lhs_0); if (this_4.y1k(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).v1m = function ($this$launch, completion) { var i = new PdfContentViewModel$slambda(this.fym_1, completion); i.gym_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PdfContentViewModel(di, savedStateHandle) { AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'PdfContent'); var tmp = this; Companion_getInstance_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.syl_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.tyl_1 = MutableStateFlow(new PdfContentUiState()); this.uyl_1 = asStateFlow(this.tyl_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.vyl_1 = Instance(di, tmp$ret$0, null).a5d(this, httpClient$factory_9()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.pdfcontent.PdfContentViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, PdfContentViewModel$slambda_0(this, null)); } protoOf(PdfContentViewModel).cy6 = function () { var tmp0_safe_receiver = this.tyl_1.t2().ayn_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.fav_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.yym_1 = pdfUrl; this.zym_1 = dataUrl; this.ayn_1 = contentEntry; } protoOf(PdfContentUiState).cyn = function (pdfUrl, dataUrl, contentEntry) { return new PdfContentUiState(pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).byn = function (pdfUrl, dataUrl, contentEntry, $super) { pdfUrl = pdfUrl === VOID ? this.yym_1 : pdfUrl; dataUrl = dataUrl === VOID ? this.zym_1 : dataUrl; contentEntry = contentEntry === VOID ? this.ayn_1 : contentEntry; return $super === VOID ? this.cyn(pdfUrl, dataUrl, contentEntry) : $super.cyn.call(this, pdfUrl, dataUrl, contentEntry); }; protoOf(PdfContentUiState).toString = function () { return 'PdfContentUiState(pdfUrl=' + this.yym_1 + ', dataUrl=' + this.zym_1 + ', contentEntry=' + this.ayn_1 + ')'; }; protoOf(PdfContentUiState).hashCode = function () { var result = this.yym_1 == null ? 0 : getStringHashCode(this.yym_1); result = imul(result, 31) + (this.zym_1 == null ? 0 : getStringHashCode(this.zym_1)) | 0; result = imul(result, 31) + (this.ayn_1 == null ? 0 : this.ayn_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.yym_1 == tmp0_other_with_cast.yym_1)) return false; if (!(this.zym_1 == tmp0_other_with_cast.zym_1)) return false; if (!equals(this.ayn_1, tmp0_other_with_cast.ayn_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.dyn_1 = 'goToOnPersonSelected'; this.eyn_1 = 'popUpToOnPersonSelected'; } var PersonViewModelConstants_instance; function PersonViewModelConstants_getInstance() { return PersonViewModelConstants_instance; } function PersonAccountEditViewModel$slambda$slambda(this$0, resultContinuation) { this.nyn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda).qyn = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.qyn(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.oyn_1.n7d().ng2(this.nyn_1.uqp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.pyn_1 = suspendResult; this.hd_1 = 2; var tmp_0 = this.oyn_1.p7f(); var tmp_1 = this.nyn_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.jhw(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.pyn_1 == null) { tmp_2 = null; } else { var tmp_3 = this.pyn_1.g96_1 == null ? 1 : hasResetPermission ? 2 : 3; var tmp_4 = this.pyn_1.f96_1; var tmp0_elvis_lhs = this.pyn_1.g96_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).env = function (db, completion) { var i = new PersonAccountEditViewModel$slambda$slambda(this.nyn_1, completion); i.oyn_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.qyn(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda$slambda_1).zyn = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.zyn($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).l78 = 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.zyn($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.xyo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel...' call var nextValue = prevValue.jyp(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonAccountEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonAccountEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.syp_1 = this$0; this.typ_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.syp_1).sno(this.syp_1.uqp_1, this.typ_1.zyp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; suspendResult = this.syp_1.iqk().n7d().tg2(this.syp_1.uqp_1, this.typ_1.xyp_1, systemTimeInMillis(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var numChanges = suspendResult; Napier_getInstance().q5e('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).env = function (it, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda$slambda(this.syp_1, this.typ_1, completion); i.uyp_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.dnv(it, $completion); }; l.$arity = 1; return l; } function _get_authManager__mo6de4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.zyo_1; authManager$factory_0(); return this_0.t2(); } function _get_setPasswordUseCase__c0ja9b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ayp_1; setPasswordUseCase$factory_0(); return this_0.t2(); } function Companion_176() { this.ayq_1 = 'AccountEdit'; this.byq_1 = 1; this.cyq_1 = 2; this.dyq_1 = 3; } var Companion_instance_225; function Companion_getInstance_193() { return Companion_instance_225; } function PersonAccountEditViewModel$slambda(this$0, resultContinuation) { this.myq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonAccountEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.myq_1.uqp_1.equals(this.myq_1.eqk())) { var tmp_0 = this; tmp_0.oyq_1 = true; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_1 = this.nyq_1.p7f(); var tmp_2 = this.myq_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_1.jhw(tmp_2, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.oyq_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.oyq_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).env = function (db, completion) { var i = new PersonAccountEditViewModel$slambda(this.myq_1, completion); i.nyq_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.vs5(db, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$slambda_1(this$0, resultContinuation) { this.xyq_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.n4r(); var tmp_1 = PersonAccountEditViewModel$slambda$slambda_0(this.xyq_1, null); var tmp_2 = PersonAccountEditViewModel$slambda$slambda_2(null); suspendResult = this.xyq_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonAccountEditViewModel$slambda$lambda(this.xyq_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.xyq_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.xyq_1.mqk().eog(strings_getInstance().tmy_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(true, tmp_3, VOID, PersonAccountEditViewModel$onClickSave$ref(this.xyq_1)); var tmp1_loadingState = Companion_getInstance_96().jq3_1; var nextValue = prevValue.bq3(VOID, tmp1_loadingState, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_actionBarButtonState); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.xyq_1.xyo_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.jyp(VOID, VOID, VOID, VOID, VOID, true); if (this_1.y1k(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).v1m = function ($this$launchIfHasPermission, completion) { var i = new PersonAccountEditViewModel$slambda_1(this.xyq_1, completion); i.yyq_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.hyr_1 = $commitDelay; this.iyr_1 = $entity; this.jyr_1 = $this; this.kyr_1 = $key; this.lyr_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.hyr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.iyr_1 == null)) { this.hd_1 = 2; suspendResult = this.jyr_1.sqk(this.jyr_1.mqj_1, this.kyr_1, this.lyr_1, this.iyr_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).v1m = function ($this$launch, completion) { var i = new PersonAccountEditViewModel$onEntityChanged$slambda(this.hyr_1, this.iyr_1, this.jyr_1, this.kyr_1, this.lyr_1, completion); i.myr_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel$onClickSave$slambda($entity, this$0, resultContinuation) { this.vyr_1 = $entity; this.wyr_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAccountEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.vyr_1.vyp_1 === 1) { var validationResult = this.wyr_1.byp_1.loe(this.vyr_1.xyp_1); this.wyr_1.oqk(Companion_getInstance_96().jq3_1); if (!validationResult.equals(Companion_getInstance_73().epl_1)) { l$ret$1: do { var this_0 = this.wyr_1.xyo_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = validationResult.jpl_1; var tmp_0; if (tmp0_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = this.wyr_1.mqk().eog(tmp0_safe_receiver); } var tmp1_usernameError = tmp_0; var nextValue = prevValue.jyp(VOID, tmp1_usernameError, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); return Unit_instance; } } if (isBlank(this.vyr_1.zyp_1)) { l$ret$3: do { var this_1 = this.wyr_1.xyo_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.jyp(VOID, VOID, VOID, this.wyr_1.mqk().eog(strings_getInstance().hmj_1)); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); } if (this.vyr_1.vyp_1 === 3 ? isBlank(this.vyr_1.yyp_1) : false) if (this.wyr_1.xyo_1.t2().dty()) { this.wyr_1.oqk(Companion_getInstance_96().jq3_1); l$ret$5: do { var this_2 = this.wyr_1.xyo_1; while (true) { var prevValue_1 = this_2.t2(); var nextValue_1 = prevValue_1.jyp(VOID, VOID, VOID, VOID, VOID, true); if (this_2.y1k(prevValue_1, nextValue_1)) { break l$ret$5; } } } while (false); return Unit_instance; } if (this.vyr_1.vyp_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.wyr_1).dof(this.wyr_1.eqk(), this.vyr_1.wyp_1, this.vyr_1.xyp_1, this.vyr_1.zyp_1, this.vyr_1.vyp_1 === 3 ? this.vyr_1.yyp_1 : null, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.wyr_1.kqk().qq3(new Snack(this.wyr_1.mqk().eog(strings_getInstance().znh_1))); var tmp_1 = this; this.wyr_1.xqp(null); tmp_1.zyr_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.ays_1 = this.kd_1; var tmp_3 = this; var tmp_4; var tmp_5 = this.ays_1; if (tmp_5 instanceof UnauthorizedException) { l$ret$19: do { var this_3 = this.wyr_1.xyo_1; while (true) { var prevValue_2 = this_3.t2(); var nextValue_2 = prevValue_2.jyp(VOID, VOID, this.wyr_1.mqk().eog(strings_getInstance().lme_1)); if (this_3.y1k(prevValue_2, nextValue_2)) { break l$ret$19; } } } while (false); tmp_4 = Unit_instance; } else { l$ret$21: do { var this_4 = this.wyr_1.xyo_1; while (true) { var prevValue_3 = this_4.t2(); var nextValue_3 = prevValue_3.jyp(VOID, VOID, VOID, VOID, this.ays_1.message); if (this_4.y1k(prevValue_3, nextValue_3)) { break l$ret$21; } } } while (false); tmp_4 = Unit_instance; } tmp_3.zyr_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.bys_1 = this.kd_1; this.wyr_1.oqk(Companion_getInstance_96().jq3_1); l$ret$23: do { var this_5 = this.wyr_1.xyo_1; while (true) { var prevValue_4 = this_5.t2(); var nextValue_4 = prevValue_4.jyp(VOID, VOID, VOID, VOID, VOID, true); if (this_5.y1k(prevValue_4, nextValue_4)) { break l$ret$23; } } } while (false); throw this.bys_1; case 5: this.id_1 = 14; this.wyr_1.oqk(Companion_getInstance_96().jq3_1); l$ret$25: do { var this_6 = this.wyr_1.xyo_1; while (true) { var prevValue_5 = this_6.t2(); var nextValue_5 = prevValue_5.jyp(VOID, VOID, VOID, VOID, VOID, true); if (this_6.y1k(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.wyr_1.iqk().n7d().lg2(this.vyr_1.xyp_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: this.cys_1 = suspendResult; if (this.cys_1 === 0) { this.hd_1 = 8; var tmp_6 = this.wyr_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_6, VOID, PersonAccountEditViewModel$onClickSave$slambda$slambda_0(this.wyr_1, this.vyr_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { l$ret$7: do { var this_7 = this.wyr_1.xyo_1; while (true) { var prevValue_6 = this_7.t2(); var nextValue_6 = prevValue_6.jyp(VOID, this.wyr_1.mqk().eog(strings_getInstance().kn3_1)); if (this_7.y1k(prevValue_6, nextValue_6)) { break l$ret$7; } } } while (false); this.hd_1 = 9; continue $sm; } case 8: this.wyr_1.xqp(null); this.hd_1 = 9; continue $sm; case 9: this.yyr_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.wyr_1.xyo_1; while (true) { var prevValue_7 = this_8.t2(); var nextValue_7 = prevValue_7.jyp(VOID, this.wyr_1.mqk().eog(strings_getInstance().mme_1)); if (this_8.y1k(prevValue_7, nextValue_7)) { break l$ret$11; } } } while (false); tmp_8.yyr_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.wyr_1.oqk(Companion_getInstance_96().jq3_1); l$ret$13: do { var this_9 = this.wyr_1.xyo_1; while (true) { var prevValue_8 = this_9.t2(); var nextValue_8 = prevValue_8.jyp(VOID, VOID, VOID, VOID, VOID, true); if (this_9.y1k(prevValue_8, nextValue_8)) { break l$ret$13; } } } while (false); throw t; case 12: this.id_1 = 14; this.wyr_1.oqk(Companion_getInstance_96().jq3_1); l$ret$15: do { var this_10 = this.wyr_1.xyo_1; while (true) { var prevValue_9 = this_10.t2(); var nextValue_9 = prevValue_9.jyp(VOID, VOID, VOID, VOID, VOID, true); if (this_10.y1k(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).v1m = function ($this$launch, completion) { var i = new PersonAccountEditViewModel$onClickSave$slambda(this.vyr_1, this.wyr_1, completion); i.xyr_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonAccountEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'AccountEdit'); this.xyo_1 = MutableStateFlow(new PersonAccountEditUiState()); this.yyo_1 = asStateFlow(this.xyo_1); var tmp = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = this.cqk().co7(); var trigger = this.d57(); // 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.h57(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.zyo_1 = Instance(this_0, tmp$ret$3, null).a5d(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.cqk().co7(); var trigger_0 = this.d57(); // 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.h57(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.ayp_1 = Instance(this_1, tmp$ret$8, null).a5d(this, setPasswordUseCase$factory()); this.byp_1 = new ValidateUsernameUseCase_0(); this.cyp_1 = new FilterUsernameUseCase(); this.qqj_1.x1k(new AppUiState(VOID, Companion_getInstance_96().iq3_1)); var tmp_7 = PersonAccountEditViewModel$slambda_0(this, null); this.yqk(tmp_7, VOID, VOID, PersonAccountEditViewModel$slambda_2(this, null)); } protoOf(PersonAccountEditViewModel).dys = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xyo_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.xyp_1; var tmp1_safe_receiver = this.xyo_1.t2().dyp_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xyp_1))) { tmp = entity == null ? null : entity.eys(VOID, VOID, this.cyp_1.wpa(entity.xyp_1, '')); } else { tmp = entity; } var tmp_1 = tmp; var tmp_2; var tmp_3; if (!(prevValue.eyp_1 == null)) { var tmp3_safe_receiver = prevValue.dyp_1; var tmp_4 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.xyp_1; tmp_3 = tmp_4 == (entity == null ? null : entity.xyp_1); } else { tmp_3 = false; } if (tmp_3) { tmp_2 = prevValue.eyp_1; } else { tmp_2 = null; } var tmp_5 = tmp_2; var tmp_6; var tmp_7; if (!(prevValue.fyp_1 == null)) { var tmp5_safe_receiver = prevValue.dyp_1; var tmp_8 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.yyp_1; tmp_7 = tmp_8 == (entity == null ? null : entity.yyp_1); } else { tmp_7 = false; } if (tmp_7) { tmp_6 = prevValue.fyp_1; } else { tmp_6 = null; } var tmp_9 = tmp_6; var tmp_10; var tmp_11; if (!(prevValue.gyp_1 == null)) { var tmp7_safe_receiver = prevValue.dyp_1; var tmp_12 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.zyp_1; tmp_11 = tmp_12 == (entity == null ? null : entity.zyp_1); } else { tmp_11 = false; } if (tmp_11) { tmp_10 = prevValue.gyp_1; } else { tmp_10 = null; } var nextValue = prevValue.jyp(tmp_1, tmp_5, tmp_9, tmp_10); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_226.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver = this.tqp_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp_13 = this; var tmp_14 = this.dqk(); tmp_13.tqp_1 = launch(tmp_14, VOID, VOID, PersonAccountEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonAccountEditViewModel).js3 = function () { if (this.pqk().equals(Companion_getInstance_96().iq3_1)) return Unit_instance; var tmp0_elvis_lhs = this.xyo_1.t2().dyp_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var entity = tmp; this.oqk(Companion_getInstance_96().iq3_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.xyo_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.accountedit.PersonAccountEditViewModel.onClickSave.' call var nextValue = prevValue.jyp(VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.dqk(); 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.dyp_1 = personAccount; this.eyp_1 = usernameError; this.fyp_1 = currentPasswordError; this.gyp_1 = newPasswordError; this.hyp_1 = errorMessage; this.iyp_1 = fieldsEnabled; } protoOf(PersonAccountEditUiState).fys = function () { var tmp0_safe_receiver = this.dyp_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vyp_1) === 1; }; protoOf(PersonAccountEditUiState).gys = function () { var tmp0_safe_receiver = this.dyp_1; return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vyp_1) === 3; }; protoOf(PersonAccountEditUiState).dty = function () { return (!(this.eyp_1 == null) ? true : !(this.fyp_1 == null)) ? true : !(this.gyp_1 == null); }; protoOf(PersonAccountEditUiState).hys = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) { return new PersonAccountEditUiState(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).jyp = function (personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled, $super) { personAccount = personAccount === VOID ? this.dyp_1 : personAccount; usernameError = usernameError === VOID ? this.eyp_1 : usernameError; currentPasswordError = currentPasswordError === VOID ? this.fyp_1 : currentPasswordError; newPasswordError = newPasswordError === VOID ? this.gyp_1 : newPasswordError; errorMessage = errorMessage === VOID ? this.hyp_1 : errorMessage; fieldsEnabled = fieldsEnabled === VOID ? this.iyp_1 : fieldsEnabled; return $super === VOID ? this.hys(personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled) : $super.hys.call(this, personAccount, usernameError, currentPasswordError, newPasswordError, errorMessage, fieldsEnabled); }; protoOf(PersonAccountEditUiState).toString = function () { return 'PersonAccountEditUiState(personAccount=' + this.dyp_1 + ', usernameError=' + this.eyp_1 + ', currentPasswordError=' + this.fyp_1 + ', newPasswordError=' + this.gyp_1 + ', errorMessage=' + this.hyp_1 + ', fieldsEnabled=' + this.iyp_1 + ')'; }; protoOf(PersonAccountEditUiState).hashCode = function () { var result = this.dyp_1 == null ? 0 : this.dyp_1.hashCode(); result = imul(result, 31) + (this.eyp_1 == null ? 0 : getStringHashCode(this.eyp_1)) | 0; result = imul(result, 31) + (this.fyp_1 == null ? 0 : getStringHashCode(this.fyp_1)) | 0; result = imul(result, 31) + (this.gyp_1 == null ? 0 : getStringHashCode(this.gyp_1)) | 0; result = imul(result, 31) + (this.hyp_1 == null ? 0 : getStringHashCode(this.hyp_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.iyp_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.dyp_1, tmp0_other_with_cast.dyp_1)) return false; if (!(this.eyp_1 == tmp0_other_with_cast.eyp_1)) return false; if (!(this.fyp_1 == tmp0_other_with_cast.fyp_1)) return false; if (!(this.gyp_1 == tmp0_other_with_cast.gyp_1)) return false; if (!(this.hyp_1 == tmp0_other_with_cast.hyp_1)) return false; if (!(this.iyp_1 === tmp0_other_with_cast.iyp_1)) return false; return true; }; function Companion_177() { } protoOf(Companion_177).n4r = function () { return $serializer_getInstance_73(); }; var Companion_instance_226; function Companion_getInstance_194() { return Companion_instance_226; } function $serializer_61() { $serializer_instance_61 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.accountedit.PersonUsernameAndPasswordModel', this, 5); tmp0_serialDesc.t4f('mode', true); tmp0_serialDesc.t4f('personUid', true); tmp0_serialDesc.t4f('username', true); tmp0_serialDesc.t4f('currentPassword', true); tmp0_serialDesc.t4f('newPassword', true); this.iys_1 = tmp0_serialDesc; } protoOf($serializer_61).q44 = function () { return this.iys_1; }; protoOf($serializer_61).k4g = 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_61).s44 = function (decoder) { var tmp0_desc = this.iys_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.i48(tmp0_desc); if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.n48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.o48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.s48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.s48(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.s48(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return PersonUsernameAndPasswordModel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_61).jys = function (encoder, value) { var tmp0_desc = this.iys_1; var tmp1_output = encoder.i48(tmp0_desc); if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.vyp_1 === 1)) { tmp1_output.r49(tmp0_desc, 0, value.vyp_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !value.wyp_1.equals(new Long(0, 0))) { tmp1_output.s49(tmp0_desc, 1, value.wyp_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.xyp_1 === '')) { tmp1_output.w49(tmp0_desc, 2, value.xyp_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !(value.yyp_1 === '')) { tmp1_output.w49(tmp0_desc, 3, value.yyp_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.zyp_1 === '')) { tmp1_output.w49(tmp0_desc, 4, value.zyp_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_61).r44 = function (encoder, value) { return this.jys(encoder, value instanceof PersonUsernameAndPasswordModel ? value : THROW_CCE()); }; var $serializer_instance_61; function $serializer_getInstance_73() { if ($serializer_instance_61 == null) new $serializer_61(); return $serializer_instance_61; } function PersonUsernameAndPasswordModel_init_$Init$(seen1, mode, personUid, username, currentPassword, newPassword, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_73().iys_1); } if (0 === (seen1 & 1)) $this.vyp_1 = 1; else $this.vyp_1 = mode; if (0 === (seen1 & 2)) $this.wyp_1 = new Long(0, 0); else $this.wyp_1 = personUid; if (0 === (seen1 & 4)) $this.xyp_1 = ''; else $this.xyp_1 = username; if (0 === (seen1 & 8)) $this.yyp_1 = ''; else $this.yyp_1 = currentPassword; if (0 === (seen1 & 16)) $this.zyp_1 = ''; else $this.zyp_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.vyp_1 = mode; this.wyp_1 = personUid; this.xyp_1 = username; this.yyp_1 = currentPassword; this.zyp_1 = newPassword; } protoOf(PersonUsernameAndPasswordModel).kys = function (mode, personUid, username, currentPassword, newPassword) { return new PersonUsernameAndPasswordModel(mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).eys = function (mode, personUid, username, currentPassword, newPassword, $super) { mode = mode === VOID ? this.vyp_1 : mode; personUid = personUid === VOID ? this.wyp_1 : personUid; username = username === VOID ? this.xyp_1 : username; currentPassword = currentPassword === VOID ? this.yyp_1 : currentPassword; newPassword = newPassword === VOID ? this.zyp_1 : newPassword; return $super === VOID ? this.kys(mode, personUid, username, currentPassword, newPassword) : $super.kys.call(this, mode, personUid, username, currentPassword, newPassword); }; protoOf(PersonUsernameAndPasswordModel).toString = function () { return 'PersonUsernameAndPasswordModel(mode=' + this.vyp_1 + ', personUid=' + this.wyp_1.toString() + ', username=' + this.xyp_1 + ', currentPassword=' + this.yyp_1 + ', newPassword=' + this.zyp_1 + ')'; }; protoOf(PersonUsernameAndPasswordModel).hashCode = function () { var result = this.vyp_1; result = imul(result, 31) + this.wyp_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.xyp_1) | 0; result = imul(result, 31) + getStringHashCode(this.yyp_1) | 0; result = imul(result, 31) + getStringHashCode(this.zyp_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.vyp_1 === tmp0_other_with_cast.vyp_1)) return false; if (!this.wyp_1.equals(tmp0_other_with_cast.wyp_1)) return false; if (!(this.xyp_1 === tmp0_other_with_cast.xyp_1)) return false; if (!(this.yyp_1 === tmp0_other_with_cast.yyp_1)) return false; if (!(this.zyp_1 === tmp0_other_with_cast.zyp_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.gyt_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel...' call var nextValue = prevValue.pyt(VOID, totalRecords, numImported); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_bulkAddFromUriUseCase__ahhheb($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.jyt_1; bulkAddFromUriUseCase$factory_0(); return this_0.t2(); } function Companion_178() { this.qyt_1 = 'BulkAddPersonRunImport'; this.ryt_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.syt_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_person_bulkadd_BulkAddPersonsUseCase_BulkAddOnProgress$0).tyt = function (numImported, totalRecords) { return this.syt_1(numImported, totalRecords); }; function BulkAddPersonRunImportViewModel$slambda(this$0, resultContinuation) { this.cyu_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonRunImportViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonRunImportViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.cyu_1); var tmp_1 = Companion_getInstance_3().o2r(this.cyu_1.iyt_1); var tmp_2 = this.cyu_1.eqk(); var tmp_3 = BulkAddPersonRunImportViewModel$slambda$lambda(this.cyu_1); suspendResult = tmp_0.tpi(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.cyu_1.gyt_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.pyt(false, VOID, result.wpi_1); if (this_0.y1k(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().q5e('Exception running import', e); l$ret$3: do { var this_1 = this.cyu_1.gyt_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.npi_1; var nextValue_0 = prevValue_0.pyt(false, VOID, VOID, tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, e.message); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new BulkAddPersonRunImportViewModel$slambda(this.cyu_1, completion); i.dyu_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function BulkAddPersonRunImportViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'BulkAddPersonRunImport'); this.gyt_1 = MutableStateFlow(new BulkAddPersonRunImportUiState()); this.hyt_1 = asStateFlow(this.gyt_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.iyt_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.jyt_1 = Instance(this_0, tmp$ret$0, null).a5d(this, bulkAddFromUriUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().dnk_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.dqk(); 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.eyu_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance_51()), null]; } var Companion_instance_228; function Companion_getInstance_196() { if (Companion_instance_228 == null) new Companion_179(); return Companion_instance_228; } function $serializer_62() { $serializer_instance_62 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.core.viewmodel.person.bulkaddrunimport.BulkAddPersonRunImportUiState', this, 5); tmp0_serialDesc.t4f('inProgress', true); tmp0_serialDesc.t4f('totalRecords', true); tmp0_serialDesc.t4f('numImported', true); tmp0_serialDesc.t4f('errors', true); tmp0_serialDesc.t4f('errorMessage', true); this.fyu_1 = tmp0_serialDesc; } protoOf($serializer_62).q44 = function () { return this.fyu_1; }; protoOf($serializer_62).k4g = function () { var tmp0_cached = Companion_getInstance_196().eyu_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_62).s44 = function (decoder) { var tmp0_desc = this.fyu_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.i48(tmp0_desc); var tmp10_cached = Companion_getInstance_196().eyu_1; if (tmp9_input.x48()) { tmp4_local0 = tmp9_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.n48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.y48(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.k48(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.n48(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.n48(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.u48(tmp0_desc, 3, tmp10_cached[3], tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.w48(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.j48(tmp0_desc); return BulkAddPersonRunImportUiState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_62).gyu = function (encoder, value) { var tmp0_desc = this.fyu_1; var tmp1_output = encoder.i48(tmp0_desc); var tmp2_cached = Companion_getInstance_196().eyu_1; if (tmp1_output.e4a(tmp0_desc, 0) ? true : !(value.kyt_1 === true)) { tmp1_output.o49(tmp0_desc, 0, value.kyt_1); } if (tmp1_output.e4a(tmp0_desc, 1) ? true : !(value.lyt_1 === 0)) { tmp1_output.r49(tmp0_desc, 1, value.lyt_1); } if (tmp1_output.e4a(tmp0_desc, 2) ? true : !(value.myt_1 === 0)) { tmp1_output.r49(tmp0_desc, 2, value.myt_1); } if (tmp1_output.e4a(tmp0_desc, 3) ? true : !equals(value.nyt_1, emptyList())) { tmp1_output.y49(tmp0_desc, 3, tmp2_cached[3], value.nyt_1); } if (tmp1_output.e4a(tmp0_desc, 4) ? true : !(value.oyt_1 == null)) { tmp1_output.a4a(tmp0_desc, 4, StringSerializer_getInstance(), value.oyt_1); } tmp1_output.j48(tmp0_desc); }; protoOf($serializer_62).r44 = function (encoder, value) { return this.gyu(encoder, value instanceof BulkAddPersonRunImportUiState ? value : THROW_CCE()); }; var $serializer_instance_62; function $serializer_getInstance_74() { if ($serializer_instance_62 == null) new $serializer_62(); return $serializer_instance_62; } function BulkAddPersonRunImportUiState_init_$Init$(seen1, inProgress, totalRecords, numImported, errors, errorMessage, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_74().fyu_1); } if (0 === (seen1 & 1)) $this.kyt_1 = true; else $this.kyt_1 = inProgress; if (0 === (seen1 & 2)) $this.lyt_1 = 0; else $this.lyt_1 = totalRecords; if (0 === (seen1 & 4)) $this.myt_1 = 0; else $this.myt_1 = numImported; if (0 === (seen1 & 8)) $this.nyt_1 = emptyList(); else $this.nyt_1 = errors; if (0 === (seen1 & 16)) $this.oyt_1 = null; else $this.oyt_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.kyt_1 = inProgress; this.lyt_1 = totalRecords; this.myt_1 = numImported; this.nyt_1 = errors; this.oyt_1 = errorMessage; } protoOf(BulkAddPersonRunImportUiState).dty = function () { var tmp; // Inline function 'kotlin.collections.isNotEmpty' call if (!this.nyt_1.c1()) { tmp = true; } else { tmp = !(this.oyt_1 == null); } return tmp; }; protoOf(BulkAddPersonRunImportUiState).ep0 = function () { var tmp; if (this.lyt_1 > 0) { tmp = this.myt_1 / this.lyt_1; } else { tmp = 0.0; } return tmp; }; protoOf(BulkAddPersonRunImportUiState).hyu = function (inProgress, totalRecords, numImported, errors, errorMessage) { return new BulkAddPersonRunImportUiState(inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).pyt = function (inProgress, totalRecords, numImported, errors, errorMessage, $super) { inProgress = inProgress === VOID ? this.kyt_1 : inProgress; totalRecords = totalRecords === VOID ? this.lyt_1 : totalRecords; numImported = numImported === VOID ? this.myt_1 : numImported; errors = errors === VOID ? this.nyt_1 : errors; errorMessage = errorMessage === VOID ? this.oyt_1 : errorMessage; return $super === VOID ? this.hyu(inProgress, totalRecords, numImported, errors, errorMessage) : $super.hyu.call(this, inProgress, totalRecords, numImported, errors, errorMessage); }; protoOf(BulkAddPersonRunImportUiState).toString = function () { return 'BulkAddPersonRunImportUiState(inProgress=' + this.kyt_1 + ', totalRecords=' + this.lyt_1 + ', numImported=' + this.myt_1 + ', errors=' + this.nyt_1 + ', errorMessage=' + this.oyt_1 + ')'; }; protoOf(BulkAddPersonRunImportUiState).hashCode = function () { var result = getBooleanHashCode(this.kyt_1); result = imul(result, 31) + this.lyt_1 | 0; result = imul(result, 31) + this.myt_1 | 0; result = imul(result, 31) + hashCode(this.nyt_1) | 0; result = imul(result, 31) + (this.oyt_1 == null ? 0 : getStringHashCode(this.oyt_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.kyt_1 === tmp0_other_with_cast.kyt_1)) return false; if (!(this.lyt_1 === tmp0_other_with_cast.lyt_1)) return false; if (!(this.myt_1 === tmp0_other_with_cast.myt_1)) return false; if (!equals(this.nyt_1, tmp0_other_with_cast.nyt_1)) return false; if (!(this.oyt_1 == tmp0_other_with_cast.oyt_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.fyv_1; openBlobUiUseCase$factory_4(); return this_0.t2(); } function Companion_180() { this.gyv_1 = 'BulkAddPersonSelectFile'; } var Companion_instance_229; function Companion_getInstance_197() { return Companion_instance_229; } function BulkAddPersonSelectFileViewModel$slambda(this$0, resultContinuation) { this.pyv_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(BulkAddPersonSelectFileViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.qyv_1.p7f(); var tmp_1 = this.pyv_1.eqk(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); suspendResult = tmp_0.mhw(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.ydm_1 ? it.zdm_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).env = function (db, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda(this.pyv_1, completion); i.qyv_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.vs5(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.dyv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel..' call var nextValue = prevValue.vyv(VOID, VOID, VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function BulkAddPersonSelectFileViewModel$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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).v1m = function ($this$launchIfHasPermission, completion) { var i = new BulkAddPersonSelectFileViewModel$slambda_1(completion); i.eyw_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda(this$0, $templatePath, resultContinuation) { this.nyw_1 = this$0; this.oyw_1 = $templatePath; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.nyw_1); var tmp_1 = new OpenBlobItem(this.oyw_1, 'text/csv', 'bulk-add-persons-template.csv', new Long(186, 0)); suspendResult = tmp_0.gom(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).v1m = function ($this$launch, completion) { var i = new BulkAddPersonSelectFileViewModel$onClickGetTemplate$slambda(this.nyw_1, this.oyw_1, completion); i.pyw_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function BulkAddPersonSelectFileViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'BulkAddPersonSelectFile'); this.dyv_1 = MutableStateFlow(new BulkAddPersonSelectFileUiState()); this.eyv_1 = asStateFlow(this.dyv_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.fyv_1 = Instance(this_0, tmp$ret$0, null).a5d(this, openBlobUiUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().dnk_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = BulkAddPersonSelectFileViewModel$slambda_0(this, null); var tmp_2 = BulkAddPersonSelectFileViewModel$lambda(this); this.xqk(tmp_1, true, tmp_2, BulkAddPersonSelectFileViewModel$slambda_2(null)); } protoOf(BulkAddPersonSelectFileViewModel).qyw = function (uri, name) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.dyv_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.bulkaddselectfile.BulkAddPersonSelectFileViewModel.onFileSelected.' call var nextValue = prevValue.vyv(uri, name); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(BulkAddPersonSelectFileViewModel).ryw = function () { var tmp0_elvis_lhs = this.dyv_1.t2().ryv_1; this.oqj_1.fp3('BulkAddPersonRunImport', mapOf_0(to('uri', tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs))); }; protoOf(BulkAddPersonSelectFileViewModel).syw = function () { var templatePath = this.cqk().co7().nnp_1 + 'staticfiles/bulkaddpersons/bulk-add-persons-template.csv'; var tmp = this.dqk(); 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.ryv_1 = selectedFileUri; this.syv_1 = selectedFileName; this.tyv_1 = fileSelectError; this.uyv_1 = fieldsEnabled; } protoOf(BulkAddPersonSelectFileUiState).tyw = function () { return !(this.ryv_1 == null) ? this.uyv_1 : false; }; protoOf(BulkAddPersonSelectFileUiState).uyw = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) { return new BulkAddPersonSelectFileUiState(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).vyv = function (selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled, $super) { selectedFileUri = selectedFileUri === VOID ? this.ryv_1 : selectedFileUri; selectedFileName = selectedFileName === VOID ? this.syv_1 : selectedFileName; fileSelectError = fileSelectError === VOID ? this.tyv_1 : fileSelectError; fieldsEnabled = fieldsEnabled === VOID ? this.uyv_1 : fieldsEnabled; return $super === VOID ? this.uyw(selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled) : $super.uyw.call(this, selectedFileUri, selectedFileName, fileSelectError, fieldsEnabled); }; protoOf(BulkAddPersonSelectFileUiState).toString = function () { return 'BulkAddPersonSelectFileUiState(selectedFileUri=' + this.ryv_1 + ', selectedFileName=' + this.syv_1 + ', fileSelectError=' + this.tyv_1 + ', fieldsEnabled=' + this.uyv_1 + ')'; }; protoOf(BulkAddPersonSelectFileUiState).hashCode = function () { var result = this.ryv_1 == null ? 0 : getStringHashCode(this.ryv_1); result = imul(result, 31) + (this.syv_1 == null ? 0 : getStringHashCode(this.syv_1)) | 0; result = imul(result, 31) + (this.tyv_1 == null ? 0 : getStringHashCode(this.tyv_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.uyv_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.ryv_1 == tmp0_other_with_cast.ryv_1)) return false; if (!(this.syv_1 == tmp0_other_with_cast.syv_1)) return false; if (!(this.tyv_1 == tmp0_other_with_cast.tyv_1)) return false; if (!(this.uyv_1 === tmp0_other_with_cast.uyv_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 ChildProfileListViewModel$lambda$slambda$slambda$slambda$lambda($childProfileResult) { return function (it) { return it.f96_1.equals($childProfileResult.f96_1); }; } function ChildProfileListViewModel$lambda$slambda$slambda$slambda(this$0, resultContinuation) { this.dyx_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda).fyx = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda).he = function (p1, $completion) { return this.fyx(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$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; return this.dyx_1.iyy_1.t2().hyx_1; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda).env = function (it, completion) { var i = new ChildProfileListViewModel$lambda$slambda$slambda$slambda(this.dyx_1, completion); i.eyx_1 = it; return i; }; function ChildProfileListViewModel$lambda$slambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ChildProfileListViewModel$lambda$slambda$slambda$slambda(this$0, resultContinuation); var l = function (it, $completion) { return i.fyx(it, $completion); }; l.$arity = 1; return l; } function ChildProfileListViewModel$lambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.uyy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda_1).vyy = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda_1).m78 = function ($completion) { return this.vyy($completion); }; protoOf(ChildProfileListViewModel$lambda$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 this.uyy_1.iyy_1.t2().hyx_1; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda_1).l78 = function (completion) { return new ChildProfileListViewModel$lambda$slambda$slambda$slambda_1(this.uyy_1, completion); }; function ChildProfileListViewModel$lambda$slambda$slambda$slambda_2(this$0, resultContinuation) { var i = new ChildProfileListViewModel$lambda$slambda$slambda$slambda_1(this$0, resultContinuation); var l = function ($completion) { return i.vyy($completion); }; l.$arity = 0; return l; } function ChildProfileListViewModel$lambda$slambda$slambda$lambda(this$0) { return function (it) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.iyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.ChildProfileListViewModel.....' call var nextValue = prevValue.wyy(VOID, it == null ? emptyList() : it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function ChildProfileListViewModel$lambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.fyz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda_3).gq7 = function (result, $completion) { var tmp = this.hq7(result, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$lambda$slambda$slambda$slambda_3).he = function (p1, $completion) { return this.gq7(p1 instanceof NavResult ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$lambda$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.gyz_1.nq6_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.hyz_1 = tmp_2; var tmp_3 = this; var tmp_4 = this.fyz_1.iyy_1.t2().hyx_1; tmp_3.iyz_1 = replaceOrAppend(tmp_4, this.hyz_1, ChildProfileListViewModel$lambda$slambda$slambda$slambda$lambda(this.hyz_1)); this.hd_1 = 1; suspendResult = updateChildProfileList(this.fyz_1, this.iyz_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(ChildProfileListViewModel$lambda$slambda$slambda$slambda_3).hq7 = function (result, completion) { var i = new ChildProfileListViewModel$lambda$slambda$slambda$slambda_3(this.fyz_1, completion); i.gyz_1 = result; return i; }; function ChildProfileListViewModel$lambda$slambda$slambda$slambda_4(this$0, resultContinuation) { var i = new ChildProfileListViewModel$lambda$slambda$slambda$slambda_3(this$0, resultContinuation); var l = function (result, $completion) { return i.gq7(result, $completion); }; l.$arity = 1; return l; } function ChildProfileListViewModel$lambda$slambda$slambda(this$0, resultContinuation) { this.ryz_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$lambda$slambda$slambda).u1m = function ($this$async, $completion) { var tmp = this.v1m($this$async, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$lambda$slambda$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$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 = 3; this.hd_1 = 1; var tmp_0 = ListSerializer(Companion_instance_3.n4r()); var tmp_1 = listOf_0('persons'); var tmp_2 = ChildProfileListViewModel$lambda$slambda$slambda$slambda_0(this.ryz_1, null); var tmp_3 = ChildProfileListViewModel$lambda$slambda$slambda$slambda_2(this.ryz_1, null); suspendResult = this.ryz_1.wqk(tmp_0, tmp_1, VOID, tmp_2, tmp_3, ChildProfileListViewModel$lambda$slambda$slambda$lambda(this.ryz_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_4 = this.ryz_1.qqk(this.ryz_1.jqk(), 'person'); var tmp_5 = ChildProfileListViewModel$lambda$slambda$slambda$slambda_4(this.ryz_1, null); suspendResult = tmp_4.a1c(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(ChildProfileListViewModel$lambda$slambda$slambda).v1m = function ($this$async, completion) { var i = new ChildProfileListViewModel$lambda$slambda$slambda(this.ryz_1, completion); i.syz_1 = $this$async; return i; }; function ChildProfileListViewModel$lambda$slambda$slambda_0(this$0, resultContinuation) { var i = new ChildProfileListViewModel$lambda$slambda$slambda(this$0, resultContinuation); var l = function ($this$async, $completion) { return i.u1m($this$async, $completion); }; l.$arity = 1; return l; } function updateChildProfileList($this, newChildProfileList, $completion) { var tmp = new $updateChildProfileListCOROUTINE$77($this, newChildProfileList, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function addChildIntoUiState($this) { var tmp = $this.dqk(); launch(tmp, VOID, VOID, ChildProfileListViewModel$addChildIntoUiState$slambda_0($this, null)); } function Companion_181() { this.ez0_1 = 'ChildProfileList'; this.fz0_1 = 'person'; this.gz0_1 = 'persons'; this.hz0_1 = 'childName'; this.iz0_1 = 'childDateOfBirth'; this.jz0_1 = 'childGender'; } var Companion_instance_230; function Companion_getInstance_198() { return Companion_instance_230; } function sam$kotlinx_coroutines_flow_FlowCollector$0_33(function_0) { this.kz0_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_33).t1d = function (value, $completion) { return this.kz0_1(value, $completion); }; function ChildProfileListViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.zwo(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function ChildProfileListViewModel$lambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$lambda$slambda).vs5 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$lambda$slambda).he = function (p1, $completion) { return this.vs5(p1 instanceof UmAppDatabase ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$lambda$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(ChildProfileListViewModel$lambda$slambda).env = function (it, completion) { var i = new ChildProfileListViewModel$lambda$slambda(completion); i.tz0_1 = it; return i; }; function ChildProfileListViewModel$lambda$slambda_0(resultContinuation) { var i = new ChildProfileListViewModel$lambda$slambda(resultContinuation); var l = function (it, $completion) { return i.vs5(it, $completion); }; l.$arity = 1; return l; } function ChildProfileListViewModel$lambda$slambda_1(this$0, resultContinuation) { this.cz1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$lambda$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($this$launchIfHasPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$lambda$slambda_1).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$lambda$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.dz1_1, VOID, VOID, ChildProfileListViewModel$lambda$slambda$slambda_0(this.cz1_1, null)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ChildProfileListViewModel$lambda$slambda_1).v1m = function ($this$launchIfHasPermission, completion) { var i = new ChildProfileListViewModel$lambda$slambda_1(this.cz1_1, completion); i.dz1_1 = $this$launchIfHasPermission; return i; }; function ChildProfileListViewModel$lambda$slambda_2(this$0, resultContinuation) { var i = new ChildProfileListViewModel$lambda$slambda_1(this$0, resultContinuation); var l = function ($this$launchIfHasPermission, $completion) { return i.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function ChildProfileListViewModel$lambda($savedStateHandle, this$0) { return function () { var tmp; if (!($savedStateHandle.ba('childName') == null)) { addChildIntoUiState(this$0); tmp = Unit_instance; } $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this$0.iyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.ChildProfileListViewModel..' call var nextValue = prevValue.wyy(VOID, VOID, VOID, VOID, this$0.cqk().go6().tnq_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this$0.qqj_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.ChildProfileListViewModel..' call var tmp0_title = this$0.mqk().eog(strings_getInstance().mnl_1); var tmp_0 = this$0.mqk().eog(strings_getInstance().fmn_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp_0, VOID, ChildProfileListViewModel$onClickDone$ref(this$0)); var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp0_title, false, true, VOID, false, VOID, tmp1_actionBarButtonState); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_1 = ChildProfileListViewModel$lambda$slambda_0(null); this$0.yqk(tmp_1, VOID, VOID, ChildProfileListViewModel$lambda$slambda_2(this$0, null)); return Unit_instance; }; } function ChildProfileListViewModel$updateChildProfileList$slambda(this$0, $newChildProfileList, resultContinuation) { this.mz1_1 = this$0; this.nz1_1 = $newChildProfileList; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$updateChildProfileList$slambda).zqw = function ($this$withContext, $completion) { var tmp = this.v1m($this$withContext, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$updateChildProfileList$slambda).he = function (p1, $completion) { return this.zqw((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$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.mz1_1.m4r().r45(ListSerializer(Companion_instance_3.n4r()), this.nz1_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(ChildProfileListViewModel$updateChildProfileList$slambda).v1m = function ($this$withContext, completion) { var i = new ChildProfileListViewModel$updateChildProfileList$slambda(this.mz1_1, this.nz1_1, completion); i.oz1_1 = $this$withContext; return i; }; function ChildProfileListViewModel$updateChildProfileList$slambda_0(this$0, $newChildProfileList, resultContinuation) { var i = new ChildProfileListViewModel$updateChildProfileList$slambda(this$0, $newChildProfileList, resultContinuation); var l = function ($this$withContext, $completion) { return i.zqw($this$withContext, $completion); }; l.$arity = 1; return l; } function ChildProfileListViewModel$addChildIntoUiState$slambda(this$0, resultContinuation) { this.xz1_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$addChildIntoUiState$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$addChildIntoUiState$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$addChildIntoUiState$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.zz1_1 = this.xz1_1.mqj_1.ba('childName'); var tmp_0 = this; var tmp0_safe_receiver = this.xz1_1.mqj_1.ba('childGender'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver); tmp_0.az2_1 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; var tmp_1 = this; var tmp2_safe_receiver = this.xz1_1.mqj_1.ba('childDateOfBirth'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); tmp_1.bz2_1 = tmp3_elvis_lhs == null ? new Long(0, 0) : tmp3_elvis_lhs; var tmp_2 = this; var tmp4_safe_receiver = this.zz1_1; var tmp_3; if (tmp4_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = toString(trim(isCharSequence(tmp4_safe_receiver) ? tmp4_safe_receiver : THROW_CCE())); } tmp_2.cz2_1 = tmp_3; var tmp_4 = this; var tmp5_safe_receiver = this.cz2_1; var tmp_5; if (tmp5_safe_receiver == null) { tmp_5 = null; } else { tmp_5 = toString(trim(isCharSequence(tmp5_safe_receiver) ? tmp5_safe_receiver : THROW_CCE())); } var tmp6_safe_receiver = tmp_5; tmp_4.dz2_1 = tmp6_safe_receiver == null ? null : split(tmp6_safe_receiver, ['.'], VOID, 2); var tmp_6 = this; var tmp7_safe_receiver = this.dz2_1; tmp_6.ez2_1 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.v(0); var tmp_7 = this; var tmp8_safe_receiver = this.dz2_1; var tmp_8; if (tmp8_safe_receiver == null) { tmp_8 = null; } else { var tmp_9; if (1 >= 0 ? 1 <= get_lastIndex(tmp8_safe_receiver) : false) { tmp_9 = tmp8_safe_receiver.v(1); } else { tmp_9 = ''; } tmp_8 = tmp_9; } tmp_7.fz2_1 = tmp_8; this.hd_1 = 1; var tmp_10 = get_doorPrimaryKeyManager(this.xz1_1.gqk()); suspendResult = tmp_10.o62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.gz2_1 = suspendResult; this.hz2_1 = new Person(this.gz2_1, VOID, this.ez2_1, this.fz2_1, VOID, VOID, this.az2_1, VOID, true, this.bz2_1); this.hd_1 = 2; suspendResult = updateChildProfileList(this.xz1_1, listOf_0(this.hz2_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(ChildProfileListViewModel$addChildIntoUiState$slambda).v1m = function ($this$launch, completion) { var i = new ChildProfileListViewModel$addChildIntoUiState$slambda(this.xz1_1, completion); i.yz1_1 = $this$launch; return i; }; function ChildProfileListViewModel$addChildIntoUiState$slambda_0(this$0, resultContinuation) { var i = new ChildProfileListViewModel$addChildIntoUiState$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ChildProfileListViewModel$onClickDeleteChildProfile$slambda(this$0, $person, resultContinuation) { this.qz2_1 = this$0; this.rz2_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$onClickDeleteChildProfile$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$onClickDeleteChildProfile$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$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.qz2_1.iyy_1.t2().hyx_1; var destination = ArrayList_init_$Create$(); var tmp0_iterator = this_0.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); if (!element.f96_1.equals(this.rz2_1.f96_1)) { destination.i1(element); } } suspendResult = updateChildProfileList(this.qz2_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(ChildProfileListViewModel$onClickDeleteChildProfile$slambda).v1m = function ($this$launch, completion) { var i = new ChildProfileListViewModel$onClickDeleteChildProfile$slambda(this.qz2_1, this.rz2_1, completion); i.sz2_1 = $this$launch; return i; }; function ChildProfileListViewModel$onClickDeleteChildProfile$slambda_0(this$0, $person, resultContinuation) { var i = new ChildProfileListViewModel$onClickDeleteChildProfile$slambda(this$0, $person, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ChildProfileListViewModel$onProfileSelected$slambda(this$0, $profile, resultContinuation) { this.bz3_1 = this$0; this.cz3_1 = $profile; CoroutineImpl.call(this, resultContinuation); } protoOf(ChildProfileListViewModel$onProfileSelected$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ChildProfileListViewModel$onProfileSelected$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ChildProfileListViewModel$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.ez3_1 = new UstadGoOptions(VOID, VOID, true); if (!this.bz3_1.iyy_1.t2().hyx_1.c1()) { var tmp_0 = this; var tmp0_elvis_lhs = this.bz3_1.hqk(); tmp_0.fz3_1 = tmp0_elvis_lhs == null ? this.bz3_1.gqk() : tmp0_elvis_lhs; this.hd_1 = 1; suspendResult = this.fz3_1.n7d().kg2(this.bz3_1.iyy_1.t2().hyx_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.bz3_1.iyy_1.t2().hyx_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.f96_1; var tmp1_ppjParentPersonUid = this.bz3_1.cqk().ao7().hku_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.gz3_1 = destination; var tmp_2 = this; tmp_2.hz3_1 = this.bz3_1.iyy_1.t2().hyx_1; this.iz3_1 = this.hz3_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.iz3_1.f()) { this.hd_1 = 5; continue $sm; } this.jz3_1 = this.iz3_1.e(); var tmp_3 = this; tmp_3.kz3_1 = this.jz3_1; if (!this.kz3_1.equals(this.cz3_1)) { this.hd_1 = 3; suspendResult = this.bz3_1.cqk().cnz(this.kz3_1, this.bz3_1.cqk().co7().nnp_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.fz3_1.x7e().ugq(this.gz3_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.hd_1 = 7; continue $sm; case 7: if (!this.cz3_1.equals(this.bz3_1.cqk().go6().tnq_1)) { this.hd_1 = 8; suspendResult = this.bz3_1.cqk().cnz(this.cz3_1, this.bz3_1.cqk().co7().nnp_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.bz3_1.cqk().unt(sessionWithPersonAndLearningSpace); this.hd_1 = 9; continue $sm; case 9: Companion_getInstance_167(); this.bz3_1.yqq(this.bz3_1.oqj_1, appendSelectedAccount('ContentEntryListHome', this.cz3_1.f96_1, new LearningSpace(this.bz3_1.cqk().co7().nnp_1)), this.ez3_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(ChildProfileListViewModel$onProfileSelected$slambda).v1m = function ($this$launch, completion) { var i = new ChildProfileListViewModel$onProfileSelected$slambda(this.bz3_1, this.cz3_1, completion); i.dz3_1 = $this$launch; return i; }; function ChildProfileListViewModel$onProfileSelected$slambda_0(this$0, $profile, resultContinuation) { var i = new ChildProfileListViewModel$onProfileSelected$slambda(this$0, $profile, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function $updateChildProfileListCOROUTINE$77(_this__u8e3s4, newChildProfileList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.bz0_1 = _this__u8e3s4; this.cz0_1 = newChildProfileList; } protoOf($updateChildProfileListCOROUTINE$77).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.bz0_1.iyy_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.wyy(VOID, this.cz0_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.dz0_1 = this.bz0_1.mqj_1; this.hd_1 = 1; var tmp_0 = Dispatchers_getInstance().p12_1; suspendResult = withContext(tmp_0, ChildProfileListViewModel$updateChildProfileList$slambda_0(this.bz0_1, this.cz0_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.dz0_1.qqf('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 ChildProfileListViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ChildProfileList'); this.iyy_1 = MutableStateFlow(new ChildProfileListUiState()); var tmp = this; Companion_getInstance_114(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_0; if (tmp0_elvis_lhs == null) { Companion_getInstance_138(); tmp_0 = 'CourseListHome'; } else { tmp_0 = tmp0_elvis_lhs; } tmp.jyy_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.kyy_1 = Instance(this_0, tmp$ret$0, null).a5d(this, repo$factory()); this.lyy_1 = asStateFlow(this.iyy_1); if (!(savedStateHandle.ba('childName') == null)) { addChildIntoUiState(this); } $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.iyy_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.ChildProfileListViewModel.' call var nextValue = prevValue.wyy(VOID, VOID, VOID, VOID, this.cqk().go6().tnq_1); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs_0 = savedStateHandle.ba('childName'); var childName = tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0; var tmp1_elvis_lhs = savedStateHandle.ba('childGender'); var childGender = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; var tmp2_elvis_lhs = savedStateHandle.ba('childDateOfBirth'); var childDateOfBirth = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp_3 = mapOf([to('childName', childName), to('childGender', childGender), to('childDateOfBirth', childDateOfBirth)]); this.bql(false, tmp_3, ChildProfileListViewModel$lambda(savedStateHandle, this)); } protoOf(ChildProfileListViewModel).lz3 = function () { // Inline function 'kotlin.getValue' call var this_0 = this.kyy_1; repo$factory_0(); return this_0.t2(); }; protoOf(ChildProfileListViewModel).zwo = function () { // Inline function 'kotlin.collections.isNotEmpty' call if (!this.iyy_1.t2().hyx_1.c1()) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.iyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.ChildProfileListViewModel.onClickDone.' call var nextValue = prevValue.wyy(VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } else { this.mz3(this.cqk().ao7().pku()); } }; protoOf(ChildProfileListViewModel).nz3 = 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.ChildProfileListViewModel.onClickAddChileProfile.' call Companion_getInstance_113(); this.mqj_1.ba('entity'); var tmp2_args = this_0.f3(); var tmp3_serializer = Companion_instance_3.n4r(); this.uqk(tmp0_nextViewName, 'person', null, tmp3_serializer, tmp2_args); }; protoOf(ChildProfileListViewModel).oz3 = function (person) { var tmp0_nextViewName = 'EditChildProfile'; var tmp2_serializer = Companion_instance_3.n4r(); // 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.ChildProfileListViewModel.onClickEditChileProfile.' call Companion_getInstance_113(); this.mqj_1.ba('entity'); var tmp3_args = this_0.f3(); this.uqk(tmp0_nextViewName, 'person', person, tmp2_serializer, tmp3_args); }; protoOf(ChildProfileListViewModel).pz3 = function (person) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ChildProfileListViewModel$onClickDeleteChildProfile$slambda_0(this, person, null)); }; protoOf(ChildProfileListViewModel).qz3 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.iyy_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.ChildProfileListViewModel.onDismissLangDialog.' call var nextValue = prevValue.wyy(VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(ChildProfileListViewModel).mz3 = function (profile) { var tmp = this.dqk(); launch(tmp, VOID, VOID, ChildProfileListViewModel$onProfileSelected$slambda_0(this, profile, null)); }; function ChildProfileListUiState(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.gyx_1 = onAddChildProfile; this.hyx_1 = childProfiles; this.iyx_1 = personParenJoinList; this.jyx_1 = showProfileSelectionDialog; this.kyx_1 = parent; } protoOf(ChildProfileListUiState).rz3 = function () { var tmp0_safe_receiver = this.kyx_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.ChildProfileListUiState..' call tmp = listOf_0(tmp0_safe_receiver); } var tmp1_elvis_lhs = tmp; return plus(tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs, this.hyx_1); }; protoOf(ChildProfileListUiState).sz3 = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) { return new ChildProfileListUiState(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(ChildProfileListUiState).wyy = function (onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent, $super) { onAddChildProfile = onAddChildProfile === VOID ? this.gyx_1 : onAddChildProfile; childProfiles = childProfiles === VOID ? this.hyx_1 : childProfiles; personParenJoinList = personParenJoinList === VOID ? this.iyx_1 : personParenJoinList; showProfileSelectionDialog = showProfileSelectionDialog === VOID ? this.jyx_1 : showProfileSelectionDialog; parent = parent === VOID ? this.kyx_1 : parent; return $super === VOID ? this.sz3(onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent) : $super.sz3.call(this, onAddChildProfile, childProfiles, personParenJoinList, showProfileSelectionDialog, parent); }; protoOf(ChildProfileListUiState).toString = function () { return 'ChildProfileListUiState(onAddChildProfile=' + this.gyx_1 + ', childProfiles=' + this.hyx_1 + ', personParenJoinList=' + this.iyx_1 + ', showProfileSelectionDialog=' + this.jyx_1 + ', parent=' + this.kyx_1 + ')'; }; protoOf(ChildProfileListUiState).hashCode = function () { var result = this.gyx_1 == null ? 0 : getStringHashCode(this.gyx_1); result = imul(result, 31) + hashCode(this.hyx_1) | 0; result = imul(result, 31) + hashCode(this.iyx_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.jyx_1) | 0; result = imul(result, 31) + (this.kyx_1 == null ? 0 : this.kyx_1.hashCode()) | 0; return result; }; protoOf(ChildProfileListUiState).equals = function (other) { if (this === other) return true; if (!(other instanceof ChildProfileListUiState)) return false; var tmp0_other_with_cast = other instanceof ChildProfileListUiState ? other : THROW_CCE(); if (!(this.gyx_1 == tmp0_other_with_cast.gyx_1)) return false; if (!equals(this.hyx_1, tmp0_other_with_cast.hyx_1)) return false; if (!equals(this.iyx_1, tmp0_other_with_cast.iyx_1)) return false; if (!(this.jyx_1 === tmp0_other_with_cast.jyx_1)) return false; if (!equals(this.kyx_1, tmp0_other_with_cast.kyx_1)) return false; return true; }; function repo$factory() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.lz3(); }, null); } function repo$factory_0() { return getPropertyCallableRef('repo', 1, KProperty1, function (receiver) { return receiver.lz3(); }, null); } function EditChildProfileViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda).cz4 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda$slambda).he = function (p1, $completion) { return this.cz4(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).env = function (it, completion) { var i = new EditChildProfileViewModel$slambda$slambda(completion); i.bz4_1 = it; return i; }; function EditChildProfileViewModel$slambda$slambda_0(resultContinuation) { var i = new EditChildProfileViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.cz4(it, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$slambda$slambda_1(this$0, resultContinuation) { this.lz4_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda$slambda_1).mz4 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda$slambda_1).m78 = function ($completion) { return this.mz4($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.lz4_1.gqk()); suspendResult = tmp_0.o62(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).l78 = function (completion) { return new EditChildProfileViewModel$slambda$slambda_1(this.lz4_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.mz4($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.kz5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel...' call var tmp; if ((it == null ? null : it.h96_1) === '') { tmp = null; } else { tmp = it == null ? null : it.qkm(); } var nextValue = prevValue.vz5(it, VOID, VOID, VOID, VOID, VOID, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function _get_genderConfig__kyr0zc($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.mz5_1; genderConfig$factory_0(); return this_0.t2(); } function hasErrors_3(_this__u8e3s4, $this) { return (!(_this__u8e3s4.oz5_1 == null) ? true : !(_this__u8e3s4.tz5_1 == null)) ? true : !(_this__u8e3s4.qz5_1 == null); } function Companion_182() { this.wz5_1 = 'EditChildProfile'; } var Companion_instance_231; function Companion_getInstance_199() { return Companion_instance_231; } function EditChildProfileViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function EditChildProfileViewModel$slambda(this$0, resultContinuation) { this.fz6_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(EditChildProfileViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.hz6_1 = Companion_instance_3.n4r(); this.hd_1 = 1; var tmp_0 = EditChildProfileViewModel$slambda$slambda_0(null); var tmp_1 = EditChildProfileViewModel$slambda$slambda_2(this.fz6_1, null); suspendResult = this.fz6_1.wqk(this.hz6_1, VOID, VOID, tmp_0, tmp_1, EditChildProfileViewModel$slambda$lambda(this.fz6_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).v1m = function ($this$launch, completion) { var i = new EditChildProfileViewModel$slambda(this.fz6_1, completion); i.gz6_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.qz6_1 = $commitDelay; this.rz6_1 = $entity; this.sz6_1 = $this; this.tz6_1 = $key; this.uz6_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(EditChildProfileViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.qz6_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.rz6_1 == null)) { this.hd_1 = 2; suspendResult = this.sz6_1.sqk(this.sz6_1.mqj_1, this.tz6_1, this.uz6_1, this.rz6_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).v1m = function ($this$launch, completion) { var i = new EditChildProfileViewModel$onEntityChanged$slambda(this.qz6_1, this.rz6_1, this.sz6_1, this.tz6_1, this.uz6_1, completion); i.vz6_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function EditChildProfileViewModel$onClickSave$lambda($firstName, $lastName) { return function ($this$shallowCopy) { $this$shallowCopy.h96_1 = $firstName; $this$shallowCopy.i96_1 = $lastName; return Unit_instance; }; } function EditChildProfileViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'EditChildProfile'); this.kz5_1 = MutableStateFlow(new EditChildProfileUiState()); this.lz5_1 = asStateFlow(this.kz5_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.mz5_1 = Instance(this, tmp$ret$0, null).a5d(this, genderConfig$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kz5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var nextValue = prevValue.vz5(VOID, VOID, _get_genderConfig__kyr0zc(this).aq4_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp0_title = this.mqk().eog(strings_getInstance().lnl_1); var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp0_title, false, true, VOID, false, VOID, VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqj_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.' call var tmp_1 = this.mqk().eog(strings_getInstance().tmy_1); var nextValue_1 = prevValue_1.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_1, VOID, EditChildProfileViewModel$onClickSave$ref(this))); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, EditChildProfileViewModel$slambda_0(this, null)); } protoOf(EditChildProfileViewModel).wz6 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kz5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.nz5_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l96_1; var tmp_0 = this.xqq(tmp, entity == null ? null : entity.l96_1, prevValue.qz5_1); var tmp2_safe_receiver = prevValue.nz5_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h96_1; var nextValue = prevValue.vz5(entity, VOID, VOID, tmp_0, VOID, VOID, this.xqq(tmp_1, entity == null ? null : entity.h96_1, prevValue.tz5_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.dqk(); tmp_2.tqp_1 = launch(tmp_3, VOID, VOID, EditChildProfileViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(EditChildProfileViewModel).js3 = function () { this.oqk(Companion_getInstance_96().iq3_1); var tmp0_elvis_lhs = this.kz5_1.t2().nz5_1; var tmp; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp = tmp0_elvis_lhs; } var savePerson = tmp; var requiredFieldMessage = this.mqk().eog(strings_getInstance().hmj_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.kz5_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.child.EditChildProfileViewModel.onClickSave.' call var tmp_0; if (savePerson.o96_1.equals(new Long(0, 0))) { tmp_0 = requiredFieldMessage; } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; var tmp_3 = savePerson.l96_1; if (tmp_3 === 0) { tmp_2 = requiredFieldMessage; } else { tmp_2 = null; } var tmp_4 = tmp_2; var tmp_5; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = this.kz5_1.t2().uz5_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_5 = requiredFieldMessage; } else { tmp_5 = null; } var nextValue = prevValue.vz5(VOID, tmp_1, VOID, tmp_4, VOID, VOID, tmp_5); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_3(this.kz5_1.t2(), this)) { this.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; } var tmp1_safe_receiver = this.kz5_1.t2().uz5_1; var tmp_6; if (tmp1_safe_receiver == null) { tmp_6 = null; } else { // Inline function 'kotlin.text.trim' call tmp_6 = toString(trim(isCharSequence(tmp1_safe_receiver) ? tmp1_safe_receiver : THROW_CCE())); } var fullName = tmp_6; var tmp2_container = toFirstAndLastNameExt(fullName); var firstName = tmp2_container.y6(); var lastName = tmp2_container.z6(); var tmp3_safe_receiver = this.kz5_1.t2().nz5_1; var tmp_7; if (tmp3_safe_receiver == null) { tmp_7 = null; } else { tmp_7 = shallowCopy(tmp3_safe_receiver, EditChildProfileViewModel$onClickSave$lambda(firstName, lastName)); } this.wz6(tmp_7); this.xqp(this.kz5_1.t2().nz5_1); }; function EditChildProfileUiState(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, fullNameError, fullName) { person = person === VOID ? null : person; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().cq4_1 : genderOptions; genderError = genderError === VOID ? null : genderError; firstNameError = firstNameError === VOID ? null : firstNameError; lastNameError = lastNameError === VOID ? null : lastNameError; fullNameError = fullNameError === VOID ? null : fullNameError; fullName = fullName === VOID ? null : fullName; this.nz5_1 = person; this.oz5_1 = dateOfBirthError; this.pz5_1 = genderOptions; this.qz5_1 = genderError; this.rz5_1 = firstNameError; this.sz5_1 = lastNameError; this.tz5_1 = fullNameError; this.uz5_1 = fullName; } protoOf(EditChildProfileUiState).xz6 = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, fullNameError, fullName) { return new EditChildProfileUiState(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, fullNameError, fullName); }; protoOf(EditChildProfileUiState).vz5 = function (person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, fullNameError, fullName, $super) { person = person === VOID ? this.nz5_1 : person; dateOfBirthError = dateOfBirthError === VOID ? this.oz5_1 : dateOfBirthError; genderOptions = genderOptions === VOID ? this.pz5_1 : genderOptions; genderError = genderError === VOID ? this.qz5_1 : genderError; firstNameError = firstNameError === VOID ? this.rz5_1 : firstNameError; lastNameError = lastNameError === VOID ? this.sz5_1 : lastNameError; fullNameError = fullNameError === VOID ? this.tz5_1 : fullNameError; fullName = fullName === VOID ? this.uz5_1 : fullName; return $super === VOID ? this.xz6(person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, fullNameError, fullName) : $super.xz6.call(this, person, dateOfBirthError, genderOptions, genderError, firstNameError, lastNameError, fullNameError, fullName); }; protoOf(EditChildProfileUiState).toString = function () { return 'EditChildProfileUiState(person=' + this.nz5_1 + ', dateOfBirthError=' + this.oz5_1 + ', genderOptions=' + this.pz5_1 + ', genderError=' + this.qz5_1 + ', firstNameError=' + this.rz5_1 + ', lastNameError=' + this.sz5_1 + ', fullNameError=' + this.tz5_1 + ', fullName=' + this.uz5_1 + ')'; }; protoOf(EditChildProfileUiState).hashCode = function () { var result = this.nz5_1 == null ? 0 : this.nz5_1.hashCode(); result = imul(result, 31) + (this.oz5_1 == null ? 0 : getStringHashCode(this.oz5_1)) | 0; result = imul(result, 31) + hashCode(this.pz5_1) | 0; result = imul(result, 31) + (this.qz5_1 == null ? 0 : getStringHashCode(this.qz5_1)) | 0; result = imul(result, 31) + (this.rz5_1 == null ? 0 : getStringHashCode(this.rz5_1)) | 0; result = imul(result, 31) + (this.sz5_1 == null ? 0 : getStringHashCode(this.sz5_1)) | 0; result = imul(result, 31) + (this.tz5_1 == null ? 0 : getStringHashCode(this.tz5_1)) | 0; result = imul(result, 31) + (this.uz5_1 == null ? 0 : getStringHashCode(this.uz5_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.nz5_1, tmp0_other_with_cast.nz5_1)) return false; if (!(this.oz5_1 == tmp0_other_with_cast.oz5_1)) return false; if (!equals(this.pz5_1, tmp0_other_with_cast.pz5_1)) return false; if (!(this.qz5_1 == tmp0_other_with_cast.qz5_1)) return false; if (!(this.rz5_1 == tmp0_other_with_cast.rz5_1)) return false; if (!(this.sz5_1 == tmp0_other_with_cast.sz5_1)) return false; if (!(this.tz5_1 == tmp0_other_with_cast.tz5_1)) return false; if (!(this.uz5_1 == tmp0_other_with_cast.uz5_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).iz7 = function (entity, permissions, $completion) { var tmp = this.jz7(entity, permissions, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda).um = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof PersonAndDisplayDetail) ? p1 : THROW_CCE(); return this.iz7(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.gz7_1; var tmp_0; if (this.hz7_1.rhy_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).jz7 = function (entity, permissions, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda(completion); i.gz7_1 = entity; i.hz7_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.iz7(entity, permissions, $completion); }; l.$arity = 2; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.sz7_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_1).uz7 = function (person, $completion) { var tmp = this.vz7(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.uz7((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.sz7_1.sz8_1; while (true) { var prevValue = this_0.t2(); var tmp0_safe_receiver = this.tz7_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k96_1; var tmp_0; if (tmp2_safe_receiver == null) { tmp_0 = null; } else { var tmp0_safe_receiver_0 = _get_phoneNumberUtil__i6ank8(this.sz7_1); tmp_0 = tmp0_safe_receiver_0 == null ? null : formatInternationalOrNull(tmp0_safe_receiver_0, tmp2_safe_receiver); } var nextValue = prevValue.gz9(this.tz7_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.sz7_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp0_safe_receiver_1 = this.tz7_1; var tmp1_safe_receiver_0 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.wg5_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.tz7_1 == null)) { tmp_1 = Companion_getInstance_96().jq3_1; } else { tmp_1 = Companion_getInstance_96().iq3_1; } var tmp4_loadingState = tmp_1; var nextValue_0 = prevValue_0.bq3(VOID, tmp4_loadingState, tmp3_title); if (this_1.y1k(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).vz7 = function (person, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_1(this.sz7_1, completion); i.tz7_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.uz7(person, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.pz9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_3).yqb = function (it, $completion) { var tmp = this.zqb(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.yqb((!(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.pz9_1.sz8_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gz9(VOID, VOID, VOID, VOID, VOID, this.qz9_1); if (this_0.y1k(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).zqb = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_3(this.pz9_1, completion); i.qz9_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.yqb(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.mwz(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this$0, resultContinuation) { this.zz9_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_5).bza = function (it, $completion) { var tmp = this.cza(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.bza(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.zz9_1.sz8_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gz9(VOID, VOID, VOID, VOID, this.aza_1.shy_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.zz9_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp_0; if (this.aza_1.shy_1) { var tmp_1 = this.zz9_1.mqk().eog(strings_getInstance().fmr_1); var tmp_2 = FabIcon_EDIT_getInstance(); tmp_0 = new FabUiState(true, tmp_1, tmp_2, PersonDetailViewModel$onClickEdit$ref(this.zz9_1)); } else { tmp_0 = new FabUiState(); } var nextValue_0 = prevValue_0.bq3(tmp_0); if (this_1.y1k(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).cza = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_5(this.zz9_1, completion); i.aza_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.bza(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this$0, resultContinuation) { this.lza_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda$slambda_7).nza = function (it, $completion) { var tmp = this.oza(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.nza((!(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.lza_1.sz8_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.gz9(VOID, VOID, VOID, this.mza_1); if (this_0.y1k(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).oza = function (it, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda$slambda_7(this.lza_1, completion); i.mza_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.nza(it, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda($entityFlow, $viewAndEditPermissionFlow, this$0, resultContinuation) { this.xza_1 = $entityFlow; this.yza_1 = $viewAndEditPermissionFlow; this.zza_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.xza_1, this.yza_1, PersonDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_2(this.zza_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda(this.xza_1, this.yza_1, this.zza_1, completion); i.azb_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_1($hasManagePermissionsPermissionFlow, this$0, resultContinuation) { this.jzb_1 = $hasManagePermissionsPermissionFlow; this.kzb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.jzb_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_4(this.kzb_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_1(this.jzb_1, this.kzb_1, completion); i.lzb_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_3($viewAndEditPermissionFlow, this$0, resultContinuation) { this.uzb_1 = $viewAndEditPermissionFlow; this.vzb_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_3).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.vzb_1, null); suspendResult = this.uzb_1.h1h(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).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_3(this.uzb_1, this.vzb_1, completion); i.wzb_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda$slambda_5(this$0, resultContinuation) { this.fzc_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda$slambda_5).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.fzc_1.gqk().t7d().h93(this.fzc_1.eqk(), this.fzc_1.gqj_1); var tmp_1 = PersonDetailViewModel$slambda$slambda$slambda$slambda_8(this.fzc_1, null); suspendResult = tmp_0.a1c(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).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda$slambda$slambda_5(this.fzc_1, completion); i.gzc_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewAndEditPermissionFlow, this$0, $hasManagePermissionsPermissionFlow, resultContinuation) { this.pzc_1 = $this_launch; this.qzc_1 = $entityFlow; this.rzc_1 = $viewAndEditPermissionFlow; this.szc_1 = this$0; this.tzc_1 = $hasManagePermissionsPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.pzc_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_0(this.qzc_1, this.rzc_1, this.szc_1, null)); launch(this.pzc_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_2(this.tzc_1, this.szc_1, null)); launch(this.pzc_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_4(this.rzc_1, this.szc_1, null)); launch(this.pzc_1, VOID, VOID, PersonDetailViewModel$slambda$slambda$slambda_6(this.szc_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).l78 = function (completion) { return new PersonDetailViewModel$slambda$slambda(this.pzc_1, this.qzc_1, this.rzc_1, this.szc_1, this.tzc_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.j87($completion); }; l.$arity = 0; return l; } function _get_phoneNumberUtil__i6ank8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.vz8_1; phoneNumberUtil$factory_0(); return this_0.t2(); } function _get_onClickPhoneNumUseCase__2tcaut($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wz8_1; onClickPhoneNumUseCase$factory_0(); return this_0.t2(); } function _get_onClickSendSmsUseCase__plj4zm($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xz8_1; onClickSendSmsUseCase$factory_0(); return this_0.t2(); } function _get_onClickEmailUseCase__v8uzjh($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yz8_1; onClickEmailUseCase$factory_0(); return this_0.t2(); } function navigateToEditAccount($this) { Companion_getInstance_123(); $this.oqj_1.fp3('AccountEdit', mapOf_0(to('entityUid', $this.uz8_1.toString()))); } function Companion_183() { this.uzc_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.vzc_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_34).t1d = function (value, $completion) { return this.vzc_1(value, $completion); }; function PersonDetailViewModel$onClickEdit$ref_0($boundThis) { var l = function () { $boundThis.mwz(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function PersonDetailViewModel$slambda(this$0, resultContinuation) { this.ezd_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.gzd_1 = this.ezd_1.iqk().n7d().qg2(this.ezd_1.gqj_1, this.ezd_1.eqk()); this.hzd_1 = shareIn(this.ezd_1.iqk().p7f().nhw(this.ezd_1.eqk(), this.ezd_1.gqj_1), this.ezd_1.dqk(), Companion_getInstance_12().v1h()); var tmp_0 = this; var tmp_1 = this.ezd_1.gqk().p7f(); var tmp_2 = this.ezd_1.eqk(); PermissionFlags_getInstance(); tmp_0.izd_1 = tmp_1.khw(tmp_2, new Long(4096, 0)); this.hd_1 = 1; suspendResult = whenSubscribed(this.ezd_1.sz8_1, PersonDetailViewModel$slambda$slambda_0(this.fzd_1, this.gzd_1, this.hzd_1, this.ezd_1, this.izd_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).v1m = function ($this$launch, completion) { var i = new PersonDetailViewModel$slambda(this.ezd_1, completion); i.fzd_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'PersonDetailView'); this.sz8_1 = MutableStateFlow(new PersonDetailUiState()); this.tz8_1 = asStateFlow(this.sz8_1); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.uz8_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.vz8_1 = InstanceOrNull(this, tmp$ret$0, null).a5d(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.wz8_1 = Instance(this, tmp$ret$2, null).a5d(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.xz8_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(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.yz8_1 = Instance(this, tmp$ret$6, null).a5d(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).a5d(null, getLocalDelegateReference('accountManager', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_loadingState = Companion_getInstance_96().iq3_1; var tmp_9 = this.mqk().eog(strings_getInstance().fmr_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.bq3(tmp1_fabState, tmp0_loadingState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.sz8_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.' call var tmp0_isActiveUser = this.gqj_1.equals(this.eqk()); var tmp1_canSendSms = !(_get_onClickSendSmsUseCase__plj4zm(this) == null); var nextValue_0 = prevValue_0.gz9(VOID, VOID, tmp1_canSendSms, VOID, VOID, VOID, tmp0_isActiveUser); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_11 = this.dqk(); launch(tmp_11, VOID, VOID, PersonDetailViewModel$slambda_0(this, null)); } protoOf(PersonDetailViewModel).mwz = function () { Companion_getInstance_201(); Companion_getInstance_123(); this.oqj_1.fp3('PersonEditView', mapOf_0(to('entityUid', this.uz8_1.toString()))); }; protoOf(PersonDetailViewModel).jzd = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).kzd = function () { return navigateToEditAccount(this); }; protoOf(PersonDetailViewModel).lzd = function () { Companion_getInstance_114(); this.oqj_1.fp3('MessageList', mapOf_0(to('personUid', this.uz8_1.toString()))); }; protoOf(PersonDetailViewModel).mzd = function () { var tmp0_safe_receiver = this.sz8_1.t2().zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k96_1; if (tmp2_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.person.detail.PersonDetailViewModel.onClickDial.' call _get_onClickPhoneNumUseCase__2tcaut(this).koy(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).nzd = function () { var tmp0_safe_receiver = this.sz8_1.t2().zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j96_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).koy(tmp2_safe_receiver); } }; protoOf(PersonDetailViewModel).grs = function () { Companion_getInstance_123(); this.oqj_1.fp3('SystemPermission', mapOf_0(to('personUid', this.gqj_1.toString()))); }; protoOf(PersonDetailViewModel).ozd = function () { var tmp0_safe_receiver = this.sz8_1.t2().zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xg5_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ag6_1; var ppjUid = tmp2_elvis_lhs == null ? new Long(0, 0) : tmp2_elvis_lhs; if (!ppjUid.equals(new Long(0, 0))) { Companion_getInstance_123(); var tmp = to('entityUid', ppjUid.toString()); Companion_getInstance_123(); Companion_getInstance_114(); this.oqj_1.fp3('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.zz8_1 = person; this.az9_1 = displayPhoneNum; this.bz9_1 = canSendSms; this.cz9_1 = clazzes; this.dz9_1 = hasChangePasswordPermission; this.ez9_1 = showPermissionButton; this.fz9_1 = isActiveUser; } protoOf(PersonDetailUiState).pzd = function () { var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; return isDateSet(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o96_1); }; protoOf(PersonDetailUiState).qzd = function () { var tmp; var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l96_1) == null)) { var tmp2_safe_receiver = this.zz8_1.wg5_1; tmp = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.l96_1) === 0); } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).rzd = function () { var tmp; var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g96_1) == null)) { tmp = this.dz9_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).szd = function () { var tmp; var tmp_0; if (!(this.zz8_1 == null)) { var tmp0_safe_receiver = this.zz8_1.wg5_1; tmp_0 = (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1) == null; } else { tmp_0 = false; } if (tmp_0) { tmp = this.dz9_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).tzd = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).uzd = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).vzd = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.j96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).wzd = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).xzd = function () { // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g96_1; // Inline function 'kotlin.contracts.contract' call return !(this_0 == null ? true : isBlank(this_0)); }; protoOf(PersonDetailUiState).yzd = function () { var tmp0_safe_receiver = this.zz8_1; return !((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xg5_1) == null); }; protoOf(PersonDetailUiState).zzd = function () { var tmp; // Inline function 'kotlin.text.isNullOrBlank' call var tmp0_safe_receiver = this.zz8_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wg5_1; var this_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g96_1; // Inline function 'kotlin.contracts.contract' call if (!(this_0 == null ? true : isBlank(this_0))) { tmp = !this.fz9_1; } else { tmp = false; } return tmp; }; protoOf(PersonDetailUiState).aze = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) { return new PersonDetailUiState(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).gz9 = function (person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser, $super) { person = person === VOID ? this.zz8_1 : person; displayPhoneNum = displayPhoneNum === VOID ? this.az9_1 : displayPhoneNum; canSendSms = canSendSms === VOID ? this.bz9_1 : canSendSms; clazzes = clazzes === VOID ? this.cz9_1 : clazzes; hasChangePasswordPermission = hasChangePasswordPermission === VOID ? this.dz9_1 : hasChangePasswordPermission; showPermissionButton = showPermissionButton === VOID ? this.ez9_1 : showPermissionButton; isActiveUser = isActiveUser === VOID ? this.fz9_1 : isActiveUser; return $super === VOID ? this.aze(person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser) : $super.aze.call(this, person, displayPhoneNum, canSendSms, clazzes, hasChangePasswordPermission, showPermissionButton, isActiveUser); }; protoOf(PersonDetailUiState).toString = function () { return 'PersonDetailUiState(person=' + this.zz8_1 + ', displayPhoneNum=' + this.az9_1 + ', canSendSms=' + this.bz9_1 + ', clazzes=' + this.cz9_1 + ', hasChangePasswordPermission=' + this.dz9_1 + ', showPermissionButton=' + this.ez9_1 + ', isActiveUser=' + this.fz9_1 + ')'; }; protoOf(PersonDetailUiState).hashCode = function () { var result = this.zz8_1 == null ? 0 : this.zz8_1.hashCode(); result = imul(result, 31) + (this.az9_1 == null ? 0 : getStringHashCode(this.az9_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.bz9_1) | 0; result = imul(result, 31) + hashCode(this.cz9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.dz9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.ez9_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.fz9_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.zz8_1, tmp0_other_with_cast.zz8_1)) return false; if (!(this.az9_1 == tmp0_other_with_cast.az9_1)) return false; if (!(this.bz9_1 === tmp0_other_with_cast.bz9_1)) return false; if (!equals(this.cz9_1, tmp0_other_with_cast.cz9_1)) return false; if (!(this.dz9_1 === tmp0_other_with_cast.dz9_1)) return false; if (!(this.ez9_1 === tmp0_other_with_cast.ez9_1)) return false; if (!(this.fz9_1 === tmp0_other_with_cast.fz9_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.jze_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda).cz4 = function (it, $completion) { var tmp = this.env(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.cz4(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.kze_1.n7d(); var tmp_1; if (!_get_entityUid__ovkepw(this.jze_1).equals(new Long(0, 0))) { tmp_1 = this_0; } else { tmp_1 = null; } tmp_0.lze_1 = tmp_1; if (this.lze_1 == null) { this.mze_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; suspendResult = this.lze_1.ng2(_get_entityUid__ovkepw(this.jze_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.mze_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: return this.mze_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).env = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda(this.jze_1, completion); i.kze_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.cz4(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_1($savedStateHandle, resultContinuation) { this.vze_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_1).mz4 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_1).m78 = function ($completion) { return this.mz4($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.vze_1.ba('DateOfBirth'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_0.o96_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).l78 = function (completion) { return new PersonEditViewModel$slambda$slambda$slambda_1(this.vze_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.mz4($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.tzf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.azh(entityToDisplay); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda$slambda_3(this$0, resultContinuation) { this.jzh_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_3).lzh = function (it, $completion) { var tmp = this.env(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.lzh(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.kzh_1.f7e().kh0(_get_entityUid__ovkepw(this.jzh_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).env = function (it, completion) { var i = new PersonEditViewModel$slambda$slambda$slambda_3(this.jzh_1, completion); i.kzh_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.lzh(it, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda$slambda_5).uzh = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda$slambda$slambda_5).m78 = function ($completion) { return this.uzh($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).l78 = 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.uzh($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.tzf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel....' call var nextValue = prevValue.azh(VOID, VOID, VOID, personPicture); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda$slambda(this$0, $savedStateHandle, resultContinuation) { this.dzi_1 = this$0; this.ezi_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda).gzi = function ($this$async, $completion) { var tmp = this.v1m($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.gzi((!(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.n4r(); var tmp_1 = PersonEditViewModel$slambda$slambda$slambda_0(this.dzi_1, null); var tmp_2 = PersonEditViewModel$slambda$slambda$slambda_2(this.ezi_1, null); suspendResult = this.dzi_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, PersonEditViewModel$slambda$slambda$lambda(this.dzi_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).v1m = function ($this$async, completion) { var i = new PersonEditViewModel$slambda$slambda(this.dzi_1, this.ezi_1, completion); i.fzi_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.gzi($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$slambda$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.pzi_1 = this$0; this.qzi_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda$slambda_1).szi = function ($this$async, $completion) { var tmp = this.v1m($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.szi((!(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.n4r(); var tmp_1 = listOf_0('picState'); var tmp_2; if (!_get_entityUid__ovkepw(this.pzi_1).equals(new Long(0, 0))) { tmp_2 = PersonEditViewModel$slambda$slambda$slambda_4(this.pzi_1, null); } else { tmp_2 = null; } var tmp_3 = tmp_2; var tmp_4 = PersonEditViewModel$slambda$slambda$slambda_6(null); suspendResult = this.pzi_1.wqk(tmp_0, tmp_1, VOID, tmp_3, tmp_4, PersonEditViewModel$slambda$slambda$lambda_0(this.pzi_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = suspendResult; Companion_getInstance_121(); var tmp1_elvis_lhs = this_0 == null ? null : this_0.g97_1; setIfNoValueSetYet(this.qzi_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).v1m = function ($this$async, completion) { var i = new PersonEditViewModel$slambda$slambda_1(this.pzi_1, this.qzi_1, completion); i.rzi_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.szi($this$async, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function PersonEditViewModel$onClickSave$slambda$slambda(this$0, $savePerson, $consentToUpsert, resultContinuation) { this.bzj_1 = this$0; this.czj_1 = $savePerson; this.dzj_1 = $consentToUpsert; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda$slambda).kzj = function (it, $completion) { var tmp = this.env(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.kzj(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.bzj_1.uqp_1.equals(new Long(0, 0))) { this.hd_1 = 4; suspendResult = _get_addNewPersonUseCase__raa2qa(this.bzj_1).mpi(this.czj_1, this.bzj_1.eqk(), true, VOID, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 1; suspendResult = this.bzj_1.iqk().n7d().og2(this.czj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: this.gzj_1 = this.dzj_1; if (this.gzj_1 == null) { this.hzj_1 = null; this.hd_1 = 3; continue $sm; } else { var tmp_0 = this; tmp_0.izj_1 = this.gzj_1; var tmp_1 = this; tmp_1.jzj_1 = this.izj_1; this.hd_1 = 2; suspendResult = this.bzj_1.iqk().x7e().vgq(this.jzj_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.hzj_1 = this.izj_1; this.hd_1 = 3; continue $sm; case 3: this.fzj_1 = this.hzj_1; this.hd_1 = 5; continue $sm; case 4: this.fzj_1 = suspendResult; this.hd_1 = 5; continue $sm; case 5: return this.fzj_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).env = function (it, completion) { var i = new PersonEditViewModel$onClickSave$slambda$slambda(this.bzj_1, this.czj_1, this.dzj_1, completion); i.ezj_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.kzj(it, $completion); }; l.$arity = 1; return l; } function _get_apiUrlConfig__mldllg_4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.wzf_1; apiUrlConfig$factory_10(); return this_0.t2(); } function _get_entityUid__ovkepw($this) { Companion_getInstance_114(); var tmp0_safe_receiver = $this.mqj_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.zzf_1; phoneNumValidatorUseCase$factory_0(); return this_0.t2(); } function _get_genderConfig__kyr0zc_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.dzg_1; genderConfig$factory_2(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.ezg_1; enqueueSavePictureUseCase$factory_0(); return this_0.t2(); } function _get_addNewPersonUseCase__raa2qa($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.fzg_1; addNewPersonUseCase$factory_0(); return this_0.t2(); } function hasErrors_4(_this__u8e3s4, $this) { return ((((((((!(_this__u8e3s4.ozg_1 == null) ? true : !(_this__u8e3s4.qzg_1 == null)) ? true : !(_this__u8e3s4.szg_1 == null)) ? true : !(_this__u8e3s4.tzg_1 == null)) ? true : !(_this__u8e3s4.wzg_1 == null)) ? true : !(_this__u8e3s4.xzg_1 == null)) ? true : !(_this__u8e3s4.vzg_1 == null)) ? true : !(_this__u8e3s4.rzg_1 == null)) ? true : !(_this__u8e3s4.uzg_1 == null)) ? true : !(_this__u8e3s4.yzg_1 == null); } function Companion_184() { Companion_instance_233 = this; this.lzj_1 = 'picState'; this.mzj_1 = 'PersonEditView'; this.nzj_1 = 'Register'; this.ozj_1 = listOf(['PersonEditView', 'Register']); this.pzj_1 = 'RegMode'; this.qzj_1 = 'DateOfBirth'; this.rzj_1 = 'RegViaLink'; this.szj_1 = 0; this.tzj_1 = 1; this.uzj_1 = 2; var tmp = this; Companion_getInstance_114(); Companion_getInstance_114(); Companion_getInstance_123(); Companion_getInstance_123(); tmp.vzj_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'next', 'RegViaLink', 'DateOfBirth', 'RegMode', 'noSessionChange']); this.wzj_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.fzk_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.fzk_1.vzf_1 === 0) ? this.fzk_1.uqp_1.equals(new Long(0, 0)) : false) { this.hzk_1 = true; this.hd_1 = 4; continue $sm; } else { if (!this.fzk_1.uqp_1.equals(new Long(0, 0)) ? this.fzk_1.eqk().equals(this.fzk_1.uqp_1) : false) { this.hzk_1 = true; this.hd_1 = 4; continue $sm; } else { if (this.fzk_1.uqp_1.equals(new Long(0, 0))) { this.hd_1 = 2; var tmp_0 = this.gzk_1.p7f(); var tmp_1 = this.fzk_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.jhw(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.gzk_1.p7f(); var tmp_3 = this.fzk_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_2.jhw(tmp_3, new Long(32768, 0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } } } case 1: this.hzk_1 = suspendResult; this.hd_1 = 4; continue $sm; case 2: this.hzk_1 = suspendResult; this.hd_1 = 4; continue $sm; case 3: throw this.kd_1; case 4: return this.hzk_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).env = function (db, completion) { var i = new PersonEditViewModel$slambda(this.fzk_1, completion); i.gzk_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.vs5(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.tzf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel..' call var nextValue = prevValue.azh(VOID, VOID, VOID, VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function PersonEditViewModel$slambda_1(this$0, $savedStateHandle, resultContinuation) { this.qzk_1 = this$0; this.rzk_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.szk_1, VOID, VOID, PersonEditViewModel$slambda$slambda_0(this.qzk_1, this.rzk_1, null)); suspendResult = awaitAll([tmp_0, async(this.szk_1, VOID, VOID, PersonEditViewModel$slambda$slambda_2(this.qzk_1, this.rzk_1, null))], this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.qzk_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_1; if (hasFlag(this.qzk_1.vzf_1, 1)) { tmp_1 = this.qzk_1.mqk().eog(strings_getInstance().zmf_1); } else { tmp_1 = this.qzk_1.mqk().eog(strings_getInstance().tmy_1); } var tmp_2 = tmp_1; var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_2, VOID, PersonEditViewModel$onClickSave$ref(this.qzk_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_3; if (hasFlag(this.qzk_1.vzf_1, 2)) { tmp_3 = new PersonParentJoin(); } else { tmp_3 = null; } var personParentJoin = tmp_3; l$ret$3: do { var this_1 = this.qzk_1.tzf_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.azh(VOID, VOID, VOID, VOID, true, personParentJoin); if (this_1.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); this.qzk_1.oqk(Companion_getInstance_96().jq3_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).v1m = function ($this$launchIfHasPermission, completion) { var i = new PersonEditViewModel$slambda_1(this.qzk_1, this.rzk_1, completion); i.szk_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.u1m($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.g96_1; tmp.g96_1 = this$0.czg_1.wpa(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs, ''); return Unit_instance; }; } function PersonEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.bzl_1 = $commitDelay; this.czl_1 = $entity; this.dzl_1 = $this; this.ezl_1 = $key; this.fzl_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.bzl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.czl_1 == null)) { this.hd_1 = 2; suspendResult = this.dzl_1.sqk(this.dzl_1.mqj_1, this.ezl_1, this.fzl_1, this.czl_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).v1m = function ($this$launch, completion) { var i = new PersonEditViewModel$onEntityChanged$slambda(this.bzl_1, this.czl_1, this.dzl_1, this.ezl_1, this.fzl_1, completion); i.gzl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation) { this.pzl_1 = this$0; this.qzl_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onPersonPictureChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.pzl_1.sqk(this.pzl_1.mqj_1, 'picState', Companion_instance_7.n4r(), this.qzl_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).v1m = function ($this$launch, completion) { var i = new PersonEditViewModel$onPersonPictureChanged$slambda(this.pzl_1, this.qzl_1, completion); i.rzl_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonEditViewModel$onClickSave$lambda($this$shallowCopy) { var tmp = $this$shallowCopy; var tmp0_safe_receiver = $this$shallowCopy.k96_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.k96_1 = tmp1_safe_receiver == null ? null : replace(tmp1_safe_receiver, ' ', ''); var tmp_1 = $this$shallowCopy; var tmp2_safe_receiver = $this$shallowCopy.j96_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.j96_1 = tmp_2; return Unit_instance; } function PersonEditViewModel$onClickSave$slambda($isRegistrationMode, this$0, $savePerson, $requiredFieldMessage, resultContinuation) { this.azm_1 = $isRegistrationMode; this.bzm_1 = this$0; this.czm_1 = $savePerson; this.dzm_1 = $requiredFieldMessage; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.azm_1) { this.fzm_1 = this.bzm_1.tzf_1.t2().mzg_1; this.gzm_1 = this.bzm_1.tzf_1.t2().izg_1; var tmp_0 = this; var tmp$ret$0; l$ret$1: do { var this_0 = this.bzm_1.tzf_1; while (true) { var prevValue = this_0.t2(); var tmp_1; var this_1 = this.czm_1.g96_1; if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_1 = this.dzm_1; } else { tmp_1 = null; } var tmp3_usernameError = tmp_1; var tmp_2; var this_2 = this.gzm_1; if (this_2 == null ? true : charSequenceLength(this_2) === 0) { tmp_2 = this.dzm_1; } else { tmp_2 = null; } var tmp4_passwordError = tmp_2; var tmp_3; if (!hasFlag(this.bzm_1.vzf_1, 2)) { tmp_3 = null; } else { var tmp0_safe_receiver = this.fzm_1; var this_3 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ig6_1; if (this_3 == null ? true : charSequenceLength(this_3) === 0) { tmp_3 = this.dzm_1; } else { var tmp1_safe_receiver = this.fzm_1; var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ig6_1; var tmp_4; if (tmp2_safe_receiver == null) { tmp_4 = null; } else { tmp_4 = this.bzm_1.azg_1.loe(tmp2_safe_receiver); } if (tmp_4 == null) { tmp_3 = this.bzm_1.mqk().eog(strings_getInstance().en6_1); } else { tmp_3 = null; } } } var tmp5_parentContactError = tmp_3; var tmp_5; if (this.czm_1.o96_1.equals(new Long(0, 0))) { tmp_5 = this.dzm_1; } else { tmp_5 = null; } var tmp6_dateOfBirthError = tmp_5; var nextValue = prevValue.azh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_usernameError, VOID, tmp4_passwordError, VOID, VOID, tmp6_dateOfBirthError, tmp5_parentContactError); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$0 = nextValue; break l$ret$1; } } } while (false); tmp_0.hzm_1 = tmp$ret$0; if (hasErrors_4(this.hzm_1, this.bzm_1) ? true : this.gzm_1 == null) { this.bzm_1.oqk(Companion_getInstance_96().jq3_1); l$ret$3: do { var this_4 = this.bzm_1.tzf_1; while (true) { var prevValue_0 = this_4.t2(); var nextValue_0 = prevValue_0.azh(VOID, VOID, VOID, VOID, true); if (this_4.y1k(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.bzm_1.uqp_1.equals(new Long(0, 0)) ? isDateOfBirthAMinor(Companion_getInstance_6().rmc(this.czm_1.o96_1)) : false) { var tmp_7 = Companion_getInstance_6(); var tmp0_safe_receiver_0 = this.bzm_1.mqj_1.ba('initDob'); var tmp1_elvis_lhs = tmp0_safe_receiver_0 == null ? null : toLong_0(tmp0_safe_receiver_0); tmp_6 = !isDateOfBirthAMinor(tmp_7.rmc(tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs)); } else { tmp_6 = false; } if (tmp_6) { this.hd_1 = 1; suspendResult = this.bzm_1.iqk().x7e().ygq(this.czm_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.kzm_1 = false; this.hd_1 = 2; continue $sm; } } case 1: this.lzm_1 = suspendResult; this.kzm_1 = !this.lzm_1; this.hd_1 = 2; continue $sm; case 2: if (this.kzm_1) { var tmp_8 = this; var this_5 = new PersonParentJoin(); this_5.gg6_1 = this.czm_1.f96_1; this_5.fg6_1 = this.bzm_1.cqk().ao7().hku_1; var tmp_9 = this_5; tmp_9.lg6_1 = 1; this_5.mg6_1 = systemTimeInMillis(); tmp_8.jzm_1 = this_5; this.hd_1 = 3; continue $sm; } else { var tmp_10 = this; tmp_10.jzm_1 = null; this.hd_1 = 3; continue $sm; } case 3: this.mzm_1 = this.jzm_1; this.hd_1 = 4; var tmp_11 = this.bzm_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_11, VOID, PersonEditViewModel$onClickSave$slambda$slambda_0(this.bzm_1, this.czm_1, this.mzm_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.nzm_1 = this.bzm_1.tzf_1.t2().kzg_1; if (!(this.nzm_1 == null)) { this.nzm_1.e97_1 = this.czm_1.f96_1; this.nzm_1.f97_1 = systemTimeInMillis(); var tmp_12 = this; Companion_getInstance_121(); var tmp2_elvis_lhs = this.bzm_1.mqj_1.ba('initPicUri'); tmp_12.ozm_1 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; this.pzm_1 = this.nzm_1.g97_1; if (!(this.ozm_1 === this.pzm_1)) { this.hd_1 = 5; suspendResult = this.bzm_1.gqk().f7e().jh0(this.nzm_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.bzm_1); var tmp_14 = this.czm_1.f96_1; suspendResult = tmp_13.poo(tmp_14, 50, this.pzm_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.qzm_1 = this.bzm_1.mqj_1.ba('goToOnPersonSelected'); if (!(this.qzm_1 == null)) { var tmp_16 = UMFileUtil_getInstance().parseURLQueryString(this.qzm_1); Companion_getInstance_114(); var args = plus_0(tmp_16, mapOf_0(to('personUid', this.czm_1.f96_1.toString()))); this.bzm_1.oqj_1.fp3(substringBefore_0(this.qzm_1, '?'), args); } else { this.bzm_1.wqp('PersonDetailView', this.czm_1.f96_1, this.czm_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.bzm_1.cqk().ho7(this.czm_1, this.gzm_1, this.bzm_1.xzf_1, new AccountRegisterOptions(!hasFlag(this.bzm_1.vzf_1, 2) ? !this.bzm_1.gzg_1 : false, this.fzm_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.bzm_1.vzf_1, 2)) { var goOptions = new UstadGoOptions('RegisterAgeRedirect', true); var this_6 = LinkedHashMap_init_$Create$(); var key = 'username'; var tmp0_elvis_lhs = this.czm_1.g96_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.fzm_1; var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.ig6_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.bzm_1.tzf_1.t2().izg_1; var value_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs; this_6.s(key_1, value_1); Companion_getInstance_114(); putFromSavedStateIfPresent(this_6, this.bzm_1.mqj_1, 'popUpToOnFinish'); var args_0 = this_6; this.bzm_1.oqj_1.bq6('WaitForParent', args_0, goOptions); tmp_18 = Unit_instance; } else { this.bzm_1.yqq(this.bzm_1.oqj_1, appendSelectedAccount(this.bzm_1.yzf_1, registeredPerson.f96_1, new LearningSpace(this.bzm_1.xzf_1)), new UstadGoOptions(VOID, VOID, true)); tmp_18 = Unit_instance; } tmp_17.izm_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.bzm_1.tzf_1; while (true) { var prevValue_1 = this_7.t2(); var nextValue_1 = prevValue_1.azh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.bzm_1.mqk().eog(strings_getInstance().kn3_1)); if (this_7.y1k(prevValue_1, nextValue_1)) { break l$ret$7; } } } while (false); } else { this.bzm_1.kqk().qq3(new Snack(this.bzm_1.mqk().eog(strings_getInstance().mme_1))); } this.rzm_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.bzm_1.oqk(Companion_getInstance_96().jq3_1); l$ret$11: do { var this_8 = this.bzm_1.tzf_1; while (true) { var prevValue_2 = this_8.t2(); var nextValue_2 = prevValue_2.azh(VOID, VOID, VOID, VOID, true); if (this_8.y1k(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.bzm_1.oqk(Companion_getInstance_96().jq3_1); l$ret$13: do { var this_9 = this.bzm_1.tzf_1; while (true) { var prevValue_3 = this_9.t2(); var nextValue_3 = prevValue_3.azh(VOID, VOID, VOID, VOID, true); if (this_9.y1k(prevValue_3, nextValue_3)) { break l$ret$13; } } } while (false); return Unit_instance; case 16: this.id_1 = 14; this.bzm_1.oqk(Companion_getInstance_96().jq3_1); l$ret$15: do { var this_10 = this.bzm_1.tzf_1; while (true) { var prevValue_4 = this_10.t2(); var nextValue_4 = prevValue_4.azh(VOID, VOID, VOID, VOID, true); if (this_10.y1k(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).v1m = function ($this$launch, completion) { var i = new PersonEditViewModel$onClickSave$slambda(this.azm_1, this.bzm_1, this.czm_1, this.dzm_1, completion); i.ezm_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.u1m($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.tzf_1 = MutableStateFlow(new PersonEditUiState()); this.uzf_1 = asStateFlow(this.tzf_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.vzf_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.wzf_1 = Instance(this, tmp$ret$0, null).a5d(this, apiUrlConfig$factory_9()); var tmp_2 = this; Companion_getInstance_114(); var tmp0_elvis_lhs = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs_0 = tmp0_elvis_lhs == null ? _get_apiUrlConfig__mldllg_4(this).wo6_1 : tmp0_elvis_lhs; tmp_2.xzf_1 = tmp1_elvis_lhs_0 == null ? 'http://localhost' : tmp1_elvis_lhs_0; var tmp_3 = this; Companion_getInstance_114(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('next'); tmp_3.yzf_1 = tmp0_elvis_lhs_0 == null ? this.mqk().vq1() : 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.zzf_1 = Instance(this, tmp$ret$2, null).a5d(this, phoneNumValidatorUseCase$factory()); this.azg_1 = new ValidateEmailUseCase(); this.bzg_1 = new ValidateUsernameUseCase_0(); this.czg_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.dzg_1 = Instance(this, tmp$ret$4, null).a5d(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.cqk().co7(); var trigger = this.d57(); // 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.h57(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.ezg_1 = Instance(this_0, tmp$ret$9, null).a5d(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.fzg_1 = Instance(this_1, tmp$ret$11, null).a5d(this, addNewPersonUseCase$factory()); var tmp_14 = this; Companion_getInstance_123(); 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.gzg_1 = tmp1_elvis_lhs_1 == null ? false : tmp1_elvis_lhs_1; this.oqk(Companion_getInstance_96().iq3_1); var tmp_15; if (hasFlag(this.vzf_1, 1)) { tmp_15 = this.mqk().eog(strings_getInstance().zng_1); } else { tmp_15 = _get_entityUid__ovkepw(this).equals(new Long(0, 0)) ? this.mqk().eog(strings_getInstance().fmx_1) : this.mqk().eog(strings_getInstance().gmx_1); } var title = tmp_15; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.qqj_1; while (true) { var prevValue = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var tmp0_navigationVisible = !hasFlag(this.vzf_1, 1); var nextValue = new AppUiState(VOID, VOID, title, tmp0_navigationVisible, true); if (this_2.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.tzf_1; while (true) { var prevValue_0 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.' call var nextValue_0 = prevValue_0.azh(VOID, VOID, _get_genderConfig__kyr0zc_0(this).aq4_1, VOID, VOID, VOID, this.vzf_1); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_16 = PersonEditViewModel$slambda_0(this, null); var tmp_17 = PersonEditViewModel$lambda(this); this.xqk(tmp_16, true, tmp_17, PersonEditViewModel$slambda_2(this, savedStateHandle, null)); } protoOf(PersonEditViewModel).wz6 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tzf_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.g96_1; var tmp1_safe_receiver = this.tzf_1.t2().hzg_1; if (!(tmp_0 == (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g96_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.hzg_1; var tmp_2 = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.l96_1; var tmp16_genderError = this.xqq(tmp_2, entity == null ? null : entity.l96_1, prevValue.vzg_1); var tmp9_safe_receiver = prevValue.hzg_1; var tmp_3 = tmp9_safe_receiver == null ? null : tmp9_safe_receiver.h96_1; var tmp17_firstNameError = this.xqq(tmp_3, entity == null ? null : entity.h96_1, prevValue.wzg_1); var tmp11_safe_receiver = prevValue.hzg_1; var tmp_4 = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.i96_1; var tmp18_lastNameError = this.xqq(tmp_4, entity == null ? null : entity.i96_1, prevValue.xzg_1); var tmp13_safe_receiver = prevValue.hzg_1; var tmp_5 = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.k96_1; var tmp19_phoneNumError = this.xqq(tmp_5, entity == null ? null : entity.k96_1, prevValue.yzg_1); var tmp5_safe_receiver = prevValue.hzg_1; var tmp_6 = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.j96_1; var tmp20_emailError = this.xqq(tmp_6, entity == null ? null : entity.j96_1, prevValue.rzg_1); var tmp3_safe_receiver = prevValue.hzg_1; var tmp_7 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g96_1; var tmp21_usernameError = this.xqq(tmp_7, entity == null ? null : entity.g96_1, prevValue.ozg_1); var nextValue = prevValue.azh(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.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver = this.tqp_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp_8 = this; var tmp_9 = this.dqk(); tmp_8.tqp_1 = launch(tmp_9, VOID, VOID, PersonEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(PersonEditViewModel).szm = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tzf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPasswordChanged.' call var nextValue = prevValue.azh(VOID, password, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).tzm = 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.tzf_1.t2().kzg_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e97_1; tmp.e97_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.g97_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tzf_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onPersonPictureChanged.' call var nextValue = prevValue.azh(VOID, VOID, VOID, personPicture); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, PersonEditViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(PersonEditViewModel).uzm = function (personParentJoin) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tzf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onApprovalPersonParentJoinChanged.' call var nextValue = prevValue.azh(VOID, VOID, VOID, VOID, VOID, personParentJoin); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(PersonEditViewModel).vzm = function (phoneNumSet) { // Inline function 'kotlin.takeIf' call var this_0 = this.tzf_1; // Inline function 'kotlin.contracts.contract' call var tmp; // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onNationalPhoneNumSetChanged.' call if (!(this_0.t2().zzg_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.azh(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, phoneNumSet); if (tmp0_safe_receiver.y1k(prevValue, nextValue)) { break $l$block; } } } } }; protoOf(PersonEditViewModel).js3 = function () { if (!this.tzf_1.t2().lzg_1) return Unit_instance; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tzf_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.edit.PersonEditViewModel.onClickSave.' call var nextValue = prevValue.azh(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.oqk(Companion_getInstance_96().iq3_1); $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.tzf_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.azh(VOID, VOID, VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp0_safe_receiver = this.tzf_1.t2().hzg_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.mqk().eog(strings_getInstance().hmj_1); var currentTime = systemTimeInMillis(); var isRegistrationMode = hasFlag(this.vzf_1, 1); var tmp2_safe_receiver = savePerson.j96_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.azg_1.loe(tmp2_safe_receiver); } var validatedEmailAddr = tmp_1; var tmp_2; if (isRegistrationMode) { var tmp3_elvis_lhs = savePerson.g96_1; tmp_2 = this.bzg_1.loe(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.tzf_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.jpl_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.mqk().eog(strings_getInstance().wml_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.g96_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.mqk().eog(strings_getInstance().hmj_1); } else { tmp_5 = null; } var tmp4_passwordError = tmp_5; var tmp_7; if (savePerson.o96_1.c7(currentTime) > 0) { tmp_7 = this.mqk().eog(strings_getInstance().wml_1); } else if (isRegistrationMode ? !isDateSet(savePerson.o96_1) : false) { tmp_7 = this.mqk().eog(strings_getInstance().hmj_1); } else { tmp_7 = null; } var tmp5_dateOfBirthError = tmp_7; var tmp_8; // Inline function 'kotlin.text.isNullOrEmpty' call var this_4 = savePerson.h96_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.i96_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.l96_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.tzf_1.t2().zzg_1) { var tmp2_safe_receiver_0 = savePerson.k96_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).lpd(tmp2_safe_receiver_0); } tmp_13 = !(tmp_14 === true); } else { tmp_13 = false; } if (tmp_13) { tmp_12 = this.mqk().eog(strings_getInstance().wml_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.j96_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.mqk().eog(strings_getInstance().wml_1); } else { tmp_15 = null; } var tmp10_emailError = tmp_15; var nextValue_1 = prevValue_1.azh(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.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } if (hasErrors_4(this.tzf_1.t2(), this)) { this.oqk(Companion_getInstance_96().jq3_1); $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_7 = this.tzf_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.azh(VOID, VOID, VOID, VOID, true); if (this_7.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } return Unit_instance; } var tmp_17 = this.dqk(); 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().cq4_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.hzg_1 = person; this.izg_1 = password; this.jzg_1 = genderOptions; this.kzg_1 = personPicture; this.lzg_1 = fieldsEnabled; this.mzg_1 = approvalPersonParentJoin; this.nzg_1 = registrationMode; this.ozg_1 = usernameError; this.pzg_1 = passwordConfirmedError; this.qzg_1 = passwordError; this.rzg_1 = emailError; this.szg_1 = confirmError; this.tzg_1 = dateOfBirthError; this.uzg_1 = parentContactError; this.vzg_1 = genderError; this.wzg_1 = firstNameError; this.xzg_1 = lastNameError; this.yzg_1 = phoneNumError; this.zzg_1 = nationalPhoneNumSet; } protoOf(PersonEditUiState).wzm = function () { return !(this.mzg_1 == null); }; protoOf(PersonEditUiState).pzd = function () { return !hasFlag(this.nzg_1, 1); }; protoOf(PersonEditUiState).fys = function () { return hasFlag(this.nzg_1, 1); }; protoOf(PersonEditUiState).xzm = function () { return hasFlag(this.nzg_1, 1); }; protoOf(PersonEditUiState).vzd = function () { return !hasFlag(this.nzg_1, 2); }; protoOf(PersonEditUiState).uzd = function () { return !hasFlag(this.nzg_1, 2); }; protoOf(PersonEditUiState).tzd = function () { return !hasFlag(this.nzg_1, 2); }; protoOf(PersonEditUiState).yzm = 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).azh = 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.hzg_1 : person; password = password === VOID ? this.izg_1 : password; genderOptions = genderOptions === VOID ? this.jzg_1 : genderOptions; personPicture = personPicture === VOID ? this.kzg_1 : personPicture; fieldsEnabled = fieldsEnabled === VOID ? this.lzg_1 : fieldsEnabled; approvalPersonParentJoin = approvalPersonParentJoin === VOID ? this.mzg_1 : approvalPersonParentJoin; registrationMode = registrationMode === VOID ? this.nzg_1 : registrationMode; usernameError = usernameError === VOID ? this.ozg_1 : usernameError; passwordConfirmedError = passwordConfirmedError === VOID ? this.pzg_1 : passwordConfirmedError; passwordError = passwordError === VOID ? this.qzg_1 : passwordError; emailError = emailError === VOID ? this.rzg_1 : emailError; confirmError = confirmError === VOID ? this.szg_1 : confirmError; dateOfBirthError = dateOfBirthError === VOID ? this.tzg_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.uzg_1 : parentContactError; genderError = genderError === VOID ? this.vzg_1 : genderError; firstNameError = firstNameError === VOID ? this.wzg_1 : firstNameError; lastNameError = lastNameError === VOID ? this.xzg_1 : lastNameError; phoneNumError = phoneNumError === VOID ? this.yzg_1 : phoneNumError; nationalPhoneNumSet = nationalPhoneNumSet === VOID ? this.zzg_1 : nationalPhoneNumSet; return $super === VOID ? this.yzm(person, password, genderOptions, personPicture, fieldsEnabled, approvalPersonParentJoin, registrationMode, usernameError, passwordConfirmedError, passwordError, emailError, confirmError, dateOfBirthError, parentContactError, genderError, firstNameError, lastNameError, phoneNumError, nationalPhoneNumSet) : $super.yzm.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.hzg_1 + ', password=' + this.izg_1 + ', genderOptions=' + this.jzg_1 + ', personPicture=' + this.kzg_1 + ', fieldsEnabled=' + this.lzg_1 + ', approvalPersonParentJoin=' + this.mzg_1 + ', registrationMode=' + this.nzg_1 + ', usernameError=' + this.ozg_1 + ', passwordConfirmedError=' + this.pzg_1 + ', passwordError=' + this.qzg_1 + ', emailError=' + this.rzg_1 + ', confirmError=' + this.szg_1 + ', dateOfBirthError=' + this.tzg_1 + ', parentContactError=' + this.uzg_1 + ', genderError=' + this.vzg_1 + ', firstNameError=' + this.wzg_1 + ', lastNameError=' + this.xzg_1 + ', phoneNumError=' + this.yzg_1 + ', nationalPhoneNumSet=' + this.zzg_1 + ')'; }; protoOf(PersonEditUiState).hashCode = function () { var result = this.hzg_1 == null ? 0 : this.hzg_1.hashCode(); result = imul(result, 31) + (this.izg_1 == null ? 0 : getStringHashCode(this.izg_1)) | 0; result = imul(result, 31) + hashCode(this.jzg_1) | 0; result = imul(result, 31) + (this.kzg_1 == null ? 0 : this.kzg_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.lzg_1) | 0; result = imul(result, 31) + (this.mzg_1 == null ? 0 : this.mzg_1.hashCode()) | 0; result = imul(result, 31) + this.nzg_1 | 0; result = imul(result, 31) + (this.ozg_1 == null ? 0 : getStringHashCode(this.ozg_1)) | 0; result = imul(result, 31) + (this.pzg_1 == null ? 0 : getStringHashCode(this.pzg_1)) | 0; result = imul(result, 31) + (this.qzg_1 == null ? 0 : getStringHashCode(this.qzg_1)) | 0; result = imul(result, 31) + (this.rzg_1 == null ? 0 : getStringHashCode(this.rzg_1)) | 0; result = imul(result, 31) + (this.szg_1 == null ? 0 : getStringHashCode(this.szg_1)) | 0; result = imul(result, 31) + (this.tzg_1 == null ? 0 : getStringHashCode(this.tzg_1)) | 0; result = imul(result, 31) + (this.uzg_1 == null ? 0 : getStringHashCode(this.uzg_1)) | 0; result = imul(result, 31) + (this.vzg_1 == null ? 0 : getStringHashCode(this.vzg_1)) | 0; result = imul(result, 31) + (this.wzg_1 == null ? 0 : getStringHashCode(this.wzg_1)) | 0; result = imul(result, 31) + (this.xzg_1 == null ? 0 : getStringHashCode(this.xzg_1)) | 0; result = imul(result, 31) + (this.yzg_1 == null ? 0 : getStringHashCode(this.yzg_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.zzg_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.hzg_1, tmp0_other_with_cast.hzg_1)) return false; if (!(this.izg_1 == tmp0_other_with_cast.izg_1)) return false; if (!equals(this.jzg_1, tmp0_other_with_cast.jzg_1)) return false; if (!equals(this.kzg_1, tmp0_other_with_cast.kzg_1)) return false; if (!(this.lzg_1 === tmp0_other_with_cast.lzg_1)) return false; if (!equals(this.mzg_1, tmp0_other_with_cast.mzg_1)) return false; if (!(this.nzg_1 === tmp0_other_with_cast.nzg_1)) return false; if (!(this.ozg_1 == tmp0_other_with_cast.ozg_1)) return false; if (!(this.pzg_1 == tmp0_other_with_cast.pzg_1)) return false; if (!(this.qzg_1 == tmp0_other_with_cast.qzg_1)) return false; if (!(this.rzg_1 == tmp0_other_with_cast.rzg_1)) return false; if (!(this.szg_1 == tmp0_other_with_cast.szg_1)) return false; if (!(this.tzg_1 == tmp0_other_with_cast.tzg_1)) return false; if (!(this.uzg_1 == tmp0_other_with_cast.uzg_1)) return false; if (!(this.vzg_1 == tmp0_other_with_cast.vzg_1)) return false; if (!(this.wzg_1 == tmp0_other_with_cast.wzg_1)) return false; if (!(this.xzg_1 == tmp0_other_with_cast.xzg_1)) return false; if (!(this.yzg_1 == tmp0_other_with_cast.yzg_1)) return false; if (!(this.zzg_1 === tmp0_other_with_cast.zzg_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.hzn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda$slambda).jzn = function (learningSpaceList, $completion) { var tmp = this.kzn(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.jzn((!(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.hzn_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.nzn(VOID, this.izn_1); if (this_0.y1k(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).kzn = function (learningSpaceList, completion) { var i = new LearningSpaceListViewModel$slambda$slambda$slambda(this.hzn_1, completion); i.izn_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.jzn(learningSpaceList, $completion); }; l.$arity = 1; return l; } function LearningSpaceListViewModel$slambda$slambda(this$0, resultContinuation) { this.wzn_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LearningSpaceListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.wzn_1.zzo_1.kkz(); var tmp_1 = LearningSpaceListViewModel$slambda$slambda$slambda_0(this.wzn_1, null); suspendResult = tmp_0.a1c(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).l78 = function (completion) { return new LearningSpaceListViewModel$slambda$slambda(this.wzn_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.j87($completion); }; l.$arity = 0; return l; } function _get_impl__d88w17_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.xzo_1; impl$factory_4(); return this_0.t2(); } function _get_goToLearningSpaceUseCase__yq7hh5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.yzo_1; goToLearningSpaceUseCase$factory_0(); return this_0.t2(); } function Companion_185() { this.azp_1 = 'LearningSpaceList'; this.bzp_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.czp_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_35).t1d = function (value, $completion) { return this.czp_1(value, $completion); }; function LearningSpaceListViewModel$slambda(this$0, resultContinuation) { this.lzp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LearningSpaceListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.lzp_1.hqs_1, LearningSpaceListViewModel$slambda$slambda_0(this.lzp_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).v1m = function ($this$launch, completion) { var i = new LearningSpaceListViewModel$slambda(this.lzp_1, completion); i.mzp_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.u1m($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.xzo_1 = Instance(this, tmp$ret$0, null).a5d(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.yzo_1 = Instance(this, tmp$ret$2, null).a5d(this, goToLearningSpaceUseCase$factory()); var tmp_3 = this; // Inline function 'org.kodein.di.instance' call var tmp_4 = get_direct(di).f58(); // 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.zzo_1 = tmp_4.d58(tmp$ret$4, null).hky(); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_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).eog(strings_getInstance().vnl_1); var nextValue = prevValue.bq3(VOID, VOID, tmp0_title, false, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.hqs_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.bzp_1); var nextValue_0 = prevValue_0.nzn(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_6 = this.dqk(); launch(tmp_6, VOID, VOID, LearningSpaceListViewModel$slambda_0(this, null)); } protoOf(LearningSpaceListViewModel).awe = function () { Companion_getInstance_216(); // 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_123(); this.zqk(this_0, 'next'); this.aql(this_0, Companion_getInstance_211().qr3_1); var tmp$ret$2 = this_0.f3(); this.oqj_1.fp3('LearningSpaceEnterLink', tmp$ret$2); }; protoOf(LearningSpaceListViewModel).nzp = function (learningSpace) { var tmp; Companion_getInstance_211(); var tmp_0 = this.mqj_1.ba('newOrExisting'); Companion_getInstance_211(); 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_123(); this.zqk(this_0, 'next'); this.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_114(); this_0.s('learningSpaceUrl', learningSpace); var args = this_0.f3(); _get_goToLearningSpaceUseCase__yq7hh5(this).spf(learningSpace, this.oqj_1, args, viewName); }; protoOf(LearningSpaceListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(LearningSpaceListViewModel).cqt = function () { }; function LearningSpaceListUiState(siteLink, learningSpaces) { siteLink = siteLink === VOID ? '' : siteLink; learningSpaces = learningSpaces === VOID ? emptyList() : learningSpaces; this.lzn_1 = siteLink; this.mzn_1 = learningSpaces; } protoOf(LearningSpaceListUiState).ozp = function (siteLink, learningSpaces) { return new LearningSpaceListUiState(siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).nzn = function (siteLink, learningSpaces, $super) { siteLink = siteLink === VOID ? this.lzn_1 : siteLink; learningSpaces = learningSpaces === VOID ? this.mzn_1 : learningSpaces; return $super === VOID ? this.ozp(siteLink, learningSpaces) : $super.ozp.call(this, siteLink, learningSpaces); }; protoOf(LearningSpaceListUiState).toString = function () { return 'LearningSpaceListUiState(siteLink=' + this.lzn_1 + ', learningSpaces=' + this.mzn_1 + ')'; }; protoOf(LearningSpaceListUiState).hashCode = function () { var result = getStringHashCode(this.lzn_1); result = imul(result, 31) + hashCode(this.mzn_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.lzn_1 === tmp0_other_with_cast.lzn_1)) return false; if (!equals(this.mzn_1, tmp0_other_with_cast.mzn_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).p54 = 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.yzp_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda$slambda).yqb = function (hasPermissionToList, $completion) { var tmp = this.zqb(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.yqb((!(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.yzp_1.hqs_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.zzp_1) { tmp_0 = this.yzp_1.ezr_1; } else { tmp_0 = PersonListViewModel$slambda$slambda$slambda$lambda; } var tmp0_personList = tmp_0; var tmp1_showInviteViaLink = !(this.yzp_1.fzr_1 == null); var tmp2_inviteCode = this.yzp_1.fzr_1; var tmp3_showInviteViaContact = this.yzp_1.gzr_1; var nextValue = prevValue.szr(tmp0_personList, VOID, VOID, VOID, tmp1_showInviteViaLink, tmp3_showInviteViaContact, tmp2_inviteCode, this.zzp_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.yzp_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, prevValue_0.tq2_1.lq2(this.zzp_1)); if (this_1.y1k(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).zqb = function (hasPermissionToList, completion) { var i = new PersonListViewModel$slambda$slambda$slambda(this.yzp_1, completion); i.zzp_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.yqb(hasPermissionToList, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda$slambda($hasPermissionToListFlow, this$0, resultContinuation) { this.bzs_1 = $hasPermissionToListFlow; this.czs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.bzs_1); var tmp_1 = PersonListViewModel$slambda$slambda$slambda_0(this.czs_1, null); suspendResult = tmp_0.a1c(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).l78 = function (completion) { return new PersonListViewModel$slambda$slambda(this.bzs_1, this.czs_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.j87($completion); }; l.$arity = 0; return l; } function PersonListViewModel$slambda$slambda_1(this$0, resultContinuation) { this.lzs_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda$slambda_1).yt0 = function (it, $completion) { var tmp = this.zt0(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.yt0(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.mzs_1; var hasAddPermission = tmp0_container.y6(); var hasViewAllPermission = tmp0_container.z6(); var hasBulkAddPermission = hasAddPermission ? hasViewAllPermission : false; l$ret$1: do { var this_0 = this.lzs_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.szr(VOID, VOID, VOID, this.lzs_1.mqs().equals(ListViewMode_PICKER_getInstance()) ? hasAddPermission : false, VOID, VOID, VOID, VOID, VOID, hasBulkAddPermission); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.lzs_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(prevValue_0.mq2_1.hq3(this.lzs_1.mqs().equals(ListViewMode_BROWSER_getInstance()) ? hasAddPermission : false)); if (this_1.y1k(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).zt0 = function (it, completion) { var i = new PersonListViewModel$slambda$slambda_1(this.lzs_1, completion); i.mzs_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.yt0(it, $completion); }; l.$arity = 1; return l; } function _get_setClipboardStringUseCase__31i1s1_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.hzr_1; setClipboardStringUseCase$factory_4(); return this_0.t2(); } function onClickFab($this) { if ($this.hqs_1.t2().rzr_1) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = $this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onClickFab.' call var nextValue = prevValue.szr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } else { $this.cqt(); } } function Companion_186() { Companion_instance_235 = this; this.nzs_1 = 'People'; this.ozs_1 = 'PersonListHome'; this.pzs_1 = listOf(['People', 'PersonListHome']); this.qzs_1 = 'exlcudeFromClazz'; this.rzs_1 = 'excludeAlreadySelectedList'; this.szs_1 = 'showAddViaInviteLink'; this.tzs_1 = 'showAddViaContact'; this.uzs_1 = 'role'; this.vzs_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.wzs_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_36).t1d = function (value, $completion) { return this.wzs_1(value, $completion); }; function PersonListViewModel$pagingSourceFactory$lambda(this$0) { return function () { return this$0.iqk().n7d().pg2(getSystemTimeInMillis(), this$0.azr_1, this$0.czr_1, this$0.eqk(), this$0.hqs_1.t2().kzr_1.gq9_1, toQueryLikeParam(this$0.qqj_1.t2().tq2_1.iq2_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.fzt_1 = this$0; this.gzt_1 = $hasPermissionToListFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(PersonListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.fzt_1.hqs_1, PersonListViewModel$slambda$slambda_0(this.gzt_1, this.fzt_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).v1m = function ($this$launch, completion) { var i = new PersonListViewModel$slambda(this.fzt_1, this.gzt_1, completion); i.hzt_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function PersonListViewModel$slambda_1(this$0, resultContinuation) { this.qzt_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonListViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.qzt_1.iqk().p7f(); var tmp_1 = this.qzt_1.eqk(); PermissionFlags_getInstance(); var tmp_2 = new Long(1024, 0); PermissionFlags_getInstance(); var tmp_3 = tmp_0.lhw(tmp_1, tmp_2, new Long(8192, 0)); var tmp_4 = PersonListViewModel$slambda$slambda_2(this.qzt_1, null); suspendResult = tmp_3.a1c(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).v1m = function ($this$launch, completion) { var i = new PersonListViewModel$slambda_1(this.qzt_1, completion); i.rzt_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.u1m($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.azr_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.bzr_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.czr_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.dzr_1 = tmp1_elvis_lhs_1 == null ? new Long(0, 0) : tmp1_elvis_lhs_1; var tmp_6 = this; tmp_6.ezr_1 = PersonListViewModel$pagingSourceFactory$lambda(this); this.fzr_1 = savedStateHandle.ba('showAddViaInviteLink'); this.gzr_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.hzr_1 = Instance(this, tmp$ret$9, null).a5d(this, setClipboardStringUseCase$factory_3()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.' call var tmp1_searchState = this.pqt(false); Companion_getInstance_123(); var tmp0_elvis_lhs = savedStateHandle.ba('t'); var tmp2_title = tmp0_elvis_lhs == null ? this.yqt(strings_getInstance().hmq_1, strings_getInstance().cnh_1) : tmp0_elvis_lhs; var tmp_9 = this.mqk().eog(strings_getInstance().emx_1); var tmp_10 = FabIcon_ADD_getInstance(); var tmp3_fabState = new FabUiState(VOID, tmp_9, tmp_10, PersonListViewModel$onClickFab$ref(this)); var nextValue = prevValue.bq3(tmp3_fabState, VOID, tmp2_title, true, VOID, VOID, VOID, tmp1_searchState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_11; if (this.dzr_1.equals(new Long(0, 0))) { tmp_11 = flowOf(true); } else { tmp_11 = this.iqk().p7f().khw(this.eqk(), this.dzr_1); } var hasPermissionToListFlow = tmp_11; var tmp_12 = this.dqk(); launch(tmp_12, VOID, VOID, PersonListViewModel$slambda_0(this, hasPermissionToListFlow, null)); var tmp_13 = this.dqk(); launch(tmp_13, VOID, VOID, PersonListViewModel$slambda_2(this, null)); } protoOf(PersonListViewModel).bqt = function (searchText) { this.jqs_1.i1h(new RefreshCommand()); }; protoOf(PersonListViewModel).zss = function (sortOption) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onSortOrderChanged.' call var nextValue = prevValue.szr(VOID, VOID, sortOption); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.jqs_1.i1h(new RefreshCommand()); }; protoOf(PersonListViewModel).szt = function () { if (this.fzr_1 == null) return Unit_instance; Companion_getInstance_123(); this.oqj_1.fp3('InviteWithLink', mapOf_0(to('inviteCode', this.fzr_1))); }; protoOf(PersonListViewModel).tzt = function () { var tmp0_safe_receiver = this.hqs_1.t2().ozr_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).koy(tmp0_safe_receiver); this.kqk().qq3(new Snack(this.mqk().eog(strings_getInstance().hn4_1))); } }; protoOf(PersonListViewModel).uzt = 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.bzr_1.toString()); this_0.s('clazz_uid', this.azr_1.toString()); var args = this_0.f3(); this.oqj_1.fp3('invite_via_contact', args); }; protoOf(PersonListViewModel).vzt = function () { this.oqj_1.fp3('BulkAddPersonSelectFile', emptyMap()); }; protoOf(PersonListViewModel).cqt = function () { Companion_getInstance_201(); var tmp0_safe_receiver = this.mqj_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.uqt('PersonEditView', tmp1_elvis_lhs == null ? emptyMap() : tmp1_elvis_lhs); }; protoOf(PersonListViewModel).wzt = function (entry) { var goToOnPersonSelected = this.mqj_1.ba('goToOnPersonSelected'); if (!(goToOnPersonSelected == null)) { var tmp = UMFileUtil_getInstance().parseURLQueryString(goToOnPersonSelected); Companion_getInstance_114(); var args = plus_0(tmp, mapOf_0(to('personUid', entry.f96_1.toString()))); var goToDestName = substringBefore_0(goToOnPersonSelected, '?'); var popUpTo = this.mqj_1.ba('popUpToOnPersonSelected'); this.oqj_1.bq6(goToDestName, args, new UstadGoOptions(popUpTo, true)); } else { this.xqt('PersonDetailView', entry.f96_1, entry); } }; protoOf(PersonListViewModel).xzt = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.hqs_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.list.PersonListViewModel.onDismissAddSheetOrDialog.' call var nextValue = prevValue.szr(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(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().omf_1; var tmp_2 = new SortOrderOption(tmp_1, 1, true); var tmp_3 = strings_getInstance().omf_1; var tmp_4 = new SortOrderOption(tmp_3, 2, false); var tmp_5 = strings_getInstance().nmf_1; var tmp_6 = new SortOrderOption(tmp_5, 3, true); var tmp_7 = strings_getInstance().nmf_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.izr_1 = personList; this.jzr_1 = sortOptions; this.kzr_1 = sortOption; this.lzr_1 = showAddItem; this.mzr_1 = showInviteViaLink; this.nzr_1 = showInviteViaContact; this.ozr_1 = inviteCode; this.pzr_1 = showSortOptions; this.qzr_1 = addSheetOrDialogVisible; this.rzr_1 = hasBulkImportPermission; } protoOf(PersonListUiState).yzt = 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).szr = function (personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission, $super) { personList = personList === VOID ? this.izr_1 : personList; sortOptions = sortOptions === VOID ? this.jzr_1 : sortOptions; sortOption = sortOption === VOID ? this.kzr_1 : sortOption; showAddItem = showAddItem === VOID ? this.lzr_1 : showAddItem; showInviteViaLink = showInviteViaLink === VOID ? this.mzr_1 : showInviteViaLink; showInviteViaContact = showInviteViaContact === VOID ? this.nzr_1 : showInviteViaContact; inviteCode = inviteCode === VOID ? this.ozr_1 : inviteCode; showSortOptions = showSortOptions === VOID ? this.pzr_1 : showSortOptions; addSheetOrDialogVisible = addSheetOrDialogVisible === VOID ? this.qzr_1 : addSheetOrDialogVisible; hasBulkImportPermission = hasBulkImportPermission === VOID ? this.rzr_1 : hasBulkImportPermission; return $super === VOID ? this.yzt(personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission) : $super.yzt.call(this, personList, sortOptions, sortOption, showAddItem, showInviteViaLink, showInviteViaContact, inviteCode, showSortOptions, addSheetOrDialogVisible, hasBulkImportPermission); }; protoOf(PersonListUiState).toString = function () { return 'PersonListUiState(personList=' + this.izr_1 + ', sortOptions=' + this.jzr_1 + ', sortOption=' + this.kzr_1 + ', showAddItem=' + this.lzr_1 + ', showInviteViaLink=' + this.mzr_1 + ', showInviteViaContact=' + this.nzr_1 + ', inviteCode=' + this.ozr_1 + ', showSortOptions=' + this.pzr_1 + ', addSheetOrDialogVisible=' + this.qzr_1 + ', hasBulkImportPermission=' + this.rzr_1 + ')'; }; protoOf(PersonListUiState).hashCode = function () { var result = hashCode(this.izr_1); result = imul(result, 31) + hashCode(this.jzr_1) | 0; result = imul(result, 31) + this.kzr_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.lzr_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.mzr_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.nzr_1) | 0; result = imul(result, 31) + (this.ozr_1 == null ? 0 : getStringHashCode(this.ozr_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.pzr_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.qzr_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.rzr_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.izr_1, tmp0_other_with_cast.izr_1)) return false; if (!equals(this.jzr_1, tmp0_other_with_cast.jzr_1)) return false; if (!this.kzr_1.equals(tmp0_other_with_cast.kzr_1)) return false; if (!(this.lzr_1 === tmp0_other_with_cast.lzr_1)) return false; if (!(this.mzr_1 === tmp0_other_with_cast.mzr_1)) return false; if (!(this.nzr_1 === tmp0_other_with_cast.nzr_1)) return false; if (!(this.ozr_1 == tmp0_other_with_cast.ozr_1)) return false; if (!(this.pzr_1 === tmp0_other_with_cast.pzr_1)) return false; if (!(this.qzr_1 === tmp0_other_with_cast.qzr_1)) return false; if (!(this.rzr_1 === tmp0_other_with_cast.rzr_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 Companion_187() { this.zzt_1 = 'RegisterAgeRedirect'; } var Companion_instance_236; function Companion_getInstance_204() { return Companion_instance_236; } function RegisterAgeRedirectViewModel$onClickNext$ref($boundThis) { var l = function () { $boundThis.awe(); return Unit_instance; }; l.callableName = 'onClickNext'; return l; } function RegisterAgeRedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'RegisterAgeRedirect'); this.vzu_1 = MutableStateFlow(new RegisterAgeRedirectUiState(VOID, systemTimeInMillis())); this.wzu_1 = asStateFlow(this.vzu_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.' call var tmp0_title = this.mqk().eog(strings_getInstance().knl_1); var tmp = this.mqk().eog(strings_getInstance().hmf_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, RegisterAgeRedirectViewModel$onClickNext$ref(this)); var nextValue = prevValue.bq3(VOID, VOID, tmp0_title, false, VOID, VOID, false, VOID, tmp1_actionBarButtonState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } } protoOf(RegisterAgeRedirectViewModel).xzu = function (date) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vzu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onSetDate.' call var nextValue = prevValue.bzv(date, VOID, !prevValue.yzu_1.equals(date) ? null : prevValue.azv_1); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(RegisterAgeRedirectViewModel).awe = function () { var date = this.vzu_1.t2().yzu_1; if (date.equals(new Long(0, 0))) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.vzu_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerageredirect.RegisterAgeRedirectViewModel.onClickNext.' call var nextValue = prevValue.bzv(VOID, VOID, this.mqk().eog(strings_getInstance().hmj_1)); if (this_0.y1k(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.vzu_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.bzv(VOID, VOID, this.mqk().eog(strings_getInstance().wml_1)); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } return Unit_instance; } var dateOfBirthInstant = Companion_getInstance_6().rmc(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.aql(this_3, Companion_getInstance_211().qr3_1); Companion_getInstance_123(); this.zqk(this_3, 'next'); this_3.s('showAccept', 'true'); Companion_getInstance_211(); this_3.s('isMinor', isMinor.toString()); Companion_getInstance_201(); this_3.s('DateOfBirth', date.toString()); var args = this_3.f3(); if (isMinor) { Companion_getInstance_211(); this.oqj_1.fp3('SignUp', args); } else { this.oqj_1.fp3('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.yzu_1 = dateOfBirth; this.zzu_1 = maxDate; this.azv_1 = dateOfBirthError; } protoOf(RegisterAgeRedirectUiState).czv = function (dateOfBirth, maxDate, dateOfBirthError) { return new RegisterAgeRedirectUiState(dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).bzv = function (dateOfBirth, maxDate, dateOfBirthError, $super) { dateOfBirth = dateOfBirth === VOID ? this.yzu_1 : dateOfBirth; maxDate = maxDate === VOID ? this.zzu_1 : maxDate; dateOfBirthError = dateOfBirthError === VOID ? this.azv_1 : dateOfBirthError; return $super === VOID ? this.czv(dateOfBirth, maxDate, dateOfBirthError) : $super.czv.call(this, dateOfBirth, maxDate, dateOfBirthError); }; protoOf(RegisterAgeRedirectUiState).toString = function () { return 'RegisterAgeRedirectUiState(dateOfBirth=' + this.yzu_1.toString() + ', maxDate=' + this.zzu_1.toString() + ', dateOfBirthError=' + this.azv_1 + ')'; }; protoOf(RegisterAgeRedirectUiState).hashCode = function () { var result = this.yzu_1.hashCode(); result = imul(result, 31) + this.zzu_1.hashCode() | 0; result = imul(result, 31) + (this.azv_1 == null ? 0 : getStringHashCode(this.azv_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.yzu_1.equals(tmp0_other_with_cast.yzu_1)) return false; if (!this.zzu_1.equals(tmp0_other_with_cast.zzu_1)) return false; if (!(this.azv_1 == tmp0_other_with_cast.azv_1)) return false; return true; }; function Companion_188() { this.dzv_1 = 'WaitForParent'; this.ezv_1 = 'username'; this.fzv_1 = 'password'; this.gzv_1 = 'parentContact'; this.hzv_1 = 'showUsernamePassword'; this.izv_1 = 'RefererScreen'; } var Companion_instance_237; function Companion_getInstance_205() { return Companion_instance_237; } function RegisterMinorWaitForParentViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'WaitForParent'); this.ezw_1 = MutableStateFlow(new RegisterMinorWaitForParentUiState()); this.fzw_1 = asStateFlow(this.ezw_1); this.gzw_1 = savedStateHandle.ba('RefererScreen'); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.ezw_1; while (true) { var prevValue = this_0.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 = prevValue.lzw(tmp, tmp_0, tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs, toBoolean(savedStateHandle.ba('showUsernamePassword'))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.person.registerminorwaitforparent.RegisterMinorWaitForParentViewModel.' call var nextValue_0 = prevValue_0.bq3(VOID, VOID, this.ezw_1.t2().kzw_1 ? this.mqk().eog(strings_getInstance().zmf_1) : this.mqk().eog(strings_getInstance().lnn_1), false, VOID, VOID, false); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(RegisterMinorWaitForParentViewModel).mzw = function () { if (!(this.gzw_1 == null)) { this.oqj_1.cq6(this.gzw_1, true); return Unit_instance; } this.oqj_1.cq6('WaitForParent', true); }; function RegisterMinorWaitForParentUiState(username, password, parentContact, showUsernameAndPassword) { username = username === VOID ? '' : username; password = password === VOID ? '' : password; parentContact = parentContact === VOID ? '' : parentContact; showUsernameAndPassword = showUsernameAndPassword === VOID ? true : showUsernameAndPassword; this.hzw_1 = username; this.izw_1 = password; this.jzw_1 = parentContact; this.kzw_1 = showUsernameAndPassword; } protoOf(RegisterMinorWaitForParentUiState).lzw = function (username, password, parentContact, showUsernameAndPassword) { return new RegisterMinorWaitForParentUiState(username, password, parentContact, showUsernameAndPassword); }; protoOf(RegisterMinorWaitForParentUiState).toString = function () { return 'RegisterMinorWaitForParentUiState(username=' + this.hzw_1 + ', password=' + this.izw_1 + ', parentContact=' + this.jzw_1 + ', showUsernameAndPassword=' + this.kzw_1 + ')'; }; protoOf(RegisterMinorWaitForParentUiState).hashCode = function () { var result = getStringHashCode(this.hzw_1); result = imul(result, 31) + getStringHashCode(this.izw_1) | 0; result = imul(result, 31) + getStringHashCode(this.jzw_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.kzw_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.hzw_1 === tmp0_other_with_cast.hzw_1)) return false; if (!(this.izw_1 === tmp0_other_with_cast.izw_1)) return false; if (!(this.jzw_1 === tmp0_other_with_cast.jzw_1)) return false; if (!(this.kzw_1 === tmp0_other_with_cast.kzw_1)) return false; return true; }; function toFirstAndLastNameExt(_this__u8e3s4) { var tmp; if (_this__u8e3s4 == null) { tmp = null; } else { // Inline function 'kotlin.text.trim' call tmp = toString(trim(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE())); } var tmp1_safe_receiver = tmp; var tmp_0; if (tmp1_safe_receiver == null) { tmp_0 = null; } else { // Inline function 'kotlin.text.split' call tmp_0 = Regex_init_$Create$('[ .]').y9(tmp1_safe_receiver, 2); } var parts = tmp_0; // Inline function 'kotlin.text.orEmpty' call var tmp0_elvis_lhs = parts == null ? null : getOrNull(parts, 0); var firstName = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; // Inline function 'kotlin.text.orEmpty' call var tmp0_elvis_lhs_0 = parts == null ? null : getOrNull(parts, 1); var lastName = tmp0_elvis_lhs_0 == null ? '' : tmp0_elvis_lhs_0; return to(firstName, lastName); } 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.d57(); // 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.h57(tmp$ret$0, it); var tmp$ret$2 = On(this_0, tmp$ret$1, trigger); var tmp_1 = get_direct(tmp$ret$2).f58(); // 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.d58(tmp$ret$3, null); }; } function _get_apiUrlConfig__mldllg_5($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.kzx_1; apiUrlConfig$factory_12(); return this_0.t2(); } function Companion_189() { this.lzx_1 = ''; } var Companion_instance_238; function Companion_getInstance_206() { return Companion_instance_238; } function sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1(function_0) { this.mzx_1 = function_0; } protoOf(sam$com_ustadmobile_core_domain_openlink_OpenExternalLinkUseCase$0_1).dpg = function (url, target) { return this.mzx_1(url, target); }; function RedirectViewModel$slambda(this$0, $destinationArg, $destination, $di, resultContinuation) { this.vzx_1 = this$0; this.wzx_1 = $destinationArg; this.xzx_1 = $destination; this.yzx_1 = $di; CoroutineImpl.call(this, resultContinuation); } protoOf(RedirectViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(RedirectViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.vzx_1.oqj_1; var tmp1_accountManager = this.vzx_1.cqk(); 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_5(this.vzx_1).yo6_1; var tmp4_goOptions = new UstadGoOptions(VOID, VOID, true); var tmp5_forceAccountSelection = !(this.wzx_1 == null); var tmp6_presetLearningSpaceUrl = _get_apiUrlConfig__mldllg_5(this.vzx_1).wo6_1; navigateToLink(tmp0_$receiver, this.xzx_1, tmp1_accountManager, tmp2_openExternalLinkUseCase, tmp4_goOptions, tmp5_forceAccountSelection, tmp3_userCanSelectServer, VOID, VOID, VOID, VOID, tmp6_presetLearningSpaceUrl, RedirectViewModel$slambda$lambda_0(this.yzx_1)); return Unit_instance; } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(RedirectViewModel$slambda).v1m = function ($this$launch, completion) { var i = new RedirectViewModel$slambda(this.vzx_1, this.wzx_1, this.xzx_1, this.yzx_1, completion); i.zzx_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function RedirectViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, ''); var tmp = this; Companion_getInstance_114(); tmp.izx_1 = savedStateHandle.ba('next'); var tmp_0 = this; Companion_getInstance_114(); tmp_0.jzx_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.kzx_1 = Instance(this, tmp$ret$0, null).a5d(this, apiUrlConfig$factory_11()); this.qqj_1.x1k(new AppUiState(VOID, VOID, VOID, false, VOID, VOID, VOID, VOID, VOID, VOID, true)); var tmp0_elvis_lhs = this.jzx_1; var destinationArg = tmp0_elvis_lhs == null ? this.izx_1 : tmp0_elvis_lhs; var activeLearningSpace = this.cqk().co7(); if (!contains(activeLearningSpace.nnp_1, 'localhost')) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var tmp_3 = get_direct(di).f58(); // 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.h57(tmp$ret$2, activeLearningSpace); var tmp_6 = tmp_3.c58(tmp$ret$3).f58(); // 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.d58(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.cqk().go6().unq_1; var trigger = di.d57(); // 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.h57(tmp$ret$7, context); var tmp$ret$9 = On(di, tmp$ret$8, trigger); var tmp_11 = get_direct(tmp$ret$9).f58(); // 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.d58(tmp$ret$10, null).apb(); } else { tmp_8 = destinationArg; } var destination = tmp_8; var tmp_13 = this.dqk(); launch(tmp_13, VOID, VOID, RedirectViewModel$slambda_0(this, destinationArg, destination, di, null)); } function apiUrlConfig$factory_11() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_5(receiver); }, null); } function apiUrlConfig$factory_12() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_5(receiver); }, null); } function ScheduleEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda).jzy = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.jzy(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).env = function (it, completion) { var i = new ScheduleEditViewModel$slambda$slambda(completion); i.izy_1 = it; return i; }; function ScheduleEditViewModel$slambda$slambda_0(resultContinuation) { var i = new ScheduleEditViewModel$slambda$slambda(resultContinuation); var l = function (it, $completion) { return i.jzy(it, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$slambda$slambda_1(this$0, resultContinuation) { this.szy_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda$slambda_1).vzy = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.vzy($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.tzy_1 = new Schedule(); var tmp_1 = this; tmp_1.uzy_1 = this.tzy_1; this.hd_1 = 1; var tmp_2 = get_doorPrimaryKeyManager(this.szy_1.gqk()); suspendResult = tmp_2.o62(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; this.uzy_1.fhb_1 = ARGUMENT; this.uzy_1.rhb_1 = true; this.uzy_1.khb_1 = Companion_instance_29.jkr_1; return this.tzy_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).l78 = function (completion) { return new ScheduleEditViewModel$slambda$slambda_1(this.szy_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.vzy($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.tzz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel...' call var nextValue = prevValue.zzz(schedule); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function Companion_190() { this.a100_1 = 'ScheduleEdit'; } var Companion_instance_239; function Companion_getInstance_207() { return Companion_instance_239; } function ScheduleEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function ScheduleEditViewModel$slambda(this$0, resultContinuation) { this.j100_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(ScheduleEditViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.l100_1 = Companion_instance_29.n4r(); this.hd_1 = 1; var tmp_0 = ScheduleEditViewModel$slambda$slambda_0(null); var tmp_1 = ScheduleEditViewModel$slambda$slambda_2(this.j100_1, null); suspendResult = this.j100_1.wqk(this.l100_1, VOID, VOID, tmp_0, tmp_1, ScheduleEditViewModel$slambda$lambda(this.j100_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.j100_1.tzz_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.zzz(VOID, VOID, VOID, true); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new ScheduleEditViewModel$slambda(this.j100_1, completion); i.k100_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.u100_1 = $commitDelay; this.v100_1 = $entity; this.w100_1 = $this; this.x100_1 = $key; this.y100_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.u100_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.v100_1 == null)) { this.hd_1 = 2; suspendResult = this.w100_1.sqk(this.w100_1.mqj_1, this.x100_1, this.y100_1, this.v100_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).v1m = function ($this$launch, completion) { var i = new ScheduleEditViewModel$onEntityChanged$slambda(this.u100_1, this.v100_1, this.w100_1, this.x100_1, this.y100_1, completion); i.z100_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function ScheduleEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'ScheduleEdit'); this.tzz_1 = MutableStateFlow(new ScheduleEditUiState(VOID, VOID, VOID, false)); this.uzz_1 = asStateFlow(this.tzz_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.' call var tmp0_title = this.wqq(strings_getInstance().nmq_1, strings_getInstance().omq_1); var tmp = this.mqk().eog(strings_getInstance().fmn_1); var tmp1_actionBarButtonState = new ActionBarButtonUiState(true, tmp, VOID, ScheduleEditViewModel$onClickSave$ref(this)); var nextValue = prevValue.bq3(VOID, VOID, tmp0_title, VOID, true, VOID, VOID, VOID, tmp1_actionBarButtonState); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, ScheduleEditViewModel$slambda_0(this, null)); } protoOf(ScheduleEditViewModel).a101 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.tzz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onEntityChanged.' call var tmp2_safe_receiver = prevValue.vzz_1; var tmp = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ghb_1; var tmp4_toTimeError = this.xqq(tmp, entity == null ? null : entity.ghb_1, prevValue.xzz_1); var tmp0_safe_receiver = prevValue.vzz_1; var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hhb_1; var tmp5_fromTimeError = this.xqq(tmp_0, entity == null ? null : entity.hhb_1, prevValue.wzz_1); var nextValue = prevValue.zzz(entity, tmp5_fromTimeError, tmp4_toTimeError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_29.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_1 = this; var tmp_2 = this.dqk(); tmp_1.tqp_1 = launch(tmp_2, VOID, VOID, ScheduleEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(ScheduleEditViewModel).js3 = function () { var tmp0_elvis_lhs = this.tzz_1.t2().vzz_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.tzz_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.schedule.edit.ScheduleEditViewModel.onClickSave.' call var tmp_0; if (schedule.ghb_1.equals(new Long(0, 0))) { tmp_0 = this.mqk().eog(strings_getInstance().hmj_1); } else { tmp_0 = null; } var tmp_1 = tmp_0; var tmp_2; if (schedule.hhb_1.equals(new Long(0, 0))) { tmp_2 = this.mqk().eog(strings_getInstance().hmj_1); } else if (schedule.hhb_1.c7(schedule.ghb_1) <= 0) { tmp_2 = this.mqk().eog(strings_getInstance().en5_1); } else { tmp_2 = null; } var nextValue = prevValue.zzz(VOID, tmp_1, tmp_2); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (this.tzz_1.t2().wzz_1 == null ? this.tzz_1.t2().xzz_1 == null : false) { this.xqp(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.vzz_1 = entity; this.wzz_1 = fromTimeError; this.xzz_1 = toTimeError; this.yzz_1 = fieldsEnabled; } protoOf(ScheduleEditUiState).b101 = function (entity, fromTimeError, toTimeError, fieldsEnabled) { return new ScheduleEditUiState(entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).zzz = function (entity, fromTimeError, toTimeError, fieldsEnabled, $super) { entity = entity === VOID ? this.vzz_1 : entity; fromTimeError = fromTimeError === VOID ? this.wzz_1 : fromTimeError; toTimeError = toTimeError === VOID ? this.xzz_1 : toTimeError; fieldsEnabled = fieldsEnabled === VOID ? this.yzz_1 : fieldsEnabled; return $super === VOID ? this.b101(entity, fromTimeError, toTimeError, fieldsEnabled) : $super.b101.call(this, entity, fromTimeError, toTimeError, fieldsEnabled); }; protoOf(ScheduleEditUiState).toString = function () { return 'ScheduleEditUiState(entity=' + this.vzz_1 + ', fromTimeError=' + this.wzz_1 + ', toTimeError=' + this.xzz_1 + ', fieldsEnabled=' + this.yzz_1 + ')'; }; protoOf(ScheduleEditUiState).hashCode = function () { var result = this.vzz_1 == null ? 0 : this.vzz_1.hashCode(); result = imul(result, 31) + (this.wzz_1 == null ? 0 : getStringHashCode(this.wzz_1)) | 0; result = imul(result, 31) + (this.xzz_1 == null ? 0 : getStringHashCode(this.xzz_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.yzz_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.vzz_1, tmp0_other_with_cast.vzz_1)) return false; if (!(this.wzz_1 == tmp0_other_with_cast.wzz_1)) return false; if (!(this.xzz_1 == tmp0_other_with_cast.xzz_1)) return false; if (!(this.yzz_1 === tmp0_other_with_cast.yzz_1)) return false; return true; }; function Companion_191() { this.c101_1 = 'DevSettings'; this.d101_1 = 'showDevSettings'; } var Companion_instance_240; function Companion_getInstance_208() { return Companion_instance_240; } function SettingsViewModel$slambda$slambda(this$0, resultContinuation) { this.m101_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda$slambda).yqb = function (siteAdminSettingsVisible, $completion) { var tmp = this.zqb(siteAdminSettingsVisible, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda$slambda).he = function (p1, $completion) { return this.yqb((!(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.m101_1.j102_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.u103(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.n101_1); if (this_0.y1k(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).zqb = function (siteAdminSettingsVisible, completion) { var i = new SettingsViewModel$slambda$slambda(this.m101_1, completion); i.n101_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.yqb(siteAdminSettingsVisible, $completion); }; l.$arity = 1; return l; } function _get_supportedLangConfig__llzj1v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l102_1; supportedLangConfig$factory_0(); return this_0.t2(); } function _get_setLanguageUseCase__st7nci_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.m102_1; setLanguageUseCase$factory_4(); return this_0.t2(); } function _get_getHtmlContentDisplayOptsUseCase__lppxoi($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.o102_1; getHtmlContentDisplayOptsUseCase$factory_0(); return this_0.t2(); } function _get_getHtmlContentDisplaySettingUseCase__usawf4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p102_1; getHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_setHtmlContentDisplaySettingUseCase__8cgzqk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.q102_1; setHtmlContentDisplaySettingUseCase$factory_0(); return this_0.t2(); } function _get_getVersionUseCase__n7x57g_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.r102_1; getVersionUseCase$factory_4(); return this_0.t2(); } function _get_getStorageOptionsUseCase__v5dedp($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.s102_1; getStorageOptionsUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageSettingUseCase__5c8mhw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t102_1; getOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_setOfflineStorageSettingUseCase__lx9or4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.u102_1; setOfflineStorageSettingUseCase$factory_0(); return this_0.t2(); } function _get_getOfflineStorageAvailableSpace__om40zq($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.v102_1; getOfflineStorageAvailableSpace$factory_0(); return this_0.t2(); } function _get_settings__lbkut4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.x102_1; settings$factory_0(); return this_0.t2(); } function _get_zipFileUseCase__jhxb01($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.y102_1; zipFileUseCase$factory_0(); return this_0.t2(); } function Companion_192() { this.v103_1 = 'Settings'; } var Companion_instance_241; function Companion_getInstance_209() { return Companion_instance_241; } function sam$kotlinx_coroutines_flow_FlowCollector$0_37(function_0) { this.w103_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_37).t1d = function (value, $completion) { return this.w103_1(value, $completion); }; function SettingsViewModel$slambda(this$0, resultContinuation) { this.f104_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SettingsViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.f104_1); tmp_0.h104_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.apb(); var tmp_1 = this; var tmp1_safe_receiver = _get_getOfflineStorageSettingUseCase__5c8mhw(this.f104_1); tmp_1.i104_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.apb(); if (!(this.h104_1 == null)) { var tmp_2 = this; tmp_2.j104_1 = this.h104_1; var tmp_3 = this; tmp_3.k104_1 = this.j104_1; var tmp_4 = this; tmp_4.l104_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.j104_1, 10)); this.m104_1 = this.k104_1.w(); this.hd_1 = 1; continue $sm; } else { this.hd_1 = 5; continue $sm; } case 1: if (!this.m104_1.f()) { this.hd_1 = 4; continue $sm; } this.n104_1 = this.m104_1.e(); var tmp_5 = this; tmp_5.o104_1 = this.n104_1; this.p104_1 = _get_getOfflineStorageAvailableSpace__om40zq(this.f104_1); if (this.p104_1 == null) { this.q104_1 = null; this.hd_1 = 3; continue $sm; } else { this.hd_1 = 2; suspendResult = this.p104_1.apk(this.o104_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 2: this.q104_1 = suspendResult; this.hd_1 = 3; continue $sm; case 3: var tmp1_elvis_lhs = this.q104_1; var ARGUMENT = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; var ARGUMENT_0 = new SettingsOfflineStorageOption(this.o104_1, ARGUMENT); this.l104_1.i1(ARGUMENT_0); this.hd_1 = 1; continue $sm; case 4: var optionsWithSpace = this.l104_1; l$ret$1: do { var this_0 = this.f104_1.j102_1; while (true) { var prevValue = this_0.t2(); var tmp0_elvis_lhs = this.i104_1; var nextValue = prevValue.u103(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.h104_1) : tmp0_elvis_lhs); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new SettingsViewModel$slambda(this.f104_1, completion); i.g104_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel$slambda_1(this$0, resultContinuation) { this.z104_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SettingsViewModel$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.z104_1.iqk().p7f(); var tmp_1 = this.z104_1.eqk(); PermissionFlags_getInstance(); var tmp_2 = tmp_0.khw(tmp_1, new Long(16384, 0)); var tmp_3 = SettingsViewModel$slambda$slambda_0(this.z104_1, null); suspendResult = tmp_2.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_37(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).v1m = function ($this$launch, completion) { var i = new SettingsViewModel$slambda_1(this.z104_1, completion); i.a105_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SettingsViewModel(di, savedStateHandle) { UstadViewModel.call(this, di, savedStateHandle, 'Settings'); this.j102_1 = MutableStateFlow(new SettingsUiState()); this.k102_1 = asStateFlow(this.j102_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.l102_1 = Instance(this, tmp$ret$0, null).a5d(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.m102_1 = Instance(this, tmp$ret$2, null).a5d(this, setLanguageUseCase$factory_3()); this.n102_1 = _get_supportedLangConfig__llzj1v(this).pq4(this.mqk()); 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.o102_1 = InstanceOrNull(this, tmp$ret$4, null).a5d(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.p102_1 = InstanceOrNull(this, tmp$ret$6, null).a5d(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.q102_1 = InstanceOrNull(this, tmp$ret$8, null).a5d(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.r102_1 = Instance(this, tmp$ret$10, null).a5d(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.s102_1 = InstanceOrNull(this, tmp$ret$12, null).a5d(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.t102_1 = InstanceOrNull(this, tmp$ret$14, null).a5d(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.u102_1 = InstanceOrNull(this, tmp$ret$16, null).a5d(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.v102_1 = InstanceOrNull(this, tmp$ret$18, null).a5d(this, getOfflineStorageAvailableSpace$factory()); this.w102_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.x102_1 = Instance(this, tmp$ret$20, null).a5d(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.y102_1 = Instance(this, tmp$ret$22, null).a5d(this, zipFileUseCase$factory()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().hmg_1), VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp0_elvis_lhs = _get_supportedLangConfig__llzj1v(this).hq4(); var tmp_23; if (tmp0_elvis_lhs == null) { Companion_getInstance_95(); 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.n102_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call if (element.wq0_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.j102_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.' call var tmp3_currentLanguage = currentLang.xq0_1; var tmp4_availableLanguages = this.n102_1; var tmp0_safe_receiver = _get_getHtmlContentDisplayOptsUseCase__lppxoi(this); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.apb(); 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.apb(); var tmp7_version = _get_getVersionUseCase__n7x57g_1(this).apb().ypa_1; var tmp_24 = _get_settings__lbkut4(this); var tmp8_showDeveloperOptions = tmp_24.mm3('showDevSettings', false); var nextValue_0 = prevValue_0.u103(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.y1k(prevValue_0, nextValue_0)) { break $l$block_1; } } } var tmp_25 = this.dqk(); launch(tmp_25, VOID, VOID, SettingsViewModel$slambda_0(this, null)); var tmp_26 = this.dqk(); launch(tmp_26, VOID, VOID, SettingsViewModel$slambda_2(this, null)); } protoOf(SettingsViewModel).b105 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j102_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLanguage.' call var nextValue = prevValue.u103(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).c105 = function (lang) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j102_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue = prevValue.u103(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var result = _get_setLanguageUseCase__st7nci_1(this).rpf(lang, 'Settings', this.oqj_1); if (result.ppf_1) { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.j102_1; while (true) { var prevValue_0 = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_0 = prevValue_0.u103(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } else { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.j102_1; while (true) { var prevValue_1 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onClickLang.' call var nextValue_1 = prevValue_1.u103(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, lang.xq0_1); if (this_2.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } }; protoOf(SettingsViewModel).qz3 = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j102_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.settings.SettingsViewModel.onDismissLangDialog.' call var nextValue = prevValue.u103(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SettingsViewModel).d105 = function () { this.oqj_1.fp3('Community', emptyMap()); }; protoOf(SettingsViewModel).e105 = function () { this.oqj_1.fp3('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.z102_1 = sendAppOptionVisible; this.a103_1 = selectedBackupFolderUri; this.b103_1 = selectedBackupFolderName; this.c103_1 = isCreatingBackup; this.d103_1 = backupProgress; this.e103_1 = selectedBackupPath; this.f103_1 = htmlContentDisplayOptions; this.g103_1 = currentHtmlContentDisplayOption; this.h103_1 = holidayCalendarVisible; this.i103_1 = workspaceSettingsVisible; this.j103_1 = reasonLeavingVisible; this.k103_1 = langDialogVisible; this.l103_1 = htmlContentDisplayDialogVisible; this.m103_1 = currentLanguage; this.n103_1 = availableLanguages; this.o103_1 = waitForRestartDialogVisible; this.p103_1 = showDeveloperOptions; this.q103_1 = version; this.r103_1 = storageOptions; this.s103_1 = selectedOfflineStorageOption; this.t103_1 = storageOptionsDialogVisible; } protoOf(SettingsUiState).f105 = 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).u103 = 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.z102_1 : sendAppOptionVisible; selectedBackupFolderUri = selectedBackupFolderUri === VOID ? this.a103_1 : selectedBackupFolderUri; selectedBackupFolderName = selectedBackupFolderName === VOID ? this.b103_1 : selectedBackupFolderName; isCreatingBackup = isCreatingBackup === VOID ? this.c103_1 : isCreatingBackup; backupProgress = backupProgress === VOID ? this.d103_1 : backupProgress; selectedBackupPath = selectedBackupPath === VOID ? this.e103_1 : selectedBackupPath; htmlContentDisplayOptions = htmlContentDisplayOptions === VOID ? this.f103_1 : htmlContentDisplayOptions; currentHtmlContentDisplayOption = currentHtmlContentDisplayOption === VOID ? this.g103_1 : currentHtmlContentDisplayOption; holidayCalendarVisible = holidayCalendarVisible === VOID ? this.h103_1 : holidayCalendarVisible; workspaceSettingsVisible = workspaceSettingsVisible === VOID ? this.i103_1 : workspaceSettingsVisible; reasonLeavingVisible = reasonLeavingVisible === VOID ? this.j103_1 : reasonLeavingVisible; langDialogVisible = langDialogVisible === VOID ? this.k103_1 : langDialogVisible; htmlContentDisplayDialogVisible = htmlContentDisplayDialogVisible === VOID ? this.l103_1 : htmlContentDisplayDialogVisible; currentLanguage = currentLanguage === VOID ? this.m103_1 : currentLanguage; availableLanguages = availableLanguages === VOID ? this.n103_1 : availableLanguages; waitForRestartDialogVisible = waitForRestartDialogVisible === VOID ? this.o103_1 : waitForRestartDialogVisible; showDeveloperOptions = showDeveloperOptions === VOID ? this.p103_1 : showDeveloperOptions; version = version === VOID ? this.q103_1 : version; storageOptions = storageOptions === VOID ? this.r103_1 : storageOptions; selectedOfflineStorageOption = selectedOfflineStorageOption === VOID ? this.s103_1 : selectedOfflineStorageOption; storageOptionsDialogVisible = storageOptionsDialogVisible === VOID ? this.t103_1 : storageOptionsDialogVisible; return $super === VOID ? this.f105(sendAppOptionVisible, selectedBackupFolderUri, selectedBackupFolderName, isCreatingBackup, backupProgress, selectedBackupPath, htmlContentDisplayOptions, currentHtmlContentDisplayOption, holidayCalendarVisible, workspaceSettingsVisible, reasonLeavingVisible, langDialogVisible, htmlContentDisplayDialogVisible, currentLanguage, availableLanguages, waitForRestartDialogVisible, showDeveloperOptions, version, storageOptions, selectedOfflineStorageOption, storageOptionsDialogVisible) : $super.f105.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.z102_1 + ', selectedBackupFolderUri=' + this.a103_1 + ', selectedBackupFolderName=' + this.b103_1 + ', isCreatingBackup=' + this.c103_1 + ', backupProgress=' + this.d103_1 + ', selectedBackupPath=' + this.e103_1 + ', htmlContentDisplayOptions=' + this.f103_1 + ', currentHtmlContentDisplayOption=' + this.g103_1 + ', holidayCalendarVisible=' + this.h103_1 + ', workspaceSettingsVisible=' + this.i103_1 + ', reasonLeavingVisible=' + this.j103_1 + ', langDialogVisible=' + this.k103_1 + ', htmlContentDisplayDialogVisible=' + this.l103_1 + ', currentLanguage=' + this.m103_1 + ', availableLanguages=' + this.n103_1 + ', waitForRestartDialogVisible=' + this.o103_1 + ', showDeveloperOptions=' + this.p103_1 + ', version=' + this.q103_1 + ', storageOptions=' + this.r103_1 + ', selectedOfflineStorageOption=' + this.s103_1 + ', storageOptionsDialogVisible=' + this.t103_1 + ')'; }; protoOf(SettingsUiState).hashCode = function () { var result = getBooleanHashCode(this.z102_1); result = imul(result, 31) + (this.a103_1 == null ? 0 : getStringHashCode(this.a103_1)) | 0; result = imul(result, 31) + (this.b103_1 == null ? 0 : getStringHashCode(this.b103_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.c103_1) | 0; result = imul(result, 31) + getNumberHashCode(this.d103_1) | 0; result = imul(result, 31) + (this.e103_1 == null ? 0 : getStringHashCode(this.e103_1)) | 0; result = imul(result, 31) + hashCode(this.f103_1) | 0; result = imul(result, 31) + (this.g103_1 == null ? 0 : this.g103_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.h103_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.i103_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.j103_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.k103_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.l103_1) | 0; result = imul(result, 31) + getStringHashCode(this.m103_1) | 0; result = imul(result, 31) + hashCode(this.n103_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.o103_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.p103_1) | 0; result = imul(result, 31) + getStringHashCode(this.q103_1) | 0; result = imul(result, 31) + hashCode(this.r103_1) | 0; result = imul(result, 31) + (this.s103_1 == null ? 0 : this.s103_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.t103_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.z102_1 === tmp0_other_with_cast.z102_1)) return false; if (!(this.a103_1 == tmp0_other_with_cast.a103_1)) return false; if (!(this.b103_1 == tmp0_other_with_cast.b103_1)) return false; if (!(this.c103_1 === tmp0_other_with_cast.c103_1)) return false; if (!equals(this.d103_1, tmp0_other_with_cast.d103_1)) return false; if (!(this.e103_1 == tmp0_other_with_cast.e103_1)) return false; if (!equals(this.f103_1, tmp0_other_with_cast.f103_1)) return false; if (!equals(this.g103_1, tmp0_other_with_cast.g103_1)) return false; if (!(this.h103_1 === tmp0_other_with_cast.h103_1)) return false; if (!(this.i103_1 === tmp0_other_with_cast.i103_1)) return false; if (!(this.j103_1 === tmp0_other_with_cast.j103_1)) return false; if (!(this.k103_1 === tmp0_other_with_cast.k103_1)) return false; if (!(this.l103_1 === tmp0_other_with_cast.l103_1)) return false; if (!(this.m103_1 === tmp0_other_with_cast.m103_1)) return false; if (!equals(this.n103_1, tmp0_other_with_cast.n103_1)) return false; if (!(this.o103_1 === tmp0_other_with_cast.o103_1)) return false; if (!(this.p103_1 === tmp0_other_with_cast.p103_1)) return false; if (!(this.q103_1 === tmp0_other_with_cast.q103_1)) return false; if (!equals(this.r103_1, tmp0_other_with_cast.r103_1)) return false; if (!equals(this.s103_1, tmp0_other_with_cast.s103_1)) return false; if (!(this.t103_1 === tmp0_other_with_cast.t103_1)) return false; return true; }; function SettingsOfflineStorageOption(option, availableSpace) { this.g105_1 = option; this.h105_1 = availableSpace; } protoOf(SettingsOfflineStorageOption).toString = function () { return 'SettingsOfflineStorageOption(option=' + this.g105_1 + ', availableSpace=' + this.h105_1.toString() + ')'; }; protoOf(SettingsOfflineStorageOption).hashCode = function () { var result = this.g105_1.hashCode(); result = imul(result, 31) + this.h105_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.g105_1.equals(tmp0_other_with_cast.g105_1)) return false; if (!this.h105_1.equals(tmp0_other_with_cast.h105_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_193() { this.i105_1 = 'otheroption'; this.j105_1 = 'otheroptionperson'; this.k105_1 = 'otheroptionpersonprofilepic'; this.l105_1 = 'isparent'; } var Companion_instance_242; function Companion_getInstance_210() { return Companion_instance_242; } function SignUpViewModel$onClickedSignup$slambda$lambda() { return 'Error occurred during creating passkey'; } function SignUpViewModel$onClickedSignup$slambda$lambda_0($e) { return function () { return 'exception ' + $e.message; }; } function _get_createPasskeyUseCase__ryoxza($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.k106_1; createPasskeyUseCase$factory_0(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.n106_1; apiUrlConfig$factory_14(); return this_0.t2(); } function _get_getLocalAccountsSupportedUseCase__hoi7c7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.o106_1; getLocalAccountsSupportedUseCase$factory_0(); return this_0.t2(); } function _get_genderConfig__kyr0zc_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t106_1; genderConfig$factory_4(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.v106_1; enqueueSavePictureUseCase$factory_2(); return this_0.t2(); } function sendConsentAndNavigateToMinorWaitScreen($this, showUsernamePassword, $completion) { var tmp = new $sendConsentAndNavigateToMinorWaitScreenCOROUTINE$80($this, showUsernamePassword, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function hasErrors_5(_this__u8e3s4, $this) { return !(_this__u8e3s4.q107_1 == null) ? true : !(_this__u8e3s4.p107_1 == null); } function hasErrorsIfBelow13(_this__u8e3s4, $this) { return (!(_this__u8e3s4.q107_1 == null) ? true : !(_this__u8e3s4.p107_1 == null)) ? true : !(_this__u8e3s4.r107_1 == null); } function navigateToAppropriateScreen($this, savePerson) { if ($this.j106_1.t2().s107_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_123(); this_0.s('next', $this.l106_1); $this.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_123(); $this.zqk(this_0, 'next'); var tmp$ret$2 = this_0.f3(); $this.oqj_1.fp3('ChildProfileList', tmp$ret$2); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp = Napier_getInstance(); tmp.k5e(VOID, VOID, SignUpViewModel$navigateToAppropriateScreen$lambda($this)); $this.yqq($this.oqj_1, appendSelectedAccount($this.l106_1, savePerson.f96_1, new LearningSpace($this.cqk().co7().nnp_1)), goOptions); } } function Companion_194() { Companion_instance_243 = this; this.hr3_1 = 'picState'; this.ir3_1 = 'SignUp'; this.jr3_1 = 'DateOfBirth'; this.kr3_1 = 'personalAccount'; this.lr3_1 = 'newOrExisting'; this.mr3_1 = 'new'; this.nr3_1 = 'existing'; this.or3_1 = 'isMinor'; this.pr3_1 = 'parentContact'; var tmp = this; Companion_getInstance_114(); Companion_getInstance_114(); Companion_getInstance_201(); tmp.qr3_1 = listOf(['learningSpaceUrl', 'showAccept', 'popUpToOnFinish', 'DateOfBirth', 'RegMode', 'newOrExisting', 'personalAccount', 'isMinor', 'childName', 'childGender', 'childDateOfBirth', 'RefererScreen', 'parentContact']); this.rr3_1 = 'SignupWithUsernameAndPassword'; } var Companion_instance_243; function Companion_getInstance_211() { if (Companion_instance_243 == null) new Companion_194(); return Companion_instance_243; } function SignUpViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.j108_1 = this$0; this.k108_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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; suspendResult = this.j108_1.rqk(this.k108_1, 'otheroptionperson', Companion_instance_3.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.m108_1 = suspendResult; this.n108_1 = this.m108_1 == null ? new Person() : this.m108_1; this.hd_1 = 2; suspendResult = this.j108_1.rqk(this.k108_1, 'otheroptionpersonprofilepic', Companion_instance_7.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var personPicture = suspendResult; l$ret$1: do { var this_0 = this.j108_1.j106_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.n108_1.h96_1 === '') { tmp_0 = null; } else { tmp_0 = this.n108_1.qkm(); } var nextValue = prevValue.o108(this.n108_1, VOID, VOID, personPicture, VOID, tmp_0); if (this_0.y1k(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(SignUpViewModel$slambda).v1m = function ($this$launch, completion) { var i = new SignUpViewModel$slambda(this.j108_1, this.k108_1, completion); i.l108_1 = $this$launch; return i; }; function SignUpViewModel$slambda_0(this$0, $savedStateHandle, resultContinuation) { var i = new SignUpViewModel$slambda(this$0, $savedStateHandle, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onClickDone$ref($boundThis) { var l = function () { $boundThis.zwo(); return Unit_instance; }; l.callableName = 'onClickDone'; return l; } function SignUpViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.x108_1 = $commitDelay; this.y108_1 = $entity; this.z108_1 = $this; this.a109_1 = $key; this.b109_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.x108_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.y108_1 == null)) { this.hd_1 = 2; suspendResult = this.z108_1.sqk(this.z108_1.mqj_1, this.a109_1, this.b109_1, this.y108_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).v1m = function ($this$launch, completion) { var i = new SignUpViewModel$onEntityChanged$slambda(this.x108_1, this.y108_1, this.z108_1, this.a109_1, this.b109_1, completion); i.c109_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onClickDone$slambda(this$0, resultContinuation) { this.l109_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onClickDone$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$onClickDone$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onClickDone$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 = sendConsentAndNavigateToMinorWaitScreen(this.l109_1, false, 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; this.l109_1.kqk().qq3(new Snack(toString_0(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(SignUpViewModel$onClickDone$slambda).v1m = function ($this$launch, completion) { var i = new SignUpViewModel$onClickDone$slambda(this.l109_1, completion); i.m109_1 = $this$launch; return i; }; function SignUpViewModel$onClickDone$slambda_0(this$0, resultContinuation) { var i = new SignUpViewModel$onClickDone$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onPersonPictureChanged$slambda(this$0, $personPicture, resultContinuation) { this.v109_1 = this$0; this.w109_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onPersonPictureChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.v109_1.sqk(this.v109_1.mqj_1, 'picState', Companion_instance_7.n4r(), this.w109_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).v1m = function ($this$launch, completion) { var i = new SignUpViewModel$onPersonPictureChanged$slambda(this.v109_1, this.w109_1, completion); i.x109_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$onClickedSignup$lambda($firstName, $lastName) { return function ($this$shallowCopy) { $this$shallowCopy.h96_1 = $firstName; $this$shallowCopy.i96_1 = $lastName; return Unit_instance; }; } function SignUpViewModel$onClickedSignup$slambda(this$0, $savePerson, $createPasskeyUseCaseVal, resultContinuation) { this.g10a_1 = this$0; this.h10a_1 = $savePerson; this.i10a_1 = $createPasskeyUseCaseVal; CoroutineImpl.call(this, resultContinuation); } protoOf(SignUpViewModel$onClickedSignup$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignUpViewModel$onClickedSignup$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignUpViewModel$onClickedSignup$slambda).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 17; this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 16; this.id_1 = 13; this.hd_1 = 3; var tmp_0 = get_doorPrimaryKeyManager(this.g10a_1.gqk()); suspendResult = tmp_0.o62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.m10a_1 = suspendResult; this.h10a_1.f96_1 = this.m10a_1; if (!(this.i10a_1 == null)) { this.hd_1 = 4; suspendResult = this.i10a_1.lp8(new CreatePasskeyParams(toString_0(this.h10a_1.h96_1), this.m10a_1.toString(), get_doorIdentityHashCode(this.g10a_1.a57()).toString(), systemTimeInMillis(), this.g10a_1.p106_1, _get_apiUrlConfig__mldllg_6(this.g10a_1).uo6_1, this.h10a_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var this_0 = LinkedHashMap_init_$Create$(); this.g10a_1.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_123(); this.g10a_1.zqk(this_0, 'next'); this_0.s('otheroptionperson', this.g10a_1.m4r().r45(Companion_instance_3.n4r(), this.h10a_1)); var tmp_1 = this.g10a_1.m4r(); var tmp_2 = Companion_instance_7.n4r(); var tmp0_elvis_lhs = this.g10a_1.j106_1.t2().k107_1; this_0.s('otheroptionpersonprofilepic', tmp_1.r45(tmp_2, tmp0_elvis_lhs == null ? new PersonPicture() : tmp0_elvis_lhs)); this_0.s('isparent', this.g10a_1.j106_1.t2().s107_1.toString()); this.g10a_1.oqj_1.fp3('SignupEnterUsernamePassword', this_0.f3()); this.hd_1 = 11; continue $sm; } case 4: this.n10a_1 = suspendResult; this.hd_1 = 5; suspendResult = this.g10a_1.cqk().go7(this.g10a_1.p106_1, ensureNotNull(this.n10a_1), this.h10a_1, this.g10a_1.j106_1.t2().k107_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: if (this.n10a_1 == null) { this.g10a_1.kqk().qq3(new Snack(this.g10a_1.mqk().eog(strings_getInstance().cna_1))); var tmp_3 = Napier_getInstance(); tmp_3.s5e(VOID, VOID, SignUpViewModel$onClickedSignup$slambda$lambda); this.l10a_1 = Unit_instance; this.id_1 = 17; this.hd_1 = 14; continue $sm; } else { this.hd_1 = 6; continue $sm; } case 6: this.o10a_1 = this.g10a_1.j106_1.t2().k107_1; if (!(this.o10a_1 == null)) { this.o10a_1.e97_1 = this.h10a_1.f96_1; this.o10a_1.f97_1 = systemTimeInMillis(); this.p10a_1 = this.o10a_1.g97_1; this.hd_1 = 7; var tmp_4 = _get_enqueueSavePictureUseCase__rl1s31_0(this.g10a_1); var tmp_5 = this.h10a_1.f96_1; suspendResult = tmp_4.poo(tmp_5, 50, this.p10a_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 8; continue $sm; } case 7: this.hd_1 = 8; continue $sm; case 8: if (this.g10a_1.j106_1.t2().z107_1) { this.hd_1 = 12; suspendResult = sendConsentAndNavigateToMinorWaitScreen(this.g10a_1, false, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 9; continue $sm; } case 9: this.hd_1 = 10; suspendResult = this.g10a_1.q10a(this.h10a_1.f96_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 10: navigateToAppropriateScreen(this.g10a_1, this.h10a_1); this.hd_1 = 11; continue $sm; case 11: this.k10a_1 = Unit_instance; this.id_1 = 17; this.hd_1 = 15; continue $sm; case 12: this.l10a_1 = Unit_instance; this.id_1 = 17; this.hd_1 = 14; continue $sm; case 13: this.id_1 = 16; var tmp_6 = this.kd_1; if (tmp_6 instanceof Exception) { var e = this.kd_1; var tmp_7 = Napier_getInstance(); tmp_7.k5e(VOID, VOID, SignUpViewModel$onClickedSignup$slambda$lambda_0(e)); this.g10a_1.kqk().qq3(new Snack(this.g10a_1.mqk().eog(strings_getInstance().mme_1))); this.l10a_1 = Unit_instance; this.id_1 = 17; this.hd_1 = 14; var tmp_8 = this; continue $sm; } else { throw this.kd_1; } case 14: this.id_1 = 17; this.g10a_1.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; case 15: this.id_1 = 17; this.g10a_1.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; case 16: this.id_1 = 17; var t = this.kd_1; this.g10a_1.oqk(Companion_getInstance_96().jq3_1); throw t; case 17: throw this.kd_1; } } catch ($p) { var e_0 = $p; if (this.id_1 === 17) { throw e_0; } else { this.hd_1 = this.id_1; this.kd_1 = e_0; } } while (true); }; protoOf(SignUpViewModel$onClickedSignup$slambda).v1m = function ($this$launch, completion) { var i = new SignUpViewModel$onClickedSignup$slambda(this.g10a_1, this.h10a_1, this.i10a_1, completion); i.j10a_1 = $this$launch; return i; }; function SignUpViewModel$onClickedSignup$slambda_0(this$0, $savePerson, $createPasskeyUseCaseVal, resultContinuation) { var i = new SignUpViewModel$onClickedSignup$slambda(this$0, $savePerson, $createPasskeyUseCaseVal, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignUpViewModel$navigateToAppropriateScreen$lambda(this$0) { return function () { return 'AddSignUpPresenter: go to next destination: ' + this$0.l106_1; }; } function $sendConsentAndNavigateToMinorWaitScreenCOROUTINE$80(_this__u8e3s4, showUsernamePassword, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.f107_1 = _this__u8e3s4; this.g107_1 = showUsernamePassword; } protoOf($sendConsentAndNavigateToMinorWaitScreenCOROUTINE$80).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 tmp0_elvis_lhs = this.f107_1.j106_1.t2().m107_1; var tmp_0 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_safe_receiver = this.f107_1.j106_1.t2().h107_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l96_1; var tmp_1 = tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs; var tmp3_elvis_lhs = this.f107_1.j106_1.t2().n107_1; suspendResult = this.f107_1.s106_1.pnp(new SendConsentRequestToParentRequest(tmp_0, this.f107_1.u106_1, tmp_1, tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = LinkedHashMap_init_$Create$(); var key = 'username'; var tmp0_safe_receiver = this.f107_1.j106_1.t2().h107_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1; var value = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs; this_0.s(key, value); var key_0 = 'showUsernamePassword'; var value_0 = this.g107_1.toString(); this_0.s(key_0, value_0); var key_1 = 'parentContact'; var tmp2_elvis_lhs_0 = this.f107_1.j106_1.t2().n107_1; var value_1 = tmp2_elvis_lhs_0 == null ? '' : tmp2_elvis_lhs_0; this_0.s(key_1, value_1); var key_2 = 'password'; var tmp3_elvis_lhs_0 = this.f107_1.j106_1.t2().i107_1; var value_2 = tmp3_elvis_lhs_0 == null ? '' : tmp3_elvis_lhs_0; this_0.s(key_2, value_2); var key_3 = 'RefererScreen'; var tmp4_elvis_lhs = this.f107_1.mqj_1.ba('RefererScreen'); var value_3 = tmp4_elvis_lhs == null ? '' : tmp4_elvis_lhs; this_0.s(key_3, value_3); Companion_getInstance_114(); putFromSavedStateIfPresent(this_0, this.f107_1.mqj_1, 'popUpToOnFinish'); var args = this_0; this.f107_1.oqj_1.bq6('WaitForParent', args, new UstadGoOptions(VOID, VOID, 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); }; function $enrollToCourseFromInviteUidCOROUTINE$81(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z10a_1 = _this__u8e3s4; this.a10b_1 = personUid; } protoOf($enrollToCourseFromInviteUidCOROUTINE$81).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; Companion_getInstance_114(); tmp_0.b10b_1 = this.z10a_1.mqj_1.ba('next'); if (!(this.b10b_1 == null) ? contains(this.b10b_1, 'ClazzInviteRedeem') : false) { var tmp_1 = this.z10a_1; Companion_getInstance_138(); tmp_1.l106_1 = 'CourseListHome'; this.hd_1 = 1; suspendResult = this.z10a_1.w106_1.ipd(this.b10b_1, this.a10b_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.id_1 = 4; this.hd_1 = 5; continue $sm; case 3: this.id_1 = 4; var tmp_2 = this.kd_1; if (tmp_2 instanceof Exception) { var e = this.kd_1; print(e.message); this.hd_1 = 5; continue $sm; } 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 SignUpViewModel(di, savedStateHandle, destName) { Companion_getInstance_211(); destName = destName === VOID ? 'SignUp' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.j106_1 = MutableStateFlow(new SignUpUiState()); var tmp = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(CreatePasskeyUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.k106_1 = InstanceOrNull(this, tmp$ret$0, null).a5d(this, createPasskeyUseCase$factory()); var tmp_1 = this; Companion_getInstance_114(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_2; if (tmp0_elvis_lhs == null) { Companion_getInstance_138(); tmp_2 = 'CourseListHome'; } else { tmp_2 = tmp0_elvis_lhs; } tmp_1.l106_1 = tmp_2; this.m106_1 = asStateFlow(this.j106_1); 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$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.n106_1 = Instance(this, tmp$ret$2, null).a5d(this, apiUrlConfig$factory_13()); var tmp_5 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_6 = typeToken(createKType(getKClass(GetLocalAccountsSupportedUseCase), arrayOf([]), false)); var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(); tmp_5.o106_1 = Instance(this, tmp$ret$4, null).a5d(this, getLocalAccountsSupportedUseCase$factory()); var tmp_7 = this; Companion_getInstance_114(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_6(this).xo6_1 : tmp0_elvis_lhs_0; tmp_7.p106_1 = tmp1_elvis_lhs == null ? 'http://localhost' : tmp1_elvis_lhs; var tmp_8 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.p106_1); var trigger = di.d57(); // 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.h57(tmp$ret$6, context); var tmp$ret$8 = On(di, tmp$ret$7, trigger); var tmp_11 = get_direct(tmp$ret$8).f58(); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_8.q106_1 = tmp_11.d58(tmp$ret$9, null); this.r106_1 = new ValidateEmailUseCase(); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.p106_1); var trigger_0 = di.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_14 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_15 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$11 = isInterface(tmp_15, TypeToken) ? tmp_15 : THROW_CCE(); var tmp$ret$12 = tmp_14.h57(tmp$ret$11, context_0); var tmp$ret$13 = On(di, tmp$ret$12, trigger_0); var tmp_16 = get_direct(tmp$ret$13).f58(); // Inline function 'org.kodein.type.generic' call var tmp_17 = typeToken(createKType(getKClass(SendConsentRequestToParentUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); tmp_13.s106_1 = tmp_16.d58(tmp$ret$14, null); var tmp_18 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); tmp_18.t106_1 = Instance(this, tmp$ret$16, null).a5d(this, genderConfig$factory_3()); var tmp_20 = this; var tmp0_safe_receiver = savedStateHandle.ba('DateOfBirth'); var tmp1_elvis_lhs_0 = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_20.u106_1 = tmp1_elvis_lhs_0 == null ? new Long(0, 0) : tmp1_elvis_lhs_0; var tmp_21 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_1 = new LearningSpace(this.p106_1); var trigger_1 = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_22 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_23 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$18 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(); var tmp$ret$19 = tmp_22.h57(tmp$ret$18, context_1); var this_0 = On(this, tmp$ret$19, trigger_1); // Inline function 'org.kodein.type.generic' call var tmp_24 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$21 = isInterface(tmp_24, TypeToken) ? tmp_24 : THROW_CCE(); tmp_21.v106_1 = Instance(this_0, tmp$ret$21, null).a5d(this, enqueueSavePictureUseCase$factory_1()); var tmp_25 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_2 = new LearningSpace(this.p106_1); var trigger_2 = di.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_26 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_27 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$23 = isInterface(tmp_27, TypeToken) ? tmp_27 : THROW_CCE(); var tmp$ret$24 = tmp_26.h57(tmp$ret$23, context_2); var tmp$ret$25 = On(di, tmp$ret$24, trigger_2); var tmp_28 = get_direct(tmp$ret$25).f58(); // Inline function 'org.kodein.type.generic' call var tmp_29 = typeToken(createKType(getKClass(EnrollToCourseFromInviteCodeUseCase), arrayOf([]), false)); var tmp$ret$26 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE(); tmp_25.w106_1 = tmp_28.d58(tmp$ret$26, null); if (!(savedStateHandle.ba('childName') == null)) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.j106_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue = prevValue.o108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.j106_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue_0 = prevValue_0.o108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, toBoolean(savedStateHandle.ba('isMinor'))); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } this.oqk(Companion_getInstance_96().iq3_1); var tmp_30; if (this.j106_1.t2().z107_1) { tmp_30 = this.mqk().eog(strings_getInstance().nnn_1); } else { tmp_30 = this.mqk().eog(strings_getInstance().gn3_1); } var title = tmp_30; var tmp_31 = this.dqk(); launch(tmp_31, VOID, VOID, SignUpViewModel$slambda_0(this, savedStateHandle, null)); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.j106_1; while (true) { var prevValue_1 = this_3.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var nextValue_1 = prevValue_1.o108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } var tmp_32 = this; Companion_getInstance_167(); tmp_32.l106_1 = 'ContentEntryListHome'; } $l$block_2: { // Inline function 'kotlinx.coroutines.flow.update' call var this_4 = this.qqj_1; while (true) { var prevValue_2 = this_4.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var tmp_33 = this.j106_1.t2().y107_1 ? this.j106_1.t2().z107_1 : false; var tmp_34 = this.mqk().eog(strings_getInstance().hmf_1); var tmp0_actionBarButtonState = new ActionBarButtonUiState(tmp_33, tmp_34, VOID, SignUpViewModel$onClickDone$ref(this)); var nextValue_2 = new AppUiState(VOID, VOID, title, false, VOID, VOID, false, VOID, tmp0_actionBarButtonState, VOID, false); if (this_4.y1k(prevValue_2, nextValue_2)) { break $l$block_2; } } } $l$block_3: { // Inline function 'kotlinx.coroutines.flow.update' call var this_5 = this.j106_1; while (true) { var prevValue_3 = this_5.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.' call var tmp2_genderOptions = _get_genderConfig__kyr0zc_1(this).aq4_1; var tmp0_dateOfBirth = this.u106_1; var tmp1_isPersonalAccount = this.j106_1.t2().y107_1; var tmp3_person = new Person(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_isPersonalAccount, tmp0_dateOfBirth); var tmp4_serverUrl_ = this.p106_1; var tmp5_passkeySupported = !(_get_createPasskeyUseCase__ryoxza(this) == null); var tmp6_showOtherOption = (_get_createPasskeyUseCase__ryoxza(this) == null ? _get_getLocalAccountsSupportedUseCase__hoi7c7(this).apb() : false) ? !this.j106_1.t2().z107_1 : false; var tmp7_showPasskeyButton = !(this.j106_1.t2().z107_1 ? this.j106_1.t2().y107_1 : false); var nextValue_3 = prevValue_3.o108(tmp3_person, VOID, tmp2_genderOptions, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_passkeySupported, tmp4_serverUrl_, tmp6_showOtherOption, tmp7_showPasskeyButton); if (this_5.y1k(prevValue_3, nextValue_3)) { break $l$block_3; } } } } protoOf(SignUpViewModel).wz6 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.h107_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l96_1; var tmp_0 = this.xqq(tmp, entity == null ? null : entity.l96_1, prevValue.p107_1); var tmp2_safe_receiver = prevValue.h107_1; var tmp_1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.h96_1; var nextValue = prevValue.o108(entity, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_0, this.xqq(tmp_1, entity == null ? null : entity.h96_1, prevValue.q107_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_2 = this; var tmp_3 = this.dqk(); tmp_2.tqp_1 = launch(tmp_3, VOID, VOID, SignUpViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignUpViewModel).c10b = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onParentCheckChanged.' call var nextValue = prevValue.o108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).d10b = function (checked) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onTeacherCheckChanged.' call var nextValue = prevValue.o108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, checked); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).zwo = function () { var requiredFieldMessage = this.mqk().eog(strings_getInstance().hmj_1); var parentEmail = this.j106_1.t2().n107_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onClickDone.' call var tmp; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = this.j106_1.t2().m107_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp = requiredFieldMessage; } else { tmp = null; } var tmp1_fullNameError = tmp; var tmp_0; // Inline function 'kotlin.text.isNullOrEmpty' call // Inline function 'kotlin.contracts.contract' call if (parentEmail == null ? true : charSequenceLength(parentEmail) === 0) { tmp_0 = requiredFieldMessage; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onClickDone..' call if (this.r106_1.loe(parentEmail) == null) { tmp_0 = this.mqk().eog(strings_getInstance().en6_1); } else { tmp_0 = null; } } var tmp2_parentEmailError = tmp_0; var tmp_1; var tmp0_safe_receiver = this.j106_1.t2().h107_1; var tmp_2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l96_1; if (tmp_2 === 0) { tmp_1 = requiredFieldMessage; } else { tmp_1 = null; } var tmp3_genderError = tmp_1; var nextValue = prevValue.o108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_genderError, tmp1_fullNameError, tmp2_parentEmailError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrorsIfBelow13(this.j106_1.t2(), this)) { return Unit_instance; } var tmp_3 = this.dqk(); launch(tmp_3, VOID, VOID, SignUpViewModel$onClickDone$slambda_0(this, null)); }; protoOf(SignUpViewModel).tzm = 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.j106_1.t2().k107_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e97_1; tmp.e97_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this_0.g97_1 = pictureUri; var personPicture = this_0; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.j106_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onPersonPictureChanged.' call var nextValue = prevValue.o108(VOID, VOID, VOID, personPicture); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, SignUpViewModel$onPersonPictureChanged$slambda_0(this, personPicture, null)); }; protoOf(SignUpViewModel).e10b = function (parentEmail) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onParentEmailValueChange.' call var nextValue = prevValue.o108(VOID, VOID, VOID, VOID, VOID, VOID, parentEmail); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).f10b = function (fullName) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onFullNameValueChange.' call var nextValue = prevValue.o108(VOID, VOID, VOID, VOID, VOID, fullName); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignUpViewModel).g10b = function () { this.oqk(Companion_getInstance_96().iq3_1); var tmp0_safe_receiver = this.j106_1.t2().m107_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 tmp1_container = toFirstAndLastNameExt(fullName); var firstName = tmp1_container.y6(); var lastName = tmp1_container.z6(); var tmp2_safe_receiver = this.j106_1.t2().h107_1; var tmp_0; if (tmp2_safe_receiver == null) { tmp_0 = null; } else { tmp_0 = shallowCopy(tmp2_safe_receiver, SignUpViewModel$onClickedSignup$lambda(firstName, lastName)); } this.wz6(tmp_0); var tmp3_elvis_lhs = this.j106_1.t2().h107_1; var tmp_1; if (tmp3_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp3_elvis_lhs; } var savePerson = tmp_1; var requiredFieldMessage = this.mqk().eog(strings_getInstance().hmj_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j106_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignUpViewModel.onClickedSignup.' call var tmp_2; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = savePerson.h96_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_2 = requiredFieldMessage; } else { tmp_2 = null; } var tmp0_fullNameError = tmp_2; var tmp_3; var tmp_4 = savePerson.l96_1; if (tmp_4 === 0) { tmp_3 = requiredFieldMessage; } else { tmp_3 = null; } var tmp1_genderError = tmp_3; var nextValue = prevValue.o108(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_genderError, tmp0_fullNameError); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_5(this.j106_1.t2(), this)) { this.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; } var createPasskeyUseCaseVal = _get_createPasskeyUseCase__ryoxza(this); var tmp_5 = this.dqk(); launch(tmp_5, VOID, VOID, SignUpViewModel$onClickedSignup$slambda_0(this, savePerson, createPasskeyUseCaseVal, null)); }; protoOf(SignUpViewModel).q10a = function (personUid, $completion) { var tmp = new $enrollToCourseFromInviteUidCOROUTINE$81(this, personUid, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function SignUpUiState(person, password, genderOptions, personPicture, registrationMode, fullName, parentEmail, dateOfBirthError, genderError, fullNameError, parentEmailError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, showPasskeyButton, isPersonalAccount, isMinor, isParentalConsentForMinor) { person = person === VOID ? null : person; password = password === VOID ? null : password; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().cq4_1 : genderOptions; personPicture = personPicture === VOID ? null : personPicture; registrationMode = registrationMode === VOID ? 0 : registrationMode; fullName = fullName === VOID ? null : fullName; parentEmail = parentEmail === VOID ? null : parentEmail; dateOfBirthError = dateOfBirthError === VOID ? null : dateOfBirthError; genderError = genderError === VOID ? null : genderError; fullNameError = fullNameError === VOID ? null : fullNameError; parentEmailError = parentEmailError === VOID ? null : parentEmailError; 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; showPasskeyButton = showPasskeyButton === VOID ? true : showPasskeyButton; isPersonalAccount = isPersonalAccount === VOID ? false : isPersonalAccount; isMinor = isMinor === VOID ? false : isMinor; isParentalConsentForMinor = isParentalConsentForMinor === VOID ? false : isParentalConsentForMinor; this.h107_1 = person; this.i107_1 = password; this.j107_1 = genderOptions; this.k107_1 = personPicture; this.l107_1 = registrationMode; this.m107_1 = fullName; this.n107_1 = parentEmail; this.o107_1 = dateOfBirthError; this.p107_1 = genderError; this.q107_1 = fullNameError; this.r107_1 = parentEmailError; this.s107_1 = isParent; this.t107_1 = isTeacher; this.u107_1 = passkeySupported; this.v107_1 = serverUrl_; this.w107_1 = showOtherOption; this.x107_1 = showPasskeyButton; this.y107_1 = isPersonalAccount; this.z107_1 = isMinor; this.a108_1 = isParentalConsentForMinor; } protoOf(SignUpUiState).h10b = function (person, password, genderOptions, personPicture, registrationMode, fullName, parentEmail, dateOfBirthError, genderError, fullNameError, parentEmailError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, showPasskeyButton, isPersonalAccount, isMinor, isParentalConsentForMinor) { return new SignUpUiState(person, password, genderOptions, personPicture, registrationMode, fullName, parentEmail, dateOfBirthError, genderError, fullNameError, parentEmailError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, showPasskeyButton, isPersonalAccount, isMinor, isParentalConsentForMinor); }; protoOf(SignUpUiState).o108 = function (person, password, genderOptions, personPicture, registrationMode, fullName, parentEmail, dateOfBirthError, genderError, fullNameError, parentEmailError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, showPasskeyButton, isPersonalAccount, isMinor, isParentalConsentForMinor, $super) { person = person === VOID ? this.h107_1 : person; password = password === VOID ? this.i107_1 : password; genderOptions = genderOptions === VOID ? this.j107_1 : genderOptions; personPicture = personPicture === VOID ? this.k107_1 : personPicture; registrationMode = registrationMode === VOID ? this.l107_1 : registrationMode; fullName = fullName === VOID ? this.m107_1 : fullName; parentEmail = parentEmail === VOID ? this.n107_1 : parentEmail; dateOfBirthError = dateOfBirthError === VOID ? this.o107_1 : dateOfBirthError; genderError = genderError === VOID ? this.p107_1 : genderError; fullNameError = fullNameError === VOID ? this.q107_1 : fullNameError; parentEmailError = parentEmailError === VOID ? this.r107_1 : parentEmailError; isParent = isParent === VOID ? this.s107_1 : isParent; isTeacher = isTeacher === VOID ? this.t107_1 : isTeacher; passkeySupported = passkeySupported === VOID ? this.u107_1 : passkeySupported; serverUrl_ = serverUrl_ === VOID ? this.v107_1 : serverUrl_; showOtherOption = showOtherOption === VOID ? this.w107_1 : showOtherOption; showPasskeyButton = showPasskeyButton === VOID ? this.x107_1 : showPasskeyButton; isPersonalAccount = isPersonalAccount === VOID ? this.y107_1 : isPersonalAccount; isMinor = isMinor === VOID ? this.z107_1 : isMinor; isParentalConsentForMinor = isParentalConsentForMinor === VOID ? this.a108_1 : isParentalConsentForMinor; return $super === VOID ? this.h10b(person, password, genderOptions, personPicture, registrationMode, fullName, parentEmail, dateOfBirthError, genderError, fullNameError, parentEmailError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, showPasskeyButton, isPersonalAccount, isMinor, isParentalConsentForMinor) : $super.h10b.call(this, person, password, genderOptions, personPicture, registrationMode, fullName, parentEmail, dateOfBirthError, genderError, fullNameError, parentEmailError, isParent, isTeacher, passkeySupported, serverUrl_, showOtherOption, showPasskeyButton, isPersonalAccount, isMinor, isParentalConsentForMinor); }; protoOf(SignUpUiState).toString = function () { return 'SignUpUiState(person=' + this.h107_1 + ', password=' + this.i107_1 + ', genderOptions=' + this.j107_1 + ', personPicture=' + this.k107_1 + ', registrationMode=' + this.l107_1 + ', fullName=' + this.m107_1 + ', parentEmail=' + this.n107_1 + ', dateOfBirthError=' + this.o107_1 + ', genderError=' + this.p107_1 + ', fullNameError=' + this.q107_1 + ', parentEmailError=' + this.r107_1 + ', isParent=' + this.s107_1 + ', isTeacher=' + this.t107_1 + ', passkeySupported=' + this.u107_1 + ', serverUrl_=' + this.v107_1 + ', showOtherOption=' + this.w107_1 + ', showPasskeyButton=' + this.x107_1 + ', isPersonalAccount=' + this.y107_1 + ', isMinor=' + this.z107_1 + ', isParentalConsentForMinor=' + this.a108_1 + ')'; }; protoOf(SignUpUiState).hashCode = function () { var result = this.h107_1 == null ? 0 : this.h107_1.hashCode(); result = imul(result, 31) + (this.i107_1 == null ? 0 : getStringHashCode(this.i107_1)) | 0; result = imul(result, 31) + hashCode(this.j107_1) | 0; result = imul(result, 31) + (this.k107_1 == null ? 0 : this.k107_1.hashCode()) | 0; result = imul(result, 31) + this.l107_1 | 0; result = imul(result, 31) + (this.m107_1 == null ? 0 : getStringHashCode(this.m107_1)) | 0; result = imul(result, 31) + (this.n107_1 == null ? 0 : getStringHashCode(this.n107_1)) | 0; result = imul(result, 31) + (this.o107_1 == null ? 0 : getStringHashCode(this.o107_1)) | 0; result = imul(result, 31) + (this.p107_1 == null ? 0 : getStringHashCode(this.p107_1)) | 0; result = imul(result, 31) + (this.q107_1 == null ? 0 : getStringHashCode(this.q107_1)) | 0; result = imul(result, 31) + (this.r107_1 == null ? 0 : getStringHashCode(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) + (this.v107_1 == null ? 0 : getStringHashCode(this.v107_1)) | 0; result = imul(result, 31) + getBooleanHashCode(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) + getBooleanHashCode(this.z107_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.a108_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.h107_1, tmp0_other_with_cast.h107_1)) return false; if (!(this.i107_1 == tmp0_other_with_cast.i107_1)) return false; if (!equals(this.j107_1, tmp0_other_with_cast.j107_1)) return false; if (!equals(this.k107_1, tmp0_other_with_cast.k107_1)) return false; if (!(this.l107_1 === tmp0_other_with_cast.l107_1)) return false; if (!(this.m107_1 == tmp0_other_with_cast.m107_1)) return false; if (!(this.n107_1 == tmp0_other_with_cast.n107_1)) return false; if (!(this.o107_1 == tmp0_other_with_cast.o107_1)) return false; if (!(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 (!(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 (!(this.a108_1 === tmp0_other_with_cast.a108_1)) return false; return true; }; function createPasskeyUseCase$factory() { return getPropertyCallableRef('createPasskeyUseCase', 1, KProperty1, function (receiver) { return _get_createPasskeyUseCase__ryoxza(receiver); }, null); } function apiUrlConfig$factory_13() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_6(receiver); }, null); } function getLocalAccountsSupportedUseCase$factory() { return getPropertyCallableRef('getLocalAccountsSupportedUseCase', 1, KProperty1, function (receiver) { return _get_getLocalAccountsSupportedUseCase__hoi7c7(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 createPasskeyUseCase$factory_0() { return getPropertyCallableRef('createPasskeyUseCase', 1, KProperty1, function (receiver) { return _get_createPasskeyUseCase__ryoxza(receiver); }, null); } function apiUrlConfig$factory_14() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_6(receiver); }, null); } function getLocalAccountsSupportedUseCase$factory_0() { return getPropertyCallableRef('getLocalAccountsSupportedUseCase', 1, KProperty1, function (receiver) { return _get_getLocalAccountsSupportedUseCase__hoi7c7(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_savePasswordUseCase__awoktu_0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.g10c_1; savePasswordUseCase$factory_2(); return this_0.t2(); } function _get_apiUrlConfig__mldllg_7($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.k10c_1; apiUrlConfig$factory_16(); return this_0.t2(); } function _get_genderConfig__kyr0zc_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.p10c_1; genderConfig$factory_6(); return this_0.t2(); } function _get_enqueueSavePictureUseCase__rl1s31_1($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.r10c_1; enqueueSavePictureUseCase$factory_4(); return this_0.t2(); } function hasErrors_6(_this__u8e3s4, $this) { return !(_this__u8e3s4.y10c_1 == null) ? true : !(_this__u8e3s4.a10d_1 == null); } function navigateToAppropriateScreen_0($this, savePerson) { if ($this.l10c_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_123(); this_0.s('next', $this.i10c_1); $this.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_123(); $this.zqk(this_0, 'next'); var tmp$ret$2 = this_0.f3(); $this.oqj_1.fp3('ChildProfileList', tmp$ret$2); } else if ($this.m10c_1) { var tmp = $this.dqk(); launch(tmp, VOID, VOID, SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda_0($this, null)); } else { var goOptions = new UstadGoOptions(VOID, VOID, true); var tmp_0 = Napier_getInstance(); tmp_0.k5e(VOID, VOID, SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$lambda($this)); $this.yqq($this.oqj_1, appendSelectedAccount($this.i10c_1, savePerson.f96_1, new LearningSpace($this.cqk().co7().nnp_1)), goOptions); } } function sendConsentAndNavigateToMinorWaitScreen_0($this, showUsernamePassword, $completion) { var tmp = new $sendConsentAndNavigateToMinorWaitScreenCOROUTINE$82($this, showUsernamePassword, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function Companion_195() { this.t10d_1 = 'SignupEnterUsernamePassword'; } var Companion_instance_244; function Companion_getInstance_212() { return Companion_instance_244; } function SignupEnterUsernamePasswordViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.c10e_1 = this$0; this.d10e_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignupEnterUsernamePasswordViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.c10e_1.rqk(this.d10e_1, 'otheroptionperson', Companion_instance_3.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.f10e_1 = suspendResult; this.g10e_1 = this.f10e_1 == null ? new Person() : this.f10e_1; this.hd_1 = 2; suspendResult = this.c10e_1.rqk(this.d10e_1, 'otheroptionpersonprofilepic', Companion_instance_7.n4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var personPicture = suspendResult; l$ret$1: do { var this_0 = this.c10e_1.f10c_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (this.g10e_1.h96_1 === '') { tmp_0 = null; } else { tmp_0 = this.g10e_1.qkm(); } var nextValue = prevValue.h10e(this.g10e_1, VOID, VOID, personPicture, VOID, VOID, tmp_0); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$slambda(this.c10e_1, this.d10e_1, completion); i.e10e_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.q10e_1 = $commitDelay; this.r10e_1 = $entity; this.s10e_1 = $this; this.t10e_1 = $key; this.u10e_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.q10e_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.r10e_1 == null)) { this.hd_1 = 2; suspendResult = this.s10e_1.sqk(this.s10e_1.mqj_1, this.t10e_1, this.u10e_1, this.r10e_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).v1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda(this.q10e_1, this.r10e_1, this.s10e_1, this.t10e_1, this.u10e_1, completion); i.v10e_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$lambda($firstName, $lastName) { return function ($this$shallowCopy) { $this$shallowCopy.h96_1 = $firstName; $this$shallowCopy.i96_1 = $lastName; return Unit_instance; }; } function SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this$0, $savePerson, resultContinuation) { this.e10f_1 = this$0; this.f10f_1 = $savePerson; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.e10f_1.gqk()); suspendResult = tmp_0.o62(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.j10f_1 = suspendResult; this.f10f_1.f96_1 = this.j10f_1; this.k10f_1 = this.e10f_1.f10c_1.t2().u10c_1; if (this.k10f_1 == null) { this.i10f_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 17; var tmp_1 = this; continue $sm; } else { this.l10f_1 = this.k10f_1; this.hd_1 = 4; continue $sm; } case 4: this.m10f_1 = this.l10f_1; var tmp_2 = this; Companion_getInstance_211(); tmp_2.n10f_1 = new PersonParentJoin(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e10f_1.mqj_1.ba('parentContact')); this.hd_1 = 5; suspendResult = this.e10f_1.cqk().ho7(this.f10f_1, this.m10f_1, this.e10f_1.n10c_1, new AccountRegisterOptions(!this.e10f_1.m10c_1, this.n10f_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.o10f_1 = this.e10f_1.f10c_1.t2().w10c_1; if (!(this.o10f_1 == null)) { this.o10f_1.e97_1 = this.f10f_1.f96_1; this.o10f_1.f97_1 = systemTimeInMillis(); this.p10f_1 = this.o10f_1.g97_1; this.hd_1 = 6; var tmp_3 = _get_enqueueSavePictureUseCase__rl1s31_1(this.e10f_1); var tmp_4 = this.f10f_1.f96_1; suspendResult = tmp_3.poo(tmp_4, 50, this.p10f_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.q10f_1 = _get_savePasswordUseCase__awoktu_0(this.e10f_1); if (this.q10f_1 == null) { this.r10f_1 = null; this.hd_1 = 9; continue $sm; } else { this.hd_1 = 8; suspendResult = this.q10f_1.zp8(toString_0(this.f10f_1.g96_1), toString_0(this.e10f_1.f10c_1.t2().u10c_1), this.e10f_1.n10c_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 8: var tmp_5 = this; tmp_5.r10f_1 = Unit_instance; this.hd_1 = 9; continue $sm; case 9: this.id_1 = 12; var tmp_6 = this; Companion_getInstance_114(); tmp_6.s10f_1 = this.e10f_1.mqj_1.ba('next'); if (!(this.s10f_1 == null) ? contains(this.s10f_1, 'ClazzInviteRedeem') : false) { var tmp_7 = this.e10f_1; Companion_getInstance_138(); tmp_7.i10c_1 = 'CourseListHome'; this.hd_1 = 10; suspendResult = this.e10f_1.q10c_1.ipd(this.s10f_1, this.f10f_1.f96_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_8 = this.kd_1; if (tmp_8 instanceof Exception) { var e = this.kd_1; var tmp_9 = Napier_getInstance(); tmp_9.k5e(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_10 = this; navigateToAppropriateScreen_0(this.e10f_1, this.f10f_1); tmp_10.h10f_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 18; continue $sm; case 14: this.id_1 = 15; var tmp_11 = this.kd_1; if (tmp_11 instanceof Exception) { var e_0 = this.kd_1; if (e_0 instanceof IllegalStateException) { l$ret$5: do { var this_0 = this.e10f_1.f10c_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.h10e(VOID, VOID, VOID, VOID, VOID, this.e10f_1.mqk().eog(strings_getInstance().kn3_1)); if (this_0.y1k(prevValue, nextValue)) { break l$ret$5; } } } while (false); } else { this.e10f_1.kqk().qq3(new Snack(this.e10f_1.mqk().eog(strings_getInstance().mme_1))); } this.i10f_1 = Unit_instance; this.id_1 = 16; this.hd_1 = 17; var tmp_12 = this; continue $sm; } else { throw this.kd_1; } case 15: this.id_1 = 16; var t = this.kd_1; this.e10f_1.oqk(Companion_getInstance_96().jq3_1); throw t; case 16: throw this.kd_1; case 17: this.id_1 = 16; this.e10f_1.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; case 18: this.id_1 = 16; this.e10f_1.oqk(Companion_getInstance_96().jq3_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).v1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda(this.e10f_1, this.f10f_1, completion); i.g10f_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda(this$0, resultContinuation) { this.b10g_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda).he = function (p1, $completion) { return this.u1m((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$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 = sendConsentAndNavigateToMinorWaitScreen_0(this.b10g_1, true, 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(SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda).v1m = function ($this$launch, completion) { var i = new SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda(this.b10g_1, completion); i.c10g_1 = $this$launch; return i; }; function SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda_0(this$0, resultContinuation) { var i = new SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$slambda(this$0, resultContinuation); var l = function ($this$launch, $completion) { return i.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SignupEnterUsernamePasswordViewModel$navigateToAppropriateScreen$lambda(this$0) { return function () { return 'AddSignupEnterUsernamePasswordPresenter: go to next destination: ' + this$0.i10c_1; }; } function $sendConsentAndNavigateToMinorWaitScreenCOROUTINE$82(_this__u8e3s4, showUsernamePassword, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.p10d_1 = _this__u8e3s4; this.q10d_1 = showUsernamePassword; } protoOf($sendConsentAndNavigateToMinorWaitScreenCOROUTINE$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.id_1 = 2; var tmp_0 = this; var tmp0_elvis_lhs = this.p10d_1.f10c_1.t2().t10c_1; var tmp_1; if (tmp0_elvis_lhs == null) { throw IllegalStateException_init_$Create$('child details are empty'); } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.r10d_1 = tmp_1; var tmp_2 = this; Companion_getInstance_211(); tmp_2.s10d_1 = this.p10d_1.mqj_1.ba('parentContact'); this.hd_1 = 1; var tmp_3 = this.r10d_1.qkm(); var tmp_4 = this.r10d_1.o96_1; var tmp_5 = this.r10d_1.l96_1; var tmp1_elvis_lhs = this.s10d_1; suspendResult = this.p10d_1.s10c_1.pnp(new SendConsentRequestToParentRequest(tmp_3, tmp_4, tmp_5, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var this_0 = LinkedHashMap_init_$Create$(); var key = 'username'; var tmp0_safe_receiver = this.p10d_1.f10c_1.t2().t10c_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1; var value = tmp1_elvis_lhs_0 == null ? '' : tmp1_elvis_lhs_0; this_0.s(key, value); var key_0 = 'showUsernamePassword'; var value_0 = this.q10d_1.toString(); this_0.s(key_0, value_0); var key_1 = 'parentContact'; var tmp2_elvis_lhs = this.s10d_1; var value_1 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; this_0.s(key_1, value_1); var key_2 = 'password'; this_0.s(key_2, ''); Companion_getInstance_114(); putFromSavedStateIfPresent(this_0, this.p10d_1.mqj_1, 'popUpToOnFinish'); var key_3 = 'RefererScreen'; var value_2 = 'AddAccountSelectNewOrExisting'; this_0.s(key_3, value_2); var args = this_0; this.p10d_1.oqj_1.bq6('WaitForParent', args, new UstadGoOptions(VOID, VOID, true)); this.id_1 = 3; this.hd_1 = 4; continue $sm; case 2: this.id_1 = 3; var tmp_6 = this.kd_1; if (tmp_6 instanceof Exception) { var e = this.kd_1; Napier_getInstance().q5e('Error : ' + e.message, 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); }; function SignupEnterUsernamePasswordViewModel(di, savedStateHandle, destName) { destName = destName === VOID ? 'SignupEnterUsernamePassword' : destName; UstadEditViewModel.call(this, di, savedStateHandle, destName); this.f10c_1 = MutableStateFlow(new SignupEnterUsernamePasswordUiState()); var tmp = this; // Inline function 'org.kodein.di.instanceOrNull' call // Inline function 'org.kodein.type.generic' call var tmp_0 = typeToken(createKType(getKClass(SavePasswordUseCase), arrayOf([]), false)); var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE(); tmp.g10c_1 = InstanceOrNull(this, tmp$ret$0, null).a5d(this, savePasswordUseCase$factory_1()); this.h10c_1 = new ValidateUsernameUseCase(); var tmp_1 = this; Companion_getInstance_114(); var tmp0_elvis_lhs = savedStateHandle.ba('next'); var tmp_2; if (tmp0_elvis_lhs == null) { Companion_getInstance_138(); tmp_2 = 'CourseListHome'; } else { tmp_2 = tmp0_elvis_lhs; } tmp_1.i10c_1 = tmp_2; this.j10c_1 = asStateFlow(this.f10c_1); 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$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(); tmp_3.k10c_1 = Instance(this, tmp$ret$2, null).a5d(this, apiUrlConfig$factory_15()); var tmp_5 = this; tmp_5.l10c_1 = toBoolean(savedStateHandle.ba('isparent')); var tmp_6 = this; Companion_getInstance_211(); tmp_6.m10c_1 = toBoolean(savedStateHandle.ba('isMinor')); var tmp_7 = this; Companion_getInstance_114(); var tmp0_elvis_lhs_0 = savedStateHandle.ba('learningSpaceUrl'); var tmp1_elvis_lhs = tmp0_elvis_lhs_0 == null ? _get_apiUrlConfig__mldllg_7(this).xo6_1 : tmp0_elvis_lhs_0; tmp_7.n10c_1 = tmp1_elvis_lhs == null ? 'http://localhost' : tmp1_elvis_lhs; var tmp_8 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context = new LearningSpace(this.n10c_1); var trigger = di.d57(); // 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$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE(); var tmp$ret$5 = tmp_9.h57(tmp$ret$4, context); var tmp$ret$6 = On(di, tmp$ret$5, trigger); var tmp_11 = get_direct(tmp$ret$6).f58(); // Inline function 'org.kodein.type.generic' call var tmp_12 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$7 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE(); tmp_8.o10c_1 = tmp_11.d58(tmp$ret$7, null); var tmp_13 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.type.generic' call var tmp_14 = typeToken(createKType(getKClass(GenderConfig), arrayOf([]), false)); var tmp$ret$9 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE(); tmp_13.p10c_1 = Instance(this, tmp$ret$9, null).a5d(this, genderConfig$factory_5()); var tmp_15 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_0 = new LearningSpace(this.n10c_1); var trigger_0 = di.d57(); // 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$11 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE(); var tmp$ret$12 = tmp_16.h57(tmp$ret$11, context_0); var tmp$ret$13 = On(di, tmp$ret$12, trigger_0); var tmp_18 = get_direct(tmp$ret$13).f58(); // Inline function 'org.kodein.type.generic' call var tmp_19 = typeToken(createKType(getKClass(EnrollToCourseFromInviteCodeUseCase), arrayOf([]), false)); var tmp$ret$14 = isInterface(tmp_19, TypeToken) ? tmp_19 : THROW_CCE(); tmp_15.q10c_1 = tmp_18.d58(tmp$ret$14, null); var tmp_20 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_1 = new LearningSpace(this.n10c_1); var trigger_1 = this.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_21 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_22 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$16 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE(); var tmp$ret$17 = tmp_21.h57(tmp$ret$16, context_1); var this_0 = On(this, tmp$ret$17, trigger_1); // Inline function 'org.kodein.type.generic' call var tmp_23 = typeToken(createKType(getKClass(EnqueueSavePictureUseCase), arrayOf([]), false)); var tmp$ret$19 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE(); tmp_20.r10c_1 = Instance(this_0, tmp$ret$19, null).a5d(this, enqueueSavePictureUseCase$factory_3()); var tmp_24 = this; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var context_2 = new LearningSpace(this.n10c_1); var trigger_2 = di.d57(); // Inline function 'org.kodein.di.diContext' call var tmp_25 = Companion_instance_0; // Inline function 'org.kodein.type.generic' call var tmp_26 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$21 = isInterface(tmp_26, TypeToken) ? tmp_26 : THROW_CCE(); var tmp$ret$22 = tmp_25.h57(tmp$ret$21, context_2); var tmp$ret$23 = On(di, tmp$ret$22, trigger_2); var tmp_27 = get_direct(tmp$ret$23).f58(); // Inline function 'org.kodein.type.generic' call var tmp_28 = typeToken(createKType(getKClass(SendConsentRequestToParentUseCase), arrayOf([]), false)); var tmp$ret$24 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE(); tmp_24.s10c_1 = tmp_27.d58(tmp$ret$24, null); this.oqk(Companion_getInstance_96().iq3_1); var title = this.mqk().eog(strings_getInstance().gn3_1); var tmp_29 = this.dqk(); launch(tmp_29, VOID, VOID, SignupEnterUsernamePasswordViewModel$slambda_0(this, savedStateHandle, null)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_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.y1k(prevValue, nextValue)) { break $l$block; } } } Companion_getInstance_211(); if (savedStateHandle.ba('personalAccount') === 'true') { $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_2 = this.f10c_1; while (true) { var prevValue_0 = this_2.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.' call var nextValue_0 = prevValue_0.h10e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, true); if (this_2.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } var tmp_30 = this; Companion_getInstance_167(); tmp_30.i10c_1 = 'ContentEntryListHome'; } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_3 = this.f10c_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).aq4_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.f10c_1.t2().g10d_1; var tmp5_person = new Person(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_isPersonalAccount, tmp2_dateOfBirth); var nextValue_1 = prevValue_1.h10e(tmp5_person, VOID, tmp4_genderOptions); if (this_3.y1k(prevValue_1, nextValue_1)) { break $l$block_1; } } } } protoOf(SignupEnterUsernamePasswordViewModel).wz6 = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.f10c_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.t10c_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g96_1; var nextValue = prevValue.h10e(entity, VOID, VOID, VOID, VOID, this.xqq(tmp, entity == null ? null : entity.g96_1, prevValue.y10c_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_3.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.dqk(); tmp_0.tqp_1 = launch(tmp_1, VOID, VOID, SignupEnterUsernamePasswordViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SignupEnterUsernamePasswordViewModel).szm = function (password) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.f10c_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onPasswordChanged.' call var nextValue = prevValue.h10e(VOID, password, VOID, VOID, VOID, VOID, VOID, null); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SignupEnterUsernamePasswordViewModel).d10g = function () { this.oqk(Companion_getInstance_96().iq3_1); var tmp0_safe_receiver = this.f10c_1.t2().z10c_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.f10c_1.t2().t10c_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.wz6(tmp_3); var tmp6_elvis_lhs = this.f10c_1.t2().t10c_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.f10c_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.signup.SignupEnterUsernamePasswordViewModel.onClickedSignupEnterUsernamePassword.' call var tmp_5; var tmp0_elvis_lhs = savePerson.g96_1; if (!this.h10c_1.loe(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs)) { tmp_5 = this.mqk().eog(strings_getInstance().wml_1); } else { tmp_5 = null; } var tmp_6 = tmp_5; var tmp_7; // Inline function 'kotlin.text.isNullOrEmpty' call var this_1 = prevValue.u10c_1; // Inline function 'kotlin.contracts.contract' call if (this_1 == null ? true : charSequenceLength(this_1) === 0) { tmp_7 = this.mqk().eog(strings_getInstance().hmj_1); } else { tmp_7 = null; } var nextValue = prevValue.h10e(VOID, VOID, VOID, VOID, VOID, tmp_6, VOID, tmp_7); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } if (hasErrors_6(this.f10c_1.t2(), this)) { this.oqk(Companion_getInstance_96().jq3_1); return Unit_instance; } var tmp_8 = this.dqk(); launch(tmp_8, VOID, VOID, SignupEnterUsernamePasswordViewModel$onClickedSignupEnterUsernamePassword$slambda_0(this, savePerson, null)); }; function SignupEnterUsernamePasswordUiState(person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) { person = person === VOID ? null : person; password = password === VOID ? null : password; genderOptions = genderOptions === VOID ? PersonConstants_getInstance_0().cq4_1 : genderOptions; personPicture = personPicture === VOID ? null : personPicture; registrationMode = registrationMode === VOID ? 0 : registrationMode; usernameError = usernameError === VOID ? null : usernameError; 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.t10c_1 = person; this.u10c_1 = password; this.v10c_1 = genderOptions; this.w10c_1 = personPicture; this.x10c_1 = registrationMode; this.y10c_1 = usernameError; this.z10c_1 = firstName; this.a10d_1 = passwordError; this.b10d_1 = dateOfBirthError; this.c10d_1 = parentContactError; this.d10d_1 = genderError; this.e10d_1 = fullNameError; this.f10d_1 = passkeySupported; this.g10d_1 = isPersonalAccount; } protoOf(SignupEnterUsernamePasswordUiState).e10g = function (person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) { return new SignupEnterUsernamePasswordUiState(person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount); }; protoOf(SignupEnterUsernamePasswordUiState).h10e = function (person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount, $super) { person = person === VOID ? this.t10c_1 : person; password = password === VOID ? this.u10c_1 : password; genderOptions = genderOptions === VOID ? this.v10c_1 : genderOptions; personPicture = personPicture === VOID ? this.w10c_1 : personPicture; registrationMode = registrationMode === VOID ? this.x10c_1 : registrationMode; usernameError = usernameError === VOID ? this.y10c_1 : usernameError; firstName = firstName === VOID ? this.z10c_1 : firstName; passwordError = passwordError === VOID ? this.a10d_1 : passwordError; dateOfBirthError = dateOfBirthError === VOID ? this.b10d_1 : dateOfBirthError; parentContactError = parentContactError === VOID ? this.c10d_1 : parentContactError; genderError = genderError === VOID ? this.d10d_1 : genderError; fullNameError = fullNameError === VOID ? this.e10d_1 : fullNameError; passkeySupported = passkeySupported === VOID ? this.f10d_1 : passkeySupported; isPersonalAccount = isPersonalAccount === VOID ? this.g10d_1 : isPersonalAccount; return $super === VOID ? this.e10g(person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount) : $super.e10g.call(this, person, password, genderOptions, personPicture, registrationMode, usernameError, firstName, passwordError, dateOfBirthError, parentContactError, genderError, fullNameError, passkeySupported, isPersonalAccount); }; protoOf(SignupEnterUsernamePasswordUiState).toString = function () { return 'SignupEnterUsernamePasswordUiState(person=' + this.t10c_1 + ', password=' + this.u10c_1 + ', genderOptions=' + this.v10c_1 + ', personPicture=' + this.w10c_1 + ', registrationMode=' + this.x10c_1 + ', usernameError=' + this.y10c_1 + ', firstName=' + this.z10c_1 + ', passwordError=' + this.a10d_1 + ', dateOfBirthError=' + this.b10d_1 + ', parentContactError=' + this.c10d_1 + ', genderError=' + this.d10d_1 + ', fullNameError=' + this.e10d_1 + ', passkeySupported=' + this.f10d_1 + ', isPersonalAccount=' + this.g10d_1 + ')'; }; protoOf(SignupEnterUsernamePasswordUiState).hashCode = function () { var result = this.t10c_1 == null ? 0 : this.t10c_1.hashCode(); result = imul(result, 31) + (this.u10c_1 == null ? 0 : getStringHashCode(this.u10c_1)) | 0; result = imul(result, 31) + hashCode(this.v10c_1) | 0; result = imul(result, 31) + (this.w10c_1 == null ? 0 : this.w10c_1.hashCode()) | 0; result = imul(result, 31) + this.x10c_1 | 0; result = imul(result, 31) + (this.y10c_1 == null ? 0 : getStringHashCode(this.y10c_1)) | 0; result = imul(result, 31) + (this.z10c_1 == null ? 0 : getStringHashCode(this.z10c_1)) | 0; result = imul(result, 31) + (this.a10d_1 == null ? 0 : getStringHashCode(this.a10d_1)) | 0; result = imul(result, 31) + (this.b10d_1 == null ? 0 : getStringHashCode(this.b10d_1)) | 0; result = imul(result, 31) + (this.c10d_1 == null ? 0 : getStringHashCode(this.c10d_1)) | 0; result = imul(result, 31) + (this.d10d_1 == null ? 0 : getStringHashCode(this.d10d_1)) | 0; result = imul(result, 31) + (this.e10d_1 == null ? 0 : getStringHashCode(this.e10d_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.f10d_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.g10d_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.t10c_1, tmp0_other_with_cast.t10c_1)) return false; if (!(this.u10c_1 == tmp0_other_with_cast.u10c_1)) return false; if (!equals(this.v10c_1, tmp0_other_with_cast.v10c_1)) return false; if (!equals(this.w10c_1, tmp0_other_with_cast.w10c_1)) return false; if (!(this.x10c_1 === tmp0_other_with_cast.x10c_1)) return false; if (!(this.y10c_1 == tmp0_other_with_cast.y10c_1)) return false; if (!(this.z10c_1 == tmp0_other_with_cast.z10c_1)) return false; if (!(this.a10d_1 == tmp0_other_with_cast.a10d_1)) return false; if (!(this.b10d_1 == tmp0_other_with_cast.b10d_1)) return false; if (!(this.c10d_1 == tmp0_other_with_cast.c10d_1)) return false; if (!(this.d10d_1 == tmp0_other_with_cast.d10d_1)) return false; if (!(this.e10d_1 == tmp0_other_with_cast.e10d_1)) return false; if (!(this.f10d_1 === tmp0_other_with_cast.f10d_1)) return false; if (!(this.g10d_1 === tmp0_other_with_cast.g10d_1)) return false; return true; }; function savePasswordUseCase$factory_1() { return getPropertyCallableRef('savePasswordUseCase', 1, KProperty1, function (receiver) { return _get_savePasswordUseCase__awoktu_0(receiver); }, null); } function apiUrlConfig$factory_15() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_7(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 savePasswordUseCase$factory_2() { return getPropertyCallableRef('savePasswordUseCase', 1, KProperty1, function (receiver) { return _get_savePasswordUseCase__awoktu_0(receiver); }, null); } function apiUrlConfig$factory_16() { return getPropertyCallableRef('apiUrlConfig', 1, KProperty1, function (receiver) { return _get_apiUrlConfig__mldllg_7(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).p10g = function (site, hasAdminPermission, $completion) { var tmp = this.q10g(site, hasAdminPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).um = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof Site) ? p1 : THROW_CCE(); return this.p10g(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.n10g_1, this.o10g_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda).q10g = function (site, hasAdminPermission, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda(completion); i.n10g_1 = site; i.o10g_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.p10g(site, hasAdminPermission, $completion); }; l.$arity = 2; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.z10g_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_1).b10h = function (it, $completion) { var tmp = this.c10h(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.b10h(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.a10h_1; var entity = tmp0_container.y6(); var hasEditSitePermission = tmp0_container.z6(); l$ret$1: do { var this_0 = this.z10g_1.z10h_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.d10i(entity); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.z10g_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(prevValue_0.mq2_1.hq3(!(this.a10h_1.w6_1 == null) ? hasEditSitePermission : false)); if (this_1.y1k(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).c10h = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_1(this.z10g_1, completion); i.a10h_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.b10h(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, $uiLangList, resultContinuation) { this.m10i_1 = this$0; this.n10i_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda$slambda_3).p10i = function (it, $completion) { var tmp = this.q10i(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.p10i((!(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.m10i_1.z10h_1; while (true) { var prevValue = this_0.t2(); var this_1 = this.o10i_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.n10i_1.w(); while (tmp0_iterator_0.f()) { var element_0 = tmp0_iterator_0.e(); if (element_0.wq0_1 === element.vho_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.xq0_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.d10i(VOID, destination); if (this_0.y1k(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).q10i = function (it, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda$slambda_3(this.m10i_1, this.n10i_1, completion); i.o10i_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.p10i(it, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda($siteFlow, $permissionFlow, this$0, resultContinuation) { this.z10i_1 = $siteFlow; this.a10j_1 = $permissionFlow; this.b10j_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.z10i_1, this.a10j_1, SiteDetailViewModel$slambda$slambda$slambda$slambda_0(null)); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_2(this.b10j_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_38(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).v1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda(this.z10i_1, this.a10j_1, this.b10j_1, completion); i.c10j_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda$slambda_1(this$0, $uiLangList, resultContinuation) { this.l10j_1 = this$0; this.m10j_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.l10j_1.iqk().w7e().vhn(1); var tmp_1 = SiteDetailViewModel$slambda$slambda$slambda$slambda_4(this.l10j_1, this.m10j_1, null); suspendResult = tmp_0.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_38(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).v1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda$slambda$slambda_1(this.l10j_1, this.m10j_1, completion); i.n10j_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel$slambda$slambda(this$0, $this_launch, $uiLangList, resultContinuation) { this.w10j_1 = this$0; this.x10j_1 = $this_launch; this.y10j_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.w10j_1.iqk().v7e().chj(); var tmp_0 = this.w10j_1.iqk().p7f(); var tmp_1 = this.w10j_1.eqk(); PermissionFlags_getInstance(); var permissionFlow = tmp_0.khw(tmp_1, new Long(16384, 0)); launch(this.x10j_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_0(siteFlow, permissionFlow, this.w10j_1, null)); launch(this.x10j_1, VOID, VOID, SiteDetailViewModel$slambda$slambda$slambda_2(this.w10j_1, this.y10j_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).l78 = function (completion) { return new SiteDetailViewModel$slambda$slambda(this.w10j_1, this.x10j_1, this.y10j_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.j87($completion); }; l.$arity = 0; return l; } function Companion_196() { this.z10j_1 = 'Community'; } var Companion_instance_245; function Companion_getInstance_213() { return Companion_instance_245; } function sam$kotlinx_coroutines_flow_FlowCollector$0_38(function_0) { this.a10k_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_38).t1d = function (value, $completion) { return this.a10k_1(value, $completion); }; function SiteDetailViewModel$onClickEdit$ref($boundThis) { var l = function () { $boundThis.mwz(); return Unit_instance; }; l.callableName = 'onClickEdit'; return l; } function SiteDetailViewModel$slambda(this$0, $uiLangList, resultContinuation) { this.j10k_1 = this$0; this.k10k_1 = $uiLangList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.j10k_1.z10h_1, SiteDetailViewModel$slambda$slambda_0(this.j10k_1, this.l10k_1, this.k10k_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).v1m = function ($this$launch, completion) { var i = new SiteDetailViewModel$slambda(this.j10k_1, this.k10k_1, completion); i.l10k_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Community'); this.z10h_1 = MutableStateFlow(new SiteDetailUiState()); this.a10i_1 = asStateFlow(this.z10h_1); // Inline function 'org.kodein.di.instance' call var tmp = get_direct(this).f58(); // 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.d58(tmp$ret$0, null); var uiLangList = supportLangConfig.ppj_1; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.detail.SiteDetailViewModel.' call var tmp0_text = this.mqk().eog(strings_getInstance().fmr_1); var tmp1_onClick = SiteDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.bq3(new FabUiState(false, tmp0_text, tmp2_icon, tmp1_onClick), VOID, this.mqk().eog(strings_getInstance().pn5_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_1 = this.dqk(); launch(tmp_1, VOID, VOID, SiteDetailViewModel$slambda_0(this, uiLangList, null)); } protoOf(SiteDetailViewModel).mwz = function () { Companion_getInstance_123(); var tmp0_safe_receiver = this.z10h_1.t2().b10i_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ghj_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString(); this.oqj_1.fp3('SiteEdit', mapOf_0(to('entityUid', tmp2_elvis_lhs == null ? '-1' : tmp2_elvis_lhs))); }; protoOf(SiteDetailViewModel).m10k = function (termsAndLang) { var tmp0_elvis_lhs = termsAndLang.kk6_1.vho_1; this.oqj_1.fp3('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.b10i_1 = site; this.c10i_1 = siteTerms; } protoOf(SiteDetailUiState).n10k = function (site, siteTerms) { return new SiteDetailUiState(site, siteTerms); }; protoOf(SiteDetailUiState).d10i = function (site, siteTerms, $super) { site = site === VOID ? this.b10i_1 : site; siteTerms = siteTerms === VOID ? this.c10i_1 : siteTerms; return $super === VOID ? this.n10k(site, siteTerms) : $super.n10k.call(this, site, siteTerms); }; protoOf(SiteDetailUiState).toString = function () { return 'SiteDetailUiState(site=' + this.b10i_1 + ', siteTerms=' + this.c10i_1 + ')'; }; protoOf(SiteDetailUiState).hashCode = function () { var result = this.b10i_1 == null ? 0 : hashCode(this.b10i_1); result = imul(result, 31) + hashCode(this.c10i_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.b10i_1, tmp0_other_with_cast.b10i_1)) return false; if (!equals(this.c10i_1, tmp0_other_with_cast.c10i_1)) return false; return true; }; function SiteEditViewModel$slambda$slambda$slambda(this$0, resultContinuation) { this.w10k_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda$slambda).gq7 = function (it, $completion) { var tmp = this.hq7(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.gq7(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.x10k_1.nq6_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.w10k_1.z10l(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).hq7 = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda$slambda(this.w10k_1, completion); i.x10k_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.gq7(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda).j10m = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.j10m(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.i10m_1.v7e().bhj(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).env = function (db, completion) { var i = new SiteEditViewModel$slambda$slambda(completion); i.i10m_1 = db; return i; }; function SiteEditViewModel$slambda$slambda_0(resultContinuation) { var i = new SiteEditViewModel$slambda$slambda(resultContinuation); var l = function (db, $completion) { return i.j10m(db, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_1).jhl = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.jhl($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).l78 = 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.jhl($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.v10l_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.a10n(it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda$slambda_3($supportedLangCodes, resultContinuation) { this.j10n_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_3).l10n = function (it, $completion) { var tmp = this.env(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.l10n(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.k10n_1.w7e().whn(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.j10n_1, element.vho_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.vho_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.j10n_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.vho_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).env = function (it, completion) { var i = new SiteEditViewModel$slambda$slambda_3(this.j10n_1, completion); i.k10n_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.l10n(it, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$slambda$slambda_5(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_5).u10n = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda$slambda_5).m78 = function ($completion) { return this.u10n($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).l78 = 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.u10n($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.v10l_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel...' call var nextValue = prevValue.a10n(VOID, it == null ? emptyList() : it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SiteEditViewModel$slambda$slambda_7(this$0, resultContinuation) { this.d10o_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda$slambda_7).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.d10o_1.qqk(this.d10o_1.jqk(), 'siteTermsHtml'); var tmp_1 = SiteEditViewModel$slambda$slambda$slambda_0(this.d10o_1, null); suspendResult = tmp_0.a1c(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(SiteEditViewModel$slambda$slambda_7).v1m = function ($this$launch, completion) { var i = new SiteEditViewModel$slambda$slambda_7(this.d10o_1, completion); i.e10o_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.u1m($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.uho_1; var this_0 = tmp0_safe_receiver == null ? null : htmlToPlainText(tmp0_safe_receiver); // Inline function 'kotlin.contracts.contract' call tmp.xho_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.x10l_1; languagesConfig$factory_2(); return this_0.t2(); } function Companion_197() { this.f10o_1 = 'SiteEdit'; this.g10o_1 = 'siteTermsLang'; this.h10o_1 = 'termsList'; this.i10o_1 = 'siteTermsHtml'; } var Companion_instance_246; function Companion_getInstance_214() { return Companion_instance_246; } function sam$kotlinx_coroutines_flow_FlowCollector$0_39(function_0) { this.j10o_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_39).t1d = function (value, $completion) { return this.j10o_1(value, $completion); }; function SiteEditViewModel$slambda(this$0, resultContinuation) { this.s10o_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda).vs5 = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.t10o_1.p7f(); var tmp_1 = this.s10o_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.jhw(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).env = function (db, completion) { var i = new SiteEditViewModel$slambda(this.s10o_1, completion); i.t10o_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.vs5(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.v10l_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel..' call var nextValue = prevValue.a10n(VOID, VOID, VOID, enabled); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SiteEditViewModel$slambda_1(this$0, $supportedLangCodes, resultContinuation) { this.c10p_1 = this$0; this.d10p_1 = $supportedLangCodes; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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.n4r(); var tmp_1 = SiteEditViewModel$slambda$slambda_0(null); var tmp_2 = SiteEditViewModel$slambda$slambda_2(null); suspendResult = this.c10p_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, SiteEditViewModel$slambda$lambda(this.c10p_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_3 = ListSerializer(Companion_instance_47.n4r()); var tmp_4 = listOf_0('termsList'); var tmp_5 = SiteEditViewModel$slambda$slambda_4(this.d10p_1, null); var tmp_6 = SiteEditViewModel$slambda$slambda_6(null); suspendResult = this.c10p_1.vqk(tmp_3, tmp_4, 'termsList', tmp_5, tmp_6, SiteEditViewModel$slambda$lambda_0(this.c10p_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: l$ret$1: do { var this_0 = this.c10p_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_7 = this.c10p_1.mqk().eog(strings_getInstance().tmy_1); var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_7, VOID, SiteEditViewModel$onClickSave$ref(this.c10p_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); launch(this.e10p_1, VOID, VOID, SiteEditViewModel$slambda$slambda_8(this.c10p_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).v1m = function ($this$launchIfHasPermission, completion) { var i = new SiteEditViewModel$slambda_1(this.c10p_1, this.d10p_1, completion); i.e10p_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.u1m($this$launchIfHasPermission, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onChangeTermsHtml$lambda($html) { return function ($this$shallowCopy) { $this$shallowCopy.uho_1 = $html; return Unit_instance; }; } function SiteEditViewModel$onChangeTermsHtml$lambda_0($prev) { return function (it) { return it.vho_1 === $prev.y10m_1.wq0_1; }; } function SiteEditViewModel$onChangeTermsHtml$slambda(this$0, $newTerms, resultContinuation) { this.n10p_1 = this$0; this.o10p_1 = $newTerms; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onChangeTermsHtml$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.n10p_1.sqk(this.n10p_1.mqj_1, 'termsList', ListSerializer(Companion_instance_47.n4r()), this.o10p_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).v1m = function ($this$launch, completion) { var i = new SiteEditViewModel$onChangeTermsHtml$slambda(this.n10p_1, this.o10p_1, completion); i.p10p_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onEntityChanged$slambda($commitDelay, $entity, $this, $key, $serializer, resultContinuation) { this.y10p_1 = $commitDelay; this.z10p_1 = $entity; this.a10q_1 = $this; this.b10q_1 = $key; this.c10q_1 = $serializer; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onEntityChanged$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.y10p_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: if (!(this.z10p_1 == null)) { this.hd_1 = 2; suspendResult = this.a10q_1.sqk(this.a10q_1.mqj_1, this.b10q_1, this.c10q_1, this.z10p_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).v1m = function ($this$launch, completion) { var i = new SiteEditViewModel$onEntityChanged$slambda(this.y10p_1, this.z10p_1, this.a10q_1, this.b10q_1, this.c10q_1, completion); i.d10q_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel$onClickSave$slambda(this$0, $siteToSave, resultContinuation) { this.m10q_1 = this$0; this.n10q_1 = $siteToSave; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteEditViewModel$onClickSave$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.m10q_1.iqk().v7e().dhj(this.n10q_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.m10q_1.iqk().w7e(); var this_0 = this.m10q_1.v10l_1.t2().t10m_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.uho_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.tho_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.xhn(destination_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.m10q_1.wqp('Community', this.n10q_1.ghj_1, this.n10q_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).v1m = function ($this$launch, completion) { var i = new SiteEditViewModel$onClickSave$slambda(this.m10q_1, this.n10q_1, completion); i.o10q_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SiteEdit'); this.v10l_1 = MutableStateFlow(new SiteEditUiState()); this.w10l_1 = asStateFlow(this.v10l_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.x10l_1 = Instance(this, tmp$ret$0, null).a5d(this, languagesConfig$factory_1()); this.y10l_1 = null; var supportedLangs = _get_languagesConfig__hebcss_0(this).ppj_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.wq0_1; destination.i1(tmp$ret$2); } var supportedLangCodes = destination; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.' call var tmp0_title = this.mqk().eog(strings_getInstance().on5_1); var nextValue = prevValue.bq3(VOID, VOID, tmp0_title, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_1: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.v10l_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.wq0_1 === (tmp0_elvis_lhs == null ? _get_languagesConfig__hebcss_0(this).rpj_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.a10n(VOID, VOID, supportedLangs, VOID, VOID, VOID, tmp$ret$8); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_1; } } } var tmp_1 = SiteEditViewModel$slambda_0(this, null); var tmp_2 = SiteEditViewModel$lambda(this); this.xqk(tmp_1, true, tmp_2, SiteEditViewModel$slambda_2(this, supportedLangCodes, null)); } protoOf(SiteEditViewModel).p10q = function (uiLang) { this.mqj_1.qqf('siteTermsLang', uiLang.wq0_1); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.v10l_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onChangeTermsLanguage.' call var nextValue = prevValue.a10n(VOID, VOID, VOID, VOID, VOID, VOID, uiLang); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SiteEditViewModel).z10l = function (html) { var tmp0_elvis_lhs = this.v10l_1.t2().q10q(); 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.v10l_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.a10n(VOID, replace_0(prevValue.t10m_1, tmp_0, SiteEditViewModel$onChangeTermsHtml$lambda_0(prevValue)), VOID, VOID, VOID, null); if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = nextValue; break $l$block; } } } var newTerms = tmp$ret$1.t10m_1; var tmp1_safe_receiver = this.y10l_1; if (tmp1_safe_receiver == null) null; else { tmp1_safe_receiver.mr(); } var tmp_1 = this; var tmp_2 = this.dqk(); tmp_1.y10l_1 = launch(tmp_2, VOID, VOID, SiteEditViewModel$onChangeTermsHtml$slambda_0(this, newTerms, null)); }; protoOf(SiteEditViewModel).r10q = function (entity) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.v10l_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onEntityChanged.' call var tmp0_safe_receiver = prevValue.s10m_1; var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lhj_1; var nextValue = prevValue.a10n(entity, VOID, VOID, VOID, this.xqq(tmp, entity == null ? null : entity.lhj_1, prevValue.w10m_1)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } // Inline function 'com.ustadmobile.core.viewmodel.UstadEditViewModel.scheduleEntityCommitToSavedState' call var serializer = Companion_instance_31.n4r(); var commitDelay = new Long(200, 0); Companion_getInstance_123(); var key = 'entityState'; var tmp0_safe_receiver_0 = this.tqp_1; if (tmp0_safe_receiver_0 == null) null; else { tmp0_safe_receiver_0.mr(); } var tmp_0 = this; var tmp_1 = this.dqk(); tmp_0.tqp_1 = launch(tmp_1, VOID, VOID, SiteEditViewModel$onEntityChanged$slambda_0(commitDelay, entity, this, key, serializer, null)); }; protoOf(SiteEditViewModel).js3 = function () { var tmp0_elvis_lhs = this.v10l_1.t2().s10m_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.lhj_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.v10l_1; while (true) { var prevValue = this_1.t2(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditViewModel.onClickSave.' call var nextValue = prevValue.a10n(VOID, VOID, VOID, VOID, this.mqk().eog(strings_getInstance().lnh_1)); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } } // Inline function 'kotlin.collections.map' call var this_2 = this.v10l_1.t2().t10m_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.vho_1; var tmp_0 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs; var tmp0_safe_receiver = item.uho_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.nhj_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.v10l_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.a10n(VOID, VOID, VOID, VOID, VOID, this.mqk().eog(strings_getInstance().wnh_1)); if (this_3.y1k(prevValue_0, nextValue_0)) { break $l$block_2; } } } } if (this.v10l_1.t2().z10m_1) return Unit_instance; var tmp_2 = this.dqk(); 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.s10m_1 = site; this.t10m_1 = siteTerms; this.u10m_1 = uiLangs; this.v10m_1 = fieldsEnabled; this.w10m_1 = siteNameError; this.x10m_1 = registrationEnabledError; this.y10m_1 = currentSiteTermsLang; this.z10m_1 = !(this.w10m_1 == null) ? true : !(this.x10m_1 == null); } protoOf(SiteEditUiState).q10q = function () { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = this.t10m_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); // Inline function 'com.ustadmobile.core.viewmodel.site.edit.SiteEditUiState..' call if (element.vho_1 === this.y10m_1.wq0_1) { tmp$ret$1 = element; break $l$block; } } tmp$ret$1 = null; } return tmp$ret$1; }; protoOf(SiteEditUiState).s10q = function () { var tmp0_safe_receiver = this.q10q(); return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uho_1; }; protoOf(SiteEditUiState).t10q = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) { return new SiteEditUiState(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).a10n = function (site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang, $super) { site = site === VOID ? this.s10m_1 : site; siteTerms = siteTerms === VOID ? this.t10m_1 : siteTerms; uiLangs = uiLangs === VOID ? this.u10m_1 : uiLangs; fieldsEnabled = fieldsEnabled === VOID ? this.v10m_1 : fieldsEnabled; siteNameError = siteNameError === VOID ? this.w10m_1 : siteNameError; registrationEnabledError = registrationEnabledError === VOID ? this.x10m_1 : registrationEnabledError; currentSiteTermsLang = currentSiteTermsLang === VOID ? this.y10m_1 : currentSiteTermsLang; return $super === VOID ? this.t10q(site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang) : $super.t10q.call(this, site, siteTerms, uiLangs, fieldsEnabled, siteNameError, registrationEnabledError, currentSiteTermsLang); }; protoOf(SiteEditUiState).toString = function () { return 'SiteEditUiState(site=' + this.s10m_1 + ', siteTerms=' + this.t10m_1 + ', uiLangs=' + this.u10m_1 + ', fieldsEnabled=' + this.v10m_1 + ', siteNameError=' + this.w10m_1 + ', registrationEnabledError=' + this.x10m_1 + ', currentSiteTermsLang=' + this.y10m_1 + ')'; }; protoOf(SiteEditUiState).hashCode = function () { var result = this.s10m_1 == null ? 0 : hashCode(this.s10m_1); result = imul(result, 31) + hashCode(this.t10m_1) | 0; result = imul(result, 31) + hashCode(this.u10m_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.v10m_1) | 0; result = imul(result, 31) + (this.w10m_1 == null ? 0 : getStringHashCode(this.w10m_1)) | 0; result = imul(result, 31) + (this.x10m_1 == null ? 0 : getStringHashCode(this.x10m_1)) | 0; result = imul(result, 31) + this.y10m_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.s10m_1, tmp0_other_with_cast.s10m_1)) return false; if (!equals(this.t10m_1, tmp0_other_with_cast.t10m_1)) return false; if (!equals(this.u10m_1, tmp0_other_with_cast.u10m_1)) return false; if (!(this.v10m_1 === tmp0_other_with_cast.v10m_1)) return false; if (!(this.w10m_1 == tmp0_other_with_cast.w10m_1)) return false; if (!(this.x10m_1 == tmp0_other_with_cast.x10m_1)) return false; if (!this.y10m_1.equals(tmp0_other_with_cast.y10m_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_198() { this.u10q_1 = 'locale'; this.v10q_1 = 'Terms'; } var Companion_instance_247; function Companion_getInstance_215() { return Companion_instance_247; } 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.e10r_1 = $acceptButtonMode; this.f10r_1 = $apiUrl; this.g10r_1 = $di; this.h10r_1 = $learningSpace; this.i10r_1 = this$0; this.j10r_1 = $savedStateHandle; this.k10r_1 = $getLocaleForSiteTermsUseCase$delegate; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SiteTermsDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.e10r_1 ? !(this.f10r_1 == null) : false) { var this_0 = get_direct(this.g10r_1); var context = this.h10r_1; var tmp_2 = this_0.f58(); var tmp_3 = Companion_instance_0; var tmp_4 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp_5 = tmp_2.c58(tmp_3.h57(isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE(), context)).f58(); var tmp_6 = typeToken(createKType(getKClass(UmAppDataLayer), arrayOf([]), false)); tmp_1 = tmp_5.d58(isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE(), null).mjy(); } else { tmp_1 = this.i10r_1.iqk(); } tmp_0.m10r_1 = tmp_1; this.n10r_1 = this.j10r_1.ba('locale'); this.o10r_1 = this.n10r_1; if (this.o10r_1 == null) { this.hd_1 = 1; suspendResult = _init_$lambda(this.k10r_1).upj(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.p10r_1 = this.o10r_1; this.hd_1 = 2; continue $sm; } case 1: this.p10r_1 = suspendResult; this.hd_1 = 2; continue $sm; case 2: this.q10r_1 = this.p10r_1; this.hd_1 = 3; suspendResult = this.m10r_1.w7e().zhn(this.q10r_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.i10r_1.n10s_1; while (true) { var prevValue = this_1.t2(); var nextValue = prevValue.s10s(displayTerms, this.e10r_1); if (this_1.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); } else { l$ret$3: do { var this_2 = this.i10r_1.n10s_1; while (true) { var prevValue_0 = this_2.t2(); var nextValue_0 = prevValue_0.s10s(VOID, VOID, this.i10r_1.mqk().eog(strings_getInstance().mme_1)); if (this_2.y1k(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).v1m = function ($this$launch, completion) { var i = new SiteTermsDetailViewModel$slambda(this.e10r_1, this.f10r_1, this.g10r_1, this.h10r_1, this.i10r_1, this.j10r_1, this.k10r_1, completion); i.l10r_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SiteTermsDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'Terms'); this.n10s_1 = MutableStateFlow(new SiteTermsDetailUiState()); this.o10s_1 = asStateFlow(this.n10s_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_114(); var apiUrl = savedStateHandle.ba('learningSpaceUrl'); var tmp; if (acceptButtonMode ? !(apiUrl == null) : false) { tmp = new LearningSpace(apiUrl); } else { tmp = this.cqk().co7(); } var learningSpace = tmp; // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var trigger = this.d57(); // 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.h57(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).a5d(null, getLocalDelegateReference('getLocaleForSiteTermsUseCase', KProperty0, false, function () { return THROW_ISE(); })); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.qqj_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.mqk().eog(strings_getInstance().in5_1); var nextValue = prevValue.bq3(VOID, VOID, tmp1_title, tmp0_navigationVisible, true, VOID, false); if (this_1.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_3 = this.dqk(); launch(tmp_3, VOID, VOID, SiteTermsDetailViewModel$slambda_0(acceptButtonMode, apiUrl, di, learningSpace, this, savedStateHandle, getLocaleForSiteTermsUseCase$delegate, null)); } protoOf(SiteTermsDetailViewModel).t10s = function () { Companion_getInstance_211(); // 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.aql(this_0, Companion_getInstance_211().qr3_1); Companion_getInstance_123(); this.zqk(this_0, 'next'); var tmp$ret$2 = this_0.f3(); this.oqj_1.fp3('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.p10s_1 = siteTerms; this.q10s_1 = acceptButtonVisible; this.r10s_1 = error; } protoOf(SiteTermsDetailUiState).u10s = function (siteTerms, acceptButtonVisible, error) { return new SiteTermsDetailUiState(siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).s10s = function (siteTerms, acceptButtonVisible, error, $super) { siteTerms = siteTerms === VOID ? this.p10s_1 : siteTerms; acceptButtonVisible = acceptButtonVisible === VOID ? this.q10s_1 : acceptButtonVisible; error = error === VOID ? this.r10s_1 : error; return $super === VOID ? this.u10s(siteTerms, acceptButtonVisible, error) : $super.u10s.call(this, siteTerms, acceptButtonVisible, error); }; protoOf(SiteTermsDetailUiState).toString = function () { return 'SiteTermsDetailUiState(siteTerms=' + this.p10s_1 + ', acceptButtonVisible=' + this.q10s_1 + ', error=' + this.r10s_1 + ')'; }; protoOf(SiteTermsDetailUiState).hashCode = function () { var result = this.p10s_1 == null ? 0 : hashCode(this.p10s_1); result = imul(result, 31) + getBooleanHashCode(this.q10s_1) | 0; result = imul(result, 31) + (this.r10s_1 == null ? 0 : getStringHashCode(this.r10s_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.p10s_1, tmp0_other_with_cast.p10s_1)) return false; if (!(this.q10s_1 === tmp0_other_with_cast.q10s_1)) return false; if (!(this.r10s_1 == tmp0_other_with_cast.r10s_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.s10t_1; httpClient$factory_12(); return this_0.t2(); } function _get_impl__d88w17_2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.t10t_1; impl$factory_6(); return this_0.t2(); } function Companion_199() { Companion_instance_248 = this; this.u10t_1 = 'LearningSpaceEnterLink'; var tmp = this; Companion_getInstance_123(); Companion_getInstance_114(); Companion_getInstance_123(); tmp.v10t_1 = listOf(['next', 'intMsg', 'noSessionChange']); this.w10t_1 = 'stateUrl'; } var Companion_instance_248; function Companion_getInstance_216() { if (Companion_instance_248 == null) new Companion_199(); return Companion_instance_248; } function LearningSpaceEnterLinkViewModel$onClickNext$slambda(this$0, $endpointUrl, $viewName, resultContinuation) { this.f10u_1 = this$0; this.g10u_1 = $endpointUrl; this.h10u_1 = $viewName; CoroutineImpl.call(this, resultContinuation); } protoOf(LearningSpaceEnterLinkViewModel$onClickNext$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.f10u_1), this.g10u_1, VOID, this.f10u_1.m4r(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var site = suspendResult; Companion_getInstance_114(); var tmp_0 = to('learningSpaceUrl', this.g10u_1); Companion_getInstance_114(); var this_0 = this.f10u_1.m4r(); var this_1 = this_0.t45(); var this_2 = serializer(this_1, createKType(getKClass(Site), arrayOf([]), false)); var args = mutableMapOf([tmp_0, to('site', this_0.r45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), site))]); var tmp0_iterator = Companion_getInstance_216().v10t_1.w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); this.f10u_1.zqk(args, element); } this.f10u_1.oqk(Companion_getInstance_96().jq3_1); l$ret$1: do { var this_3 = this.f10u_1.q10t_1; while (true) { var prevValue = this_3.t2(); var nextValue = prevValue.o10u(VOID, true, VOID, null, true); if (this_3.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); var tmp_1; if (equals(this.h10u_1, 'RegisterAgeRedirect')) { tmp_1 = !site.nhj_1; } else { tmp_1 = false; } if (tmp_1) { this.f10u_1.oqk(Companion_getInstance_96().jq3_1); l$ret$3: do { var this_4 = this.f10u_1.q10t_1; while (true) { var prevValue_0 = this_4.t2(); this.f10u_1.oqk(Companion_getInstance_96().jq3_1); var tmp0_linkError = _get_impl__d88w17_2(this.f10u_1).eog(strings_getInstance().fnm_1); var nextValue_0 = prevValue_0.o10u(VOID, true, VOID, tmp0_linkError, true); if (this_4.y1k(prevValue_0, nextValue_0)) { break l$ret$3; } } } while (false); return Unit_instance; } this.f10u_1.oqj_1.fp3(this.h10u_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.k5e(e, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda$lambda(this.g10u_1)); l$ret$5: do { var this_5 = this.f10u_1.q10t_1; while (true) { var prevValue_1 = this_5.t2(); this.f10u_1.oqk(Companion_getInstance_96().jq3_1); var tmp0_linkError_0 = _get_impl__d88w17_2(this.f10u_1).eog(strings_getInstance().jmp_1); var nextValue_1 = prevValue_1.o10u(VOID, false, VOID, tmp0_linkError_0, true); if (this_5.y1k(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).v1m = function ($this$launch, completion) { var i = new LearningSpaceEnterLinkViewModel$onClickNext$slambda(this.f10u_1, this.g10u_1, this.h10u_1, completion); i.i10u_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function LearningSpaceEnterLinkViewModel(di, savedStateHandle) { Companion_getInstance_216(); UstadViewModel.call(this, di, savedStateHandle, 'LearningSpaceEnterLink'); this.q10t_1 = MutableStateFlow(new LearningSpaceEnterLinkUiState()); this.r10t_1 = asStateFlow(this.q10t_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.s10t_1 = Instance(this, tmp$ret$0, null).a5d(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.t10t_1 = Instance(this, tmp$ret$2, null).a5d(this, impl$factory_5()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_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).eog(strings_getInstance().gn8_1); var nextValue = prevValue.bq3(VOID, VOID, tmp0_title, false, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } $l$block_0: { // Inline function 'kotlinx.coroutines.flow.update' call var this_1 = this.q10t_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_216().w10t_1); var nextValue_0 = prevValue_0.o10u(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs); if (this_1.y1k(prevValue_0, nextValue_0)) { break $l$block_0; } } } } protoOf(LearningSpaceEnterLinkViewModel).awe = function () { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.q10t_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onClickNext.' call var nextValue = prevValue.o10u(VOID, VOID, VOID, VOID, false); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp; Companion_getInstance_211(); if (this.mqj_1.ba('newOrExisting') === 'new') { tmp = 'RegisterAgeRedirect'; } else { tmp = 'Login'; } var viewName = tmp; this.oqk(Companion_getInstance_96().iq3_1); var endpointUrl = requirePostfix(requireHttpPrefix(this.q10t_1.t2().j10u_1), '/'); var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, LearningSpaceEnterLinkViewModel$onClickNext$slambda_0(this, endpointUrl, viewName, null)); }; protoOf(LearningSpaceEnterLinkViewModel).p10u = function (siteLink) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.q10t_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.siteenterlink.LearningSpaceEnterLinkViewModel.onSiteLinkUpdated.' call var nextValue = prevValue.o10u(siteLink); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } this.mqj_1.qqf(Companion_getInstance_216().w10t_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.j10u_1 = siteLink; this.k10u_1 = validLink; this.l10u_1 = progressVisible; this.m10u_1 = linkError; this.n10u_1 = fieldsEnabled; } protoOf(LearningSpaceEnterLinkUiState).q10u = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled) { return new LearningSpaceEnterLinkUiState(siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).o10u = function (siteLink, validLink, progressVisible, linkError, fieldsEnabled, $super) { siteLink = siteLink === VOID ? this.j10u_1 : siteLink; validLink = validLink === VOID ? this.k10u_1 : validLink; progressVisible = progressVisible === VOID ? this.l10u_1 : progressVisible; linkError = linkError === VOID ? this.m10u_1 : linkError; fieldsEnabled = fieldsEnabled === VOID ? this.n10u_1 : fieldsEnabled; return $super === VOID ? this.q10u(siteLink, validLink, progressVisible, linkError, fieldsEnabled) : $super.q10u.call(this, siteLink, validLink, progressVisible, linkError, fieldsEnabled); }; protoOf(LearningSpaceEnterLinkUiState).toString = function () { return 'LearningSpaceEnterLinkUiState(siteLink=' + this.j10u_1 + ', validLink=' + this.k10u_1 + ', progressVisible=' + this.l10u_1 + ', linkError=' + this.m10u_1 + ', fieldsEnabled=' + this.n10u_1 + ')'; }; protoOf(LearningSpaceEnterLinkUiState).hashCode = function () { var result = getStringHashCode(this.j10u_1); result = imul(result, 31) + getBooleanHashCode(this.k10u_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.l10u_1) | 0; result = imul(result, 31) + (this.m10u_1 == null ? 0 : getStringHashCode(this.m10u_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.n10u_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.j10u_1 === tmp0_other_with_cast.j10u_1)) return false; if (!(this.k10u_1 === tmp0_other_with_cast.k10u_1)) return false; if (!(this.l10u_1 === tmp0_other_with_cast.l10u_1)) return false; if (!(this.m10u_1 == tmp0_other_with_cast.m10u_1)) return false; if (!(this.n10u_1 === tmp0_other_with_cast.n10u_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().snj_1; PermissionFlags_getInstance(); var tmp_1 = to(tmp_0, new Long(1024, 0)); var tmp_2 = strings_getInstance().tnj_1; PermissionFlags_getInstance(); var tmp_3 = to(tmp_2, new Long(8192, 0)); var tmp_4 = strings_getInstance().unj_1; PermissionFlags_getInstance(); var tmp_5 = to(tmp_4, new Long(32768, 0)); var tmp_6 = strings_getInstance().znj_1; PermissionFlags_getInstance(); var tmp_7 = to(tmp_6, new Long(131072, 0)); var tmp_8 = strings_getInstance().ynj_1; PermissionFlags_getInstance(); var tmp_9 = to(tmp_8, new Long(4096, 0)); var tmp_10 = strings_getInstance().xnj_1; PermissionFlags_getInstance(); var tmp_11 = to(tmp_10, new Long(512, 0)); var tmp_12 = strings_getInstance().lnj_1; PermissionFlags_getInstance(); var tmp_13 = to(tmp_12, new Long(1, 0)); var tmp_14 = strings_getInstance().mnj_1; PermissionFlags_getInstance(); var tmp_15 = to(tmp_14, new Long(2, 0)); var tmp_16 = strings_getInstance().nnj_1; PermissionFlags_getInstance(); var tmp_17 = to(tmp_16, new Long(4, 0)); var tmp_18 = strings_getInstance().inj_1; PermissionFlags_getInstance(); var tmp_19 = to(tmp_18, new Long(2048, 0)); var tmp_20 = strings_getInstance().onj_1; PermissionFlags_getInstance(); var tmp_21 = to(tmp_20, new Long(8, 0)); var tmp_22 = strings_getInstance().pnj_1; PermissionFlags_getInstance(); var tmp_23 = to(tmp_22, new Long(16, 0)); var tmp_24 = strings_getInstance().qnj_1; PermissionFlags_getInstance(); var tmp_25 = to(tmp_24, new Long(32, 0)); var tmp_26 = strings_getInstance().rnj_1; PermissionFlags_getInstance(); var tmp_27 = to(tmp_26, new Long(64, 0)); var tmp_28 = strings_getInstance().vnj_1; PermissionFlags_getInstance(); var tmp_29 = to(tmp_28, new Long(128, 0)); var tmp_30 = strings_getInstance().wnj_1; PermissionFlags_getInstance(); tmp.r10u_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.khw(accountPersonUid, new Long(-1, 2147483647)); } return tmp; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).c10v = function (entity, hasViewPermission, $completion) { var tmp = this.d10v(entity, hasViewPermission, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda).um = function (p1, p2, $completion) { var tmp = (p1 == null ? true : p1 instanceof SystemPermission) ? p1 : THROW_CCE(); return this.c10v(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.a10v_1; var tmp_0; if (this.b10v_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).d10v = function (entity, hasViewPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda(completion); i.a10v_1 = entity; i.b10v_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.c10v(entity, hasViewPermission, $completion); }; l.$arity = 2; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this$0, resultContinuation) { this.m10v_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1).o10v = function (it, $completion) { var tmp = this.p10v(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.o10v((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.m10v_1.n10w_1; while (true) { var prevValue = this_0.t2(); var tmp_0; if (!(this.n10v_1 == null)) { tmp_0 = SystemPermissionConstants_getInstance().r10u_1; } else { tmp_0 = emptyList(); } var nextValue = prevValue.r10w(this.n10v_1, tmp_0); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); if (!(this.n10v_1 == null)) { this.hd_1 = 1; suspendResult = this.m10v_1.iqk().n7d().sg2(this.m10v_1.m10w_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.m10v_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.y1k(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).p10v = function (it, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_1(this.m10v_1, completion); i.n10v_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.o10v(it, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this$0, resultContinuation) { this.a10x_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3).yqb = function (hasEditPermission, $completion) { var tmp = this.zqb(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.yqb((!(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.a10x_1.qqj_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.bq3(prevValue.mq2_1.hq3(this.b10x_1)); if (this_0.y1k(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).zqb = function (hasEditPermission, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_3(this.a10x_1, completion); i.b10x_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.yqb(hasEditPermission, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda($entityFlow, $viewPermissionFlow, this$0, resultContinuation) { this.k10x_1 = $entityFlow; this.l10x_1 = $viewPermissionFlow; this.m10x_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.k10x_1, this.l10x_1, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_0(null)); suspendResult = collectLatest(tmp_0, SystemPermissionDetailViewModel$slambda$slambda$slambda$slambda_2(this.m10x_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).v1m = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda(this.k10x_1, this.l10x_1, this.m10x_1, completion); i.n10x_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda$slambda_1($editPermissionFlow, this$0, resultContinuation) { this.w10x_1 = $editPermissionFlow; this.x10x_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.x10x_1, null); suspendResult = this.w10x_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_40(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).v1m = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda$slambda$slambda_1(this.w10x_1, this.x10x_1, completion); i.y10x_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel$slambda$slambda($this_launch, $entityFlow, $viewPermissionFlow, this$0, $editPermissionFlow, resultContinuation) { this.h10y_1 = $this_launch; this.i10y_1 = $entityFlow; this.j10y_1 = $viewPermissionFlow; this.k10y_1 = this$0; this.l10y_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda$slambda).m78 = function ($completion) { return this.j87($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.h10y_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_0(this.i10y_1, this.j10y_1, this.k10y_1, null)); launch(this.h10y_1, VOID, VOID, SystemPermissionDetailViewModel$slambda$slambda$slambda_2(this.l10y_1, this.k10y_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).l78 = function (completion) { return new SystemPermissionDetailViewModel$slambda$slambda(this.h10y_1, this.i10y_1, this.j10y_1, this.k10y_1, this.l10y_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.j87($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_123(); $this.zqk(this_0, 'personUid'); var tmp$ret$2 = this_0.f3(); $this.oqj_1.fp3('SystemPermissionEdit', tmp$ret$2); } function Companion_200() { this.m10y_1 = 'SystemPermission'; } var Companion_instance_249; function Companion_getInstance_217() { return Companion_instance_249; } function sam$kotlinx_coroutines_flow_FlowCollector$0_40(function_0) { this.n10y_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_40).t1d = function (value, $completion) { return this.n10y_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.w10y_1 = this$0; this.x10y_1 = $entityFlow; this.y10y_1 = $viewPermissionFlow; this.z10y_1 = $editPermissionFlow; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDetailViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionDetailViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.w10y_1.n10w_1, SystemPermissionDetailViewModel$slambda$slambda_0(this.a10z_1, this.x10y_1, this.y10y_1, this.w10y_1, this.z10y_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).v1m = function ($this$launch, completion) { var i = new SystemPermissionDetailViewModel$slambda(this.w10y_1, this.x10y_1, this.y10y_1, this.z10y_1, completion); i.a10z_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SystemPermissionDetailViewModel(di, savedStateHandle) { DetailViewModel.call(this, di, savedStateHandle, 'SystemPermission'); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.m10w_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.n10w_1 = MutableStateFlow(new SystemPermissionDetailUiState()); this.o10w_1 = asStateFlow(this.n10w_1); var entityFlow = this.iqk().p7f().hhw(this.m10w_1); var viewPermissionFlow = personHasSystemPermissionAsFlowForUser(this.iqk().p7f(), this.eqk(), this.m10w_1); var tmp_0 = this.iqk().p7f(); var tmp_1 = this.eqk(); PermissionFlags_getInstance(); var editPermissionFlow = tmp_0.khw(tmp_1, new Long(4096, 0)); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.detail.SystemPermissionDetailViewModel.' call var tmp0_text = this.mqk().eog(strings_getInstance().fmr_1); var tmp1_onClick = SystemPermissionDetailViewModel$onClickEdit$ref(this); var tmp2_icon = FabIcon_EDIT_getInstance(); var nextValue = prevValue.bq3(new FabUiState(VOID, tmp0_text, tmp2_icon, tmp1_onClick)); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.dqk(); 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.p10w_1 = systemPermission; this.q10w_1 = permissionLabels; } protoOf(SystemPermissionDetailUiState).r10w = function (systemPermission, permissionLabels) { return new SystemPermissionDetailUiState(systemPermission, permissionLabels); }; protoOf(SystemPermissionDetailUiState).toString = function () { return 'SystemPermissionDetailUiState(systemPermission=' + this.p10w_1 + ', permissionLabels=' + this.q10w_1 + ')'; }; protoOf(SystemPermissionDetailUiState).hashCode = function () { var result = this.p10w_1 == null ? 0 : this.p10w_1.hashCode(); result = imul(result, 31) + hashCode(this.q10w_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.p10w_1, tmp0_other_with_cast.p10w_1)) return false; if (!equals(this.q10w_1, tmp0_other_with_cast.q10w_1)) return false; return true; }; function SystemPermissionEditViewModel$slambda$slambda(this$0, resultContinuation) { this.j10z_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda).l10z = function (db, $completion) { var tmp = this.env(db, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda).he = function (p1, $completion) { return this.l10z(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.k10z_1.p7f().ihw(this.j10z_1.l110_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).env = function (db, completion) { var i = new SystemPermissionEditViewModel$slambda$slambda(this.j10z_1, completion); i.k10z_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.l10z(db, $completion); }; l.$arity = 1; return l; } function SystemPermissionEditViewModel$slambda$slambda_1(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda$slambda_1).uhz = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda$slambda_1).m78 = function ($completion) { return this.uhz($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).l78 = 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.uhz($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.j110_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().r10u_1; } else { tmp = emptyList(); } var nextValue = prevValue.x110(it, VOID, tmp); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$ref($boundThis) { var l = function () { $boundThis.js3(); return Unit_instance; }; l.callableName = 'onClickSave'; return l; } function SystemPermissionEditViewModel$onClickSave$slambda$slambda(this$0, $entity, resultContinuation) { this.g111_1 = this$0; this.h111_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.g111_1.iqk().p7f().ohw(this.h111_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).env = function (it, completion) { var i = new SystemPermissionEditViewModel$onClickSave$slambda$slambda(this.g111_1, this.h111_1, completion); i.i111_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.dnv(it, $completion); }; l.$arity = 1; return l; } function Companion_201() { this.j111_1 = 'SystemPermissionEdit'; } var Companion_instance_250; function Companion_getInstance_218() { return Companion_instance_250; } function SystemPermissionEditViewModel$slambda(this$0, resultContinuation) { this.s111_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda).vs5 = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$slambda).he = function (p1, $completion) { return this.vs5(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.s111_1.iqk().p7f(); var tmp_1 = this.s111_1.eqk(); PermissionFlags_getInstance(); suspendResult = tmp_0.jhw(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).env = function (it, completion) { var i = new SystemPermissionEditViewModel$slambda(this.s111_1, completion); i.t111_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.vs5(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.j110_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel..' call var nextValue = prevValue.x110(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$slambda_1(this$0, resultContinuation) { this.c112_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$slambda_1).u1m = function ($this$launchIfHasPermission, $completion) { var tmp = this.v1m($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.u1m((!(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().n4r(); var tmp_1 = SystemPermissionEditViewModel$slambda$slambda_0(this.c112_1, null); var tmp_2 = SystemPermissionEditViewModel$slambda$slambda_2(null); suspendResult = this.c112_1.wqk(tmp_0, VOID, VOID, tmp_1, tmp_2, SystemPermissionEditViewModel$slambda$lambda(this.c112_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: l$ret$1: do { var this_0 = this.c112_1.qqj_1; while (true) { var prevValue = this_0.t2(); var tmp_3 = this.c112_1.mqk().eog(strings_getInstance().tmy_1); var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new ActionBarButtonUiState(true, tmp_3, VOID, SystemPermissionEditViewModel$onClickSave$ref(this.c112_1))); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); this.hd_1 = 2; suspendResult = this.c112_1.iqk().n7d().sg2(this.c112_1.l110_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var title = suspendResult; l$ret$3: do { var this_1 = this.c112_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = title == null ? null : title.toString(); var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.y1k(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).v1m = function ($this$launchIfHasPermission, completion) { var i = new SystemPermissionEditViewModel$slambda_1(this.c112_1, completion); i.d112_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.u1m($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.j110_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onClickSave..' call var nextValue = prevValue.x110(VOID, it); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } return Unit_instance; }; } function SystemPermissionEditViewModel$onClickSave$slambda(this$0, resultContinuation) { this.m112_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionEditViewModel$onClickSave$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SystemPermissionEditViewModel$onClickSave$slambda).m78 = function ($completion) { return this.j87($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.m112_1.j110_1.t2().u110_1; var tmp_1; if (tmp0_elvis_lhs == null) { return Unit_instance; } else { tmp_1 = tmp0_elvis_lhs; } tmp_0.n112_1 = tmp_1; this.hd_1 = 1; var tmp_2 = this.m112_1.iqk(); suspendResult = withDoorTransactionAsync(tmp_2, VOID, SystemPermissionEditViewModel$onClickSave$slambda$slambda_0(this.m112_1, this.n112_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: Companion_getInstance_114(); this.m112_1.oqj_1.cq6('', 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).l78 = function (completion) { return new SystemPermissionEditViewModel$onClickSave$slambda(this.m112_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.j87($completion); }; l.$arity = 0; return l; } function SystemPermissionEditViewModel(di, savedStateHandle) { UstadEditViewModel.call(this, di, savedStateHandle, 'SystemPermissionEdit'); this.j110_1 = MutableStateFlow(new SystemPermissionEditUiState()); this.k110_1 = asStateFlow(this.j110_1); var tmp = this; Companion_getInstance_123(); var tmp0_safe_receiver = savedStateHandle.ba('personUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.l110_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.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = SystemPermissionEditViewModel$slambda_0(this, null); var tmp_1 = SystemPermissionEditViewModel$lambda(this); this.yqk(tmp_0, VOID, tmp_1, SystemPermissionEditViewModel$slambda_2(this, null)); } protoOf(SystemPermissionEditViewModel).mt0 = function (flag) { $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.j110_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.systempermission.edit.SystemPermissionEditViewModel.onTogglePermission.' call var tmp0_safe_receiver = prevValue.u110_1; var nextValue = prevValue.x110(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nkt(VOID, VOID, VOID, toggleFlag(prevValue.u110_1.ghx_1, flag))); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } }; protoOf(SystemPermissionEditViewModel).js3 = function () { var tmp = SystemPermissionEditViewModel$onClickSave$lambda(this); this.zqq(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.u110_1 = entity; this.v110_1 = fieldsEnabled; this.w110_1 = permissionLabels; } protoOf(SystemPermissionEditUiState).o112 = function (entity, fieldsEnabled, permissionLabels) { return new SystemPermissionEditUiState(entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).x110 = function (entity, fieldsEnabled, permissionLabels, $super) { entity = entity === VOID ? this.u110_1 : entity; fieldsEnabled = fieldsEnabled === VOID ? this.v110_1 : fieldsEnabled; permissionLabels = permissionLabels === VOID ? this.w110_1 : permissionLabels; return $super === VOID ? this.o112(entity, fieldsEnabled, permissionLabels) : $super.o112.call(this, entity, fieldsEnabled, permissionLabels); }; protoOf(SystemPermissionEditUiState).toString = function () { return 'SystemPermissionEditUiState(entity=' + this.u110_1 + ', fieldsEnabled=' + this.v110_1 + ', permissionLabels=' + this.w110_1 + ')'; }; protoOf(SystemPermissionEditUiState).hashCode = function () { var result = this.u110_1 == null ? 0 : this.u110_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.v110_1) | 0; result = imul(result, 31) + hashCode(this.w110_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.u110_1, tmp0_other_with_cast.u110_1)) return false; if (!(this.v110_1 === tmp0_other_with_cast.v110_1)) return false; if (!equals(this.w110_1, tmp0_other_with_cast.w110_1)) return false; return true; }; function TimeZoneListViewModel$slambda$slambda(this$0, resultContinuation) { this.x112_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda$slambda).z112 = function ($this$withContext, $completion) { var tmp = this.v1m($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.z112((!(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.x112_1); } else if (tmp === 1) { throw this.kd_1; } } catch ($p) { var e = $p; throw e; } while (true); }; protoOf(TimeZoneListViewModel$slambda$slambda).v1m = function ($this$withContext, completion) { var i = new TimeZoneListViewModel$slambda$slambda(this.x112_1, completion); i.y112_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.z112($this$withContext, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda($searchText, this$0, resultContinuation) { this.i113_1 = $searchText; this.j113_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda).z112 = function ($this$withContext, $completion) { var tmp = this.v1m($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.z112((!(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.i113_1; var searchWords = Regex_init_$Create$('\\s+').y9(this_0, 0); var this_1 = _get_allTimeZones__4t4mtu(this.j113_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.kmc(), 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).v1m = function ($this$withContext, completion) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda(this.i113_1, this.j113_1, completion); i.k113_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.z112($this$withContext, $completion); }; l.$arity = 1; return l; } function _get_allTimeZones__4t4mtu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.l114_1; allTimeZones$factory(); return this_0.t2(); } function Companion_202() { this.n114_1 = 'TimeZoneList'; } var Companion_instance_251; function Companion_getInstance_219() { return Companion_instance_251; } function sam$kotlin_Comparator$0_3(function_0) { this.o114_1 = function_0; } protoOf(sam$kotlin_Comparator$0_3).pa = function (a, b) { return this.o114_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.km9(); // Inline function 'kotlin.collections.sortedBy' call // Inline function 'kotlin.collections.map' call var this_0 = Companion_getInstance_9().kmd(); // 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().hmc(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).omd(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.allTimeZones$delegate..' call var tmp$ret$1 = offsetAt(b, $now).omd(); return compareValues(tmp, tmp$ret$1); }; } function TimeZoneListViewModel$slambda(this$0, resultContinuation) { this.x114_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(TimeZoneListViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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().p12_1; suspendResult = withContext(tmp_0, TimeZoneListViewModel$slambda$slambda_0(this.x114_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.x114_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.a115(allTimeZonesVal); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new TimeZoneListViewModel$slambda(this.x114_1, completion); i.y114_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel$onUpdateSearchResult$slambda(this$0, $searchText, resultContinuation) { this.j115_1 = this$0; this.k115_1 = $searchText; CoroutineImpl.call(this, resultContinuation); } protoOf(TimeZoneListViewModel$onUpdateSearchResult$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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().p12_1; suspendResult = withContext(tmp_0, TimeZoneListViewModel$onUpdateSearchResult$slambda$slambda_0(this.k115_1, this.j115_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.j115_1.hqs_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.a115(filteredList); if (this_0.y1k(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).v1m = function ($this$launch, completion) { var i = new TimeZoneListViewModel$onUpdateSearchResult$slambda(this.j115_1, this.k115_1, completion); i.l115_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function TimeZoneListViewModel(di, savedStateHandle) { UstadListViewModel.call(this, di, savedStateHandle, new TimezoneListUiState(), 'TimeZoneList'); var tmp = this; tmp.l114_1 = lazy_0(TimeZoneListViewModel$allTimeZones$delegate$lambda); this.m114_1 = null; $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.timezone.TimeZoneListViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, this.mqk().eog(strings_getInstance().xmy_1), VOID, VOID, VOID, VOID, this.qqt()); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_0 = this.dqk(); launch(tmp_0, VOID, VOID, TimeZoneListViewModel$slambda_0(this, null)); } protoOf(TimeZoneListViewModel).bqt = function (searchText) { var tmp0_safe_receiver = this.m114_1; if (tmp0_safe_receiver == null) null; else { tmp0_safe_receiver.mr(); } var tmp = this; var tmp_0 = this.dqk(); tmp.m114_1 = launch(tmp_0, VOID, VOID, TimeZoneListViewModel$onUpdateSearchResult$slambda_0(this, searchText, null)); }; protoOf(TimeZoneListViewModel).m115 = function (entry) { this.xqp(entry.kmc()); }; protoOf(TimeZoneListViewModel).cqt = function () { }; function TimezoneListUiState(timeZoneList) { timeZoneList = timeZoneList === VOID ? emptyList() : timeZoneList; this.z114_1 = timeZoneList; } protoOf(TimezoneListUiState).a115 = function (timeZoneList) { return new TimezoneListUiState(timeZoneList); }; protoOf(TimezoneListUiState).toString = function () { return 'TimezoneListUiState(timeZoneList=' + this.z114_1 + ')'; }; protoOf(TimezoneListUiState).hashCode = function () { return hashCode(this.z114_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.z114_1, tmp0_other_with_cast.z114_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.v115_1 = this$0; this.w115_1 = $contentEntryVersion; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.y115_1 = this.v115_1.m4r(); var tmp_1 = this; tmp_1.z115_1 = _get_httpClient__2ty1zc_6(this.v115_1); var tmp_2 = this; tmp_2.a116_1 = ensureNotNull(this.w115_1.gax_1); var tmp_3 = this; tmp_3.b116_1 = this.z115_1; var tmp_4 = this; tmp_4.c116_1 = this.b116_1; var tmp_5 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.a116_1); tmp_5.d116_1 = this_0; this.d116_1.w38_1 = Companion_getInstance().l2x_1; var tmp_6 = this; tmp_6.e116_1 = this.c116_1; var tmp_7 = this; tmp_7.f116_1 = this.d116_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.f116_1, this.e116_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.g116_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsDecodedText(this.g116_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.h116_1 = suspendResult; var tmp_8 = this; var this_1 = this.y115_1.t45(); var this_2 = serializer(this_1, createKType(getKClass(ContentManifest), arrayOf([]), false)); tmp_8.i116_1 = this.y115_1.s45(isInterface(this_2, KSerializer) ? this_2 : THROW_CCE(), this.h116_1); this.j116_1 = requireBodyUrlForUri(this.i116_1, ensureNotNull(this.w115_1.eax_1)); var tmp_9 = this; tmp_9.k116_1 = this.v115_1.m4r(); var tmp_10 = this; tmp_10.l116_1 = _get_httpClient__2ty1zc_6(this.v115_1); var tmp_11 = this; tmp_11.m116_1 = this.j116_1; var tmp_12 = this; tmp_12.n116_1 = this.l116_1; var tmp_13 = this; tmp_13.o116_1 = this.n116_1; var tmp_14 = this; var this_3 = new HttpRequestBuilder(); url(this_3, this.m116_1); tmp_14.p116_1 = this_3; this.p116_1.w38_1 = Companion_getInstance().l2x_1; var tmp_15 = this; tmp_15.q116_1 = this.o116_1; var tmp_16 = this; tmp_16.r116_1 = this.p116_1; this.hd_1 = 3; suspendResult = (new HttpStatement(this.r116_1, this.q116_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.s116_1 = suspendResult; this.hd_1 = 4; suspendResult = bodyAsDecodedText(this.s116_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var string = suspendResult; var this_4 = this.k116_1.t45(); var this_5 = serializer(this_4, createKType(getKClass(MediaContentInfo), arrayOf([]), false)); var mediaInfo = this.k116_1.s45(isInterface(this_5, KSerializer) ? this_5 : THROW_CCE(), string); l$ret$1: do { var this_6 = this.v115_1.u117_1; while (true) { var prevValue = this_6.t2(); var tmp0_contentEntryVersionUid = this.v115_1.t117_1; var tmp1_learningSpace = this.v115_1.cqk().co7(); var tmp2_manifestUrl = ensureNotNull(this.w115_1.gax_1); var tmp3_contentManifestMap = new ContentManifestMap(this.i116_1); var nextValue = prevValue.f118(mediaInfo, tmp0_contentEntryVersionUid, tmp1_learningSpace, VOID, tmp2_manifestUrl, tmp3_contentManifestMap); if (this_6.y1k(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).v1m = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda$slambda(this.v115_1, this.w115_1, completion); i.x115_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function VideoContentViewModel$slambda$slambda_1(this$0, $contentEntryVersion, resultContinuation) { this.o118_1 = this$0; this.p118_1 = $contentEntryVersion; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda$slambda_1).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.o118_1.iqk().v7d().iau(this.p118_1.dax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var contentEntry = suspendResult; l$ret$1: do { var this_0 = this.o118_1.u117_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.f118(VOID, VOID, VOID, VOID, VOID, VOID, contentEntry); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.o118_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var tmp1_elvis_lhs = contentEntry == null ? null : contentEntry.fav_1; var nextValue_0 = prevValue_0.bq3(VOID, VOID, tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); if (this_1.y1k(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).v1m = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda$slambda_1(this.o118_1, this.p118_1, completion); i.q118_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.u1m($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.r118_1 = timestamp; this.s118_1 = timeInMillis; this.t118_1 = totalDuration; this.u118_1 = resumed; } protoOf(MediaPlayState).v118 = function () { var tmp; if (this.t118_1.c7(new Long(0, 0)) > 0) { // Inline function 'kotlin.Long.times' call tmp = this.s118_1.cb(toLong(100)).bb(this.t118_1).mb(); } else { tmp = 0; } return tmp; }; protoOf(MediaPlayState).toString = function () { return 'MediaPlayState(timestamp=' + this.r118_1.toString() + ', timeInMillis=' + this.s118_1.toString() + ', totalDuration=' + this.t118_1.toString() + ', resumed=' + this.u118_1 + ')'; }; protoOf(MediaPlayState).hashCode = function () { var result = this.r118_1.hashCode(); result = imul(result, 31) + this.s118_1.hashCode() | 0; result = imul(result, 31) + this.t118_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.u118_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.r118_1.equals(tmp0_other_with_cast.r118_1)) return false; if (!this.s118_1.equals(tmp0_other_with_cast.s118_1)) return false; if (!this.t118_1.equals(tmp0_other_with_cast.t118_1)) return false; if (!(this.u118_1 === tmp0_other_with_cast.u118_1)) return false; return true; }; function _get_httpClient__2ty1zc_6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this.w117_1; httpClient$factory_14(); return this_0.t2(); } function Companion_203() { this.w118_1 = 'Video'; } var Companion_instance_252; function Companion_getInstance_220() { return Companion_instance_252; } function VideoContentViewModel$slambda(this$0, resultContinuation) { this.f119_1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(VideoContentViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(VideoContentViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.f119_1.iqk().i7f().wbp(this.f119_1.t117_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.g119_1, VOID, VOID, VideoContentViewModel$slambda$slambda_0(this.f119_1, contentEntryVersion, null)); launch(this.g119_1, VOID, VOID, VideoContentViewModel$slambda$slambda_2(this.f119_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).v1m = function ($this$launch, completion) { var i = new VideoContentViewModel$slambda(this.f119_1, completion); i.g119_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function VideoContentViewModel(di, savedStateHandle) { AbstractNonInteractiveContentViewModel.call(this, di, savedStateHandle, 'Video'); this.s117_1 = MutableStateFlow(new MediaPlayState()); var tmp = this; Companion_getInstance_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp.t117_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.u117_1 = MutableStateFlow(new VideoContentUiState()); this.v117_1 = asStateFlow(this.u117_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.w117_1 = Instance(this, tmp$ret$0, null).a5d(this, httpClient$factory_13()); $l$block: { // Inline function 'kotlinx.coroutines.flow.update' call var this_0 = this.qqj_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.' call var nextValue = prevValue.bq3(VOID, VOID, VOID, VOID, true); if (this_0.y1k(prevValue, nextValue)) { break $l$block; } } } var tmp_2 = this.dqk(); launch(tmp_2, VOID, VOID, VideoContentViewModel$slambda_0(this, null)); } protoOf(VideoContentViewModel).cy6 = function () { var tmp0_safe_receiver = this.u117_1.t2().d118_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fav_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).h119 = function (playState) { var tmp$ret$1; $l$block: { // Inline function 'kotlinx.coroutines.flow.getAndUpdate' call var this_0 = this.s117_1; while (true) { var prevValue = this_0.t2(); // Inline function 'com.ustadmobile.core.viewmodel.videocontent.VideoContentViewModel.onPlayStateChanged.' call var nextValue = playState; if (this_0.y1k(prevValue, nextValue)) { tmp$ret$1 = prevValue; break $l$block; } } } var prevState = tmp$ret$1; if (!(prevState.u118_1 === playState.u118_1)) { this.hpz(playState.u118_1); } this.upz(playState.v118()); }; 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.x117_1 = mediaContentInfo; this.y117_1 = contentEntryVersionUid; this.z117_1 = learningSpace; this.a118_1 = mediaSrc; this.b118_1 = manifestUrl; this.c118_1 = contentManifestMap; this.d118_1 = contentEntry; this.e118_1 = isFullScreen; } protoOf(VideoContentUiState).i119 = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) { return new VideoContentUiState(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).f118 = function (mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen, $super) { mediaContentInfo = mediaContentInfo === VOID ? this.x117_1 : mediaContentInfo; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.y117_1 : contentEntryVersionUid; learningSpace = learningSpace === VOID ? this.z117_1 : learningSpace; mediaSrc = mediaSrc === VOID ? this.a118_1 : mediaSrc; manifestUrl = manifestUrl === VOID ? this.b118_1 : manifestUrl; contentManifestMap = contentManifestMap === VOID ? this.c118_1 : contentManifestMap; contentEntry = contentEntry === VOID ? this.d118_1 : contentEntry; isFullScreen = isFullScreen === VOID ? this.e118_1 : isFullScreen; return $super === VOID ? this.i119(mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen) : $super.i119.call(this, mediaContentInfo, contentEntryVersionUid, learningSpace, mediaSrc, manifestUrl, contentManifestMap, contentEntry, isFullScreen); }; protoOf(VideoContentUiState).toString = function () { return 'VideoContentUiState(mediaContentInfo=' + this.x117_1 + ', contentEntryVersionUid=' + this.y117_1.toString() + ', learningSpace=' + this.z117_1 + ', mediaSrc=' + this.a118_1 + ', manifestUrl=' + this.b118_1 + ', contentManifestMap=' + this.c118_1 + ', contentEntry=' + this.d118_1 + ', isFullScreen=' + this.e118_1 + ')'; }; protoOf(VideoContentUiState).hashCode = function () { var result = this.x117_1 == null ? 0 : hashCode(this.x117_1); result = imul(result, 31) + this.y117_1.hashCode() | 0; result = imul(result, 31) + (this.z117_1 == null ? 0 : this.z117_1.hashCode()) | 0; result = imul(result, 31) + (this.a118_1 == null ? 0 : getStringHashCode(this.a118_1)) | 0; result = imul(result, 31) + (this.b118_1 == null ? 0 : getStringHashCode(this.b118_1)) | 0; result = imul(result, 31) + (this.c118_1 == null ? 0 : this.c118_1.hashCode()) | 0; result = imul(result, 31) + (this.d118_1 == null ? 0 : this.d118_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.e118_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.x117_1, tmp0_other_with_cast.x117_1)) return false; if (!this.y117_1.equals(tmp0_other_with_cast.y117_1)) return false; if (!equals(this.z117_1, tmp0_other_with_cast.z117_1)) return false; if (!(this.a118_1 == tmp0_other_with_cast.a118_1)) return false; if (!(this.b118_1 == tmp0_other_with_cast.b118_1)) return false; if (!equals(this.c118_1, tmp0_other_with_cast.c118_1)) return false; if (!equals(this.d118_1, tmp0_other_with_cast.d118_1)) return false; if (!(this.e118_1 === tmp0_other_with_cast.e118_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.e11a_1; resolveXapiLaunchHrefUseCase$factory_0(); return this_0.t2(); } function Companion_204() { this.i11a_1 = 'XapiContent'; } var Companion_instance_253; function Companion_getInstance_221() { return Companion_instance_253; } function XapiContentViewModel$slambda(this$0, $savedStateHandle, resultContinuation) { this.r11a_1 = this$0; this.s11a_1 = $savedStateHandle; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiContentViewModel$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($this$launch, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(XapiContentViewModel$slambda).he = function (p1, $completion) { return this.u1m((!(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.r11a_1); Companion_getInstance_123(); var tmp0_safe_receiver = this.s11a_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_123(); var tmp2_safe_receiver = this.s11a_1.ba('courseBlockUid'); var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : toLong_0(tmp2_safe_receiver); suspendResult = tmp_0.op6(this.r11a_1.f11a_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.r11a_1.g11a_1; while (true) { var prevValue = this_0.t2(); var nextValue = prevValue.w11a(launchHrefResult.ip3_1); if (this_0.y1k(prevValue, nextValue)) { break l$ret$1; } } } while (false); l$ret$3: do { var this_1 = this.r11a_1.qqj_1; while (true) { var prevValue_0 = this_1.t2(); var nextValue_0 = prevValue_0.bq3(VOID, VOID, launchHrefResult.kp3_1.dp6_1, VOID, true); if (this_1.y1k(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().q5e('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).v1m = function ($this$launch, completion) { var i = new XapiContentViewModel$slambda(this.r11a_1, this.s11a_1, completion); i.t11a_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.u1m($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.e11a_1 = Instance(this_0, tmp$ret$0, null).a5d(this, resolveXapiLaunchHrefUseCase$factory()); var tmp_1 = this; Companion_getInstance_114(); var tmp0_safe_receiver = savedStateHandle.ba('entityUid'); var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver); tmp_1.f11a_1 = tmp1_elvis_lhs == null ? new Long(0, 0) : tmp1_elvis_lhs; this.g11a_1 = MutableStateFlow(new XapiContentUiState(VOID, this.f11a_1)); this.h11a_1 = asStateFlow(this.g11a_1); var tmp_2 = this.dqk(); 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.u11a_1 = url; this.v11a_1 = contentEntryVersionUid; } protoOf(XapiContentUiState).x11a = function (url, contentEntryVersionUid) { return new XapiContentUiState(url, contentEntryVersionUid); }; protoOf(XapiContentUiState).w11a = function (url, contentEntryVersionUid, $super) { url = url === VOID ? this.u11a_1 : url; contentEntryVersionUid = contentEntryVersionUid === VOID ? this.v11a_1 : contentEntryVersionUid; return $super === VOID ? this.x11a(url, contentEntryVersionUid) : $super.x11a.call(this, url, contentEntryVersionUid); }; protoOf(XapiContentUiState).toString = function () { return 'XapiContentUiState(url=' + this.u11a_1 + ', contentEntryVersionUid=' + this.v11a_1.toString() + ')'; }; protoOf(XapiContentUiState).hashCode = function () { var result = this.u11a_1 == null ? 0 : getStringHashCode(this.u11a_1); result = imul(result, 31) + this.v11a_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.u11a_1 == tmp0_other_with_cast.u11a_1)) return false; if (!this.v11a_1.equals(tmp0_other_with_cast.v11a_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$83(_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$85(_this__u8e3s4, password, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); } function $encryptPbkdf2COROUTINE$83(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.g11b_1 = _this__u8e3s4; this.h11b_1 = password; } protoOf($encryptPbkdf2COROUTINE$83).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.g11b_1.eno_1).f58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.i11b_1 = tmp_1.d58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.j11b_1 = this.i11b_1; var tmp_4 = this; tmp_4.k11b_1 = this.g11b_1.dno_1.nnp_1 + 'api/pbkdf2/encryptPbkdf2'; var tmp_5 = this; tmp_5.l11b_1 = this.j11b_1; var tmp_6 = this; tmp_6.m11b_1 = this.l11b_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.k11b_1); parameter(this_0, 'secret', this.h11b_1); tmp_7.n11b_1 = this_0; this.n11b_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.o11b_1 = this.m11b_1; var tmp_9 = this; tmp_9.p11b_1 = this.n11b_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.p11b_1, this.o11b_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.q11b_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.q11b_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$85(_this__u8e3s4, password, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.z11b_1 = _this__u8e3s4; this.a11c_1 = password; } protoOf($doublePbkdf2HashAsBase64COROUTINE$85).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.z11b_1.eno_1).f58(); var tmp_2 = typeToken(createKType(getKClass(HttpClient), arrayOf([]), false)); tmp_0.b11c_1 = tmp_1.d58(isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE(), null); var tmp_3 = this; tmp_3.c11c_1 = this.b11c_1; var tmp_4 = this; tmp_4.d11c_1 = this.z11b_1.dno_1.nnp_1 + 'api/pbkdf2/doubleEncryptPbkdf2'; var tmp_5 = this; tmp_5.e11c_1 = this.c11c_1; var tmp_6 = this; tmp_6.f11c_1 = this.e11c_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.d11c_1); parameter(this_0, 'secret', this.a11c_1); tmp_7.g11c_1 = this_0; this.g11c_1.w38_1 = Companion_getInstance().l2x_1; var tmp_8 = this; tmp_8.h11c_1 = this.f11c_1; var tmp_9 = this; tmp_9.i11c_1 = this.g11c_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.i11c_1, this.h11c_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.j11c_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.j11c_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_114(); if (_this__u8e3s4 === '') { tmp = get_ustadViewName(this$0.l11c_1); } else { tmp = _this__u8e3s4; } return tmp; } function NavHostFunction(navigateFn, location, onHideChildren) { this.k11c_1 = navigateFn; this.l11c_1 = location; this.m11c_1 = onHideChildren; } protoOf(NavHostFunction).n11c = function (cmd) { if (cmd instanceof NavigateNavCommand) { var tmp1_safe_receiver = cmd.hq6_1.sq0_1; var popUpToView = tmp1_safe_receiver == null ? null : invoke$effectivePopUpTo(tmp1_safe_receiver, this); if ((popUpToView == null ? true : popUpToView === get_ustadViewName(this.l11c_1)) ? !cmd.hq6_1.uq0_1 ? true : this.l11c_1.key === get_firstLocationKey() : false) { Napier_getInstance().i5e('NavHostFunction: go to /' + cmd.fq6_1 + '?' + toUrlQueryString(cmd.gq6_1)); var replaceNav = (popUpToView === get_ustadViewName(this.l11c_1) ? cmd.hq6_1.tq0_1 : false) ? true : cmd.hq6_1.uq0_1; var tmp = '/' + cmd.fq6_1 + '?' + toUrlQueryString(cmd.gq6_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.l11c_1); this.k11c_1(tmp, this_0); } else { Napier_getInstance().i5e('NavHostFunction: pop, then go /' + cmd.fq6_1 + '?' + toUrlQueryString(cmd.gq6_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.hq6_1.uq0_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.hq6_1.tq0_1.toString(); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerGoToAfterPop'] = '/' + cmd.fq6_1 + '?' + toUrlQueryString(cmd.gq6_1); this.m11c_1(); this.k11c_1(-1); } } else { if (cmd instanceof PopNavCommand) { var popUpTo = invoke$effectivePopUpTo(cmd.jq6_1, this); if (popUpTo === get_ustadViewName(this.l11c_1) ? cmd.kq6_1 : false) { Napier_getInstance().i5e('NavHostFunction: pop to current viewname ' + popUpTo + ' (inclusive) ' + 'e.g. go back one'); this.k11c_1(-1); } else if (!(popUpTo === get_ustadViewName(this.l11c_1))) { Napier_getInstance().i5e('NavHostFunction: pop to ' + popUpTo + ' inclusive = ' + cmd.kq6_1); sessionStorage.removeItem('navHostHitPopupto'); // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpTo'] = cmd.jq6_1; // Inline function 'org.w3c.dom.set' call // Inline function 'kotlin.js.asDynamic' call sessionStorage['navControllerPopUpToInc'] = cmd.kq6_1.toString(); this.m11c_1(); this.k11c_1(-1); } else { Napier_getInstance().i5e('NavHostFunction: pop up to current viewname, inclusive = false?? Nothing to do.'); } } else { Napier_getInstance().i5e('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().t12().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.mr(); } // 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().c5e('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().c5e('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().c5e('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().c5e('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().c5e('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().c5e('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().c5e('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().c5e('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.w11c_1 = $navigateFn; CoroutineImpl.call(this, resultContinuation); } protoOf(NavHost$lambda$lambda$launchClearStackTimeout$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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().c5e('NavHost: action: clearStackTimeout: apparently at the end of history. go to clearstack'); sessionStorage['navControllerClearStack'] = 'true'; this.w11c_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).v1m = function ($this$launch, completion) { var i = new NavHost$lambda$lambda$launchClearStackTimeout$slambda(this.w11c_1, completion); i.x11c_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.u1m($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$86(_this__u8e3s4, activeUserPersonUid, personUid, username, newPassword, currentPassword, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.g11d_1 = _this__u8e3s4; this.h11d_1 = activeUserPersonUid; this.i11d_1 = personUid; this.j11d_1 = username; this.k11d_1 = newPassword; this.l11d_1 = currentPassword; } 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 = 3; var tmp_0 = this; var tmp_1 = this.g11d_1.v11d_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.m11d_1 = tmp_2; this.id_1 = 2; var tmp_3 = this; tmp_3.n11d_1 = this.g11d_1.w11d_1; var tmp_4 = this; tmp_4.o11d_1 = this.g11d_1.u11d_1.nnp_1 + 'api/account/setpassword'; var tmp_5 = this; tmp_5.p11d_1 = this.n11d_1; var tmp_6 = this; tmp_6.q11d_1 = this.p11d_1; var tmp_7 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.o11d_1); doorNodeIdHeader(this_0, this.m11d_1); parameter(this_0, 'nodeActiveUserUid', this.h11d_1); parameter(this_0, 'personUid', this.i11d_1.toString()); parameter(this_0, 'username', this.j11d_1); parameter(this_0, 'newPassword', this.k11d_1); var tmp0_safe_receiver = this.l11d_1; if (tmp0_safe_receiver == null) null; else { parameter(this_0, 'currentPassword', tmp0_safe_receiver); } set_expectSuccess(this_0, false); tmp_7.r11d_1 = this_0; this.r11d_1.w38_1 = Companion_getInstance().m2x_1; var tmp_8 = this; tmp_8.s11d_1 = this.q11d_1; var tmp_9 = this; tmp_9.t11d_1 = this.r11d_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.t11d_1, this.s11d_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var result = suspendResult; if (result.j3b().equals(Companion_getInstance_0().x2y_1)) { throw new UnauthorizedException(); } else if (!isSuccess(result.j3b())) { throw IllegalStateException_init_$Create$('Bad response to set password request: ' + result.j3b()); } 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.s5e(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.u11d_1 = learningSpace; this.v11d_1 = repo; this.w11d_1 = httpClient; } protoOf(SetPasswordUseCaseJs).dof = function (activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion) { var tmp = new $invokeCOROUTINE$86(this, activeUserPersonUid, personUid, username, newPassword, currentPassword, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OpenBlobUseCaseJs() { } protoOf(OpenBlobUseCaseJs).fom = function (item, onProgress, intent, $completion) { var element = document.createElement('a'); element.setAttribute('href', item.nol_1); element.setAttribute('download', item.pol_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.f11e_1 = $transferJobItemStatusUpdater; this.g11e_1 = this$0; this.h11e_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda).dnv = function (it, $completion) { var tmp = this.env(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.dnv(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.f11e_1.lot(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.hd_1 = 2; var tmp_0 = this.g11e_1.m11e_1.k7f(); var tmp0_safe_receiver = firstOrNull(this.h11e_1); var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p11e_1; var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.qcb_1; suspendResult = tmp_0.oia(tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs, TransferJobItemStatus_FAILED_getInstance().gk7_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).env = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda(this.f11e_1, this.g11e_1, this.h11e_1, completion); i.i11e_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.dnv(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda($transferJobItemStatusUpdater, $uploadItem) { return function (it) { $transferJobItemStatusUpdater.iot(new BlobTransferProgressUpdate($uploadItem, it.spk_1)); return Unit_instance; }; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this$0, $transferJobItemStatusUpdater, $uriToSaveQueueItems, resultContinuation) { this.y11e_1 = this$0; this.z11e_1 = $transferJobItemStatusUpdater; this.a11f_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda).u1m = function ($this$withContext, $completion) { var tmp = this.v1m($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.u1m((!(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.y11e_1.m11e_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda$slambda_0(this.z11e_1, this.y11e_1, this.a11f_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).v1m = function ($this$withContext, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda(this.y11e_1, this.z11e_1, this.a11f_1, completion); i.b11f_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.u1m($this$withContext, $completion); }; l.$arity = 1; return l; } function UriToSaveQueueItem(uriToSaveItem, transferJobItem) { this.o11e_1 = uriToSaveItem; this.p11e_1 = transferJobItem; } protoOf(UriToSaveQueueItem).toString = function () { return 'UriToSaveQueueItem(uriToSaveItem=' + this.o11e_1 + ', transferJobItem=' + this.p11e_1 + ')'; }; protoOf(UriToSaveQueueItem).hashCode = function () { var result = this.o11e_1.hashCode(); result = imul(result, 31) + this.p11e_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.o11e_1.equals(tmp0_other_with_cast.o11e_1)) return false; if (!this.p11e_1.equals(tmp0_other_with_cast.p11e_1)) return false; return true; }; function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this$0, $localUrisToSave, $onTransferJobItemCreated, resultContinuation) { this.k11f_1 = this$0; this.l11f_1 = $localUrisToSave; this.m11f_1 = $onTransferJobItemCreated; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).f11g = function (it, $completion) { var tmp = this.env(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda).he = function (p1, $completion) { return this.f11g(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.k11f_1.m11e_1.j7f().ai8(new TransferJob(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.o11f_1 = suspendResult; this.p11f_1 = this.o11f_1.mb(); var tmp_0 = this; tmp_0.q11f_1 = this.l11f_1; var tmp_1 = this; tmp_1.r11f_1 = this.q11f_1; var tmp_2 = this; tmp_2.s11f_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.q11f_1, 10)); this.t11f_1 = this.r11f_1.w(); this.hd_1 = 2; continue $sm; case 2: if (!this.t11f_1.f()) { this.hd_1 = 7; continue $sm; } this.u11f_1 = this.t11f_1.e(); var tmp_3 = this; tmp_3.v11f_1 = this.u11f_1; var tmp_4 = this; tmp_4.w11f_1 = fetch(this.v11f_1.foo_1); this.hd_1 = 3; var this_0 = this.w11f_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.x11f_1 = suspendResult; this.y11f_1 = this.x11f_1.blob(); this.hd_1 = 4; var this_1 = this.y11f_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.z11f_1 = suspendResult; this.a11g_1 = this.z11f_1.size; this.b11g_1 = numberToLong(this.a11g_1); var tmp_5 = this; var tmp0_tjiSrc = this.v11f_1.foo_1; var tmp1_tjiTableId = this.v11f_1.hoo_1; var tmp2_tjiEntityUid = this.v11f_1.goo_1; tmp_5.c11g_1 = new TransferJobItem(VOID, this.p11f_1, this.b11g_1, VOID, VOID, tmp0_tjiSrc, VOID, VOID, VOID, tmp1_tjiTableId, tmp2_tjiEntityUid); this.hd_1 = 5; suspendResult = this.k11f_1.m11e_1.k7f().kia(this.c11g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: this.d11g_1 = suspendResult; this.e11g_1 = this.d11g_1.mb(); this.m11f_1(this.v11f_1, this.c11g_1.aku(this.e11g_1)); this.hd_1 = 6; suspendResult = this.k11f_1.n11e_1.aou(this.k11f_1.m11e_1, this.v11f_1.hoo_1, this.v11f_1.goo_1, this.e11g_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: var ARGUMENT = new UriToSaveQueueItem(this.v11f_1, this.c11g_1.aku(this.e11g_1)); this.s11f_1.i1(ARGUMENT); this.hd_1 = 2; continue $sm; case 7: return this.s11f_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).env = function (it, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda(this.k11f_1, this.l11f_1, this.m11f_1, completion); i.n11f_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.f11g(it, $completion); }; l.$arity = 1; return l; } function SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this$0, $uriToSaveQueueItems, resultContinuation) { this.o11g_1 = this$0; this.p11g_1 = $uriToSaveQueueItems; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1).l11h = function ($this$coroutineScope, $completion) { var tmp = this.v1m($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.l11h((!(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.r11g_1 = new TransferJobItemStatusUpdater(this.o11g_1.m11e_1, null, this.q11g_1); this.id_1 = 5; var tmp_0 = this; tmp_0.t11g_1 = this.p11g_1; var tmp_1 = this; tmp_1.u11g_1 = this.t11g_1; var tmp_2 = this; tmp_2.v11g_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this.t11g_1, 10)); this.w11g_1 = this.u11g_1.w(); this.hd_1 = 1; continue $sm; case 1: if (!this.w11g_1.f()) { this.hd_1 = 3; continue $sm; } this.x11g_1 = this.w11g_1.e(); var tmp_3 = this; tmp_3.y11g_1 = this.x11g_1; this.z11g_1 = new BlobTransferJobItem('', this.y11g_1.p11e_1.pcb_1); this.r11g_1.jot(new BlobTransferStatusUpdate(this.z11g_1, TransferJobItemStatus_IN_PROGRESS_getInstance().gk7_1)); this.a11h_1 = this.o11g_1.j11e_1; this.b11h_1 = randomUuidAsString(); this.c11h_1 = Companion_getInstance_3().o2r(this.y11g_1.o11e_1.foo_1); this.d11h_1 = this.o11g_1.k11e_1.nnp_1 + 'api/blob/upload-item'; var tmp_4 = this; var this_0 = LinkedHashMap_init_$Create$(); var tmp0_safe_receiver = this.y11g_1.o11e_1.ioo_1; if (tmp0_safe_receiver == null) null; else { this_0.s('X-Blob-Response-' + 'Content-Type', listOf_0(tmp0_safe_receiver)); } tmp_4.e11h_1 = asIStringValues(this_0.f3()); this.hd_1 = 2; suspendResult = this.a11h_1.ypk(this.b11h_1, this.c11h_1, this.d11h_1, VOID, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$lambda(this.r11g_1, this.z11g_1), VOID, this.e11h_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.f11h_1 = suspendResult; var tmp_5 = this; var tmp5_elvis_lhs = this.f11h_1.upk_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.g11h_1 = tmp_6; this.r11g_1.jot(new BlobTransferStatusUpdate(this.z11g_1, TransferJobItemStatus_COMPLETE_getInstance().gk7_1)); this.h11h_1 = this.o11g_1.l11e_1.s45(Companion_instance_83.n4r(), this.g11h_1); Napier_getInstance().i5e('SaveLocalUrisAsBlobUseCaseJs: upload complete: ' + (this.y11g_1.o11e_1.foo_1 + ' stored as ' + this.h11h_1.fon_1)); this.i11h_1 = this.h11h_1.noo(this.y11g_1.o11e_1.goo_1, this.y11g_1.o11e_1.hoo_1, this.y11g_1.o11e_1.foo_1); this.v11g_1.i1(this.i11h_1); this.hd_1 = 1; continue $sm; case 3: this.j11h_1 = this.v11g_1; this.hd_1 = 4; suspendResult = this.r11g_1.lot(VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.s11g_1 = this.j11h_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.k11h_1 = this.kd_1; Napier_getInstance().q5e('SaveLocalUriAsBlobUseCaseJs: exception uploading', this.k11h_1); this.hd_1 = 6; var tmp_8 = NonCancellable_getInstance(); suspendResult = withContext(tmp_8, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda$slambda_0(this.o11g_1, this.r11g_1, this.p11g_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.k11h_1; case 7: this.id_1 = 8; return this.s11g_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).v1m = function ($this$coroutineScope, completion) { var i = new SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_1(this.o11g_1, this.p11g_1, completion); i.q11g_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.l11h($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$87(_this__u8e3s4, localUrisToSave, onTransferJobItemCreated, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.u11h_1 = _this__u8e3s4; this.v11h_1 = localUrisToSave; this.w11h_1 = onTransferJobItemCreated; } 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 = 3; this.hd_1 = 1; suspendResult = withDoorTransactionAsync(this.u11h_1.m11e_1, VOID, SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_0(this.u11h_1, this.v11h_1, this.w11h_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.x11h_1 = suspendResult; this.hd_1 = 2; suspendResult = coroutineScope(SaveLocalUrisAsBlobUseCaseJs$invoke$slambda_2(this.u11h_1, this.x11h_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.j11e_1 = chunkedUploadClientLocalUriUseCase; this.k11e_1 = learningSpace; this.l11e_1 = json; this.m11e_1 = db; this.n11e_1 = updateTransferJobItemEtagUseCase; } protoOf(SaveLocalUrisAsBlobUseCaseJs).ooo = function (localUrisToSave, onTransferJobItemCreated, $completion) { var tmp = new $invokeCOROUTINE$87(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.g11i_1 = this$0; this.h11i_1 = $entityUid; this.i11i_1 = $tableId; this.j11i_1 = $pictureUri; CoroutineImpl.call(this, resultContinuation); } protoOf(EnqueueSavePictureUseCaseJs$invoke$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.g11i_1.l11i_1.poo(this.h11i_1, this.i11i_1, this.j11i_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).v1m = function ($this$launch, completion) { var i = new EnqueueSavePictureUseCaseJs$invoke$slambda(this.g11i_1, this.h11i_1, this.i11i_1, this.j11i_1, completion); i.k11i_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function EnqueueSavePictureUseCaseJs(savePictureUseCase) { this.l11i_1 = savePictureUseCase; this.m11i_1 = CoroutineScope_0(Dispatchers_getInstance().p12_1.lj(Job())); } protoOf(EnqueueSavePictureUseCaseJs).poo = function (entityUid, tableId, pictureUri, $completion) { launch(this.m11i_1, VOID, VOID, EnqueueSavePictureUseCaseJs$invoke$slambda_0(this, entityUid, tableId, pictureUri, null)); return Unit_instance; }; function SetClipboardStringUseCaseJs() { } protoOf(SetClipboardStringUseCaseJs).koy = 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().i5e('CompressImageUseCaseJs: compressing ' + $fromUri + ' : success'); $completeable.gy(it); return Unit_instance; }; } function CompressImageUseCaseJs$invoke$lambda_0($fromUri, $completeable) { return function (it) { Napier_getInstance().q5e('CompressImageUseCaseJs: compressing ' + $fromUri + ' : error', it); $completeable.iy(it); return Unit_instance; }; } function $invokeCOROUTINE$88(_this__u8e3s4, fromUri, toUri, params, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.v11i_1 = _this__u8e3s4; this.w11i_1 = fromUri; this.x11i_1 = toUri; this.y11i_1 = params; this.z11i_1 = onProgress; } 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 = 6; this.a11j_1 = CompletableDeferred(); Napier_getInstance().i5e('CompressImageUseCaseJs: compressing ' + this.w11i_1); this.id_1 = 4; var tmp_0 = this; tmp_0.b11j_1 = fetch(this.w11i_1); this.hd_1 = 1; var this_0 = this.b11j_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.c11j_1 = suspendResult; this.d11j_1 = this.c11j_1.blob(); this.hd_1 = 2; var this_1 = this.d11j_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.e11j_1 = suspendResult; var this_2 = {}; this_2.maxWidth = this.y11i_1.noy_1; this_2.maxHeight = this.y11i_1.ooy_1; this_2.convertSize = 50000; this_2.convertTypes = ['image/png']; this_2.success = CompressImageUseCaseJs$invoke$lambda(this.w11i_1, this.a11j_1); this_2.error = CompressImageUseCaseJs$invoke$lambda_0(this.w11i_1, this.a11j_1); new com_ustadmobile_core_wrappers_compressorjs_default_j4zdfk(this.e11j_1, this_2); this.hd_1 = 3; suspendResult = this.a11j_1.nv(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.e11j_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().q5e('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).f11j = function (fromUri, toUri, params, onProgress, $completion) { var tmp = new $invokeCOROUTINE$88(this, fromUri, toUri, params, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(CompressImageUseCaseJs).qoy = function (fromUri, toUri, params, onProgress, $completion) { return this.f11j(fromUri, toUri, params, onProgress, $completion); }; function Companion_205() { this.g11j_1 = 3; } var Companion_instance_254; function Companion_getInstance_222() { return Companion_instance_254; } function ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda($onProgress) { return function (it) { $onProgress(new ContentEntryGetMetadataStatus(false, VOID, it.spk_1, it.tpk_1)); return Unit_instance; }; } function $invokeCOROUTINE$89(_this__u8e3s4, contentUri, fileName, learningSpace, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.p11j_1 = _this__u8e3s4; this.q11j_1 = contentUri; this.r11j_1 = fileName; this.s11j_1 = learningSpace; this.t11j_1 = onProgress; } 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 = 9; this.u11j_1 = randomUuid().toString(); this.hd_1 = 1; continue $sm; case 1: this.hd_1 = 2; continue $sm; case 2: this.id_1 = 8; this.w11j_1 = until(0, 3).w(); this.hd_1 = 3; continue $sm; case 3: if (!this.w11j_1.f()) { this.hd_1 = 6; continue $sm; } this.x11j_1 = this.w11j_1.e(); this.y11j_1 = this.p11j_1.c11k_1; this.z11j_1 = this.s11j_1.nnp_1 + 'api/contentupload/upload'; var tmp_0 = this; var this_0 = LinkedHashMap_init_$Create$(); if (!(this.r11j_1 == null)) { this_0.s('upload-original-filename', listOf_0(encodeURIComponent(this.r11j_1))); } tmp_0.a11k_1 = asIStringValues(this_0.f3()); this.hd_1 = 4; var tmp_1 = new Long(0, 0); suspendResult = this.y11j_1.ypk(this.u11j_1, this.q11j_1, this.z11j_1, tmp_1, VOID, ContentEntryGetMetaDataFromUriUseCaseJs$invoke$lambda(this.t11j_1), VOID, this.a11k_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: var finalResponse = suspendResult; var tmp4_subject = finalResponse.vpk_1; if (tmp4_subject === 400) { var tmp5_elvis_lhs = finalResponse.upk_1; throw new InvalidContentException(tmp5_elvis_lhs == null ? '' : tmp5_elvis_lhs); } else if (tmp4_subject === 406) { var tmp6_elvis_lhs = finalResponse.upk_1; throw new UnsupportedContentException(tmp6_elvis_lhs == null ? '' : tmp6_elvis_lhs); } var tmp_2 = this; var tmp7_safe_receiver = finalResponse.upk_1; var tmp_3; if (tmp7_safe_receiver == null) { tmp_3 = null; } else { tmp_3 = this.p11j_1.b11k_1.s45(Companion_instance_82.n4r(), 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.v11j_1 = tmp_4; this.id_1 = 9; this.hd_1 = 5; continue $sm; case 5: var tmp_5 = this.v11j_1; this.id_1 = 9; URL.revokeObjectURL(this.q11j_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.q11j_1.toString()); return Unit_instance; case 8: this.id_1 = 9; var t = this.kd_1; URL.revokeObjectURL(this.q11j_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.b11k_1 = json; this.c11k_1 = chunkedUploadClientLocalUriUseCase; } protoOf(ContentEntryGetMetaDataFromUriUseCaseJs).zoz = function (contentUri, fileName, learningSpace, onProgress, $completion) { var tmp = new $invokeCOROUTINE$89(this, contentUri, fileName, learningSpace, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function $invokeCOROUTINE$90(_this__u8e3s4, subtitleTrackUri, filename, locale, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.l11k_1 = _this__u8e3s4; this.m11k_1 = subtitleTrackUri; this.n11k_1 = filename; this.o11k_1 = locale; } protoOf($invokeCOROUTINE$90).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.m11k_1.q72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.q11k_1 = suspendResult; this.r11k_1 = this.q11k_1.blob(); this.hd_1 = 2; var this_0 = this.r11k_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.s11k_1 = suspendResult; this.t11k_1 = this.s11k_1.text(); this.hd_1 = 3; var this_1 = this.t11k_1; suspendResult = await_0(this_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.p11k_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.u11k_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().q5e('GetSubtitleTrackFromUriUseCaseJs: exception fetching local uri ' + this.m11k_1, this.u11k_1); throw IllegalStateException_init_$Create$_1('Failed to fetch blob for local uri ' + this.m11k_1, this.u11k_1); } else { throw this.kd_1; } case 5: this.id_1 = 8; this.v11k_1 = this.p11k_1; var tmp_2 = this; tmp_2.w11k_1 = this.l11k_1.f11l_1; var tmp_3 = this; tmp_3.x11k_1 = this.l11k_1.e11l_1.nnp_1 + 'api/contentupload/getsubtitletrack'; var tmp_4 = this; tmp_4.y11k_1 = this.w11k_1; var tmp_5 = this; tmp_5.z11k_1 = this.y11k_1; var tmp_6 = this; var this_2 = new HttpRequestBuilder(); url(this_2, this.x11k_1); parameter(this_2, 'filename', this.n11k_1); var tmp0_elvis_lhs = this.o11k_1; parameter(this_2, 'locale', tmp0_elvis_lhs == null ? this.l11k_1.h11l_1.rpj_1 : tmp0_elvis_lhs); var body = new TextContent(this.v11k_1, Companion_getInstance_15().o2r('text/vtt; charset=utf-8')); if (body == null) { this_2.y38_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.v3e(typeInfoImpl(tmp_7, tmp_8, tmp_9)); } else { if (body instanceof OutgoingContent) { this_2.y38_1 = body; this_2.v3e(null); } else { this_2.y38_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.v3e(typeInfoImpl(tmp_11, tmp_12, tmp_13)); } } tmp_6.a11l_1 = this_2; this.a11l_1.w38_1 = Companion_getInstance().m2x_1; var tmp_15 = this; tmp_15.b11l_1 = this.z11k_1; var tmp_16 = this; tmp_16.c11l_1 = this.a11l_1; this.hd_1 = 6; suspendResult = (new HttpStatement(this.c11l_1, this.b11l_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.d11l_1 = suspendResult; this.hd_1 = 7; suspendResult = bodyAsText(this.d11l_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 7: var subtitleJsonStr = suspendResult; return this.l11k_1.g11l_1.s45(Companion_instance_81.n4r(), 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.e11l_1 = endpoint; this.f11l_1 = httpClient; this.g11l_1 = json; this.h11l_1 = supportedLanguagesConfig; } protoOf(GetSubtitleTrackFromUriUseCaseJs).lp0 = function (subtitleTrackUri, filename, locale, $completion) { var tmp = new $invokeCOROUTINE$90(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.ip3_1; }; } function LaunchXapiUseCaseJs$invoke$lambda_0($resolveResult) { return function () { return 'LaunchXapiUseCaseJs: navigating to: ' + $resolveResult.ip3_1; }; } function $invokeCOROUTINE$91(_this__u8e3s4, contentEntryVersion, navController, clazzUid, cbUid, target, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.q11l_1 = _this__u8e3s4; this.r11l_1 = contentEntryVersion; this.s11l_1 = navController; this.t11l_1 = clazzUid; this.u11l_1 = cbUid; this.v11l_1 = target; } protoOf($invokeCOROUTINE$91).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.q11l_1.w11l_1.op6(this.r11l_1.cax_1, this.t11l_1, this.u11l_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var resolveResult = suspendResult; if (!this.v11l_1.equals(LinkTarget_TOP_getInstance())) { var tmp_0 = Napier_getInstance(); tmp_0.k5e(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda(resolveResult)); window.open(resolveResult.ip3_1, asWindowTarget(this.v11l_1), 'popup=true,noopener,noreferrer'); } else { var tmp_1 = Napier_getInstance(); tmp_1.k5e(VOID, VOID, LaunchXapiUseCaseJs$invoke$lambda_0(resolveResult)); location.href = resolveResult.ip3_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.w11l_1 = resolveXapiLaunchHrefUseCase; } protoOf(LaunchXapiUseCaseJs).ep3 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { var tmp = new $invokeCOROUTINE$91(this, contentEntryVersion, navController, clazzUid, cbUid, target, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(LaunchXapiUseCaseJs).gp3 = function (contentEntryVersion, navController, clazzUid, cbUid, target, $completion) { return this.ep3(contentEntryVersion, navController, clazzUid, cbUid, target, $completion); }; function SetLanguageUseCaseJs(languagesConfig) { this.x11l_1 = languagesConfig; } protoOf(SetLanguageUseCaseJs).qpf = function (uiLang, currentDestination, navController, navArgs) { var currentDisplayLang = this.x11l_1.rpj_1; this.x11l_1.gq4(uiLang.wq0_1); var newDisplayLang = this.x11l_1.rpj_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.y11l_1 = di; } protoOf(GoToLearningSpaceUseCaseJs).spf = function (url, navController, args, viewName) { // Inline function 'org.kodein.di.instance' call // Inline function 'org.kodein.di.on' call var this_0 = this.y11l_1; var context = new LearningSpace(url); var trigger = this_0.d57(); // 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.h57(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).a5d(null, getLocalDelegateReference('makeLinkUseCase', KProperty0, false, function () { return THROW_ISE(); })); var finalUrl = invoke$lambda_3(makeLinkUseCase$delegate).vpf(viewName, args); location.href = finalUrl; }; function OpenExternalLinkUseCaseJs() { } protoOf(OpenExternalLinkUseCaseJs).dpg = function (url, target) { window.open(url, asWindowTarget(target)); }; function BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this$0, $text, $accountPersonUid, $onProgress, resultContinuation) { this.h11m_1 = this$0; this.i11m_1 = $text; this.j11m_1 = $accountPersonUid; this.k11m_1 = $onProgress; CoroutineImpl.call(this, resultContinuation); } protoOf(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda).i11n = function ($this$coroutineScope, $completion) { var tmp = this.v1m($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.i11n((!(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.m11m_1 = this.h11m_1.j11n_1; var tmp_1 = this; tmp_1.n11m_1 = this.h11m_1.k11n_1.nnp_1 + 'api/person/bulkadd/enqueue'; var tmp_2 = this; tmp_2.o11m_1 = this.m11m_1; var tmp_3 = this; tmp_3.p11m_1 = this.o11m_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.n11m_1); var body = new TextContent(this.i11m_1, Text_getInstance().q2s_1); if (body == null) { this_0.y38_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.v3e(typeInfoImpl(tmp_5, tmp_6, tmp_7)); } else { if (body instanceof OutgoingContent) { this_0.y38_1 = body; this_0.v3e(null); } else { this_0.y38_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.v3e(typeInfoImpl(tmp_9, tmp_10, tmp_11)); } } parameter(this_0, 'accountPersonUid', this.j11m_1.toString()); var tmp_13 = this.h11m_1.m11n_1; doorNodeAndVersionHeaders(this_0, isInterface(tmp_13, DoorDatabaseRepository) ? tmp_13 : THROW_CCE()); tmp_4.q11m_1 = this_0; this.q11m_1.w38_1 = Companion_getInstance().m2x_1; var tmp_14 = this; tmp_14.r11m_1 = this.p11m_1; var tmp_15 = this; tmp_15.s11m_1 = this.q11m_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.s11m_1, this.r11m_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.t11m_1 = suspendResult; this.hd_1 = 2; suspendResult = bodyAsText(this.t11m_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.u11m_1 = suspendResult; this.v11m_1 = toLong_0(this.u11m_1); this.hd_1 = 3; continue $sm; case 3: if (!get_isActive(this.l11m_1)) { this.hd_1 = 10; continue $sm; } this.id_1 = 7; var tmp_16 = this; tmp_16.w11m_1 = this.h11m_1.j11n_1; var tmp_17 = this; tmp_17.x11m_1 = this.h11m_1.k11n_1.nnp_1 + 'api/person/bulkadd/status'; var tmp_18 = this; tmp_18.y11m_1 = this.w11m_1; var tmp_19 = this; tmp_19.z11m_1 = this.y11m_1; var tmp_20 = this; var this_1 = new HttpRequestBuilder(); url(this_1, this.x11m_1); parameter(this_1, 'timestamp', this.v11m_1.toString()); tmp_20.a11n_1 = this_1; this.a11n_1.w38_1 = Companion_getInstance().l2x_1; var tmp_21 = this; tmp_21.b11n_1 = this.z11m_1; var tmp_22 = this; tmp_22.c11n_1 = this.a11n_1; this.hd_1 = 4; suspendResult = (new HttpStatement(this.c11n_1, this.b11n_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 4: this.d11n_1 = suspendResult; if (this.d11n_1.j3b().f30_1 === 200) { var tmp_23 = this; tmp_23.e11n_1 = this.h11m_1.l11n_1; this.hd_1 = 5; suspendResult = bodyAsText(this.d11n_1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.hd_1 = 6; continue $sm; } case 5: this.f11n_1 = suspendResult; var tmp_24 = this; var this_2 = this.e11n_1.t45(); var this_3 = serializer(this_2, createKType(getKClass(BulkAddPersonRunImportUiState), arrayOf([]), false)); tmp_24.g11n_1 = this.e11n_1.s45(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), this.f11n_1); if (this.g11n_1.kyt_1) { this.k11m_1.tyt(this.g11n_1.myt_1, this.g11n_1.lyt_1); } else { if (this.g11n_1.dty()) { throw new BulkAddPersonException(this.g11n_1.oyt_1, this.g11n_1.nyt_1); } return new BulkAddUsersResult(this.g11n_1.myt_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.h11n_1 = this.kd_1; Napier_getInstance().m5e('BulkAddPersonFromLocalUriUseCaseJs exception', this.h11n_1); var tmp_26 = this.h11n_1; if (tmp_26 instanceof BulkAddPersonException) throw this.h11n_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).v1m = function ($this$coroutineScope, completion) { var i = new BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda(this.h11m_1, this.i11m_1, this.j11m_1, this.k11m_1, completion); i.l11m_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.i11n($this$coroutineScope, $completion); }; l.$arity = 1; return l; } function $invokeCOROUTINE$92(_this__u8e3s4, uri, accountPersonUid, onProgress, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.v11n_1 = _this__u8e3s4; this.w11n_1 = uri; this.x11n_1 = accountPersonUid; this.y11n_1 = onProgress; } protoOf($invokeCOROUTINE$92).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.w11n_1.toString(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.z11n_1 = suspendResult; this.a11o_1 = this.z11n_1.text(); this.hd_1 = 2; var this_0 = this.a11o_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.b11o_1 = suspendResult; console.log('csv text = ' + this.b11o_1); this.hd_1 = 3; suspendResult = coroutineScope(BulkAddPersonsFromLocalUriUseCaseJs$invoke$slambda_0(this.v11n_1, this.b11o_1, this.x11n_1, this.y11n_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.j11n_1 = httpClient; this.k11n_1 = learningSpace; this.l11n_1 = json; this.m11n_1 = repo; } protoOf(BulkAddPersonsFromLocalUriUseCaseJs).tpi = function (uri, accountPersonUid, onProgress, $completion) { var tmp = new $invokeCOROUTINE$92(this, uri, accountPersonUid, onProgress, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; function OnClickPhoneNumUseCaseJs() { } protoOf(OnClickPhoneNumUseCaseJs).koy = 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).lpd = 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.c11o_1 = phoneNumber; } function PhoneNumberUtilJs() { } protoOf(PhoneNumberUtilJs).xpi = function (numberToParse, defaultRegion) { return new PhoneNumberJs(parsePhoneNumber(numberToParse, defaultRegion, null)); }; protoOf(PhoneNumberUtilJs).ypi = function (number) { return (number instanceof PhoneNumberJs ? number : THROW_CCE()).c11o_1.formatInternational(); }; function OnClickSendEmailUseCaseJs() { } protoOf(OnClickSendEmailUseCaseJs).koy = 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.d11o_1 = isTempFileCheckerUseCase; } protoOf(DeleteUrisUseCaseJs).roq = 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.d11o_1.loe(element)) { var tmp = Napier_getInstance(); tmp.k5e(VOID, VOID, DeleteUrisUseCaseJs$invoke$lambda(element)); URL.revokeObjectURL(element); } } return Unit_instance; }; function IsTempFileCheckerUseCaseJs() { } protoOf(IsTempFileCheckerUseCaseJs).loe = function (uri) { return startsWith(uri, 'blob:'); }; function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.npk_1; }; } function ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0($logPrefix, $index, $chunkInfo) { return function () { return $logPrefix + ' : upload chunk #' + ($index + 1 | 0) + '/' + $chunkInfo.npk_1 + ' complete '; }; } function $invokeCOROUTINE$93(_this__u8e3s4, uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.m11o_1 = _this__u8e3s4; this.n11o_1 = uploadUuid; this.o11o_1 = localUri; this.p11o_1 = remoteUrl; this.q11o_1 = fromByte; this.r11o_1 = chunkSize; this.s11o_1 = onProgress; this.t11o_1 = onStatusChange; this.u11o_1 = lastChunkHeaders; } protoOf($invokeCOROUTINE$93).ud = function () { var suspendResult = this.jd_1; $sm: do try { var tmp = this.hd_1; switch (tmp) { case 0: this.id_1 = 14; this.v11o_1 = 'ChunkedUploadClientLocalUriUseCaseJs (' + this.n11o_1 + ') : ' + this.o11o_1 + ' -> ' + this.p11o_1 + ':'; this.id_1 = 13; Napier_getInstance().i5e(this.v11o_1 + ' : starting'); this.id_1 = 3; this.hd_1 = 1; suspendResult = fetch_0(toString(this.o11o_1.q72_1), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.x11o_1 = suspendResult; this.y11o_1 = this.x11o_1.blob(); this.hd_1 = 2; var this_0 = this.y11o_1; suspendResult = await_0(this_0, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.w11o_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.z11o_1 = this.kd_1; var tmp_1 = this; Napier_getInstance().q5e(this.v11o_1 + ' exception fetching local uri ' + this.o11o_1, this.z11o_1); throw IllegalStateException_init_$Create$_1(this.v11o_1 + ': failed to fetch blob for local uri ' + this.o11o_1.q72_1, this.z11o_1); } else { throw this.kd_1; } case 4: this.id_1 = 13; this.a11p_1 = this.w11o_1; this.b11p_1 = this.a11p_1.size; if (this.b11p_1 <= 0.0) throw IllegalArgumentException_init_$Create$('Upload size <= 0'); this.c11p_1 = new ChunkInfo(numberToLong(this.b11p_1), this.r11o_1, this.q11o_1); if (this.b11p_1 >= IntCompanionObject_instance.MAX_VALUE) throw IllegalArgumentException_init_$Create$('JS: upload size(' + numberToLong(this.b11p_1).toString() + ') > ' + IntCompanionObject_instance.MAX_VALUE + ' not supported'); this.t11o_1(TransferJobItemStatus_IN_PROGRESS_getInstance()); var tmp_2 = this; tmp_2.d11p_1 = this.c11p_1; this.e11p_1 = 0; this.f11p_1 = this.d11p_1.w(); this.hd_1 = 5; continue $sm; case 5: if (!this.f11p_1.f()) { this.hd_1 = 12; continue $sm; } this.g11p_1 = this.f11p_1.e(); var tmp_3 = this; var tmp1 = this.e11p_1; this.e11p_1 = tmp1 + 1 | 0; tmp_3.h11p_1 = checkIndexOverflow(tmp1); var tmp_4 = this; tmp_4.i11p_1 = this.g11p_1; var tmp_5 = Napier_getInstance(); tmp_5.e5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda(this.v11o_1, this.h11p_1, this.c11p_1)); this.j11p_1 = this.a11p_1.slice(this.i11p_1.opk_1.a7(), this.i11p_1.ppk_1.a7()); this.id_1 = 7; var tmp_6 = this; var this_1 = {}; this_1.body = this.j11p_1; this_1.method = 'POST'; var this_2 = new Headers(); this_2.set(get_HEADER_UPLOAD_UUID(), this.n11o_1); this_2.set(get_HEADER_IS_FINAL_CHUNK(), this.i11p_1.qpk_1.toString()); this_2.set(get_HEADER_UPLOAD_START_BYTE(), this.i11p_1.opk_1.toString()); if (this.i11p_1.qpk_1 ? !(this.u11o_1 == null) : false) { var tmp0_iterator = this.u11o_1.o2n().w(); while (tmp0_iterator.f()) { var element = tmp0_iterator.e(); var tmp0_iterator_0 = this.u11o_1.n2n(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.l11p_1 = fetch(this.p11o_1, this_1); this.hd_1 = 6; var this_3 = this.l11p_1; suspendResult = await_0(this_3, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 6: this.k11p_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.m11p_1 = this.kd_1; var tmp_8 = this; Napier_getInstance().q5e(this.v11o_1 + ' exception fetching response for blob upload ' + ('fromByte=' + this.c11p_1.lpk_1.toString()), this.m11p_1); throw IllegalStateException_init_$Create$_1(this.v11o_1 + ' exception fetching response for blob upload ', this.m11p_1); } else { throw this.kd_1; } case 8: this.id_1 = 13; this.n11p_1 = this.k11p_1; var tmp_9 = Napier_getInstance(); tmp_9.e5e(VOID, VOID, ChunkedUploadClientLocalUriUseCaseJs$invoke$lambda_0(this.v11o_1, this.h11p_1, this.c11p_1)); this.s11o_1(new UploadProgress(this.i11p_1.ppk_1, numberToLong(this.b11p_1))); if (this.i11p_1.qpk_1) { this.t11o_1(TransferJobItemStatus_COMPLETE_getInstance()); Napier_getInstance().i5e(this.v11o_1 + ': Complete!'); if (!(this.n11p_1.status === 204)) { var tmp_10 = this; tmp_10.p11p_1 = this.n11p_1.text(); this.hd_1 = 10; var this_4 = this.p11p_1; suspendResult = await_0(this_4, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { var tmp_11 = this; tmp_11.o11p_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.o11p_1 = suspendResult; this.hd_1 = 11; continue $sm; case 11: var ARGUMENT = this.o11p_1; return new LastChunkResponse(ARGUMENT, this.n11p_1.status, asIStringValues_0(this.n11p_1.headers)); case 12: throw IllegalStateException_init_$Create$(this.v11o_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().q5e(this.v11o_1 + ', ChunkedUploadClientLocalUriUseCaseJs: Exception', e); this.t11o_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).xpk = function (uploadUuid, localUri, remoteUrl, fromByte, chunkSize, onProgress, onStatusChange, lastChunkHeaders, $completion) { var tmp = new $invokeCOROUTINE$93(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.y11p_1 = this$0; this.z11p_1 = $statements; this.a11q_1 = $xapiSession; CoroutineImpl.call(this, resultContinuation); } protoOf(SaveStatementOnClearUseCaseJs$invoke$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.y11p_1.c11q_1.ooh(this.z11p_1, this.a11q_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).v1m = function ($this$launch, completion) { var i = new SaveStatementOnClearUseCaseJs$invoke$slambda(this.y11p_1, this.z11p_1, this.a11q_1, completion); i.b11q_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.u1m($this$launch, $completion); }; l.$arity = 1; return l; } function SaveStatementOnClearUseCaseJs(xapiStatementResource) { this.c11q_1 = xapiStatementResource; } protoOf(SaveStatementOnClearUseCaseJs).wpz = function (statements, xapiSession) { var tmp = GlobalScope_instance; launch(tmp, VOID, VOID, SaveStatementOnClearUseCaseJs$invoke$slambda_0(this, statements, xapiSession, null)); }; function SaveStatementOnUnloadUseCaseJs(learningSpace, json) { this.d11q_1 = learningSpace; this.e11q_1 = json; } protoOf(SaveStatementOnUnloadUseCaseJs).wpz = function (statements, xapiSession) { var tmp = navigator; var tmp_0 = this.d11q_1.nnp_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.e11q_1.r45(Companion_getInstance_93().n4r(), new XapiStatementsAndSession(statements, xapiSession)); tmp.sendBeacon(tmp_0, tmp$ret$2); }; function $invokeCOROUTINE$94(_this__u8e3s4, accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this.n11q_1 = _this__u8e3s4; this.o11q_1 = accountPersonUid; this.p11q_1 = actor; this.q11q_1 = activityId; this.r11q_1 = clazzUid; this.s11q_1 = cbUid; this.t11q_1 = contentEntryUid; this.u11q_1 = contentEntryVersionUid; } protoOf($invokeCOROUTINE$94).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.v11q_1 = this.n11q_1.e11r_1; var tmp_1 = this; tmp_1.w11q_1 = this.n11q_1.d11r_1.nnp_1 + 'api/xapi-ext/resumeOrStartSession'; var tmp_2 = this; tmp_2.x11q_1 = this.v11q_1; var tmp_3 = this; tmp_3.y11q_1 = this.x11q_1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); url(this_0, this.w11q_1); var tmp_5 = this.n11q_1.f11r_1; doorNodeIdHeader(this_0, isInterface(tmp_5, DoorDatabaseRepository) ? tmp_5 : THROW_CCE()); parameter(this_0, 'accountPersonUid', this.o11q_1.toString()); parameter(this_0, 'actor', this.n11q_1.g11r_1.r45(Companion_instance_111.n4r(), this.p11q_1)); parameter(this_0, 'activityId', this.q11q_1); parameter(this_0, 'clazzUid', this.r11q_1.toString()); parameter(this_0, 'cbUid', this.s11q_1.toString()); parameter(this_0, 'contentEntryUid', this.t11q_1.toString()); parameter(this_0, 'contentEntryVersionUid', this.u11q_1.toString()); tmp_4.z11q_1 = this_0; this.z11q_1.w38_1 = Companion_getInstance().m2x_1; var tmp_6 = this; tmp_6.a11r_1 = this.y11q_1; var tmp_7 = this; tmp_7.b11r_1 = this.z11q_1; this.hd_1 = 1; suspendResult = (new HttpStatement(this.b11r_1, this.a11r_1)).h3z(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.c11r_1 = suspendResult; this.hd_1 = 2; var tmp_8 = this.c11r_1.e3c(); 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.h3b(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.d11r_1 = learningSpace; this.e11r_1 = httpClient; this.f11r_1 = repo; this.g11r_1 = xapiJson.wpn_1; } protoOf(ResumeOrStartXapiSessionUseCaseJs).hp6 = function (accountPersonUid, actor, activityId, clazzUid, cbUid, contentEntryUid, contentEntryVersionUid, $completion) { var tmp = new $invokeCOROUTINE$94(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().t12() : 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_41(function_0) { this.h11r_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_41).t1d = function (value, $completion) { return this.h11r_1(value, $completion); }; function collectAsState$lambda$slambda$slambda($state, resultContinuation) { this.q11r_1 = $state; CoroutineImpl.call(this, resultContinuation); } protoOf(collectAsState$lambda$slambda$slambda).e1o = function (it, $completion) { var tmp = this.f1o(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.e1o((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.q11r_1[1](this.r11r_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).f1o = function (it, completion) { var i = new collectAsState$lambda$slambda$slambda(this.q11r_1, completion); i.r11r_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.e1o(it, $completion); }; l.$arity = 1; return l; } function collectAsState$lambda$slambda($this_collectAsState, $state, resultContinuation) { this.a11s_1 = $this_collectAsState; this.b11s_1 = $state; CoroutineImpl.call(this, resultContinuation); } protoOf(collectAsState$lambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.b11s_1, null); suspendResult = this.a11s_1.a1c(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(collectAsState$lambda$slambda).v1m = function ($this$launch, completion) { var i = new collectAsState$lambda$slambda(this.a11s_1, this.b11s_1, completion); i.c11s_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.u1m($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().t12().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.l11s_1 = $block; CoroutineImpl.call(this, resultContinuation); } protoOf(useLaunchedEffect$lambda$slambda).u1m = function ($this$launch, $completion) { var tmp = this.v1m($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.u1m((!(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.l11s_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).v1m = function ($this$launch, completion) { var i = new useLaunchedEffect$lambda$slambda(this.l11s_1, completion); i.m11s_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.u1m($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().t12().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().t12().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_42(function_0) { this.n11s_1 = function_0; } protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_42).t1d = function (value, $completion) { return this.n11s_1(value, $completion); }; function useNavControllerEffect$slambda$slambda($navHostFn, resultContinuation) { this.w11s_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda$slambda).y11s = function (it, $completion) { var tmp = this.z11s(it, $completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda$slambda).he = function (p1, $completion) { return this.y11s(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().i5e('useNavControllerEffect: collect command: ' + this.x11s_1); this.w11s_1.n11c(this.x11s_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).z11s = function (it, completion) { var i = new useNavControllerEffect$slambda$slambda(this.w11s_1, completion); i.x11s_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.y11s(it, $completion); }; l.$arity = 1; return l; } function useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation) { this.i11t_1 = $commandFlow; this.j11t_1 = $navHostFn; CoroutineImpl.call(this, resultContinuation); } protoOf(useNavControllerEffect$slambda).j87 = function ($completion) { var tmp = this.l78($completion); tmp.jd_1 = Unit_instance; tmp.kd_1 = null; return tmp.ud(); }; protoOf(useNavControllerEffect$slambda).m78 = function ($completion) { return this.j87($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.k11t_1 = this.i11t_1; if (this.k11t_1 == null) { this.l11t_1 = null; this.hd_1 = 2; continue $sm; } else { this.hd_1 = 1; var tmp_0 = useNavControllerEffect$slambda$slambda_0(this.j11t_1, null); suspendResult = this.k11t_1.a1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_42(tmp_0), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } case 1: var tmp_1 = this; tmp_1.l11t_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).l78 = function (completion) { return new useNavControllerEffect$slambda(this.i11t_1, this.j11t_1, completion); }; function useNavControllerEffect$slambda_0($commandFlow, $navHostFn, resultContinuation) { var i = new useNavControllerEffect$slambda($commandFlow, $navHostFn, resultContinuation); var l = function ($completion) { return i.j87($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).f58(); // 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.d58(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).m11t_1; } function ViewModelAndKey(viewModel, locationKey) { this.m11t_1 = viewModel; this.n11t_1 = locationKey; } protoOf(ViewModelAndKey).toString = function () { return 'ViewModelAndKey(viewModel=' + this.m11t_1 + ', locationKey=' + this.n11t_1 + ')'; }; protoOf(ViewModelAndKey).hashCode = function () { var result = hashCode(this.m11t_1); result = imul(result, 31) + getStringHashCode(this.n11t_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.m11t_1, tmp0_other_with_cast.m11t_1)) return false; if (!(this.n11t_1 === tmp0_other_with_cast.n11t_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().i5e('Creating ViewModel: ' + getKClassFromExpression(this_0.m11t_1).f7()); return this_0; }; } function useViewModel$lambda$lambda($viewModelAndKey$delegate) { return function () { Napier_getInstance().i5e('Close ViewModel: ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).m11t_1).f7()); useViewModel$lambda($viewModelAndKey$delegate).m11t_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).n11t_1 === $locationKey)) { useViewModel$lambda_0($viewModelAndKey$delegate, new ViewModelAndKey($viewModelFactory(new SavedStateHandle2(window.history, $searchParams)), $locationKey)); Napier_getInstance().i5e('Recreating ViewModel ' + getKClassFromExpression(useViewModel$lambda($viewModelAndKey$delegate).m11t_1).f7()); tmp = Unit_instance; } $this$useEffect.push(useViewModel$lambda$lambda($viewModelAndKey$delegate)); return Unit_instance; }; } function Companion_206() { } var Companion_instance_255; function Companion_getInstance_223() { return Companion_instance_255; } function UstadMobileSystemImpl(settings, langConfig, jsStringProvider) { UstadMobileSystemCommon.call(this, settings, langConfig); this.dog_1 = jsStringProvider; } protoOf(UstadMobileSystemImpl).eog = function (stringResource) { return stringResource.tm3(this.dog_1, this.tq1_1.rpj_1); }; protoOf(UstadMobileSystemImpl).fog = function (stringResource, args) { return stringResource.um3(this.dog_1, this.tq1_1.rpj_1, args.slice()); }; protoOf(UstadMobileSystemImpl).rwj = function (pluralsResource, number) { return format(pluralsResource, number, [number]).ym3(this.dog_1); }; protoOf(UstadMobileSystemImpl).o11t = 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.o11t(context, zip, $completion); }; protoOf(UstadMobileSystemImpl).p11t = 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.p11t(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.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // 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.d58(tmp$ret$4, null); // Inline function 'org.kodein.di.instance' call var tmp_8 = $this$singleton.f58(); // 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.d58(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.f58(); // 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.d58(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.f58(); // 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.d58(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.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // 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.d58(tmp$ret$4, null).jjy_1; var tmp_8 = new CompressImageUseCaseJs(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.f58(); // 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.d58(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.f58(); // 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.d58(tmp$ret$0, null); return new CheckRegistrationAllowedUseCase(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_14($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); var tmp_2 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.f58(); // 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.d58(tmp$ret$4, 1); return new SaveLocalUrisAsBlobUseCaseJs(tmp_1, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_15($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new ContentEntryGetMetaDataFromUriUseCaseJs(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_16($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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(); var tmp_1 = tmp.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // Inline function 'org.kodein.type.generic' call var tmp_3 = typeToken(createKType(getKClass(Json), arrayOf([]), false)); var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE(); var tmp$ret$3 = tmp_2.d58(tmp$ret$2, null); return new CreatePasskeyRequestJsonUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_17($this$provider) { var tmp = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$provider.f58(); // 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.d58(tmp$ret$0, null).ljy(); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new SetPasswordUseCaseJs(tmp, tmp_2, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_18($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null).mjy(); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$provider.f58(); // 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.d58(tmp$ret$4, null).wpn_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$provider.f58(); // 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.d58(tmp$ret$6, 1); var tmp4_learningSpace = $this$provider.od(); // Inline function 'org.kodein.di.instance' call var tmp_7 = $this$provider.f58(); // 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.d58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$provider.f58(); // 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.d58(tmp$ret$10, null); // Inline function 'org.kodein.di.instance' call var tmp_11 = $this$provider.f58(); // 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.d58(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_19($this$singleton) { return new XapiJson(); } function DomainDiModuleJs$lambda$lambda_20($this$singleton) { return new GetApiUrlUseCaseDirect($this$singleton.od()); } function DomainDiModuleJs$lambda$lambda_21($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null).ljy(); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.f58(); // 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.d58(tmp$ret$4, null); return new ResumeOrStartXapiSessionUseCaseJs(tmp, tmp_2, tmp_5, tmp$ret$5); } function DomainDiModuleJs$lambda$lambda_22($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); return new LaunchXapiUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_23($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null).mjy(); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$provider.f58(); // 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.d58(tmp$ret$2, null); return new MoveContentEntriesUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_24($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); return new DeleteContentEntryParentChildJoinUseCase(tmp$ret$1.mjy()); } function DomainDiModuleJs$lambda$lambda_25($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); return new RestoreDeletedItemUseCase(tmp$ret$1.mjy()); } function DomainDiModuleJs$lambda$lambda_26($this$provider) { // Inline function 'org.kodein.di.instance' call var tmp = $this$provider.f58(); // 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.d58(tmp$ret$0, null); return new DeletePermanentlyUseCase(tmp$ret$1.mjy()); } function DomainDiModuleJs$lambda$lambda_27($this$singleton) { return new SetClipboardStringUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_28($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, 1); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // 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.d58(tmp$ret$4, null); return new SaveAndUploadLocalUrisUseCase(tmp_1, null, tmp_4, tmp$ret$5.jjy_1); } function DomainDiModuleJs$lambda$lambda_29($this$provider) { return new OpenBlobUseCaseJs(); } function DomainDiModuleJs$lambda$lambda_30($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); return new OpenBlobUiUseCase(tmp_1, tmp$ret$3); } function DomainDiModuleJs$lambda$lambda_31($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); return new CancelRemoteContentEntryImportUseCase(tmp, tmp_2, tmp$ret$3.ljy()); } function DomainDiModuleJs$lambda$lambda_32($this$singleton) { var tmp0_learningSpace = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_1 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null).ljy(); return new DismissRemoteContentEntryImportErrorUseCase(tmp1_httpClient, tmp0_learningSpace, tmp2_repo); } function DomainDiModuleJs$lambda$lambda_33($this$singleton) { return new XXStringHasherJs(); } function DomainDiModuleJs$lambda$lambda_34($this$singleton) { return new XXHasher64FactoryJs(); } function DomainDiModuleJs$lambda$lambda_35($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); return new StoreActivitiesUseCase(tmp_1, tmp$ret$3.jjy_1); } function DomainDiModuleJs$lambda$lambda_36($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null).jjy_1; // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // 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.d58(tmp$ret$4, null); var tmp_8 = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_9 = $this$singleton.f58(); // 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.d58(tmp$ret$6, null); // Inline function 'org.kodein.di.instance' call var tmp_12 = $this$singleton.f58(); // 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.d58(tmp$ret$8, null); // Inline function 'org.kodein.di.instance' call var tmp_15 = $this$singleton.f58(); // 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.d58(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_37($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); return new SaveStatementOnClearUseCaseJs(tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_38($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); return new SaveStatementOnUnloadUseCaseJs(tmp, tmp$ret$1); } function DomainDiModuleJs$lambda$lambda_39($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_5 = $this$singleton.f58(); // 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.d58(tmp$ret$4, null); return new NonInteractiveContentXapiStatementRecorderFactory(tmp_1, tmp_4, tmp$ret$5, $this$singleton.od()); } function DomainDiModuleJs$lambda$lambda_40($this$singleton) { // Inline function 'org.kodein.di.instance' call var tmp = $this$singleton.f58(); // 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.d58(tmp$ret$0, 1); // Inline function 'org.kodein.di.instance' call var tmp_2 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); return new AddNewPersonUseCase(tmp_1, tmp$ret$3.jjy_1); } function DomainDiModuleJs$lambda$lambda_41($this$singleton) { var tmp = $this$singleton.od(); // Inline function 'org.kodein.di.instance' call var tmp_0 = $this$singleton.f58(); // 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.d58(tmp$ret$0, null); // Inline function 'org.kodein.di.instance' call var tmp_3 = $this$singleton.f58(); // 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.d58(tmp$ret$2, null); // Inline function 'org.kodein.di.instance' call var tmp_6 = $this$singleton.f58(); // 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.d58(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.o56(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.b56(); // 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.c5b(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.o56(tmp$ret$6, null, null); // Inline function 'org.kodein.di.provider' call var creator_0 = DomainDiModuleJs$lambda$lambda_0; var tmp_6 = $this$$receiver.b56(); // 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.c5b(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.o56(tmp$ret$10, null, null); // Inline function 'org.kodein.di.singleton' call var creator_1 = DomainDiModuleJs$lambda$lambda_1; var tmp_10 = $this$$receiver.c56(); var tmp_11 = $this$$receiver.b56(); var tmp_12 = $this$$receiver.d56(); // 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.c5b(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.o56(tmp$ret$14, null, null); // Inline function 'org.kodein.di.singleton' call var creator_2 = DomainDiModuleJs$lambda$lambda_2; var tmp_16 = $this$$receiver.c56(); var tmp_17 = $this$$receiver.b56(); var tmp_18 = $this$$receiver.d56(); // 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.c5b(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.o56(tmp$ret$18, null, null); // Inline function 'org.kodein.di.provider' call var creator_3 = DomainDiModuleJs$lambda$lambda_3; var tmp_22 = $this$$receiver.b56(); // 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.c5b(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.o56(tmp$ret$22, null, null); // Inline function 'org.kodein.di.provider' call var creator_4 = DomainDiModuleJs$lambda$lambda_4; var tmp_26 = $this$$receiver.b56(); // 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.c5b(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.o56(tmp$ret$26, null, null); // Inline function 'org.kodein.di.provider' call var creator_5 = DomainDiModuleJs$lambda$lambda_5; var tmp_30 = $this$$receiver.b56(); // 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.c5b(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.o56(tmp$ret$30, null, null); // Inline function 'org.kodein.di.provider' call var creator_6 = DomainDiModuleJs$lambda$lambda_6; var tmp_34 = $this$$receiver.b56(); // 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.c5b(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.o56(tmp$ret$34, null, null); // Inline function 'org.kodein.di.provider' call var creator_7 = DomainDiModuleJs$lambda$lambda_7; var tmp_38 = $this$$receiver.b56(); // 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.c5b(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.o56(tmp$ret$38, null, null); // Inline function 'org.kodein.di.singleton' call var creator_8 = DomainDiModuleJs$lambda$lambda_8; var tmp_42 = $this$$receiver.c56(); var tmp_43 = $this$$receiver.b56(); var tmp_44 = $this$$receiver.d56(); // 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.c5b(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.o56(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.c56(); var tmp_50 = this_1.b56(); var tmp_51 = this_1.d56(); // 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.c5b(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.o56(tmp$ret$48, null, null); // Inline function 'org.kodein.di.singleton' call var creator_10 = DomainDiModuleJs$lambda$lambda_10; var tmp_55 = $this$$receiver.c56(); var tmp_56 = $this$$receiver.b56(); var tmp_57 = $this$$receiver.d56(); // 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.c5b(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.o56(tmp$ret$52, null, null); // Inline function 'org.kodein.di.singleton' call var creator_11 = DomainDiModuleJs$lambda$lambda_11; var tmp_61 = $this$$receiver.c56(); var tmp_62 = $this$$receiver.b56(); var tmp_63 = $this$$receiver.d56(); // 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.c5b(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.o56(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.c56(); var tmp_69 = this_2.b56(); var tmp_70 = this_2.d56(); // 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.c5b(tmp$ret$61); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_72 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), arrayOf([]), false)); var tmp$ret$62 = isInterface(tmp_72, TypeToken) ? tmp_72 : THROW_CCE(); var tmp_73 = $this$$receiver.o56(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.c56(); var tmp_76 = this_3.b56(); var tmp_77 = this_3.d56(); // Inline function 'org.kodein.type.generic' call var tmp_78 = typeToken(createKType(getKClass(CheckRegistrationAllowedUseCase), 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.c5b(tmp$ret$67); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_79 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobsUseCase), arrayOf([]), false)); var tmp$ret$68 = isInterface(tmp_79, TypeToken) ? tmp_79 : THROW_CCE(); var tmp_80 = $this$$receiver.o56(tmp$ret$68, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_3 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_81 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$70 = isInterface(tmp_81, TypeToken) ? tmp_81 : THROW_CCE(); var this_4 = new ImplWithScope(tmp$ret$70, scope_3); var creator_14 = DomainDiModuleJs$lambda$lambda_14; var tmp_82 = this_4.c56(); var tmp_83 = this_4.b56(); var tmp_84 = this_4.d56(); // Inline function 'org.kodein.type.generic' call var tmp_85 = typeToken(createKType(getKClass(SaveLocalUrisAsBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$72 = isInterface(tmp_85, TypeToken) ? tmp_85 : THROW_CCE(); var tmp$ret$73 = new Singleton(tmp_82, tmp_83, tmp_84, tmp$ret$72, null, true, creator_14); tmp_80.c5b(tmp$ret$73); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_86 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCase), arrayOf([]), false)); var tmp$ret$74 = isInterface(tmp_86, TypeToken) ? tmp_86 : THROW_CCE(); var tmp_87 = $this$$receiver.o56(tmp$ret$74, null, null); // Inline function 'org.kodein.di.provider' call var creator_15 = DomainDiModuleJs$lambda$lambda_15; var tmp_88 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_89 = typeToken(createKType(getKClass(ContentEntryGetMetaDataFromUriUseCaseJs), arrayOf([]), false)); var tmp$ret$76 = isInterface(tmp_89, TypeToken) ? tmp_89 : THROW_CCE(); var tmp$ret$77 = new Provider(tmp_88, tmp$ret$76, creator_15); tmp_87.c5b(tmp$ret$77); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_90 = typeToken(createKType(getKClass(CreatePasskeyRequestJsonUseCase), arrayOf([]), false)); var tmp$ret$78 = isInterface(tmp_90, TypeToken) ? tmp_90 : THROW_CCE(); var tmp_91 = $this$$receiver.o56(tmp$ret$78, null, null); // Inline function 'org.kodein.di.provider' call var creator_16 = DomainDiModuleJs$lambda$lambda_16; var tmp_92 = $this$$receiver.b56(); // Inline function 'org.kodein.type.generic' call var tmp_93 = typeToken(createKType(getKClass(CreatePasskeyRequestJsonUseCase), arrayOf([]), false)); var tmp$ret$80 = isInterface(tmp_93, TypeToken) ? tmp_93 : THROW_CCE(); var tmp$ret$81 = new Provider(tmp_92, tmp$ret$80, creator_16); tmp_91.c5b(tmp$ret$81); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_94 = typeToken(createKType(getKClass(SetPasswordUseCase), arrayOf([]), false)); var tmp$ret$82 = isInterface(tmp_94, TypeToken) ? tmp_94 : THROW_CCE(); var tmp_95 = $this$$receiver.o56(tmp$ret$82, 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_96 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$84 = isInterface(tmp_96, TypeToken) ? tmp_96 : THROW_CCE(); var this_5 = new ImplWithScope(tmp$ret$84, scope_4); var creator_17 = DomainDiModuleJs$lambda$lambda_17; var tmp_97 = this_5.b56(); // Inline function 'org.kodein.type.generic' call var tmp_98 = typeToken(createKType(getKClass(SetPasswordUseCaseJs), arrayOf([]), false)); var tmp$ret$86 = isInterface(tmp_98, TypeToken) ? tmp_98 : THROW_CCE(); var tmp$ret$87 = new Provider(tmp_97, tmp$ret$86, creator_17); tmp_95.c5b(tmp$ret$87); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_99 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$88 = isInterface(tmp_99, TypeToken) ? tmp_99 : THROW_CCE(); var tmp_100 = $this$$receiver.o56(tmp$ret$88, null, null); // Inline function 'org.kodein.di.provider' 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.b56(); // Inline function 'org.kodein.type.generic' call var tmp_103 = typeToken(createKType(getKClass(ResolveXapiLaunchHrefUseCase), arrayOf([]), false)); var tmp$ret$92 = isInterface(tmp_103, TypeToken) ? tmp_103 : THROW_CCE(); var tmp$ret$93 = new Provider(tmp_102, tmp$ret$92, creator_18); tmp_100.c5b(tmp$ret$93); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_104 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$94 = isInterface(tmp_104, TypeToken) ? tmp_104 : THROW_CCE(); var tmp_105 = $this$$receiver.o56(tmp$ret$94, null, null); // Inline function 'org.kodein.di.singleton' call var creator_19 = DomainDiModuleJs$lambda$lambda_19; var tmp_106 = $this$$receiver.c56(); var tmp_107 = $this$$receiver.b56(); var tmp_108 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_109 = typeToken(createKType(getKClass(XapiJson), arrayOf([]), false)); var tmp$ret$96 = isInterface(tmp_109, TypeToken) ? tmp_109 : THROW_CCE(); var tmp$ret$97 = new Singleton(tmp_106, tmp_107, tmp_108, tmp$ret$96, null, true, creator_19); tmp_105.c5b(tmp$ret$97); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_110 = typeToken(createKType(getKClass(GetApiUrlUseCase), arrayOf([]), false)); var tmp$ret$98 = isInterface(tmp_110, TypeToken) ? tmp_110 : THROW_CCE(); var tmp_111 = $this$$receiver.o56(tmp$ret$98, 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_112 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$100 = isInterface(tmp_112, TypeToken) ? tmp_112 : THROW_CCE(); var this_7 = new ImplWithScope(tmp$ret$100, scope_6); var creator_20 = DomainDiModuleJs$lambda$lambda_20; var tmp_113 = this_7.c56(); var tmp_114 = this_7.b56(); var tmp_115 = this_7.d56(); // Inline function 'org.kodein.type.generic' call var tmp_116 = typeToken(createKType(getKClass(GetApiUrlUseCaseDirect), arrayOf([]), false)); var tmp$ret$102 = isInterface(tmp_116, TypeToken) ? tmp_116 : THROW_CCE(); var tmp$ret$103 = new Singleton(tmp_113, tmp_114, tmp_115, tmp$ret$102, null, true, creator_20); tmp_111.c5b(tmp$ret$103); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_117 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCase), arrayOf([]), false)); var tmp$ret$104 = isInterface(tmp_117, TypeToken) ? tmp_117 : THROW_CCE(); var tmp_118 = $this$$receiver.o56(tmp$ret$104, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_7 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_119 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$106 = isInterface(tmp_119, TypeToken) ? tmp_119 : THROW_CCE(); var this_8 = new ImplWithScope(tmp$ret$106, scope_7); var creator_21 = DomainDiModuleJs$lambda$lambda_21; var tmp_120 = this_8.c56(); var tmp_121 = this_8.b56(); var tmp_122 = this_8.d56(); // Inline function 'org.kodein.type.generic' call var tmp_123 = typeToken(createKType(getKClass(ResumeOrStartXapiSessionUseCaseJs), arrayOf([]), false)); var tmp$ret$108 = isInterface(tmp_123, TypeToken) ? tmp_123 : THROW_CCE(); var tmp$ret$109 = new Singleton(tmp_120, tmp_121, tmp_122, tmp$ret$108, null, true, creator_21); tmp_118.c5b(tmp$ret$109); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_124 = typeToken(createKType(getKClass(LaunchXapiUseCase), arrayOf([]), false)); var tmp$ret$110 = isInterface(tmp_124, TypeToken) ? tmp_124 : THROW_CCE(); var tmp_125 = $this$$receiver.o56(tmp$ret$110, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_8 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_126 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$112 = isInterface(tmp_126, TypeToken) ? tmp_126 : THROW_CCE(); var this_9 = new ImplWithScope(tmp$ret$112, scope_8); var creator_22 = DomainDiModuleJs$lambda$lambda_22; var tmp_127 = this_9.b56(); // Inline function 'org.kodein.type.generic' call var tmp_128 = typeToken(createKType(getKClass(LaunchXapiUseCaseJs), arrayOf([]), false)); var tmp$ret$114 = isInterface(tmp_128, TypeToken) ? tmp_128 : THROW_CCE(); var tmp$ret$115 = new Provider(tmp_127, tmp$ret$114, creator_22); tmp_125.c5b(tmp$ret$115); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_129 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$116 = isInterface(tmp_129, TypeToken) ? tmp_129 : THROW_CCE(); var tmp_130 = $this$$receiver.o56(tmp$ret$116, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_9 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_131 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$118 = isInterface(tmp_131, TypeToken) ? tmp_131 : THROW_CCE(); var this_10 = new ImplWithScope(tmp$ret$118, scope_9); var creator_23 = DomainDiModuleJs$lambda$lambda_23; var tmp_132 = this_10.b56(); // Inline function 'org.kodein.type.generic' call var tmp_133 = typeToken(createKType(getKClass(MoveContentEntriesUseCase), arrayOf([]), false)); var tmp$ret$120 = isInterface(tmp_133, TypeToken) ? tmp_133 : THROW_CCE(); var tmp$ret$121 = new Provider(tmp_132, tmp$ret$120, creator_23); tmp_130.c5b(tmp$ret$121); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_134 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$122 = isInterface(tmp_134, TypeToken) ? tmp_134 : THROW_CCE(); var tmp_135 = $this$$receiver.o56(tmp$ret$122, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_10 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_136 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$124 = isInterface(tmp_136, TypeToken) ? tmp_136 : THROW_CCE(); var this_11 = new ImplWithScope(tmp$ret$124, scope_10); var creator_24 = DomainDiModuleJs$lambda$lambda_24; var tmp_137 = this_11.b56(); // Inline function 'org.kodein.type.generic' call var tmp_138 = typeToken(createKType(getKClass(DeleteContentEntryParentChildJoinUseCase), arrayOf([]), false)); var tmp$ret$126 = isInterface(tmp_138, TypeToken) ? tmp_138 : THROW_CCE(); var tmp$ret$127 = new Provider(tmp_137, tmp$ret$126, creator_24); tmp_135.c5b(tmp$ret$127); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_139 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$128 = isInterface(tmp_139, TypeToken) ? tmp_139 : THROW_CCE(); var tmp_140 = $this$$receiver.o56(tmp$ret$128, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_11 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_141 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$130 = isInterface(tmp_141, TypeToken) ? tmp_141 : THROW_CCE(); var this_12 = new ImplWithScope(tmp$ret$130, scope_11); var creator_25 = DomainDiModuleJs$lambda$lambda_25; var tmp_142 = this_12.b56(); // Inline function 'org.kodein.type.generic' call var tmp_143 = typeToken(createKType(getKClass(RestoreDeletedItemUseCase), arrayOf([]), false)); var tmp$ret$132 = isInterface(tmp_143, TypeToken) ? tmp_143 : THROW_CCE(); var tmp$ret$133 = new Provider(tmp_142, tmp$ret$132, creator_25); tmp_140.c5b(tmp$ret$133); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_144 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$134 = isInterface(tmp_144, TypeToken) ? tmp_144 : THROW_CCE(); var tmp_145 = $this$$receiver.o56(tmp$ret$134, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_12 = Companion_getInstance_17().tnp_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.b56(); // Inline function 'org.kodein.type.generic' call var tmp_148 = typeToken(createKType(getKClass(DeletePermanentlyUseCase), arrayOf([]), false)); var tmp$ret$138 = isInterface(tmp_148, TypeToken) ? tmp_148 : THROW_CCE(); var tmp$ret$139 = new Provider(tmp_147, tmp$ret$138, creator_26); tmp_145.c5b(tmp$ret$139); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_149 = typeToken(createKType(getKClass(SetClipboardStringUseCase), arrayOf([]), false)); var tmp$ret$140 = isInterface(tmp_149, TypeToken) ? tmp_149 : THROW_CCE(); var tmp_150 = $this$$receiver.o56(tmp$ret$140, null, null); // Inline function 'org.kodein.di.singleton' call var creator_27 = DomainDiModuleJs$lambda$lambda_27; var tmp_151 = $this$$receiver.c56(); var tmp_152 = $this$$receiver.b56(); var tmp_153 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_154 = typeToken(createKType(getKClass(SetClipboardStringUseCaseJs), arrayOf([]), false)); var tmp$ret$142 = isInterface(tmp_154, TypeToken) ? tmp_154 : THROW_CCE(); var tmp$ret$143 = new Singleton(tmp_151, tmp_152, tmp_153, tmp$ret$142, null, true, creator_27); tmp_150.c5b(tmp$ret$143); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_155 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$144 = isInterface(tmp_155, TypeToken) ? tmp_155 : THROW_CCE(); var tmp_156 = $this$$receiver.o56(tmp$ret$144, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_13 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_157 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$146 = isInterface(tmp_157, TypeToken) ? tmp_157 : THROW_CCE(); var this_14 = new ImplWithScope(tmp$ret$146, scope_13); var creator_28 = DomainDiModuleJs$lambda$lambda_28; var tmp_158 = this_14.c56(); var tmp_159 = this_14.b56(); var tmp_160 = this_14.d56(); // Inline function 'org.kodein.type.generic' call var tmp_161 = typeToken(createKType(getKClass(SaveAndUploadLocalUrisUseCase), arrayOf([]), false)); var tmp$ret$148 = isInterface(tmp_161, TypeToken) ? tmp_161 : THROW_CCE(); var tmp$ret$149 = new Singleton(tmp_158, tmp_159, tmp_160, tmp$ret$148, null, true, creator_28); tmp_156.c5b(tmp$ret$149); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_162 = typeToken(createKType(getKClass(OpenBlobUseCase), arrayOf([]), false)); var tmp$ret$150 = isInterface(tmp_162, TypeToken) ? tmp_162 : THROW_CCE(); var tmp_163 = $this$$receiver.o56(tmp$ret$150, null, null); // Inline function 'org.kodein.di.provider' call // Inline function 'org.kodein.di.scoped' call var scope_14 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_164 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$152 = isInterface(tmp_164, TypeToken) ? tmp_164 : THROW_CCE(); var this_15 = new ImplWithScope(tmp$ret$152, scope_14); var creator_29 = DomainDiModuleJs$lambda$lambda_29; var tmp_165 = this_15.b56(); // Inline function 'org.kodein.type.generic' call var tmp_166 = typeToken(createKType(getKClass(OpenBlobUseCaseJs), arrayOf([]), false)); var tmp$ret$154 = isInterface(tmp_166, TypeToken) ? tmp_166 : THROW_CCE(); var tmp$ret$155 = new Provider(tmp_165, tmp$ret$154, creator_29); tmp_163.c5b(tmp$ret$155); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_167 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$156 = isInterface(tmp_167, TypeToken) ? tmp_167 : THROW_CCE(); var tmp_168 = $this$$receiver.o56(tmp$ret$156, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_15 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_169 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$158 = isInterface(tmp_169, TypeToken) ? tmp_169 : THROW_CCE(); var this_16 = new ImplWithScope(tmp$ret$158, scope_15); var creator_30 = DomainDiModuleJs$lambda$lambda_30; var tmp_170 = this_16.c56(); var tmp_171 = this_16.b56(); var tmp_172 = this_16.d56(); // Inline function 'org.kodein.type.generic' call var tmp_173 = typeToken(createKType(getKClass(OpenBlobUiUseCase), arrayOf([]), false)); var tmp$ret$160 = isInterface(tmp_173, TypeToken) ? tmp_173 : THROW_CCE(); var tmp$ret$161 = new Singleton(tmp_170, tmp_171, tmp_172, tmp$ret$160, null, true, creator_30); tmp_168.c5b(tmp$ret$161); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_174 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$162 = isInterface(tmp_174, TypeToken) ? tmp_174 : THROW_CCE(); var tmp_175 = $this$$receiver.o56(tmp$ret$162, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_16 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_176 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$164 = isInterface(tmp_176, TypeToken) ? tmp_176 : THROW_CCE(); var this_17 = new ImplWithScope(tmp$ret$164, scope_16); var creator_31 = DomainDiModuleJs$lambda$lambda_31; var tmp_177 = this_17.c56(); var tmp_178 = this_17.b56(); var tmp_179 = this_17.d56(); // Inline function 'org.kodein.type.generic' call var tmp_180 = typeToken(createKType(getKClass(CancelRemoteContentEntryImportUseCase), arrayOf([]), false)); var tmp$ret$166 = isInterface(tmp_180, TypeToken) ? tmp_180 : THROW_CCE(); var tmp$ret$167 = new Singleton(tmp_177, tmp_178, tmp_179, tmp$ret$166, null, true, creator_31); tmp_175.c5b(tmp$ret$167); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_181 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$168 = isInterface(tmp_181, TypeToken) ? tmp_181 : THROW_CCE(); var tmp_182 = $this$$receiver.o56(tmp$ret$168, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_17 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_183 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$170 = isInterface(tmp_183, TypeToken) ? tmp_183 : THROW_CCE(); var this_18 = new ImplWithScope(tmp$ret$170, scope_17); var creator_32 = DomainDiModuleJs$lambda$lambda_32; var tmp_184 = this_18.c56(); var tmp_185 = this_18.b56(); var tmp_186 = this_18.d56(); // Inline function 'org.kodein.type.generic' call var tmp_187 = typeToken(createKType(getKClass(DismissRemoteContentEntryImportErrorUseCase), arrayOf([]), false)); var tmp$ret$172 = isInterface(tmp_187, TypeToken) ? tmp_187 : THROW_CCE(); var tmp$ret$173 = new Singleton(tmp_184, tmp_185, tmp_186, tmp$ret$172, null, true, creator_32); tmp_182.c5b(tmp$ret$173); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_188 = typeToken(createKType(getKClass(XXStringHasher), arrayOf([]), false)); var tmp$ret$174 = isInterface(tmp_188, TypeToken) ? tmp_188 : THROW_CCE(); var tmp_189 = $this$$receiver.o56(tmp$ret$174, null, null); // Inline function 'org.kodein.di.singleton' call var creator_33 = DomainDiModuleJs$lambda$lambda_33; var tmp_190 = $this$$receiver.c56(); var tmp_191 = $this$$receiver.b56(); var tmp_192 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_193 = typeToken(createKType(getKClass(XXStringHasherJs), arrayOf([]), false)); var tmp$ret$176 = isInterface(tmp_193, TypeToken) ? tmp_193 : THROW_CCE(); var tmp$ret$177 = new Singleton(tmp_190, tmp_191, tmp_192, tmp$ret$176, null, true, creator_33); tmp_189.c5b(tmp$ret$177); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_194 = typeToken(createKType(getKClass(XXHasher64Factory), arrayOf([]), false)); var tmp$ret$178 = isInterface(tmp_194, TypeToken) ? tmp_194 : THROW_CCE(); var tmp_195 = $this$$receiver.o56(tmp$ret$178, null, null); // Inline function 'org.kodein.di.singleton' call var creator_34 = DomainDiModuleJs$lambda$lambda_34; var tmp_196 = $this$$receiver.c56(); var tmp_197 = $this$$receiver.b56(); var tmp_198 = $this$$receiver.d56(); // Inline function 'org.kodein.type.generic' call var tmp_199 = typeToken(createKType(getKClass(XXHasher64FactoryJs), arrayOf([]), false)); var tmp$ret$180 = isInterface(tmp_199, TypeToken) ? tmp_199 : THROW_CCE(); var tmp$ret$181 = new Singleton(tmp_196, tmp_197, tmp_198, tmp$ret$180, null, true, creator_34); tmp_195.c5b(tmp$ret$181); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_200 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$182 = isInterface(tmp_200, TypeToken) ? tmp_200 : THROW_CCE(); var tmp_201 = $this$$receiver.o56(tmp$ret$182, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_18 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_202 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$184 = isInterface(tmp_202, TypeToken) ? tmp_202 : THROW_CCE(); var this_19 = new ImplWithScope(tmp$ret$184, scope_18); var creator_35 = DomainDiModuleJs$lambda$lambda_35; var tmp_203 = this_19.c56(); var tmp_204 = this_19.b56(); var tmp_205 = this_19.d56(); // Inline function 'org.kodein.type.generic' call var tmp_206 = typeToken(createKType(getKClass(StoreActivitiesUseCase), arrayOf([]), false)); var tmp$ret$186 = isInterface(tmp_206, TypeToken) ? tmp_206 : THROW_CCE(); var tmp$ret$187 = new Singleton(tmp_203, tmp_204, tmp_205, tmp$ret$186, null, true, creator_35); tmp_201.c5b(tmp$ret$187); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_207 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$188 = isInterface(tmp_207, TypeToken) ? tmp_207 : THROW_CCE(); var tmp_208 = $this$$receiver.o56(tmp$ret$188, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_19 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_209 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$190 = isInterface(tmp_209, TypeToken) ? tmp_209 : THROW_CCE(); var this_20 = new ImplWithScope(tmp$ret$190, scope_19); var creator_36 = DomainDiModuleJs$lambda$lambda_36; var tmp_210 = this_20.c56(); var tmp_211 = this_20.b56(); var tmp_212 = this_20.d56(); // Inline function 'org.kodein.type.generic' call var tmp_213 = typeToken(createKType(getKClass(XapiStatementResource), arrayOf([]), false)); var tmp$ret$192 = isInterface(tmp_213, TypeToken) ? tmp_213 : THROW_CCE(); var tmp$ret$193 = new Singleton(tmp_210, tmp_211, tmp_212, tmp$ret$192, null, true, creator_36); tmp_208.c5b(tmp$ret$193); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_214 = typeToken(createKType(getKClass(SaveStatementOnClearUseCase), arrayOf([]), false)); var tmp$ret$194 = isInterface(tmp_214, TypeToken) ? tmp_214 : THROW_CCE(); var tmp_215 = $this$$receiver.o56(tmp$ret$194, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_20 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_216 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$196 = isInterface(tmp_216, TypeToken) ? tmp_216 : THROW_CCE(); var this_21 = new ImplWithScope(tmp$ret$196, scope_20); var creator_37 = DomainDiModuleJs$lambda$lambda_37; var tmp_217 = this_21.c56(); var tmp_218 = this_21.b56(); var tmp_219 = this_21.d56(); // Inline function 'org.kodein.type.generic' call var tmp_220 = typeToken(createKType(getKClass(SaveStatementOnClearUseCaseJs), arrayOf([]), false)); var tmp$ret$198 = isInterface(tmp_220, TypeToken) ? tmp_220 : THROW_CCE(); var tmp$ret$199 = new Singleton(tmp_217, tmp_218, tmp_219, tmp$ret$198, null, true, creator_37); tmp_215.c5b(tmp$ret$199); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_221 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCase), arrayOf([]), false)); var tmp$ret$200 = isInterface(tmp_221, TypeToken) ? tmp_221 : THROW_CCE(); var tmp_222 = $this$$receiver.o56(tmp$ret$200, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_21 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_223 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$202 = isInterface(tmp_223, TypeToken) ? tmp_223 : THROW_CCE(); var this_22 = new ImplWithScope(tmp$ret$202, scope_21); var creator_38 = DomainDiModuleJs$lambda$lambda_38; var tmp_224 = this_22.c56(); var tmp_225 = this_22.b56(); var tmp_226 = this_22.d56(); // Inline function 'org.kodein.type.generic' call var tmp_227 = typeToken(createKType(getKClass(SaveStatementOnUnloadUseCaseJs), arrayOf([]), false)); var tmp$ret$204 = isInterface(tmp_227, TypeToken) ? tmp_227 : THROW_CCE(); var tmp$ret$205 = new Singleton(tmp_224, tmp_225, tmp_226, tmp$ret$204, null, true, creator_38); tmp_222.c5b(tmp$ret$205); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_228 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$206 = isInterface(tmp_228, TypeToken) ? tmp_228 : THROW_CCE(); var tmp_229 = $this$$receiver.o56(tmp$ret$206, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_22 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_230 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$208 = isInterface(tmp_230, TypeToken) ? tmp_230 : THROW_CCE(); var this_23 = new ImplWithScope(tmp$ret$208, scope_22); var creator_39 = DomainDiModuleJs$lambda$lambda_39; var tmp_231 = this_23.c56(); var tmp_232 = this_23.b56(); var tmp_233 = this_23.d56(); // Inline function 'org.kodein.type.generic' call var tmp_234 = typeToken(createKType(getKClass(NonInteractiveContentXapiStatementRecorderFactory), arrayOf([]), false)); var tmp$ret$210 = isInterface(tmp_234, TypeToken) ? tmp_234 : THROW_CCE(); var tmp$ret$211 = new Singleton(tmp_231, tmp_232, tmp_233, tmp$ret$210, null, true, creator_39); tmp_229.c5b(tmp$ret$211); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_235 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$212 = isInterface(tmp_235, TypeToken) ? tmp_235 : THROW_CCE(); var tmp_236 = $this$$receiver.o56(tmp$ret$212, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_23 = Companion_getInstance_17().tnp_1; // Inline function 'org.kodein.type.generic' call var tmp_237 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$214 = isInterface(tmp_237, TypeToken) ? tmp_237 : THROW_CCE(); var this_24 = new ImplWithScope(tmp$ret$214, scope_23); var creator_40 = DomainDiModuleJs$lambda$lambda_40; var tmp_238 = this_24.c56(); var tmp_239 = this_24.b56(); var tmp_240 = this_24.d56(); // Inline function 'org.kodein.type.generic' call var tmp_241 = typeToken(createKType(getKClass(AddNewPersonUseCase), arrayOf([]), false)); var tmp$ret$216 = isInterface(tmp_241, TypeToken) ? tmp_241 : THROW_CCE(); var tmp$ret$217 = new Singleton(tmp_238, tmp_239, tmp_240, tmp$ret$216, null, true, creator_40); tmp_236.c5b(tmp$ret$217); // Inline function 'org.kodein.di.bind' call // Inline function 'org.kodein.type.generic' call var tmp_242 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCase), arrayOf([]), false)); var tmp$ret$218 = isInterface(tmp_242, TypeToken) ? tmp_242 : THROW_CCE(); var tmp_243 = $this$$receiver.o56(tmp$ret$218, null, null); // Inline function 'org.kodein.di.singleton' call // Inline function 'org.kodein.di.scoped' call var scope_24 = $endpointScope; // Inline function 'org.kodein.type.generic' call var tmp_244 = typeToken(createKType(getKClass(LearningSpace), arrayOf([]), false)); var tmp$ret$220 = isInterface(tmp_244, TypeToken) ? tmp_244 : THROW_CCE(); var this_25 = new ImplWithScope(tmp$ret$220, scope_24); var creator_41 = DomainDiModuleJs$lambda$lambda_41; var tmp_245 = this_25.c56(); var tmp_246 = this_25.b56(); var tmp_247 = this_25.d56(); // Inline function 'org.kodein.type.generic' call var tmp_248 = typeToken(createKType(getKClass(GetSubtitleTrackFromUriUseCaseJs), arrayOf([]), false)); var tmp$ret$222 = isInterface(tmp_248, TypeToken) ? tmp_248 : THROW_CCE(); var tmp$ret$223 = new Singleton(tmp_245, tmp_246, tmp_247, tmp$ret$222, null, true, creator_41); tmp_243.c5b(tmp$ret$223); return Unit_instance; }; } function StringProviderJs(locale, jsStringProvider) { this.q11t_1 = locale; this.r11t_1 = jsStringProvider; } protoOf(StringProviderJs).eq5 = function (stringResource) { return stringResource.tm3(this.r11t_1, this.q11t_1); }; protoOf(StringProviderJs).s11t = function (stringResource, args) { return stringResource.um3(this.r11t_1, this.q11t_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.q72_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_207() { this.t11t_1 = '_handleId'; } var Companion_instance_256; function Companion_getInstance_224() { return Companion_instance_256; } function SavedStateHandle2(history, searchParams) { this.u11t_1 = history; this.v11t_1 = searchParams; var storedHandleId = this.ba('_handleId'); if (storedHandleId == null) { this.w11t_1 = Default_getInstance_0().fg().toString(); setStateKey(this.u11t_1, this, '_handleId', this.w11t_1); } else { this.w11t_1 = storedHandleId; } } protoOf(SavedStateHandle2).qqf = function (key, value) { var tmp0_safe_receiver = this.u11t_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.w11t_1) { throw IllegalStateException_init_$Create$('SavedState cannot save values after the user has changed page'); } if (!(value == null)) { setStateKey(this.u11t_1, this, key, value); } }; protoOf(SavedStateHandle2).ba = function (key) { var tmp0_safe_receiver = this.u11t_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.v11t_1.get(key) : tmp3_elvis_lhs; }; function UrlKmp(url) { return new UrlKmpJs(new URL(url)); } function UrlKmpJs(url) { this.x11t_1 = url; } protoOf(UrlKmpJs).toString = function () { return toString(this.x11t_1); }; protoOf(UrlKmpJs).boz = function (path) { return new UrlKmpJs(new URL(path, toString(this.x11t_1))); }; function Companion_208() { } protoOf(Companion_208).kq9 = function (text) { return encodeURIComponent(text); }; protoOf(Companion_208).jq9 = function (text) { return decodeURIComponent(text); }; var Companion_instance_257; function Companion_getInstance_225() { return Companion_instance_257; } function UstadAntilog(defaultTag) { defaultTag = defaultTag === VOID ? 'NoTag' : defaultTag; Antilog.call(this); this.y11t_1 = defaultTag; } protoOf(UstadAntilog).t5d = 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).v5d = function (priority, tag, throwable, message) { var logTag = tag == null ? this.y11t_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 base64StringToByteArray(_this__u8e3s4) { var reason = 'Not implemented on JS yet'; throw new NotImplementedError('An operation is not implemented: ' + reason); } function JsHeaderStringValuesAdapter(headers) { this.z11t_1 = headers; } protoOf(JsHeaderStringValuesAdapter).n2n = function (key) { var tmp0_safe_receiver = this.z11t_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).o2n = function () { return toSet_0(this.z11t_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).c57 = get_diContext; protoOf(AuthManager).d57 = get_diTrigger; protoOf($serializer).l4g = typeParametersSerializers; protoOf($serializer_0).l4g = typeParametersSerializers; protoOf($serializer_1).l4g = typeParametersSerializers; protoOf($serializer_2).l4g = typeParametersSerializers; protoOf($serializer_3).l4g = typeParametersSerializers; protoOf($serializer_4).l4g = typeParametersSerializers; protoOf($serializer_5).l4g = typeParametersSerializers; protoOf($serializer_6).l4g = typeParametersSerializers; protoOf($serializer_7).l4g = typeParametersSerializers; protoOf($serializer_8).l4g = typeParametersSerializers; protoOf($serializer_9).l4g = typeParametersSerializers; protoOf($serializer_10).l4g = typeParametersSerializers; protoOf($serializer_11).l4g = typeParametersSerializers; protoOf($serializer_12).l4g = typeParametersSerializers; protoOf($serializer_13).l4g = typeParametersSerializers; protoOf($serializer_14).l4g = typeParametersSerializers; protoOf($serializer_15).l4g = typeParametersSerializers; protoOf($serializer_16).l4g = typeParametersSerializers; protoOf($serializer_17).l4g = typeParametersSerializers; protoOf($serializer_18).l4g = typeParametersSerializers; protoOf($serializer_19).l4g = typeParametersSerializers; protoOf($serializer_20).l4g = typeParametersSerializers; protoOf($serializer_21).l4g = typeParametersSerializers; protoOf($serializer_22).l4g = typeParametersSerializers; protoOf($serializer_23).l4g = typeParametersSerializers; protoOf($serializer_24).l4g = typeParametersSerializers; protoOf($serializer_25).l4g = typeParametersSerializers; protoOf($serializer_26).l4g = typeParametersSerializers; protoOf($serializer_27).l4g = typeParametersSerializers; protoOf($serializer_28).l4g = typeParametersSerializers; protoOf($serializer_29).l4g = typeParametersSerializers; protoOf($serializer_30).l4g = typeParametersSerializers; protoOf($serializer_31).l4g = typeParametersSerializers; protoOf($serializer_32).l4g = typeParametersSerializers; protoOf($serializer_33).l4g = typeParametersSerializers; protoOf($serializer_34).l4g = typeParametersSerializers; protoOf($serializer_35).l4g = typeParametersSerializers; protoOf($serializer_36).l4g = typeParametersSerializers; protoOf($serializer_37).l4g = typeParametersSerializers; protoOf($serializer_38).l4g = typeParametersSerializers; protoOf($serializer_39).l4g = typeParametersSerializers; protoOf($serializer_40).l4g = typeParametersSerializers; protoOf($serializer_41).l4g = typeParametersSerializers; protoOf($serializer_42).l4g = typeParametersSerializers; protoOf($serializer_43).l4g = typeParametersSerializers; protoOf($serializer_44).l4g = typeParametersSerializers; protoOf($serializer_45).l4g = typeParametersSerializers; protoOf($serializer_46).l4g = typeParametersSerializers; protoOf($serializer_47).l4g = typeParametersSerializers; protoOf($serializer_48).l4g = typeParametersSerializers; protoOf($serializer_49).l4g = typeParametersSerializers; protoOf($serializer_50).l4g = typeParametersSerializers; protoOf($serializer_51).l4g = typeParametersSerializers; protoOf($serializer_52).l4g = typeParametersSerializers; protoOf($serializer_53).l4g = typeParametersSerializers; protoOf($serializer_54).l4g = typeParametersSerializers; protoOf($serializer_55).l4g = typeParametersSerializers; protoOf(CommandFlowUstadNavController).fp3 = navigate$default; protoOf(UstadViewModel).c57 = get_diContext; protoOf(UstadViewModel).d57 = get_diTrigger; protoOf($serializer_56).l4g = typeParametersSerializers; protoOf($serializer_57).l4g = typeParametersSerializers; protoOf($serializer_58).l4g = typeParametersSerializers; protoOf($serializer_59).l4g = typeParametersSerializers; protoOf($serializer_60).l4g = typeParametersSerializers; protoOf($serializer_61).l4g = typeParametersSerializers; protoOf($serializer_62).l4g = typeParametersSerializers; protoOf(SaveLocalUrisAsBlobUseCaseJs).aoo = invoke$default; protoOf(CompressImageUseCaseJs).moq = invoke$default_2; protoOf(GetSubtitleTrackFromUriUseCaseJs).mp0 = invoke$default_3; protoOf(SetLanguageUseCaseJs).rpf = invoke$default_4; protoOf(ChunkedUploadClientLocalUriUseCaseJs).ypk = 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_52 = new Companion_3(); Companion_instance_54 = new Companion_5(); Companion_instance_55 = new Companion_6(); Companion_instance_56 = new Companion_7(); BodySerializer_instance = new BodySerializer(); Companion_instance_57 = new Companion_8(); Companion_instance_58 = new Companion_9(); Companion_instance_59 = new Companion_10(); Companion_instance_61 = new Companion_12(); 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_72 = new Companion_23(); Companion_instance_74 = new Companion_25(); Companion_instance_76 = new Companion_27(); 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_86 = new Companion_37(); 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_94 = new Companion_45(); Companion_instance_95 = new Companion_46(); Companion_instance_97 = new Companion_48(); 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(); HEADER_UPLOAD_UUID = 'upload-uuid'; HEADER_IS_FINAL_CHUNK = 'upload-final-chunk'; HEADER_UPLOAD_START_BYTE = 'upload-start-byte'; DEFAULT_CHUNK_SIZE = 524288; Companion_instance_108 = new Companion_59(); Companion_instance_111 = new Companion_62(); Companion_instance_112 = new Companion_63(); Companion_instance_114 = new Companion_65(); XapiInteractionTypeSerializer_instance = new XapiInteractionTypeSerializer(); XapiObjectTypeSerializer_instance = new XapiObjectTypeSerializer(); Companion_instance_119 = new Companion_70(); XAPI_RESULT_EXTENSION_PROGRESS = 'https://w3id.org/xapi/cmi5/result/extensions/progress'; Companion_instance_122 = new Companion_73(); Companion_instance_123 = new Companion_74(); VERB_COMPLETED = 'http://adlnet.gov/expapi/verbs/completed'; VERB_PROGRESSED = 'http://adlnet.gov/expapi/verbs/progressed'; Companion_instance_129 = new Companion_80(); Companion_instance_130 = new Companion_81(); Companion_instance_131 = new Companion_82(); Companion_instance_132 = new Companion_83(); Companion_instance_134 = new Companion_85(); DiTag_instance = new DiTag(); MS_PER_HOUR = 3600000; MS_PER_MIN = 60000; Companion_instance_136 = new Companion_87(); UNSET_DISTANT_FUTURE = new Long(-289930240, 1689); Companion_instance_137 = new Companion_88(); Companion_instance_138 = new Companion_89(); 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_147 = new Companion_98(); Companion_instance_148 = new Companion_99(); 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_154 = new Companion_105(); Companion_instance_156 = new Companion_107(); Companion_instance_157 = new Companion_108(); 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_164 = new Companion_115(); Companion_instance_165 = new Companion_116(); 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_172 = new Companion_123(); 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_179 = new Companion_130(); Companion_instance_180 = new Companion_131(); Companion_instance_182 = new Companion_133(); 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_191 = new Companion_142(); 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_201 = new Companion_152(); Companion_instance_202 = new Companion_153(); Companion_instance_206 = new Companion_157(); Companion_instance_207 = new Companion_158(); Companion_instance_208 = new Companion_159(); Companion_instance_209 = new Companion_160(); Companion_instance_211 = new Companion_162(); 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_221 = new Companion_172(); 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_244 = new Companion_195(); Companion_instance_245 = new Companion_196(); Companion_instance_246 = new Companion_197(); Companion_instance_247 = new Companion_198(); Companion_instance_249 = new Companion_200(); Companion_instance_250 = new Companion_201(); Companion_instance_251 = new Companion_202(); Companion_instance_252 = new Companion_203(); Companion_instance_253 = new Companion_204(); NAVHOST_CLEARSTACK_VIEWNAME = 'ClearStack'; Companion_instance_254 = new Companion_205(); Companion_instance_255 = new Companion_206(); Companion_instance_256 = new Companion_207(); Companion_instance_257 = new Companion_208(); //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 = ParentConsentWaitingScreenViewModel; _.$_$.o8 = ParentalConsentManagementUiState; _.$_$.p8 = ParentalConsentManagementViewModel; _.$_$.q8 = PdfContentUiState; _.$_$.r8 = PdfContentViewModel; _.$_$.s8 = PersonAccountEditUiState; _.$_$.t8 = PersonAccountEditViewModel; _.$_$.u8 = PersonUsernameAndPasswordModel; _.$_$.v8 = BulkAddPersonRunImportUiState; _.$_$.w8 = BulkAddPersonRunImportViewModel; _.$_$.x8 = BulkAddPersonSelectFileUiState; _.$_$.y8 = BulkAddPersonSelectFileViewModel; _.$_$.z8 = ChildProfileListUiState; _.$_$.a9 = ChildProfileListViewModel; _.$_$.b9 = EditChildProfileUiState; _.$_$.c9 = EditChildProfileViewModel; _.$_$.d9 = PersonDetailUiState; _.$_$.e9 = PersonDetailViewModel; _.$_$.f9 = PersonEditUiState; _.$_$.g9 = PersonEditViewModel; _.$_$.h9 = LearningSpaceListUiState; _.$_$.i9 = LearningSpaceListViewModel; _.$_$.j9 = PersonListUiState; _.$_$.k9 = PersonListViewModel; _.$_$.l9 = RegisterAgeRedirectUiState; _.$_$.m9 = RegisterAgeRedirectViewModel; _.$_$.n9 = RegisterMinorWaitForParentUiState; _.$_$.o9 = RegisterMinorWaitForParentViewModel; _.$_$.p9 = RedirectViewModel; _.$_$.q9 = ScheduleEditUiState; _.$_$.r9 = ScheduleEditViewModel; _.$_$.s9 = SettingsUiState; _.$_$.t9 = SettingsViewModel; _.$_$.u9 = SignUpUiState; _.$_$.v9 = SignUpViewModel; _.$_$.w9 = SignupEnterUsernamePasswordUiState; _.$_$.x9 = SignupEnterUsernamePasswordViewModel; _.$_$.y9 = SiteDetailUiState; _.$_$.z9 = SiteDetailViewModel; _.$_$.aa = SiteEditUiState; _.$_$.ba = SiteEditViewModel; _.$_$.ca = SiteTermsDetailUiState; _.$_$.da = SiteTermsDetailViewModel; _.$_$.ea = LearningSpaceEnterLinkUiState; _.$_$.fa = LearningSpaceEnterLinkViewModel; _.$_$.ga = SystemPermissionDetailUiState; _.$_$.ha = SystemPermissionDetailViewModel; _.$_$.ia = SystemPermissionEditUiState; _.$_$.ja = SystemPermissionEditViewModel; _.$_$.ka = TimeZoneListViewModel; _.$_$.la = TimezoneListUiState; _.$_$.ma = VideoContentUiState; _.$_$.na = MediaPlayState; _.$_$.oa = VideoContentViewModel; _.$_$.pa = XapiContentUiState; _.$_$.qa = XapiContentViewModel; _.$_$.ra = ErrorReportUiState; _.$_$.sa = HolidayCalendarDetailUIState; _.$_$.ta = HolidayCalendarEditUiState; _.$_$.ua = HolidayCalendarListUiState; _.$_$.va = LanguageDetailUiState; _.$_$.wa = LanguageEditUiState; _.$_$.xa = LanguageListUiState; _.$_$.ya = LeavingReasonEditUiState; _.$_$.za = LeavingReasonEditViewModel; _.$_$.ab = ReportFilterEditUiState; _.$_$.bb = ScopedGrantDetailUiState; _.$_$.cb = ScopedGrantEditUiState; _.$_$.db = CompressionLevel_MEDIUM_getInstance; _.$_$.eb = LinkTarget_DEFAULT_getInstance; _.$_$.fb = AppBarColors_SELECTION_MODE_getInstance; _.$_$.gb = AppBarColors_STANDARD_getInstance; _.$_$.hb = FabIcon_ADD_getInstance; _.$_$.ib = FabIcon_EDIT_getInstance; _.$_$.jb = State_INDETERMINATE_getInstance; _.$_$.kb = MarkingType_PEERS_getInstance; _.$_$.lb = TextLimitType_LIMIT_WORDS_getInstance; _.$_$.mb = SupportedLanguagesConfig_init_$Create$; _.$_$.nb = _AssignmentSubmitterSummaryUiState___get_fileSubmissionStatusIconVisible__impl__so25h0; _.$_$.ob = _AssignmentSubmitterSummaryUiState___get_latestPrivateCommentVisible__impl__bdq0p0; _.$_$.pb = _ContentEntryListItemUiState___get_contentEntry__impl__3g9nl2; _.$_$.qb = _ContentEntryListItemUiState___get_descriptionVisible__impl__xyu083; _.$_$.rb = _ContentEntryListItemUiState___get_mimetypeVisible__impl__l8r8g7; _.$_$.sb = Companion_getInstance_17; _.$_$.tb = PersonConstants_getInstance; _.$_$.ub = SubmissionConstants_getInstance; _.$_$.vb = Companion_getInstance_55; _.$_$.wb = Companion_instance_97; _.$_$.xb = Companion_instance_101; _.$_$.yb = Companion_getInstance_72; _.$_$.zb = Companion_instance_129; _.$_$.ac = Companion_instance_130; _.$_$.bc = Companion_instance_131; _.$_$.cc = Companion_instance_132; _.$_$.dc = ClazzEnrolmentListConstants_getInstance; _.$_$.ec = ConditionConstants_getInstance; _.$_$.fc = ContentCompletionStatusConstants_getInstance; _.$_$.gc = EnrolmentPolicyConstants_getInstance; _.$_$.hc = FieldConstants_getInstance; _.$_$.ic = LicenceConstants_getInstance; _.$_$.jc = OutcomeConstants_getInstance; _.$_$.kc = PersonParentJoinConstants_getInstance; _.$_$.lc = RoleConstants_getInstance; _.$_$.mc = ScheduleConstants_getInstance; _.$_$.nc = SubmissionPolicyConstants_getInstance; _.$_$.oc = UstadMobileConstants_getInstance; _.$_$.pc = Companion_getInstance_95; _.$_$.qc = DiTag_instance; _.$_$.rc = Companion_getInstance_103; _.$_$.sc = UMFileUtil_getInstance; _.$_$.tc = Companion_instance_136; _.$_$.uc = Companion_instance_138; _.$_$.vc = Companion_instance_139; _.$_$.wc = Companion_instance_140; _.$_$.xc = Companion_instance_141; _.$_$.yc = Companion_instance_142; _.$_$.zc = Companion_instance_143; _.$_$.ad = Companion_instance_144; _.$_$.bd = Companion_instance_156; _.$_$.cd = Companion_instance_157; _.$_$.dd = Companion_instance_158; _.$_$.ed = Companion_instance_159; _.$_$.fd = Companion_instance_160; _.$_$.gd = Companion_instance_161; _.$_$.hd = Companion_instance_162; _.$_$.id = Companion_instance_164; _.$_$.jd = Companion_instance_165; _.$_$.kd = Companion_instance_167; _.$_$.ld = Companion_instance_168; _.$_$.md = Companion_instance_169; _.$_$.nd = Companion_getInstance_139; _.$_$.od = Companion_getInstance_138; _.$_$.pd = Companion_instance_172; _.$_$.qd = Companion_instance_173; _.$_$.rd = Companion_instance_174; _.$_$.sd = Companion_instance_177; _.$_$.td = Companion_instance_176; _.$_$.ud = Companion_instance_179; _.$_$.vd = Companion_instance_180; _.$_$.wd = Companion_instance_182; _.$_$.xd = Companion_instance_183; _.$_$.yd = Companion_instance_175; _.$_$.zd = ClazzAssignmentViewModelConstants_getInstance; _.$_$.ae = Companion_instance_184; _.$_$.be = Companion_instance_185; _.$_$.ce = Companion_instance_186; _.$_$.de = Companion_instance_187; _.$_$.ee = Companion_instance_188; _.$_$.fe = Companion_instance_189; _.$_$.ge = Companion_getInstance_158; _.$_$.he = Companion_instance_191; _.$_$.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_getInstance_167; _.$_$.qe = Companion_instance_202; _.$_$.re = Companion_getInstance_172; _.$_$.se = Companion_instance_206; _.$_$.te = Companion_getInstance_171; _.$_$.ue = Companion_instance_207; _.$_$.ve = Companion_instance_208; _.$_$.we = Companion_instance_209; _.$_$.xe = Companion_instance_211; _.$_$.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_219; _.$_$.ff = Companion_getInstance_188; _.$_$.gf = Companion_instance_221; _.$_$.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_239; _.$_$.wf = Companion_instance_241; _.$_$.xf = Companion_getInstance_211; _.$_$.yf = Companion_instance_244; _.$_$.zf = Companion_instance_245; _.$_$.ag = Companion_instance_246; _.$_$.bg = Companion_instance_247; _.$_$.cg = Companion_getInstance_216; _.$_$.dg = Companion_instance_249; _.$_$.eg = Companion_instance_250; _.$_$.fg = Companion_instance_251; _.$_$.gg = Companion_instance_252; _.$_$.hg = Companion_instance_253; _.$_$.ig = Companion_instance_147; _.$_$.jg = Companion_instance_148; _.$_$.kg = Companion_instance_149; _.$_$.lg = Companion_instance_150; _.$_$.mg = Companion_instance_151; _.$_$.ng = Companion_instance_152; _.$_$.og = Companion_getInstance_123; _.$_$.pg = strings_getInstance; _.$_$.qg = 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('./ktor-ktor-client-core.js'), require('./ktor-ktor-http.js'), require('./door-door-runtime.js'), require('./Napier-napier-js-ir.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.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